f1b744b0afeebd7182505ba4d4ece42f1b487fe5
[gnulib.git] / ChangeLog
1 2012-01-05  Bruno Haible  <bruno@clisp.org>
2
3         strtoimax: Don't force a replacement on systems where intmax_t is int.
4         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5         'intmax_t' is not larger than 'int'.
6         Reported by Pádraig Brady <P@draigBrady.com>.
7
8 2012-01-05  Bruno Haible  <bruno@clisp.org>
9
10         doc: Mention NetBSD bugs.
11         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
12         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
13
14 2012-01-05  Bruno Haible  <bruno@clisp.org>
15
16         strtoumax tests: Enhance tests.
17         * tests/test-strtoumax.c (main): Add tests for large values.
18
19 2012-01-05  Bruno Haible  <bruno@clisp.org>
20
21         strtoimax: Work around AIX 5.1 bug.
22         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
23         definition.
24         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
25         Set HAVE_STRTOIMAX.
26         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
27         REPLACE_STRTOIMAX.
28         * modules/inttypes-incomplete (Makefile.am): Substitute
29         REPLACE_STRTOIMAX.
30         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
31         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
32         (Depends-on): Update conditions.
33         * tests/test-strtoimax.c (main): Add tests for large values.
34         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
35
36 2012-01-05  Bruno Haible  <bruno@clisp.org>
37
38         inttypes: Modernize.
39         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
40         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
41         (Makefile.am): Update inttypes.h rule.
42
43 2012-01-05  Jim Meyering  <meyering@redhat.com>
44
45         init.sh: don't waste a subshell just to redirect stderr
46         * tests/init.sh: In testing for diff -u and diff -c, use a
47         stderr-redirecting exec inside `...` rather than a subshell.
48
49         test-init.sh: avoid failure on HP-UX 11.00
50         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
51         resolves to diff -c or cmp.  Reported by Bruno Haible.
52
53 2012-01-05  Bruno Haible  <bruno@clisp.org>
54
55         Tests for module 'strtoull'.
56         * modules/strtoull-tests: New file.
57         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
58
59 2012-01-05  Bruno Haible  <bruno@clisp.org>
60
61         Tests for module 'strtoll'.
62         * modules/strtoll-tests: New file.
63         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
64
65 2012-01-05  Bruno Haible  <bruno@clisp.org>
66
67         Tests for module 'strtoul'.
68         * modules/strtoul-tests: New file.
69         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
70
71 2012-01-05  Bruno Haible  <bruno@clisp.org>
72
73         Tests for module 'strtol'.
74         * modules/strtol-tests: New file.
75         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
76
77 2012-01-04  Jim Meyering  <meyering@redhat.com>
78
79         test-init.sh: accommodate Solaris 5.10's different diff -u output
80         * tests/test-init.sh: Also exempt @@ lines from the comparison
81         of diff output, since Solaris 5.10 and GNU diff formats differ.
82         Reported by Stefano Lattarini.
83
84 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85
86         test-posixtm: don't assume signed integer wraparound
87         * tests/test-posixtm.c (main): Don't assume wraparound semantics
88         after signed integer overflow.  Inspired by (though it may not
89         fix) Bruno Haible's bug report in
90         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
91
92         Spell out "Windows 9x" and "Windows XP".
93         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
94         "Windows 9x" and "WinXP" with "Windows XP".
95
96 2012-01-04  Jim Meyering  <meyering@redhat.com>
97
98         test-vc-list-files-cvs.sh: remove obsolete comment
99         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
100         double exit.  Now that's all encapsulated via skip_ and Exit.
101
102 2012-01-04  Bruno Haible  <bruno@clisp.org>
103
104         Talk about "native Windows API", not "Win32".
105         * lib/classpath.c: Update comments to mention native Windows.
106         * lib/csharpexec.c: Likewise.
107         * lib/dup2.c: Likewise.
108         * lib/error.c: Likewise.
109         * lib/fcntl.c: Likewise.
110         * lib/filename.h: Likewise.
111         * lib/findprog.c: Likewise.
112         * lib/get-rusage-as.c: Likewise.
113         * lib/get-rusage-data.c: Likewise.
114         * lib/getpagesize.c: Likewise.
115         * lib/javaexec.c: Likewise.
116         * lib/msvc-inval.c: Likewise.
117         * lib/msvc-nothrow.c: Likewise.
118         * lib/nanosleep.c: Likewise.
119         * lib/nonblocking.c: Likewise.
120         * lib/printf-parse.c: Likewise.
121         * lib/setlocale.c: Likewise.
122         * lib/sigaction.c: Likewise.
123         * lib/strerror_r.c: Likewise.
124         * lib/tmpdir.c: Likewise.
125         * lib/vasnprintf.c: Likewise.
126         * lib/w32spawn.h: Likewise.
127         * lib/waitpid.c: Likewise.
128         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
129         * m4/locale-ar.m4: Likewise.
130         * m4/locale-fr.m4: Likewise.
131         * m4/locale-ja.m4: Likewise.
132         * m4/locale-tr.m4: Likewise.
133         * m4/locale-zh.m4: Likewise.
134         * m4/printf.m4: Likewise.
135         * tests/test-cloexec.c: Likewise.
136         * tests/test-copy-acl.sh: Likewise.
137         * tests/test-copy-file.sh: Likewise.
138         * tests/test-file-has-acl.sh: Likewise.
139         * tests/test-set-mode-acl.sh: Likewise.
140         * tests/test-dup-safer.c: Likewise.
141         * tests/test-dup2.c: Likewise.
142         * tests/test-dup3.c: Likewise.
143         * tests/test-fcntl.c: Likewise.
144         * tests/test-nonblocking-pipe.h: Likewise.
145         * tests/test-nonblocking-socket.h: Likewise.
146         * tests/test-pipe.c: Likewise.
147         * tests/test-pipe2.c: Likewise.
148         * tests/test-spawn-pipe-child.c: Likewise.
149         * doc/acl-resources.txt: Likewise.
150         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
151         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
152         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
153         * lib/localcharset.c: Update comments to mention native Windows.
154         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
155         * lib/localename.c: Likewise.
156         * lib/progreloc.c: Likewise.
157         * lib/relocatable.c: Likewise.
158         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
159         (windows_compute_revents): Renamed from win32_compute_revents.
160         (windows_compute_revents_socket): Renamed from
161         win32_compute_revents_socket.
162         * lib/select.c: Update comments to mention native Windows.
163         (windows_poll_handle): Renamed from win32_poll_handle.
164         * m4/threadlib.m4: Update comments to mention native Windows.
165         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
166         --enable-threads=windows instead of --enable-threads=win32. Set
167         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
168         * lib/glthread/lock.h: Update comments to mention native Windows.
169         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
170         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
171         USE_WIN32_THREADS.
172         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
173         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
174         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
175         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
176         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
177         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
178         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
179         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
180         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
181         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
182         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
183         * tests/test-tls.c: Likewise.
184         Rationale:
185         Microsoft renamed the "Win32 API" to "Windows API", as it is available
186         on both 32-bit and 64-bit Windows systems.
187         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
188         line of distinction is between "native Windows" on one side and Unix/
189         POSIX systems on the other side. More details in
190         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
191         Suggested by Paul Eggert.
192
193 2012-01-03  Bruno Haible  <bruno@clisp.org>
194
195         isatty: Support for MSVC 9.
196         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
197         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
198         (_isatty_nothrow): New function.
199         (isatty): Use it instead of _isatty.
200         (IsConsoleHandle): Add comment, from Paolo Bonzini.
201         * lib/poll.c (IsConsoleHandle): Likewise.
202         * lib/select.c (IsConsoleHandle): Likewise.
203         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
204         (gl_PREREQ_ISATTY): New macro.
205         * modules/isatty (Depends-on): Add msvc-inval.
206         (configure.ac): Invoke gl_PREREQ_ISATTY.
207
208 2012-01-03  Jim Meyering  <meyering@redhat.com>
209
210         maint.mk: remove temporary transition aid from over 1.5 years ago
211         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
212         purpose was to aid in the transition (avoiding silent malfunction)
213         from that old name to the new _sc_search_regexp.  This shim was
214         added by commit 219c504b.
215
216         init.sh: do not try to accommodate compare arguments starting with "-"
217         * tests/init.sh (compare_dev_null_): Do not try to accommodate
218         compare arguments that start with "-".  Besides, we do not worry
219         about this when invoking diff or cmp; why start now with sed?
220         Using "--" to separate options from argument would trigger sed
221         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
222         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
223
224 2012-01-02  Bruno Haible  <bruno@clisp.org>
225
226         Enhance tests for module 'isatty'.
227         * modules/isatty-tests (Depends-on): Add pipe-posix.
228         * tests/test-isatty.c: Include <fcntl.h>.
229         (DEV_NULL): New macro.
230         (main): Test the resut of isatty() also on regular files, pipes, and
231         /dev/null.
232
233         New module 'isatty'.
234         * lib/unistd.in.h (isatty): New declaration.
235         * lib/isatty.c: New file, based on an idea of
236         Bastien Roucariès <roucaries.bastien@gmail.com>.
237         * m4/isatty.m4: New file.
238         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
239         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
240         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
241         REPLACE_ISATTY.
242         * modules/isatty: New file.
243         * doc/posix-functions/isatty.texi: Mention the new module.
244         Suggested by Paolo Bonzini.
245
246 2012-01-02  Bruno Haible  <bruno@clisp.org>
247
248         canonicalize: Tweak 2011-12-29 commit.
249         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
250         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
251
252 2012-01-02  Jim Meyering  <meyering@redhat.com>
253
254         gitlog-to-changelog: describe input syntax in --help output
255         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
256
257         gitlog-to-changelog: fix typo in --help: show backslash before email @
258         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
259         in sources, but not in actual output.
260
261 2011-12-30  Jim Meyering  <meyering@redhat.com>
262
263         gitlog-to-changelog: don't malfunction when name contains %-directive
264         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
265         in a name string cause trouble.  E.g., with a user name of "%s",
266         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
267
268 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
269
270         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
271         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
272         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
273         the "  (tiny change)" notation that is appended to the standard
274         ChangeLog "date  name  email" header line.
275
276 2012-01-01  Jim Meyering  <meyering@redhat.com>
277
278         test-framework-sh: init.sh: fix "make dist" failure
279         When using gnulib-tool's --with-tests option and any module that
280         depends on test-framework-sh, "make dist" would fail due to the
281         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
282         in the gltests directory, and not in the gllib/ directory.
283         One way to work around that is to move the EXTRA_DIST += init.sh
284         from the primary module to the -tests one:
285         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
286         * modules/test-framework-sh (Makefile.am): ...not here.
287         Reported by Tom G. Christensen in
288         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
289
290         version-etc: update copyright year reported by --version
291         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
292
293 2011-12-31  Pádraig Brady  <P@draigBrady.com>
294
295         canonicalize: only stat() if required
296         * lib/canonicalize.c (canonicalize_filename_mode):
297         Avoid calling l?stat() when both CAN_MISSING,
298         and CAN_NOLINKS are set, as we neither need
299         to resolve symlinks or test component existence.
300
301 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
302
303         doc: cover st_ino issues once; add OpenVMS etc.
304         * doc/posix-functions/stat.texi (stat):
305         * doc/posix-functions/lstat.texi (lstat):
306         * doc/posix-functions/fstatat.texi (fstatat):
307         * doc/posix-functions/fstat.texi (fstat):
308         Move general 'struct stat' stuff to sys_stat.texi,
309         leaving behind a pointer.
310         * doc/posix-headers/sys_stat.texi (sys/stat.h):
311         Merge duplicate info about 'struct stat' problems into here.
312         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
313         and suggest partial workarounds.
314
315         same-inode: port to OpenVMS
316         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
317         three st_ino values.
318
319 2011-12-30  Pádraig Brady  <P@draigBrady.com>
320
321         canonicalize: fix references to stat() and lstat()
322         * lib/canonicalize.c (canonicalize_filename_mode):
323         Ensure references always resolve to a replacement
324         function if required (even via a macro).
325
326 2011-12-30  Jim Meyering  <meyering@redhat.com>
327
328         gitlog-to-changelog: remove a little duplication
329         * build-aux/gitlog-to-changelog (main): Grep @lines once,
330         rather than twice.
331
332 2011-12-29  Pádraig Brady  <P@draigBrady.com>
333
334         canonicalize: add support for not resolving symlinks
335         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
336         indicate we don't want to follow symlinks.  Also
337         provide CAN_MODE_MASK to aid setting these existing
338         mutually exclusive values.
339         * lib/canonicalize.c (canonicalize_filename_mode):
340         Extract the flags from can_mode parameter, which
341         are currently just used to select between stat()
342         and lstat().  Also ensure that mutually exclusive
343         values are flagged immediately as invalid.
344         * tests/test-canonicalize.c: Verify symlinks are
345         not followed, and that invalid flag combinations
346         are diagnosed.
347
348 2011-12-25  Jim Meyering  <meyering@redhat.com>
349
350         gitlog-to-changelog: do not clump multi-paragraph entries
351         Identical header lines (date,name,email+coauthors) are suppressed,
352         thus putting all entries with those same characteristics under
353         a single header.  However, when a log entry consists of two or
354         more paragraphs, it may not be clear where it starts and ends.
355         This change makes it so that such an entry is always separated
356         from others by a header line, even when that header would
357         otherwise be suppressed.
358         * build-aux/gitlog-to-changelog: Implement the above.
359         Inspired by a related request from Stefano Lattarini in
360         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
361
362 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
363
364         announce-gen: fix `cmd' typo in diagnostic
365         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
366         diagnostic: a missing '$' meant that the command was not output.
367
368 2011-12-23  Jim Meyering  <meyering@redhat.com>
369
370         test-framework-sh: distribute init.sh
371         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
372         Otherwise, "make -C gnulib-tests check" (at least in grep) would
373         fail due to the lack of init.sh.
374
375         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
376         * modules/atexit-tests: Rather than listing tests/init.sh,
377         now that there's a module for it, simply depend on that new module.
378         * modules/closein-tests: Likewise.
379         * modules/exclude-tests: Likewise.
380         * modules/getcwd-tests: Likewise.
381         * modules/perror-tests: Likewise.
382         * modules/pread-tests: Likewise.
383         * modules/pwrite-tests: Likewise.
384         * modules/vc-list-files-tests: Likewise.
385         * modules/verify-tests: Likewise.
386         * modules/xalloc-die-tests: Likewise.
387         * modules/xstrtoimax-tests: Likewise.
388         * modules/xstrtol-tests: Likewise.
389         * modules/xstrtoll-tests: Likewise.
390         * modules/xstrtoumax-tests: Likewise.
391         * modules/yesno-tests: Likewise.
392
393 2011-12-22  Jim Meyering  <meyering@redhat.com>
394
395         test-framework-sh: add minimal tests of init.sh's compare function
396         * modules/test-framework-sh-tests: New file.
397         * tests/test-init.sh: New file.
398
399         test-framework-sh: new module
400         * modules/test-framework-sh: New file.
401         * MODULES.html.sh (Support for maintaining and releasing projects):
402         List it.
403
404         init.sh: do not emit simulated diff output to stderr
405         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
406
407 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
408
409         .gitignore: ignore gnulib.dvi and regex.info
410         * doc/.gitignore:add gnulib.dvi and regex.info
411
412 2011-12-22  Jim Meyering  <meyering@redhat.com>
413
414         init.sh: correct previous change
415         * tests/init.sh (compare): My previous change was wrong.
416         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
417
418         init.sh: avoid unwarranted test failure when using "set -e"
419         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
420         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
421         a use like "compare exp out" would get evoke an unconditional failure.
422
423 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
424
425         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
426         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
427         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
428         autoreconf that did not.
429         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
430         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
431
432 2011-12-17  Jim Meyering  <meyering@redhat.com>
433
434         bootstrap: remove some now-unneeded code
435         This script arose back when gnulib-tool was young.
436         Since then, it has seen improvements that render much of this
437         script unnecessary.  In particular, it can now make symlinks
438         to the files it uses.  Also, I no longer see as much value in
439         marking files as read-only via comments.
440         If you relied on the symlink-creation feature of the preceding
441         version of this script, you can get most of that functionality
442         by adding the --symlink option to the definition of
443         gnulib_tool_option_extras in your bootstrap.conf file.
444         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
445         Run autopoint and libtoolize *before* gnulib-tool.
446         After it, run an abbreviated autoreconf, rather than a loop around
447         all tools.
448         (slirp, bt_mark_as_generated): Remove functions.
449
450 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
451
452         ftoastr: fix typo
453         * lib/ftoastr.h: Fix misspelling in comment.
454
455 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
456
457         * top/README-release: fix punctuation.
458
459 2011-12-17  Jim Meyering  <meyering@redhat.com>
460
461         bootstrap: correct the recent buildreq change
462         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
463         had no effect.
464         * build-aux/bootstrap (buildreq): Bracket each search term with
465         "*...*", so that the shell "case" statement works as intended.
466         Add comments.
467
468 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
469
470         build: let bootstrap resort to wget when downloading .po files
471         * build-aux/bootstrap (download_po_files): Fallback to wget when
472         downloading the .po files via rsync fails.  This is necessary to
473         bootstrap from behind a strict firewall.
474
475 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
476
477         stdint: don't assume C++11 when compiling with g++
478         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
480         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
481         work also in C++ before C++11, as that improperly inhibits
482         generating a substitute stdint.h for that case.
483
484 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
485
486         alloca: protect comment from gnulib-tool
487         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
488         that gnulib-tool doesn't think it's a license, and munge it to
489         say "GCC version 3".
490
491 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
492
493         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
494         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
495         $(abs_top_builddir) instead of $(top_builddir).
496
497 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
498
499         strftime-tests: also test nanoseconds
500         * tests/test-strftime.c (T): Add a test of %N.
501
502 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
503
504         inttypes, stdint: add C++11 support
505         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
506         when including inttypes.h and stdint.h.  Support this change to
507         the standard.
508         * doc/posix-headers/inttypes.texi (inttypes.h):
509         * doc/posix-headers/stdint.texi (stdint.h): Document this.
510         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
511         Define if not defined already, for the benefit of pre-C++11 hosts.
512         Define the standard format macros (e.g., PRId8) always.
513         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
514         Likewise, if __cpluspus.  Define the standard constant and limit
515         macros (e.g., INT8_C, INT8_MAX) always.
516         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
517         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
518         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
519         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
520         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
521         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
522         Likewise.
523
524 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
525
526         nonblocking tests: Fix test failure on Linux/PPC.
527         Suggested by Prerna Saxena in
528         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
529         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
530         Set to 1100000.
531
532 2011-12-12  Jim Meyering  <meyering@redhat.com>
533
534         argmatch: don't hard-code `' when listing valid option arguments
535         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
536         use the quote function to add quotes.  Use fputs rather than
537         fprintf for the format string with no format directive.
538
539 2011-12-07  Eric Blake  <eblake@redhat.com>
540
541         bootstrap: detect tools required by gnulib-tool
542         * build-aux/bootstrap (buildreq): Provide minimum implicit
543         dependencies.
544         * DEPENDENCIES: Mention patch as a prereq.
545
546 2011-12-04  Bruno Haible  <bruno@clisp.org>
547
548         sethostname: Port to Windows platforms.
549         * lib/sethostname.c: Provide an alternate implementation for Windows
550         platforms.
551         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
552         (main): Skip the test if sethostname() fails with EPERM. On Windows
553         platforms, don't check the result of gethostname().
554
555 2011-12-04  Bruno Haible  <bruno@clisp.org>
556             Jim Meyering  <meyering@redhat.com>
557
558         tests: Avoid spurious error message on platforms without mktemp program.
559         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
560
561 2011-12-04  Bruno Haible  <bruno@clisp.org>
562
563         sethostname: Fix documentation.
564         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
565         "not fixed" section.
566
567 2011-12-03  Bruno Haible  <bruno@clisp.org>
568
569         gnulib-tool: Verify that the License field is present and non-empty.
570         * gnulib-tool (func_get_license_raw): New function, extracted from
571         func_get_license.
572         (func_get_license): Use it. Warn if the module is not a test module and
573         has no license.
574         Suggested by Jim Meyering.
575
576 2011-12-03  Bruno Haible  <bruno@clisp.org>
577
578         sethostname tests: Fix link error on mingw.
579         * tests/test-sethostname1.c: New file, extracted from
580         tests/test-sethostname.c.
581         * tests/test-sethostname2.c: New file, extracted from
582         tests/test-sethostname.c.
583         * tests/test-sethostname.c: Remove file.
584         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
585         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
586         (Depends-on): Add gethostname.
587         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
588         Link the latter with $(GETHOSTNAME_LIB).
589
590         sethostname tests: Fix compilation error on mingw.
591         * tests/test-sethostname.c: Don't include <sys/types.h>.
592         (geteuid): Use a dummy value without uid_t.
593         * modules/sethostname-tests (Depends-on): Remove sys_types.
594
595         sethostname tests: Avoid a gcc warning.
596         * tests/test-sethostname.c (main): Remove an unused variable.
597
598         Tweak last commit.
599         * modules/sethostname-tests (Files): Sort by decreasing importance.
600         (configure.ac): Check for geteuid.
601         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
602         the test when there's nothing to test. Drop an unnecessary cast.
603         Improve an error message. Verify that the final sethostname() call
604         succeeds.
605
606 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
607
608         Add a test suite for the sethostname module.
609         * modules/sethostname-tests: New file.  A test program
610         for the sethostname module.
611         * tests/test-sethostname.c: Likewise.
612
613 2011-12-03  Bruno Haible  <bruno@clisp.org>
614
615         Tweak last commit.
616         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
617         Fix preprocessor directives indentation. Fix typos.
618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
619         * modules/unistd (Makefile): Likewise.
620
621 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
622
623         Integrate the sethostname module into unistd.
624         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
625         into the unistd.h header.
626         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
627         preprocessor directives.
628         * modules/unistd: Setup the Makefile substitutions of the
629         SETHOSTNAME preprocessor directives.
630
631 2011-12-03  Bruno Haible  <bruno@clisp.org>
632
633         Tweak last commit.
634         * lib/sethostname.c: Don't include <string.h>.
635         (sethostname): No need to copy the argument string to the stack. Don't
636         call clearerr. Preserve errno when fprintf failed.
637         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
638         Don't invoke AC_REPLACE_FUNCS.
639         * modules/sethostname (Link): Remove empty section.
640         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
641         failure problem.
642
643 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
644
645         New module 'sethostname'.
646         * lib/sethostname.c (sethostname): New file.  Provide sethostname
647         for systems that lack it.
648         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
649         sethostname declaration and function.
650         * modules/sethostname: New file.  Define the sethostname module.
651
652 2011-12-03  Bruno Haible  <bruno@clisp.org>
653
654         Tweak last commit.
655         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
656
657 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
658
659         Split the HOST_NAME_MAX detection into a separate m4 macro.
660         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
661         macro so it can be used by the pending sethostname module.
662
663 2011-12-03  Bruno Haible  <bruno@clisp.org>
664
665         Fix module descriptions syntax.
666         * modules/argv-iter (License): Fix syntax.
667         * modules/di-set (License): Likewise.
668         * modules/ino-map (License): Likewise.
669         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
670
671 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
672
673         stdalign: port to Clang 3.0
674         Problem reported by Simon Josefsson in
675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
676         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
677         which has <stdalign.h> but which does not define alignof.
678         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
679
680 2011-12-01  Eric Blake  <eblake@redhat.com>
681
682         mktempd: silence dd usage
683         * build-aux/mktempd (rand_bytes): Silence dd.
684
685 2011-11-30  Simon Josefsson  <simon@josefsson.org>
686
687         manywarnings: Don't mention gcc version in docstring.
688         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
689         Jim Meyering <meyering@redhat.com>.
690
691 2011-11-30  Jim Meyering  <meyering@redhat.com>
692
693         hash: mark a few floating point constants with "f" suffix
694         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
695         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
696         floating point constants with "f", since they're destined to be
697         saved/used as "float"s.
698
699 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
700
701         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
702         * tests/test-float.c (test_long_double): Correct and re-enable the
703         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
704
705 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
706
707         Avoid subtracting two pointers that don't point into the same block.
708         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
709         only pointers into the same memory block are subtracted. We cannot
710         assume that sizeof (ptrdiff_t) == sizeof (void *).
711
712 2011-11-29  Eric Blake  <eblake@redhat.com>
713
714         maint.mk: add syntax check for use of compare from init.sh
715         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
716         moved here from coreutils.
717
718         manywarnings: drop -Wunsuffixed-float-constants
719         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
720         '1.0D', which is the only way to silence this warning for 'double'.
721
722 2011-11-29  Jim Meyering  <meyering@redhat.com>
723
724         hash: mark compute_bucket_size with the pure attribute
725         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
726
727         quotearg, propername: correct pragma guard expression
728         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
729         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
730
731 2011-11-28  Jim Meyering  <meyering@redhat.com>
732
733         propername: do not mark proper_name with the const attribute
734         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
735         since it examines data pointed to by its parameter.
736         * lib/propername.c (proper_name): Instead, add a pragma to suppress
737         the suggestion from -Wsuggest-attribute=const.
738
739         propername: mark one more function as const
740         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
741
742 2011-11-27  Jim Meyering  <meyering@redhat.com>
743
744         mark functions with const and pure attributes
745
746         Mark functions per suggestions from gcc-4.6 when using these options:
747         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
748         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
749         Follow these guidelines: when possible, apply the attribute to
750         an extern declaration, not to its definition.  Apply it to the
751         definition only when the definition is static.
752         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
753         * lib/argv-iter.h (argv_iter_n_args): Likewise.
754         * lib/base64.h (isbase64): Likewise.
755         * lib/basename-lgpl.c (last_component, base_len): Likewise.
756         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
757         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
758         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
759         (c_tolower, c_toupper): Likewise.
760         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
761         * lib/chdir-long.c (find_non_slash): Likewise.
762         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
763         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
764         * lib/file-type.h (file_type): Likewise.
765         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
766         * lib/filevercmp.c (verrevcmp): Likewise.
767         * lib/freadahead.h (freadahead): Likewise.
768         * lib/fts.c (fts_maxarglen): Likewise.
769         * lib/hash-pjw.h (hash_pjw): Likewise.
770         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
771         * lib/hash.c (is_prime, next_prime): Likewise.
772         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
773         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
774         (hash_table_ok, hash_get_first, hash_string): Likewise.
775         (compute_bucket_size): Likewise.
776         * lib/i-ring.h (i_ring_empty): Likewise.
777         * lib/isnan.c (isnanl): Likewise.
778         * lib/math.h (isnanl, rpl_isnanl): Likewise.
779         * lib/memcasecmp.h (memcasecmp): Likewise.
780         * lib/memchr2.h (memchr2): Likewise.
781         * lib/memcmp2.h (memcmp2): Likewise.
782         * lib/parse-datetime.y (lookup_zone): Likewise.
783         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
784         [!WINDOWS_SOCKETS]: Likewise.
785         * lib/strnlen1.h (strnlen1): Likewise.
786         * lib/uniwidth.in.h (uc_width): Likewise.
787         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
788         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
789         (quoting_options_from_style): Add a comment.
790         * lib/propername.h (proper_name): Add a comment.
791
792 2011-11-27  Bruno Haible  <bruno@clisp.org>
793
794         Remove unused macros from !_LIBC code in glibc-borrowed files.
795         * lib/fnmatch.c (STRCOLL): Remove macro.
796         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
797         * lib/glob.c (__stat, __readdir64): Remove macros.
798         * lib/tempname.c (__open64, __xstat64): Remove macros.
799         Suggested by Paul Eggert.
800
801 2011-11-27  Bruno Haible  <bruno@clisp.org>
802
803         getcwd: Fix link error on MSVC 9.
804         * modules/getcwd (Depends-on): Add readdir, rewinddir.
805
806 2011-11-27  Bruno Haible  <bruno@clisp.org>
807
808         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
809         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
810         HAVE_OPENDIR is 0.
811         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
812         HAVE_CLOSEDIR is 0.
813         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
814         is 0.
815         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
816
817 2011-11-27  Bruno Haible  <bruno@clisp.org>
818
819         getcwd: Fix bug from 2011-08-17.
820         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
821         platforms that need it.
822         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
823         code of 4 to be a failure, not a success. This ensures that
824         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
825
826 2011-11-27  Bruno Haible  <bruno@clisp.org>
827
828         binary-io tests: Avoid test failure on mingw when libtool is used.
829         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
830         Don't verify the size of t-bin-out1.tmp here.
831         * tests/test-binary-io.sh: Verify it here.
832         Reported by Simon Josefsson.
833
834 2011-11-26  Bruno Haible  <bruno@clisp.org>
835
836         Fix conflict between two instantiations of module 'unistd'.
837         * gnulib-tool (func_emit_autoconf_snippet): Substitute
838         ${include_guard_prefix} also in the autoconf snippet.
839         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
841         GNULIB_UNISTD_H_GETOPT.
842         * modules/getopt-posix (configure.ac): Set the
843         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
844         * modules/getopt-gnu (configure.ac): Likewise.
845         * modules/unistd (Makefile.am): Change the substitution value of
846         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
847         Reported by Simon Josefsson.
848
849 2011-11-25  Bruno Haible  <bruno@clisp.org>
850
851         pagealign_alloc: Doc and comments.
852         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
853         module.
854         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
855
856 2011-11-25  Jim Meyering  <meyering@redhat.com>
857
858         test-update-copyright.sh: avoid false-positive failure
859         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
860         around false positive failure on Cygwin/Windows.  The latter was
861         matching erroneously-created files with names like
862         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
863
864 2011-11-25  Simon Josefsson  <simon@josefsson.org>
865
866         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
867         * m4/valgrind-tests.m4: Check that the parameters that will be
868         used works, not just a subset of them.  Reported by Bruno Haible
869         <bruno@clisp.org>.
870
871 2011-11-24  Jim Meyering  <meyering@redhat.com>
872
873         test-stdalign.c: comment out long double tests
874         * tests/test-stdalign.c: Don't try to reduce alignment of long double
875         variables.  That provokes errors like this from gcc-4.7.0 20111124:
876         error: '_Alignas' specifiers cannot reduce alignment of \
877         'static_longdouble_alignas'.
878
879 2011-11-22  Jim Meyering  <meyering@redhat.com>
880
881         init.sh: make "compare /dev/null FILE" output more readable
882         * tests/init.sh (compare_): Document the preferred order of arguments.
883         (emit_diff_u_header_): New function.
884         (compare_dev_null_): Emit a simulated diff, rather than just the
885         contents of the unexpected file.  Suggestion from Bruno Haible.
886
887 2011-11-21  Jim Meyering  <meyering@redhat.com>
888             Eric Blake  <eblake@redhat.com>
889
890         init.sh: work around OSF/1 5.1's mishandling of /dev/null
891         * tests/init.sh: Make our compare function slightly more portable.
892         Reported by Bruno Haible in
893         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
894
895 2011-11-21  Simon Josefsson  <simon@josefsson.org>
896
897         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
898         before using it, in code that ends up in config.h.
899
900 2011-11-20  Bruno Haible  <bruno@clisp.org>
901
902         getcwd: Work around getcwd bug on AIX 5..7.
903         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
904         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
905         Use a different value for gl_cv_func_getcwd_path_max. Move the
906         definition of HAVE_PARTLY_WORKING_GETCWD from here...
907         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
908         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
909         Define HAVE_MINIMALLY_WORKING_GETCWD.
910         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
911         where it is not even minimally working, that is, on AIX.
912         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
913         m4/getcwd-path-max.m4.
914         (main): Update exit code computation.
915         * doc/posix-functions/getcwd.texi: Mention list of platforms where
916         getcwd does not handle long file names.
917
918 2011-11-20  Bruno Haible  <bruno@clisp.org>
919
920         getcwd: Fix bug from 2009-09-10.
921         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
922         like "no".
923
924 2011-11-20  Simon Josefsson  <simon@josefsson.org>
925
926         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
927
928 2011-11-20  Bruno Haible  <bruno@clisp.org>
929
930         fma tests: Avoid shadowing local variables.
931         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
932         expected.
933
934 2011-11-20  Bruno Haible  <bruno@clisp.org>
935
936         copysignf tests: Fix.
937         * tests/test-copysignf.c: Fix signature check.
938
939 2011-11-20  Bruno Haible  <bruno@clisp.org>
940
941         fma: Remove unused code.
942         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
943         unused macros.
944
945 2011-11-20  Bruno Haible  <bruno@clisp.org>
946
947         sethostname: Fix doc about AIX.
948         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
949         sethostname; it has it.
950
951         sethostname: Mention more portability problems.
952         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
953         problem.
954         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
955
956 2011-11-19  Bruno Haible  <bruno@clisp.org>
957
958         Depend on module fcntl-h when AT_FDCWD is used.
959         * modules/utimens (Depends-on): Add fcntl-h.
960         * modules/areadlinkat (Depends-on): Likewise.
961         * modules/areadlinkat-with-size (Depends-on): Likewise.
962         * modules/faccessat (Depends-on): Likewise.
963         * modules/fchmodat (Depends-on): Likewise.
964         * modules/fchownat (Depends-on): Likewise.
965         * modules/getcwd (Depends-on): Likewise.
966         * modules/mkdirat (Depends-on): Likewise.
967         * modules/mkfifoat (Depends-on): Likewise.
968         * modules/readlinkat (Depends-on): Likewise.
969         * modules/symlinkat (Depends-on): Likewise.
970         * modules/dup2-tests (Depends-on): Likewise.
971         * modules/fdutimensat-tests (Depends-on): Likewise.
972         * modules/futimens-tests (Depends-on): Likewise.
973
974 2011-11-19  Bruno Haible  <bruno@clisp.org>
975
976         euidaccess: Update a comment.
977         * lib/euidaccess.c: Update comment about platforms with faccessat.
978
979 2011-11-19  Bruno Haible  <bruno@clisp.org>
980
981         openat: Fix file list.
982         * modules/openat (Files): Remove lib/at-func.c.
983
984 2011-11-19  Bruno Haible  <bruno@clisp.org>
985
986         fstatat: Simplify.
987         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
988         gnulib should define rpl_fstatat, there is a
989         "#define fstatat rpl_fstatat" in <sys/stat.h>.
990
991 2011-11-19  Bruno Haible  <bruno@clisp.org>
992
993         Ensure 'inline' can be used in tests/test-utimens-common.h.
994         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
995         * modules/futimens-tests (configure.ac): Likewise.
996         * modules/utimens-tests (configure.ac): Likewise.
997         * modules/utimensat-tests (configure.ac): Likewise.
998
999 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1000
1001         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1002         not hash_insert0.
1003         (hash_insert_if_absent): Doc fix.
1004
1005 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1006
1007         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1008
1009 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1010
1011         test-getcwd: disambiguate exit status
1012         * tests/test-getcwd.c (test_long_name): Return 0..7.
1013         (main): Exit with an unambiguous exit status.  The old
1014         code yielded a mysterious mixture of two failure codes.
1015
1016         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1017         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1018         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1019         rpl_fstatat or fstatat.  This should fix the other problem
1020         reported by Kai Habel in
1021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1022         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1024         and I reproduced it on a Solaris 8 host we still have in production.
1025
1026 2011-11-18  Jim Meyering  <meyering@redhat.com>
1027
1028         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1029         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1030         Add a sentence to the comment.
1031         (hash_insert0): New function that simply calls hash_insert_if_absent.
1032         * lib/hash.h (hash_insert_if_absent): Declare it.
1033         (hash_insert0): Add deprecation attribute.
1034         (_GL_ATTRIBUTE_DEPRECATED): Define.
1035         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1036         not hash_insert0.
1037         * NEWS: Mention it, even though it's not really an incompatible change.
1038
1039 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1040
1041         openat: avoid compilation failure due to lack of <errno.h> inclusion
1042         * lib/openat.c: Include <errno.h>.
1043
1044 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1045
1046         * modules/getcwd (Depends-on): Add fdopendir.
1047         This fixes one of the two problems reported by Kai Habel in
1048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1049
1050         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1051         stdalign problem reported by Ian Beckwith in
1052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1053         * modules/crypto/gc-arcfour (Depends-on):
1054         Depend conditionally on crypto/arcfour.
1055         * modules/crypto/gc-arctwo (Depends-on):
1056         Depend conditionally on crypto/arctwo.
1057         * modules/crypto/gc-des (Depends-on):
1058         Depend conditionally on crypto/des.
1059         * modules/crypto/gc-hmac-md5 (Depends-on):
1060         Depend conditionally on crypto/hmac-md5.
1061         * modules/crypto/gc-hmac-sha1 (Depends-on):
1062         Depend conditionally on crypto/hmac-sha1.
1063         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1064         * modules/crypto/gc-md4 (Depends-on):
1065         Depend conditionally on crypto/md4.
1066         * modules/crypto/gc-md5 (Depends-on):
1067         Depend conditionally on crypto/md5.
1068         * modules/crypto/gc-rijndael (Depends-on):
1069         Depend conditionally on crypto/rijndael.
1070         * modules/crypto/gc-sha1 (Depends-on):
1071         Depend conditionally on crypto/sha1.
1072         * modules/crypto/gc-arcfour:
1073         * modules/crypto/gc-arctwo:
1074         * modules/crypto/gc-des:
1075         * modules/crypto/gc-hmac-md5:
1076         * modules/crypto/gc-hmac-sha1:
1077         * modules/crypto/gc-md2:
1078         * modules/crypto/gc-md4:
1079         * modules/crypto/gc-md5:
1080         * modules/crypto/gc-rijndael:
1081         * modules/crypto/gc-sha1:
1082         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1083         now that the conditional dependencies do the work for us.
1084
1085 2011-11-17  Jim Meyering  <meyering@redhat.com>
1086
1087         tests: factor st_ctime-comparison out of two headers
1088         * tests/test-utimens-common.h (ctime_compare): Define.
1089         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1090         * tests/test-lutimens.h (test_lutimens): Likewise.
1091         * tests/test-utimens.h (test_utimens): Likewise.
1092
1093         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1094         Invoke the test program via an init.sh-using wrapper.
1095         * tests/test-getcwd.sh: New file.
1096         * modules/getcwd-tests (Files): Add it.
1097         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1098
1099 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1100
1101         gitlog-to-changelog: support multi-author commits.
1102         The FSF cares about keeping track of all authors of patches to its
1103         projects, but Git doesn't provide obvious support for multi-author
1104         changesets. Consensus seems to be forming around the use of extra
1105         Signed-off-by inspired lines in the log message formatted as
1106         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1107         multi-author commits between version control systems.
1108         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1109         log message and output in standard ChangeLog multi-author format.
1110         Reported by Peter Rosin <peda@lysator.liu.se>
1111
1112 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1113             Bruno Haible  <bruno@clisp.org>
1114
1115         Fix some modules' file list.
1116         * modules/fstatat (Files): Add m4/lstat.m4.
1117         * modules/openat (Files): Likewise.
1118         * modules/unlinkat (Files): Likewise.
1119
1120 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1121
1122         maint.mk: fix tight-scope.mk generation in VPATH builds.
1123         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1124         reference with $(srcdir) so that the file is found correctly even
1125         when running `make syntax-check' in a VPATH build.
1126
1127 2011-11-13  Bruno Haible  <bruno@clisp.org>
1128             Jim Meyering  <meyering@redhat.com>
1129
1130         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1131         * tests/init.sh (compare): Remove "No differences encountered" or
1132         synonymous output from the 'diff' program.
1133
1134 2011-11-13  Bruno Haible  <bruno@clisp.org>
1135
1136         Makefile: Tweak indentation.
1137         * Makefile: Use tab as first character in every line that contains rule
1138         commands.
1139
1140 2011-11-13  Bruno Haible  <bruno@clisp.org>
1141
1142         Syntax check for copyright statements.
1143         * check-copyright: New file.
1144         * Makefile (sc_check_copyright): New rule.
1145
1146 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1147
1148         * build-aux/git-version-gen: Add --prefix to configure the tag
1149         match string.
1150
1151 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1152
1153         * build-aux/git-version-gen: Add --help and --version.
1154
1155 2011-11-12  Jim Meyering  <meyering@redhat.com>
1156
1157         revamp the other test-exclude?.sh scripts to use init.sh, too
1158         * tests/test-exclude1.sh: Use init.sh.
1159         * tests/test-exclude2.sh: Likewise.
1160         * tests/test-exclude3.sh: Likewise.
1161         * tests/test-exclude4.sh: Likewise.
1162         * tests/test-exclude5.sh: Likewise.
1163         * tests/test-exclude6.sh: Likewise.
1164         * tests/test-exclude7.sh: Likewise.
1165         * tests/test-exclude8.sh: Likewise.
1166         * modules/exclude-tests (Files): List init.sh.
1167
1168         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1169         These shell scripts ignored failure of the binary test-exclude,
1170         so making the latter return 77 didn't cause them to be skipped.
1171         * tests/test-exclude5.sh: Exit with test-exclude's error status
1172         when that program fails.  Revamp to use init.sh.
1173         * tests/test-exclude2.sh: Likewise.
1174
1175         test-exclude: fix a typo
1176         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1177
1178 2011-11-11  Bruno Haible  <bruno@clisp.org>
1179
1180         obstack: Fix compilation error on MSVC 9.
1181         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1182
1183 2011-11-11  Jim Meyering  <meyering@redhat.com>
1184
1185         test-exclude: skip tests rather than failing on deficient systems
1186         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1187         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1188         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1189         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1190
1191 2011-11-10  Bruno Haible  <bruno@clisp.org>
1192
1193         ptsname_r test: Avoid gcc warning on glibc systems.
1194         * tests/test-ptsname_r.c (null_ptr): New function.
1195         (test_errors): Use it.
1196
1197 2011-11-10  Bruno Haible  <bruno@clisp.org>
1198
1199         ptsname_r: Avoid compilation error on OSF/1 5.1.
1200         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1202         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1203         function is not declared or incompatibly declared.
1204         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1205         * modules/ptsname_r (Depends-on, configure.ac): Update.
1206         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1207
1208 2011-11-10  Bruno Haible  <bruno@clisp.org>
1209
1210         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1211         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1212         When cross-compiling, guess yes on all platforms except AIX.
1213         Reported by Ludovic Courtès <ludo@gnu.org>.
1214
1215 2011-11-09  Bruno Haible  <bruno@clisp.org>
1216
1217         ptsname_r tests: Fix bugs.
1218         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1219         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1220
1221 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1222
1223         fstatat: work with cross-compilation
1224         Problem reported by Ludovic Courtès in
1225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1226         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1227         "cross-compiling" and assume the bug is present.  Replace
1228         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1229         an inverted sense, to be more conservative about our assumptions.
1230         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1231
1232 2011-11-09  Bruno Haible  <bruno@clisp.org>
1233
1234         Improve MODULES.html output.
1235         * modules/mkfifoat (Description): Use the word "function".
1236         * modules/readlinkat (Description): Likewise.
1237         * modules/symlinkat (Description): Likewise.
1238
1239 2011-11-09  Eric Blake  <eblake@redhat.com>
1240
1241         ptsname_r-tests: new test module
1242         * modules/ptsname_r-tests: New module.
1243         * tests/test-ptsname_r.c: New file.
1244
1245         ptsname_r: new module
1246         * modules/ptsname_r: New module.
1247         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1248         * lib/ptsname.c (__ptsname_r): Split...
1249         * lib/ptsname_r.c: ...into new file.
1250         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1251         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1252         * modules/stdlib (Makefile.am): Substitute witnesses.
1253         * lib/stdlib.in.h (ptsname_r): Declare it.
1254         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1255         * MODULES.html.sh (Misc): Likewise.
1256         * modules/ptsname (Depends-on): Alter dependency.
1257         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1258
1259 2011-11-09  Jim Meyering  <meyering@redhat.com>
1260
1261         announce-gen: be more concise when there's only one URL+tarball
1262         * build-aux/announce-gen (get_tool_versions): When you distribute
1263         only one type of tarball, combine the first two "Here are..."
1264         sections and make the key-checking grammar independent of
1265         how many tarballs there are.
1266
1267 2011-11-09  Eric Blake  <eblake@redhat.com>
1268
1269         openpty: provide a stub on mingw
1270         * lib/pty.in.h (includes): Provide forward declarations.
1271         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1272
1273         raise: fix mingw handling of SIGPIPE
1274         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1275
1276 2011-11-08  Bruno Haible  <bruno@clisp.org>
1277
1278         More conditional dependencies.
1279         * modules/faccessat (Depends-on): Add conditions.
1280         * modules/fchmodat (Depends-on): Likewise.
1281         * modules/fchownat (Depends-on): Likewise.
1282         * modules/fstatat (Depends-on): Likewise.
1283         * modules/mkfifoat (Depends-on): Likewise.
1284         * modules/readlinkat (Depends-on): Likewise.
1285         * modules/symlinkat (Depends-on): Likewise.
1286         * modules/unlinkat (Depends-on): Likewise.
1287         * modules/utimensat (Depends-on): Likewise.
1288         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1289         * modules/linkat (Depends-on): Refine the conditions.
1290         * modules/renameat (Depends-on): Likewise.
1291
1292 2011-11-08  Bruno Haible  <bruno@clisp.org>
1293
1294         faccessat: Move AC_LIBOBJ invocation to module description.
1295         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1296         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1297         invocation from here...
1298         * modules/faccessat (configure.ac): ... to here. Invoke
1299         gl_PREREQ_FACCESSAT.
1300
1301 2011-11-08  Bruno Haible  <bruno@clisp.org>
1302
1303         faccessat: Simplify autoconf macro.
1304         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1305         gl_FUNC_EUIDACCESS.
1306
1307 2011-11-08  Bruno Haible  <bruno@clisp.org>
1308
1309         renameat: Fix dependencies.
1310         * modules/renameat (Depends-on): Add stdbool.
1311
1312 2011-11-08  Bruno Haible  <bruno@clisp.org>
1313
1314         mkfifoat: Fix module description.
1315         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1316         not gl_UNISTD_MODULE_INDICATOR.
1317
1318 2011-11-08  Bruno Haible  <bruno@clisp.org>
1319
1320         fstatat: Remove unused dependency.
1321         * modules/fstatat (Depends-on): Remove fstat.
1322
1323 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1324
1325         GNUmakefile: behave when Makefile is missing.
1326         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1327
1328 2011-11-08  Bruno Haible  <bruno@clisp.org>
1329
1330         openat: Conditionalize dependencies.
1331         * lib/openat.c: Reduce the scope of some #includes.
1332         * modules/openat (Depends-on): Add conditions.
1333
1334 2011-11-07  Jim Meyering  <meyering@redhat.com>
1335
1336         maint.mk: extract GPG key ID without using a temporary file
1337         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1338         without using a temporary file.  Based on a suggestion from Werner Koch
1339         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1340
1341 2011-11-07  Eric Blake  <eblake@redhat.com>
1342
1343         grantpt: fix typo
1344         * lib/stdlib.in.h (grantpt): Check correct function.
1345
1346         maint.mk: silence new syntax check
1347         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1348
1349 2011-11-06  Bruno Haible  <bruno@clisp.org>
1350
1351         Doc about floating-point and math API.
1352         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1353         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1354
1355 2011-11-06  Bruno Haible  <bruno@clisp.org>
1356
1357         stdalign tests: Skip the test when compiled by Sun C.
1358         * tests/test-stdalign.c (main): Skip the test on Sun C.
1359
1360 2011-11-06  Bruno Haible  <bruno@clisp.org>
1361
1362         ansi-c++-opt: Complete the 2011-06-05 change.
1363         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1364         does not support namespaces, set the variable to "no", not to ":".
1365
1366 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1367
1368         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1369
1370 2011-11-06  Bruno Haible  <bruno@clisp.org>
1371
1372         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1373         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1374         (minus_zerol) [HP-UX]: New macro.
1375         (unary_minus) [HP-UX]: New function.
1376         (copysignl) [HP-UX]: Use unary_minus function.
1377
1378 2011-11-06  Bruno Haible  <bruno@clisp.org>
1379
1380         ldexp, ldexpf, ldexpl: Enhance tests.
1381         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1382         and tests/test-ldexpl.c.
1383         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1384         LDEXP, MIN_EXP, MAX_EXP): New macros.
1385         Include test-ldexp.h.
1386         (main): Just call test_function.
1387         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1388         infinity.h, nan.h.
1389         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1390         MAX_EXP): New macros.
1391         Include test-ldexp.h.
1392         (x, y): Remove variables.
1393         (main): Just call test_function.
1394         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1395         infinity.h, nan.h.
1396         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1397         MAX_EXP): New macros.
1398         Include test-ldexp.h.
1399         (x, y): Remove variables.
1400         (main): Just call test_function.
1401         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1402         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1403         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1404         (Depends-on): Add isnand-nolibm, signbit, float.
1405         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1406         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1407         (Depends-on): Add isnanf-nolibm, signbit, float.
1408
1409 2011-11-06  Bruno Haible  <bruno@clisp.org>
1410
1411         math tests: Cosmetics.
1412         * tests/test-math-c++.cc: Reorder declarations.
1413
1414 2011-11-05  Bruno Haible  <bruno@clisp.org>
1415
1416         fma*: Simplify test.
1417         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1418         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1419
1420         Tests for module 'fmal'.
1421         * modules/fmal-tests: New file.
1422         * tests/test-fmal1.c: New file.
1423         * tests/test-fmal2.c: New file.
1424
1425         New module 'fmal'.
1426         * lib/math.in.h (fmal): New declaration.
1427         * lib/fmal.c: New file.
1428         * m4/fmal.m4: New file.
1429         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1431         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1432         REPLACE_FMAL.
1433         * modules/fmal: New file.
1434         * doc/posix-functions/fmal.texi: Mention the new module and the various
1435         bugs.
1436
1437         Tests for module 'fmaf'.
1438         * modules/fmaf-tests: New file.
1439         * tests/test-fmaf1.c: New file.
1440         * tests/test-fmaf2.c: New file.
1441
1442         New module 'fmaf'.
1443         * lib/math.in.h (fmaf): New declaration.
1444         * lib/fmaf.c: New file.
1445         * m4/fmaf.m4: New file.
1446         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1448         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1449         REPLACE_FMAF.
1450         * modules/fmaf: New file.
1451         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1452         bugs.
1453
1454         Tests for module 'fma'.
1455         * modules/fma-tests: New file.
1456         * tests/test-fma1.c: New file.
1457         * tests/test-fma1.h: New file.
1458         * tests/test-fma2.c: New file.
1459         * tests/test-fma2.h: New file.
1460
1461         New module 'fma'.
1462         * lib/math.in.h (fma): New declaration.
1463         * lib/fma.c: New file.
1464         * m4/fma.m4: New file.
1465         * m4/fegetround.m4: New file.
1466         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1468         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1469         REPLACE_FMA.
1470         * modules/fma: New file.
1471         * doc/posix-functions/fma.texi: Mention the new module and the various
1472         bugs.
1473
1474         Extend gl_MATHFUNC.
1475         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1476         Support 'void' as argument type.
1477         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1478
1479 2011-11-05  Jim Meyering  <meyering@redhat.com>
1480
1481         maint.mk: also prohibit inclusion of dirent.h without use
1482         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1483
1484 2011-11-05  Bruno Haible  <bruno@clisp.org>
1485
1486         ldexpl tests: Avoid test failure on MSVC 9.
1487         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1488         value. Needed in order to enforce the conversion from a value greater
1489         than LDBL_MAX to Infinity.
1490
1491 2011-11-05  Bruno Haible  <bruno@clisp.org>
1492
1493         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1494         * modules/at-internal: New file, extracted from modules/openat.
1495         * modules/openat-h: New file.
1496         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1497         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1498         * modules/openat (Description): Add reference to POSIX function.
1499         (Files): Remove lib/openat.h, lib/openat-proc.c.
1500         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1501         intprops, unistd.
1502         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1503         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1504         gl_FCNTL_MODULE_INDICATOR.
1505         (Include): Remove unistd.h, openat.h.
1506         * modules/areadlinkat (Files): Add lib/at-func.c.
1507         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1508         openat-die, openat-h, save-cwd.
1509         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1510         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1511         openat-die, openat-h, save-cwd, unistd.
1512         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1513         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1514         openat-h, save-cwd. Remove fcntl-h, openat.
1515         * modules/fchmodat (Files): Remove lib/openat.h.
1516         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1517         openat, stdbool, unistd.
1518         * modules/fchownat (Files): Remove lib/openat.h.
1519         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1520         openat, stdbool, sys_stat.
1521         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1522         lib/openat-proc.c.
1523         (Depends-on): Add at-internal.
1524         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1525         * modules/fstatat (Files): Remove lib/openat.h.
1526         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1527         stdbool, unistd.
1528         * modules/fts (Depends-on): Add openat-h.
1529         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1530         openat.
1531         * modules/mkdirat (Files): Remove lib/openat.h.
1532         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1533         openat, stdbool, sys_stat.
1534         * modules/mkfifoat (Files): Add lib/at-func.c.
1535         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1536         openat-h, save-cwd. Remove fcntl-h, openat.
1537         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1538         * modules/readlinkat (Files): Add lib/at-func.c.
1539         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1540         openat-h, save-cwd. Remove fcntl-h, openat.
1541         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1542         openat.
1543         * modules/selinux-at (Files): Add lib/at-func.c.
1544         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1545         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1546         * modules/symlinkat (Files): Add lib/at-func.c.
1547         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1548         openat-h, save-cwd. Remove fcntl-h, openat.
1549         * modules/unlinkat (Files): Remove lib/openat.h.
1550         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1551         stdbool.
1552         * modules/utimensat (Files): Add lib/at-func.c.
1553         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1554         openat-die, openat-h, save-cwd.
1555         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1556         * modules/fdutimensat-tests (Depends-on): Add openat.
1557         * modules/fstatat-tests (Depends-on): Add openat-h.
1558         * modules/readlinkat-tests (Depends-on): Add openat.
1559         * modules/symlinkat-tests (Depends-on): Add openat.
1560
1561 2011-11-05  Bruno Haible  <bruno@clisp.org>
1562
1563         openat: Include <stdbool.h>.
1564         * lib/openat.c: Include <stdbool.h>.
1565
1566 2011-11-04  Bruno Haible  <bruno@clisp.org>
1567
1568         fchownat, renameat, unlinkat: Fix dependencies.
1569         * modules/fchownat (Depends-on): Add fstatat.
1570         * modules/renameat (Depends-on): Likewise.
1571         * modules/unlinkat (Depends-on): Likewise.
1572
1573 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1574
1575         openat: remove direct dependency on dirent
1576         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1577         and hasn't been needed ever since fdopendir was split into its own
1578         module on 2009-08-31.
1579         * modules/openat (Depends-on): Remove dirent.
1580
1581 2011-11-04  Bruno Haible  <bruno@clisp.org>
1582
1583         renameat: Optimize code size.
1584         * modules/renameat (configure.ac): Don't compile at-func2.c if
1585         REPLACE_RENAMEAT is 1.
1586
1587 2011-11-04  Bruno Haible  <bruno@clisp.org>
1588
1589         openat tests: Fix file list.
1590         * modules/openat-tests (Files): Add tests/test-open.h.
1591
1592 2011-11-04  Bruno Haible  <bruno@clisp.org>
1593
1594         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1595         * modules/fchmodat (Depends-on): Add openat-die.
1596         * modules/fchownat (Depends-on): Likewise.
1597         * modules/linkat (Depends-on): Likewise.
1598         * modules/renameat (Depends-on): Likewise.
1599         * modules/openat (Depends-on): Add dirent.
1600
1601 2011-11-04  Jim Meyering  <meyering@redhat.com>
1602
1603         at-func*.c: fix comments
1604         * lib/at-func2.c: Correct/improve first-line comment.
1605         * lib/at-func.c: Correct grammar in first-line comment.
1606
1607 2011-11-04  Bruno Haible  <bruno@clisp.org>
1608
1609         New module 'mkdirat', split off from module 'openat'.
1610         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1611         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1612         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1613         * modules/mkdirat: New file, extracted from modules/openat.
1614         * modules/openat (Files): Remove lib/mkdirat.c.
1615         (Depends-on): Remove mkdir.
1616         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1617         (Include): Remove <sys/stat.h>.
1618         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1619         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1620         tests/test-mkdir.h.
1621         (Depends-on): Remove ignore-value.
1622         (Makefile.am): Remove rules for test-mkdirat.
1623         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1624         of module 'openat'.
1625         * NEWS: Mention the change.
1626
1627 2011-11-04  Bruno Haible  <bruno@clisp.org>
1628
1629         closedir: Avoid warning on mingw.
1630         * lib/closedir.c: Include <unistd.h>.
1631
1632 2011-11-04  Bruno Haible  <bruno@clisp.org>
1633
1634         New module 'fstatat', split off from module 'openat'.
1635         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1636         defined.
1637         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1638         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1639         gl_FUNC_FSTATAT.
1640         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1641         * modules/fstatat: New file, extracted from modules/openat.
1642         * modules/openat (Files): Remove lib/fstatat.c.
1643         (Depends-on): Remove lstat.
1644         (configure.ac): Remove AC_LIBOBJ of fstatat.
1645         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1646         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1647         tests/test-lstat.h, tests/test-stat.h.
1648         (Depends-on): Remove getcwd-lgpl.
1649         (Makefile.am): Remove rules for test-fstatat.
1650         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1651         of module 'openat'.
1652         * NEWS: Mention the change.
1653         * modules/getcwd (Depends-on): Add fstatat.
1654         * modules/linkat (Depends-on): Likewise.
1655         * modules/mkfifoat-tests (Depends-on): Likewise.
1656         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1657
1658 2011-11-03  Bruno Haible  <bruno@clisp.org>
1659
1660         New module 'unlinkat', split off from module 'openat'.
1661         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1662         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1663         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1664         * modules/unlinkat: New file, extracted from modules/openat. Correct
1665         the dependency conditions.
1666         * modules/openat (Files): Remove lib/unlinkat.c.
1667         (Depends-on): Remove rmdir, unlink.
1668         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1669         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1670         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1671         tests/test-rmdir.h, tests/test-unlink.h.
1672         (Depends-on): Remove unlinkdir.
1673         (Makefile.am): Remove rules for test-unlinkat.
1674         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1675         of module 'openat'.
1676         * NEWS: Mention the change.
1677         * modules/linkat-tests (Depends-on): Add unlinkat.
1678         * modules/mkfifoat-tests (Depends-on): Likewise.
1679         * modules/readlinkat-tests (Depends-on): Likewise.
1680
1681 2011-11-02  Bruno Haible  <bruno@clisp.org>
1682
1683         New module 'fchmodat', split off from module 'openat'.
1684         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1685         defined.
1686         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1687         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1688         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1689         * modules/fchmodat: New file, extracted from modules/openat.
1690         * modules/openat (Files): Remove lib/fchmodat.c.
1691         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1692         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1693         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1694         (Makefile.am): Remove rules for test-fchmodat.
1695         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1696         of module 'openat'.
1697         * NEWS: Mention the change.
1698
1699 2011-11-02  Jim Meyering  <meyering@redhat.com>
1700
1701         putenv: indent #definition of "environ" to placate cppi
1702         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1703
1704         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1705         Git logs are often treated as immutable, because editing them
1706         changes the SHA1 checksums of all descendants.  Thus, errors in
1707         git logs tend to stay there forever.  However, when we generate
1708         a ChangeLog file -- typically for distribution -- from that git log,
1709         we can actually make corrections in the generated file.  The key
1710         lies in recording in machine-readable/applicable form the desired
1711         corrections.  See --help for description and an example.
1712         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1713         (usage): Describe it; alphabetize option descriptions.
1714         (main): Honor the new option, carefully.
1715
1716 2011-11-01  Jim Meyering  <meyering@redhat.com>
1717
1718         gitlog-to-changelog: avoid an infloop
1719         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1720         that ends up being empty.
1721
1722 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1723
1724         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1725         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1726         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1727         contains (possibly-quoted) backslashes.  This should avoid
1728         all-too-common shell bugs if COMPLICATED contains backslashes in
1729         the "wrong" places.  Reported by David Evans in
1730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1731         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1732         because we want ASCII ranges.  Is there some reason we don't use
1733         the C locale everywhere in this script?
1734         (func_module, top level): Avoid unwanted pathname expansion when
1735         $repo_url_prefix or $repo_url_suffix_repl contain shell
1736         metacharacters like '?' and '*'.
1737
1738 2011-11-01  Bruno Haible  <bruno@clisp.org>
1739
1740         fchownat: Improve description.
1741         * modules/fchownat (Description): Add link to function.
1742
1743 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1744
1745         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1746         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1748         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1749
1750 2011-11-01  Bruno Haible  <bruno@clisp.org>
1751
1752         alignof: Avoid collision with stdalign module.
1753         * lib/alignof.h (alignof): Remove macro.
1754         * NEWS: Mention the change.
1755         Reported by Paul Eggert.
1756
1757 2011-11-01  Bruno Haible  <bruno@clisp.org>
1758
1759         New module 'fchownat', split off from module 'openat'.
1760         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1761         defined.
1762         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1763         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1764         invoke gl_FUNC_FCHOWNAT.
1765         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1766         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1767         * modules/fchownat: New file, extracted from modules/openat.
1768         * modules/openat (Files): Remove lib/fchownat.c.
1769         (Depends-on): Remove lchown.
1770         (configure.ac): Remove AC_LIBOBJ of fchownat.
1771         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1772         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1773         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1774         (Depends-on): Remove mgetgroups, usleep, stat-time.
1775         (configure.ac): Remove test for getegid.
1776         (Makefile.am): Remove rules for test-fchownat.
1777         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1778         of module 'openat'.
1779         * NEWS: Mention the change.
1780
1781 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1782
1783         stdalign: port better to MSVC and to Sun C 5.11
1784         This fixes some of the problems reported by Bruno Haible in
1785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1786         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1787         shortcomings of MSVC and of Sun C 5.11.
1788         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1789         around __declspec arg.
1790         * modules/stdalign-tests (Files): Add tests/macros.h.
1791         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1792         Include macros.h, for ASSERT.
1793         (DECLARE_ALIGNED): Remove.
1794         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1795         to catch bug), and to 1 if not (simplifies the rest of the code).
1796         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1797         (CHECK_AUTO): Remove.
1798         (CHECK_ALIGNED): Check only the alignment of the static vars,
1799         since auto var alignment isn't supported by Sun C 5.11.
1800         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1801         ASSERT failures are easier to diagnose.
1802
1803 2011-10-31  Bruno Haible  <bruno@clisp.org>
1804
1805         doc about some IRIX 5.3 problems.
1806         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1807         on IRIX 5.3.
1808         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1809         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1810         5.3.
1811         * doc/posix-functions/grantpt.texi: Likewise.
1812         * doc/posix-functions/unlockpt.texi: Likewise.
1813         * doc/posix-functions/lgamma.texi: Likewise.
1814         * doc/posix-functions/nextafter.texi: Likewise.
1815         * doc/posix-functions/remainder.texi: Likewise.
1816         * doc/posix-functions/select.texi: Mention misplaced declaration on
1817         IRIX 5.3.
1818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1819
1820 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1821
1822         gitlog-to-changelog: fix git-log invocation.
1823         git-log mishandles date strings before 1970-01-01 UTC, and there is
1824         no use to specify --since=1970-01-01 by default anyway.
1825         * build-aux/gitlog-to-changelog: By default, when no --since option
1826         was given, do not specify explicit --since option to git-log.
1827
1828 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1829
1830         gitlog-to-changelog: new option --append-dot.
1831         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1832         first non-blank line of each commit message terminated with a dot.
1833
1834 2011-10-30  Bruno Haible  <bruno@clisp.org>
1835
1836         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1837         * lib/ffsl.h: Include <config.h>.
1838         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1839
1840 2011-10-30  Jim Meyering  <meyering@redhat.com>
1841
1842         GNUmakefile: reenable "make syntax-check" for most projects
1843         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1844         build-aux variable", "syntax-check" would do nothing but succeed with
1845         the "No version control files detected..." diagnostic (unless you
1846         happened to override _build-aux via cfg.mk).
1847         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1848         to precede inclusion of maint.mk.  Otherwise, these variables would
1849         be used undefined in any project that does not override the default.
1850
1851 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1852
1853         gitlog-to-changelog: treat a message with only blank lines as empty.
1854         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1855         trailing blank lines before the code that issues a warning about an
1856         empty commit message.
1857
1858 2011-10-30  Jim Meyering  <meyering@redhat.com>
1859
1860         test-parse-datetime.c: avoid new DST-related false positive test failure
1861         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1862         based on the time/date we'll convert, not the current time.
1863         Otherwise, the moment we cross a DST boundary like today's in
1864         Europe, (CEST to CET), that offset ends up being one hour off.
1865
1866 2011-10-27  Bruno Haible  <bruno@clisp.org>
1867
1868         fstat: Tweak documentation.
1869         * modules/fstat (Description): More precise description.
1870
1871 2011-10-27  Bruno Haible  <bruno@clisp.org>
1872
1873         Update documentation regarding 'largefile' module.
1874         * doc/posix-functions/fstat.texi: Tweak wording.
1875         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1876         problems with huge directories and/or small ino_t types.
1877         * doc/posix-functions/readdir.texi: Likewise.
1878         * doc/posix-functions/rewinddir.texi: Likewise.
1879
1880 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1881
1882         maint.mk: don't maintain a second build-aux variable.
1883         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1884         depends on GNUmakefile, which already maintains a cfg.mk
1885         overridable $(_build-aux) for projects with a non-standard
1886         build-aux directory location, although without the $(srcdir)
1887         prefix.  Use that variable consistently instead of introducing a
1888         second one.  Adjust all call sites.
1889
1890 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1891
1892         Add stdalign module and use it in other modules.
1893         This is based on a previous proposal by Bruno Haible
1894         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1895
1896         stdalign: new module
1897         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1898         * modules/stdalign: New files.
1899         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1900         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1901
1902         stdalign-tests: new module
1903         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1904
1905         argp: use stdalign
1906         * lib/argp-parse.c: Include <stdalign.h>.
1907         (alignof): Remove.
1908         * modules/argp (Depends-on): Add stdalign.
1909
1910         crypto libraries: use stdalign
1911         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1912         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1913         Do not include <stdlib.h> twice, in md4.c.
1914         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1915         because we are accessing a pointer's bit-pattern, not a size.
1916         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1917         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1918         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1919         * modules/crypto/sha512: Likewise.
1920
1921         sys_socket: use stdalign, not alignof
1922         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1923         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1924
1925 2011-10-27  Bruno Haible  <bruno@clisp.org>
1926
1927         raise test: Avoid a test failure on Linux/MIPS.
1928         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1929         because 99 is a valid signal on Linux/MIPS.
1930
1931 2011-10-27  Bruno Haible  <bruno@clisp.org>
1932
1933         nonblocking tests: Fix test failure on Linux/MIPS.
1934         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1935         Set to 270000.
1936
1937 2011-10-27  Bruno Haible  <bruno@clisp.org>
1938
1939         utimensat: Work around problem on Linux/hppa.
1940         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1941         values.
1942         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1943
1944 2011-10-25  Jim Meyering  <meyering@redhat.com>
1945
1946         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1947         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1948         after symbols like NULL, size_t, etc.
1949         Reported by Alfred M. Szmidt.
1950
1951         maint.mk: exempt ENODATA from a syntax-check rule
1952         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1953         from the sc_prohibit_always-defined_macros syntax-check rule.
1954         Add a comment.  See this for more details:
1955         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1956
1957 2011-10-23  Jim Meyering  <meyering@redhat.com>
1958
1959         fts: close parent dir FD before returning from post-traversal fts_read
1960         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1961         unlink A, even though an FD open on A remained.  This is suboptimal
1962         (holding a file descriptor open longer than needed), but otherwise not
1963         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1964         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1965         that represents a real problem: it causes the removal of A to fail
1966         with e.g., "rm: cannot remove `A': Device or resource busy"
1967
1968         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1969         directory file descriptors.  After completing the final, FTS_DP,
1970         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1971         cache, but then proceeded to add a new FD to it via the subsequent
1972         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1973         final file descriptor would be closed only via fts_close's call to
1974         fd_ring_clear.  Now, it is usually closed earlier, via the final
1975         FTS_DP-returning fts_read call.
1976         * lib/fts.c (restore_initial_cwd): New function, converted from
1977         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1978         Update callers.
1979         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1980         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1981
1982 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1983             Bruno Haible  <bruno@clisp.org>
1984             Jim Meyering  <jim@meyering.net>
1985
1986         readme-release: improve safety of release prep instructions.
1987         * README-release: Don't git pull all branches when only master
1988         is needed for the release process.
1989         Run make maintainer-clean before changing trees and merging.
1990         Don't try to run ./configure right after git pull in case files
1991         that influence the bootstrap process have changed, move the
1992         ./configure step to after running ./bootstrap.
1993         Don't bootstrap "one last time"... it's the first time!
1994
1995 2011-10-22  Bruno Haible  <bruno@clisp.org>
1996
1997         errno, strerror-override: Support for MSVC 10.
1998         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1999         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2000         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2001         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2002         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2003         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2004         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2005         Assign values compatible with MSVC 10.
2006         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2007         New macros.
2008         (GNULIB_defined_EWINSOCK): New macro.
2009         * lib/strerror-override.c (strerror_override): Update accordingly.
2010         * lib/strerror-override.h: Likewise.
2011         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2012         longer equal to the corresponding errno value.
2013         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2014
2015 2011-10-22  Bruno Haible  <bruno@clisp.org>
2016
2017         perror: Recognize when test program crashes.
2018         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2019         strerror, set gl_cv_func_perror_works to no.
2020         Reported by Daniel Richard G. <skunk@iskunk.org>.
2021
2022         perror: Fix indentation.
2023         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2024
2025 2011-10-22  Bruno Haible  <bruno@clisp.org>
2026
2027         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2028         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2029         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2030         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2031         functions, not as a macro.
2032         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2033         macros.
2034         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2035         absence of macro.
2036         Suggested by Eric Blake.
2037         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2038
2039 2011-10-21  Bruno Haible  <bruno@clisp.org>
2040
2041         relocatable-prog-wrapper: Don't leave object files behind.
2042         * build-aux/install-reloc: Re-synchronize list of .o files to be
2043         removed with list of compilation units.
2044
2045 2011-10-20  Bruno Haible  <bruno@clisp.org>
2046
2047         openpty, posix_openpt: Remove code duplication.
2048         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2049         * lib/openpty.c: Include <stdlib.h>.
2050         (openpty): Use posix_openpt on all platforms except IRIX.
2051         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2052
2053 2011-10-20  Bruno Haible  <bruno@clisp.org>
2054
2055         unlockpt: Detect invalid argument.
2056         * lib/unlockpt.c: Include <fcntl.h>.
2057         (unlockpt): Check whether fd is valid, using fcntl().
2058         * modules/unlockpt (Depends-on): Add fcntl-h.
2059
2060 2011-10-20  Bruno Haible  <bruno@clisp.org>
2061
2062         openpty: Avoid compilation error on AIX 6.1.
2063         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2064
2065 2011-10-20  Bruno Haible  <bruno@clisp.org>
2066
2067         posix_openpt: Support for OpenBSD.
2068         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2069         (posix_openpt) [OpenBSD]: New code.
2070         * lib/grantpt.c: Include <fcntl.h>.
2071         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2072         * modules/grantpt (Depends-on): Add fcntl-h.
2073
2074 2011-10-20  Bruno Haible  <bruno@clisp.org>
2075
2076         posix_openpt test: Coding style.
2077         * tests/test-posix_openpt.c: Use GNU coding style.
2078
2079 2011-10-20  Bruno Haible  <bruno@clisp.org>
2080
2081         grantpt: Support --avoid=pt_chown.
2082         * modules/grantpt (Files): Add lib/pty-private.h.
2083
2084 2011-10-20  Bruno Haible  <bruno@clisp.org>
2085
2086         posix_openpt: Fix autoconf macro.
2087         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2088         unneeded check for _getpty.
2089
2090 2011-10-20  Bruno Haible  <bruno@clisp.org>
2091
2092         openpty: Update comments.
2093         * lib/openpty.c: Add comments about Minix.
2094
2095 2011-10-19  Eric Blake  <eblake@redhat.com>
2096
2097         openpty: relax license
2098         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2099
2100         pt_chown: use configmake to simplify build
2101         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2102
2103         ptsname and others: relax license
2104         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2105         * modules/unlockpt (License): Likewise.
2106         * modules/pt_chown (License): Likewise.
2107         * modules/ptsname (License): Likewise.
2108         * modules/ttyname_r (License): Likewise.
2109
2110 2011-10-19  Jim Meyering  <meyering@redhat.com>
2111
2112         posix_openpt: remove spurious #endif
2113         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2114
2115 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2116
2117         maint.mk: Respect $(build_aux) in web-manual rule.
2118         * top/maint.mk (web-manual): Find gen-announce script in user's
2119         $(build_aux) directory instead of hard-coding 'build-aux'.
2120
2121 2011-10-19  Bruno Haible  <bruno@clisp.org>
2122
2123         posix_openpt: Fix compilation error.
2124         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2125         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2126         Mention the openpty module as an alternative.
2127
2128 2011-10-19  Bruno Haible  <bruno@clisp.org>
2129
2130         Support for old NeXTstep 3.3 frexp().
2131         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2132         execution time of the test to 5 seconds.
2133         Reported by Daniel Richard G. <skunk@iskunk.org>.
2134
2135 2011-10-19  Bruno Haible  <bruno@clisp.org>
2136
2137         Support for old NeXTstep 3.3 sed.
2138         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2139         part, use /.../, not \|...|. Escape periods in the header file name.
2140         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2141         Reported by Daniel Richard G. <skunk@iskunk.org>.
2142
2143 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2144
2145         Support for old NeXTstep 3.3 gcc.
2146         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2147         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2148         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2149         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2150         * lib/regex.h (_Restrict_arr_): Likewise.
2151         * lib/regex_internal.h (re_token_t): Likewise.
2152         * lib/regexec.c (check_node_accept_bytes): Likewise.
2153         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2154
2155 2011-10-18  Eric Blake  <eblake@redhat.com>
2156
2157         posix_openpt: new module
2158         * modules/posix_openpt: New module.
2159         * m4/posix_openpt.m4: New file.
2160         * lib/posix_openpt.c: Likewise.
2161         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2162         (gl_STDLIB_H_DEFAULTS): Set defaults.
2163         * modules/stdlib (Makefile.am): Substitute macros.
2164         * lib/stdlib.in.h (posix_openpt): Declare.
2165         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2166         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2167         * modules/posix_openpt-tests: New test module.
2168         * tests/test-posix_openpt.c: New test.
2169
2170 2011-10-15  Bruno Haible  <bruno@clisp.org>
2171
2172         xstrtoll: Fix compilation failure.
2173         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2174         from lib/strtol.c.
2175         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2176         some platforms.
2177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2178
2179 2011-10-15  Bruno Haible  <bruno@clisp.org>
2180
2181         vasnprintf: Optimize bit search operation.
2182         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2184         gl_DOUBLE_EXPONENT_LOCATION.
2185         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2186         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2187         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2188         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2189         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2190         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2191         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2192         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2193         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2194
2195 2011-10-15  Bruno Haible  <bruno@clisp.org>
2196
2197         vasnprintf: Fix comments.
2198         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2199
2200 2011-10-14  Bruno Haible  <bruno@clisp.org>
2201
2202         Tests for module 'integer_length_ll'.
2203         * modules/integer_length_ll-tests: New file.
2204         * tests/test-integer_length_ll.c: New file.
2205
2206         New module 'integer_length_ll'.
2207         * lib/integer_length_ll.c: New file.
2208         * modules/integer_length_ll: New file.
2209
2210 2011-10-14  Bruno Haible  <bruno@clisp.org>
2211
2212         Tests for module 'integer_length_l'.
2213         * modules/integer_length_l-tests: New file.
2214         * tests/test-integer_length_l.c: New file.
2215
2216         New module 'integer_length_l'.
2217         * lib/integer_length_l.c: New file.
2218         * modules/integer_length_l: New file.
2219
2220 2011-10-14  Bruno Haible  <bruno@clisp.org>
2221
2222         Tests for module 'integer_length'.
2223         * modules/integer_length-tests: New file.
2224         * tests/test-integer_length.c: New file.
2225
2226         New module 'integer_length'.
2227         * lib/integer_length.h: New file.
2228         * lib/integer_length.c: New file.
2229         * modules/integer_length: New file.
2230
2231 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2232
2233         popen: Fix dependency conditions.
2234         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2235
2236 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2237
2238         perror: Fix autoconf test.
2239         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2240         <stdlib.h> and <string.h>.
2241
2242 2011-10-14  Bruno Haible  <bruno@clisp.org>
2243
2244         ffsl: Optimize on 64-bit platforms.
2245         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2246         unrolling.
2247
2248 2011-10-13  Bruno Haible  <bruno@clisp.org>
2249
2250         ffsl: Optimize on 32-bit platforms.
2251         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2252         use ffs() without a loop.
2253
2254         ffsl, ffsll: Optimize for GCC.
2255         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2256         * lib/ffsl.c (GCC_BUILTIN): New macro.
2257         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2258
2259 2011-10-13  Bruno Haible  <bruno@clisp.org>
2260
2261         ffs, bcopy, memset: Support symbol renaming via config.h.
2262         * lib/ffs.c: Include <config.h>.
2263         * lib/bcopy.c: Likewise.
2264         * lib/memset.c: Likewise.
2265
2266 2011-10-10  Bruno Haible  <bruno@clisp.org>
2267
2268         atanl: Simplify for platforms where 'long double' == 'double'.
2269         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2270         alternative implementation.
2271         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2272         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2273         * modules/atanl (Depends-on): Add atan. Update conditions.
2274
2275 2011-10-10  Bruno Haible  <bruno@clisp.org>
2276
2277         acosl: Simplify for platforms where 'long double' == 'double'.
2278         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2279         alternative implementation.
2280         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2281         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2282         * modules/acosl (Depends-on): Add acos. Update conditions.
2283
2284 2011-10-10  Bruno Haible  <bruno@clisp.org>
2285
2286         asinl: Simplify for platforms where 'long double' == 'double'.
2287         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2288         alternative implementation.
2289         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2290         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2291         * modules/asinl (Depends-on): Add asin. Update conditions.
2292
2293 2011-10-10  Bruno Haible  <bruno@clisp.org>
2294
2295         tanl: Simplify for platforms where 'long double' == 'double'.
2296         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2297         implementation.
2298         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2299         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2300         * modules/tanl (Depends-on): Add tan. Update conditions.
2301         (configure.ac): Don't compile trigl.c if
2302         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2303
2304 2011-10-10  Bruno Haible  <bruno@clisp.org>
2305
2306         cosl: Simplify for platforms where 'long double' == 'double'.
2307         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2308         implementation.
2309         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2310         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2311         * modules/cosl (Depends-on): Add cos. Update conditions.
2312         (configure.ac): Don't compile sincosl.c and trigl.c if
2313         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2314
2315 2011-10-10  Bruno Haible  <bruno@clisp.org>
2316
2317         sinl: Simplify for platforms where 'long double' == 'double'.
2318         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2319         implementation.
2320         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2321         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2322         * modules/sinl (Depends-on): Add sin. Update conditions.
2323         (configure.ac): Don't compile sincosl.c and trigl.c if
2324         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2325
2326 2011-10-10  Bruno Haible  <bruno@clisp.org>
2327
2328         logl: Simplify for platforms where 'long double' == 'double'.
2329         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2330         implementation.
2331         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2332         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2333         * modules/logl (Depends-on): Add log. Update conditions.
2334
2335 2011-10-10  Bruno Haible  <bruno@clisp.org>
2336
2337         expl: Simplify for platforms where 'long double' == 'double'.
2338         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2339         implementation.
2340         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2341         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2342         * modules/expl (Depends-on): Add exp. Update conditions.
2343
2344 2011-10-10  Bruno Haible  <bruno@clisp.org>
2345
2346         sqrtl: Simplify for platforms where 'long double' == 'double'.
2347         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2348         alternative implementation.
2349         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2350         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2351         * modules/sqrtl (Depends-on): Update conditions.
2352
2353 2011-10-10  Bruno Haible  <bruno@clisp.org>
2354
2355         ldexpl: Simplify for platforms where 'long double' == 'double'.
2356         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2357         alternative implementation.
2358         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2359         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2360         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2361
2362 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2363
2364         ffsll: set correct witness
2365         * modules/ffsll (configure.ac): Fix typo.
2366
2367 2011-10-10  Bruno Haible  <bruno@clisp.org>
2368
2369         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2370         * lib/printf-frexpl.c: Include <config.h>.
2371         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2372         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2373         second time.
2374         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2375         gl_LONG_DOUBLE_VS_DOUBLE.
2376         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2377         conditions.
2378
2379 2011-10-10  Bruno Haible  <bruno@clisp.org>
2380
2381         frexpl: Simplify for platforms where 'long double' == 'double'.
2382         * lib/frexpl.c: Include <config.h>.
2383         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2384         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2385         time.
2386         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2387         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2388         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2389         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2390         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2391         conditions.
2392
2393 2011-10-10  Jim Meyering  <meyering@redhat.com>
2394
2395         test-renameat: don't leave behind a temporary file
2396         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2397           ERROR: files left in build directory after distclean:
2398           ./gltests/test-renameat.too
2399           make[1]: *** [distcleancheck] Error 1
2400         Reported by Tom G. Christensen.
2401
2402 2011-10-09  Bruno Haible  <bruno@clisp.org>
2403
2404         rint: Determine RINT_LIBM correctly on AIX 7.
2405         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2406         directly, not only through a function pointer. Also accept an optional
2407         4th argument with extra code.
2408         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2409         rintf() call by gcc when optimizing.
2410
2411         mathfunc.m4: Refactor.
2412         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2413         m4 variable.
2414
2415 2011-10-09  Bruno Haible  <bruno@clisp.org>
2416
2417         rintl: Simplify for platforms where 'long double' == 'double'.
2418         * lib/rintl.c: Include <config.h>.
2419         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2420         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2421         time.
2422         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2423         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2424         * modules/rintl (Depends-on): Add rint. Update conditions.
2425
2426 2011-10-09  Bruno Haible  <bruno@clisp.org>
2427
2428         roundl: Simplify for platforms where 'long double' == 'double'.
2429         * lib/roundl.c: Include <config.h>.
2430         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2431         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2432         time.
2433         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2434         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2435         * modules/roundl (Depends-on): Add round. Update conditions.
2436
2437 2011-10-09  Bruno Haible  <bruno@clisp.org>
2438
2439         truncl: Simplify for platforms where 'long double' == 'double'.
2440         * lib/truncl.c: Include <config.h>.
2441         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2442         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2443         time.
2444         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2445         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2446         * modules/truncl (Depends-on): Add trunc. Update conditions.
2447
2448 2011-10-09  Bruno Haible  <bruno@clisp.org>
2449
2450         ceill: Simplify for platforms where 'long double' == 'double'.
2451         * lib/ceill.c: Include <config.h>.
2452         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2453         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2454         time.
2455         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2456         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2457         * modules/ceill (Depends-on): Add ceil. Update conditions.
2458
2459 2011-10-09  Bruno Haible  <bruno@clisp.org>
2460
2461         floorl: Simplify for platforms where 'long double' == 'double'.
2462         * lib/floorl.c: Include <config.h>.
2463         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2464         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2465         time.
2466         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2467         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2468         * modules/floorl (Depends-on): Add floor. Update conditions.
2469
2470 2011-10-09  Bruno Haible  <bruno@clisp.org>
2471
2472         rint: Fix ordering constraints.
2473         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2474         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2475         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2476
2477 2011-10-09  Bruno Haible  <bruno@clisp.org>
2478
2479         copysignl: Simplify for platforms where 'long double' == 'double'.
2480         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2481         alternative.
2482         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2483         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2484         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2485
2486 2011-10-09  Bruno Haible  <bruno@clisp.org>
2487
2488         Tests for module 'rintl'.
2489         * modules/rintl-tests: New file.
2490         * tests/test-rintl.c: New file.
2491
2492         New module 'rintl'.
2493         * lib/math.in.h (rintl): New declaration.
2494         * lib/rintl.c: New file.
2495         * m4/rintl.m4: New file.
2496         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2498         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2499         * modules/rintl: New file.
2500         * tests/test-math-c++.cc: Check the declaration of rintl.
2501         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2502         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2503         * doc/posix-functions/rintl.texi: Mention the new module.
2504
2505 2011-10-09  Bruno Haible  <bruno@clisp.org>
2506
2507         Tests for module 'rintf'.
2508         * modules/rintf-tests: New file.
2509         * tests/test-rintf.c: New file.
2510
2511         New module 'rintf'.
2512         * lib/math.in.h (rintf): New declaration.
2513         * lib/rintf.c: New file.
2514         * m4/rintf.m4: New file.
2515         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2517         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2518         * modules/rintf: New file.
2519         * tests/test-math-c++.cc: Check the declaration of rintf.
2520         * doc/posix-functions/rintf.texi: Mention the new module.
2521
2522 2011-10-09  Bruno Haible  <bruno@clisp.org>
2523
2524         rint: Support for MSVC.
2525         * lib/math.in.h (rint): New declaration.
2526         * lib/rint.c: New file.
2527         * m4/rint.m4: New file.
2528         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2530         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2531         * modules/rint (Description): Fix.
2532         (Files): Add lib/rint.c, m4/rint.m4.
2533         (Depends-on): Add math.
2534         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2535         gl_MATH_MODULE_INDICATOR.
2536         * tests/test-math-c++.cc: Check the declaration of rint.
2537         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2538         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2539         * doc/posix-functions/rint.texi: Mention the replacement provided by
2540         the module.
2541
2542         rint tests: More tests.
2543         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2544         minus-zero.h, infinity.h, nan.h.
2545         (main): Skip the test if the current rounding mode is not standard. Add
2546         tests for negative numbers, minus zero, infinity, NaN.
2547         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2548         tests/nan.h.
2549         (Depends-on): Add isnand-nolibm.
2550
2551 2011-10-09  Bruno Haible  <bruno@clisp.org>
2552
2553         Tests for module 'copysignl'.
2554         * modules/copysignl-tests: New file.
2555         * tests/test-copysignl.c: New file.
2556
2557         New module 'copysignl'.
2558         * lib/math.in.h (copysignl): New declaration.
2559         * lib/copysignl.c: New file.
2560         * m4/copysignl.m4: New file.
2561         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2563         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2564         HAVE_COPYSIGNL.
2565         * modules/copysignl: New file.
2566         * tests/test-math-c++.cc: Check the declaration of copysignl.
2567         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2568         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2569         * doc/posix-functions/copysignl.texi: Mention the new module.
2570
2571 2011-10-09  Bruno Haible  <bruno@clisp.org>
2572
2573         Tests for module 'copysignf'.
2574         * modules/copysignf-tests: New file.
2575         * tests/test-copysignf.c: New file.
2576
2577         New module 'copysignf'.
2578         * lib/math.in.h (copysignf): New declaration.
2579         * lib/copysignf.c: New file.
2580         * m4/copysignf.m4: New file.
2581         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2583         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2584         HAVE_COPYSIGNF.
2585         * modules/copysignf: New file.
2586         * tests/test-math-c++.cc: Check the declaration of copysignf.
2587         * doc/posix-functions/copysignf.texi: Mention the new module.
2588
2589 2011-10-09  Bruno Haible  <bruno@clisp.org>
2590
2591         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2592         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2593         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2594         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2595         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2596         gl_SIGNAL_H_DEFAULTS.
2597
2598 2011-10-09  Bruno Haible  <bruno@clisp.org>
2599
2600         poll: Make macro safer.
2601         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2602         ac_cv_header_poll_h is not set.
2603
2604 2011-10-09  Bruno Haible  <bruno@clisp.org>
2605
2606         copysign: Provide replacement.
2607         * lib/math.in.h (copysign): New declaration.
2608         * lib/copysign.c: New file.
2609         * m4/copysign.m4: New file.
2610         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2612         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2613         HAVE_COPYSIGN.
2614         * modules/copysign (Description): Clarify.
2615         (Files): Add lib/copysign.c, m4/copysign.m4.
2616         (Depends-on): Add math, signbit.
2617         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2618         gl_MATH_MODULE_INDICATOR.
2619         * tests/test-math-c++.cc: Check the declaration of copysign.
2620         * doc/posix-functions/copysign.texi: Mention the effects of the module
2621         on Minix and MSVC.
2622
2623 2011-10-09  Bruno Haible  <bruno@clisp.org>
2624
2625         isinf: Ensure macro on AIX 5.1.
2626         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2627         macro.
2628         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2629
2630 2011-10-09  Bruno Haible  <bruno@clisp.org>
2631
2632         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2633         * modules/snprintf-posix-tests (configure.ac): Require
2634         gl_LONG_DOUBLE_VS_DOUBLE.
2635         * modules/sprintf-posix-tests (configure.ac): Likewise.
2636         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2637         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2638         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2639         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2640         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2641         tests on platforms where 'long double' is the same as 'double'.
2642         * tests/test-sprintf-posix.h (test_function): Likewise.
2643         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2644         * tests/test-vasprintf-posix.c (test_function): Likewise.
2645
2646         *printf: Fix for platforms where 'long double' == 'double'.
2647         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2648         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2649         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2650         * modules/fprintf-posix (Files): Likewise.
2651         * modules/obstack-printf-posix (Files): Likewise.
2652         * modules/snprintf-posix (Files): Likewise.
2653         * modules/sprintf-posix (Files): Likewise.
2654         * modules/vasnprintf (Files): Likewise.
2655         * modules/vasnprintf-posix (Files): Likewise.
2656         * modules/vasprintf-posix (Files): Likewise.
2657         * modules/vdprintf-posix (Files): Likewise.
2658         * modules/vfprintf-posix (Files): Likewise.
2659         * modules/vsnprintf-posix (Files): Likewise.
2660         * modules/vsprintf-posix (Files): Likewise.
2661         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2662         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2663         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2664         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2665         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2666         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2667         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2668
2669         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2670         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2671         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2672         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2673         'long double'.
2674         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2675
2676         isinf: Fix for platforms where 'long double' == 'double'.
2677         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2678         Don't blindly assume 80-bit 'long double'.
2679
2680         isfinite: Fix for platforms where 'long double' == 'double'.
2681         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2682         Don't blindly assume 80-bit 'long double'.
2683
2684         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2685         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2686         * modules/isfinite-tests (configure.ac): Require
2687         gl_LONG_DOUBLE_VS_DOUBLE.
2688         * modules/isinf-tests (configure.ac): Likewise.
2689         * modules/isnan-tests (configure.ac): Likewise.
2690         * modules/isnanl-tests (configure.ac): Likewise.
2691         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2692         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2693         tests on platforms where 'long double' is the same as 'double'.
2694         * tests/test-isinf.c (test_isinfl): Likewise.
2695         * tests/test-isnan.c (test_long_double): Likewise.
2696         * tests/test-isnanl.h (main): Likewise.
2697
2698 2011-10-08  Bruno Haible  <bruno@clisp.org>
2699
2700         Tests for module 'tanhf'.
2701         * modules/tanhf-tests: New file.
2702         * tests/test-tanhf.c: New file.
2703
2704         New module 'tanhf'.
2705         * lib/math.in.h (tanhf): New declaration.
2706         * lib/tanhf.c: New file.
2707         * m4/tanhf.m4: New file.
2708         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2710         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2711         * modules/tanhf: New file.
2712         * tests/test-math-c++.cc: Check the declaration of tanhf.
2713         * doc/posix-functions/tanhf.texi: Mention the new module.
2714
2715         tanh: Use a .m4 file.
2716         * m4/tanh.m4: New file.
2717         * modules/tanh (Files): Add it.
2718         (configure.ac): Just invoke gl_FUNC_TANH.
2719
2720 2011-10-08  Bruno Haible  <bruno@clisp.org>
2721
2722         Tests for module 'coshf'.
2723         * modules/coshf-tests: New file.
2724         * tests/test-coshf.c: New file.
2725
2726         New module 'coshf'.
2727         * lib/math.in.h (coshf): New declaration.
2728         * lib/coshf.c: New file.
2729         * m4/coshf.m4: New file.
2730         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2732         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2733         * modules/coshf: New file.
2734         * tests/test-math-c++.cc: Check the declaration of coshf.
2735         * doc/posix-functions/coshf.texi: Mention the new module.
2736
2737         cosh: Use a .m4 file.
2738         * m4/cosh.m4: New file.
2739         * modules/cosh (Files): Add it.
2740         (configure.ac): Just invoke gl_FUNC_COSH.
2741
2742 2011-10-08  Bruno Haible  <bruno@clisp.org>
2743
2744         Tests for module 'sinhf'.
2745         * modules/sinhf-tests: New file.
2746         * tests/test-sinhf.c: New file.
2747
2748         New module 'sinhf'.
2749         * lib/math.in.h (sinhf): New declaration.
2750         * lib/sinhf.c: New file.
2751         * m4/sinhf.m4: New file.
2752         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2754         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2755         * modules/sinhf: New file.
2756         * tests/test-math-c++.cc: Check the declaration of sinhf.
2757         * doc/posix-functions/sinhf.texi: Mention the new module.
2758
2759         sinh: Use a .m4 file.
2760         * m4/sinh.m4: New file.
2761         * modules/sinh (Files): Add it.
2762         (configure.ac): Just invoke gl_FUNC_SINH.
2763
2764 2011-10-08  Bruno Haible  <bruno@clisp.org>
2765
2766         Tests for module 'atan2f'.
2767         * modules/atan2f-tests: New file.
2768         * tests/test-atan2f.c: New file.
2769
2770         New module 'atan2f'.
2771         * lib/math.in.h (atan2f): New declaration.
2772         * lib/atan2f.c: New file.
2773         * m4/atan2f.m4: New file.
2774         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2776         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2777         * modules/atan2f: New file.
2778         * tests/test-math-c++.cc: Check the declaration of atan2f.
2779         * doc/posix-functions/atan2f.texi: Mention the new module.
2780
2781         atan2: Use a .m4 file.
2782         * m4/atan2.m4: New file.
2783         * modules/atan2 (Files): Add it.
2784         (configure.ac): Just invoke gl_FUNC_ATAN2.
2785
2786 2011-10-08  Bruno Haible  <bruno@clisp.org>
2787
2788         Tests for module 'atanf'.
2789         * modules/atanf-tests: New file.
2790         * tests/test-atanf.c: New file.
2791
2792         New module 'atanf'.
2793         * lib/math.in.h (atanf): New declaration.
2794         * lib/atanf.c: New file.
2795         * m4/atanf.m4: New file.
2796         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2798         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2799         * modules/atanf: New file.
2800         * tests/test-math-c++.cc: Check the declaration of atanf.
2801         * doc/posix-functions/atanf.texi: Mention the new module.
2802
2803         atan: Use a .m4 file.
2804         * m4/atan.m4: New file.
2805         * modules/atan (Files): Add it.
2806         (configure.ac): Just invoke gl_FUNC_ATAN.
2807
2808 2011-10-08  Bruno Haible  <bruno@clisp.org>
2809
2810         Tests for module 'acosf'.
2811         * modules/acosf-tests: New file.
2812         * tests/test-acosf.c: New file.
2813
2814         New module 'acosf'.
2815         * lib/math.in.h (acosf): New declaration.
2816         * lib/acosf.c: New file.
2817         * m4/acosf.m4: New file.
2818         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2820         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2821         * modules/acosf: New file.
2822         * tests/test-math-c++.cc: Check the declaration of acosf.
2823         * doc/posix-functions/acosf.texi: Mention the new module.
2824
2825         acos: Use a .m4 file.
2826         * m4/acos.m4: New file.
2827         * modules/acos (Files): Add it.
2828         (configure.ac): Just invoke gl_FUNC_ACOS.
2829
2830 2011-10-08  Bruno Haible  <bruno@clisp.org>
2831
2832         Tests for module 'asinf'.
2833         * modules/asinf-tests: New file.
2834         * tests/test-asinf.c: New file.
2835
2836         New module 'asinf'.
2837         * lib/math.in.h (asinf): New declaration.
2838         * lib/asinf.c: New file.
2839         * m4/asinf.m4: New file.
2840         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2842         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2843         * modules/asinf: New file.
2844         * tests/test-math-c++.cc: Check the declaration of asinf.
2845         * doc/posix-functions/asinf.texi: Mention the new module.
2846
2847         asin: Use a .m4 file.
2848         * m4/asin.m4: New file.
2849         * modules/asin (Files): Add it.
2850         (configure.ac): Just invoke gl_FUNC_ASIN.
2851
2852 2011-10-08  Bruno Haible  <bruno@clisp.org>
2853
2854         Tests for module 'tanf'.
2855         * modules/tanf-tests: New file.
2856         * tests/test-tanf.c: New file.
2857
2858         New module 'tanf'.
2859         * lib/math.in.h (tanf): New declaration.
2860         * lib/tanf.c: New file.
2861         * m4/tanf.m4: New file.
2862         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2864         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2865         * modules/tanf: New file.
2866         * tests/test-math-c++.cc: Check the declaration of tanf.
2867         * doc/posix-functions/tanf.texi: Mention the new module.
2868
2869         tan: Use a .m4 file.
2870         * m4/tan.m4: New file.
2871         * modules/tan (Files): Add it.
2872         (configure.ac): Just invoke gl_FUNC_TAN.
2873
2874 2011-10-08  Bruno Haible  <bruno@clisp.org>
2875
2876         Tests for module 'cosf'.
2877         * modules/cosf-tests: New file.
2878         * tests/test-cosf.c: New file.
2879
2880         New module 'cosf'.
2881         * lib/math.in.h (cosf): New declaration.
2882         * lib/cosf.c: New file.
2883         * m4/cosf.m4: New file.
2884         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2886         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2887         * modules/cosf: New file.
2888         * tests/test-math-c++.cc: Check the declaration of cosf.
2889         * doc/posix-functions/cosf.texi: Mention the new module.
2890
2891         cos: Use a .m4 file.
2892         * m4/cos.m4: New file.
2893         * modules/cos (Files): Add it.
2894         (configure.ac): Just invoke gl_FUNC_COS.
2895
2896 2011-10-08  Bruno Haible  <bruno@clisp.org>
2897
2898         Tests for module 'sinf'.
2899         * modules/sinf-tests: New file.
2900         * tests/test-sinf.c: New file.
2901
2902         New module 'sinf'.
2903         * lib/math.in.h (sinf): New declaration.
2904         * lib/sinf.c: New file.
2905         * m4/sinf.m4: New file.
2906         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2908         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2909         * modules/sinf: New file.
2910         * tests/test-math-c++.cc: Check the declaration of sinf.
2911         * doc/posix-functions/sinf.texi: Mention the new module.
2912
2913         sin: Use a .m4 file.
2914         * m4/sin.m4: New file.
2915         * modules/sin (Files): Add it.
2916         (configure.ac): Just invoke gl_FUNC_SIN.
2917
2918 2011-10-08  Bruno Haible  <bruno@clisp.org>
2919
2920         Tests for module 'powf'.
2921         * modules/powf-tests: New file.
2922         * tests/test-powf.c: New file.
2923
2924         New module 'powf'.
2925         * lib/math.in.h (powf): New declaration.
2926         * lib/powf.c: New file.
2927         * m4/powf.m4: New file.
2928         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2930         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2931         * modules/powf: New file.
2932         * tests/test-math-c++.cc: Check the declaration of powf.
2933         * doc/posix-functions/powf.texi: Mention the new module.
2934
2935         pow: Use a .m4 file.
2936         * m4/pow.m4: New file.
2937         * modules/pow (Files): Add it.
2938         (configure.ac): Just invoke gl_FUNC_POW.
2939
2940 2011-10-08  Bruno Haible  <bruno@clisp.org>
2941
2942         Tests for module 'log10f'.
2943         * modules/log10f-tests: New file.
2944         * tests/test-log10f.c: New file.
2945
2946         New module 'log10f'.
2947         * lib/math.in.h (log10f): New declaration.
2948         * lib/log10f.c: New file.
2949         * m4/log10f.m4: New file.
2950         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2952         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2953         * modules/log10f: New file.
2954         * tests/test-math-c++.cc: Check the declaration of log10f.
2955         * doc/posix-functions/log10f.texi: Mention the new module.
2956
2957         log10: Use a .m4 file.
2958         * m4/log10.m4: New file.
2959         * modules/log10 (Files): Add it.
2960         (configure.ac): Just invoke gl_FUNC_LOG10.
2961
2962 2011-10-08  Bruno Haible  <bruno@clisp.org>
2963
2964         Tests for module 'logf'.
2965         * modules/logf-tests: New file.
2966         * tests/test-logf.c: New file.
2967
2968         New module 'logf'.
2969         * lib/math.in.h (logf): New declaration.
2970         * lib/logf.c: New file.
2971         * m4/logf.m4: New file.
2972         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2974         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2975         * modules/logf: New file.
2976         * tests/test-math-c++.cc: Check the declaration of logf.
2977         * doc/posix-functions/logf.texi: Mention the new module.
2978
2979         log: Use a .m4 file.
2980         * m4/log.m4: New file.
2981         * modules/log (Files): Add it.
2982         (configure.ac): Just invoke gl_FUNC_LOG.
2983
2984 2011-10-08  Bruno Haible  <bruno@clisp.org>
2985
2986         Tests for module 'expf'.
2987         * modules/expf-tests: New file.
2988         * tests/test-expf.c: New file.
2989
2990         New module 'expf'.
2991         * lib/math.in.h (expf): New declaration.
2992         * lib/expf.c: New file.
2993         * m4/expf.m4: New file.
2994         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2996         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2997         * modules/expf: New file.
2998         * tests/test-math-c++.cc: Check the declaration of expf.
2999         * doc/posix-functions/expf.texi: Mention the new module.
3000
3001         exp: Use a .m4 file.
3002         * m4/exp.m4: New file.
3003         * modules/exp (Files): Add it.
3004         (configure.ac): Just invoke gl_FUNC_EXP.
3005
3006 2011-10-08  Bruno Haible  <bruno@clisp.org>
3007
3008         Tests for module 'sqrtf'.
3009         * modules/sqrtf-tests: New file.
3010         * tests/test-sqrtf.c: New file.
3011
3012         New module 'sqrtf'.
3013         * lib/math.in.h (sqrtf): New declaration.
3014         * lib/sqrtf.c: New file.
3015         * m4/sqrtf.m4: New file.
3016         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3017         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3018         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3019         * modules/sqrtf: New file.
3020         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3021         * doc/posix-functions/sqrtf.texi: Mention the new module.
3022
3023 2011-10-08  Bruno Haible  <bruno@clisp.org>
3024
3025         Tests: Avoid link failures w.r.t. libintl.
3026         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3027         $(LIBINTL).
3028         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3029         $(LIBINTL).
3030         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3031         against $(LIBINTL).
3032         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3033         $(LIBINTL).
3034         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3035         $(LIBINTL).
3036         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3037
3038 2011-10-08  Bruno Haible  <bruno@clisp.org>
3039
3040         pow tests: Defeat compiler optimizations.
3041         * tests/test-pow.c (main): Assign arguments to x and y before use.
3042
3043 2011-10-08  Bruno Haible  <bruno@clisp.org>
3044
3045         gnulib-tool: Improve last commit.
3046         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3047         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3048         ignore dependencies that are not among the modules list.
3049
3050 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3051
3052         gnulib-tool: don't follow dependencies to avoided modules
3053         This fixes a bug that is related to the previous one.
3054         * gnulib-tool (func_modules_transitive_closure)
3055         (func_emit_autoconf_snippets):
3056         Check whether a dependency is acceptable before using it.
3057         (--extract-dependencies): Report an error if --avoid is also used,
3058         since this combination of options is not yet supported.
3059
3060         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3061         Problem reported by Peter Dyballa in
3062         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3063         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3064         when echoing "$condition".
3065
3066 2011-10-07  Bruno Haible  <bruno@clisp.org>
3067
3068         Fix documentation about math functions on MacOS X.
3069         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3070         MacOS X 10.5.
3071         * doc/posix-functions/fdim.texi: Likewise.
3072         * doc/posix-functions/feclearexcept.texi: Likewise.
3073         * doc/posix-functions/fegetenv.texi: Likewise.
3074         * doc/posix-functions/fegetround.texi: Likewise.
3075         * doc/posix-functions/feholdexcept.texi: Likewise.
3076         * doc/posix-functions/feraiseexcept.texi: Likewise.
3077         * doc/posix-functions/fesetenv.texi: Likewise.
3078         * doc/posix-functions/fesetround.texi: Likewise.
3079         * doc/posix-functions/fetestexcept.texi: Likewise.
3080         * doc/posix-functions/feupdateenv.texi: Likewise.
3081         * doc/posix-functions/fmax.texi: Likewise.
3082         * doc/posix-functions/fmin.texi: Likewise.
3083         * doc/posix-functions/log2.texi: Likewise.
3084         * doc/posix-functions/modff.texi: Likewise.
3085         * doc/posix-functions/nan.texi: Likewise.
3086         * doc/posix-functions/nanf.texi: Likewise.
3087         * doc/posix-functions/nextafterf.texi: Likewise.
3088         * doc/posix-functions/remquo.texi: Likewise.
3089
3090 2011-10-07  Bruno Haible  <bruno@clisp.org>
3091
3092         modff: Drop assumption about library that defines modff.
3093         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3094         AC_CHECK_FUNCS.
3095         * modules/modff (Files): Add m4/mathfunc.m4.
3096
3097 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3098
3099         raise tests: Avoid a GCC warning.
3100         * tests/test-raise.c (handler): Use _Noreturn.
3101
3102 2011-10-07  Bruno Haible  <bruno@clisp.org>
3103
3104         Tests for module 'ldexpf'.
3105         * modules/ldexpf-tests: New file.
3106         * tests/test-ldexpf.c: New file.
3107
3108         New module 'ldexpf'.
3109         * lib/math.in.h (ldexpf): New declaration.
3110         * lib/ldexpf.c: New file.
3111         * m4/ldexpf.m4: New file.
3112         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3114         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3115         * modules/ldexpf: New file.
3116         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3117         * doc/posix-functions/ldexpf.texi: Mention the new module.
3118
3119 2011-10-06  Bruno Haible  <bruno@clisp.org>
3120
3121         frexpf: Work around problems on IRIX and mingw.
3122         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3124         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3125         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3126         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3127         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3128         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3129
3130 2011-10-06  Bruno Haible  <bruno@clisp.org>
3131
3132         fabsf: Drop assumption about library that defines fabsf.
3133         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3134         AC_CHECK_FUNCS.
3135         * modules/fabsf (Files): Add m4/mathfunc.m4.
3136
3137 2011-10-06  Bruno Haible  <bruno@clisp.org>
3138
3139         frexpf: Drop assumption about library that defines frexpf.
3140         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3141         'int *', 'float *', 'long double *', 'float', 'long double'.
3142         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3143         AC_CHECK_FUNCS.
3144         * modules/frexpf (Files): Add m4/mathfunc.m4.
3145
3146         Tests for module 'frexpf'.
3147         * modules/frexpf-tests: New file.
3148         * tests/test-frexpf.c: New file.
3149
3150         New module 'frexpf'.
3151         * lib/math.in.h (frexpf): New declaration.
3152         * lib/frexpf.c: New file.
3153         * m4/frexpf.m4: New file.
3154         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3156         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3157         * modules/frexpf: New file.
3158         * tests/test-math-c++.cc: Check the declaration of frexpf.
3159         * doc/posix-functions/frexpf.texi: Mention the new module.
3160
3161 2011-10-06  Bruno Haible  <bruno@clisp.org>
3162
3163         math: Sort function declarations of math.in.h.
3164         * lib/math.in.h (frexp, logb): Move declarations.
3165
3166 2011-10-05  Bruno Haible  <bruno@clisp.org>
3167
3168         Tests for module 'modff'.
3169         * modules/modff-tests: New file.
3170         * tests/test-modff.c: New file.
3171
3172         New module 'modff'.
3173         * lib/math.in.h (modff): New declaration.
3174         * lib/modff.c: New file.
3175         * m4/modff.m4: New file.
3176         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3178         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3179         * modules/modff: New file.
3180         * tests/test-math-c++.cc: Check the declaration of modff.
3181         * doc/posix-functions/modff.texi: Mention the new module.
3182
3183         modf tests: Make test sharper.
3184         * tests/test-modf.c (main): Strengthen upper bound.
3185
3186         modf: Use a .m4 file.
3187         * m4/modf.m4: New file.
3188         * modules/modf (Files): Add it.
3189         (configure.ac): Just invoke gl_FUNC_MODF.
3190
3191 2011-10-05  Bruno Haible  <bruno@clisp.org>
3192
3193         Tests for module 'fmodf'.
3194         * modules/fmodf-tests: New file.
3195         * tests/test-fmodf.c: New file.
3196
3197         New module 'fmodf'.
3198         * lib/math.in.h (fmodf): New declaration.
3199         * lib/fmodf.c: New file.
3200         * m4/fmodf.m4: New file.
3201         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3202         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3203         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3204         * modules/fmodf: New file.
3205         * tests/test-math-c++.cc: Check the declaration of fmodf.
3206         * doc/posix-functions/fmodf.texi: Mention the new module.
3207
3208         fmod: Use a .m4 file.
3209         * m4/fmod.m4: New file.
3210         * modules/fmod (Files): Add it.
3211         (configure.ac): Just invoke gl_FUNC_FMOD.
3212
3213 2011-10-05  Bruno Haible  <bruno@clisp.org>
3214
3215         Tests for module 'fabsf'.
3216         * modules/fabsf-tests: New file.
3217         * tests/test-fabsf.c: New file.
3218
3219         New module 'fabsf'.
3220         * lib/math.in.h (fabsf): New declaration.
3221         * lib/fabsf.c: New file.
3222         * m4/fabsf.m4: New file.
3223         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3225         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3226         * modules/fabsf: New file.
3227         * tests/test-math-c++.cc: Check the declaration of fabsf.
3228         * doc/posix-functions/fabsf.texi: Mention the new module.
3229
3230         fabs: Use a .m4 file.
3231         * m4/fabs.m4: New file.
3232         * modules/fabs (Files): Add it.
3233         (configure.ac): Just invoke gl_FUNC_FABS.
3234
3235 2011-10-05  Jim Meyering  <meyering@redhat.com>
3236
3237         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3238         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3239         ls -lL regression introduced in coreutils-8.12, it does so at the
3240         cost of an additional stat call in the common case.  Besides, now
3241         that the kernel change that prompted commit 95f7c57f has been reverted
3242         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3243         we have no use for commit 95f7c57f, "file-has-acl: use
3244         acl_extended_file_nofollow if available".
3245
3246 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3247
3248         file-has-acl: revert unintended change in behavior of ls -L
3249         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3250         derived from...
3251         (file_has_acl): ...code here.  Call it.
3252         This problem was introduced with 2011-07-22 commit 95f7c57f,
3253         "file-has-acl: use acl_extended_file_nofollow if available".
3254         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3255
3256 2011-10-03  Bruno Haible  <bruno@clisp.org>
3257
3258         poll: Avoid link errors on MSVC.
3259         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3260         * modules/poll (Depends-on): Add sockets.
3261         (Link): New section.
3262         * NEWS: Mention the change.
3263         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3264         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3265         $(LIB_POLL) instead of $(LIBSOCKET).
3266
3267 2011-10-03  Bruno Haible  <bruno@clisp.org>
3268
3269         sys_select tests: Fix link error on MSVC 9.
3270         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3271         with $(LIB_SELECT) instead of $(LIBSOCKET).
3272
3273 2011-10-03  Bruno Haible  <bruno@clisp.org>
3274
3275         sys_select: Fix compilation error on mingw.
3276         * lib/sys_select.in.h: On native Windows, include <io.h>.
3277
3278 2011-10-03  Bruno Haible  <bruno@clisp.org>
3279
3280         wmemset: Support for MSVC.
3281         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3282         whether wmemset() exists.
3283
3284 2011-10-03  Bruno Haible  <bruno@clisp.org>
3285
3286         wmemmove: Support for MSVC.
3287         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3288         whether wmemmove() exists.
3289
3290 2011-10-03  Bruno Haible  <bruno@clisp.org>
3291
3292         wmemcpy: Support for MSVC.
3293         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3294         whether wmemcpy() exists.
3295
3296 2011-10-03  Bruno Haible  <bruno@clisp.org>
3297
3298         wmemcmp: Support for MSVC.
3299         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3300         whether wmemcmp() exists.
3301
3302 2011-10-03  Bruno Haible  <bruno@clisp.org>
3303
3304         wmemchr: Support for MSVC.
3305         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3306         whether wmemchr() exists.
3307
3308 2011-10-03  Bruno Haible  <bruno@clisp.org>
3309
3310         glthread/*, strsignal: Support for MSVC.
3311         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3312         including <winsock.h> on MSVC 9.
3313         * lib/glthread/lock.h: Likewise.
3314         * lib/glthread/thread.h: Likewise.
3315         * lib/glthread/tls.h: Likewise.
3316         * lib/glthread/yield.h: Likewise.
3317         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3318         if HAVE_UNISTD_H is false.
3319         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3320
3321 2011-10-03  Bruno Haible  <bruno@clisp.org>
3322
3323         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3324         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3325         Set to 100000.
3326
3327 2011-10-03  Bruno Haible  <bruno@clisp.org>
3328
3329         acl: Fix specification.
3330         * lib/file-has-acl.c (file_has_acl): Fix specification.
3331
3332 2011-10-03  Bruno Haible  <bruno@clisp.org>
3333
3334         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3335         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3336         (compute_curr_prefix, shared_library_fullname,
3337         find_shared_library_fullname, get_shared_library_fullname, relocate):
3338         Use it together with PIC && INSTALLDIR.
3339         Reported by <jojelino@gmail.com>
3340         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3341
3342 2011-10-01  Jim Meyering  <meyering@redhat.com>
3343
3344         maint.mk: adjust a release-related rule not to require use of gzip
3345         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3346         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3347         projects that build only .tar.xz files.  Also fix an erroneous test.
3348
3349         test-linkat: don't leave behind a temporary file
3350         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3351         Otherwise, coreutils' "make distcheck" would fail with this:
3352           Only in /c/cu/tests/torture/coreutils/test/\
3353             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3354           make[2]: *** [my-distcheck] Error 1
3355
3356         float, math: add omitted file
3357         * lib/itold.c: Add file, required for yesterday's float change.
3358
3359 2011-10-01  Bruno Haible  <bruno@clisp.org>
3360
3361         isinf: Fix for OpenBSD/x86.
3362         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3363         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3364         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3365
3366 2011-10-01  Bruno Haible  <bruno@clisp.org>
3367
3368         isfinite: Fix syntax error in configure test.
3369         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3370
3371         isfinite: Fix typo.
3372         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3373         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3374
3375 2011-10-01  Bruno Haible  <bruno@clisp.org>
3376
3377         nonblocking tests: Fix test failure on Linux/IA-64.
3378         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3379         Set to 270000.
3380
3381 2011-10-01  Bruno Haible  <bruno@clisp.org>
3382
3383         mkfifoat tests: Fix a test failure on mingw.
3384         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3385         with error ENOSYS.
3386
3387 2011-09-30  Bruno Haible  <bruno@clisp.org>
3388
3389         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3390         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3391         'long double'. Set REPLACE_ITOLD.
3392         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3393         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3394         * lib/itold.c: New file.
3395         * modules/float (Files): Add lib/itold.c.
3396         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3397         (Makefile.am): Substitute REPLACE_ITOLD.
3398         * modules/math (Depends-on): Add float.
3399         (Makefile.am): Substitute REPLACE_ITOLD.
3400         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3401         * doc/posix-headers/math.texi: Likewise.
3402         * doc/posix-functions/logl.texi: Likewise.
3403
3404 2011-09-30  Bruno Haible  <bruno@clisp.org>
3405
3406         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3407         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3408         Set to 140000.
3409
3410 2011-09-30  Bruno Haible  <bruno@clisp.org>
3411
3412         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3413         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3414         invocation, say "right after AC_PROG_CC_STDC", not "right after
3415         AC_PROG_CC".
3416         Reported by Gary V. Vaughan <gary@gnu.org>.
3417
3418 2011-09-30  Bruno Haible  <bruno@clisp.org>
3419
3420         Centralize C99 requirement.
3421         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3422         * modules/stdarg (configure.ac-early): Invoke it instead of
3423         AC_PROG_CC_STDC.
3424         Reported by Gary V. Vaughan and Paul Eggert.
3425
3426 2011-09-29  Bruno Haible  <bruno@clisp.org>
3427
3428         float: Fix LDBL_MAX value on Linux/PowerPC.
3429         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3430         on Linux/PowerPC.
3431         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3432         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3433         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3434         platform.
3435         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3436
3437 2011-09-29  Bruno Haible  <bruno@clisp.org>
3438
3439         doc: Improve doc about gl_EARLY.
3440         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3441         AC_PROG_CC_STDC invocation.
3442         Reported by Gary V. Vaughan <gary@gnu.org>.
3443
3444 2011-09-28  Bruno Haible  <bruno@clisp.org>
3445
3446         fgetc, fputc, fread, fwrite tests: Fix link error.
3447         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3448         on non-MSVC platforms.
3449         * tests/test-fputc.c (main): Likewise.
3450         * tests/test-fread.c (main): Likewise.
3451         * tests/test-fwrite.c (main): Likewise.
3452         Reported by Jim Meyering.
3453
3454 2011-09-27  Bruno Haible  <bruno@clisp.org>
3455
3456         fputc, fwrite tests: Avoid test failure on MSVC.
3457         * tests/test-fgetc.c: Include msvc-inval.h.
3458         (main): Invoke gl_msvc_inval_ensure_handler.
3459         * tests/test-fputc.c: Include msvc-inval.h.
3460         (main): Invoke gl_msvc_inval_ensure_handler.
3461         * tests/test-fread.c: Include msvc-inval.h.
3462         (main): Invoke gl_msvc_inval_ensure_handler.
3463         * tests/test-fwrite.c: Include msvc-inval.h.
3464         (main): Invoke gl_msvc_inval_ensure_handler.
3465         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3466         * modules/fputc-tests (Depends-on): Likewise.
3467         * modules/fread-tests (Depends-on): Likewise.
3468         * modules/fwrite-tests (Depends-on): Likewise.
3469
3470 2011-09-27  Bruno Haible  <bruno@clisp.org>
3471
3472         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3473         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3474         (raise): Remove older, duplicated declaration.
3475         (_gl_raise_SIGPIPE): New declaration.
3476         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3477         (rpl_raise): Remove function.
3478         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3479         a gnulib-defined SIGPIPE here.
3480         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3481         'sigprocmask' has detected missing signal-blocking and the module
3482         'sigpipe' is enabled.
3483         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3484
3485 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3486
3487         base64-tests: avoid memory leak
3488         * tests/test-base64.c (main): Plug memory leak.
3489
3490         base32: new module
3491         * modules/base32: New module.
3492         * lib/base32.c: New file.
3493         * lib/base32.h: Likewise.
3494         * m4/base32.m4: Likewise.
3495         * modules/base32-tests: New test.
3496         * tests/test-base32.c: Likewise.
3497         * MODULES.html.sh (Misc): Mention it.
3498
3499 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3500
3501         gnulib: use more-standard license notice wording
3502         * gnulib-tool (func_emit_copyright_notice): When emitting a
3503         license notice into a file, use the standard wording as suggested
3504         by the current information for GNU maintainers, except say "file"
3505         rather than "program".  The new wording gives a license version
3506         number, which addresses an issue raised by Glenn Morris in
3507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3508         * m4/onceonly.m4: Use that same wording here, too.
3509
3510         dup2: minor simplification
3511         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3512         as lib/dup2.c no longer uses 'inline'.
3513
3514 2011-09-25  Bruno Haible  <bruno@clisp.org>
3515
3516         strings: Fix compilation error on MSVC.
3517         * lib/strings.in.h: Include <stddef.h> for size_t.
3518
3519 2011-09-25  Bruno Haible  <bruno@clisp.org>
3520
3521         fflush et al.: Document limitation on MSVC.
3522         * doc/posix-functions/fflush.texi: Document possible crash in handling
3523         mode other than DEFAULT_HANDLING.
3524         * doc/posix-functions/fgetc.texi: Likewise.
3525         * doc/posix-functions/fputc.texi: Likewise.
3526         * doc/posix-functions/fread.texi: Likewise.
3527         * doc/posix-functions/fwrite.texi: Likewise.
3528
3529 2011-09-25  Bruno Haible  <bruno@clisp.org>
3530
3531         msvc-inval: Allow three invalid parameter handling modes.
3532         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3533         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3534         macros.
3535         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3536         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3537         SANE_LIBRARY_HANDLING as a no-op.
3538         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3539         <stdlib.h>.
3540         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3541
3542 2011-09-25  Bruno Haible  <bruno@clisp.org>
3543
3544         msvc-inval: Make handler multithread-safe.
3545         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3546         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3547         declarations.
3548         (gl_msvc_inval_current): New declaration.
3549         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3550         Operate on the structure returned by gl_msvc_inval_current().
3551         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3552         Remove varaiables.
3553         (tls_index, tls_initialized): New variables.
3554         (not_per_thread): New variable.
3555         (gl_msvc_inval_current): New function.
3556         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3557         returned by gl_msvc_inval_current().
3558
3559 2011-09-25  Bruno Haible  <bruno@clisp.org>
3560
3561         msvc-inval: Install handler globally.
3562         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3563         !_MSC_VER.
3564         (gl_msvc_invalid_parameter_handler): Remove declaration.
3565         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3566         declarations.
3567         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3568         Install the handler globally, don't uninstall it.
3569         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3570         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3571         currently valid, call RaiseException instead.
3572         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3573         for !_MSC_VER.
3574
3575 2011-09-25  Bruno Haible  <bruno@clisp.org>
3576
3577         strerror_r-posix: Fix for MSVC 9.
3578         * lib/strerror_r.c (local_snprintf): New function.
3579         (snprintf): Define to local_snprintf, not to _snprintf.
3580
3581 2011-09-25  Bruno Haible  <bruno@clisp.org>
3582
3583         ftruncate: Support for MSVC 9.
3584         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3585         (chsize_nothrow): New function.
3586         (chsize): Redefine as a macro.
3587         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3588         * modules/ftruncate (Depends-on): Add msvc-inval.
3589
3590 2011-09-25  Bruno Haible  <bruno@clisp.org>
3591
3592         New module 'fstat'.
3593         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3594         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3595         * lib/fchdir.c (rpl_fstat): Remove function.
3596         * m4/fstat.m4: New file.
3597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3598         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3599         declared.
3600         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3601         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3602         * modules/fstat: New file.
3603         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3604         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3605         is set.
3606         * doc/posix-functions/fstat.texi: Mention the new module and the
3607         problem on MSVC.
3608         * NEWS: Mention the change.
3609         * modules/acl (Depends-on): Add fstat.
3610         * modules/chdir-safer (Depends-on): Likewise.
3611         * modules/chown (Depends-on): Likewise.
3612         * modules/copy-file (Depends-on): Likewise.
3613         * modules/fchdir (Depends-on): Likewise.
3614         * modules/fdopendir (Depends-on): Likewise.
3615         * modules/fopen (Depends-on): Likewise.
3616         * modules/fts (Depends-on): Likewise.
3617         * modules/getcwd (Depends-on): Likewise.
3618         * modules/isapipe (Depends-on): Likewise.
3619         * modules/linkat (Depends-on): Likewise.
3620         * modules/lseek (Depends-on): Likewise.
3621         * modules/mkdir-p (Depends-on): Likewise.
3622         * modules/open (Depends-on): Likewise.
3623         * modules/openat (Depends-on): Likewise.
3624         * modules/read-file (Depends-on): Likewise.
3625         * modules/renameat (Depends-on): Likewise.
3626         * modules/utimens (Depends-on): Likewise.
3627
3628 2011-09-25  Bruno Haible  <bruno@clisp.org>
3629
3630         linkat: Fix compilation on MSVC 9.
3631         * lib/linkat.c: Don't include <stdint.h>.
3632
3633 2011-09-25  Bruno Haible  <bruno@clisp.org>
3634
3635         fclose: Support for MSVC 9.
3636         * lib/fclose.c: Include msvc-inval.h.
3637         (fclose_nothrow): New function.
3638         (rpl_fclose): Use it.
3639         * modules/fclose (Depends-on): Add msvc-inval.
3640         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3641
3642 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3643
3644         dup2: minor simplifications
3645         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3646         that it's a performance win.
3647         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3648         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3649
3650 2011-09-24  Jim Meyering  <meyering@redhat.com>
3651
3652         test-futimens: avoid a warning from gcc -Wshadow
3653         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3654         to avoid a shadowing warning.
3655
3656 2011-09-24  Bruno Haible  <bruno@clisp.org>
3657
3658         fdopen: Support for MSVC 9.
3659         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3660         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3661         * lib/fdopen.c: Include msvc-inval.h.
3662         (fdopen_nothrow): New function.
3663         (rpl_fdopen): Use it.
3664         * modules/fdopen (Depends-on): Add msvc-inval.
3665         * modules/fclose-tests (Depends-on): Add fdopen.
3666         * modules/fflush-tests (Depends-on): Likewise.
3667         * modules/fgetc-tests (Depends-on): Likewise.
3668         * modules/fputc-tests (Depends-on): Likewise.
3669         * modules/fread-tests (Depends-on): Likewise.
3670         * modules/freopen-tests (Depends-on): Likewise.
3671         * modules/fseeko-tests (Depends-on): Likewise.
3672         * modules/ftello-tests (Depends-on): Likewise.
3673         * modules/fwrite-tests  (Depends-on): Likewise.
3674         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3675
3676 2011-09-24  Bruno Haible  <bruno@clisp.org>
3677
3678         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3679         * modules/fgetc-tests (Depends-on): Add unistd.
3680         * modules/fputc-tests (Depends-on): Likewise.
3681         * modules/fread-tests (Depends-on): Likewise.
3682         * modules/fwrite-tests (Depends-on): Likewise.
3683
3684 2011-09-24  Bruno Haible  <bruno@clisp.org>
3685
3686         dup: Simplify autoconf test.
3687         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3688         on gl_MSVC_INVAL's result.
3689
3690 2011-09-24  Bruno Haible  <bruno@clisp.org>
3691
3692         Tests for function fwrite().
3693         * modules/fwrite-tests: New file.
3694         * tests/test-fwrite.c: New file.
3695         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3696
3697         Tests for function fread().
3698         * modules/fread-tests: New file.
3699         * tests/test-fread.c: New file.
3700         * modules/stdio-tests (Depends-on): Add fread-tests.
3701
3702         Activate fputc tests.
3703         * modules/stdio-tests (Depends-on): Add fputc-tests.
3704
3705         Enhance fgetc, fputc tests.
3706         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3707         * tests/test-fputc.c (main): Likewise.
3708
3709 2011-09-24  Bruno Haible  <bruno@clisp.org>
3710
3711         write: Support for MSVC 9.
3712         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3713         is not 1.
3714         * lib/write.c (write_nothrow): New function.
3715         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3716         not 1. Use write_nothrow.
3717         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3718         invalid parameter handler.
3719         (gl_PREREQ_WRITE): New macro.
3720         * modules/write (Depends-on): Add msvc-inval.
3721         (configure.ac): Invoke gl_PREREQ_WRITE.
3722         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3723
3724 2011-09-24  Bruno Haible  <bruno@clisp.org>
3725
3726         read: Fix last commit.
3727         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3728
3729 2011-09-24  Bruno Haible  <bruno@clisp.org>
3730
3731         dup2: Fix last commit.
3732         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3733         (rpl_dup2): Disable fcntl workaround on native Windows.
3734
3735         sigprocmask: Make code safer.
3736         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3737         section that changes macro definitions for this compilation unit.
3738
3739 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3740
3741         dup2: clarify by coalescing Windows-specific material
3742         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3743         "msvc-nothrow.h"' to the Windows-specific section, so that the
3744         Emacs source need not contain these include files.
3745         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3746         Windows-specific fixes into this function rather than just the
3747         nothrow fix, as this shortens and clarifies the code.  Always
3748         define as a function, as that's a bit cleaner than having it be
3749         sometimes a function and sometimes a macro.
3750         (rpl_dup2): Move the Windows-specific stuff out of here and into
3751         ms_windows_dup2.  Don't protect the Haiku-related fix with
3752         "#if !defined __linux__", as the same code also works around
3753         a Linux kernel bug, and it doesn't add any system calls on any
3754         platform.  Add comment about FreeBSD 6.1.
3755
3756         sigprocmask: move #include directive
3757         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3758         Windows-specific section, so that the Emacs source need not
3759         contain msvc-inval.h.
3760
3761 2011-09-23  Bruno Haible  <bruno@clisp.org>
3762
3763         read: Support for MSVC 9.
3764         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3765         is not 1.
3766         * lib/read.c (read_nothrow): New function.
3767         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3768         read_nothrow.
3769         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3770         invalid parameter handler.
3771         (gl_PREREQ_READ): New macro.
3772         * modules/read (Depends-on): Add msvc-inval.
3773         (configure.ac): Invoke gl_PREREQ_READ.
3774         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3775
3776 2011-09-23  Bruno Haible  <bruno@clisp.org>
3777
3778         close: Support for MSVC 9.
3779         * lib/close.c: Include <errno.h>, msvc-inval.h.
3780         (close_nothrow): New function.
3781         (rpl_close): Use it.
3782         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3783         invalid parameter handler.
3784         * modules/close (Depends-on): Add msvc-inval.
3785         * modules/dup2-tests (Depends-on): Add close.
3786         * modules/dup3-tests (Depends-on): Likewise.
3787         * modules/fcntl-tests (Depends-on): Likewise.
3788         * modules/spawn-pipe-tests (Depends-on): Likewise.
3789         * modules/unistd-safer-tests (Depends-on): Likewise.
3790         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3791
3792 2011-09-23  Bruno Haible  <bruno@clisp.org>
3793
3794         New module 'dup'.
3795         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3796         Allow replacement.
3797         * lib/dup.c: New file.
3798         * lib/fchdir.c (rpl_dup): Remove function.
3799         * m4/dup.m4: New file.
3800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3801         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3802         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3803         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3804         * modules/dup: New file.
3805         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3806         'dup' module is in use.
3807         * modules/fdopendir (Depends-on): Add dup.
3808         * modules/fdutimensat-tests (Depends-on): Likewise.
3809         * modules/fts (Depends-on): Likewise.
3810         * modules/futimens-tests (Depends-on): Likewise.
3811         * modules/posix_spawnp-tests (Depends-on): Likewise.
3812         * modules/unistd-safer-tests (Depends-on): Likewise.
3813         * modules/utimens-tests (Depends-on): Likewise.
3814         * doc/posix-functions/dup.texi: Mention the new module and the problem
3815         on MSVC.
3816
3817 2011-09-23  Bruno Haible  <bruno@clisp.org>
3818
3819         getdtablesize: Support for MSVC 9.
3820         * lib/getdtablesize.c: Include msvc-inval.h.
3821         (_setmaxstdio_nothrow): New function.
3822         (_setmaxstdio): Redefine it.
3823         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3824         * modules/getdtablesize (Depends-on): Add msvc-inval.
3825         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3826
3827 2011-09-23  Bruno Haible  <bruno@clisp.org>
3828
3829         signal-h: Rename from signal.
3830         * modules/signal-h: Renamed from modules/signal.
3831         * modules/pthread_sigmask (Depends-on): Update.
3832         * modules/raise (Depends-on): Likewise.
3833         * modules/sigaction (Depends-on): Likewise.
3834         * modules/sigpipe (Depends-on): Likewise.
3835         * modules/sigprocmask (Depends-on): Likewise.
3836         * modules/sys_select (Depends-on): Likewise.
3837         * modules/signal-h-tests: Renamed from modules/signal-tests.
3838         (Files, Depends-on, Makefile.am): Update.
3839         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3840         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3841         (Files, Makefile.am): Update.
3842         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3843         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3844         * modules/signal: New placeholder file.
3845         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3846         * doc/posix-headers/signal.texi: Update.
3847         * NEWS: Mention the change.
3848
3849 2011-09-23  Bruno Haible  <bruno@clisp.org>
3850
3851         sigprocmask: Avoid crashes through signal() on MSVC 9.
3852         * lib/sigprocmask.c: Include msvc-inval.h.
3853         (signal_nothrow): New function.
3854         (signal): Redefine it.
3855         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3856         * modules/sigprocmask (Depends-on): Add msvc-inval.
3857         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3858
3859 2011-09-23  Bruno Haible  <bruno@clisp.org>
3860
3861         Tests for module 'raise'.
3862         * modules/raise-tests: New file.
3863         * tests/test-raise.c: New file.
3864
3865         raise: Support for MSVC.
3866         * lib/signal.in.h (raise): New declaration.
3867         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3868         for native Windows platforms.
3869         * m4/raise.m4: New file.
3870         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3871         HAVE_RAISE, REPLACE_RAISE.
3872         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3873         REPLACE_RAISE.
3874         * modules/raise (Status, Notice): Remove fields.
3875         (Files): Add m4/raise.m4.
3876         (Depends-on): Add signal, msvc-inval.
3877         (configure.ac): Use the common idioms.
3878         (Maintainer): Add me.
3879         * tests/test-signal-c++.cc: Check the signature of raise.
3880         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3881
3882 2011-09-23  Bruno Haible  <bruno@clisp.org>
3883
3884         pipe2: Fix compilation on pre-C99 compilers.
3885         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3886
3887 2011-09-23  Bruno Haible  <bruno@clisp.org>
3888
3889         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3890         * lib/msvc-nothrow.h: New file.
3891         * lib/msvc-nothrow.c: New file.
3892         * m4/msvc-nothrow.m4: New file.
3893         * modules/msvc-nothrow: New file.
3894         * lib/dup2.c: Include msvc-nothrow.h.
3895         (rpl_dup2): No need to protect _get_osfhandle call here.
3896         * lib/accept4.c: Include msvc-nothrow.h.
3897         * lib/error.c: Likewise.
3898         * lib/fcntl.c: Likewise.
3899         * lib/lseek.c: Likewise.
3900         * lib/nonblocking.c: Likewise.
3901         * lib/poll.c: Likewise.
3902         * lib/read.c: Likewise.
3903         * lib/select.c: Likewise.
3904         * lib/sockets.h: Likewise.
3905         * lib/sockets.c: Likewise.
3906         * lib/stdio-read.c: Likewise.
3907         * lib/stdio-write.c: Likewise.
3908         * lib/write.c: Likewise.
3909         * lib/w32sock.h: Likewise.
3910         * lib/w32spawn.h: Likewise.
3911         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3912         * lib/fsync.c: Likewise.
3913         * lib/isapipe.c: Likewise.
3914         * modules/dup2 (Depends-on): Add msvc-nothrow.
3915         * modules/accept4 (Depends-on): Likewise.
3916         * modules/error (Depends-on): Likewise.
3917         * modules/fcntl (Depends-on): Likewise.
3918         * modules/lseek (Depends-on): Likewise.
3919         * modules/nonblocking (Depends-on): Likewise.
3920         * modules/poll (Depends-on): Likewise.
3921         * modules/read (Depends-on): Likewise.
3922         * modules/select (Depends-on): Likewise.
3923         * modules/sockets (Depends-on): Likewise.
3924         * modules/sigpipe (Depends-on): Likewise.
3925         * modules/write (Depends-on): Likewise.
3926         * modules/accept (Depends-on): Likewise.
3927         * modules/bind (Depends-on): Likewise.
3928         * modules/connect (Depends-on): Likewise.
3929         * modules/gethostname (Depends-on): Likewise.
3930         * modules/getpeername (Depends-on): Likewise.
3931         * modules/getsockname (Depends-on): Likewise.
3932         * modules/getsockopt (Depends-on): Likewise.
3933         * modules/ioctl (Depends-on): Likewise.
3934         * modules/listen (Depends-on): Likewise.
3935         * modules/recv (Depends-on): Likewise.
3936         * modules/recvfrom (Depends-on): Likewise.
3937         * modules/send (Depends-on): Likewise.
3938         * modules/sendto (Depends-on): Likewise.
3939         * modules/setsockopt (Depends-on): Likewise.
3940         * modules/shutdown (Depends-on): Likewise.
3941         * modules/socket (Depends-on): Likewise.
3942         * modules/execute (Depends-on): Likewise.
3943         * modules/spawn-pipe (Depends-on): Likewise.
3944         * modules/flock (Depends-on): Likewise.
3945         * modules/fsync (Depends-on): Likewise.
3946         * modules/isapipe (Depends-on): Likewise.
3947         * tests/test-cloexec.c: Include msvc-nothrow.h.
3948         * tests/test-dup-safer.c: Likewise.
3949         * tests/test-dup2.c: Likewise.
3950         * tests/test-dup3.c: Likewise.
3951         * tests/test-fcntl.c: Likewise.
3952         * tests/test-pipe.c: Likewise.
3953         * tests/test-pipe2.c: Likewise.
3954         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3955         * modules/unistd-safer-tests (Depends-on): Likewise.
3956         * modules/dup2-tests (Depends-on): Likewise.
3957         * modules/dup3-tests (Depends-on): Likewise.
3958         * modules/fcntl-tests (Depends-on): Likewise.
3959         * modules/pipe-posix-tests (Depends-on): Likewise.
3960         * modules/pipe2-tests (Depends-on): Likewise.
3961
3962 2011-09-23  Bruno Haible  <bruno@clisp.org>
3963
3964         dup2: Make code more maintainable.
3965         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3966         (rpl_dup2): Use it.
3967         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3968         * modules/dup2 (configure.ac): Invoke it.
3969         Reported by Paul Eggert.
3970
3971 2011-09-23  Bruno Haible  <bruno@clisp.org>
3972
3973         msvc-inval: Fix compilation error.
3974         * lib/msvc-inval.h: Include <excpt.h>.
3975
3976 2011-09-23  Bruno Haible  <bruno@clisp.org>
3977
3978         mkdir: Tweak for MSVC 9.
3979         * lib/sys_stat.in.h: Update comments.
3980         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3981
3982         Tests for module 'chdir'.
3983         * modules/chdir-tests: New file.
3984         * tests/test-chdir.c: New file.
3985
3986         New module 'chdir'.
3987         * modules/chdir: New file.
3988         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3989         (chdir): New declaration.
3990         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3991         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3992         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3993         * tests/test-unistd-c++.cc: Check signature of chdir.
3994         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3995         * modules/chdir-long (Depends-on): Add chdir.
3996         * modules/fchdir (Depends-on): Likewise.
3997         * modules/rename (Depends-on): Likewise.
3998         * modules/savewd (Depends-on): Likewise.
3999
4000         rmdir: Support for mingw, MSVC 9.
4001         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4002         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4003
4004         getcwd: Tweak for MSVC 9.
4005         * lib/unistd.in.h: Update comments.
4006         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4007
4008 2011-09-22  Bruno Haible  <bruno@clisp.org>
4009
4010         strerror_r-posix: Avoid a link error on MSVC.
4011         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4012         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4013
4014 2011-09-22  Bruno Haible  <bruno@clisp.org>
4015
4016         select: Avoid link errors on MSVC.
4017         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4018         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4019         * modules/pselect (Link): Likewise.
4020         * NEWS: Mention the change.
4021         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4022         test-select-stdin against $(LIB_SELECT).
4023         * modules/pselect-tests (Makefile.am): Link test-pselect against
4024         $(LIB_SELECT).
4025
4026 2011-09-22  Bruno Haible  <bruno@clisp.org>
4027
4028         select: Avoid compilation error on MSVC.
4029         * lib/select.c: Don't include <stdbool.h>.
4030
4031 2011-09-21  Bruno Haible  <bruno@clisp.org>
4032
4033         Consolidate all uses of PATH_MAX in *.m4 files.
4034         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4035         macros.
4036         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4037         and gl_PATHMAX_SNIPPET.
4038         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4039         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4040         * modules/chdir-long (Files): Add m4/pathmax.m4.
4041         * modules/getcwd (Files): Likewise.
4042
4043 2011-09-21  Bruno Haible  <bruno@clisp.org>
4044
4045         ftruncate: Un-deprecate, concentrate on Win32 support.
4046         * modules/ftruncate (Status, Notice): Remove sections.
4047         (Depends-on): Add largefile.
4048         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4049         non-mingw platforms.
4050         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4051         include <io.h>.
4052         * modules/perror-tests (Depends-on): Add ftruncate.
4053         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4054         'ftruncate' module.
4055
4056 2011-09-21  Bruno Haible  <bruno@clisp.org>
4057
4058         Add dependencies to new dirent related modules.
4059         * modules/opendir (Depends-on): Add closedir.
4060         * modules/getcwd (Depends-on): Add opendir, closedir.
4061         * modules/dirent-safer-tests (Depends-on): Likewise.
4062         * modules/fdopendir-tests (Depends-on): Likewise.
4063         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4064         * modules/renameat-tests (Depends-on): Likewise.
4065
4066 2011-09-21  Bruno Haible  <bruno@clisp.org>
4067
4068         opendir: Avoid compilation error on mingw.
4069         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4070         * modules/opendir (Depends-on): Add unistd.
4071
4072 2011-09-21  Bruno Haible  <bruno@clisp.org>
4073
4074         ftruncate tests: Avoid a test failure on mingw.
4075         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4076
4077 2011-09-21  Bruno Haible  <bruno@clisp.org>
4078
4079         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4080         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4081         native Windows.
4082
4083 2011-09-21  Bruno Haible  <bruno@clisp.org>
4084
4085         New module 'fdopen'.
4086         * lib/stdio.in.h (fdopen): New declaration.
4087         * lib/fdopen.c: New file.
4088         * m4/fdopen.m4: New file.
4089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4090         REPLACE_FDOPEN.
4091         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4092         REPLACE_FDOPEN.
4093         * modules/fdopen: New file.
4094         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4095         * tests/test-stdio-c++.cc: Check signature of fdopen.
4096         * doc/posix-functions/fdopen.texi: Mention the new module.
4097
4098 2011-09-21  Bruno Haible  <bruno@clisp.org>
4099
4100         unlockpt tests: Avoid test failure on NetBSD 5.1.
4101         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4102         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4103
4104 2011-09-21  Bruno Haible  <bruno@clisp.org>
4105
4106         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4107         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4108         * tests/test-getlogin_r.c (main): Likewise.
4109
4110 2011-09-20  Bruno Haible  <bruno@clisp.org>
4111
4112         time tests: Don't require pid_t.
4113         * doc/posix-headers/time.texi: Revert last change.
4114         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4115         * tests/test-time.c: Comment out the check for pid_t.
4116
4117 2011-09-20  Bruno Haible  <bruno@clisp.org>
4118
4119         fsync tests: Avoid a test failure on mingw.
4120         * tests/test-fsync.c (main): Allow a failure with EIO.
4121
4122 2011-09-20  Bruno Haible  <bruno@clisp.org>
4123
4124         euidaccess: Update comments.
4125         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4126
4127 2011-09-20  Bruno Haible  <bruno@clisp.org>
4128
4129         Ensure EBADF returns for socket functions on mingw.
4130         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4131         descriptor is invalid.
4132         * lib/bind.c (rpl_bind): Likewise.
4133         * lib/connect.c (rpl_connect): Likewise.
4134         * lib/getpeername.c (rpl_getpeername): Likewise.
4135         * lib/getsockname.c (rpl_getsockname): Likewise.
4136         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4137         * lib/listen.c (rpl_listen): Likewise.
4138         * lib/recv.c (rpl_recv): Likewise.
4139         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4140         * lib/send.c (rpl_send): Likewise.
4141         * lib/sendto.c (rpl_sendto): Likewise.
4142         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4143         * lib/shutdown.c (rpl_shutdown): Likewise.
4144
4145 2011-09-20  Bruno Haible  <bruno@clisp.org>
4146
4147         select tests: EBADF tests.
4148         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4149         test_bad_fd): New functions.
4150         (test_function): Invoke also test_bad_fd.
4151
4152 2011-09-20  Bruno Haible  <bruno@clisp.org>
4153
4154         Tests for module 'posix_spawn_file_actions_addopen.
4155         * modules/posix_spawn_file_actions_addopen-tests: New file.
4156         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4157
4158         Tests for module 'posix_spawn_file_actions_adddup2'.
4159         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4160         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4161
4162         Tests for module 'posix_spawn_file_actions_addclose'.
4163         * modules/posix_spawn_file_actions_addclose-tests: New file.
4164         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4165
4166 2011-09-20  Bruno Haible  <bruno@clisp.org>
4167
4168         Tests for module 'unlockpt'.
4169         * modules/unlockpt-tests: New file.
4170         * tests/test-unlockpt.c: New file.
4171         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4172
4173         Tests for module 'grantpt'.
4174         * modules/grantpt-tests: New file.
4175         * tests/test-grantpt.c: New file.
4176         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4177
4178 2011-09-20  Bruno Haible  <bruno@clisp.org>
4179
4180         freopen tests: EBADF tests.
4181         * tests/test-freopen.c: Include errno.h, unistd.h.
4182         (main): Add tests for EBADF, commented out for the moment.
4183
4184         fclose tests: EBADF tests.
4185         * tests/test-fclose.c (main): Add tests for EBADF.
4186
4187         fflush tests: EBADF tests.
4188         * tests/test-fflush.c: Include errno.h, macros.h.
4189         (main): Add tests for EBADF.
4190
4191         ftello tests: EBADF tests.
4192         * tests/test-ftello4.sh: New file.
4193         * tests/test-ftello4.c: New file.
4194         * modules/ftello-tests (Files): Add them.
4195         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4196
4197         fseeko tests: EBADF tests.
4198         * tests/test-fseeko4.sh: New file.
4199         * tests/test-fseeko4.c: New file.
4200         * modules/fseeko-tests (Files): Add them.
4201         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4202
4203         Tests for function fputc().
4204         * modules/fputc-tests: New file.
4205         * tests/test-fputc.c: New file.
4206         * modules/stdio-tests (Depends-on): Add fputc-tests.
4207
4208         Tests for function fgetc().
4209         * modules/fgetc-tests: New file.
4210         * tests/test-fgetc.c: New file.
4211         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4212
4213         Tests for function fdopen().
4214         * modules/fdopen-tests: New file.
4215         * tests/test-fdopen.c: New file.
4216         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4217
4218         Tests for module 'vdprintf'.
4219         * modules/vdprintf-tests: New file.
4220         * tests/test-vdprintf.c: New file.
4221
4222         Tests for module 'dprintf'.
4223         * modules/dprintf-tests: New file.
4224         * tests/test-dprintf.c: New file.
4225
4226 2011-09-20  Bruno Haible  <bruno@clisp.org>
4227
4228         Tests for module 'ioctl'.
4229         * modules/ioctl-tests: New file.
4230         * tests/test-ioctl.c: New file.
4231
4232 2011-09-20  Bruno Haible  <bruno@clisp.org>
4233
4234         fcntl tests: EBADF tests.
4235         * tests/test-fcntl.c (main): Add more tests for EBADF.
4236
4237 2011-09-20  Bruno Haible  <bruno@clisp.org>
4238
4239         utimensat tests: EBADF tests.
4240         * tests/test-utimensat.c (main): Add tests for EBADF.
4241
4242         renameat tests: EBADF tests.
4243         * tests/test-renameat.c (main): Add tests for EBADF.
4244
4245         mkfifoat tests: EBADF tests.
4246         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4247
4248         readlinkat tests: EBADF tests.
4249         * tests/test-readlinkat.c (main): Add tests for EBADF.
4250
4251         symlinkat tests: EBADF tests.
4252         * tests/test-symlinkat.c (main): Add tests for EBADF.
4253
4254         linkat tests: EBADF tests.
4255         * tests/test-linkat.c (main): Add tests for EBADF.
4256
4257         Tests for module 'faccessat'.
4258         * modules/faccessat-tests: New file.
4259         * tests/test-faccessat.c: New file.
4260
4261         fdopendir tests: EBADF tests.
4262         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4263
4264         openat tests: EBADF tests.
4265         * tests/test-fchownat.c (main): Add tests for EBADF.
4266         * tests/test-fstatat.c (main): Likewise.
4267         * tests/test-mkdirat.c (main): Likewise.
4268         * tests/test-openat.c (main): Likewise.
4269         * tests/test-unlinkat.c (main): Likewise.
4270         * tests/test-fchmodat.c: New file.
4271         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4272         (Makefile.am): Also run 'test-fchmodat'.
4273
4274 2011-09-20  Bruno Haible  <bruno@clisp.org>
4275
4276         utimens, futimens, fdutimensat tests: EBADF tests.
4277         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4278
4279         Tests for function fstat().
4280         * modules/fstat-tests: New file.
4281         * tests/test-fstat.c: New file.
4282         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4283
4284 2011-09-20  Bruno Haible  <bruno@clisp.org>
4285
4286         test-ttyname_r tests: EBADF tests.
4287         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4288
4289         Tests for module 'isatty'.
4290         * modules/isatty-tests: New file.
4291         * tests/test-isatty.c: New file.
4292
4293         Tests for module 'write'.
4294         * modules/write-tests: New file.
4295         * tests/test-write.c: New file.
4296
4297         Tests for module 'read'.
4298         * modules/read-tests: New file.
4299         * tests/test-read.c: New file.
4300
4301         pwrite tests: EBADF tests.
4302         * tests/test-pwrite.c (main): Add tests for EBADF.
4303
4304         pread tests: EBADF tests.
4305         * tests/test-pread.c (main): Add tests for EBADF.
4306
4307         lseek tests: EBADF tests.
4308         * tests/test-lseek.c (main): Add more tests for EBADF.
4309
4310         Tests for module 'ftruncate'.
4311         * modules/ftruncate-tests: New file.
4312         * tests/test-ftruncate.sh: New file.
4313         * tests/test-ftruncate.c: New file.
4314
4315         fsync tests: EBADF tests.
4316         * tests/test-fsync.c (main): Add more tests for EBADF.
4317
4318         fdatasync tests: EBADF tests.
4319         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4320
4321         Tests for module 'fchown'.
4322         * modules/fchown-tests: New file.
4323         * tests/test-fchown.c: New file.
4324
4325         Tests for module 'fchmod'.
4326         * modules/fchmod-tests: New file.
4327         * tests/test-fchmod.c: New file.
4328
4329         fchdir tests: EBADF tests.
4330         * tests/test-fchdir.c (main): Add more tests for EBADF.
4331
4332         dup2 tests: EBADF tests.
4333         * tests/test-dup2.c (main): Add more tests for EBADF.
4334
4335         Tests for module 'dup'.
4336         * modules/dup-tests: New file.
4337         * tests/test-dup.c: New file.
4338
4339         Tests for module 'close'.
4340         * modules/close-tests: New file.
4341         * tests/test-close.c: New file.
4342
4343 2011-09-20  Bruno Haible  <bruno@clisp.org>
4344
4345         Tests for module 'shutdown'.
4346         * modules/shutdown-tests: New file.
4347         * tests/test-shutdown.c: New file.
4348
4349         Tests for module 'setsockopt'.
4350         * modules/setsockopt-tests: New file.
4351         * tests/test-setsockopt.c: New file.
4352
4353         Tests for module 'sendto'.
4354         * modules/sendto-tests: New file.
4355         * tests/test-sendto.c: New file.
4356
4357         Tests for module 'send'.
4358         * modules/send-tests: New file.
4359         * tests/test-send.c: New file.
4360
4361         Tests for module 'recvfrom'.
4362         * modules/recvfrom-tests: New file.
4363         * tests/test-recvfrom.c: New file.
4364
4365         Tests for module 'recv'.
4366         * modules/recv-tests: New file.
4367         * tests/test-recv.c: New file.
4368
4369         Tests for module 'listen'.
4370         * modules/listen-tests: New file.
4371         * tests/test-listen.c: New file.
4372
4373         Tests for module 'getsockopt'.
4374         * modules/getsockopt-tests: New file.
4375         * tests/test-getsockopt.c: New file.
4376
4377         Tests for module 'getsockname'.
4378         * modules/getsockname-tests: New file.
4379         * tests/test-getsockname.c: New file.
4380
4381         Tests for module 'getpeername'.
4382         * modules/getpeername-tests: New file.
4383         * tests/test-getpeername.c: New file.
4384
4385         Tests for module 'connect'.
4386         * modules/connect-tests: New file.
4387         * tests/test-connect.c: New file.
4388
4389         Tests for module 'bind'.
4390         * modules/bind-tests: New file.
4391         * tests/test-bind.c: New file.
4392
4393         accept4 tests: Fix for native Windows.
4394         * tests/test-accept4.c: Include sockets.h.
4395         (main): Invoke gl_sockets_startup.
4396         * modules/accept4-tests (Depends-on): Add sockets.
4397
4398         accept tests: Fix for native Windows.
4399         * tests/test-accept.c: Include sockets.h.
4400         (main): Invoke gl_sockets_startup.
4401         * modules/accept-tests (Depends-on): Add sockets.
4402
4403 2011-09-19  Bruno Haible  <bruno@clisp.org>
4404
4405         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4406         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4407         do...while(0).
4408         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4409         Suggested by Paul Eggert.
4410
4411 2011-09-19  Bruno Haible  <bruno@clisp.org>
4412
4413         sched: Ensure pid_t is defined.
4414         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4415         not define pid_t.
4416         * lib/sched.in.h: Include <sys/types.h>.
4417         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4418         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4419
4420 2011-09-19  Bruno Haible  <bruno@clisp.org>
4421
4422         msvc-inval: Ensure the entire expansion is a single statement.
4423         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4424         of braces.
4425
4426 2011-09-19  Jim Meyering  <meyering@redhat.com>
4427
4428         tests: use printf, not echo in init.sh's warn_ function
4429         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4430         misbehave when given strings containing a backslash or starting
4431         with e.g., -n.  James Youngman suggested setting IFS.
4432
4433 2011-09-19  Eric Blake  <eblake@redhat.com>
4434
4435         futimens: enhance test
4436         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4437         closed non-negative fd.
4438
4439         date: accept 'hence' as opposite of 'ago'
4440         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4441         * tests/test-parse-datetime.c (main): Enhance test.
4442         Suggested by Jesse Wilson.
4443
4444 2011-09-19  Jim Meyering  <meyering@redhat.com>
4445
4446         getcwd: don't fail in a deep directory on a system without openat
4447         Before this change, getcwd would fail when called from a directory
4448         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4449         the non-openat implementation used "..", "../..", "../../..", etc.
4450         to access ancestor directories.  With too many, that string would
4451         be longer than PATH_MAX.
4452         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4453         using gnulib's openat replacement.
4454         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4455         we're using the replacement function.
4456
4457 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4458
4459         maint.mk: avoid warnings from perl about missing files
4460         * top/maint.mk (def_sym_regex): Ignore files listed in
4461         $(gl_other_headers_) that do not exist, say because a project
4462         does not use a corresponding module.
4463
4464 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4465
4466         stat: use pathmax.h only if needed
4467         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4468         This is better for Emacs, which does not have a mingw port and
4469         therefore can avoid the pathmax module.
4470
4471         utimens: remove dependency on dup2
4472         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4473         to work around the Linux kernel bug.
4474         * modules/utimens (Depends-on): Remove dup2.
4475
4476 2011-09-18  Bruno Haible  <bruno@clisp.org>
4477
4478         inet_ntop, inet_pton: Look for it also in libresolv.
4479         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4480         libnsl, search for it in libresolv.
4481         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4482         Needed on Solaris 7.
4483
4484 2011-09-18  Bruno Haible  <bruno@clisp.org>
4485
4486         accept, accept4 tests: Avoid link error on Solaris.
4487         * modules/accept-tests (Makefile.am): Link test-accept against
4488         $(LIBSOCKET).
4489         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4490         $(LIBSOCKET).
4491
4492         accept4: Avoid link error on Solaris.
4493         * modules/accept4 (Link): New section.
4494
4495         socket functions: Avoid link errors on Solaris.
4496         * modules/accept (Depends-on): Add socketlib.
4497         (Link): New section.
4498         * modules/bind (Depends-on): Add socketlib.
4499         (Link): New section.
4500         * modules/connect (Depends-on): Add socketlib.
4501         (Link): New section.
4502         * modules/getpeername (Depends-on): Add socketlib.
4503         (Link): New section.
4504         * modules/getsockname (Depends-on): Add socketlib.
4505         (Link): New section.
4506         * modules/getsockopt (Depends-on): Add socketlib.
4507         (Link): New section.
4508         * modules/listen (Depends-on): Add socketlib.
4509         (Link): New section.
4510         * modules/recv (Depends-on): Add socketlib.
4511         (Link): New section.
4512         * modules/recvfrom (Depends-on): Add socketlib.
4513         (Link): New section.
4514         * modules/send (Depends-on): Add socketlib.
4515         (Link): New section.
4516         * modules/sendto (Depends-on): Add socketlib.
4517         (Link): New section.
4518         * modules/setsockopt (Depends-on): Add socketlib.
4519         (Link): New section.
4520         * modules/shutdown (Depends-on): Add socketlib.
4521         (Link): New section.
4522         * modules/socket (Depends-on): Add socketlib.
4523         (Link): New section.
4524
4525 2011-09-18  Bruno Haible  <bruno@clisp.org>
4526
4527         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4528         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4529         than 5 seconds.
4530         * modules/ptsname-tests (configure.ac): Test for alarm.
4531
4532 2011-09-18  Bruno Haible  <bruno@clisp.org>
4533
4534         posix_spawn_file_actions_add*: Fix module dependencies.
4535         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4536         posix_spawn_file_actions_init.
4537         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4538         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4539
4540 2011-09-18  Bruno Haible  <bruno@clisp.org>
4541
4542         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4543         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4544         * tests/test-renameat.c (main): Likewise.
4545
4546 2011-09-18  Bruno Haible  <bruno@clisp.org>
4547
4548         Tests for module 'accept4'.
4549         * modules/accept4-tests: New file.
4550         * tests/test-accept4.c: New file.
4551
4552 2011-09-18  Bruno Haible  <bruno@clisp.org>
4553
4554         Tests for module 'accept'.
4555         * modules/accept-tests: New file.
4556         * tests/test-accept.c: New file.
4557
4558 2011-09-18  Bruno Haible  <bruno@clisp.org>
4559
4560         dup2: Support for MSVC.
4561         * lib/dup2.c: Include msvc-inval.h.
4562         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4563         _get_osfhandle calls.
4564         * modules/dup2 (Depends-on): Add msvc-inval.
4565         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4566
4567         New module 'msvc-inval'.
4568         * lib/msvc-inval.h: New file.
4569         * lib/msvc-inval.c: New file.
4570         * m4/msvc-inval.m4: New file.
4571         * modules/msvc-inval: New file.
4572
4573 2011-09-17  Bruno Haible  <bruno@clisp.org>
4574
4575         Tests for module 'pclose'.
4576         * modules/pclose-tests: New file.
4577
4578         New module 'pclose'.
4579         * lib/stdio.in.h (pclose): New declaration.
4580         * lib/pclose.c: New file.
4581         * m4/pclose.m4: New file.
4582         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4583         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4584         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4585         * modules/pclose: New file.
4586         * modules/popen-tests (Depends-on): Add pclose.
4587         * modules/popen-safer-tests (Depends-on): Likewise.
4588         * doc/posix-functions/pclose.texi: Mention the new module.
4589
4590 2011-09-17  Bruno Haible  <bruno@clisp.org>
4591
4592         popen: Support for MSVC.
4593         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4594         * lib/popen.c (popen): Provide alternate definition for native Windows.
4595         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4597         * modules/popen (Depends-on, configure.ac): Update condition.
4598         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4599         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4600         fixed.
4601
4602 2011-09-17  Bruno Haible  <bruno@clisp.org>
4603
4604         isnanl, isnand, isnanf: Work around MSVC bug.
4605         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4606
4607 2011-09-17  Bruno Haible  <bruno@clisp.org>
4608
4609         sys_socket tests: Fix recent mistake.
4610         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4611
4612 2011-09-17  Bruno Haible  <bruno@clisp.org>
4613
4614         putenv: Support for MSVC.
4615         * modules/putenv (Depends-on): Add environ.
4616         * lib/putenv.c (environ): Disable declaration.
4617         * lib/unistd.in.h: Update comment.
4618
4619 2011-09-17  Bruno Haible  <bruno@clisp.org>
4620
4621         math: Avoid macro redefinition warnings on MSVC.
4622         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4623         Undefine before redefining.
4624
4625 2011-09-17  Bruno Haible  <bruno@clisp.org>
4626
4627         doc: Mention functions which are declared as macros.
4628         * doc/posix-functions/*[fl].texi: Mention that some functions are
4629         defined as macros with arguments only.
4630
4631 2011-09-17  Bruno Haible  <bruno@clisp.org>
4632
4633         Add dependencies to new dirent related modules.
4634         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4635         * modules/fts (Depends-on): Likewise.
4636         * modules/glob (Depends-on): Likewise.
4637         * modules/savedir (Depends-on): Likewise.
4638         * modules/scandir (Depends-on): Likewise.
4639         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4640         * modules/fdopendir (Depends-on): Add opendir.
4641
4642 2011-09-17  Bruno Haible  <bruno@clisp.org>
4643
4644         inet_pton: Support for MSVC on Windows Vista or newer.
4645         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4646         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4647         HAVE_DECL_INET_PTON is defined.
4648         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4649         On platforms with <winsock2.h>, test whether inet_pton is declared in
4650         <ws2tcpip.h>. If so, arrange to replace it.
4651         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4652         REPLACE_INET_PTON.
4653         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4654         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4655         (Depends-on, configure.ac): Update condition.
4656         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4657
4658 2011-09-17  Bruno Haible  <bruno@clisp.org>
4659
4660         inet_ntop: Support for MSVC on Windows Vista or newer.
4661         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4662         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4663         HAVE_DECL_INET_NTOP is defined.
4664         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4665         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4666         <ws2tcpip.h>. If so, arrange to replace it.
4667         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4668         REPLACE_INET_NTOP.
4669         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4670         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4671         (Depends-on, configure.ac): Update condition.
4672         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4673
4674 2011-09-16  Eric Blake  <eblake@redhat.com>
4675
4676         test-fsync: yet another enhancement
4677         * tests/test-fsync.c (main): Also test behavior on read-only text
4678         file.
4679
4680 2011-09-16  Bruno Haible  <bruno@clisp.org>
4681
4682         Enhance fsync, fdatasync tests.
4683         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4684         * tests/test-fdatasync.c (main): Likewise.
4685
4686 2011-09-16  Bruno Haible  <bruno@clisp.org>
4687
4688         Support for MSVC compiler: Ensure mode_t gets defined.
4689         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4690         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4691         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4692         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4693         * tests/test-fcntl-h.c: Check that mode_t is defined.
4694         * tests/test-sys_stat.c: Likewise.
4695         * tests/test-sys_types.c: Likewise.
4696         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4697         * doc/posix-headers/sys_stat.texi: Likewise.
4698         * doc/posix-headers/sys_types.texi: Likewise.
4699
4700 2011-09-16  Bruno Haible  <bruno@clisp.org>
4701
4702         sys_stat: Support for MSVC.
4703         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4704         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4705         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4706         MSVC.
4707
4708 2011-09-16  Bruno Haible  <bruno@clisp.org>
4709
4710         Support for MSVC compiler: Ensure off_t gets defined.
4711         * lib/unistd.in.h: Include <sys/types.h>.
4712         * tests/test-fcntl-h.c: Check that off_t is defined.
4713         * tests/test-sys_stat.c: Likewise.
4714         * tests/test-sys_types.c: Likewise.
4715
4716 2011-09-16  Eric Blake  <eblake@redhat.com>
4717
4718         fdatasync: port to Solaris
4719         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4720         * modules/fdatasync (Link): Document it.
4721         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4722
4723         fdatasync: port to MacOS X 10.7
4724         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4725         declared.
4726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4727         * modules/unistd (Makefile.am): Substitute it.
4728         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4729         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4730
4731         fdatasync: minor improvements
4732         * modules/fdatasync (Depends-on): Add condition for fsync.
4733         * lib/fdatasync.c (fdatasync): Add comment.
4734         * tests/test-unistd-c++.cc: Test fdatasync.
4735
4736         unistd: update refs to newer POSIX
4737         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4738         Suggested by Bruno Haible.
4739
4740         fdatasync: new module
4741         * modules/fsync (Description): Document difference to fdatasync.
4742         * modules/fdatasync: New module.
4743         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4744         * lib/fdatasync.c (fdatasync): Likewise.
4745         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4746         defaults.
4747         * modules/unistd (Makefile.am): Set witnesses.
4748         * lib/unistd.in.h (fdatasync): Declare.
4749         * MODULES.html.sh: Document it.
4750         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4751         * modules/fdatasync-tests: New test.
4752         * tests/test-fdatasync.c: Likewise.
4753
4754 2011-09-16  Eric Blake  <eblake@redhat.com>
4755
4756         test-fsync: enhance tests
4757         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4758         * tests/test-fsync.c (main): Enhance test.
4759
4760 2011-09-15  Bruno Haible  <bruno@clisp.org>
4761
4762         Support for MSVC compiler: Ensure ssize_t gets defined.
4763         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4764         * doc/posix-headers/stdio.texi: Likewise.
4765         * modules/stdio (Depends-on): Add ssize_t.
4766         * modules/sys_socket (Depends-on): Likewise.
4767         * modules/sys_types (Depends-on): Likewise.
4768         * modules/sys_uio (Depends-on): Likewise.
4769         * modules/unistd (Depends-on): Likewise.
4770         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4771         * tests/test-sys_types.c: Check that ssize_t is defined.
4772
4773 2011-09-14  Bruno Haible  <bruno@clisp.org>
4774
4775         Avoid using #, the m4 comment starter character, near brackets.
4776         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4777         delimiter character in sed expressions.
4778         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4779         Suggested by Eric Blake.
4780
4781         Properly quote AC_CHECK_DECLS' 4th argument.
4782         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4783         argument.
4784         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4785         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4786         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4787         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4788         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4789         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4790         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4791         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4792         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4793         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4794         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4795         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4796         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4797         * m4/isinf.m4 (gl_ISINF): Likewise.
4798         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4799         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4800         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4801         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4802         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4803         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4804         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4805         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4806         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4807         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4808         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4809         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4811         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4813         Reported by Eric Blake.
4814
4815         Properly quote AC_CHECK_DECL's 4th argument.
4816         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4817         argument.
4818         * m4/argp.m4 (gl_ARGP): Likewise.
4819         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4820         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4821         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4822         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4823         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4824         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4825         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4826         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4827         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4828         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4829         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4830         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4831         Reported by Eric Blake.
4832
4833 2011-09-14  Eric Blake  <eblake@redhat.com>
4834
4835         opendir: avoid compile warning
4836         * lib/opendir.c (includes): Always include errno.h.
4837         Reported by Tatsuro MATSUOKA.
4838
4839 2011-09-14  Jim Meyering  <meyering@redhat.com>
4840
4841         maint.mk: sc_tight_scope: propagate failure from sub-make
4842         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4843         Reported by Martin von Gagern.
4844
4845 2011-09-13  Bruno Haible  <bruno@clisp.org>
4846
4847         tempname: Support for MSVC.
4848         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4849         MSVC.
4850         * modules/tempname (Depends-on): Add fcntl-h.
4851
4852 2011-09-13  Bruno Haible  <bruno@clisp.org>
4853
4854         sys_time: Support for MSVC.
4855         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4856         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4857         include <winsock2.h>.
4858         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4859         function declarations that collide with POSIX.
4860         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4861         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4862
4863 2011-09-13  Bruno Haible  <bruno@clisp.org>
4864
4865         stat: Support for MSVC.
4866         * lib/stat.c: Include pathmax.h.
4867         * modules/stat (Depends-on): Add pathmax.
4868
4869         pathmax: Support for native Windows.
4870         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4871
4872 2011-09-12  Bruno Haible  <bruno@clisp.org>
4873
4874         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4875         * lib/dirent.in.h (struct dirent): New type.
4876         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4877         DT_WHT): New macros.
4878         (DIR): New type.
4879         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4880         (readdir, rewinddir): New declarations.
4881         * lib/dirent-private.h: New file.
4882         * lib/opendir.c: New file.
4883         * lib/readdir.c: New file.
4884         * lib/rewinddir.c: New file.
4885         * lib/closedir.c: New file.
4886         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4887         * m4/opendir.m4: New file.
4888         * m4/readdir.m4: New file.
4889         * m4/rewinddir.m4: New file.
4890         * m4/closedir.m4: New file.
4891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4892         REPLACE_CLOSEDIR here.
4893         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4894         readdir, rewinddir are declared.
4895         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4896         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4897         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4898         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4899         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4900         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4901         * modules/opendir: New file.
4902         * modules/readdir: New file.
4903         * modules/rewinddir: New file.
4904         * modules/closedir: New file.
4905         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4906         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4907         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4908         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4909         * NEWS: Mention the 'fchdir' change.
4910
4911 2011-09-11  Bruno Haible  <bruno@clisp.org>
4912
4913         asm-underscore.m4: Support for MSVC.
4914         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4915         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4916
4917 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4918
4919         Doc about crypt functions.
4920         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4921         needing for _GNU_SOURCE to get crypt.
4922         * doc/posix-functions/encrypt.texi: Likewise.
4923         * doc/posix-functions/setkey.texi: Likewise.
4924
4925 2011-09-11  Bruno Haible  <bruno@clisp.org>
4926
4927         doc: Update regarding MSVC 9.
4928         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4929         tested".
4930         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4931         * doc/posix-headers/*.texi: Likewise.
4932         * doc/pastposix-functions/*.texi: Likewise.
4933         * doc/glibc-functions/*.texi: Likewise.
4934         * doc/glibc-headers/*.texi: Likewise.
4935
4936 2011-09-11  Bruno Haible  <bruno@clisp.org>
4937
4938         unistd et al.: Don't assume <unistd.h> exists.
4939         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4940         does not exist.
4941         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4942         exist. But include <stdlib.h>.
4943         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4944         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4945         symlink() does not exist.
4946         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4947         include <io.h> instead.
4948         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4949         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4950         include <direct.h> instead.
4951         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4952         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4953         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4954         <io.h> instead.
4955         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4956         correctly if the system does not have hard links.
4957         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4958         <direct.h> instead.
4959         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4960         it when looking for function declarations.
4961         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4962         <direct.h> and <io.h> instead.
4963         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4964
4965 2011-09-11  Bruno Haible  <bruno@clisp.org>
4966
4967         strcase: Support for MSVC.
4968         * modules/strcase (Status, Notice): Remove obsoletion mark.
4969         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4970         * doc/posix-functions/strncasecmp.texi: Likewise.
4971
4972         strings: Don't assume <strings.h> exists.
4973         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4974         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4975         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4976         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4977
4978 2011-09-11  Bruno Haible  <bruno@clisp.org>
4979
4980         dirent: Don't assume <dirent.h> exists.
4981         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4982         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4983         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4984         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4985
4986 2011-09-11  Bruno Haible  <bruno@clisp.org>
4987
4988         Fix wint_t on MSVC.
4989         * lib/wchar.in.h (wint_t): On MSVC, override it.
4990         * lib/wctype.in.h (wint_t): Likewise.
4991         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4992         MSVC.
4993         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4994         * doc/posix-headers/wctype.texi: Likewise.
4995
4996 2011-09-11  Bruno Haible  <bruno@clisp.org>
4997
4998         sys_types: Fix typo.
4999         * lib/sys_types.in.h: Fix typo in comment.
5000         Reported by Paul Eggert.
5001
5002         Support for MSVC compiler: Ensure size_t gets defined.
5003         * modules/strings (Depends-on): Add 'sys_types'.
5004         * modules/sys_uio (Depends-on): Likewise.
5005         * lib/sys_uio.in.h: Update comment.
5006
5007         C++ tests for module 'sys_types'.
5008         * modules/sys_types-c++-tests: New file.
5009         * tests/test-sys_types-c++.cc: New file.
5010
5011         Tests for module 'sys_types'.
5012         * modules/sys_types-tests: New file.
5013         * tests/test-sys_types.c: New file.
5014
5015         New module 'sys_types'.
5016         * lib/sys_types.in.h: New file.
5017         * m4/sys_types_h.m4: New file.
5018         * modules/sys_types: New file.
5019         * doc/posix-headers/sys_types.texi: Mention the new module and the
5020         size_t problem on MSVC 9.
5021
5022 2011-09-11  Bruno Haible  <bruno@clisp.org>
5023
5024         Support for MSVC compiler: Avoid division by a literal 0.
5025         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5026         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5027         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5028         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5029         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5030         * tests/infinity.h: New file.
5031         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5032         on MSVC.
5033         * tests/test-ceilf1.c: Include infinity.h.
5034         (main): Use Infinityf.
5035         * tests/test-ceil1.c: Include infinity.h.
5036         (main): Use Infinityd.
5037         * tests/test-ceill.c: Include infinity.h.
5038         (main): Use Infinityl.
5039         * tests/test-dprintf-posix.c: Include infinity.h.
5040         (test_function): Use Infinityd.
5041         * tests/test-floorf1.c: Include infinity.h.
5042         (main): Use Infinityf.
5043         * tests/test-floor1.c: Include infinity.h.
5044         (main): Use Infinityd.
5045         * tests/test-floorl.c: Include infinity.h.
5046         (main): Use Infinityl.
5047         * tests/test-fprintf-posix.c: Include infinity.h.
5048         (test_function): Use Infinityd.
5049         * tests/test-frexp.c: Include infinity.h.
5050         (main): Use Infinityd.
5051         * tests/test-frexpl.c: Include infinity.h.
5052         (main): Use Infinityl.
5053         * tests/test-isfinite.c: Include infinity.h.
5054         (test_isfinitef): Use Infinityf.
5055         (test_isfinited): Use Infinityd.
5056         (test_isfinitel): Use Infinityl.
5057         * tests/test-isinf.c: Include infinity.h.
5058         (test_isinff): Use Infinityf.
5059         (test_isinfd): Use Infinityd.
5060         (test_isinfl): Use Infinityl.
5061         * tests/test-isnan.c: Include infinity.h.
5062         (test_float): Use Infinityf.
5063         (test_double): Use Infinityd.
5064         (test_long_double): Use Infinityl.
5065         * tests/test-isnanf.h: Include infinity.h.
5066         (main): Use Infinityf.
5067         * tests/test-isnand.h: Include infinity.h.
5068         (main): Use Infinityd.
5069         * tests/test-isnanl.h: Include infinity.h.
5070         (main): Use Infinityl.
5071         * tests/test-ldexpl.c: Include infinity.h.
5072         (main): Use Infinityl.
5073         * tests/test-printf-posix.h: Include infinity.h.
5074         (test_function): Use Infinityd.
5075         * tests/test-roundf1.c: Include infinity.h.
5076         (main): Use Infinityf.
5077         * tests/test-round1.c: Include infinity.h.
5078         (main): Use Infinityd.
5079         * tests/test-roundl.c: Include infinity.h.
5080         (main): Use Infinityl.
5081         * tests/test-signbit.c: Include infinity.h.
5082         (test_signbitf): Use Infinityf.
5083         (test_signbitd): Use Infinityd.
5084         (test_signbitl): Use Infinityl.
5085         * tests/test-snprintf-posix.h: Include infinity.h.
5086         (test_function): Use Infinityd, Infinityl.
5087         * tests/test-sprintf-posix.h: Include infinity.h.
5088         (test_function): Use Infinityd, Infinityl.
5089         * tests/test-truncf1.c: Include infinity.h.
5090         (main): Use Infinityf.
5091         * tests/test-trunc1.c: Include infinity.h.
5092         (main): Use Infinityd.
5093         * tests/test-truncl.c: Include infinity.h.
5094         (main): Use Infinityl.
5095         * tests/test-vasnprintf-posix.c: Include infinity.h.
5096         (test_function): Use Infinityd, Infinityl.
5097         * tests/test-vasprintf-posix.c: Include infinity.h.
5098         (test_function): Use Infinityd, Infinityl.
5099         * modules/ceilf-tests (Files): Add tests/infinity.h.
5100         * modules/ceil-tests (Files): Likewise.
5101         * modules/ceill-tests (Files): Likewise.
5102         * modules/dprintf-posix-tests (Files): Likewise.
5103         * modules/floorf-tests (Files): Likewise.
5104         * modules/floor-tests (Files): Likewise.
5105         * modules/floorl-tests (Files): Likewise.
5106         * modules/fprintf-posix-tests (Files): Likewise.
5107         * modules/frexp-tests (Files): Likewise.
5108         * modules/frexp-nolibm-tests (Files): Likewise.
5109         * modules/frexpl-tests (Files): Likewise.
5110         * modules/frexpl-nolibm-tests (Files): Likewise.
5111         * modules/isfinite-tests (Files): Likewise.
5112         * modules/isinf-tests (Files): Likewise.
5113         * modules/isnan-tests (Files): Likewise.
5114         * modules/isnanf-tests (Files): Likewise.
5115         * modules/isnanf-nolibm-tests (Files): Likewise.
5116         * modules/isnand-tests (Files): Likewise.
5117         * modules/isnand-nolibm-tests (Files): Likewise.
5118         * modules/isnanl-tests (Files): Likewise.
5119         * modules/isnanl-nolibm-tests (Files): Likewise.
5120         * modules/ldexpl-tests (Files): Likewise.
5121         * modules/printf-posix-tests (Files): Likewise.
5122         * modules/roundf-tests (Files): Likewise.
5123         * modules/round-tests (Files): Likewise.
5124         * modules/roundl-tests (Files): Likewise.
5125         * modules/signbit-tests (Files): Likewise.
5126         * modules/snprintf-posix-tests (Files): Likewise.
5127         * modules/sprintf-posix-tests (Files): Likewise.
5128         * modules/truncf-tests (Files): Likewise.
5129         * modules/trunc-tests (Files): Likewise.
5130         * modules/truncl-tests (Files): Likewise.
5131         * modules/vasnprintf-posix-tests (Files): Likewise.
5132         * modules/vasprintf-posix-tests (Files): Likewise.
5133         * modules/vdprintf-posix-tests (Files): Likewise.
5134         * modules/vfprintf-posix-tests (Files): Likewise.
5135         * modules/vprintf-posix-tests (Files): Likewise.
5136         * modules/vsnprintf-posix-tests (Files): Likewise.
5137         * modules/vsprintf-posix-tests (Files): Likewise.
5138         * modules/xprintf-posix-tests (Files): Likewise.
5139
5140 2011-09-11  Bruno Haible  <bruno@clisp.org>
5141
5142         Ensure pid_t gets defined.
5143         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5144         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5145         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5146         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5147         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5148         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5149         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5150         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5151         * tests/test-fcntl-h.c: Check that pid_t is defined.
5152         * tests/test-sched.c: Likewise.
5153         * tests/test-termios.c: Likewise.
5154         * tests/test-time.c: Likewise.
5155         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5156         * doc/posix-headers/signal.texi: Likewise.
5157         * doc/posix-headers/sys_types.texi: Likewise.
5158         * doc/posix-headers/time.texi: Likewise.
5159
5160 2011-09-11  Bruno Haible  <bruno@clisp.org>
5161
5162         acl: Fix compilation on Solaris 10 (older version).
5163         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5164         of ACE_EVERYONE.
5165         * lib/set-mode-acl.c (qset_acl): Likewise.
5166         Reported by Christian Jullien <eligis@orange.fr>.
5167
5168 2011-09-10  Bruno Haible  <bruno@clisp.org>
5169
5170         iconv, unsetenv: Add support for MSVC compiler.
5171         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5172         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5173
5174 2011-09-10  Bruno Haible  <bruno@clisp.org>
5175
5176         *printf: Add support for MSVC compiler.
5177         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5178         handles the exception caused by the %n directive. When cross-compiling,
5179         guess no on native Windows.
5180         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5181         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5182         emulate it through vsnprintf.
5183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5184         * doc/posix-functions/dprintf.texi: Update documentation regarding
5185         MSVC 9.
5186         * doc/posix-functions/fprintf.texi: Likewise.
5187         * doc/posix-functions/printf.texi: Likewise.
5188         * doc/posix-functions/snprintf.texi: Likewise.
5189         * doc/posix-functions/sprintf.texi: Likewise.
5190         * doc/posix-functions/swprintf.texi: Likewise.
5191         * doc/posix-functions/vdprintf.texi: Likewise.
5192         * doc/posix-functions/vfprintf.texi: Likewise.
5193         * doc/posix-functions/vprintf.texi: Likewise.
5194         * doc/posix-functions/vsnprintf.texi: Likewise.
5195         * doc/posix-functions/vsprintf.texi: Likewise.
5196         * doc/glibc-functions/asprintf.texi: Likewise.
5197         * doc/glibc-functions/obstack_printf.texi: Likewise.
5198         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5199         * doc/glibc-functions/vasprintf.texi: Likewise.
5200
5201 2011-09-10  Bruno Haible  <bruno@clisp.org>
5202
5203         nocrash: Add support for native Windows.
5204         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5205
5206 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5207             Bruno Haible  <bruno@clisp.org>
5208
5209         absolute-header, include-next: Add support for MSVC compiler.
5210         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5211         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5212         directory separator in #line directives.
5213         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5214         recognize also backslash as directory separator in #line directives.
5215
5216 2011-09-08  Jim Meyering  <meyering@redhat.com>
5217
5218         maint.mk: mark the post-release commit log with "maint: " prefix
5219         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5220         one-line commit-log summary.
5221
5222 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5223             Bruno Haible  <bruno@clisp.org>
5224
5225         Doc about crypt functions.
5226         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5227         systems.
5228         * doc/posix-functions/encrypt.texi: Likewise.
5229         * doc/posix-functions/setkey.texi: Likewise.
5230
5231 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5232
5233         * lib/gc.h: Fix copyright header.
5234
5235 2011-09-07  Bruno Haible  <bruno@clisp.org>
5236
5237         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5238         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5239         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5240
5241 2011-09-07  Bruno Haible  <bruno@clisp.org>
5242
5243         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5244         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5245         * lib/freopen.c: Likewise.
5246         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5247         * lib/lstat.c: Likewise.
5248         * lib/stat.c: Likewise.
5249         * lib/open.c: Use different syntax for include of <fcntl.h>.
5250         * lib/openat.c: Include fcntl.h again, explicitly.
5251
5252 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5253
5254         parse-datetime: document the newly accepted format
5255         * doc/parse-datetime.texi (Combined date and time of day items):
5256         New section.
5257
5258 2011-09-06  Bruno Haible  <bruno@clisp.org>
5259
5260         acl: Fix a test failure on newer Solaris 10 with ZFS.
5261         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5262         ENOSYS as no ACL.
5263         Reported by Jim Meyering.
5264
5265 2011-09-06  Bruno Haible  <bruno@clisp.org>
5266
5267         acl: Update for AIX >= 5.3 with NFS.
5268         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5269         ENOSYS as no ACL.
5270
5271         acl: Fix a test failure on AIX >= 5.3 with NFS.
5272         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5273         as no ACL.
5274
5275 2011-09-06  Bruno Haible  <bruno@clisp.org>
5276
5277         acl: Fix a test failure on IRIX 6.5 with NFS.
5278         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5279         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5280         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5281         * lib/copy-acl.c (qcopy_acl): Likewise.
5282
5283 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5284
5285         openat: port to AIX 7.1 with large files
5286         AIX 7.1 does a "#define openat open64at" if large files are in use,
5287         so we can't simply #undef openat.  Use the orig_openat trick (similar
5288         to orig_open in lib/open.c) to work around the problem.  Problem
5289         reported by Kevin Brott for GNU tar, in the thread containing
5290         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5291         * lib/openat.c (__need_system_fcntl_h): Define first.
5292         Include <fcntl.h> and <sys/types.h> before undefining.
5293         (orig_openat) [HAVE_OPENAT]: New inline function.
5294         (openat) [HAVE_OPENAT]: Do not undef.
5295         (rpl_openat): Use orig_openat, not openat.
5296
5297 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5298             Bruno Haible  <bruno@clisp.org>
5299
5300         acl: Avoid errors on NonStop Kernel.
5301         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5302         ENOTSUP errors.
5303
5304 2011-09-05  Bruno Haible  <bruno@clisp.org>
5305
5306         acl: Clean up Solaris code.
5307         * lib/acl-internal.h: Remove no-op #if.
5308         * lib/file-has-acl.c: Likewise.
5309         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5310         * lib/copy-acl.c (qcopy_acl): Likewise.
5311
5312 2011-09-05  Bruno Haible  <bruno@clisp.org>
5313
5314         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5315         binaries built on the original Solaris 10.
5316         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5317         trivial.
5318
5319 2011-09-05  Bruno Haible  <bruno@clisp.org>
5320
5321         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5322         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5323         10.
5324         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5325         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5326         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5327         instead of acl_get, facl_get, acl_set, facl_set.
5328
5329 2011-09-05  Bruno Haible  <bruno@clisp.org>
5330
5331         copy-file: Try unit tests on more file systems.
5332         * tests/test-copy-file-1.sh: New file.
5333         * tests/test-copy-file-2.sh: New file.
5334         * modules/copy-file-tests (Files): Add them.
5335         (Makefile.am): Add them to TESTS.
5336
5337         acl: Try unit tests on more file systems.
5338         * tests/test-file-has-acl-1.sh: New file.
5339         * tests/test-file-has-acl-2.sh: New file.
5340         * tests/test-set-mode-acl-1.sh: New file.
5341         * tests/test-set-mode-acl-2.sh: New file.
5342         * tests/test-copy-acl-1.sh: New file.
5343         * tests/test-copy-acl-2.sh: New file.
5344         * modules/acl-tests (Files): Add them.
5345         (Makefile.am): Add them to TESTS.
5346
5347 2011-09-04  Bruno Haible  <bruno@clisp.org>
5348
5349         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5350         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5351         10.
5352         (OLD_ALLOW, OLD_DENY): New macros.
5353         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5354         ACE_ACCESS_ALLOWED_ACE_TYPE.
5355         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5356         ACE_ACCESS_DENIED_ACE_TYPE.
5357         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5358         (NEW_ACE_EXECUTE): Fix value.
5359         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5360         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5361         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5362         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5363         NEW_ACE_SYNCHRONIZE): New macros.
5364         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5365         instead of acl_fromtext, acl_set, facl_set.
5366         Fixes a coreutils/tests/cp/perm failure.
5367
5368 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5369
5370         openat: test for fstatat (..., 0) bug
5371         Further testing with tar suggests that fstatat (..., 0)
5372         does not work in general, on AIX 7.1; see
5373         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5374         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5375         replacement fstatat (which is what older AIX releases were using
5376         anyway).
5377         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5378         use is now changed to orig_fstatat.  This was probably the right
5379         thing to do anyway.
5380         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5381         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5382         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5383         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5384         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5385         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5386         if the bug is found.
5387
5388         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5389         This tests for another fstatat bug on AIX 7.1:
5390         fstatat (AT_FDCWD, ..., 0) does not work.  See
5391         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5392         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5393         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5394         (rpl_fstatat): Adjust so that it works around either (or both)
5395         bugs if present.
5396         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5397
5398 2011-09-03  Karl Berry  <karl@gnu.org>
5399
5400         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5401         in index entries.
5402
5403 2011-09-02  Bruno Haible  <bruno@clisp.org>
5404
5405         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5406         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5407         values of AR, ARFLAGS, RANLIB.
5408         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5409
5410 2011-09-02  Bruno Haible  <bruno@clisp.org>
5411
5412         Find 'ar' program that fits with --host argument.
5413         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5414
5415 2011-09-02  Bruno Haible  <bruno@clisp.org>
5416
5417         tests: init.sh: Support any non-GNU diff.
5418         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5419         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5420         Solaris 8.
5421
5422 2011-09-02  Bruno Haible  <bruno@clisp.org>
5423
5424         tests: init.sh: work also with any non-GNU diff that supports -u
5425         * tests/init.sh: Relax check for diff -u support.
5426         Rather than checking for GNU diff via --version, simply check
5427         for support for -u itself.  Useful at least on OpenBSD 4.9,
5428         AIX 7.1, IRIX 6.5, and Solaris 10.
5429
5430 2011-09-01  Bruno Haible  <bruno@clisp.org>
5431
5432         strtoimax, strtoumax: Document problem on HP-UX 11.
5433         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5434         * doc/posix-functions/strtoumax.texi: Likewise.
5435
5436 2011-09-01  Bruno Haible  <bruno@clisp.org>
5437
5438         strtoumax: Avoid link error on OSF/1 with DTK cc.
5439         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5440         defined as a function.
5441         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5442         strtoumax is defined, not whether it is declared.
5443
5444 2011-09-01  Bruno Haible  <bruno@clisp.org>
5445
5446         strtoimax: Avoid link error on OSF/1 with DTK cc.
5447         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5448         defined as a function.
5449         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5450         strtoimax is defined, not whether it is declared.
5451
5452 2011-09-01  Bruno Haible  <bruno@clisp.org>
5453
5454         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5455         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5456         as a function.
5457         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5458         whether it is declared.
5459
5460 2011-09-01  Bruno Haible  <bruno@clisp.org>
5461
5462         imaxabs: Avoid link error on OSF/1 with DTK cc.
5463         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5464         as a function.
5465         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5466         whether it is declared.
5467
5468 2011-09-01  Bruno Haible  <bruno@clisp.org>
5469
5470         Tests for module 'strtoumax'.
5471         * modules/strtoumax-tests: New file.
5472         * tests/test-strtoumax.c: New file.
5473
5474         Tests for module 'strtoimax'.
5475         * modules/strtoimax-tests: New file.
5476         * tests/test-strtoimax.c: New file.
5477
5478         Tests for module 'imaxdiv'.
5479         * modules/imaxdiv-tests: New file.
5480         * tests/test-imaxdiv.c: New file.
5481
5482         Tests for module 'imaxabs'.
5483         * modules/imaxabs-tests: New file.
5484         * tests/test-imaxabs.c: New file.
5485
5486 2011-09-01  Bruno Haible  <bruno@clisp.org>
5487
5488         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5489         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5490         pthread_create.
5491
5492 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5493
5494         openat: work around AIX 7.1 fstatat issue
5495         This should fix the problem that was not properly fixed
5496         in the previous change, dated 2011-08-30.
5497         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5498         __need_system_stat_h defined.
5499         (orig_fstatat) [HAVE_FSTATAT]: New function.
5500         (rpl_fstatat): Go back to the old way of doing things,
5501         except call orig_fstatat instead of fstatat.
5502         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5503         Remove unnecessary check whether fstatat fills in st_size etc.
5504
5505 2011-09-01  Bruno Haible  <bruno@clisp.org>
5506
5507         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5508         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5509         just include the system's header.
5510
5511 2011-08-31  Jim Meyering  <meyering@redhat.com>
5512
5513         tests: avoid spurious assertion failure in test-float.c on ppc64
5514         * tests/test-float.c (test_long_double): Comment out an assertion,
5515         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5516         with gcc-4.4.4.
5517
5518         maint: indent with spaces, not TABs
5519         I need to get in the habit of running gnulib's "make check".
5520         Both of these would have been caught.
5521         * m4/largefile.m4: Indent with spaces, not TABs.
5522         * lib/parse-datetime.y (iso_8601_time): Likewise.
5523         Spotted by Pádraig Brady.
5524
5525         test-parse-datetime.c: accommodate a relatively strict gcc warning
5526         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5527         to avoid a warning from gcc's -Werror=missing-declarations.
5528         Insert a few spaces-before-funcall-parenthesis.
5529
5530 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5531
5532         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5533         The parser now accepts ISO 8601 date-time strings with "T" as the
5534         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5535         with a space between the date and time strings.  Now it also parses
5536         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5537         variants like "2004-02-29T16:21:42.333-07:00"
5538         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5539         of day representation using the 'T' separator character.
5540         * doc/parse-datetime.texi (General date syntax): replace use of
5541         deprecated --iso-8601 option with --rfc-3339 in example of date
5542         command output formats that can be parsed.
5543         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5544         lib/parse-datetime.y.
5545         (gmt_offset): New function.
5546         (main): Add additional test cases to validate ISO8601 extended
5547         date and time of day parsing.
5548
5549 2011-08-31  Bruno Haible  <bruno@clisp.org>
5550
5551         freopen: Documentation.
5552         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5553         name.
5554         Reported by Claudio Bley <claudio.bley@gmail.com>.
5555
5556 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5557
5558         freopen: Don't crash if the filename argument is NULL.
5559         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5560         NULL.
5561
5562 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5563
5564         openat: work around AIX 7.1 fstatat bug
5565         Problem reported by Kevin Brott for GNU tar, in the thread containing
5566         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5567         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5568         FSTATAT_ST_SIZE_ETC_BROKEN.
5569         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5570         rpl_fstatat.
5571         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5572         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5573         AC_CHECK_FUNCS_ONCE for fstatat.
5574         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5575         fchmodat, mkdirat, openat and unlinkat.
5576
5577 2011-08-30  Bruno Haible  <bruno@clisp.org>
5578
5579         Avoid endless recursions if config.h includes some header files.
5580         * lib/fopen.c (__need_FILE): Define already before including config.h.
5581         * lib/freopen.c (__need_FILE): Likewise.
5582         * lib/open.c (__need_system_fcntl_h): Likewise.
5583         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5584         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5585         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5586
5587 2011-08-25  Karl Berry  <karl@gnu.org>
5588
5589         * config/srclist.txt (ylwrap): new try.
5590         * build-aux/ylwrap: new file.
5591
5592 2011-08-23  Bruno Haible  <bruno@clisp.org>
5593
5594         tmpdir: Use a good default directory on native Windows.
5595         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5596         (P_tmpdir): Default to _P_tmpdir on native Windows.
5597         (path_search): On native Windows, try the value returned by GetTempPath
5598         before trying P_tmpdir.
5599         * modules/tmpdir (Depends-on): Add pathmax.
5600         Suggested by John Darrington <john@darrington.wattle.id.au>.
5601
5602 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5603
5604         doc: fix typo in README-release
5605         * top/README-release: Capitalize first word of a sentence.
5606
5607 2011-08-19  Jim Meyering  <meyering@redhat.com>
5608
5609         fts: do not exhaust memory when processing million-entry directories
5610         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5611         directory would require about 256*N bytes of memory.  Thus, it was
5612         easy to construct a directory too large to be processed by any of
5613         those tools.  With this change, fts' maximum memory utilization is
5614         now limited to around 30MB.
5615         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5616         (fts_read): When we've processed the final entry (i.e., when
5617         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5618         using the parent entry to read any remaining entries.  Dispatch
5619         depending on what fts_build returns:
5620         - NULL+stop, aka failure: stop
5621         - NULL otherwise: move up in the dir hierarchy
5622         - non-NULL: handle this new entry
5623         (fts_build): Declare and use new local, continue_readdir.
5624         Prepare to be called from fts_read, when the entries
5625         from a partially-read directory have just been exhausted.
5626         In that case, we'll skip the opendir and instead use the parent's
5627         fts_dirp and derive dir_fd from that.
5628         Finally, in the readdir loop, if we read max_entries entries,
5629         exit the loop ensuring *not* to call closedir.  This is required
5630         so that fts_dirp can be reused on a subsequent call.
5631         Prompted by Ben England's report of memory exhaustion in find
5632         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5633
5634         maint: fts: move decl of `dp' down into while loop; split a long line
5635         * lib/fts.c (fts_build): No semantic change.
5636
5637         fts: add/use new struct member, fts_dirp
5638         We are about to use this to manage any directory with
5639         too many entries to read all of them into memory at once.
5640         To do that, we'll need to save the DIR* pointer in each
5641         affected FTSENT struct.
5642         * lib/fts_.h: Include <dirent.h>.
5643         (struct FTSENT) [fts_dirp]: New member.
5644         * lib/fts.c (closedir_and_clear): Define.
5645         Use it in place of closedir so that we are sure to
5646         clear the new fts_dirp member when done with it.
5647         (fts_alloc): Initialize the new member.
5648         (fts_lfree): Free, if needed.
5649
5650         maint: fts: give __opendir2 a new parameter and rename
5651         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5652         than surreptitiously using sole caller's "dir_fd".
5653         (fts_opendir): Rename from __opendir2.
5654
5655         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5656         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5657
5658         maint: fts.c: correct off-by-one indentation
5659         * lib/fts.c (fts_build): Correct indentation, change style
5660         of a couple of block comments, and bracing style.
5661
5662         maint: fts.c: move __opendir2 #define "up" out of function body
5663         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5664
5665         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5666         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5667         out for a long time and besides was useful only on BSD systems.
5668
5669 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5670
5671         regex: port to Stratus OpenVOS
5672         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5673         define to empty, rather than attempting nonportable optimizations.
5674         Problem reported by Paul Green in:
5675         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5676         and fix suggested by Eric Blake in:
5677         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5678
5679 2011-08-17  Eric Blake  <eblake@redhat.com>
5680
5681         getcwd: fix test failures on mingw
5682         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5683         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5684         test if long directory cannot be created, and allow mingw errno.
5685
5686         getcwd-lgpl: fix m4 to match relaxed test for BSD
5687         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5688         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5689         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5690         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5691         signature problem.
5692
5693         getcwd: fix compilation on mingw64
5694         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5695         getcwd.
5696         Reported by Marc-André Lureau.
5697
5698         pipe2: silence compiler warning
5699         * lib/pipe2.c (pipe2): Hide label if it is not used.
5700
5701 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5702
5703         relocatable-prog: fix link error
5704         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5705         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5706         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5707         into modules/relocatable-lib without noticing that
5708         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5709         also needs to build relocatable.c.
5710
5711 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5712
5713         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5714         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5715         shell code: it contained a 'break' that was not in a loop.
5716         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5717         via a shell-language loop; this may have been true in old Autoconf
5718         versions, but it's not true in Autoconf 2.68.  I found this bug
5719         when testing coreutils git on Solaris 8, whose shell complains
5720         about the syntax error.
5721
5722 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5723
5724         * lib/base64.c: Fix comment to reference RFC 4648.
5725         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5726         <gvtulder@gmail.com>.
5727
5728 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5729
5730         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5731
5732         po/Makefile.in.in: fix make -q problem
5733         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5734         rule, since there's no file named 'check-macro-version' and its
5735         use as a file breaks make -q.
5736         (all): Don't depend on check-macro-version.
5737         (CHECK_MACRO_VERSION): New macro.
5738         (stamp-po): Use it.
5739
5740         configmake: fix make -q problem
5741         * modules/configmake (configmake.h): Update configmake.h's time stamp
5742         even if the file does not change.  Otherwise, 'make -q' fails.
5743         Problem reported by Simon Josefsson in
5744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5745
5746 2011-08-11  Jim Meyering  <meyering@redhat.com>
5747
5748         git-version-gen: correct the advice in a comment
5749         * build-aux/git-version-gen: Correct comment.
5750         Don't recommend to list .tarball-version in .gitignore.
5751
5752 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5753
5754         base64: fix off-by-one buffer size bug
5755         Problem and (trivial) fix reported by Gijs van Tulder in
5756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5757         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5758         * tests/test-base64.c (main): Catch the bug.
5759
5760 2011-08-10  Eric Blake  <eblake@redhat.com>
5761
5762         closein: correct comments
5763         * lib/closein.c (close_stdin): Improve comments.
5764
5765 2011-08-09  Bruno Haible  <bruno@clisp.org>
5766
5767         More tests for 'fseeko'.
5768         * tests/test-fseeko3.c: New file, from Eric Blake.
5769         * tests/test-fseeko3.sh: New file.
5770         * modules/fseeko-tests (Files): Add them.
5771         (TESTS): Add test-fseeko3.sh.
5772         (check_PROGRAMS): Add test-fseeko3.
5773
5774 2011-08-09  Eric Blake  <eblake@redhat.com>
5775
5776         fseeko: remove unneeded hack
5777         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5778
5779         fseeko: fix bug on glibc
5780         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5781         Reported by John W. Eaton.
5782
5783 2011-08-08  Bruno Haible  <bruno@clisp.org>
5784
5785         unictype/base: Fix interoperability with preinstalled libunistring.
5786         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5787         Reported by Simon Josefsson.
5788
5789 2011-08-08  Bruno Haible  <bruno@clisp.org>
5790
5791         iswblank: Detect declaration correctly.
5792         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5793         AC_CHECK_DECLS invocation.
5794
5795 2011-08-08  Bruno Haible  <bruno@clisp.org>
5796
5797         tcgetsid: Detect declaration correctly.
5798         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5799         AC_CHECK_DECLS invocation.
5800         Reported by Simon Josefsson.
5801
5802 2011-08-08  Eric Blake  <eblake@redhat.com>
5803
5804         largefile: fix typo that regressed large file support
5805         * modules/largefile (configure.ac-early): Fix section name.
5806
5807 2011-08-06  Karl Berry  <karl@gnu.org>
5808
5809         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5810         a separate module.
5811
5812 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5813
5814         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5815         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5816         get prototype for free.
5817
5818 2011-08-04  Bruno Haible  <bruno@clisp.org>
5819
5820         Tests for module 'pathmax'.
5821         * modules/pathmax-tests: New file.
5822         * tests/test-pathmax.c: New file.
5823
5824         canonicalize-lgpl: Support larger filenames on the Hurd.
5825         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5826         Reported by Paul Eggert.
5827
5828         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5829         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5830         * lib/chdir-long.h: Include pathmax.h.
5831         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5832         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5833         (PATH_MAX): Remove code that is done by pathmax.h.
5834         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5835         * lib/tmpfile.c: Add a comment.
5836         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5837         * modules/chdir-long (Depends-on): Add pathmax.
5838         * modules/getcwd (Depends-on): Add pathmax.
5839         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5840         is not defined.
5841         * doc/posix-headers/limits.texi: Mention the pathmax module.
5842         * NEWS: Mention the change.
5843
5844 2011-08-02  Bruno Haible  <bruno@clisp.org>
5845
5846         pthread_sigmask: Actually use results of gl_THREADLIB.
5847         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5848         gl_THREADLIB, not gl_[]THREADLIB.
5849         Reported by Eric Blake.
5850
5851 2011-08-02  Jim Meyering  <meyering@redhat.com>
5852
5853         maint.mk: relax the default _gl_TS_function_match regexp
5854         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5855         space between function name and "(" in an "extern" declaration.
5856         That would fail to match a decl with no space there: extern void foo();
5857
5858 2011-07-31  Iain Nicol  <iain@thenicols.net>
5859
5860         git-version-gen: document that EXTRA_DIST must include .version
5861         * build-aux/git-version-gen: In the how-to-use comment, document
5862         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5863         will fail when run from an unpacked distribution tarball.
5864
5865 2011-08-01  Bruno Haible  <bruno@clisp.org>
5866
5867         wctype-h: Fix last change.
5868         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5869         REPLACE_TOWLOWER to 0.
5870         Reported by Sam Steingold <sds@gnu.org>.
5871
5872 2011-07-31  Bruno Haible  <bruno@clisp.org>
5873
5874         frexpl: Update autoconf test.
5875         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5876         according to changes of 2011-06-20.
5877
5878 2011-07-31  Bruno Haible  <bruno@clisp.org>
5879
5880         sys_utsname: Add support for Minix.
5881         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5882         <sys/utsname.h>.
5883         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5884         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5885
5886 2011-07-31  Bruno Haible  <bruno@clisp.org>
5887
5888         strings: Add support for Minix.
5889         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5890         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5891         * doc/posix-headers/strings.texi: Document the Minix problem.
5892
5893 2011-07-31  Bruno Haible  <bruno@clisp.org>
5894
5895         wctype-h: Add support for Minix.
5896         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5897         REPLACE_TOWLOWER.
5898         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5899         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5900         REPLACE_ISWCNTRL.
5901
5902 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5903
5904         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5905         This is a performance improvement for 64-bit hosts: it causes the
5906         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5907
5908 2011-07-31  Bruno Haible  <bruno@clisp.org>
5909
5910         stdioext: Add support for Minix.
5911         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5912         * lib/fpurge.c (fpurge): Likewise.
5913         * lib/freadahead.c (freadahead): Likewise.
5914         * lib/freadable.c (freadable): Likewise.
5915         * lib/freading.c (freading): Likewise.
5916         * lib/freadptr.c (freadptr): Likewise.
5917         * lib/freadseek.c (freadptrinc): Likewise.
5918         * lib/fseeko.c (rpl_fseeko): Likewise.
5919         * lib/fseterr.c (fseterr): Likewise.
5920         * lib/fwritable.c (fwritable): Likewise.
5921         * lib/fwriting.c (fwriting): Likewise.
5922         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5923         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5924
5925 2011-07-31  Bruno Haible  <bruno@clisp.org>
5926
5927         errno: Port to Minix.
5928         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5929         ECONNABORTED are defined.
5930         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5931         GNULIB_defined_ECONNABORTED): New macros.
5932         * lib/strerror-override.h (strerror_override): Test also
5933         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5934         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5935         ECONNABORTED.
5936         * doc/posix-headers/errno.texi: Mention the Minix problem.
5937
5938 2011-07-31  Bruno Haible  <bruno@clisp.org>
5939
5940         Work around declaration collisions on Minix.
5941         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5942         defined, set REPLACE_MBSINIT.
5943         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5944         defined, set REPLACE_MBRTOWC.
5945         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5946         set REPLACE_MBRLEN.
5947         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5948         defined, set REPLACE_MBSRTOWCS.
5949         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5950         defined, set REPLACE_WCRTOMB.
5951         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5952         defined, set REPLACE_WCSRTOMBS.
5953
5954 2011-07-31  Bruno Haible  <bruno@clisp.org>
5955
5956         Add support for Minix with ACK compiler.
5957         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5958         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5959         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5960
5961 2011-07-31  Bruno Haible  <bruno@clisp.org>
5962
5963         Documentation about Minix.
5964         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5965         * doc/glibc-headers/*.texi: Likewise.
5966         * doc/posix-functions/*.texi: Likewise.
5967         * doc/glibc-functions/*.texi: Likewise.
5968
5969 2011-07-31  Bruno Haible  <bruno@clisp.org>
5970
5971         snippet/warn-on-use: Fix indentation.
5972         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5973
5974 2011-07-25  Jim Meyering  <meyering@redhat.com>
5975
5976         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5977         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5978         commands.
5979
5980 2011-07-27  Jim Meyering  <meyering@redhat.com>
5981
5982         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5983         * top/maint.mk (gl_extract_significant_defines_): Now that
5984         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5985         gnulib/lib/signal.in.h, and now that we recommend to
5986         define-if-undefined those two symbols in application code,
5987         we must filter them out of the "significant" list.
5988         This avoids a "make syntax-check" failure in coreutils.
5989
5990 2011-07-26  Eric Blake  <eblake@redhat.com>
5991
5992         warnings: add comments about previous patch
5993         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5994         * m4/include_next.m4: Likewise.
5995         * m4/warn-on-use.m4: Likewise.
5996         * m4/warnings.m4: Likewise, and simplify use.
5997         Suggested by Stefano Lattarini.
5998
5999         include-next, warnings: support older autoconf
6000         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6001         AS_VAR_PUSHDEF in a way that works with older autoconf.
6002         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6003         Reported by Daniel P. Berrange.
6004
6005 2011-07-25  Bruno Haible  <bruno@clisp.org>
6006
6007         fseek, ftell: Fix doc.
6008         * doc/posix-functions/fseek.texi: Reword statement about
6009         AC_SYS_LARGEFILE.
6010         * doc/posix-functions/ftell.texi: Likewise.
6011
6012 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6013             Bruno Haible  <bruno@clisp.org>
6014
6015         Add dependencies to the 'largefile' module.
6016         * modules/fopen (Depends-on): Add 'largefile'.
6017         * modules/freopen (Depends-on): Likewise.
6018         * modules/fseeko (Depends-on): Likewise.
6019         * modules/ftello (Depends-on): Likewise.
6020         * modules/glob (Depends-on): Likewise.
6021         * modules/lseek (Depends-on): Likewise.
6022         * modules/lstat (Depends-on): Likewise.
6023         * modules/mkostemp (Depends-on): Likewise.
6024         * modules/mkostemps (Depends-on): Likewise.
6025         * modules/mkstemp (Depends-on): Likewise.
6026         * modules/mkstemps (Depends-on): Likewise.
6027         * modules/open (Depends-on): Likewise.
6028         * modules/openat (Depends-on): Likewise.
6029         * modules/pread (Depends-on): Likewise.
6030         * modules/pwrite (Depends-on): Likewise.
6031         * modules/scandir (Depends-on): Likewise.
6032         * modules/stat (Depends-on): Likewise.
6033         * modules/tmpfile (Depends-on): Likewise.
6034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6035         since the containing module now depends on the largefile module.
6036         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6037         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6038         off_t is fixed by gnulib.
6039         * doc/posix-functions/freopen.texi: Likewise.
6040         * doc/posix-functions/fseeko.texi: Likewise.
6041         * doc/posix-functions/fstatat.texi: Likewise.
6042         * doc/posix-functions/ftello.texi: Likewise.
6043         * doc/posix-functions/glob.texi: Likewise.
6044         * doc/posix-functions/lseek.texi: Likewise.
6045         * doc/posix-functions/lstat.texi: Likewise.
6046         * doc/posix-functions/mkstemp.texi: Likewise.
6047         * doc/posix-functions/open.texi: Likewise.
6048         * doc/posix-functions/openat.texi: Likewise.
6049         * doc/posix-functions/pread.texi: Likewise.
6050         * doc/posix-functions/pwrite.texi: Likewise.
6051         * doc/posix-functions/scandir.texi: Likewise.
6052         * doc/posix-functions/stat.texi: Likewise.
6053         * doc/posix-functions/tmpfile.texi: Likewise.
6054         * doc/glibc-functions/mkostemp.texi: Likewise.
6055         * doc/glibc-functions/mkostemps.texi: Likewise.
6056         * doc/glibc-functions/mkstemps.texi: Likewise.
6057
6058 2011-07-25  Bruno Haible  <bruno@clisp.org>
6059
6060         fcntl: Move AC_LIBOBJ invocation to module description.
6061         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6062         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6063
6064         fcntl: Remove call-in from fchdir.m4.
6065         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6067
6068         dup3: Remove potential call-in from fchdir.m4.
6069         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6071
6072         dup2: Move AC_LIBOBJ invocation to module description.
6073         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6074         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6075         Don't invoke AC_LIBOBJ.
6076         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6077
6078         dup2: Remove call-in from fchdir.m4.
6079         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6081
6082         fclose: Move AC_LIBOBJ invocation to module description.
6083         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6084         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6085         to 1.
6086         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6087
6088         fclose: Remove call-in from close.m4.
6089         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6090         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6091
6092         close: Move AC_LIBOBJ invocation to module description.
6093         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6094         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6095         1.
6096         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6097
6098         close: Remove call-in from fchdir.m4.
6099         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6101
6102         open: Move AC_LIBOBJ invocation to module description.
6103         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6104         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6105         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6106
6107         open: Remove call-in from fchdir.m4.
6108         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6110
6111         fchdir: Start to remove gl_REPLACE_* idiom.
6112         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6113         (gl_FUNC_FCHDIR): Invoke it.
6114
6115 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6116
6117         * lib/ftell.c (ftell): Comment out cast.
6118
6119         close: use gl_REPLACE_FCLOSE only if defined
6120         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6121         is defined.  The close module doesn't depend on the fclose module
6122         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6124         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6125
6126 2011-07-24  Jim Meyering  <meyering@redhat.com>
6127
6128         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6129         * tests/test-select.h (test_function): Declare as "static".
6130
6131 2011-07-24  Bruno Haible  <bruno@clisp.org>
6132
6133         doc: Mention the effects of AC_SYS_LARGEFILE.
6134         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6135         on this function.
6136         * doc/posix-functions/aio_error.texi: Likewise.
6137         * doc/posix-functions/aio_fsync.texi: Likewise.
6138         * doc/posix-functions/aio_read.texi: Likewise.
6139         * doc/posix-functions/aio_return.texi: Likewise.
6140         * doc/posix-functions/aio_suspend.texi: Likewise.
6141         * doc/posix-functions/aio_write.texi: Likewise.
6142         * doc/posix-functions/fgetpos.texi: Likewise.
6143         * doc/posix-functions/fopen.texi: Likewise.
6144         * doc/posix-functions/freopen.texi: Likewise.
6145         * doc/posix-functions/fsetpos.texi: Likewise.
6146         * doc/posix-functions/fstatvfs.texi: Likewise.
6147         * doc/posix-functions/ftruncate.texi: Likewise.
6148         * doc/posix-functions/ftw.texi: Likewise.
6149         * doc/posix-functions/getrlimit.texi: Likewise.
6150         * doc/posix-functions/glob.texi: Likewise.
6151         * doc/posix-functions/lio_listio.texi: Likewise.
6152         * doc/posix-functions/lockf.texi: Likewise.
6153         * doc/posix-functions/mkstemp.texi: Likewise.
6154         * doc/posix-functions/mmap.texi: Likewise.
6155         * doc/posix-functions/nftw.texi: Likewise.
6156         * doc/posix-functions/openat.texi: Likewise.
6157         * doc/posix-functions/opendir.texi: Likewise.
6158         * doc/posix-functions/posix_fadvise.texi: Likewise.
6159         * doc/posix-functions/posix_fallocate.texi: Likewise.
6160         * doc/posix-functions/pread.texi: Likewise.
6161         * doc/posix-functions/pwrite.texi: Likewise.
6162         * doc/posix-functions/readdir.texi: Likewise.
6163         * doc/posix-functions/readdir_r.texi: Likewise.
6164         * doc/posix-functions/rewinddir.texi: Likewise.
6165         * doc/posix-functions/scandir.texi: Likewise.
6166         * doc/posix-functions/seekdir.texi: Likewise.
6167         * doc/posix-functions/setrlimit.texi: Likewise.
6168         * doc/posix-functions/statvfs.texi: Likewise.
6169         * doc/posix-functions/telldir.texi: Likewise.
6170         * doc/posix-functions/tmpfile.texi: Likewise.
6171         * doc/posix-functions/truncate.texi: Likewise.
6172         * doc/glibc-functions/fallocate.texi: Likewise.
6173         * doc/glibc-functions/fstatfs.texi: Likewise.
6174         * doc/glibc-functions/fts_children.texi: Likewise.
6175         * doc/glibc-functions/fts_read.texi: Likewise.
6176         * doc/glibc-functions/getdirentries.texi: Likewise.
6177         * doc/glibc-functions/mkostemp.texi: Likewise.
6178         * doc/glibc-functions/mkostemps.texi: Likewise.
6179         * doc/glibc-functions/mkstemps.texi: Likewise.
6180         * doc/glibc-functions/preadv.texi: Likewise.
6181         * doc/glibc-functions/pwritev.texi: Likewise.
6182         * doc/glibc-functions/sendfile.texi: Likewise.
6183         * doc/glibc-functions/statfs.texi: Likewise.
6184
6185 2011-07-24  Bruno Haible  <bruno@clisp.org>
6186
6187         doc: Fix typo.
6188         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6189
6190 2011-07-24  Bruno Haible  <bruno@clisp.org>
6191
6192         doc: Mention fsusage.
6193         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6194
6195 2011-07-24  Bruno Haible  <bruno@clisp.org>
6196
6197         doc: Mention new glibc headers and functions.
6198         * doc/glibc-headers/gshadow.texi: New file.
6199         * doc/glibc-functions/endsgent.texi: New file.
6200         * doc/glibc-functions/fgetsgent.texi: New file.
6201         * doc/glibc-functions/fgetsgent_r.texi: New file.
6202         * doc/glibc-functions/getsgent.texi: New file.
6203         * doc/glibc-functions/getsgent_r.texi: New file.
6204         * doc/glibc-functions/getsgnam.texi: New file.
6205         * doc/glibc-functions/getsgnam_r.texi: New file.
6206         * doc/glibc-functions/putsgent.texi: New file.
6207         * doc/glibc-functions/setsgent.texi: New file.
6208         * doc/glibc-functions/sgetsgent.texi: New file.
6209         * doc/glibc-functions/sgetsgent_r.texi: New file.
6210         * doc/glibc-functions/malloc_info.texi: New file.
6211         * doc/glibc-functions/preadv.texi: New file.
6212         * doc/glibc-functions/pwritev.texi: New file.
6213         * doc/glibc-functions/register_printf_modifier.texi: New file.
6214         * doc/glibc-functions/register_printf_specifier.texi: New file.
6215         * doc/glibc-functions/register_printf_type.texi: New file.
6216         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6217         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6218         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6219         * doc/glibc-functions/pthread_getname_np.texi: New file.
6220         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6221         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6222         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6223         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6224         * doc/glibc-functions/pthread_setname_np.texi: New file.
6225         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6226         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6227         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6228         * doc/glibc-functions/qsort_r.texi: New file.
6229         * doc/glibc-functions/quick_exit.texi: New file.
6230         * doc/glibc-functions/syncfs.texi: New file.
6231         * doc/gnulib.texi: Include them.
6232         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6233         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6234         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6235         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6236         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6237         * doc/glibc-functions/execvpe.texi: Likewise.
6238
6239 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6240
6241         ftell: don't include <unistd.h>
6242         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6243         guaranteed to define off_t, and the ftell module depends on the
6244         stdio module.
6245
6246         ftell: do not assume wraparound signed arithmetic
6247         * lib/ftell.c: Include <limits.h>.
6248         (ftell): Don't assume wraparound signed arithmetic.
6249
6250 2011-07-24  Bruno Haible  <bruno@clisp.org>
6251
6252         close: No longer depend on module 'fclose'.
6253         * modules/close (Depends-on): Remove fclose.
6254         * NEWS: Mention the change.
6255         Suggested by Sam Steingold <sds@gnu.org>.
6256
6257 2011-07-24  Bruno Haible  <bruno@clisp.org>
6258
6259         fsusage: Enable large volume support on AIX >= 5.2.
6260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6261         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6262         instead of STAT_STATVFS.
6263         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6264
6265         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6266         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6267         f_blocks field only on MacOS X.
6268
6269         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6270         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6271         * modules/fsusage (Depends-on): Add largefile.
6272
6273 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6274
6275         * README: Modernize discussion of signed integers.
6276         Assuming overflow wraparound is no longer safe.
6277         Mention ones' complement and signed magnitude.
6278
6279 2011-07-22  Bruno Haible  <bruno@clisp.org>
6280
6281         select tests, pselect tests: Refactor.
6282         * tests/test-select.h: New file, extracted from tests/test-select.c.
6283         (select_fn): New type.
6284         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6285         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6286         test_pipe): Add my_select argument.
6287         (test_function): Renamed from main. Add my_select argument.
6288         * tests/test-select.c: Move most code to tests/test-select.h. Include
6289         test-select.h.
6290         * modules/select-tests (Files): Add tests/test-select.h.
6291         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6292         (my_select, main): New functions.
6293         * modules/pselect-tests (Files): Add tests/test-select.h,
6294         tests/macros.h, tests/signature.h.
6295         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6296         (configure.ac): Check for <sys/wait.h>.
6297
6298 2011-07-22  Bruno Haible  <bruno@clisp.org>
6299
6300         sys_select tests: Check the signature of FD_*.
6301         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6302         signature tests from here...
6303         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6304         here.
6305         * modules/sys_select-tests (Files): Add tests/signature.h.
6306
6307 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6308
6309         largefile: new module, replacing large-inode
6310         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6311         * MODULES.html.sh: Add largefile, remove large-inode.
6312         * modules/largefile, m4/largefile.m4: New files.
6313         * modules/large-inode, m4/large-inode.m4: Remove.
6314
6315         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6316         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6317         implementations that use only 32 bits to count blocks.
6318         On typical hosts with 1024-byte blocks, this fails with file
6319         systems as small as 4 TiB.  Problem reported by Herb Wartens
6320         <http://debbugs.gnu.org/9140> and this should also fix a similar
6321         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6322
6323         large-inode: New module
6324         * MODULES.html.sh: Add it.
6325         * modules/large-inode, m4/large-inode.m4: New files.
6326
6327         extensions: Enable extensions on MacOS X 10.5 and later.
6328         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6329
6330 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6331
6332         file-has-acl: use acl_extended_file_nofollow if available
6333         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6334         (acl_extended_file): New macro.
6335         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6336         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6337
6338 2011-07-21  Bruno Haible  <bruno@clisp.org>
6339
6340         Declare system functions in a way that works with C++.
6341         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6342         declare fdopendir as extern "C".
6343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6344         declare frexpl as extern "C".
6345         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6346         declare gai_strerror as extern "C".
6347         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6348         programs, declare gai_strerror as extern "C".
6349         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6350         declare getlogin_r as extern "C".
6351         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6352         as extern "C".
6353         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6354         declare ldexpl as extern "C".
6355         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6356         as extern "C".
6357         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6358         program, declare getmntinfo as extern "C".
6359         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6360         stpncpy as extern "C".
6361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6362         program, declare __xpg_strerror_r as extern "C".
6363         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6364         strndup as extern "C".
6365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6366         declare memset and bzero as extern "C".
6367         Reported by Sam Steingold <sds@gnu.org>.
6368
6369 2011-07-12  Jim Meyering  <meyering@redhat.com>
6370
6371         maint.mk: prohibit inclusion of "verify.h" without use
6372         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6373
6374 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6375
6376         timer-time: A new module to check for timer_settime()
6377         * m4/timer_time.m4: Check for the posix function.
6378         * modules/timer-time: Add the new module.
6379         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6380         Mention it.
6381
6382 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6383             Bruno Haible  <bruno@clisp.org>
6384
6385         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6386         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6387         not defined, assume POSIX threads and look for pthread_sigmask in
6388         $LIBS, without changing $CPPFLAGS.
6389
6390 2011-07-19  Bruno Haible  <bruno@clisp.org>
6391
6392         strstr: Update cross-compilation guess.
6393         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6394         CPUs, guess no, in view of glibc
6395         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6396         Suggested by Eric Blake. Reported by Reuben Thomas.
6397
6398 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6399
6400         getopt-gnu: suppress core dumps from detection code
6401         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6402         to suppress core dumps that may well occur on glibc systems.
6403         * modules/getopt-gnu: Depend on nocrash.
6404
6405 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6406
6407         pthread_sigmask: ensure usleep is declared
6408         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6409         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6410
6411 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6412
6413         doc: Document NonStop portability issues.
6414         * doc/posix-functions/sigaction.texi (sigaction):
6415         * doc/posix-headers/signal.texi (signal.h):
6416         Document NonStop.  See Joachim Schmitz in
6417         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6418
6419 2011-07-15  Bruno Haible  <bruno@clisp.org>
6420
6421         ffsl, ffsll: Avoid unportable behaviour.
6422         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6423
6424 2011-07-15  Bruno Haible  <bruno@clisp.org>
6425
6426         ffs: More tests.
6427         * tests/test-ffs.c (NBITS): New macro.
6428         (main): Add more tests.
6429         * tests/test-ffsl.c (NBITS): New macro.
6430         (main): Add more tests.
6431         * tests/test-ffsll.c (NBITS): New macro.
6432         (main): Add more tests.
6433
6434 2011-07-15  Eric Blake  <eblake@redhat.com>
6435
6436         ffsl, ffsll: new modules
6437         * modules/ffsl: New file.
6438         * modules/ffsll: Likewise.
6439         * m4/ffsl.m4: Likewise.
6440         * m4/ffsll.m4: Likewise.
6441         * lib/ffsl.c: Likewise.
6442         * lib/ffsl.h: Likewise.
6443         * lib/ffsll.c: Likewise.
6444         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6445         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6446         * modules/string (Makefile.am): Substitute witnesses.
6447         * lib/strings.in.h (ffsl, ffsll): Declare.
6448         * modules/ffsl-tests: New test file.
6449         * modules/ffsll-tests: Likewise.
6450         * tests/test-ffsl.c: Likewise.
6451         * tests/test-ffsll.c: Likewise.
6452         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6453         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6454         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6455
6456         ffs: fix m4 prerequisite
6457         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6458
6459         ffs: avoid undefined behavior
6460         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6461         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6462         Reported by Bruno Haible.
6463
6464 2011-07-12  Bruno Haible  <bruno@clisp.org>
6465
6466         pthread_sigmask: Rely on module 'threadlib'.
6467         * modules/pthread_sigmask (Depends-on): Add threadlib.
6468         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6469         is defined.
6470
6471 2011-07-12  Bruno Haible  <bruno@clisp.org>
6472
6473         regex: Depend on module 'strcase'.
6474         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6475
6476 2011-07-12  Jim Meyering  <meyering@redhat.com>
6477
6478         warn-on-use: fix typo in file name
6479         * modules/snippet/warn-on-use (Files): Correct file name:
6480         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6481
6482 2011-07-12  Bruno Haible  <bruno@clisp.org>
6483
6484         strings: Document module.
6485         * doc/posix-headers/strings.texi: Mention module 'strings'.
6486
6487 2011-07-12  Bruno Haible  <bruno@clisp.org>
6488
6489         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6490         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6491         (Files, Makefile.am): Update.
6492         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6493         * modules/stdlib (Depends-on): Update.
6494
6495 2011-07-12  Bruno Haible  <bruno@clisp.org>
6496
6497         * NEWS: Mention the changes.
6498
6499         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6500         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6501         (Files, Makefile.am): Update.
6502         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6503         * modules/arpa_inet (Depends-on): Update.
6504         * modules/ctype (Depends-on): Update.
6505         * modules/dirent (Depends-on): Update.
6506         * modules/fcntl-h (Depends-on): Update.
6507         * modules/glob (Depends-on): Update.
6508         * modules/iconv-h (Depends-on): Update.
6509         * modules/inttypes-incomplete (Depends-on): Update.
6510         * modules/langinfo (Depends-on): Update.
6511         * modules/locale (Depends-on): Update.
6512         * modules/math (Depends-on): Update.
6513         * modules/netdb (Depends-on): Update.
6514         * modules/poll-h (Depends-on): Update.
6515         * modules/pty (Depends-on): Update.
6516         * modules/search (Depends-on): Update.
6517         * modules/signal (Depends-on): Update.
6518         * modules/spawn (Depends-on): Update.
6519         * modules/stdio (Depends-on): Update.
6520         * modules/stdlib (Depends-on): Update.
6521         * modules/string (Depends-on): Update.
6522         * modules/strings (Depends-on): Update.
6523         * modules/sys_file (Depends-on): Update.
6524         * modules/sys_ioctl (Depends-on): Update.
6525         * modules/sys_select (Depends-on): Update.
6526         * modules/sys_socket (Depends-on): Update.
6527         * modules/sys_stat (Depends-on): Update.
6528         * modules/sys_time (Depends-on): Update.
6529         * modules/sys_times (Depends-on): Update.
6530         * modules/sys_utsname (Depends-on): Update.
6531         * modules/sys_wait (Depends-on): Update.
6532         * modules/termios (Depends-on): Update.
6533         * modules/time (Depends-on): Update.
6534         * modules/unistd (Depends-on): Update.
6535         * modules/wchar (Depends-on): Update.
6536         * modules/wctype-h (Depends-on): Update.
6537         * MODULES.html.sh (Support for building libraries and executables):
6538         Update.
6539
6540         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6541         * modules/snippet/unused-parameter: Renamed from
6542         modules/unused-parameter.
6543         (Files, Makefile.am): Update.
6544         * build-aux/snippet/unused-parameter.h: Renamed from
6545         build-aux/unused-parameter.h.
6546         * modules/selinux-h (Depends-on): Update.
6547         * modules/unistr/base (Depends-on): Update.
6548         * MODULES.html.sh (Core language properties): Update.
6549
6550         Rename module 'link-warning' to 'snippet/link-warning'.
6551         * modules/snippet/link-warning: Renamed from modules/link-warning.
6552         (Files, Makefile.am): Update.
6553         * build-aux/snippet/link-warning.h: Renamed from
6554         build-aux/link-warning.h.
6555         * MODULES.html.sh (Support for building libraries and executables):
6556         Update.
6557
6558         Rename module 'c++defs' to 'snippet/c++defs'.
6559         * modules/snippet/c++defs: Renamed from modules/c++defs.
6560         (Files, Makefile.am): Update.
6561         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6562         * modules/arpa_inet (Depends-on): Update.
6563         * modules/ctype (Depends-on): Update.
6564         * modules/dirent (Depends-on): Update.
6565         * modules/fcntl-h (Depends-on): Update.
6566         * modules/glob (Depends-on): Update.
6567         * modules/iconv-h (Depends-on): Update.
6568         * modules/langinfo (Depends-on): Update.
6569         * modules/locale (Depends-on): Update.
6570         * modules/math (Depends-on): Update.
6571         * modules/netdb (Depends-on): Update.
6572         * modules/poll-h (Depends-on): Update.
6573         * modules/pty (Depends-on): Update.
6574         * modules/search (Depends-on): Update.
6575         * modules/signal (Depends-on): Update.
6576         * modules/spawn (Depends-on): Update.
6577         * modules/stdio (Depends-on): Update.
6578         * modules/stdlib (Depends-on): Update.
6579         * modules/string (Depends-on): Update.
6580         * modules/strings (Depends-on): Update.
6581         * modules/sys_ioctl (Depends-on): Update.
6582         * modules/sys_select (Depends-on): Update.
6583         * modules/sys_socket (Depends-on): Update.
6584         * modules/sys_stat (Depends-on): Update.
6585         * modules/sys_time (Depends-on): Update.
6586         * modules/sys_wait (Depends-on): Update.
6587         * modules/termios (Depends-on): Update.
6588         * modules/time (Depends-on): Update.
6589         * modules/unistd (Depends-on): Update.
6590         * modules/wchar (Depends-on): Update.
6591         * modules/wctype-h (Depends-on): Update.
6592
6593         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6594         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6595         (Files, Makefile.am): Update.
6596         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6597         * modules/argv-iter (Depends-on): Update.
6598         * modules/arpa_inet (Depends-on): Update.
6599         * modules/dirent (Depends-on): Update.
6600         * modules/fcntl-h (Depends-on): Update.
6601         * modules/fnmatch (Depends-on): Update.
6602         * modules/getopt-posix (Depends-on): Update.
6603         * modules/glob (Depends-on): Update.
6604         * modules/iconv-h (Depends-on): Update.
6605         * modules/inttypes-incomplete (Depends-on): Update.
6606         * modules/locale (Depends-on): Update.
6607         * modules/math (Depends-on): Update.
6608         * modules/netdb (Depends-on): Update.
6609         * modules/search (Depends-on): Update.
6610         * modules/signal (Depends-on): Update.
6611         * modules/spawn (Depends-on): Update.
6612         * modules/stdio (Depends-on): Update.
6613         * modules/stdlib (Depends-on): Update.
6614         * modules/string (Depends-on): Update.
6615         * modules/strings (Depends-on): Update.
6616         * modules/sys_socket (Depends-on): Update.
6617         * modules/sys_stat (Depends-on): Update.
6618         * modules/sys_time (Depends-on): Update.
6619         * modules/sys_times (Depends-on): Update.
6620         * modules/sys_utsname (Depends-on): Update.
6621         * modules/time (Depends-on): Update.
6622         * modules/unistd (Depends-on): Update.
6623         * modules/wchar (Depends-on): Update.
6624         * MODULES.html.sh (Support for building libraries and executables):
6625         Update.
6626
6627 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6628
6629         Improvements on _Noreturn and related modules.
6630
6631         modules/_Exit-tests: test _Noreturn too
6632         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6633         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6634         (main): Use them.
6635
6636         stdnoreturn, stdnoreturn-tests: remove modules
6637         They're not needed here and a bit premature for use elsewhere.  See
6638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6639         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6640         * tests/test-stdnoreturn.c: Remove files.
6641         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6642         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6643         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6644         and using noreturn.
6645         * modules/openat, modules/sigpipe-die, modules/xalloc:
6646         * modules/xmemdup0, modules/xstrtol:
6647         Remove dependency on stdnoreturn.
6648
6649         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6650         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6651         Reparenthesize to avoid GCC warning.
6652         Support Microsoft's syntax.
6653         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6654
6655         _Noreturn-tests: remove module
6656         * modules/_Noreturn-tests: Remove.
6657         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6658         * tests/test-_Noreturn.c: Remove.
6659         * tests/test-stdnoreturn.c: Merge from the old
6660         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6661
6662 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6663
6664         _Noreturn, stdnoreturn, and related modules.
6665
6666         * top/maint.mk: Adjust to new noreturn support.
6667         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6668         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6669
6670         xalloc: use stdnoreturn.h
6671         * lib/xalloc.h: Include <stdnoreturn.h>.
6672         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6673         * modules/xalloc (Depends-on): Add stdnoreturn.
6674
6675         xstrtol: use stdnoreturn.h
6676         * lib/xstrtol.h: Include <stdnoreturn.h>.
6677         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6678         * modules/xstrtol (Depends-on): Add stdnoreturn.
6679
6680         xmemdup0: use stdnoreturn.h
6681         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6682         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6683         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6684
6685         sigpipe-die: use stdnoreturn.h
6686         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6687         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6688         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6689
6690         openat: use stdnoreturn.h
6691         * lib/openat.h: Include <stdnoreturn.h>.
6692         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6693         * modules/openat (Depends-on): Add stdnoreturn.
6694
6695         * lib/openat-die.c (openat_save_fail): Modernize comment.
6696
6697         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6698
6699         * lib/glthread/thread.h: Modernize comment.
6700
6701         obstack: use _Noreturn
6702         * lib/obstack.c (__attribute__): Remove macro.
6703         (print_and_abort): Use _Noreturn.
6704
6705         c-stack: use _Noreturn
6706         * lib/c-stack.c (die, overflow_handler, segv_handler):
6707         Use _Noreturn rather than __attribute__((noreturn)).
6708
6709         argmatch-tests, exclude_tests: use _Noreturn
6710         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6711         Remove.
6712         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6713
6714         stdlib: use _Noreturn
6715         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6716         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6717         * modules/stdlib (Depends-on): Add _Noreturn.
6718         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6719
6720         stdnoreturn-tests: new module
6721         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6722
6723         stdnoreturn: new module
6724         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6725         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6726
6727         _Noreturn-tests: new module
6728         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6729
6730         _Noreturn: new module
6731         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6732         New section, mentioning it.
6733         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6734
6735         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6736
6737 2011-07-11  Eric Blake  <eblake@redhat.com>
6738
6739         ffs: new module
6740         * modules/ffs: New file.
6741         * m4/ffs.m4: Likewise.
6742         * lib/ffs.c: Likewise.
6743         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6744         * modules/strings (Makefile.am): Substitute witness.
6745         (Depends-on): Add c++defs.
6746         * lib/strings.in.h (ffs): Declare.
6747         * modules/ffs-tests: New test file.
6748         * tests/test-ffs.c: Test new module.
6749         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6750         * doc/posix-functions/ffs.texi (ffs): Likewise.
6751
6752         regex: avoid compiler warning
6753         * lib/regex.c (includes): Include <strings.h>, for use of
6754         strcasecmp in regcomp.c.
6755         Reported by Joachim Schmitz.
6756
6757 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6758
6759         stdint: respect system's intmax_t if INTMAX_MAX
6760         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6761         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6762         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6763         long but int64_t is long long, and where we will clash with the
6764         system intmax_t if we override it.  See
6765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6766         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6767         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6768         similarly for UINTMAX_C.
6769
6770 2011-07-08  Bruno Haible  <bruno@clisp.org>
6771
6772         pthread_sigmask tests: Avoid a compiler warning.
6773         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6774         non-zero.
6775
6776         sigprocmask tests: A better way to avoid a compiler warning.
6777         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6778         (main): Complain if system() returns non-zero.
6779         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6780
6781 2011-07-08  Bruno Haible  <bruno@clisp.org>
6782
6783         pthread_sigmask: Work around IRIX bug.
6784         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6785         bug.
6786         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6787         there may be unblocked pending signals.
6788         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6789
6790 2011-07-08  Bruno Haible  <bruno@clisp.org>
6791
6792         pthread_sigmask: Work around Cygwin bug.
6793         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6794         bug.
6795         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6796         the system's pthread_sigmask function.
6797         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6798
6799 2011-07-08  Bruno Haible  <bruno@clisp.org>
6800
6801         pthread_sigmask: Work around bug in single-threaded implementation.
6802         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6803         FreeBSD, HP-UX, Solaris bug.
6804         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6805         * lib/pthread_sigmask.c: Include <stddef.h>.
6806         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6807         the system's pthread_sigmask function.
6808         * modules/pthread_sigmask (configure.ac): Invoke
6809         gl_PREREQ_PTHREAD_SIGMASK.
6810         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6811         HP-UX, Solaris.
6812
6813 2011-07-08  Eric Blake  <eblake@redhat.com>
6814
6815         test-sigprocmask: avoid compiler warning
6816         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6817         * tests/test-sigprocmask.c (main): Use it to silence warning.
6818         Reported by Jim Meyering.
6819
6820         test-snprintf: avoid compiler warning
6821         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6822         * tests/test-vsnprintf.c (main): Likewise.
6823         Reported by Jim Meyering.
6824
6825 2011-07-08  Bruno Haible  <bruno@clisp.org>
6826
6827         Tests for module 'pthread_sigmask'.
6828         * modules/pthread_sigmask-tests: New file.
6829         * tests/test-pthread_sigmask1.c: New file, based on
6830         tests/test-sigprocmask.c.
6831         * tests/test-pthread_sigmask2.c: New file.
6832
6833 2011-07-08  Jim Meyering  <meyering@redhat.com>
6834
6835         test-getopt.h: avoid warning about an unused variable
6836         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6837
6838 2011-07-07  Jim Meyering  <meyering@redhat.com>
6839
6840         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6841         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6842         now that it no longer contains leading TABs.
6843         Remove unused "url=FIXME" statement.
6844
6845 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6846
6847         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6848         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6849         When gl_THREADLIB is not in use, assume that the POSIX sematics
6850         are desired.  This is better for Emacs, which uses POSIX semantics
6851         on GNUish and/or POSIXish platforms, and does not use threads at
6852         all otherwise.
6853
6854         pthread_sigmask: fix typo when testing for libraries
6855         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6856         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6857
6858 2011-07-08  Eric Blake  <eblake@redhat.com>
6859
6860         fts: introduce FTS_NOATIME
6861         * lib/fts_.h (FTS_NOATIME): New bit flag.
6862         (FTS_OPTIONMASK): Adjust.
6863         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6864         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6865
6866 2011-07-08  Bruno Haible  <bruno@clisp.org>
6867
6868         Tests for module 'thread'.
6869         * modules/thread-tests: New file.
6870         * tests/test-thread_self.c: New file.
6871         * tests/test-thread_create.cc: New file.
6872
6873 2011-07-08  Bruno Haible  <bruno@clisp.org>
6874
6875         thread: Avoid gcc warnings when using gl_thread_self().
6876         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6877         'void *'.
6878         (gl_thread_self_pointer): Update.
6879
6880 2011-07-07  Bruno Haible  <bruno@clisp.org>
6881
6882         signal-c++-tests: Check declaration of pthread_sigmask.
6883         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6884         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6885         $(LIB_PTHREAD_SIGMASK).
6886
6887 2011-07-07  Bruno Haible  <bruno@clisp.org>
6888
6889         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6890         * lib/signal.in.h (pthread_sigmask): Override if
6891         REPLACE_PTHREAD_SIGMASK is 1.
6892         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6893         REPLACE_PTHREAD_SIGMASK.
6894         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6895         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6896         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6897         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6898         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6899
6900 2011-07-07  Bruno Haible  <bruno@clisp.org>
6901
6902         pthread_sigmask: Ensure declaration in <signal.h>.
6903         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6904         include <pthread.h>.
6905         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6906         problem.
6907
6908 2011-07-07  Bruno Haible  <bruno@clisp.org>
6909
6910         pthread_sigmask: Document the module.
6911         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6912
6913 2011-07-07  Bruno Haible  <bruno@clisp.org>
6914
6915         pthread_sigmask: Follow gnulib conventions.
6916         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6917         gl_PTHREAD_SIGMASK.
6918         * modules/pthread_sigmask (configure.ac): Update.
6919
6920 2011-07-07  Bruno Haible  <bruno@clisp.org>
6921
6922         pthread_sigmask: Make declaration C++ safe.
6923         * lib/signal.in.h: In two special conditions, just do an #include_next.
6924         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6925         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6926         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6927         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6928         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6929         not REPLACE_PTHREAD_MASK.
6930         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6931         not REPLACE_PTHREAD_MASK.
6932         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6933
6934 2011-07-07  Bruno Haible  <bruno@clisp.org>
6935
6936         pthread_sigmask: Fix return value.
6937         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6938         * lib/pthread_sigmask.c: New file.
6939         * modules/pthread_sigmask (Files): Add it.
6940         (configure.ac): Invoke AC_LIBOBJ.
6941
6942 2011-07-07  Eric Blake  <eblake@redhat.com>
6943
6944         getopt: more portable argv creation
6945         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6946         const, use char arrays rather than strings.
6947         Suggested by Paul Eggert.
6948
6949 2011-07-07  Bruno Haible  <bruno@clisp.org>
6950
6951         Tests for module 'sigprocmask'.
6952         * modules/sigprocmask-tests: New file.
6953         * tests/test-sigprocmask.c: New file.
6954
6955 2011-07-07  Bruno Haible  <bruno@clisp.org>
6956
6957         float tests: Tweak.
6958         * tests/test-float.c (main): Tweak skip message.
6959
6960 2011-07-07  Eric Blake  <eblake@redhat.com>
6961
6962         getopt: avoid compiler warning during configure
6963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6964         assigning string literals to non-const pointer.
6965
6966         getopt-gnu: avoid crash in glibc getopt
6967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6968         * tests/test-getopt.h (test_getopt): Enhance test.
6969         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6970         * doc/posix-functions/getopt.texi (getopt): Document it.
6971         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6972         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6973         Likewise.
6974
6975 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6976
6977         getopt: handle W; without long options in getopt [BZ #12922]
6978         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6979         but no long options are defined, just return 'W'.
6980
6981 2011-07-07  Bruno Haible  <bruno@clisp.org>
6982
6983         Avoid literal tabs.
6984         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6985         variable containing a tab instead of a literal tab.
6986         Reported by Jim Meyering.
6987
6988 2011-07-07  Bruno Haible  <bruno@clisp.org>
6989
6990         Comments.
6991         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6992
6993 2011-07-06  Bruno Haible  <bruno@clisp.org>
6994
6995         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6996         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6997         <winsock2.h>.
6998         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6999         lib/sys_socket.in.h.
7000         (close, gethostname): Hide declarations from <winsock2.h>.
7001         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7002         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7003         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7004         (select): Don't override if gnulib's <sys/select.h> was already
7005         included.
7006         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7007         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7008         setsockopt, shutdown, select): Tweak indentation.
7009
7010 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7011
7012         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7013         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7014         in an application that does not use the sys_select module.
7015
7016 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7017
7018         poll: do not return 0 on timeout=-1
7019         * lib/poll.c: Loop with yield if no events occured
7020
7021 2011-07-06  Eric Blake  <eblake@redhat.com>
7022
7023         pthread_sigmask: always replace when not using pthread
7024         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7025         replacement when using some threading other than pthread.  Fix
7026         logic bug.
7027
7028 2011-07-06  Bruno Haible  <bruno@clisp.org>
7029
7030         Comments.
7031         * m4/printf.m4: Update comments about mingw.
7032
7033 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7034
7035         sys_select: define sigset_t more portably
7036         * lib/sys_select.in.h: Always include <sys/types.h>, since
7037         we now need sigset_t and mingw defines it there.
7038         Include <signal.h> before split inclusion guard, to avoid
7039         mishaps on Solaris, whose <signal.h> eventually includes us.
7040         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7041         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7042         which come from ...
7043         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7044         gl_CHECK_TYPE_SIGSET_T.
7045         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7046         does the real work.
7047         * modules/sys_select (Depends-on): Add 'signal'.
7048
7049         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7050         Suggested by Bruno Haible.
7051
7052         pselect: Use pthread_sigmask, not sigprocmask.
7053         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7054         multithreaded apps better than sigprocmask does.
7055         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7056         sigprocmask directly.
7057
7058 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7059
7060         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7061         Don't #undef,  since we don't need any underlying pselect.
7062         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7063         (Depends-on): Add select.
7064         (Link): Add $(LIBSOCKET).
7065         These changes suggested by Bruno Haible.
7066
7067         pselect: document better
7068         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7069         * doc/posix-functions/pselect.texi (pselect): Document new module.
7070
7071         pthread_sigmask: new module
7072         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7073         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7074         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7075         This is done only as a macro; I don't know how well that'll
7076         work for C++.  Move <sys/types.h> include before the include_next,
7077         to avoid mishap on Solaris.
7078         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7079         * modules/signal (Makefile.am): Substitute the check's results.
7080         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7081
7082         test-pselect: new module
7083         * modules/pselect-tests, tests/test-pselect.c: New files.
7084         * tests/test-select.c, tests/test-sys_select-c++.cc:
7085         If TEST_PSELECT is defined, test pselect instead of testing select.
7086
7087         * tests/test-sys_select.c (sigset_t): Test for it, too.
7088         Suggested by Bruno Haible.
7089
7090 2011-07-05  Eric Blake  <eblake@redhat.com>
7091
7092         snprintf: guarantee %1$d, for libintl
7093         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7094         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7095         * doc/posix-functions/snprintf.texi (snprintf): Update.
7096         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7097         * tests/test-snprintf.c (main): Enhance test.
7098         * tests/test-vsnprintf.c (main): Likewise.
7099
7100 2011-07-05  Jim Meyering  <meyering@redhat.com>
7101
7102         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7103         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7104         per Bruno's request, to accommodate this idiom (no space after "#")
7105         even when the function is inside an #if block:
7106         char *
7107         gets (char *s)
7108         #undef gets
7109         {
7110           ...
7111         }
7112
7113 2011-07-04  Jim Meyering  <meyering@redhat.com>
7114
7115         maint: indent with spaces, not TABs, and add a rule to check this
7116         * tests/test-userspec.c: Indent with spaces, not TABs.
7117         * tests/test-argp.c: Likewise.
7118         * tests/test-c-stack2.sh: Likewise.
7119         * tests/test-parse-duration.sh: Likewise
7120         * m4/strtod.m4: Likewise.
7121         * m4/alloca.m4: Likewise.
7122         * m4/pselect.m4: Likewise.
7123         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7124
7125 2011-07-03  Jim Meyering  <meyering@redhat.com>
7126
7127         maint.mk: correct omissions in prohibit_argmatch_without_use check
7128         This rule would mistakenly report that argmatch.h is included without
7129         use even when both the argmatch and invalid_arg macro were used.
7130         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7131         of argmatch and invalid_arg.
7132
7133 2011-07-03  Bruno Haible  <bruno@clisp.org>
7134
7135         Comments about EINTR.
7136         * lib/safe-read.h: Explain the purpose of this module.
7137         * lib/safe-write.h: Likewise.
7138         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7139         module.
7140         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7141         module.
7142         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7143
7144 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7145
7146         xnanosleep: Rewrite to use new dtotimespec module.
7147         It has the conversion code that used to be in xnanosleep.
7148         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7149         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7150         (TIME_T_MAX): Remove.
7151         (xnanosleep): Rewrite in terms of dtotimespec.
7152         * modules/xnanosleep (Depends-on): Add dtotimespec.
7153         Remove intprops, stdbool.
7154
7155         timespec-add, timespec-sub: new modules
7156         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7157         * lib/timespec-add.c, lib/timespec-sub.c:
7158         * modules/timespec-add, modules/timespec-sub: New files.
7159
7160         dtotimespec: new module
7161         * lib/timespec.h (dtotimespec): New decl.
7162         * lib/dtotimespec.c, modules/dtotimespec: New files.
7163
7164         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7165
7166         pselect: new module
7167         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7168         (pselect): New decls.
7169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7170         since the standard pselect decl uses 'restrict'.
7171         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7172         HAVE_PSELECT, REPLACE_PSELECT.
7173         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7174         HAVE_PSELECT, REPLACE_PSELECT.
7175         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7176
7177         sys_select: don't depend on sys_socket
7178         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7180         This fix works on GNU and GNU-like platforms, but has not been tested
7181         on native Windows.
7182         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7184         gl_HEADER_SYS_SOCKET.
7185         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7186         gl_PREREQ_SYS_H_WINSOCK2.
7187
7188 2011-06-29  Eric Blake  <eblake@redhat.com>
7189
7190         pipe2: fix C89 compile problem
7191         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7192         Reported by Bruno Haible.
7193
7194         pipe, pipe2: don't corrupt fd on error
7195         * lib/pipe.c (pipe): Leave fd unchanged on error.
7196         * lib/pipe2.c (pipe2): Likewise.
7197         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7198         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7199
7200 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7201
7202         mmap-anon: do not use regular expressions inadvertently
7203         * m4/mmap-anon.m4: Remove trailing period from strings sought
7204         in the output.
7205
7206 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7207
7208         nanosleep: fix integer overflow problem
7209         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7210         arithmetic wraps around on overflow.
7211
7212         nanosleep: simplify carrying
7213         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7214         first call to the underyling nanosleep, not for the last one.
7215         This doesn't fix any bugs, but it simplifies the computation of
7216         the remaining delay.  Found while auditing integer overflow issues.
7217
7218         dup2: remove test for existence of fcntl
7219         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7220         "#if HAVE_FCNTL", in the configure-time test program.
7221         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7222         and therefore speeds up "configure" a bit.  Found while
7223         adding the dup2 module to Emacs.
7224
7225 2011-06-24  Eric Blake  <eblake@redhat.com>
7226
7227         maint.mk: enhance useless header checks
7228         * top/maint.mk (_sc_header_without_use): Check both include
7229         styles.
7230         (sc_prohibit_assert_without_use)
7231         (sc_prohibit_close_stream_without_use)
7232         (sc_prohibit_getopt_without_use)
7233         (sc_prohibit_quotearg_without_use)
7234         (sc_prohibit_quote_without_use)
7235         (sc_prohibit_long_options_without_use)
7236         (sc_prohibit_inttostr_without_use)
7237         (sc_prohibit_ignore_value_without_use)
7238         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7239         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7240         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7241         (sc_prohibit_hash_pjw_without_use)
7242         (sc_prohibit_safe_read_without_use)
7243         (sc_prohibit_argmatch_without_use)
7244         (sc_prohibit_canonicalize_without_use)
7245         (sc_prohibit_root_dev_ino_without_use)
7246         (sc_prohibit_openat_without_use)
7247         (sc_prohibit_c_ctype_without_use)
7248         (sc_prohibit_signal_without_use)
7249         (sc_prohibit_stdio--_without_use)
7250         (sc_prohibit_stdio-safer_without_use)
7251         (sc_prohibit_strings_without_use)
7252         (sc_prohibit_intprops_without_use)
7253         (sc_prohibit_stddef_without_use)
7254         (sc_prohibit_xfreopen_without_use): Update clients.
7255
7256 2011-06-24  Jim Meyering  <meyering@redhat.com>
7257
7258         syntax-check: keep one maint.mk rule in sync with its header
7259         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7260         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7261         I prefer to avoid temporary files here, so use <(...), but that
7262         is not supported by /bin/sh, so...
7263         (SHELL): Define to /bin/bash.
7264
7265 2011-06-24  Eric Blake  <eblake@redhat.com>
7266
7267         maint.mk: update sc_prohibit_intprops_without_use
7268         * top/maint.mk (_intprops_names): Match recent changes.
7269
7270 2011-06-24  Bruno Haible  <bruno@clisp.org>
7271
7272         strerror-override: No-op tweak.
7273         * lib/strerror-override.h (strerror_override): Reorder conditions,
7274         for consistency with lib/strerror-override.c.
7275
7276 2011-06-23  Eric Blake  <eblake@redhat.com>
7277
7278         maint.mk: test further PATH_MAX issues
7279         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7280         (sc_prohibit_path_max_allocation): ...and also test alloca.
7281         Suggested by Jim Meyering.
7282
7283 2011-06-22  Eric Blake  <eblake@redhat.com>
7284
7285         maint.mk: add syntax-check to avoid char[PATH_MAX]
7286         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7287
7288         stat: be robust to PATH_MAX definition
7289         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7290         * modules/stat (Depends-on): Add verify.
7291
7292         link: work around IRIX bug
7293         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7294         * lib/link.c (rpl_link): Work around it.
7295         * tests/test-link.h (test_link): Enhance test.
7296         * doc/posix-functions/link.texi (link): Document the bug.
7297
7298         getopt: silence clang warning
7299         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7300         dereference.
7301         Reported by Gustavo Martin Domato.
7302
7303 2011-06-22  Jim Meyering  <meyering@redhat.com>
7304
7305         bootstrap: do not insert a blank line into each .gitignore file
7306         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7307
7308 2011-06-21  Eric Blake  <eblake@redhat.com>
7309
7310         perror: test for output mismatch
7311         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7312         perror on IRIX.
7313
7314         strerror_r: fix OpenBSD behavior on out-of-range
7315         * lib/strerror_r.c (strerror_r): Always use maximal string.
7316         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7317
7318         strerror_r: fix OpenBSD behavior on 0
7319         * lib/strerror-override.c (strerror_override): Also override 0
7320         when needed.
7321         * lib/strerror-override.h (strerror_override): Likewise.
7322         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7323         earlier.
7324         * lib/strerror_r.c (strerror_r): Likewise.
7325         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7326         behavior...
7327         (gl_FUNC_STRERROR_0): ...into new macro.
7328         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7329         is overridden.
7330         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7331         * modules/strerror-override (Files): Add strerror.m4.
7332         (configure.ac): Also provide override for 0 when needed.
7333         * doc/posix-functions/strerror.texi (strerror): Document this.
7334         * doc/posix-functions/perror.texi (perror): Likewise.
7335
7336         perror: adjust array size
7337         * modules/perror (Depends-on): Add strerror-override.
7338         * lib/perror.c (perror): Use it to avoid magic number.
7339
7340         strerror-override: reduce size
7341         * lib/strerror-override.c (strerror_override): Use fewer lines.
7342
7343 2011-06-20  Bruno Haible  <bruno@clisp.org>
7344
7345         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7346         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7347
7348 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7349
7350         alloca: port to compilers that can optimize like GCC 4.6.0
7351         * lib/alloca.c (find_stack_direction): New signature, taken from
7352         Autoconf git.  This works with GCC 4.6.0.  This code should never
7353         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7354         be used with other compilers that optimize as well as GCC 4.6.0 does.
7355         (alloca): Adjust to new signature.
7356         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7357         New macro, which patches Autoconf in a similar way.
7358
7359         c-stack: stop worrying about stack direction
7360         * lib/c-stack.c (find_stack_direction): Remove.
7361         (segv_handler): Don't worry about stack direction growth, as it's
7362         too much of a pain to configure this correctly, given how compilers
7363         are optimizing-away our stack-growth detection code.  Instead, assume
7364         that any access to just before or just after the stack is OK.
7365         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7366         Don't require AC_FUNC_ALLOCA; no longer needed.
7367
7368 2011-06-20  Eric Blake  <eblake@redhat.com>
7369
7370         test-stat: don't allocate PATH_MAX bytes
7371         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7372         PATH_MAX-sized buffer.
7373         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7374         * modules/stat-tests (Depends-on): Likewise.
7375         * tests/test-fstatat.c (includes): Drop pathmax.h.
7376         * tests/test-stat.c (includes): Likewise.
7377         Reported by Bruno Haible.
7378
7379 2011-06-20  Bruno Haible  <bruno@clisp.org>
7380
7381         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7382         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7383         * lib/float.c: New file.
7384         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7385         REPLACE_FLOAT_LDBL.
7386         * modules/float (Files): Add lib/float.c.
7387         (configure.ac): Invoke AC_LIBOBJ.
7388         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7389
7390 2011-06-20  Bruno Haible  <bruno@clisp.org>
7391
7392         Tests for module 'float'.
7393         * modules/float-tests: New file.
7394         * tests/test-float.c: New file.
7395
7396 2011-06-19  Bruno Haible  <bruno@clisp.org>
7397
7398         isinf: Coding style.
7399         * lib/isinf.c: Use GNU coding style.
7400
7401 2011-06-19  Bruno Haible  <bruno@clisp.org>
7402
7403         linkat test: Avoid test failure on AIX 7.1.
7404         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7405         * tests/test-link.h (test_link): Likewise.
7406
7407 2011-06-19  Bruno Haible  <bruno@clisp.org>
7408
7409         pread test: Avoid test failure on OpenBSD 4.9.
7410         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7411
7412 2011-06-19  Bruno Haible  <bruno@clisp.org>
7413
7414         sprintf-posix: Fix test failure on AIX 7.1.
7415         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7416         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7417         on AIX.
7418         * doc/posix-functions/fprintf.texi: Likewise.
7419         * doc/posix-functions/printf.texi: Likewise.
7420         * doc/posix-functions/snprintf.texi: Likewise.
7421         * doc/posix-functions/sprintf.texi: Likewise.
7422         * doc/posix-functions/vdprintf.texi: Likewise.
7423         * doc/posix-functions/vfprintf.texi: Likewise.
7424         * doc/posix-functions/vprintf.texi: Likewise.
7425         * doc/posix-functions/vsnprintf.texi: Likewise.
7426         * doc/posix-functions/vsprintf.texi: Likewise.
7427
7428 2011-06-19  Bruno Haible  <bruno@clisp.org>
7429
7430         roundl-ieee: Fix test failure on AIX 7.1.
7431         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7432         * doc/posix-functions/roundl.texi: Mention problem with negative
7433         arguments.
7434
7435 2011-06-19  Bruno Haible  <bruno@clisp.org>
7436
7437         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7438         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7439         * doc/posix-functions/round.texi: Mention problem with negative
7440         arguments.
7441         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7442
7443 2011-06-19  Bruno Haible  <bruno@clisp.org>
7444
7445         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7446         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7447         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7448         * doc/posix-functions/roundf.texi: Mention problem with negative
7449         arguments.
7450         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7451
7452 2011-06-19  Bruno Haible  <bruno@clisp.org>
7453
7454         ceilf-ieee: Work around bug on MacOS X 10.5.
7455         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7456
7457         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7458         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7459         IEEE compliant, avoid compiler optimizations.
7460         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7461         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7462         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7463         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7464         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7465         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7466         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7467         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7468         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7469         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7470
7471 2011-06-19  Bruno Haible  <bruno@clisp.org>
7472
7473         ceilf-ieee: Work around bug on AIX 7.1.
7474         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7475         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7476
7477 2011-06-19  Bruno Haible  <bruno@clisp.org>
7478
7479         ceil-ieee: Work around bug on AIX 7.1.
7480         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7481         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7482
7483 2011-06-18  Bruno Haible  <bruno@clisp.org>
7484
7485         fsync test: Avoid test failure on MacOS X and AIX.
7486         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7487         EINVAL.
7488
7489 2011-06-18  Bruno Haible  <bruno@clisp.org>
7490
7491         openat, fdopendir tests: Fix link errors.
7492         * modules/openat-tests (Depends-on): Add progname.
7493         * modules/fdopendir-tests (Depends-on): Likewise.
7494         * tests/test-fchownat.c: Include progname.h.
7495         (main): Call set_program_name.
7496         * tests/test-fstatat.c: Include progname.h.
7497         (main): Call set_program_name.
7498         * tests/test-mkdirat.c: Include progname.h.
7499         (main): Call set_program_name.
7500         * tests/test-openat.c: Include progname.h.
7501         (main): Call set_program_name.
7502         * tests/test-unlinkat.c: Include progname.h.
7503         (main): Call set_program_name.
7504         * tests/test-fdopendir.c: Include progname.h.
7505         (main): Call set_program_name.
7506
7507 2011-06-18  Bruno Haible  <bruno@clisp.org>
7508
7509         Doc update.
7510         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7511         HP-UX.
7512         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7513
7514 2011-06-18  Bruno Haible  <bruno@clisp.org>
7515
7516         getcwd tests: Avoid compilation error on HP-UX 11.31.
7517         * modules/getcwd-tests (Depends-on): Add pathmax.
7518         * tests/test-getcwd.c: Include pathmax.h.
7519
7520 2011-06-18  Bruno Haible  <bruno@clisp.org>
7521
7522         isfinite, isinf: Fix link error on AIX 6 and 7.
7523         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7524         needed, also test the macro with a 'float' argument.
7525         * m4/isinf.m4 (gl_ISINF): Likewise.
7526
7527 2011-06-18  Bruno Haible  <bruno@clisp.org>
7528
7529         getloadavg: Don't clobber LIBS. Regression from previous commit.
7530         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7531         AC_CHECK_LIB from here...
7532         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7533         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7534         gl_func_getloadavg_done.
7535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7536
7537 2011-06-18  Bruno Haible  <bruno@clisp.org>
7538
7539         clean-temp: Improve documentation.
7540         * lib/clean-temp.h: Explain better how to use this module.
7541         Reported by John Darrington <john@darrington.wattle.id.au>.
7542
7543 2011-06-17  Bruno Haible  <bruno@clisp.org>
7544
7545         pread, pwrite: Avoid cc warning on AIX.
7546         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7547         (pwrite): Likewise.
7548
7549 2011-06-17  Bruno Haible  <bruno@clisp.org>
7550
7551         spawn-pipe tests: Fix link error.
7552         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7554
7555 2011-06-17  Bruno Haible  <bruno@clisp.org>
7556
7557         Tests: Remove unnecessary dependency.
7558         * modules/canonicalize-tests (Depends-on): Remove progname.
7559         * modules/chown-tests (Depends-on): Likewise.
7560         * modules/dirname-tests (Depends-on): Likewise.
7561         * modules/fdopendir-tests (Depends-on): Likewise.
7562         * modules/fdutimensat-tests (Depends-on): Likewise.
7563         * modules/hash-tests (Depends-on): Likewise.
7564         * modules/lchown-tests (Depends-on): Likewise.
7565         * modules/linkat-tests (Depends-on): Likewise.
7566         * modules/renameat-tests (Depends-on): Likewise.
7567         * modules/spawn-pipe-tests (Depends-on): Likewise.
7568         * modules/utimensat-tests (Depends-on): Likewise.
7569
7570 2011-06-17  Bruno Haible  <bruno@clisp.org>
7571
7572         spawn-pipe tests: Fix link error.
7573         * tests/test-spawn-pipe-child.c: Undefine fflush.
7574
7575 2011-06-17  Bruno Haible  <bruno@clisp.org>
7576
7577         Fix tests link errors.
7578         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7579         * modules/chown-tests (Makefile.am): Don't link test-chown with
7580         LIBINTL.
7581         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7582         LIBINTL.
7583         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7584         LIBINTL.
7585         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7586         LIBINTL.
7587
7588 2011-06-16  Bruno Haible  <bruno@clisp.org>
7589
7590         crypto/gc-sha1: Fix recent regression.
7591         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7592         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7593
7594         crypto/gc-md5: Fix recent regression.
7595         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7596
7597         crypto/gc-md4: Fix recent regression.
7598         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7599         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7600
7601         crypto/gc-arctwo: Fix recent regression.
7602         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7603         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7604
7605         crypto/gc-rijndael: Fix recent regression.
7606         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7607         (configure.ac): Invoke AC_LIBOBJ here.
7608         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7610
7611         crypto/gc-hmac-sha1: Fix recent regression.
7612         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7613         (configure.ac): Invoke AC_LIBOBJ here.
7614         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7616
7617         crypto/gc-hmac-md5: Fix recent regression.
7618         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7619         (configure.ac): Invoke AC_LIBOBJ here.
7620         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7622
7623         crypto/gc-des: Fix recent regression.
7624         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7625         (configure.ac): Invoke AC_LIBOBJ here.
7626         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7628
7629         crypto/gc-arcfour: Fix recent regression.
7630         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7631         (configure.ac): Invoke AC_LIBOBJ here.
7632         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7634
7635 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7636
7637         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7638         After the 2011-05-21 change, this macro requires
7639         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7640         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7641
7642 2011-06-16  Bruno Haible  <bruno@clisp.org>
7643
7644         fprintftime: Move AC_LIBOBJ invocations to module description.
7645         * m4/fprintftime.m4: Remove file.
7646         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7647         (configure.ac): Remove gl_FPRINTFTIME call.
7648         (Makefile.am): Augment lib_SOURCES.
7649         Reported by Jim Meyering.
7650
7651 2011-06-16  Bruno Haible  <bruno@clisp.org>
7652
7653         tmpfile-safer: Finish 2011-05-23 commit.
7654         * m4/stdio-safer.m4: Really remove file.
7655         Reported by Jim Meyering.
7656
7657 2011-06-16  Bruno Haible  <bruno@clisp.org>
7658
7659         syntax-check: Fix typo.
7660         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7661         printf-posix.m4.
7662         Reported by Jim Meyering.
7663
7664 2011-06-13  Jim Meyering  <meyering@redhat.com>
7665
7666         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7667         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7668
7669 2011-05-23  Bruno Haible  <bruno@clisp.org>
7670
7671         yesno: Move AC_LIBOBJ invocations to module description.
7672         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7673         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7674
7675 2011-05-23  Bruno Haible  <bruno@clisp.org>
7676
7677         xstrtol: Move AC_LIBOBJ invocations to module description.
7678         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7679         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7680
7681 2011-05-23  Bruno Haible  <bruno@clisp.org>
7682
7683         xstrtold: Move AC_LIBOBJ invocations to module description.
7684         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7685         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7686
7687 2011-05-23  Bruno Haible  <bruno@clisp.org>
7688
7689         xstrtod: Move AC_LIBOBJ invocations to module description.
7690         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7691         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7692
7693 2011-05-23  Bruno Haible  <bruno@clisp.org>
7694
7695         xnanosleep: Move AC_LIBOBJ invocations to module description.
7696         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7697         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7698
7699 2011-05-23  Bruno Haible  <bruno@clisp.org>
7700
7701         xgetcwd: Move AC_LIBOBJ invocations to module description.
7702         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7703         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7704
7705 2011-05-23  Bruno Haible  <bruno@clisp.org>
7706
7707         xalloc: Move AC_LIBOBJ invocations to module description.
7708         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7709         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7710
7711 2011-05-23  Bruno Haible  <bruno@clisp.org>
7712
7713         write-any-file: Move AC_LIBOBJ invocations to module description.
7714         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7715         invocation.
7716         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7717
7718 2011-05-23  Bruno Haible  <bruno@clisp.org>
7719
7720         utimens: Move AC_LIBOBJ invocations to module description.
7721         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7722         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7723
7724 2011-05-23  Bruno Haible  <bruno@clisp.org>
7725
7726         utimecmp: Move AC_LIBOBJ invocations to module description.
7727         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7728         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7729
7730 2011-05-23  Bruno Haible  <bruno@clisp.org>
7731
7732         userspec: Move AC_LIBOBJ invocations to module description.
7733         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7734         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7735
7736 2011-05-23  Bruno Haible  <bruno@clisp.org>
7737
7738         unlinkdir: Move AC_LIBOBJ invocations to module description.
7739         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7740         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7741
7742 2011-05-23  Bruno Haible  <bruno@clisp.org>
7743
7744         unistd-safer: Move AC_LIBOBJ invocations to module description.
7745         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7746         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7747
7748 2011-05-23  Bruno Haible  <bruno@clisp.org>
7749
7750         tempname: Move AC_LIBOBJ invocations to module description.
7751         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7752         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7753
7754 2011-05-23  Bruno Haible  <bruno@clisp.org>
7755
7756         strftime: Move AC_LIBOBJ invocations to module description.
7757         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7758         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7759
7760 2011-05-23  Bruno Haible  <bruno@clisp.org>
7761
7762         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7763         * m4/stdlib-safer.m4: Remove file.
7764         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7765         (configure.ac): Remove gl_STDLIB_SAFER call.
7766         (Makefile.am): Augment lib_SOURCES.
7767
7768 2011-05-23  Bruno Haible  <bruno@clisp.org>
7769
7770         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7771         * m4/stdio-safer.m4: Remove file.
7772         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7773         (configure.ac): Remove gl_TMPFILE_SAFER call.
7774         (Makefile.am): Augment lib_SOURCES.
7775
7776 2011-05-23  Bruno Haible  <bruno@clisp.org>
7777
7778         popen-safer: Move AC_LIBOBJ invocations to module description.
7779         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7780         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7781         (configure.ac): Remove gl_POPEN_SAFER call.
7782         (Makefile.am): Augment lib_SOURCES.
7783
7784 2011-05-23  Bruno Haible  <bruno@clisp.org>
7785
7786         freopen-safer: Move AC_LIBOBJ invocations to module description.
7787         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7788         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7789         (configure.ac): Remove gl_FREOPEN_SAFER call.
7790         (Makefile.am): Augment lib_SOURCES.
7791
7792 2011-05-23  Bruno Haible  <bruno@clisp.org>
7793
7794         fopen-safer: Move AC_LIBOBJ invocations to module description.
7795         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7796         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7797         (configure.ac): Remove gl_FOPEN_SAFER call.
7798         (Makefile.am): Augment lib_SOURCES.
7799
7800 2011-05-23  Bruno Haible  <bruno@clisp.org>
7801
7802         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7803         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7804         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7805
7806 2011-05-23  Bruno Haible  <bruno@clisp.org>
7807
7808         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7809         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7810         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7811
7812 2011-05-23  Bruno Haible  <bruno@clisp.org>
7813
7814         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7815         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7816         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7817
7818 2011-05-23  Bruno Haible  <bruno@clisp.org>
7819
7820         settime: Move AC_LIBOBJ invocations to module description.
7821         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7822         * modules/settime (Makefile.am): Augment lib_SOURCES.
7823
7824 2011-05-23  Bruno Haible  <bruno@clisp.org>
7825
7826         savedir: Move AC_LIBOBJ invocations to module description.
7827         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7828         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7829
7830 2011-05-23  Bruno Haible  <bruno@clisp.org>
7831
7832         save-cwd: Move AC_LIBOBJ invocations to module description.
7833         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7834         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7835
7836 2011-05-23  Bruno Haible  <bruno@clisp.org>
7837
7838         same: Move AC_LIBOBJ invocations to module description.
7839         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7840         * modules/same (Makefile.am): Augment lib_SOURCES.
7841
7842 2011-05-23  Bruno Haible  <bruno@clisp.org>
7843
7844         safe-write: Move AC_LIBOBJ invocations to module description.
7845         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7846         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7847         instead of gl_SAFE_WRITE.
7848         (Makefile.am): Augment lib_SOURCES.
7849
7850 2011-05-23  Bruno Haible  <bruno@clisp.org>
7851
7852         safe-read: Move AC_LIBOBJ invocations to module description.
7853         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7854         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7855         of gl_SAFE_READ.
7856         (Makefile.am): Augment lib_SOURCES.
7857
7858 2011-05-23  Bruno Haible  <bruno@clisp.org>
7859
7860         safe-alloc: Move AC_LIBOBJ invocations to module description.
7861         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7862         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7863
7864 2011-05-23  Bruno Haible  <bruno@clisp.org>
7865
7866         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7867         * m4/rijndael.m4: Remove file.
7868         * modules/crypto/rijndael (Files): Remove it.
7869         (configure.ac): Remove gl_RIJNDAEL call.
7870         (Makefile.am): Augment lib_SOURCES.
7871
7872 2011-05-23  Bruno Haible  <bruno@clisp.org>
7873
7874         readtokens: Move AC_LIBOBJ invocations to module description.
7875         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7876         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7877
7878 2011-05-23  Bruno Haible  <bruno@clisp.org>
7879
7880         read-file: Move AC_LIBOBJ invocations to module description.
7881         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7882         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7883         of gl_FUNC_READ_FILE.
7884         (Makefile.am): Augment lib_SOURCES.
7885
7886 2011-05-23  Bruno Haible  <bruno@clisp.org>
7887
7888         quotearg: Move AC_LIBOBJ invocations to module description.
7889         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7890         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7891
7892 2011-05-23  Bruno Haible  <bruno@clisp.org>
7893
7894         quote: Move AC_LIBOBJ invocations to module description.
7895         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7896         * modules/quote (Makefile.am): Augment lib_SOURCES.
7897
7898 2011-05-23  Bruno Haible  <bruno@clisp.org>
7899
7900         posixver: Move AC_LIBOBJ invocations to module description.
7901         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7902         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7903
7904 2011-05-23  Bruno Haible  <bruno@clisp.org>
7905
7906         posixtm: Move AC_LIBOBJ invocations to module description.
7907         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7908         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7909
7910 2011-05-23  Bruno Haible  <bruno@clisp.org>
7911
7912         physmem: Move AC_LIBOBJ invocations to module description.
7913         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7914         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7915
7916 2011-05-23  Bruno Haible  <bruno@clisp.org>
7917
7918         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7919         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7920         invocation.
7921         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7922
7923 2011-05-23  Bruno Haible  <bruno@clisp.org>
7924
7925         mpsort: Move AC_LIBOBJ invocations to module description.
7926         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7927         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7928
7929 2011-05-23  Bruno Haible  <bruno@clisp.org>
7930
7931         modechange: Move AC_LIBOBJ invocations to module description.
7932         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7933         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7934
7935 2011-05-23  Bruno Haible  <bruno@clisp.org>
7936
7937         mkdir-p: Move AC_LIBOBJ invocations to module description.
7938         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7939         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7940
7941 2011-05-23  Bruno Haible  <bruno@clisp.org>
7942
7943         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7944         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7945         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7946
7947 2011-05-23  Bruno Haible  <bruno@clisp.org>
7948
7949         mgetgroups: Move AC_LIBOBJ invocations to module description.
7950         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7951         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7952
7953 2011-05-23  Bruno Haible  <bruno@clisp.org>
7954
7955         memxor: Move AC_LIBOBJ invocations to module description.
7956         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7957         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7958
7959 2011-05-23  Bruno Haible  <bruno@clisp.org>
7960
7961         memcoll: Move AC_LIBOBJ invocations to module description.
7962         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7963         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7964
7965 2011-05-23  Bruno Haible  <bruno@clisp.org>
7966
7967         memcasecmp: Move AC_LIBOBJ invocations to module description.
7968         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7969         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7970
7971 2011-05-23  Bruno Haible  <bruno@clisp.org>
7972
7973         crypto/md5: Move AC_LIBOBJ invocations to module description.
7974         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7975         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7976
7977 2011-05-23  Bruno Haible  <bruno@clisp.org>
7978
7979         crypto/md4: Move AC_LIBOBJ invocations to module description.
7980         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7981         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7982
7983 2011-05-23  Bruno Haible  <bruno@clisp.org>
7984
7985         crypto/md2: Move AC_LIBOBJ invocations to module description.
7986         * m4/md2.m4: Remove file.
7987         * modules/crypto/md2 (Files): Remove it.
7988         (configure.ac): Remove gl_MD2 call.
7989         (Makefile.am): Augment lib_SOURCES.
7990
7991 2011-05-23  Bruno Haible  <bruno@clisp.org>
7992
7993         long-options: Move AC_LIBOBJ invocations to module description.
7994         * m4/long-options.m4: Remove file.
7995         * modules/long-options (Files): Remove it.
7996         (configure.ac): Remove gl_LONG_OPTIONS call.
7997         (Makefile.am): Augment lib_SOURCES.
7998
7999 2011-05-23  Bruno Haible  <bruno@clisp.org>
8000
8001         i-ring: Move AC_LIBOBJ invocations to module description.
8002         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8003         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8004
8005 2011-05-23  Bruno Haible  <bruno@clisp.org>
8006
8007         idcache: Move AC_LIBOBJ invocations to module description.
8008         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8009         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8010
8011 2011-05-23  Bruno Haible  <bruno@clisp.org>
8012
8013         human: Move AC_LIBOBJ invocations to module description.
8014         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8015         * modules/human (Makefile.am): Augment lib_SOURCES.
8016
8017 2011-05-23  Bruno Haible  <bruno@clisp.org>
8018
8019         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8020         * m4/hmac-sha1.m4: Remove file.
8021         * modules/crypto/hmac-sha1 (Files): Remove it.
8022         (configure.ac): Remove gl_HMAC_SHA1 call.
8023         (Makefile.am): Augment lib_SOURCES.
8024
8025 2011-05-23  Bruno Haible  <bruno@clisp.org>
8026
8027         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8028         * m4/hmac-md5.m4: Remove file.
8029         * modules/crypto/hmac-md5 (Files): Remove it.
8030         (configure.ac): Remove gl_HMAC_MD5 call.
8031         (Makefile.am): Augment lib_SOURCES.
8032
8033 2011-05-23  Bruno Haible  <bruno@clisp.org>
8034
8035         hash: Move AC_LIBOBJ invocations to module description.
8036         * m4/hash.m4: Remove file.
8037         * modules/hash (Files): Remove it.
8038         (configure.ac): Remove gl_HASH call.
8039         (Makefile.am): Augment lib_SOURCES.
8040
8041 2011-05-23  Bruno Haible  <bruno@clisp.org>
8042
8043         hard-locale: Move AC_LIBOBJ invocations to module description.
8044         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8045         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8046
8047 2011-05-23  Bruno Haible  <bruno@clisp.org>
8048
8049         getugroups: Move AC_LIBOBJ invocations to module description.
8050         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8051         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8052
8053 2011-05-23  Bruno Haible  <bruno@clisp.org>
8054
8055         gettime: Move AC_LIBOBJ invocations to module description.
8056         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8057         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8058
8059 2011-05-23  Bruno Haible  <bruno@clisp.org>
8060
8061         getndelim2: Move AC_LIBOBJ invocations to module description.
8062         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8063         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8064
8065 2011-05-23  Bruno Haible  <bruno@clisp.org>
8066
8067         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8068         * m4/gc-pbkdf2-sha1.m4: Remove file.
8069         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8070         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8071         (Makefile.am): Augment lib_SOURCES.
8072
8073 2011-05-23  Bruno Haible  <bruno@clisp.org>
8074
8075         fts: Move AC_LIBOBJ invocations to module description.
8076         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8077         * modules/fts (configure.ac): ... to here.
8078
8079 2011-05-23  Bruno Haible  <bruno@clisp.org>
8080
8081         file-type: Move AC_LIBOBJ invocations to module description.
8082         * m4/file-type.m4: Remove file.
8083         * modules/file-type (Files): Remove it.
8084         (configure.ac): Remove gl_FILE_TYPE call.
8085         (Makefile.am): Augment lib_SOURCES.
8086
8087 2011-05-23  Bruno Haible  <bruno@clisp.org>
8088
8089         filenamecat*: Respect rules for use of AC_LIBOBJ.
8090         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8091         Remove AC_LIBOBJ invocation.
8092         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8093         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8094
8095 2011-05-23  Bruno Haible  <bruno@clisp.org>
8096
8097         filemode: Move AC_LIBOBJ invocations to module description.
8098         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8099         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8100
8101 2011-05-23  Bruno Haible  <bruno@clisp.org>
8102
8103         openat-safer: Move AC_LIBOBJ invocations to module description.
8104         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8105         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8106
8107 2011-05-23  Bruno Haible  <bruno@clisp.org>
8108
8109         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8110         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8111         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8112
8113 2011-05-23  Bruno Haible  <bruno@clisp.org>
8114
8115         exclude: Move AC_LIBOBJ invocations to module description.
8116         * m4/exclude.m4: Remove file.
8117         * modules/exclude (Files): Remove it.
8118         (configure.ac): Remove gl_EXCLUDE call.
8119         (Makefile.am): Augment lib_SOURCES.
8120
8121 2011-05-23  Bruno Haible  <bruno@clisp.org>
8122
8123         dirname*: Respect rules for use of AC_LIBOBJ.
8124         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8125         invocations.
8126         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8127         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8128
8129 2011-05-23  Bruno Haible  <bruno@clisp.org>
8130
8131         dirent-safer: Move AC_LIBOBJ invocations to module description.
8132         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8133         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8134
8135 2011-05-23  Bruno Haible  <bruno@clisp.org>
8136
8137         crypto/des: Move AC_LIBOBJ invocations to module description.
8138         * m4/des.m4: Remove file.
8139         * modules/crypto/des (Files): Remove it.
8140         (configure.ac): Remove gl_DES call.
8141         (Makefile.am): Augment lib_SOURCES.
8142
8143 2011-05-23  Bruno Haible  <bruno@clisp.org>
8144
8145         cycle-check: Move AC_LIBOBJ invocations to module description.
8146         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8147         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8148
8149 2011-05-23  Bruno Haible  <bruno@clisp.org>
8150
8151         c-strtold: Move AC_LIBOBJ invocations to module description.
8152         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8153         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8154
8155 2011-05-23  Bruno Haible  <bruno@clisp.org>
8156
8157         c-strtod: Move AC_LIBOBJ invocations to module description.
8158         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8159         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8160
8161 2011-05-23  Bruno Haible  <bruno@clisp.org>
8162
8163         crc: Move AC_LIBOBJ invocations to module description.
8164         * m4/crc.m4: Remove file.
8165         * modules/crc (Files): Remove it.
8166         (configure.ac): Remove gl_CRC call.
8167         (Makefile.am): Augment lib_SOURCES.
8168
8169 2011-05-23  Bruno Haible  <bruno@clisp.org>
8170
8171         close-stream: Move AC_LIBOBJ invocations to module description.
8172         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8173         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8174
8175 2011-05-23  Bruno Haible  <bruno@clisp.org>
8176
8177         closeout: Move AC_LIBOBJ invocations to module description.
8178         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8179         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8180
8181 2011-05-23  Bruno Haible  <bruno@clisp.org>
8182
8183         closein: Move AC_LIBOBJ invocations to module description.
8184         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8185         * modules/closein (Makefile.am): Augment lib_SOURCES.
8186
8187 2011-05-23  Bruno Haible  <bruno@clisp.org>
8188
8189         cloexec: Move AC_LIBOBJ invocations to module description.
8190         * m4/cloexec.m4: Remove file.
8191         * modules/cloexec (Files): Remove it.
8192         (configure.ac): Remove gl_CLOEXEC call.
8193         (Makefile.am): Augment lib_SOURCES.
8194
8195 2011-05-23  Bruno Haible  <bruno@clisp.org>
8196
8197         check-version: Move AC_LIBOBJ invocations to module description.
8198         * m4/check-version.m4: Remove file.
8199         * modules/check-version (Files): Remove it.
8200         (configure.ac): Remove gl_CHECK_VERSION call.
8201         (Makefile.am): Augment lib_SOURCES.
8202
8203 2011-05-23  Bruno Haible  <bruno@clisp.org>
8204
8205         chdir-safer: Move AC_LIBOBJ invocations to module description.
8206         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8207         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8208
8209 2011-05-23  Bruno Haible  <bruno@clisp.org>
8210
8211         canonicalize: Move AC_LIBOBJ invocations to module description.
8212         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8213         AC_LIBOBJ invocation.
8214         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8215
8216 2011-05-23  Bruno Haible  <bruno@clisp.org>
8217
8218         canon-host: Move AC_LIBOBJ invocations to module description.
8219         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8220         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8221         instead of gl_CANON_HOST.
8222         (Makefile.am): Augment lib_SOURCES.
8223
8224 2011-05-23  Bruno Haible  <bruno@clisp.org>
8225
8226         backupfile: Move AC_LIBOBJ invocations to module description.
8227         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8228         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8229
8230 2011-05-23  Bruno Haible  <bruno@clisp.org>
8231
8232         argmatch: Move AC_LIBOBJ invocations to module description.
8233         * m4/argmatch.m4: Remove file.
8234         * modules/argmatch (Files): Remove it.
8235         (configure.ac): Remove gl_ARGMATCH call.
8236         (Makefile.am): Augment lib_SOURCES.
8237
8238 2011-05-23  Bruno Haible  <bruno@clisp.org>
8239
8240         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8241         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8242         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8243
8244 2011-05-23  Bruno Haible  <bruno@clisp.org>
8245
8246         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8247         * m4/arcfour.m4: Remove file.
8248         * modules/crypto/arcfour (Files): Remove it.
8249         (configure.ac): Remove gl_ARCFOUR call.
8250         (Makefile.am): Augment lib_SOURCES.
8251
8252 2011-05-22  Bruno Haible  <bruno@clisp.org>
8253
8254         write: Move AC_LIBOBJ invocations to module description.
8255         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8256         * modules/write (configure.ac): ... to here.
8257
8258 2011-05-22  Bruno Haible  <bruno@clisp.org>
8259
8260         wmemset: Move AC_LIBOBJ invocations to module description.
8261         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8262         here...
8263         * modules/wmemset (configure.ac): ... to here.
8264
8265 2011-05-22  Bruno Haible  <bruno@clisp.org>
8266
8267         wmemmove: Move AC_LIBOBJ invocations to module description.
8268         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8269         here...
8270         * modules/wmemmove (configure.ac): ... to here.
8271
8272 2011-05-22  Bruno Haible  <bruno@clisp.org>
8273
8274         wmemcpy: Move AC_LIBOBJ invocations to module description.
8275         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8276         here...
8277         * modules/wmemcpy (configure.ac): ... to here.
8278
8279 2011-05-22  Bruno Haible  <bruno@clisp.org>
8280
8281         wmemcmp: Move AC_LIBOBJ invocations to module description.
8282         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8283         here...
8284         * modules/wmemcmp (configure.ac): ... to here.
8285
8286 2011-05-22  Bruno Haible  <bruno@clisp.org>
8287
8288         wmemchr: Move AC_LIBOBJ invocations to module description.
8289         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8290         here...
8291         * modules/wmemchr (configure.ac): ... to here.
8292
8293 2011-05-22  Bruno Haible  <bruno@clisp.org>
8294
8295         wcswidth: Move AC_LIBOBJ invocations to module description.
8296         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8297         here...
8298         * modules/wcswidth (configure.ac): ... to here.
8299
8300 2011-05-22  Bruno Haible  <bruno@clisp.org>
8301
8302         wcwidth: Respect rules for use of AC_LIBOBJ.
8303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8304         invocation from here...
8305         * modules/wcwidth (configure.ac): ... to here.
8306         (Depends-on): Update conditions.
8307
8308 2011-05-22  Bruno Haible  <bruno@clisp.org>
8309
8310         wctype: Move AC_LIBOBJ invocations to module description.
8311         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8312         invocation from here...
8313         * modules/wctype (configure.ac): ... to here.
8314         (Depends-on): Update conditions.
8315
8316 2011-05-22  Bruno Haible  <bruno@clisp.org>
8317
8318         wctrans: Move AC_LIBOBJ invocations to module description.
8319         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8320         invocation from here...
8321         * modules/wctrans (configure.ac): ... to here.
8322
8323 2011-05-22  Bruno Haible  <bruno@clisp.org>
8324
8325         wctomb: Move AC_LIBOBJ invocations to module description.
8326         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8327         invocations from here...
8328         * modules/wctomb (configure.ac): ... to here.
8329
8330 2011-05-22  Bruno Haible  <bruno@clisp.org>
8331
8332         wctob: Move AC_LIBOBJ invocations to module description.
8333         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8334         gl_PREREQ_WCTOB invocations from here...
8335         * modules/wctob (configure.ac): ... to here.
8336         (Depends-on): Update conditions.
8337
8338 2011-05-22  Bruno Haible  <bruno@clisp.org>
8339
8340         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8341         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8342         here...
8343         * modules/wcsxfrm (configure.ac): ... to here.
8344
8345 2011-05-22  Bruno Haible  <bruno@clisp.org>
8346
8347         wcstok: Move AC_LIBOBJ invocations to module description.
8348         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8349         * modules/wcstok (configure.ac): ... to here.
8350
8351 2011-05-22  Bruno Haible  <bruno@clisp.org>
8352
8353         wcsstr: Move AC_LIBOBJ invocations to module description.
8354         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8355         * modules/wcsstr (configure.ac): ... to here.
8356
8357 2011-05-22  Bruno Haible  <bruno@clisp.org>
8358
8359         wcsspn: Move AC_LIBOBJ invocations to module description.
8360         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8361         * modules/wcsspn (configure.ac): ... to here.
8362
8363 2011-05-22  Bruno Haible  <bruno@clisp.org>
8364
8365         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8366         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8367         gl_PREREQ_WCSRTOMBS invocations from here...
8368         * modules/wcsrtombs (configure.ac): ... to here.
8369
8370 2011-05-22  Bruno Haible  <bruno@clisp.org>
8371
8372         wcsrchr: Move AC_LIBOBJ invocations to module description.
8373         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8374         here...
8375         * modules/wcsrchr (configure.ac): ... to here.
8376
8377 2011-05-22  Bruno Haible  <bruno@clisp.org>
8378
8379         wcspbrk: Move AC_LIBOBJ invocations to module description.
8380         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8381         here...
8382         * modules/wcspbrk (configure.ac): ... to here.
8383
8384 2011-05-22  Bruno Haible  <bruno@clisp.org>
8385
8386         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8387         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8388         gl_PREREQ_WCSNRTOMBS invocations from here...
8389         * modules/wcsnrtombs (configure.ac): ... to here.
8390
8391 2011-05-22  Bruno Haible  <bruno@clisp.org>
8392
8393         wcsnlen: Move AC_LIBOBJ invocations to module description.
8394         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8395         here...
8396         * modules/wcsnlen (configure.ac): ... to here.
8397
8398 2011-05-22  Bruno Haible  <bruno@clisp.org>
8399
8400         wcsncpy: Move AC_LIBOBJ invocations to module description.
8401         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8402         here...
8403         * modules/wcsncpy (configure.ac): ... to here.
8404
8405 2011-05-22  Bruno Haible  <bruno@clisp.org>
8406
8407         wcsncmp: Move AC_LIBOBJ invocations to module description.
8408         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8409         here...
8410         * modules/wcsncmp (configure.ac): ... to here.
8411
8412 2011-05-22  Bruno Haible  <bruno@clisp.org>
8413
8414         wcsncat: Move AC_LIBOBJ invocations to module description.
8415         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8416         here...
8417         * modules/wcsncat (configure.ac): ... to here.
8418
8419 2011-05-22  Bruno Haible  <bruno@clisp.org>
8420
8421         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8422         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8423         from here...
8424         * modules/wcsncasecmp (configure.ac): ... to here.
8425
8426 2011-05-22  Bruno Haible  <bruno@clisp.org>
8427
8428         wcslen: Move AC_LIBOBJ invocations to module description.
8429         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8430         * modules/wcslen (configure.ac): ... to here.
8431
8432 2011-05-22  Bruno Haible  <bruno@clisp.org>
8433
8434         wcsdup: Move AC_LIBOBJ invocations to module description.
8435         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8436         * modules/wcsdup (configure.ac): ... to here.
8437
8438 2011-05-22  Bruno Haible  <bruno@clisp.org>
8439
8440         wcscspn: Move AC_LIBOBJ invocations to module description.
8441         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8442         here...
8443         * modules/wcscspn (configure.ac): ... to here.
8444
8445 2011-05-22  Bruno Haible  <bruno@clisp.org>
8446
8447         wcscpy: Move AC_LIBOBJ invocations to module description.
8448         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8449         * modules/wcscpy (configure.ac): ... to here.
8450
8451 2011-05-22  Bruno Haible  <bruno@clisp.org>
8452
8453         wcscoll: Move AC_LIBOBJ invocations to module description.
8454         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8455         here...
8456         * modules/wcscoll (configure.ac): ... to here.
8457
8458 2011-05-22  Bruno Haible  <bruno@clisp.org>
8459
8460         wcscmp: Move AC_LIBOBJ invocations to module description.
8461         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8462         * modules/wcscmp (configure.ac): ... to here.
8463
8464 2011-05-22  Bruno Haible  <bruno@clisp.org>
8465
8466         wcschr: Move AC_LIBOBJ invocations to module description.
8467         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8468         * modules/wcschr (configure.ac): ... to here.
8469
8470 2011-05-22  Bruno Haible  <bruno@clisp.org>
8471
8472         wcscat: Move AC_LIBOBJ invocations to module description.
8473         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8474         * modules/wcscat (configure.ac): ... to here.
8475
8476 2011-05-22  Bruno Haible  <bruno@clisp.org>
8477
8478         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8479         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8480         here...
8481         * modules/wcscasecmp (configure.ac): ... to here.
8482
8483 2011-05-22  Bruno Haible  <bruno@clisp.org>
8484
8485         wcrtomb: Move AC_LIBOBJ invocations to module description.
8486         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8487         invocations from here...
8488         * modules/wcrtomb (configure.ac): ... to here.
8489
8490 2011-05-22  Bruno Haible  <bruno@clisp.org>
8491
8492         wcpncpy: Move AC_LIBOBJ invocations to module description.
8493         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8494         here...
8495         * modules/wcpncpy (configure.ac): ... to here.
8496
8497 2011-05-22  Bruno Haible  <bruno@clisp.org>
8498
8499         wcpcpy: Move AC_LIBOBJ invocations to module description.
8500         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8501         * modules/wcpcpy (configure.ac): ... to here.
8502
8503 2011-05-22  Bruno Haible  <bruno@clisp.org>
8504
8505         waitpid: Move AC_LIBOBJ invocations to module description.
8506         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8507         invocation from here...
8508         * modules/waitpid (configure.ac): ... to here.
8509
8510 2011-05-22  Bruno Haible  <bruno@clisp.org>
8511
8512         utimensat: Move AC_LIBOBJ invocations to module description.
8513         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8514         here...
8515         * modules/utimensat (configure.ac): ... to here.
8516
8517 2011-05-22  Bruno Haible  <bruno@clisp.org>
8518
8519         usleep: Move AC_LIBOBJ invocations to module description.
8520         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8521         here...
8522         * modules/usleep (configure.ac): ... to here.
8523
8524 2011-05-22  Bruno Haible  <bruno@clisp.org>
8525
8526         unlockpt: Move AC_LIBOBJ invocations to module description.
8527         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8528         gl_PREREQ_UNLOCKPT invocations from here...
8529         * modules/unlockpt (configure.ac): ... to here.
8530
8531 2011-05-22  Bruno Haible  <bruno@clisp.org>
8532
8533         unlink: Respect rules for use of AC_LIBOBJ.
8534         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8535         * modules/unlink (configure.ac): ... to here.
8536
8537 2011-05-22  Bruno Haible  <bruno@clisp.org>
8538
8539         uname: Move AC_LIBOBJ invocations to module description.
8540         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8541         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8542         here...
8543         * modules/uname (configure.ac): ... to here.
8544
8545 2011-05-22  Bruno Haible  <bruno@clisp.org>
8546
8547         ttyname_r: Move AC_LIBOBJ invocations to module description.
8548         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8549         gl_PREREQ_TTYNAME_R invocations from here...
8550         * modules/ttyname_r (configure.ac): ... to here.
8551
8552 2011-05-22  Bruno Haible  <bruno@clisp.org>
8553
8554         tsearch: Move AC_LIBOBJ invocations to module description.
8555         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8556         invocations from here...
8557         * modules/tsearch (configure.ac): ... to here.
8558
8559 2011-05-22  Bruno Haible  <bruno@clisp.org>
8560
8561         towctrans: Move AC_LIBOBJ invocations to module description.
8562         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8563         AC_LIBOBJ invocation from here...
8564         * modules/towctrans (configure.ac): ... to here.
8565
8566 2011-05-22  Bruno Haible  <bruno@clisp.org>
8567
8568         tmpfile: Move AC_LIBOBJ invocations to module description.
8569         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8570         invocations from here...
8571         * modules/tmpfile (configure.ac): ... to here.
8572
8573 2011-05-22  Bruno Haible  <bruno@clisp.org>
8574
8575         times: Move AC_LIBOBJ invocations to module description.
8576         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8577         * modules/times (configure.ac): ... to here.
8578
8579 2011-05-22  Bruno Haible  <bruno@clisp.org>
8580
8581         time_r: Move AC_LIBOBJ invocations to module description.
8582         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8583         invocations from here...
8584         * modules/time_r (configure.ac): ... to here.
8585
8586 2011-05-22  Bruno Haible  <bruno@clisp.org>
8587
8588         timegm: Move AC_LIBOBJ invocations to module description.
8589         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8590         invocations from here...
8591         * modules/timegm (configure.ac): ... to here.
8592
8593 2011-05-22  Bruno Haible  <bruno@clisp.org>
8594
8595         tcgetsid: Move AC_LIBOBJ invocations to module description.
8596         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8597         and gl_PREREQ_TCGETSID invocations from here...
8598         * modules/tcgetsid (configure.ac): ... to here.
8599         (Depends-on): Update conditions.
8600
8601 2011-05-22  Bruno Haible  <bruno@clisp.org>
8602
8603         symlinkat: Move AC_LIBOBJ invocations to module description.
8604         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8605         here...
8606         * modules/symlinkat (configure.ac): ... to here.
8607
8608 2011-05-22  Bruno Haible  <bruno@clisp.org>
8609
8610         symlink: Move AC_LIBOBJ invocations to module description.
8611         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8612         here...
8613         * modules/symlink (configure.ac): ... to here.
8614
8615 2011-05-22  Bruno Haible  <bruno@clisp.org>
8616
8617         strverscmp: Move AC_LIBOBJ invocations to module description.
8618         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8619         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8620         from here...
8621         * modules/strverscmp (configure.ac): ... to here.
8622
8623 2011-05-22  Bruno Haible  <bruno@clisp.org>
8624
8625         strtok_r: Move AC_LIBOBJ invocations to module description.
8626         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8627         and gl_PREREQ_STRTOK_R invocations from here...
8628         * modules/strtok_r (configure.ac): ... to here.
8629         (Depends-on): Update conditions.
8630
8631 2011-05-22  Bruno Haible  <bruno@clisp.org>
8632
8633         strtoumax: Move AC_LIBOBJ invocations to module description.
8634         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8636         from here...
8637         * modules/strtoumax (configure.ac): ... to here.
8638
8639 2011-05-22  Bruno Haible  <bruno@clisp.org>
8640
8641         strtoimax: Move AC_LIBOBJ invocations to module description.
8642         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8644         from here...
8645         * modules/strtoimax (configure.ac): ... to here.
8646
8647 2011-05-22  Bruno Haible  <bruno@clisp.org>
8648
8649         strtoull: Move AC_LIBOBJ invocations to module description.
8650         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8651         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8652         from here...
8653         * modules/strtoull (configure.ac): ... to here.
8654
8655 2011-05-22  Bruno Haible  <bruno@clisp.org>
8656
8657         strtoll: Move AC_LIBOBJ invocations to module description.
8658         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8659         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8660         here...
8661         * modules/strtoll (configure.ac): ... to here.
8662
8663 2011-05-22  Bruno Haible  <bruno@clisp.org>
8664
8665         strtoul: Move AC_LIBOBJ invocations to module description.
8666         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8667         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8668         * modules/strtoul (configure.ac): ... to here.
8669
8670 2011-05-22  Bruno Haible  <bruno@clisp.org>
8671
8672         strtol: Move AC_LIBOBJ invocations to module description.
8673         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8674         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8675         * modules/strtol (configure.ac): ... to here.
8676
8677 2011-05-22  Bruno Haible  <bruno@clisp.org>
8678
8679         strtod: Move AC_LIBOBJ invocations to module description.
8680         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8681         invocations from here...
8682         * modules/strtod (configure.ac): ... to here.
8683
8684 2011-05-22  Bruno Haible  <bruno@clisp.org>
8685
8686         strstr*: Move AC_LIBOBJ invocations to module description.
8687         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8688         invocations from here...
8689         * modules/strstr-simple (configure.ac): ... to here.
8690         * modules/strstr (configure.ac): ... and here.
8691
8692 2011-05-22  Bruno Haible  <bruno@clisp.org>
8693
8694         strsignal: Move AC_LIBOBJ invocations to module description.
8695         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8696         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8697         * modules/strsignal (configure.ac): ... to here.
8698         (Depends-on): Update conditions.
8699
8700 2011-05-22  Bruno Haible  <bruno@clisp.org>
8701
8702         strsep: Move AC_LIBOBJ invocations to module description.
8703         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8704         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8705         here...
8706         * modules/strsep (configure.ac): ... to here.
8707
8708 2011-05-22  Bruno Haible  <bruno@clisp.org>
8709
8710         strptime: Move AC_LIBOBJ invocations to module description.
8711         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8712         gl_PREREQ_STRPTIME invocations from here...
8713         * modules/strptime (configure.ac): ... to here.
8714
8715 2011-05-22  Bruno Haible  <bruno@clisp.org>
8716
8717         strpbrk: Move AC_LIBOBJ invocations to module description.
8718         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8720         here...
8721         * modules/strpbrk (configure.ac): ... to here.
8722
8723 2011-05-22  Bruno Haible  <bruno@clisp.org>
8724
8725         strnlen: Move AC_LIBOBJ invocations to module description.
8726         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8727         invocations from here...
8728         * modules/strnlen (configure.ac): ... to here.
8729
8730 2011-05-22  Bruno Haible  <bruno@clisp.org>
8731
8732         strndup: Move AC_LIBOBJ invocations to module description.
8733         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8734         invocations from here...
8735         * modules/strndup (configure.ac): ... to here.
8736         (Depends-on): Update conditions.
8737
8738 2011-05-22  Bruno Haible  <bruno@clisp.org>
8739
8740         strncat: Move AC_LIBOBJ invocations to module description.
8741         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8742         invocations from here...
8743         * modules/strncat (configure.ac): ... to here.
8744
8745 2011-05-22  Bruno Haible  <bruno@clisp.org>
8746
8747         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8748         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8749         invocations from here...
8750         * modules/strdup (configure.ac): ... to here.
8751         * modules/strdup-posix (configure.ac): ... and here.
8752
8753 2011-05-22  Bruno Haible  <bruno@clisp.org>
8754
8755         strcspn: Move AC_LIBOBJ invocations to module description.
8756         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8757         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8758         here...
8759         * modules/strcspn (configure.ac): ... to here.
8760
8761 2011-05-22  Bruno Haible  <bruno@clisp.org>
8762
8763         strchrnul: Move AC_LIBOBJ invocations to module description.
8764         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8765         gl_PREREQ_STRCHRNUL invocations from here...
8766         * modules/strchrnul (configure.ac): ... to here.
8767
8768 2011-05-22  Bruno Haible  <bruno@clisp.org>
8769
8770         strcasestr*: Move AC_LIBOBJ invocations to module description.
8771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8772         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8773         * modules/strcasestr-simple (configure.ac): ... to here.
8774         * modules/strcasestr (configure.ac): ... and here.
8775
8776 2011-05-22  Bruno Haible  <bruno@clisp.org>
8777
8778         strcase: Move AC_LIBOBJ invocations to module description.
8779         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8780         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8781         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8782         gl_PREREQ_STRNCASECMP invocations from here...
8783         * modules/strcase (configure.ac): ... to here.
8784
8785 2011-05-22  Bruno Haible  <bruno@clisp.org>
8786
8787         stpncpy: Move AC_LIBOBJ invocations to module description.
8788         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8789         here...
8790         * modules/stpncpy (configure.ac): ... to here.
8791
8792 2011-05-22  Bruno Haible  <bruno@clisp.org>
8793
8794         stpcpy: Move AC_LIBOBJ invocations to module description.
8795         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8796         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8797         here...
8798         * modules/stpcpy (configure.ac): ... to here.
8799
8800 2011-05-21  Bruno Haible  <bruno@clisp.org>
8801
8802         stat: Move AC_LIBOBJ invocations to module description.
8803         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8804         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8805         here...
8806         * modules/stat (configure.ac): ... to here.
8807
8808 2011-05-21  Bruno Haible  <bruno@clisp.org>
8809
8810         sleep: Move AC_LIBOBJ invocations to module description.
8811         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8812         * modules/sleep (configure.ac): ... to here.
8813
8814 2011-05-21  Bruno Haible  <bruno@clisp.org>
8815
8816         signbit: Move AC_LIBOBJ invocations to module description.
8817         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8818         * modules/signbit (configure.ac): ... to here.
8819
8820 2011-05-21  Bruno Haible  <bruno@clisp.org>
8821
8822         sigprocmask: Move AC_LIBOBJ invocations to module description.
8823         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8824         gl_PREREQ_SIGPROMASK invocations from here...
8825         * modules/sigprocmask (configure.ac): ... to here.
8826
8827 2011-05-21  Bruno Haible  <bruno@clisp.org>
8828
8829         sigaction: Move AC_LIBOBJ invocations to module description.
8830         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8831         gl_PREREQ_SIGACTION invocations from here...
8832         * modules/sigaction (configure.ac): ... to here.
8833
8834 2011-05-21  Bruno Haible  <bruno@clisp.org>
8835
8836         sig2str: Move AC_LIBOBJ invocations to module description.
8837         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8838         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8839         here...
8840         * modules/sig2str (configure.ac): ... to here.
8841
8842 2011-05-21  Bruno Haible  <bruno@clisp.org>
8843
8844         setlocale: Move AC_LIBOBJ invocations to module description.
8845         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8846         gl_PREREQ_SETLOCALE invocations from here...
8847         * modules/setlocale (configure.ac): ... to here.
8848
8849 2011-05-21  Bruno Haible  <bruno@clisp.org>
8850
8851         unsetenv: Move AC_LIBOBJ invocations to module description.
8852         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8853         and gl_PREREQ_UNSETENV invocations from here...
8854         * modules/unsetenv (configure.ac): ... to here.
8855         (Depends-on): Update.
8856
8857 2011-05-21  Bruno Haible  <bruno@clisp.org>
8858
8859         setenv: Move AC_LIBOBJ invocations to module description.
8860         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8861         here...
8862         * modules/setenv (configure.ac): ... to here.
8863
8864 2011-05-21  Bruno Haible  <bruno@clisp.org>
8865
8866         selinux-h: Move AC_LIBOBJ invocations to module description.
8867         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8868         AC_LIBOBJ invocation from here...
8869         * modules/selinux-h (configure.ac): ... to here.
8870
8871 2011-05-21  Bruno Haible  <bruno@clisp.org>
8872
8873         select: Respect rules for use of AC_LIBOBJ.
8874         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8875         here...
8876         * modules/select (configure.ac): ... to here.
8877
8878 2011-05-21  Bruno Haible  <bruno@clisp.org>
8879
8880         scandir: Move AC_LIBOBJ invocations to module description.
8881         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8882         invocations from here...
8883         * modules/scandir (configure.ac): ... to here.
8884
8885 2011-05-21  Bruno Haible  <bruno@clisp.org>
8886
8887         rpmatch: Move AC_LIBOBJ invocations to module description.
8888         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8889         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8890         here...
8891         * modules/rpmatch (configure.ac): ... to here.
8892
8893 2011-05-21  Bruno Haible  <bruno@clisp.org>
8894
8895         rmdir: Respect rules for use of AC_LIBOBJ.
8896         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8897         * modules/rmdir (configure.ac): ... to here.
8898
8899 2011-05-21  Bruno Haible  <bruno@clisp.org>
8900
8901         renameat: Move AC_LIBOBJ invocations to module description.
8902         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8903         here...
8904         * modules/renameat (configure.ac): ... to here.
8905
8906 2011-05-21  Bruno Haible  <bruno@clisp.org>
8907
8908         rename: Respect rules for use of AC_LIBOBJ.
8909         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8910         here...
8911         * modules/rename (configure.ac): ... to here.
8912
8913 2011-05-21  Bruno Haible  <bruno@clisp.org>
8914
8915         remove: Move AC_LIBOBJ invocations to module description.
8916         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8917         here...
8918         * modules/remove (configure.ac): ... to here.
8919
8920 2011-05-21  Bruno Haible  <bruno@clisp.org>
8921
8922         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8923         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8924         macro.
8925         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8926         * modules/relocatable-lib (configure.ac): ... to here.
8927         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8928         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8929
8930 2011-05-21  Bruno Haible  <bruno@clisp.org>
8931
8932         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8933         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8934         here...
8935         * modules/relocatable-prog (configure.ac): ... to here.
8936
8937 2011-05-21  Bruno Haible  <bruno@clisp.org>
8938
8939         regex: Move AC_LIBOBJ invocations to module description.
8940         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8941         invocations from here...
8942         * modules/regex (configure.ac): ... to here.
8943
8944 2011-05-21  Bruno Haible  <bruno@clisp.org>
8945
8946         realloc-*: Move AC_LIBOBJ invocations to module description.
8947         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8948         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8949         AC_LIBOBJ invocations from here...
8950         * modules/realloc-gnu (configure.ac): ... to here.
8951         * modules/realloc-posix (configure.ac): ... and here.
8952
8953 2011-05-21  Bruno Haible  <bruno@clisp.org>
8954
8955         readutmp: Move AC_LIBOBJ invocations to module description.
8956         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8957         * modules/readutmp (configure.ac): ... to here.
8958
8959 2011-05-21  Bruno Haible  <bruno@clisp.org>
8960
8961         readlinkat: Move AC_LIBOBJ invocations to module description.
8962         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8963         here...
8964         * modules/readlinkat (configure.ac): ... to here.
8965
8966 2011-05-21  Bruno Haible  <bruno@clisp.org>
8967
8968         readlink: Move AC_LIBOBJ invocations to module description.
8969         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8970         gl_PREREQ_READLINK invocations from here...
8971         * modules/readlink (configure.ac): ... to here.
8972
8973 2011-05-21  Bruno Haible  <bruno@clisp.org>
8974
8975         readline: Move AC_LIBOBJ invocations to module description.
8976         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8977         gl_PREREQ_READLINE invocations from here...
8978         * modules/readline (configure.ac): ... to here.
8979
8980 2011-05-21  Bruno Haible  <bruno@clisp.org>
8981
8982         read: Move AC_LIBOBJ invocations to module description.
8983         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8984         * modules/read (configure.ac): ... to here.
8985
8986 2011-05-21  Bruno Haible  <bruno@clisp.org>
8987
8988         rawmemchr: Move AC_LIBOBJ invocations to module description.
8989         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8991         from here...
8992         * modules/rawmemchr (configure.ac): ... to here.
8993
8994 2011-05-21  Bruno Haible  <bruno@clisp.org>
8995
8996         random_r: Move AC_LIBOBJ invocations to module description.
8997         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8998         gl_PREREQ_RANDOM_R invocations from here...
8999         * modules/random_r (configure.ac): ... to here.
9000
9001 2011-05-21  Bruno Haible  <bruno@clisp.org>
9002
9003         pwrite: Move AC_LIBOBJ invocations to module description.
9004         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9005         * modules/pwrite (configure.ac): ... to here.
9006
9007 2011-05-21  Bruno Haible  <bruno@clisp.org>
9008
9009         putenv: Move AC_LIBOBJ invocations to module description.
9010         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9011         * modules/putenv (configure.ac): ... to here.
9012
9013 2011-05-21  Bruno Haible  <bruno@clisp.org>
9014
9015         login_tty: Move AC_LIBOBJ invocations to module description.
9016         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9017         * modules/login_tty (configure.ac): ... to here.
9018
9019 2011-05-21  Bruno Haible  <bruno@clisp.org>
9020
9021         openpty: Move AC_LIBOBJ invocations to module description.
9022         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9023         * modules/openpty (configure.ac): ... to here.
9024
9025 2011-05-21  Bruno Haible  <bruno@clisp.org>
9026
9027         forkpty: Move AC_LIBOBJ invocations to module description.
9028         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9029         * modules/forkpty (configure.ac): ... to here.
9030
9031 2011-05-21  Bruno Haible  <bruno@clisp.org>
9032
9033         ptsname: Move AC_LIBOBJ invocations to module description.
9034         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9035         invocations from here...
9036         * modules/ptsname (configure.ac): ... to here.
9037
9038 2011-05-21  Bruno Haible  <bruno@clisp.org>
9039
9040         pread: Move AC_LIBOBJ invocations to module description.
9041         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9042         * modules/pread (configure.ac): ... to here.
9043
9044 2011-05-21  Bruno Haible  <bruno@clisp.org>
9045
9046         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9047         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9048         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9049         * modules/posix_spawn (configure.ac): ... to here.
9050         * modules/posix_spawnp (configure.ac): ... and here.
9051
9052 2011-05-21  Bruno Haible  <bruno@clisp.org>
9053
9054         popen: Move AC_LIBOBJ invocations to module description.
9055         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9056         invocations from here...
9057         * modules/popen (configure.ac): ... to here.
9058
9059 2011-05-21  Bruno Haible  <bruno@clisp.org>
9060
9061         poll: Move AC_LIBOBJ invocations to module description.
9062         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9063         invocations from here...
9064         * modules/poll (configure.ac): ... to here.
9065
9066 2011-05-21  Bruno Haible  <bruno@clisp.org>
9067
9068         pipe-posix: Move AC_LIBOBJ invocations to module description.
9069         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9070         * modules/pipe-posix (configure.ac): ... to here.
9071
9072 2011-05-21  Bruno Haible  <bruno@clisp.org>
9073
9074         openat: Respect rules for use of AC_LIBOBJ.
9075         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9076         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9077         * modules/openat (configure.ac): ... to here.
9078
9079 2011-05-21  Bruno Haible  <bruno@clisp.org>
9080
9081         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9082         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9083         invocation from here...
9084         * modules/obstack-printf (configure.ac): ... to here.
9085         * modules/obstack-printf-posix (configure.ac): ... and here.
9086
9087 2011-05-21  Bruno Haible  <bruno@clisp.org>
9088
9089         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9090         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9091         from here...
9092         * modules/nl_langinfo (configure.ac): ... to here.
9093
9094 2011-05-21  Bruno Haible  <bruno@clisp.org>
9095
9096         nanosleep: Move AC_LIBOBJ invocations to module description.
9097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9098         gl_PREREQ_NANOSLEEP invocations from here...
9099         * modules/nanosleep (configure.ac): ... to here.
9100
9101 2011-05-21  Bruno Haible  <bruno@clisp.org>
9102
9103         mountlist: Move AC_LIBOBJ invocations to module description.
9104         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9105         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9106         * modules/mountlist (configure.ac): ... to here.
9107
9108 2011-05-21  Bruno Haible  <bruno@clisp.org>
9109
9110         mktime: Respect rules for use of AC_LIBOBJ.
9111         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9112         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9113         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9114         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9115         * modules/mktime (configure.ac): ... to here.
9116         * modules/mktime-internal (configure.ac): ... and here.
9117         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9118
9119 2011-05-21  Bruno Haible  <bruno@clisp.org>
9120
9121         mkstemps: Move AC_LIBOBJ invocations to module description.
9122         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9123         here...
9124         * modules/mkstemps (configure.ac): ... to here.
9125
9126 2011-05-21  Bruno Haible  <bruno@clisp.org>
9127
9128         mkstemp: Move AC_LIBOBJ invocations to module description.
9129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9130         gl_PREREQ_MKSTEMP invocations from here...
9131         * modules/mkstemp (configure.ac): ... to here.
9132
9133 2011-05-21  Bruno Haible  <bruno@clisp.org>
9134
9135         mkostemps: Move AC_LIBOBJ invocations to module description.
9136         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9137         here...
9138         * modules/mkostemps (configure.ac): ... to here.
9139
9140 2011-05-21  Bruno Haible  <bruno@clisp.org>
9141
9142         mkostemp: Move AC_LIBOBJ invocations to module description.
9143         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9144         gl_PREREQ_MKOSTEMP invocations from here...
9145         * modules/mkostemp (configure.ac): ... to here.
9146
9147 2011-05-21  Bruno Haible  <bruno@clisp.org>
9148
9149         mknod: Move AC_LIBOBJ invocations to module description.
9150         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9151         * modules/mknod (configure.ac): ... to here.
9152
9153 2011-05-21  Bruno Haible  <bruno@clisp.org>
9154
9155         mkfifoat: Move AC_LIBOBJ invocations to module description.
9156         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9157         here...
9158         * modules/mkfifoat (configure.ac): ... to here.
9159
9160 2011-05-21  Bruno Haible  <bruno@clisp.org>
9161
9162         mkfifo: Respect rules for use of AC_LIBOBJ.
9163         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9164         here...
9165         * modules/mkfifo (configure.ac): ... to here.
9166
9167 2011-05-21  Bruno Haible  <bruno@clisp.org>
9168
9169         mkdtemp: Move AC_LIBOBJ invocations to module description.
9170         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9171         invocations from here...
9172         * modules/mkdtemp (configure.ac): ... to here.
9173
9174 2011-05-21  Bruno Haible  <bruno@clisp.org>
9175
9176         mkdir: Move AC_LIBOBJ invocations to module description.
9177         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9178         * modules/mkdir (configure.ac): ... to here.
9179
9180 2011-05-21  Bruno Haible  <bruno@clisp.org>
9181
9182         memset: Move AC_LIBOBJ invocations to module description.
9183         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9185         here...
9186         * modules/memset (configure.ac): ... to here.
9187
9188 2011-05-21  Bruno Haible  <bruno@clisp.org>
9189
9190         memrchr: Move AC_LIBOBJ invocations to module description.
9191         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9192         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9193         here...
9194         * modules/memrchr (configure.ac): ... to here.
9195
9196 2011-05-21  Bruno Haible  <bruno@clisp.org>
9197
9198         mempcpy: Move AC_LIBOBJ invocations to module description.
9199         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9200         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9201         here...
9202         * modules/mempcpy (configure.ac): ... to here.
9203
9204 2011-05-21  Bruno Haible  <bruno@clisp.org>
9205
9206         memmove: Move AC_LIBOBJ invocations to module description.
9207         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9208         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9209         here...
9210         * modules/memmove (configure.ac): ... to here.
9211
9212 2011-05-21  Bruno Haible  <bruno@clisp.org>
9213
9214         memmem*: Move AC_LIBOBJ invocations to module description.
9215         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9216         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9217         here...
9218         (gl_FUNC_MEMMEM): ... and here...
9219         * modules/memmem-simple (configure.ac): ... to here.
9220         * modules/memmem (configure.ac): ... and here.
9221
9222 2011-05-21  Bruno Haible  <bruno@clisp.org>
9223
9224         memcpy: Move AC_LIBOBJ invocations to module description.
9225         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9226         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9227         here...
9228         * modules/memcpy (configure.ac): ... to here.
9229
9230 2011-05-21  Bruno Haible  <bruno@clisp.org>
9231
9232         memcmp: Simplify autoconf macro.
9233         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9234         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9235         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9236
9237 2011-05-21  Bruno Haible  <bruno@clisp.org>
9238
9239         memcmp: Move AC_LIBOBJ invocations to module description.
9240         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9241         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9242         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9243         * modules/memcmp (configure.ac): ... to here.
9244         (Depends-on): Update conditions.
9245
9246 2011-05-21  Bruno Haible  <bruno@clisp.org>
9247
9248         memchr: Respect rules for use of AC_LIBOBJ.
9249         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9250         invocations from here...
9251         * modules/memchr (configure.ac): ... to here.
9252
9253 2011-05-21  Bruno Haible  <bruno@clisp.org>
9254
9255         mbtowc: Move AC_LIBOBJ invocations to module description.
9256         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9257         invocations from here...
9258         * modules/mbtowc (configure.ac): ... to here.
9259
9260 2011-05-21  Bruno Haible  <bruno@clisp.org>
9261
9262         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9263         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9264         gl_PREREQ_MBSRTOWCS invocations from here...
9265         * modules/mbsrtowcs (configure.ac): ... to here.
9266
9267 2011-05-21  Bruno Haible  <bruno@clisp.org>
9268
9269         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9270         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9271         gl_PREREQ_MBSNRTOWCS invocations from here...
9272         * modules/mbsnrtowcs (configure.ac): ... to here.
9273
9274 2011-05-21  Bruno Haible  <bruno@clisp.org>
9275
9276         mbsinit: Move AC_LIBOBJ invocations to module description.
9277         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9278         invocations from here...
9279         * modules/mbsinit (configure.ac): ... to here.
9280
9281 2011-05-21  Bruno Haible  <bruno@clisp.org>
9282
9283         mbrlen: Move AC_LIBOBJ invocations to module description.
9284         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9285         invocations from here...
9286         * modules/mbrlen (configure.ac): ... to here.
9287
9288 2011-05-21  Bruno Haible  <bruno@clisp.org>
9289
9290         mbrtowc: Respect rules for use of AC_LIBOBJ.
9291         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9292         invocations from here...
9293         * modules/mbrtowc (configure.ac): ... to here.
9294
9295 2011-05-21  Bruno Haible  <bruno@clisp.org>
9296
9297         malloc-*: Move AC_LIBOBJ invocations to module description.
9298         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9299         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9300         AC_LIBOBJ invocations from here...
9301         * modules/malloc-gnu (configure.ac): ... to here.
9302         * modules/malloc-posix (configure.ac): ... and here.
9303
9304 2011-05-21  Bruno Haible  <bruno@clisp.org>
9305
9306         lstat, openat: Respect rules for use of AC_LIBOBJ.
9307         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9308         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9309         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9310         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9311         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9312         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9313         here.
9314         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9315
9316 2011-05-21  Bruno Haible  <bruno@clisp.org>
9317
9318         lseek: Move AC_LIBOBJ invocations to module description.
9319         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9320         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9321         * modules/lseek (configure.ac): ... to here.
9322
9323 2011-05-21  Bruno Haible  <bruno@clisp.org>
9324
9325         linkat: Move AC_LIBOBJ invocations to module description.
9326         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9327         here...
9328         * modules/linkat (configure.ac): ... to here.
9329
9330 2011-05-21  Bruno Haible  <bruno@clisp.org>
9331
9332         link: Respect rules for use of AC_LIBOBJ.
9333         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9334         * modules/link (configure.ac): ... to here.
9335
9336 2011-05-21  Bruno Haible  <bruno@clisp.org>
9337
9338         lchown: Move AC_LIBOBJ invocations to module description.
9339         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9340         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9341         * modules/lchown (configure.ac): ... to here.
9342
9343 2011-05-21  Bruno Haible  <bruno@clisp.org>
9344
9345         iswctype: Move AC_LIBOBJ invocations to module description.
9346         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9347         here...
9348         * modules/iswctype (configure.ac): ... to here.
9349
9350 2011-05-21  Bruno Haible  <bruno@clisp.org>
9351
9352         iswblank: Move AC_LIBOBJ invocations to module description.
9353         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9354         here...
9355         * modules/iswblank (configure.ac): ... to here.
9356
9357 2011-05-21  Bruno Haible  <bruno@clisp.org>
9358
9359         atanl: Move AC_LIBOBJ invocations to module description.
9360         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9361         * modules/atanl (configure.ac): ... to here.
9362
9363 2011-05-21  Bruno Haible  <bruno@clisp.org>
9364
9365         acosl: Move AC_LIBOBJ invocations to module description.
9366         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9367         * modules/acosl (configure.ac): ... to here.
9368
9369 2011-05-21  Bruno Haible  <bruno@clisp.org>
9370
9371         asinl: Respect rules for use of AC_LIBOBJ.
9372         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9373         * modules/asinl (configure.ac): ... to here.
9374
9375 2011-05-21  Bruno Haible  <bruno@clisp.org>
9376
9377         tanl: Move AC_LIBOBJ invocations to module description.
9378         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9379         * modules/tanl (configure.ac): ... to here.
9380
9381 2011-05-21  Bruno Haible  <bruno@clisp.org>
9382
9383         cosl: Move AC_LIBOBJ invocations to module description.
9384         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9385         * modules/cosl (configure.ac): ... to here.
9386
9387 2011-05-21  Bruno Haible  <bruno@clisp.org>
9388
9389         sinl: Move AC_LIBOBJ invocations to module description.
9390         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9391         * modules/sinl (configure.ac): ... to here.
9392
9393 2011-05-21  Bruno Haible  <bruno@clisp.org>
9394
9395         logl: Move AC_LIBOBJ invocations to module description.
9396         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9397         * modules/logl (configure.ac): ... to here.
9398
9399 2011-05-21  Bruno Haible  <bruno@clisp.org>
9400
9401         expl: Move AC_LIBOBJ invocations to module description.
9402         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9403         * modules/expl (configure.ac): ... to here.
9404
9405 2011-05-21  Bruno Haible  <bruno@clisp.org>
9406
9407         roundl: Move AC_LIBOBJ invocations to module description.
9408         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9409         * modules/roundl (configure.ac): ... to here.
9410
9411 2011-05-21  Bruno Haible  <bruno@clisp.org>
9412
9413         round: Move AC_LIBOBJ invocations to module description.
9414         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9415         * modules/round (configure.ac): ... to here.
9416
9417 2011-05-21  Bruno Haible  <bruno@clisp.org>
9418
9419         roundf: Move AC_LIBOBJ invocations to module description.
9420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9421         * modules/roundf (configure.ac): ... to here.
9422
9423 2011-05-21  Bruno Haible  <bruno@clisp.org>
9424
9425         truncl: Move AC_LIBOBJ invocations to module description.
9426         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9427         * modules/truncl (configure.ac): ... to here.
9428
9429 2011-05-21  Bruno Haible  <bruno@clisp.org>
9430
9431         trunc: Move AC_LIBOBJ invocations to module description.
9432         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9433         * modules/trunc (configure.ac): ... to here.
9434
9435 2011-05-21  Bruno Haible  <bruno@clisp.org>
9436
9437         truncf: Move AC_LIBOBJ invocations to module description.
9438         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9439         * modules/truncf (configure.ac): ... to here.
9440
9441 2011-05-21  Bruno Haible  <bruno@clisp.org>
9442
9443         ceill: Move AC_LIBOBJ invocations to module description.
9444         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9445         * modules/ceill (configure.ac): ... to here.
9446
9447 2011-05-21  Bruno Haible  <bruno@clisp.org>
9448
9449         ceil: Move AC_LIBOBJ invocations to module description.
9450         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9451         * modules/ceil (configure.ac): ... to here.
9452
9453 2011-05-21  Bruno Haible  <bruno@clisp.org>
9454
9455         ceilf: Move AC_LIBOBJ invocations to module description.
9456         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9457         * modules/ceilf (configure.ac): ... to here.
9458
9459 2011-05-21  Bruno Haible  <bruno@clisp.org>
9460
9461         floorl: Respect rules for use of AC_LIBOBJ.
9462         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9463         * modules/floorl (configure.ac): ... to here.
9464
9465 2011-05-21  Bruno Haible  <bruno@clisp.org>
9466
9467         floor: Respect rules for use of AC_LIBOBJ.
9468         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9469         * modules/floor (configure.ac): ... to here.
9470
9471 2011-05-21  Bruno Haible  <bruno@clisp.org>
9472
9473         floorf: Move AC_LIBOBJ invocations to module description.
9474         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9475         * modules/floorf (configure.ac): ... to here.
9476
9477 2011-05-20  Bruno Haible  <bruno@clisp.org>
9478
9479         sqrtl: Respect rules for use of AC_LIBOBJ.
9480         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9481         * modules/sqrtl (configure.ac): ... to here.
9482
9483 2011-05-20  Bruno Haible  <bruno@clisp.org>
9484
9485         ldexpl: Respect rules for use of AC_LIBOBJ.
9486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9487         * modules/ldexpl (configure.ac): ... to here.
9488
9489 2011-05-20  Bruno Haible  <bruno@clisp.org>
9490
9491         frexpl*: Respect rules for use of AC_LIBOBJ.
9492         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9493         invocation from here...
9494         * modules/frexpl (configure.ac): ... to here.
9495         * modules/frexpl-nolibm (configure.ac): ... and here.
9496
9497 2011-05-20  Bruno Haible  <bruno@clisp.org>
9498
9499         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9500         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9501         invocation from here...
9502         * modules/frexp (configure.ac): ... to here.
9503         * modules/frexp-nolibm (configure.ac): ... and here.
9504
9505 2011-05-20  Bruno Haible  <bruno@clisp.org>
9506
9507         isnan: Respect rules for use of AC_LIBOBJ.
9508         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9509         invocations here.
9510         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9511         REPLACE_ISNAN.
9512         * modules/isnand (configure.ac): Likewise.
9513         * modules/isnanl (configure.ac): Likewise.
9514
9515 2011-05-20  Bruno Haible  <bruno@clisp.org>
9516
9517         isnanl*: Respect rules for use of AC_LIBOBJ.
9518         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9519         invocation from here...
9520         * modules/isnanl (configure.ac): ... to here.
9521         * modules/isnanl-nolibm (configure.ac): ... and here.
9522
9523 2011-05-20  Bruno Haible  <bruno@clisp.org>
9524
9525         isnand*: Move AC_LIBOBJ invocations to module description.
9526         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9527         invocation from here...
9528         * modules/isnand (configure.ac): ... to here.
9529         * modules/isnand-nolibm (configure.ac): ... and here.
9530
9531 2011-05-20  Bruno Haible  <bruno@clisp.org>
9532
9533         isnanf*: Move AC_LIBOBJ invocations to module description.
9534         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9535         invocation from here...
9536         * modules/isnanf (configure.ac): ... to here.
9537         * modules/isnanf-nolibm (configure.ac): ... and here.
9538
9539 2011-05-20  Bruno Haible  <bruno@clisp.org>
9540
9541         isnan*: Separate the AC_LIBOBJ invocations.
9542         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9543         AC_LIBOBJ invocation.
9544         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9545         here.
9546         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9547         AC_LIBOBJ invocation.
9548         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9549         here.
9550         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9551         AC_LIBOBJ invocation.
9552         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9553         here.
9554         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9555
9556 2011-05-08  Bruno Haible  <bruno@clisp.org>
9557
9558         isinf: Move AC_LIBOBJ invocations to module description.
9559         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9560         * modules/isinf (configure.ac): ... to here.
9561
9562 2011-05-08  Bruno Haible  <bruno@clisp.org>
9563
9564         isfinite: Move AC_LIBOBJ invocations to module description.
9565         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9566         * modules/isfinite (configure.ac): ... to here.
9567
9568 2011-05-08  Bruno Haible  <bruno@clisp.org>
9569
9570         isblank: Move AC_LIBOBJ invocations to module description.
9571         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9572         here...
9573         * modules/isblank (configure.ac): ... to here.
9574
9575 2011-05-08  Bruno Haible  <bruno@clisp.org>
9576
9577         isapipe: Move AC_LIBOBJ invocations to module description.
9578         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9579         gl_PREREQ_ISAPIPE invocations from here...
9580         * modules/isapipe (configure.ac): ... to here.
9581         (Depends-on): Update condition.
9582
9583 2011-05-08  Bruno Haible  <bruno@clisp.org>
9584
9585         ioctl: Move AC_LIBOBJ invocations to module description.
9586         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9587         invocations from here...
9588         * modules/ioctl (configure.ac): ... to here.
9589         (Depends-on): Update condition.
9590
9591 2011-05-08  Bruno Haible  <bruno@clisp.org>
9592
9593         imaxdiv: Move AC_LIBOBJ invocations to module description.
9594         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9595         invocations from here...
9596         * modules/imaxdiv (configure.ac): ... to here.
9597
9598 2011-05-08  Bruno Haible  <bruno@clisp.org>
9599
9600         imaxabs: Move AC_LIBOBJ invocations to module description.
9601         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9602         invocations from here...
9603         * modules/imaxabs (configure.ac): ... to here.
9604
9605 2011-05-08  Bruno Haible  <bruno@clisp.org>
9606
9607         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9608         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9609         AC_LIBOBJ invocations from here...
9610         * modules/getaddrinfo (configure.ac): ... to here.
9611         (Depends-on): Add conditions.
9612
9613 2011-05-08  Bruno Haible  <bruno@clisp.org>
9614
9615         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9616         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9617         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9618         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9619         (gl_PREREQ_INET_PTON): ... from here.
9620         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9621         gl_PREREQ_INET_PTON here.
9622         (Depends-on): Update condition.
9623
9624 2011-05-08  Bruno Haible  <bruno@clisp.org>
9625
9626         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9627         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9628         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9629         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9630         (gl_PREREQ_INET_NTOP): ... from here.
9631         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9632         gl_PREREQ_INET_NTOP here.
9633         (Depends-on): Update condition.
9634
9635 2011-05-08  Bruno Haible  <bruno@clisp.org>
9636
9637         iconv_open: Move AC_LIBOBJ invocations to module description.
9638         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9639         AC_LIBOBJ invocations from here...
9640         * modules/iconv_open (configure.ac): ... to here.
9641
9642 2011-05-08  Bruno Haible  <bruno@clisp.org>
9643
9644         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9645         If module 'iconv_open' is among the main modules and module
9646         'iconv_open-utf' is among the tests dependencies, then
9647         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9648         return the special iconv_t values. Therefore iconv() and iconv_close()
9649         must support these special iconv_t values, already in lib, not only in
9650         tests.
9651         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9652         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9653         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9654         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9655         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9656         (Depends-on): Add the dependencies of iconv_open-utf.
9657         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9658         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9659         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9660
9661 2011-05-08  Bruno Haible  <bruno@clisp.org>
9662
9663         group-member: Move AC_LIBOBJ invocations to module description.
9664         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9665         gl_PREREQ_GROUP_MEMBER invocations from here...
9666         * modules/group-member (configure.ac): ... to here.
9667
9668 2011-05-08  Bruno Haible  <bruno@clisp.org>
9669
9670         grantpt: Move AC_LIBOBJ invocations to module description.
9671         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9672         invocations from here...
9673         * modules/grantpt (configure.ac): ... to here.
9674
9675 2011-05-08  Bruno Haible  <bruno@clisp.org>
9676
9677         glob: Move AC_LIBOBJ invocations to module description.
9678         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9679         from here...
9680         * modules/glob (configure.ac): ... to here.
9681
9682 2011-05-08  Bruno Haible  <bruno@clisp.org>
9683
9684         getusershell: Move AC_LIBOBJ invocations to module description.
9685         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9686         Move AC_LIBOBJ invocation from here...
9687         * modules/getusershell (configure.ac): ... to here.
9688         (Depends-on): Update condition.
9689
9690 2011-05-08  Bruno Haible  <bruno@clisp.org>
9691
9692         gettimeofday: Move AC_LIBOBJ invocations to module description.
9693         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9694         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9695         gl_PREREQ_GETTIMEOFDAY invocations from here...
9696         * modules/gettimeofday (configure.ac): ... to here.
9697
9698 2011-05-08  Bruno Haible  <bruno@clisp.org>
9699
9700         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9701         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9702         just gl_FUNC_TZSET.
9703         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9704         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9705         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9706         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9707
9708 2011-05-08  Bruno Haible  <bruno@clisp.org>
9709
9710         getsubopt: Move AC_LIBOBJ invocations to module description.
9711         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9712         gl_PREREQ_GETSUBOPT invocations from here...
9713         * modules/getsubopt (configure.ac): ... to here.
9714
9715 2011-05-08  Bruno Haible  <bruno@clisp.org>
9716
9717         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9718         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9719         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9720         * modules/getpass-gnu (configure.ac): ... to here.
9721
9722 2011-05-08  Bruno Haible  <bruno@clisp.org>
9723
9724         getpass: Move AC_LIBOBJ invocations to module description.
9725         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9726         gl_PREREQ_GETPASS invocations from here...
9727         * modules/getpass (configure.ac): ... to here.
9728
9729 2011-05-08  Bruno Haible  <bruno@clisp.org>
9730
9731         getpagesize: Move AC_LIBOBJ invocations to module description.
9732         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9733         from here...
9734         * modules/getpagesize (configure.ac): ... to here.
9735
9736 2011-05-08  Bruno Haible  <bruno@clisp.org>
9737
9738         getopt: Move AC_LIBOBJ invocations to module description.
9739         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9740         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9741         invocations from here...
9742         * modules/getopt-gnu (configure.ac): ... to here.
9743         * modules/getopt-posix (configure.ac): ... and here.
9744         (Depends-on): Update condition.
9745
9746 2011-05-08  Bruno Haible  <bruno@clisp.org>
9747
9748         getopt, argp: Respect rules for use of AC_LIBOBJ.
9749         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9750         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9751         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9752         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9753
9754 2011-05-08  Bruno Haible  <bruno@clisp.org>
9755
9756         getlogin_r: Move AC_LIBOBJ invocations to module description.
9757         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9758         gl_PREREQ_GETLOGIN_R invocations from here...
9759         * modules/getlogin_r (configure.ac): ... to here.
9760
9761 2011-05-08  Bruno Haible  <bruno@clisp.org>
9762
9763         getlogin: Move AC_LIBOBJ invocations to module description.
9764         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9765         here...
9766         * modules/getlogin (configure.ac): ... to here.
9767
9768 2011-05-08  Bruno Haible  <bruno@clisp.org>
9769
9770         getloadavg: Move AC_LIBOBJ invocations to module description.
9771         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9772         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9773         * modules/getloadavg (configure.ac): ... to here.
9774
9775 2011-05-08  Bruno Haible  <bruno@clisp.org>
9776
9777         gethrxtime: Move AC_LIBOBJ invocations to module description.
9778         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9779         LIB_GETHRXTIME from here...
9780         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9781         invocations from here...
9782         * modules/gethrxtime (configure.ac): ... to here.
9783
9784 2011-05-08  Bruno Haible  <bruno@clisp.org>
9785
9786         gethostname: Move AC_LIBOBJ invocations to module description.
9787         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9788         gl_PREREQ_GETHOSTNAME invocations from here...
9789         * modules/gethostname (configure.ac): ... to here.
9790
9791 2011-05-08  Bruno Haible  <bruno@clisp.org>
9792
9793         getgroups: Move AC_LIBOBJ invocations to module description.
9794         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9795         here...
9796         * modules/getgroups (configure.ac): ... to here.
9797
9798 2011-05-08  Bruno Haible  <bruno@clisp.org>
9799
9800         getdtablesize: Move AC_LIBOBJ invocations to module description.
9801         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9802         invocation from here...
9803         * modules/getdtablesize (configure.ac): ... to here.
9804
9805 2011-05-08  Bruno Haible  <bruno@clisp.org>
9806
9807         getdomainname: Move AC_LIBOBJ invocations to module description.
9808         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9809         gl_PREREQ_GETDOMAINNAME invocations from here...
9810         * modules/getdomainname (configure.ac): ... to here.
9811
9812 2011-05-08  Bruno Haible  <bruno@clisp.org>
9813
9814         getline: Move AC_LIBOBJ invocations to module description.
9815         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9816         invocations from here...
9817         * modules/getline (configure.ac): ... to here.
9818
9819 2011-05-08  Bruno Haible  <bruno@clisp.org>
9820
9821         getline: Simplify.
9822         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9823         It's already handled through the module dependency.
9824
9825 2011-05-08  Bruno Haible  <bruno@clisp.org>
9826
9827         getdelim: Move AC_LIBOBJ invocations to module description.
9828         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9829         and gl_PREREQ_GETDELIM invocations from here...
9830         * modules/getdelim (configure.ac): ... to here.
9831         (Depends-on): Fix condition.
9832
9833 2011-05-08  Bruno Haible  <bruno@clisp.org>
9834
9835         getcwd: Move AC_LIBOBJ invocations to module description.
9836         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9837         invocations from here...
9838         * modules/getcwd (configure.ac): ... to here.
9839
9840 2011-05-08  Bruno Haible  <bruno@clisp.org>
9841
9842         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9843         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9844         here...
9845         * modules/getcwd-lgpl (configure.ac): ... to here.
9846
9847 2011-05-07  Bruno Haible  <bruno@clisp.org>
9848
9849         crypto/gc: Move AC_LIBOBJ invocations to module description.
9850         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9851         * modules/crypto/gc (configure.ac): ... to here.
9852
9853 2011-05-07  Bruno Haible  <bruno@clisp.org>
9854
9855         fwriting: Move AC_LIBOBJ invocations to module description.
9856         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9857         here...
9858         * modules/fwriting (configure.ac): ... to here.
9859
9860 2011-05-07  Bruno Haible  <bruno@clisp.org>
9861
9862         fwritable: Move AC_LIBOBJ invocations to module description.
9863         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9864         here...
9865         * modules/fwritable (configure.ac): ... to here.
9866
9867 2011-05-07  Bruno Haible  <bruno@clisp.org>
9868
9869         futimens: Move AC_LIBOBJ invocations to module description.
9870         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9871         here...
9872         * modules/futimens (configure.ac): ... to here.
9873
9874 2011-05-07  Bruno Haible  <bruno@clisp.org>
9875
9876         ftruncate: Move AC_LIBOBJ invocations to module description.
9877         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9878         gl_PREREQ_FTRUNCATE invocations from here...
9879         * modules/ftruncate (configure.ac): ... to here.
9880
9881 2011-05-07  Bruno Haible  <bruno@clisp.org>
9882
9883         fsync: Move AC_LIBOBJ invocations to module description.
9884         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9885         invocations from here...
9886         * modules/fsync (configure.ac): ... to here.
9887
9888 2011-05-07  Bruno Haible  <bruno@clisp.org>
9889
9890         fsusage: Move AC_LIBOBJ invocations to module description.
9891         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9892         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9893         * modules/fsusage (configure.ac): ... to here.
9894
9895 2011-05-07  Bruno Haible  <bruno@clisp.org>
9896
9897         freopen: Move AC_LIBOBJ invocations to module description.
9898         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9899         invocations from here...
9900         * modules/freopen (configure.ac): ... to here.
9901
9902 2011-05-07  Bruno Haible  <bruno@clisp.org>
9903
9904         free: Move AC_LIBOBJ invocations to module description.
9905         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9906         invocations from here...
9907         * modules/free (configure.ac): ... to here.
9908
9909 2011-05-07  Bruno Haible  <bruno@clisp.org>
9910
9911         freadable: Move AC_LIBOBJ invocations to module description.
9912         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9913         here...
9914         * modules/freadable (configure.ac): ... to here.
9915
9916 2011-05-07  Bruno Haible  <bruno@clisp.org>
9917
9918         fpurge: Move AC_LIBOBJ invocations to module description.
9919         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9920         invocations from here...
9921         * modules/fpurge (configure.ac): ... to here.
9922
9923 2011-05-07  Bruno Haible  <bruno@clisp.org>
9924
9925         fpending: Move AC_LIBOBJ invocations to module description.
9926         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9927         gl_FUNC_FPENDING.
9928         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9929         invocations from here...
9930         * modules/fpending (configure.ac): ... to here.
9931
9932 2011-05-07  Bruno Haible  <bruno@clisp.org>
9933
9934         fopen: Move AC_LIBOBJ invocations to module description.
9935         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9936         invocations from here...
9937         * modules/fopen (configure.ac): ... to here.
9938
9939 2011-05-07  Bruno Haible  <bruno@clisp.org>
9940
9941         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9942         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9943         gl_FUNC_FNMATCH_POSIX.
9944         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9945         invocations from here...
9946         * modules/fnmatch (configure.ac): ... to here.
9947         * modules/fnmatch-gnu (configure.ac): ... and here.
9948
9949 2011-05-07  Bruno Haible  <bruno@clisp.org>
9950
9951         flock: Move AC_LIBOBJ invocations to module description.
9952         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9953         invocations from here...
9954         * modules/flock (configure.ac): ... to here.
9955
9956 2011-05-07  Bruno Haible  <bruno@clisp.org>
9957
9958         fileblocks: Move AC_LIBOBJ invocations to module description.
9959         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9960         gl_PREREQ_FILEBLOCKS invocations from here...
9961         * modules/fileblocks (configure.ac): ... to here.
9962
9963 2011-05-06  Bruno Haible  <bruno@clisp.org>
9964
9965         fflush: Move AC_LIBOBJ invocations to module description.
9966         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9967         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9968         invocations from here...
9969         * modules/fflush (configure.ac): ... to here.
9970
9971 2011-05-06  Bruno Haible  <bruno@clisp.org>
9972
9973         fdopendir: Move AC_LIBOBJ invocations to module description.
9974         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9975         here...
9976         * modules/fdopendir (configure.ac): ... to here.
9977         (Depends-on): Improve conditions.
9978
9979 2011-05-06  Bruno Haible  <bruno@clisp.org>
9980
9981         _Exit: Move AC_LIBOBJ invocations to module description.
9982         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9983         invocations from here...
9984         * modules/_Exit (configure.ac): ... to here.
9985
9986 2011-05-21  Bruno Haible  <bruno@clisp.org>
9987
9988         euidaccess: Respect rules for use of AC_LIBOBJ.
9989         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9991         from here...
9992         * modules/euidaccess (configure.ac): ... to here.
9993
9994 2011-05-06  Bruno Haible  <bruno@clisp.org>
9995
9996         error: Move AC_LIBOBJ invocations to module description.
9997         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9998         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9999         invocations from here...
10000         * modules/error (configure.ac): ... to here.
10001
10002 2011-05-06  Bruno Haible  <bruno@clisp.org>
10003
10004         duplocale: Move AC_LIBOBJ invocations to module description.
10005         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10006         gl_PREREQ_DUPLOCALE invocations from here...
10007         * modules/duplocale (configure.ac): ... to here.
10008
10009 2011-05-05  Bruno Haible  <bruno@clisp.org>
10010
10011         dirfd: Move AC_LIBOBJ invocations to module description.
10012         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10013         gl_FUNC_DIRFD.
10014         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10015         here...
10016         * modules/dirfd (configure.ac): ... to here.
10017         (Depends-on): Fix condition.
10018
10019 2011-05-05  Bruno Haible  <bruno@clisp.org>
10020
10021         chown: Respect rules for use of AC_LIBOBJ.
10022         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10023         * modules/chown (configure.ac): ... to here.
10024
10025 2011-05-05  Bruno Haible  <bruno@clisp.org>
10026
10027         chdir-long: Move AC_LIBOBJ invocations to module description.
10028         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10029         gl_PREREQ_CHDIR_LONG invocations from here...
10030         * modules/chdir-long (configure.ac): ... to here.
10031
10032 2011-05-05  Bruno Haible  <bruno@clisp.org>
10033
10034         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10035         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10036         from here...
10037         * modules/canonicalize-lgpl (configure.ac): ... to here.
10038
10039 2011-05-05  Bruno Haible  <bruno@clisp.org>
10040
10041         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10042         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10043         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10044         REPLACE_CALLOC.
10045         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10046         * modules/calloc-gnu (configure.ac): Likewise.
10047
10048 2011-05-05  Bruno Haible  <bruno@clisp.org>
10049
10050         btowc: Move AC_LIBOBJ invocations to module description.
10051         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10052         invocations from here...
10053         * modules/btowc (configure.ac): ... to here.
10054
10055 2011-05-21  Bruno Haible  <bruno@clisp.org>
10056
10057         atexit: Move AC_LIBOBJ invocations to module description.
10058         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10059         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10060         here...
10061         * modules/atexit (configure.ac): ... to here.
10062
10063 2011-05-05  Bruno Haible  <bruno@clisp.org>
10064
10065         atoll: Move AC_LIBOBJ invocations to module description.
10066         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10067         invocations from here...
10068         * modules/atoll (configure.ac): ... to here.
10069
10070 2011-05-05  Bruno Haible  <bruno@clisp.org>
10071
10072         argz: Move AC_LIBOBJ invocations to module description.
10073         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10074         * modules/argz (configure.ac): ... to here.
10075
10076 2011-05-05  Bruno Haible  <bruno@clisp.org>
10077
10078         alphasort: Move AC_LIBOBJ invocations to module description.
10079         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10080         gl_PREREQ_ALPHASORT invocations from here...
10081         * modules/alphasort (configure.ac): ... to here.
10082
10083 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10084
10085         verify: new macro verify_expr; verify_true deprecated
10086         * NEWS: Mention this.
10087         * doc/verify.texi (Compile-time Assertions): Document this.
10088         * lib/verify.h (verify_true): Deprecate.
10089         (verify_expr): New macro.
10090         * tests/test-verify.c (function): Test verify_expr.
10091
10092 2011-06-14  Jim Meyering  <meyering@redhat.com>
10093
10094         init.sh: give more portable redirection-related advice in a comment
10095         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10096         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10097         for lots of discussion.  Stefano Lattarini suggested the solution
10098         of putting "9>&2" after the command.  Reported by Bruno Haible.
10099
10100 2011-06-13  Bruno Haible  <bruno@clisp.org>
10101
10102         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10103         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10104         'none'.
10105
10106 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10107
10108         ftoastr: use strtof only if HAVE_STRTOF
10109         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10111         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10112         * modules/ftoastr (configure.ac): Check for strtof.
10113
10114 2011-06-13  Bruno Haible  <bruno@clisp.org>
10115
10116         gnulib-tool: Addendum to 2011-06-08 commit.
10117         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10118         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10119
10120 2011-06-13  Bruno Haible  <bruno@clisp.org>
10121
10122         fseeko: Provide a non-inline replacement of fseek().
10123         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10124         * modules/fseeko (Depends-on): Add fseek.
10125         * modules/fseek (License): Change to LGPLv2+.
10126
10127 2011-06-13  Bruno Haible  <bruno@clisp.org>
10128
10129         ftello: Provide a non-inline replacement of ftell().
10130         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10131         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10132         not have ftello() (such as on mingw).
10133         * modules/ftello (Depends-on): Add ftell.
10134         * modules/ftell (License): Change to LGPLv2+.
10135
10136 2011-05-07  Bruno Haible  <bruno@clisp.org>
10137
10138         ftell: Move AC_LIBOBJ invocations to module description.
10139         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10140         * modules/ftell (configure.ac): ... to here.
10141
10142 2011-05-07  Bruno Haible  <bruno@clisp.org>
10143
10144         ftello: Respect rules for use of AC_LIBOBJ.
10145         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10146         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10147         here...
10148         * modules/ftello (configure.ac): ... to here.
10149
10150 2011-05-07  Bruno Haible  <bruno@clisp.org>
10151
10152         fseeko: Simplify.
10153         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10154         (gl_FUNC_FSEEKO): Inline it here.
10155
10156 2011-05-07  Bruno Haible  <bruno@clisp.org>
10157
10158         fseek: Move AC_LIBOBJ invocations to module description.
10159         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10160         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10161         * modules/fseek (configure.ac): ... to here.
10162
10163 2011-05-07  Bruno Haible  <bruno@clisp.org>
10164
10165         fseek: Respect rules for use of AC_LIBOBJ.
10166         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10167         here...
10168         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10169
10170 2011-05-07  Bruno Haible  <bruno@clisp.org>
10171
10172         fseeko: Respect rules for use of AC_LIBOBJ.
10173         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10174         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10175         here...
10176         * modules/fseeko (configure.ac): ... to here.
10177
10178 2011-06-13  Bruno Haible  <bruno@clisp.org>
10179
10180         gnulib-tool: Allow comments in the 'Depends-on' section.
10181         * doc/gnulib.texi (Module description): Mention comment syntax in the
10182         Depends-on section.
10183         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10184
10185 2011-06-13  Bruno Haible  <bruno@clisp.org>
10186
10187         file-set.h: guard __attibute__ use, now that it's not always defined
10188         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10189         versions that support it.  This fixes a coreutils build failure with
10190         the vendor cc on HP-UX 11.31.
10191
10192 2011-06-12  Bruno Haible  <bruno@clisp.org>
10193
10194         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10195         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10196         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10197         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10198         (acl, aclsort): New declarations.
10199         (aclv_nontrivial): New declaration.
10200         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10201         (file_has_acl): Read also the second kind of HP-UX ACLs.
10202         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10203         kind of HP-UX ACLs if the first kind fails.
10204         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10205         second kind of HP-UX ACLs.
10206         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10207         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10208         agree.
10209         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10210         hpuxjfs.
10211         Handle hpuxjfs.
10212         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10213         hpuxjfs.
10214         Handle hpuxjfs.
10215         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10216         (func_test_same_acls): Use both lsacl and getacl.
10217         Handle hpuxjfs.
10218         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10219         (func_test_same_acls): Use both lsacl and getacl.
10220         Handle hpuxjfs.
10221
10222 2011-06-12  Bruno Haible  <bruno@clisp.org>
10223
10224         acl: Complete the 2010-08-10 fix.
10225         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10226         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10227         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10228         explicitly.
10229         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10230         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10231
10232 2011-06-12  Bruno Haible  <bruno@clisp.org>
10233
10234         spawn-pipe tests: Comments.
10235         * tests/test-spawn-pipe-child.c (main): Update comment.
10236         Reported by James Youngman <jay@gnu.org>.
10237
10238 2011-06-11  James Youngman  <jay@gnu.org>
10239
10240         New module 'stat-size'.
10241         * modules/stat-size: New module.  Provides macros for accessing
10242         file size information in instances of struct stat.  Depends on the
10243         fileblocks module because it calls st_blocks.
10244         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10245         * doc/gnulib.texi: Include stat-size.texi.
10246         * doc/stat-size.texi: Documentation for this module.
10247         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10248         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10249         AC_STRUCT_ST_BLOCKS.
10250
10251 2011-06-09  Bruno Haible  <bruno@clisp.org>
10252
10253         thread: Support pthreads-win32.
10254         * lib/glthread/thread.h (gl_thread_self): Define differently on
10255         pthreads-win32.
10256         (gl_null_thread): New declaration.
10257         (gl_thread_self_pointer): New macro.
10258         * lib/glthread/thread.c (gl_null_thread): New constant.
10259         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10260         gl_thread_self.
10261         * tests/test-tls.c: Likewise.
10262         Suggested by Paul Eggert. Reported by Eric Blake.
10263
10264 2011-06-09  Bruno Haible  <bruno@clisp.org>
10265
10266         thread: Fix confusion between NULL and 0.
10267         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10268         Reported by Paul Eggert.
10269
10270 2011-06-09  Bruno Haible  <bruno@clisp.org>
10271
10272         spawn-pipe tests: Avoid test failure on HP-UX 11.
10273         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10274         is closed.
10275
10276 2011-06-09  Bruno Haible  <bruno@clisp.org>
10277
10278         acl tests: Fix compilation error on HP-UX 11.
10279         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10280
10281 2011-06-09  Bruno Haible  <bruno@clisp.org>
10282
10283         rmdir: Avoid test failure on HP-UX 10.20.
10284         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10285         EEXIST.
10286
10287 2011-06-08  Eric Blake  <eblake@redhat.com>
10288
10289         perror: fix test on mingw
10290         * modules/perror-tests (Depends-on): Add dup2.
10291
10292         strerror_r-posix: fix on MacOS
10293         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10294         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10295         logic bug.
10296         * lib/strerror_r.c (strerror_r): Fix the bug.
10297         * lib/strerror.c (strerror): Likewise.
10298         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10299         problem.
10300         * doc/posix-functions/strerror.texi (strerror): Likewise.
10301         * doc/posix-functions/perror.texi (perror): Likewise.
10302         * tests/test-strerror.c (main): Enhance test.
10303         * tests/test-strerror_r.c (main): Likewise.
10304
10305 2011-06-08  Bruno Haible  <bruno@clisp.org>
10306
10307         gnulib-tool: Better isolation between different gnulib-tool invocations.
10308         * gnulib-tool: New option --witness-c-macro.
10309         (witness_c_macro): New variable.
10310         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10311         AM_CPPFLAGS define it as a C macro.
10312         (func_emit_tests_Makefile_am): Likewise.
10313         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10314         read it from there.
10315         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10316         m4_define, not AC_DEFUN.
10317         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10318         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10319         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10320         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10321         s|...|...|, to substitute the values of the GNULIB_* module indicator
10322         variables.
10323         * modules/dirent (Makefile.am): Likewise.
10324         * modules/fcntl-h (Makefile.am): Likewise.
10325         * modules/iconv-h (Makefile.am): Likewise.
10326         * modules/langinfo (Makefile.am): Likewise.
10327         * modules/locale (Makefile.am): Likewise.
10328         * modules/math (Makefile.am): Likewise.
10329         * modules/netdb (Makefile.am): Likewise.
10330         * modules/poll-h (Makefile.am): Likewise.
10331         * modules/pty (Makefile.am): Likewise.
10332         * modules/search (Makefile.am): Likewise.
10333         * modules/signal (Makefile.am): Likewise.
10334         * modules/spawn (Makefile.am): Likewise.
10335         * modules/stdio (Makefile.am): Likewise.
10336         * modules/stdlib (Makefile.am): Likewise.
10337         * modules/string (Makefile.am): Likewise.
10338         * modules/sys_ioctl (Makefile.am): Likewise.
10339         * modules/sys_select (Makefile.am): Likewise.
10340         * modules/sys_socket (Makefile.am): Likewise.
10341         * modules/sys_stat (Makefile.am): Likewise.
10342         * modules/sys_times (Makefile.am): Likewise.
10343         * modules/sys_utsname (Makefile.am): Likewise.
10344         * modules/sys_wait (Makefile.am): Likewise.
10345         * modules/termios (Makefile.am): Likewise.
10346         * modules/time (Makefile.am): Likewise.
10347         * modules/unistd (Makefile.am): Likewise.
10348         * modules/wchar (Makefile.am): Likewise.
10349
10350 2011-06-08  Eric Blake  <eblake@redhat.com>
10351
10352         strerror: simplify replacement
10353         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10354         * modules/strerror (configure.ac): No prereqs needed here...
10355         * modules/strerror-override (configure.ac): ...but this needs it.
10356         (Files): Add file for needed prereq macro.
10357
10358 2011-06-08  Bruno Haible  <bruno@clisp.org>
10359
10360         strerror_r-posix: Tweaks.
10361         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10362         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10363         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10364         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10365         (gl_FUNC_STRERROR_R): ... to here.
10366         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10367
10368 2011-06-07  Eric Blake  <eblake@redhat.com>
10369
10370         perror: document fixed bugs
10371         * doc/posix-functions/perror.texi (perror): Document recent
10372         patches.
10373
10374 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10375
10376         stat-time: get_stat_birthtime failure is better-defined
10377         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10378         return a timestamp whose tv_sec and tv_nsec values are both -1.
10379         Previously, the spec said only that the tv_nsec value was negative.
10380         This upward-compatible change simplifies GNU tar a bit.
10381
10382 2011-06-07  Eric Blake  <eblake@redhat.com>
10383
10384         strerror_r-posix: work around cygwin 1.7.9
10385         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10386         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10387         bug without replacing strerror_r.
10388         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10389         strerror_r is buggy, but without requiring strerror_r compilation.
10390         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10391
10392         test-perror: relax test to ignore cygwin bug
10393         * tests/test-perror2.c (main): Relax test on requiring detection
10394         of stream errors, and use unbuffered stream.
10395         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10396         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10397         * doc/posix-functions/fputc.texi (fputc): Likewise.
10398         * doc/posix-functions/fputs.texi (fputs): Likewise.
10399         * doc/posix-functions/fputws.texi (fputws): Likewise.
10400         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10401         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10402         * doc/posix-functions/getopt.texi (getopt): Likewise.
10403         * doc/posix-functions/perror.texi (perror): Likewise.
10404         * doc/posix-functions/printf.texi (printf): Likewise.
10405         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10406         * doc/posix-functions/psignal.texi (psignal): Likewise.
10407         * doc/posix-functions/putc.texi (putc): Likewise.
10408         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10409         Likewise.
10410         * doc/posix-functions/putchar.texi (putchar): Likewise.
10411         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10412         Likewise.
10413         * doc/posix-functions/puts.texi (puts): Likewise.
10414         * doc/posix-functions/putwc.texi (putwc): Likewise.
10415         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10416         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10417         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10418         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10419         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10420         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10421         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10422         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10423
10424 2011-05-22  Bruno Haible  <bruno@clisp.org>
10425
10426         strerror: Move AC_LIBOBJ invocations to module description.
10427         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10428         gl_PREREQ_STRERROR invocations from here...
10429         * modules/strerror (configure.ac): ... to here.
10430
10431 2011-05-21  Bruno Haible  <bruno@clisp.org>
10432
10433         perror: Use common idiom.
10434         * modules/perror (configure.ac): Reorder statements.
10435
10436 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10437
10438         tests: fix usage message in 'mktempd_'
10439         * tests/init.sh (mktempd_): In the usage message, use literal
10440         'mktempd_', not '$ME' (which is even undefined), as the name of
10441         the subroutine.
10442
10443 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10444
10445         tests init: new function 'fatal_', for hard errors
10446         Before this patch, the only way offered by tests/init.sh to
10447         properly signal a hard error was the `framework_failure_'
10448         function.  But the error message issued by that function,
10449         as its name would suggest, refers to a set-up failure in the
10450         testsuite, while hard errors can obviously also be due to
10451         other reasons.  The best way to fix this inconsistency is to
10452         introduce a new function with a more general error message.
10453         * tests/init.sh (fatal_): New function.
10454
10455 2011-06-06  Eric Blake  <eblake@redhat.com>
10456
10457         canonicalize-lgpl: use common idiom
10458         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10459         over newer POSIX -Rf.
10460         Reported by Bruno Haible.
10461
10462         canonicalize-lgpl: work around AIX realpath bug
10463         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10464         * doc/posix-functions/realpath.texi (realpath): Document it.
10465         Reported by Bruno Haible.
10466
10467         strerror: work around FreeBSD bug
10468         * lib/strerror.c (strerror): Special case 0.
10469         Reported by Bruno Haible.
10470
10471         strerror-override: avoid bloating errno module
10472         * modules/errno (Files, configure.ac): Move replacement strings...
10473         * modules/strerror-override: ...to new module.
10474         * modules/strerror (Depends-on): Add strerror-override.
10475         * modules/strerror_r-posix (Depends-on): Likewise.
10476         * MODULES.html.sh: Document new module.
10477         Reported by Bruno Haible.
10478
10479 2011-06-06  Bruno Haible  <bruno@clisp.org>
10480
10481         spawn-pipe tests: Rename program.
10482         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10483         * tests/test-spawn-pipe-child.c: Update comment.
10484         * tests/test-spawn-pipe.sh: Update.
10485         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10486
10487         spawn-pipe tests: Link the child program only against libc.
10488         * tests/test-spawn-pipe-child.c: New file, extracted from
10489         tests/test-spawn-pipe.c.
10490         (main): Expect only one argument.
10491         (is_open): New function, copied from tests/test-pipe.c.
10492         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10493         (child_main): Remove function.
10494         (test_pipe): Pass only one argument to the child program.
10495         (main): Remove child process code. Expect the child program's name as
10496         first argument.
10497         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10498         argument.
10499         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10500         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10501         test-spawn-pipe-child against no libraries.
10502
10503 2011-06-06  Bruno Haible  <bruno@clisp.org>
10504
10505         careadlinkat: Avoid mismatch between ssize_t and int.
10506         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10507         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10508
10509 2011-06-06  Jim Meyering  <meyering@redhat.com>
10510
10511         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10512         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10513         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10514
10515 2011-06-05  Bruno Haible  <bruno@clisp.org>
10516
10517         ansi-c++-opt: Interoperability with libtool.
10518         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10519         set the variable to "no", not to ":".
10520         * NEWS: Mention the change.
10521
10522 2011-06-05  Bruno Haible  <bruno@clisp.org>
10523
10524         acl: Fix test failure on AIX 7.
10525         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10526         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10527
10528 2011-06-05  Bruno Haible  <bruno@clisp.org>
10529
10530         pipe-filter-ii: Fix test failure on AIX and IRIX.
10531         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10532         with EAGAIN, retry with a smaller buffer size.
10533
10534 2011-06-05  Bruno Haible  <bruno@clisp.org>
10535
10536         localename: Fix link dependencies.
10537         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10538         * modules/localename-tests (Makefile.am): Link test-localename with
10539         $(LIBTHREAD).
10540
10541 2011-06-05  Bruno Haible  <bruno@clisp.org>
10542
10543         error: Avoid gcc warning.
10544         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10545
10546 2011-06-05  Bruno Haible  <bruno@clisp.org>
10547
10548         unsetenv: Avoid gcc warning.
10549         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10550
10551 2011-06-05  Bruno Haible  <bruno@clisp.org>
10552
10553         setenv: Avoid gcc warning.
10554         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10555
10556 2011-06-05  Bruno Haible  <bruno@clisp.org>
10557
10558         sys_select: Ensure memset is declared also on AIX 7.
10559         * lib/sys_select.in.h: Include <string.h> also on AIX.
10560         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10561         self-contained also on AIX 7.1.
10562
10563 2011-06-04  Jim Meyering  <meyering@redhat.com>
10564
10565         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10566         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10567         function name, "error".
10568         (_gl_translatable_diag_func_re): New configurable variable.
10569
10570 2011-06-04  Bruno Haible  <bruno@clisp.org>
10571
10572         getopt: Avoid gcc warning.
10573         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10574
10575 2011-06-04  Bruno Haible  <bruno@clisp.org>
10576
10577         strerror_r: Fix comments.
10578         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10579         commit.
10580
10581 2011-06-04  Bruno Haible  <bruno@clisp.org>
10582
10583         perror: Fix compilation error.
10584         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10585         Undefine fprintf, not sprintf.
10586         * modules/perror (Depends-on): Remove intprops, verify.
10587
10588 2011-06-04  Bruno Haible  <bruno@clisp.org>
10589
10590         setlocale: Enable replacement on Cygwin 1.5.
10591         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10592         Cygwin 1.5.x.
10593         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10594         LC_CTYPE category also exists on Cygwin 1.5.x.
10595
10596 2011-06-04  Bruno Haible  <bruno@clisp.org>
10597
10598         strerror-override: Don't disable symbol renamings.
10599         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10600         * lib/strerror-override.c: Include config.h.
10601         (strerror_override): Don't undefine.
10602
10603 2011-06-03  Bruno Haible  <bruno@clisp.org>
10604
10605         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10606         * lib/localename.h: Update copyright header.
10607         * lib/localename.c: Likewise.
10608         * lib/relocatable.h: Likewise.
10609         * lib/relocatable.c: Likewise.
10610
10611 2011-06-02  Bruno Haible  <bruno@clisp.org>
10612
10613         doc: Fix a module name.
10614         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10615
10616 2011-06-02  Bruno Haible  <bruno@clisp.org>
10617
10618         pipe2: Remove dependency on 'nonblocking' module.
10619         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10620         O_NONBLOCK is defined by gnulib.
10621         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10622         is zero.
10623         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10624         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10625         defined by gnulib.
10626         (get_nonblocking_flag): New function.
10627         (main): Test O_NONBLOCK flag only if it is nonzero.
10628         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10629
10630 2011-06-03  Jim Meyering  <meyering@redhat.com>
10631
10632         maint: three new prohibit-header-without-use rules
10633         Prohibit use of cloexec.h, posixver.h, same.h without use.
10634         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10635         (sc_prohibit_posixver_without_use): Likewise.
10636         (sc_prohibit_same_without_use): Likewise.
10637
10638 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10639
10640         allocator: 'die' routine is now given requested size
10641         * lib/allocator.h (struct allocator.die): New size arg.
10642         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10643         If the actual problem is an ssize_t limitation, not a size_t or
10644         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10645
10646 2011-06-01  Eric Blake  <eblake@redhat.com>
10647
10648         strerror: drop strerror_r dependency
10649         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10650         * lib/strerror-override.c (strerror_override): ...to new file.
10651         * lib/strerror-override.h: Add prototype.
10652         * lib/strerror-impl.h: Delete.
10653         * lib/strerror.c (strerror): New implementation.
10654         * modules/errno (Files): Add new files.
10655         (configure.ac): Compile new file as appropriate.
10656         * modules/strerror (Files): Drop unused file.
10657         (Depends-on): Drop strerror_r-posix.
10658         * MODULES.html.sh: Document strerror_r-posix.
10659         Requested by Sam Steingold.
10660
10661         perror: call strerror_r directly
10662         * modules/perror (Files): Drop strerror-impl.h.
10663         * lib/perror.c (perror): Use our own stack buffer, rather than
10664         calling a wrapper that uses static storage.
10665         * doc/posix-functions/perror.texi (perror): Document a limitation
10666         of our replacement.
10667
10668         strerror_r: fix includes for FreeBSD
10669         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10670         since we use abort on some platforms.
10671         Reported by Matthias Bolte.
10672
10673 2011-05-31  Bruno Haible  <bruno@clisp.org>
10674
10675         Fix link errors in tests: openat-die uses gettext-h.
10676         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10677         against $(LIBINTL).
10678         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10679         against $(LIBINTL).
10680         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10681         $(LIBINTL).
10682         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10683         against $(LIBINTL).
10684         * modules/linkat-tests (Makefile.am): Link test-linkat against
10685         $(LIBINTL).
10686         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10687         $(LIBINTL).
10688         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10689         against $(LIBINTL).
10690         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10691         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10692         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10693         $(LIBINTL).
10694         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10695         $(LIBINTL).
10696         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10697         $(LIBINTL).
10698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10699
10700 2011-05-31  Bruno Haible  <bruno@clisp.org>
10701
10702         Fix link errors in tests: wait-process uses gettext-h.
10703         * modules/nonblocking-pipe-tests (Makefile.am): Set
10704         test_nonblocking_pipe_main_LDADD.
10705         * modules/nonblocking-socket-tests (Makefile.am): Link
10706         test-nonblocking-socket-main against $(LIBINTL).
10707         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10708
10709 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10710
10711         assert-h: work around 'verify' incompatibility
10712         * lib/verify.h: Use @...@ directives, not ifdef.
10713         * modules/assert-h (assert.h): Implement the directives.
10714         (assert.h): Substitute the symbol-prefix more consistently.
10715
10716 2011-05-29  Jim Meyering  <meyering@redhat.com>
10717
10718         trim: remove three superfluous assignments
10719         * lib/trim.c (trim2): Remove three superfluous assignments
10720         and correct brace positioning.
10721
10722 2011-05-29  Bruno Haible  <bruno@clisp.org>
10723
10724         wctype-h: Avoid namespace pollution on Solaris 2.6.
10725         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10726         identifiers.
10727         * doc/posix-headers/wctype.texi: Mention the problem.
10728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10729
10730 2011-05-28  Jim Meyering  <meyering@redhat.com>
10731
10732         parse-datetime.y: accommodate -Wstrict-overflow
10733         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10734         placate -Wstrict-overflow.
10735
10736         trim: avoid a warning from -O2 -Wstrict-overflow
10737         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10738
10739 2011-05-29  Bruno Haible  <bruno@clisp.org>
10740
10741         gnulib-tool: Fix bug in yesterday's commit.
10742         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10743         twice.
10744
10745 2011-05-29  Bruno Haible  <bruno@clisp.org>
10746
10747         Allow multiple gnulib generated include files to be combined.
10748         * gnulib-tool (func_compute_include_guard_prefix): New function.
10749         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10750         ${gl_include_guard_prefix} references.
10751         (func_import, func_create_testdir): Invoke
10752         func_compute_include_guard_prefix.
10753         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10754         * lib/ctype.in.h: Likewise.
10755         * lib/dirent.in.h: Likewise.
10756         * lib/errno.in.h: Likewise.
10757         * lib/fcntl.in.h: Likewise.
10758         * lib/float.in.h: Likewise.
10759         * lib/getopt.in.h: Likewise.
10760         * lib/iconv.in.h: Likewise.
10761         * lib/langinfo.in.h: Likewise.
10762         * lib/locale.in.h: Likewise.
10763         * lib/math.in.h: Likewise.
10764         * lib/netdb.in.h: Likewise.
10765         * lib/netinet_in.in.h: Likewise.
10766         * lib/poll.in.h: Likewise.
10767         * lib/pthread.in.h: Likewise.
10768         * lib/pty.in.h: Likewise.
10769         * lib/sched.in.h: Likewise.
10770         * lib/se-selinux.in.h: Likewise.
10771         * lib/search.in.h: Likewise.
10772         * lib/signal.in.h: Likewise.
10773         * lib/spawn.in.h: Likewise.
10774         * lib/stdarg.in.h: Likewise.
10775         * lib/stddef.in.h: Likewise.
10776         * lib/stdint.in.h: Likewise.
10777         * lib/stdio.in.h: Likewise.
10778         * lib/stdlib.in.h: Likewise.
10779         * lib/string.in.h: Likewise.
10780         * lib/strings.in.h: Likewise.
10781         * lib/sys_file.in.h: Likewise.
10782         * lib/sys_ioctl.in.h: Likewise.
10783         * lib/sys_select.in.h: Likewise.
10784         * lib/sys_socket.in.h: Likewise.
10785         * lib/sys_stat.in.h: Likewise.
10786         * lib/sys_time.in.h: Likewise.
10787         * lib/sys_times.in.h: Likewise.
10788         * lib/sys_uio.in.h: Likewise.
10789         * lib/sys_utsname.in.h: Likewise.
10790         * lib/sys_wait.in.h: Likewise.
10791         * lib/sysexits.in.h: Likewise.
10792         * lib/termios.in.h: Likewise.
10793         * lib/time.in.h: Likewise.
10794         * lib/unistd.in.h: Likewise.
10795         * lib/wchar.in.h: Likewise.
10796         * lib/wctype.in.h: Likewise.
10797         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10798         * modules/ctype (Makefile.am): Likewise.
10799         * modules/dirent (Makefile.am): Likewise.
10800         * modules/errno (Makefile.am): Likewise.
10801         * modules/fcntl-h (Makefile.am): Likewise.
10802         * modules/float (Makefile.am): Likewise.
10803         * modules/getopt-posix (Makefile.am): Likewise.
10804         * modules/iconv-h (Makefile.am): Likewise.
10805         * modules/langinfo (Makefile.am): Likewise.
10806         * modules/locale (Makefile.am): Likewise.
10807         * modules/math (Makefile.am): Likewise.
10808         * modules/netdb (Makefile.am): Likewise.
10809         * modules/netinet_in (Makefile.am): Likewise.
10810         * modules/poll-h (Makefile.am): Likewise.
10811         * modules/pthread (Makefile.am): Likewise.
10812         * modules/pty (Makefile.am): Likewise.
10813         * modules/sched (Makefile.am): Likewise.
10814         * modules/search (Makefile.am): Likewise.
10815         * modules/selinux-h (Makefile.am): Likewise.
10816         * modules/signal (Makefile.am): Likewise.
10817         * modules/spawn (Makefile.am): Likewise.
10818         * modules/stdarg (Makefile.am): Likewise.
10819         * modules/stddef (Makefile.am): Likewise.
10820         * modules/stdint (Makefile.am): Likewise.
10821         * modules/stdio (Makefile.am): Likewise.
10822         * modules/stdlib (Makefile.am): Likewise.
10823         * modules/string (Makefile.am): Likewise.
10824         * modules/strings (Makefile.am): Likewise.
10825         * modules/sys_file (Makefile.am): Likewise.
10826         * modules/sys_ioctl (Makefile.am): Likewise.
10827         * modules/sys_select (Makefile.am): Likewise.
10828         * modules/sys_socket (Makefile.am): Likewise.
10829         * modules/sys_stat (Makefile.am): Likewise.
10830         * modules/sys_time (Makefile.am): Likewise.
10831         * modules/sys_times (Makefile.am): Likewise.
10832         * modules/sys_uio (Makefile.am): Likewise.
10833         * modules/sys_utsname (Makefile.am): Likewise.
10834         * modules/sys_wait (Makefile.am): Likewise.
10835         * modules/sysexits (Makefile.am): Likewise.
10836         * modules/termios (Makefile.am): Likewise.
10837         * modules/time (Makefile.am): Likewise.
10838         * modules/unistd (Makefile.am): Likewise.
10839         * modules/wchar (Makefile.am): Likewise.
10840         * modules/wctype-h (Makefile.am): Likewise.
10841         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10842
10843 2011-05-29  Bruno Haible  <bruno@clisp.org>
10844
10845         assert-h: Allow multiple gnulib generated replacements to coexist.
10846         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10847
10848 2011-05-29  Bruno Haible  <bruno@clisp.org>
10849
10850         argp: Allow coexistence with strerror_r-posix module.
10851         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10852         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10853         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10854         not the glibc signature.
10855
10856 2011-05-28  Bruno Haible  <bruno@clisp.org>
10857
10858         gnulib-tool: Alternative structure of testdirs, similar to --import.
10859         * gnulib-tool: New option --single-configure.
10860         (func_usage): Document it.
10861         (single_configure): New variable.
10862         (func_modules_transitive_closure_separately,
10863         func_modules_transitive_closure_separately,
10864         func_determine_use_libtests, func_modules_add_dummy_separately,
10865         func_modules_to_filelist_separately): New functions, extracted from
10866         func_import.
10867         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10868         (func_import): Use the new functions.
10869         (func_create_testdir): Set final_modules. Handle $single_configure =
10870         true case.
10871
10872 2011-05-28  Bruno Haible  <bruno@clisp.org>
10873
10874         getloadavg: Remove an unreliable safety check.
10875         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10876         getloadavg.c is in place.
10877         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10878         Reported by Sam Steingold <sds@gnu.org>.
10879
10880 2011-05-28  Bruno Haible  <bruno@clisp.org>
10881
10882         doc: Cleanup yet another file produced by texinfo.tex.
10883         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10884
10885 2011-05-28  Bruno Haible  <bruno@clisp.org>
10886
10887         Finish the conditional dependencies mechanism.
10888         * gnulib-tool: New option --no-conditional-dependencies.
10889         (func_usage): Document it. Don't mark --conditional-dependencies as
10890         experimental.
10891         (cond_dependencies): The possible values can now be true, false, empty.
10892         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10893         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10894         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10895
10896 2011-05-28  Bruno Haible  <bruno@clisp.org>
10897
10898         doc: Use a recent texinfo.tex.
10899         * doc/Makefile (tex_opts): New variable.
10900         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10901
10902 2011-05-28  Jim Meyering  <meyering@redhat.com>
10903
10904         intprops.h: adjust comment to match code change
10905         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10906         only once, it *may* have side effects.  Also fix an unrelated typo.
10907         (_GL_INT_SIGNED): Likewise.
10908
10909 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10910
10911         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10912
10913 2011-05-26  Bruno Haible  <bruno@clisp.org>
10914
10915         mbsrchr: Avoid collision with system function on Interix.
10916         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10917         Reported by Markus Duft <mduft@gentoo.org>.
10918
10919 2011-05-15  James Youngman  <jay@gnu.org>
10920
10921         getopt: for ambiguous options, enumerate the possibilities.
10922         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10923         the ambiguous options when an ambiguous prefix is given. This was
10924         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10925         glibc change was
10926         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10927
10928 2011-05-25  Eric Blake  <eblake@redhat.com>
10929
10930         getcwd: work around mingw bug
10931         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10932         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10933         Reported by Matthias Bolte.
10934
10935 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10936
10937         test-intprops: disable -Wtype-limits diagnostics
10938         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10939         diagnostics.  Otherwise, the integer overflow macros generate many
10940         diagnostics.  Reported by Jim Meyering in
10941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10942
10943         intprops: shorten, to pacify gcc -Woverlength-strings
10944         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10945         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10946         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10947         likely to run afoul of C compiler limits for string constant lengths.
10948         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10949
10950 2011-05-24  Eric Blake  <eblake@redhat.com>
10951
10952         docs: document recently fixed glibc printf bug
10953         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10954         * doc/posix-functions/printf.texi (printf): Likewise.
10955         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10956         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10957
10958         closein-tests: convert to init.sh
10959         * modules/closein-tests (Files): Add init.sh
10960         * tests/test-closein.sh Use it.
10961
10962         yesno-tests: convert to init.sh
10963         * modules/yesno-tests (Files): Add init.sh.
10964         * tests/test-yesno.sh: Use it.
10965
10966         atexit-tests: ensure reliable exit status
10967         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10968         Reported by Bruno Haible.
10969
10970 2011-05-24  Bruno Haible  <bruno@clisp.org>
10971
10972         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10973         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10974         gl_PREREQ_STRERROR_R invocations from here...
10975         * modules/strerror_r-posix (configure.ac): ... to here.
10976
10977 2011-05-24  Eric Blake  <eblake@redhat.com>
10978
10979         strerror_r: fix missing header
10980         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10981
10982         strerror_r: fix AIX test failures
10983         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10984         ERANGE failure.
10985
10986         strerror_r: fix Solaris test failures
10987         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10988         failures.
10989         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10990
10991         strerror_r: enforce POSIX recommendations
10992         * lib/strerror_r.c (safe_copy): New helper method.
10993         (strerror_r): Guarantee a non-empty string.
10994         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10995         recent POSIX rulings and to match our strerror guarantees.
10996         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10997
10998 2011-05-24  Jim Meyering  <meyering@redhat.com>
10999
11000         test-perror2.c: avoid warning about unused variable
11001         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11002
11003 2011-05-24  Eric Blake  <eblake@redhat.com>
11004
11005         perror: avoid spurious test failure on HP-UX
11006         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11007
11008         tests: fix logic bug in init.sh
11009         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11010         shell.
11011
11012 2011-05-24  Jim Meyering  <meyering@redhat.com>
11013
11014         utimensat: do not reference an out-of-scope buffer
11015         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11016         declared in an inner scope, yet "times" would be dereferenced outside
11017         the scope in which "ts" was valid.
11018         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11019         of ts[2] "out/up", so that the use of aliased "times" (via
11020         "times = ts;") does not end up referencing an out-of-scope "ts"
11021
11022         opendir-safer.c: don't clobber errno; don't close negative FD
11023         * lib/opendir-safer.c (opendir_safer):
11024         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11025         file descriptor, and more importantly, don't clobber the
11026         offending errno value with EINVAL.  Before, upon failure
11027         of dup_safer, we would pass the negative file descriptor to
11028         fdopendir, which would clobber errno.
11029
11030 2011-05-23  Bruno Haible  <bruno@clisp.org>
11031
11032         idcache: Fix module description.
11033         * modules/idcache (Include): Set to "idcache.h".
11034
11035 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11036
11037         gnulib-tool: fix portability problem with MacOS sed
11038         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11039         before the "}".  Problem reported by Leo in
11040         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11041         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11042         sed_extract_condition1, sed_extract_condition2.
11043
11044 2011-05-23  Bruno Haible  <bruno@clisp.org>
11045
11046         hash: Simplify autoconf macro.
11047         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11048
11049 2011-05-23  Bruno Haible  <bruno@clisp.org>
11050
11051         getugroups: Fix module description.
11052         * modules/getugroups (Include): Set to "getugroups.h".
11053
11054 2011-05-23  Bruno Haible  <bruno@clisp.org>
11055
11056         linkat: Simplify autoconf macro.
11057         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11058
11059 2011-05-23  Bruno Haible  <bruno@clisp.org>
11060             Eric Blake  <eblake@redhat.com>
11061
11062         linkat, renameat: Update dependencies.
11063         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11064         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11065         symlinkat.
11066
11067 2011-05-23  Jim Meyering  <meyering@redhat.com>
11068
11069         maint.mk: more tight_scope improvements
11070         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11071         (_gl_TS_headers): Define only in if-0'd block.
11072         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11073         sometimes we must *not* use it.  Adjust uses accordingly.
11074         (sc_tight_scope): Use much simpler grep-based test to determine
11075         whether we skip this rule.
11076
11077         maint.mk: generalize/improve the tight-scope rule
11078         * top/maint.mk: Emit a warning when the test is skipped.
11079         (_gl_TS_dir): Add $(srcdir)/ prefix.
11080         (_gl_TS_function_match): Simplify, rather than trying
11081         to enumerate common types.  Otherwise, it would fail to match an
11082         "extern unsigned char const *" declaration in idutils.
11083         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11084         a way to support use of that type of macro.
11085         (_gl_TS_var_match): Simplify regexp.
11086         (_gl_TS_obj_files): New configurable variable.
11087         (_gl_TS_headers): Likewise.
11088
11089 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11090
11091         verify: fix bug when gnulib <assert.h> is also included
11092         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11093         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11094         Perhaps there's a better way, but this fixes the immediate problem.
11095         Problem reported by Bruno Haible in
11096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11097
11098 2011-05-22  Bruno Haible  <bruno@clisp.org>
11099
11100         xgetcwd: Simplify autoconf macro.
11101         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11102
11103 2011-05-22  Bruno Haible  <bruno@clisp.org>
11104
11105         New module 'mktime-internal'.
11106         * modules/mktime-internal: New file.
11107         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11108         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11109         mktime_internal as a C macro if libc has __mktime_internal.
11110         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11111         conditions.
11112         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11113
11114 2011-05-22  Bruno Haible  <bruno@clisp.org>
11115
11116         timegm: Correct mktime replacement statements.
11117         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11118         defining mktime as a C macro. This completes a 2009-07-28 commit.
11119
11120 2011-05-22  Bruno Haible  <bruno@clisp.org>
11121
11122         timegm: Simplify autoconf macro.
11123         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11124
11125 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11126
11127         clock-time: change to LGPLv2+.
11128         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11129         BSD-like but we have no mark for that; this is good enough for now.
11130
11131 2011-05-21  Bruno Haible  <bruno@clisp.org>
11132
11133         strerror_r: Fix comments.
11134         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11135
11136 2011-05-21  Bruno Haible  <bruno@clisp.org>
11137
11138         relocatable-prog-wrapper: Fix possible link error.
11139         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11140         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11141         (gl_FUNC_SETENV): ... to here.
11142         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11143         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11144
11145 2011-05-21  Bruno Haible  <bruno@clisp.org>
11146
11147         relocatable-prog-wrapper: Assume strerror() exists.
11148         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11149         m4/strerror.m4.
11150         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11151         * lib/relocwrapper.c: Remove mention of strerror module.
11152         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11153         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11154         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11155         C macro.
11156
11157 2011-05-21  Bruno Haible  <bruno@clisp.org>
11158
11159         select: Simplify replacement idiom.
11160         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11161         Win32 platforms.
11162         * lib/sys_select.in.h (select): Simplify accordingly.
11163         * modules/select (Depends-on): Likewise.
11164
11165 2011-05-21  Bruno Haible  <bruno@clisp.org>
11166
11167         mkdir-p: Simplify autoconf macro.
11168         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11169         gl_FUNC_LCHOWN.
11170
11171 2011-05-21  Eric Blake  <eblake@redhat.com>
11172
11173         strerror_r: avoid clobbering strerror on cygwin
11174         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11175         fall back instead to sys_errlist.
11176         * modules/strerror (configure.ac): Add witness.
11177         * tests/test-strerror_r.c (main): Enhance test.
11178         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11179         * tests/test-perror2.c (main): Free memory before exit.
11180
11181 2011-05-21  Bruno Haible  <bruno@clisp.org>
11182
11183         mkdtemp: Use gnulib naming conventions.
11184         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11185         * modules/mkdtemp (configure.ac): Update.
11186
11187 2011-05-20  Eric Blake  <eblake@redhat.com>
11188
11189         strerror_r: avoid corrupting errno on Solaris
11190         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11191         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11192
11193         strerror_r: avoid compiler warning
11194         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11195
11196         strerror_r: simplify AIX code
11197         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11198
11199         test-perror: avoid spurious failure on FreeBSD
11200         * modules/perror-tests (Depends-on): Add strerror, now that
11201         strerror_r no longer pulls it in.
11202
11203 2011-05-20  Bruno Haible  <bruno@clisp.org>
11204
11205         strerror_r-posix: Remove unused dependencies.
11206         * modules/strerror_r-posix (Depends-on): Remove strerror.
11207         Reported by Eric Blake.
11208
11209 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11210
11211         intprops: remove assumption about A|B representation
11212         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11213         is a valid integer if both A and B are.  Although this is true for
11214         all known practical hosts, the C standard doesn't guarantee it,
11215         and the code need not assume it.  Also, this change may work around
11216         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11218
11219 2011-05-20  Eric Blake  <eblake@redhat.com>
11220
11221         perror: work around FreeBSD bug
11222         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11223         is broken.  Move AC_LIBOBJ...
11224         * modules/perror (configure.ac): Here.
11225         * doc/posix-functions/perror.texi (perror): Document this.
11226         * tests/test-perror2.c (main): Enhance test.
11227
11228         test-perror: check for strerror interactions
11229         * tests/macros.h (STREQ): Add macro.
11230         * modules/perror-tests (Files): Add second test.
11231         * tests/test-perror2.c (main): New file.
11232         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11233
11234         test-perror: rewrite to use init script
11235         * modules/perror-tests (Files): Add init.sh.
11236         * tests/test-perror.sh: Use temporary directory.
11237
11238 2011-05-20  Jim Meyering  <meyering@redhat.com>
11239
11240         maint: replace misused "a" with "an"
11241         * doc/intprops.texi: "a integer"
11242         * doc/regex.texi: "a explanation"
11243         * lib/alignof.h: "a object"
11244         * lib/argmatch.h: "a explanation"
11245         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11246         * lib/stdint.in.h: "a integer"
11247         * lib/userspec.c: "a owner"
11248         * doc/gnulib.texi: Fix "a idea", and reword.
11249
11250 2011-05-19  Jim Meyering  <meyering@redhat.com>
11251
11252         maint: correct misuse of "a" and "an"
11253         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11254         * lib/argp-help.c: "an docum...": s/an/a/
11255         * lib/argp-parse.c: "An vector": s/An/A/
11256         * lib/execute.c: "an native": s/an/a/
11257         * lib/spawn-pipe.c: Likewise.
11258         * lib/gc.h: "an Gc_rc": s/an/a/
11259         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11260         * lib/fts.c: "an stat.st_dev": s/an/a/
11261
11262 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         intprops-tests: work around HP-UX 11.23 cc bug with constants
11265         * tests/test-intprops.c (VERIFY): New macro.
11266         (main): Use it, instead of verify, to work around the compiler bug; see
11267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11268
11269         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11270         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11271         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11272         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11273         (_GL_REMAINDER_OVERFLOW): Use it.
11274
11275         intprops-tests: revert unsigned part of previous change
11276         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11277         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11278         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11280
11281 2011-05-19  Bruno Haible  <bruno@clisp.org>
11282
11283         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11284         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11285         strerror_r() returned without filling the buffer.
11286         Reported by Eric Blake.
11287
11288 2011-05-19  Eric Blake  <eblake@redhat.com>
11289
11290         strerror_r: guarantee unchanged errno
11291         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11292         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11293         failure.
11294         * tests/test-strerror_r.c (main): Enhance test.
11295
11296 2011-05-19  Bruno Haible  <bruno@clisp.org>
11297
11298         strerror_r: Reorder #if blocks.
11299         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11300         for consistency with the previous commit.
11301
11302 2011-05-19  Bruno Haible  <bruno@clisp.org>
11303
11304         perror: Avoid clobbering the strerror buffer when possible.
11305         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11306         * lib/strerror.c: Include it.
11307         * modules/strerror (Files): Add lib/strerror-impl.h.
11308         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11309         (my_strerror): New function, defined through lib/strerror-impl.h.
11310         (perror): Use it instead of strerror.
11311         * modules/perror (Files): Add lib/strerror-impl.h.
11312         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11313
11314 2011-05-19  Eric Blake  <eblake@redhat.com>
11315
11316         strerror_r: fix on newer cygwin
11317         * lib/strerror_r.c (strerror_r): Cygwin now has
11318         __xpg_strerror_r, use it.
11319
11320 2011-05-19  Bruno Haible  <bruno@clisp.org>
11321
11322         strerror_r: Avoid clobbering the strerror buffer when possible.
11323         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11324         (sys_nerr, sys_errlist): New declarations.
11325         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11326         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11327         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11328
11329 2011-05-19  Bruno Haible  <bruno@clisp.org>
11330
11331         strerror_r: Fix test failure on mingw.
11332         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11333         EXTEND_STRERROR_R.
11334         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11335         macros from errno.in.h instead.
11336
11337 2011-05-19  Eric Blake  <eblake@redhat.com>
11338
11339         strerror: relax test for Solaris
11340         * tests/test-strerror.c (main): Permit Solaris behavior.
11341         * tests/test-strerror_r.c (main): Likewise.
11342
11343         strerror: enforce POSIX ruling on strerror(0)
11344         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11345         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11346         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11347         * doc/posix-functions/strerror.texi (strerror): Document it.
11348         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11349         * tests/test-strerror.c (main): Strengthen test.
11350         * tests/test-strerror_r.c (main): Likewise.
11351
11352 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11353
11354         intprop-tests: port to older and more-pedantic compilers
11355         * modules/intprops-tests (Files): Add tests/macros.h.
11356         * tests/test-intprops.c: Include macros.h.
11357         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11358         it's no longer documented to expand to an integer constant expression.
11359         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11360         argument is floating point, as it's no longer documented to expand
11361         to an integer constant expression in that case.
11362         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11363         compiler bugs reported by Bruno Haible.  See
11364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11365         (U0, U1): New constants, to work around the same bugs.  Also,
11366         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11367
11368         intprops: work around C compiler bugs
11369         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11370         bug in Sun C 5.11 2010/08/13 and other compilers; see
11371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11372
11373         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11374         * doc/intprops.texi (Integer Type Determination): Fix
11375         documentation for TYPE_IS_INTEGER: it returns an constant
11376         expression, not an integer constant expression.  Fix doc for
11377         TYPE_SIGNED: it returns an integer constant expression only if its
11378         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11379         hardly worth documented that way....)
11380
11381 2011-05-18  Bruno Haible  <bruno@clisp.org>
11382
11383         strerror_r: Avoid clobbering the strerror buffer when possible.
11384         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11385         Handle gnulib defined errno values here. When strerror() returns NULL
11386         or an empty string, return EINVAL.
11387         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11388         gnulib defined errno values here.
11389         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11390
11391 2011-05-18  Eric Blake  <eblake@redhat.com>
11392
11393         fnmatch: avoid compiler warning
11394         * lib/fnmatch_loop.c (FCT): Use correct type.
11395         Reported by Matthias Bolte.
11396
11397 2011-05-13  Jim Meyering  <meyering@redhat.com>
11398
11399         maint.mk: three new prohibit_<HDR>_without_use rules
11400         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11401         (sc_prohibit_stdio-safer_without_use): Likewise.
11402         (sc_prohibit_xfreopen_without_use): Likewise.
11403
11404 2011-05-17  Jim Meyering  <meyering@redhat.com>
11405
11406         announce-gen: fail if the NEWS delta is empty
11407         If there's nothing noteworthy in NEWS, then either you forgot
11408         or you shouldn't be releasing.
11409         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11410
11411 2011-05-17  Pádraig Brady <P@draigBrady.com>
11412
11413         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11414         reserved symbols starting with double underscore from the check.
11415
11416 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11417
11418         intprops: add doc
11419         * doc/intprops.texi: New file, documenting intprops.
11420         * doc/gnulib.texi (Particular Modules): Include it.
11421
11422         verify: add doc to gnulib manual and fix example
11423         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11424         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11425         (Compile-time Assertions): Fix example so it can't overflow.
11426
11427 2011-05-17  Jim Meyering  <meyering@redhat.com>
11428
11429         warnings.m4: don't usurp save_CPPFLAGS variable name
11430         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11431
11432         doc: fix typo
11433         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11434
11435 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11436             Bruno Haible  <bruno@clisp.org>
11437
11438         doc: Tweak recent change.
11439         * README (Portability guidelines): Tweak new text.
11440         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11441         Interix 6.1.
11442
11443 2011-05-16  Eric Blake  <eblake@redhat.com>
11444
11445         inttypes: avoid autoconf warning
11446         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11447         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11448
11449 2011-05-16  Sam Steingold <sds@gnu.org>
11450         and Eric Blake  <eblake@redhat.com>
11451
11452         vc-list-files: accept multiple directory operands
11453         * build-aux/vc-list-files: Iterate over all remaining operands.
11454
11455 2011-05-16  Bruno Haible  <bruno@clisp.org>
11456
11457         Fix confusion regarding deprecated modules.
11458         * modules/calloc (Status, Notice): Mark module as deprecated, not
11459         obsolete.
11460         * modules/fnmatch-posix (Status, Notice): Likewise.
11461         * modules/getdate (Status, Notice): Likewise.
11462         * modules/getopt (Status, Notice): Likewise.
11463         * modules/malloc (Status, Notice): Likewise.
11464         * modules/pipe (Status, Notice): Likewise.
11465         * modules/realloc (Status, Notice): Likewise.
11466         * modules/rename-dest-slash (Status, Notice): Likewise.
11467         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11468         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11469         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11470         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11471         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11472
11473 2011-05-16  Bruno Haible  <bruno@clisp.org>
11474
11475         doc: List the target platforms.
11476         * doc/gnulib-intro.texi (Target Platforms): New section.
11477         * doc/gnulib.texi (Introduction): Update menu.
11478         * README (Portability guidelines): Refer to the new section. Update
11479         statement about oldest supported environment. Remove rationale why
11480         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11481         unportable C89 function.
11482         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11483         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11484
11485 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11486
11487         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11488
11489 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11490
11491         intprops-tests: new module
11492         * modules/intprops-tests, tests/test-intprops.c: New files.
11493
11494         intprops: add safe, portable integer overflow checking
11495         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11496         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11497         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11498         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11499         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11500         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11501         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11502         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11503         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11504         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11505         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11506
11507 2011-05-12  James Youngman  <jay@gnu.org>
11508
11509         Add a test for glibc's Bugzilla bug #12378.
11510         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11511         doesn't allow the literal matching of a lone "[" (which is
11512         required by POSIX).
11513         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11514
11515 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11516
11517         Sync glibc change fixing Bugzilla bug #12378.
11518         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11519         beginning and fall back to matching as normal character if the
11520         string ends before the matching ']' is found.  This is what POSIX
11521         requires.
11522
11523 2011-05-13  Eric Blake  <eblake@redhat.com>
11524
11525         getcwd-lgpl: relax test for FreeBSD
11526         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11527         issue.
11528         * tests/test-getcwd-lgpl.c (main): Relax test.
11529         Reported by Matthias Bolte.
11530
11531 2011-05-11  Eric Blake  <eblake@redhat.com>
11532
11533         test-fflush: silence compiler warning
11534         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11535
11536 2011-05-11  Bruno Haible  <bruno@clisp.org>
11537
11538         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11539         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11540         * modules/canonicalize (Depends-on): Add 'nocrash'.
11541         * modules/canonicalize-lgpl (Depends-on): Likewise.
11542         * doc/posix-functions/realpath.texi: Update platforms list.
11543         Reported by Ryan Schmidt <ryandesign@macports.org>.
11544
11545 2011-05-11  Bruno Haible  <bruno@clisp.org>
11546
11547         group-member: Declare function in <unistd.h>.
11548         * lib/unistd.in.h (group_member): New declaration.
11549         * lib/group-member.h: Remove file.
11550         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11551         * tests/test-unistd-c++.cc: Check signature of group_member.
11552         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11553         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11554         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11555         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11556         HAVE_GROUP_MEMBER.
11557         * modules/group-member (Files): Remove lib/group-member.h.
11558         (Depends-on): Add unistd. Specify conditions.
11559         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11560         (Include): Change to <unistd.h>.
11561         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11562         HAVE_GROUP_MEMBER.
11563         * NEWS: Mention the change.
11564         * lib/euidaccess.c: Don't include group-member.h.
11565
11566 2011-05-11  Bruno Haible  <bruno@clisp.org>
11567
11568         group-member: Document module.
11569         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11570         module.
11571
11572 2011-05-11  Bruno Haible  <bruno@clisp.org>
11573
11574         fclose: Fix mistake earlier today.
11575         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11576
11577 2011-05-11  Eric Blake  <eblake@redhat.com>
11578
11579         fclose: preserve fflush errors
11580         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11581         Reported by Jim Meyering.
11582
11583         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11584         * build-aux/bootstrap (check_versions): When no specific version
11585         is required, merely check that the app produces an exit status
11586         that indicates its existence.
11587
11588         maint.mk: drop redundant check
11589         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11590         the same but better.
11591
11592 2011-05-11  Bruno Haible  <bruno@clisp.org>
11593
11594         fclose: Fix possible link error.
11595         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11596         unregister_shadow_fd. Improve comments.
11597         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11598         Eric Blake.
11599
11600 2011-05-11  Jim Meyering  <meyering@redhat.com>
11601
11602         maint.mk: improve "can not" detection and generalize rule name
11603         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11604         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11605         Use the same technique as in sc_prohibit_doubled_word, so that
11606         we recognize "can not" also when the words are separated by a newline.
11607         Suggested by Eric Blake.
11608         (perl_filename_lineno_text_): Define.  Factored out of...
11609         (prohibit_doubled_word_): ...here.  Use the new definition.
11610         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11611         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11612         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11613
11614 2011-05-10  Eric Blake  <eblake@redhat.com>
11615
11616         fclose: avoid double close race when possible
11617         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11618         all but WINDOWS_SOCKETS.
11619
11620 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11621
11622         openat: correct new comment
11623         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11624
11625 2011-05-10  Jim Meyering  <meyering@redhat.com>
11626
11627         openat: add comments
11628         * lib/openat-proc.c (openat_proc_name): Add comments,
11629         mostly from Eric Blake.
11630
11631 2011-05-09  Eric Blake  <eblake@redhat.com>
11632
11633         openat: reduce syscalls in first probe of /proc
11634         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11635         be a directory.  Simplify the probe for .. bugs.
11636         * modules/openat (Depends-on): Drop same-inode.
11637         Reported by Bastien ROUCARIES.
11638
11639 2011-05-09  Jim Meyering  <meyering@redhat.com>
11640
11641         maint.mk: change semantics/name of tight_scope variables
11642         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11643         Rename variables to align with semantics that make them more useful.
11644
11645         maint.mk: tweak new rule's name not to impinge
11646         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11647         (sc_tight_scope): Use new rule name rather than $@-0.
11648
11649         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11650         * top/maint.mk (sc_tight_scope): New rule.
11651         (sc_tight_scope-0): New rule, ifdef'd out.
11652         (_gl_TS_dir): Default.
11653         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11654         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11655
11656 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11657
11658         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11659         Haible <bruno@clisp.org>.
11660
11661 2011-05-08  Bruno Haible  <bruno@clisp.org>
11662
11663         Comments.
11664         * m4/isnanf.m4: Add comment.
11665         * m4/isnanl.m4: Likewise.
11666
11667 2011-05-08  Bruno Haible  <bruno@clisp.org>
11668
11669         glob: Remove obsolete macro.
11670         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11671
11672 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11673
11674         intprops: Sun C 5.11 supports __typeof__
11675         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11676         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11677         which is new.
11678         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11679
11680         intprops: switch to usual gnulib indenting and naming
11681         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11682         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11683
11684         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11685
11686 2011-05-08  Jim Meyering  <meyering@redhat.com>
11687
11688         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11689         * top/maint.mk (release-prep): Use make's --no-print-directory
11690         option when generating the announcement.  This eliminates the
11691         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11692         generated announcement template.
11693
11694 2011-05-08  Bruno Haible  <bruno@clisp.org>
11695
11696         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11697         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11698         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11699
11700 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11701
11702         ignore-value, verify: Omit include files from lib_SOURCES.
11703         * modules/ignore-value, modules/verify (Makefile.am):
11704         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11705         that leads Automake to duplicate use of am__objects_... variables
11706         in Makefile.in.  See
11707         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11708
11709 2011-05-07  Bruno Haible  <bruno@clisp.org>
11710
11711         fclose: Simplify autoconf macro.
11712         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11713         defined.
11714
11715 2011-05-07  Bruno Haible  <bruno@clisp.org>
11716
11717         canonicalize-lgpl: Fix autoconf macro ordering bug.
11718         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11719         gl_STDLIB_H_DEFAULTS.
11720
11721 2011-05-06  Eric Blake  <eblake@redhat.com>
11722
11723         maintainer-makefile: make sc_po_check easier to tune
11724         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11725         to probe for strings, such as an alternate location for gnulib.
11726
11727         fclose: guarantee behavior on seekable stdin
11728         * modules/fclose (Depends-on): Add fflush.
11729         * doc/posix-functions/fclose.texi (fclose): Document this.
11730         * tests/test-fclose.c (main): Make test for this unconditional.
11731
11732 2011-05-06  Bruno Haible  <bruno@clisp.org>
11733
11734         fflush, fpurge: Relicense under LGPLv2+.
11735         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11736         * modules/fpurge (License): Likewise.
11737         With permission from Eric Blake and Jim Meyering.
11738         Suggested by Eric Blake.
11739
11740 2011-05-06  Karl Berry  <karl@gnu.org>
11741
11742         * MODULES.html.sh (func_all_modules): remove exit.
11743
11744 2011-05-06  Jim Meyering  <meyering@redhat.com>
11745
11746         maint.mk: use info-gnu@ as the default only for a stable release
11747         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11748         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11749         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11750         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11751
11752 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11753
11754         assert-h: new module, which supports C1X-style static_assert
11755         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11756         * lib/verify.h: Revamp so that this can be copied into assert.h,
11757         while retaining the ability to use it standalone as before.
11758         Rename private identifiers so as not to encroach on the
11759         standard C namespace, since this is now used by assert.h.
11760         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11761         the old verify_true.
11762         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11763         the old verify_true.  Use _GL_VERIFY_TYPE.
11764         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11765         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11766         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11767         defined when this file is copied into the replacement assert.h.
11768         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11769         and _Static_assert is not built in.
11770         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11771         defined, and use the new macros mentioned above.
11772         * doc/posix-headers/assert.texi: Document this.
11773
11774 2011-05-05  Bruno Haible  <bruno@clisp.org>
11775
11776         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11777         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11778         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11779         gl_REPLACE_FCLOSE here.
11780         * modules/fflush (Depends-on): Remove fclose.
11781         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11782         combination with module 'fclose'.
11783
11784 2011-05-05  Bruno Haible  <bruno@clisp.org>
11785
11786         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11787         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11788         gl_FUNC_FFLUSH.
11789         (gl_FUNC_FFLUSH): Use it.
11790         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11791         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11792         gl_REPLACE_FSEEKO here.
11793
11794 2011-05-05  Bruno Haible  <bruno@clisp.org>
11795
11796         tzset: Relicense under LGPL.
11797         * modules/tzset (License): Change to LGPL.
11798         No agreement needed; it's a no-op.
11799
11800         strtoimax, strtoumax: Relicense under LGPL.
11801         * modules/strtoimax (License): Change to LGPL.
11802         * modules/strtoumax (License): Likewise.
11803         With permission from Jim Meyering, Paul Eggert:
11804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11806
11807         getgroups: Relicense under LGPL.
11808         * modules/getgroups (License): Change to LGPL.
11809         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11813
11814         nanosleep: Relicense under LGPL.
11815         * modules/nanosleep (License): Change to LGPL.
11816         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11817         Haible:
11818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11822
11823         futimens: Relicense under LGPL.
11824         * modules/futimens (License): Change to LGPL.
11825         With permission from Eric Blake:
11826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11827
11828         fflush: Relicense under LGPL.
11829         * modules/fflush (License): Change to LGPL.
11830         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11834
11835         tmpfile: Relicense under LGPL.
11836         * modules/tmpfile (License): Change to LGPL.
11837         With permission from Ben Pfaff:
11838         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11839
11840         isfinite: Relicense under LGPL.
11841         * modules/isfinite (License): Change to LGPL.
11842         With permission from Ben Pfaff, Bruno Haible:
11843         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11845
11846         acosl..tanl: Relicense under LGPL.
11847         * modules/acosl (License): Change to LGPL.
11848         * modules/asinl (License): Likewise.
11849         * modules/atanl (License): Likewise.
11850         * modules/cosl (License): Likewise.
11851         * modules/expl (License): Likewise.
11852         * modules/logl (License): Likewise.
11853         * modules/sinl (License): Likewise.
11854         * modules/sqrtl (License): Likewise.
11855         * modules/tanl (License): Likewise.
11856         Source code originally from glibc and Paolo Bonzini. Agreements:
11857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11859
11860 2011-05-05  Bruno Haible  <bruno@clisp.org>
11861
11862         signal: Define sighandler_t.
11863         * lib/signal.in.h (sighandler_t): New type.
11864         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11865         whether sighandler_t is defined.
11866         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11867         * modules/signal (Depends-on): Add extensions.
11868         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11869         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11870         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11871
11872 2011-05-05  Eric Blake  <eblake@redhat.com>
11873
11874         maint: remove useless REPLACE_*_H macros
11875         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11876         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11877         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11878         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11879         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11880         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11881         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11882         * m4/btowc.m4: Update callers.
11883         * m4/dirfd.m4: Likewise.
11884         * m4/duplocale.m4: Likewise.
11885         * m4/fchdir.m4: Likewise.
11886         * m4/fdopendir.m4: Likewise.
11887         * m4/inet_ntop.m4: Likewise.
11888         * m4/inet_pton.m4: Likewise.
11889         * m4/ioctl.m4: Likewise.
11890         * m4/mbrlen.m4: Likewise.
11891         * m4/mbrtowc.m4: Likewise.
11892         * m4/mbsinit.m4: Likewise.
11893         * m4/mbsnrtowcs.m4: Likewise.
11894         * m4/mbsrtowcs.m4: Likewise.
11895         * m4/poll.m4: Likewise.
11896         * m4/setlocale.m4: Likewise.
11897         * m4/wcrtomb.m4: Likewise.
11898         * m4/wcsnrtombs.m4: Likewise.
11899         * m4/wcsrtombs.m4: Likewise.
11900         * m4/wctob.m4: Likewise.
11901         * m4/wcwidth.m4: Likewise.
11902         * modules/posix_spawn: Likewise.
11903         * modules/posix_spawn_file_actions_addclose: Likewise.
11904         * modules/posix_spawn_file_actions_adddup2: Likewise.
11905         * modules/posix_spawn_file_actions_addopen: Likewise.
11906         * modules/posix_spawn_file_actions_destroy: Likewise.
11907         * modules/posix_spawn_file_actions_init: Likewise.
11908         * modules/posix_spawnattr_destroy: Likewise.
11909         * modules/posix_spawnattr_getflags: Likewise.
11910         * modules/posix_spawnattr_getpgroup: Likewise.
11911         * modules/posix_spawnattr_getschedparam: Likewise.
11912         * modules/posix_spawnattr_getschedpolicy: Likewise.
11913         * modules/posix_spawnattr_getsigdefault: Likewise.
11914         * modules/posix_spawnattr_getsigmask: Likewise.
11915         * modules/posix_spawnattr_init: Likewise.
11916         * modules/posix_spawnattr_setflags: Likewise.
11917         * modules/posix_spawnattr_setpgroup: Likewise.
11918         * modules/posix_spawnattr_setschedparam: Likewise.
11919         * modules/posix_spawnattr_setschedpolicy: Likewise.
11920         * modules/posix_spawnattr_setsigdefault: Likewise.
11921         * modules/posix_spawnattr_setsigmask: Likewise.
11922         * modules/posix_spawnp: Likewise.
11923
11924 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11925
11926         Add option to do-release-commit-and-tag to specify branch.
11927         * build-aux/do-release-commit-and-tag: Add --branch.
11928
11929 2011-05-03  Bruno Haible  <bruno@clisp.org>
11930
11931         Avoid unnecessary compilation units, through conditional dependencies.
11932         * modules/accept (Depends-on): Add conditions to the dependencies.
11933         * modules/acosl (Depends-on): Likewise.
11934         * modules/argz (Depends-on): Likewise.
11935         * modules/asinl (Depends-on): Likewise.
11936         * modules/atanl (Depends-on): Likewise.
11937         * modules/atoll (Depends-on): Likewise.
11938         * modules/bind (Depends-on): Likewise.
11939         * modules/btowc (Depends-on): Likewise.
11940         * modules/canonicalize-lgpl (Depends-on): Likewise.
11941         * modules/ceil (Depends-on): Likewise.
11942         * modules/ceilf (Depends-on): Likewise.
11943         * modules/ceill (Depends-on): Likewise.
11944         * modules/chdir-long (Depends-on): Likewise.
11945         * modules/chown (Depends-on): Likewise.
11946         * modules/close (Depends-on): Likewise.
11947         * modules/connect (Depends-on): Likewise.
11948         * modules/cosl (Depends-on): Likewise.
11949         * modules/dirfd (Depends-on): Likewise.
11950         * modules/dprintf (Depends-on): Likewise.
11951         * modules/dprintf-posix (Depends-on): Likewise.
11952         * modules/error (Depends-on): Likewise.
11953         * modules/euidaccess (Depends-on): Likewise.
11954         * modules/expl (Depends-on): Likewise.
11955         * modules/faccessat (Depends-on): Likewise.
11956         * modules/fchdir (Depends-on): Likewise.
11957         * modules/fclose (Depends-on): Likewise.
11958         * modules/fcntl (Depends-on): Likewise.
11959         * modules/fdopendir (Depends-on): Likewise.
11960         * modules/fflush (Depends-on): Likewise.
11961         * modules/floor (Depends-on): Likewise.
11962         * modules/floorf (Depends-on): Likewise.
11963         * modules/floorl (Depends-on): Likewise.
11964         * modules/fnmatch (Depends-on): Likewise.
11965         * modules/fopen (Depends-on): Likewise.
11966         * modules/fprintf-posix (Depends-on): Likewise.
11967         * modules/frexp (Depends-on): Likewise.
11968         * modules/frexp-nolibm (Depends-on): Likewise.
11969         * modules/frexpl (Depends-on): Likewise.
11970         * modules/frexpl-nolibm (Depends-on): Likewise.
11971         * modules/fseek (Depends-on): Likewise.
11972         * modules/fsusage (Depends-on): Likewise.
11973         * modules/ftell (Depends-on): Likewise.
11974         * modules/ftello (Depends-on): Likewise.
11975         * modules/futimens (Depends-on): Likewise.
11976         * modules/getcwd (Depends-on): Likewise.
11977         * modules/getcwd-lgpl (Depends-on): Likewise.
11978         * modules/getdelim (Depends-on): Likewise.
11979         * modules/getdomainname (Depends-on): Likewise.
11980         * modules/getgroups (Depends-on): Likewise.
11981         * modules/gethostname (Depends-on): Likewise.
11982         * modules/getline (Depends-on): Likewise.
11983         * modules/getlogin_r (Depends-on): Likewise.
11984         * modules/getopt-posix (Depends-on): Likewise.
11985         * modules/getpeername (Depends-on): Likewise.
11986         * modules/getsockname (Depends-on): Likewise.
11987         * modules/getsockopt (Depends-on): Likewise.
11988         * modules/getsubopt (Depends-on): Likewise.
11989         * modules/getusershell (Depends-on): Likewise.
11990         * modules/glob (Depends-on): Likewise.
11991         * modules/grantpt (Depends-on): Likewise.
11992         * modules/iconv_open (Depends-on): Likewise.
11993         * modules/iconv_open-utf (Depends-on): Likewise.
11994         * modules/inet_ntop (Depends-on): Likewise.
11995         * modules/inet_pton (Depends-on): Likewise.
11996         * modules/ioctl (Depends-on): Likewise.
11997         * modules/isapipe (Depends-on): Likewise.
11998         * modules/isfinite (Depends-on): Likewise.
11999         * modules/isinf (Depends-on): Likewise.
12000         * modules/lchown (Depends-on): Likewise.
12001         * modules/ldexpl (Depends-on): Likewise.
12002         * modules/link (Depends-on): Likewise.
12003         * modules/linkat (Depends-on): Likewise.
12004         * modules/listen (Depends-on): Likewise.
12005         * modules/logl (Depends-on): Likewise.
12006         * modules/lstat (Depends-on): Likewise.
12007         * modules/mbrlen (Depends-on): Likewise.
12008         * modules/mbrtowc (Depends-on): Likewise.
12009         * modules/mbsinit (Depends-on): Likewise.
12010         * modules/mbsnrtowcs (Depends-on): Likewise.
12011         * modules/mbsrtowcs (Depends-on): Likewise.
12012         * modules/mbtowc (Depends-on): Likewise.
12013         * modules/memcmp (Depends-on): Likewise.
12014         * modules/mkdir (Depends-on): Likewise.
12015         * modules/mkdtemp (Depends-on): Likewise.
12016         * modules/mkfifo (Depends-on): Likewise.
12017         * modules/mkfifoat (Depends-on): Likewise.
12018         * modules/mknod (Depends-on): Likewise.
12019         * modules/mkostemp (Depends-on): Likewise.
12020         * modules/mkostemps (Depends-on): Likewise.
12021         * modules/mkstemp (Depends-on): Likewise.
12022         * modules/mkstemps (Depends-on): Likewise.
12023         * modules/mktime (Depends-on): Likewise.
12024         * modules/nanosleep (Depends-on): Likewise.
12025         * modules/open (Depends-on): Likewise.
12026         * modules/openat (Depends-on): Likewise.
12027         * modules/perror (Depends-on): Likewise.
12028         * modules/poll (Depends-on): Likewise.
12029         * modules/popen (Depends-on): Likewise.
12030         * modules/posix_spawn (Depends-on): Likewise.
12031         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12032         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12033         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12034         * modules/posix_spawnp (Depends-on): Likewise.
12035         * modules/pread (Depends-on): Likewise.
12036         * modules/printf-posix (Depends-on): Likewise.
12037         * modules/ptsname (Depends-on): Likewise.
12038         * modules/putenv (Depends-on): Likewise.
12039         * modules/pwrite (Depends-on): Likewise.
12040         * modules/readline (Depends-on): Likewise.
12041         * modules/readlink (Depends-on): Likewise.
12042         * modules/readlinkat (Depends-on): Likewise.
12043         * modules/recv (Depends-on): Likewise.
12044         * modules/recvfrom (Depends-on): Likewise.
12045         * modules/regex (Depends-on): Likewise.
12046         * modules/remove (Depends-on): Likewise.
12047         * modules/rename (Depends-on): Likewise.
12048         * modules/renameat (Depends-on): Likewise.
12049         * modules/rmdir (Depends-on): Likewise.
12050         * modules/round (Depends-on): Likewise.
12051         * modules/roundf (Depends-on): Likewise.
12052         * modules/roundl (Depends-on): Likewise.
12053         * modules/rpmatch (Depends-on): Likewise.
12054         * modules/select (Depends-on): Likewise.
12055         * modules/send (Depends-on): Likewise.
12056         * modules/sendto (Depends-on): Likewise.
12057         * modules/setenv (Depends-on): Likewise.
12058         * modules/setlocale (Depends-on): Likewise.
12059         * modules/setsockopt (Depends-on): Likewise.
12060         * modules/shutdown (Depends-on): Likewise.
12061         * modules/sigaction (Depends-on): Likewise.
12062         * modules/signbit (Depends-on): Likewise.
12063         * modules/sigprocmask (Depends-on): Likewise.
12064         * modules/sinl (Depends-on): Likewise.
12065         * modules/sleep (Depends-on): Likewise.
12066         * modules/snprintf (Depends-on): Likewise.
12067         * modules/snprintf-posix (Depends-on): Likewise.
12068         * modules/socket (Depends-on): Likewise.
12069         * modules/sprintf-posix (Depends-on): Likewise.
12070         * modules/sqrtl (Depends-on): Likewise.
12071         * modules/stat (Depends-on): Likewise.
12072         * modules/strchrnul (Depends-on): Likewise.
12073         * modules/strdup-posix (Depends-on): Likewise.
12074         * modules/strerror (Depends-on): Likewise.
12075         * modules/strerror_r-posix (Depends-on): Likewise.
12076         * modules/strndup (Depends-on): Likewise.
12077         * modules/strnlen (Depends-on): Likewise.
12078         * modules/strptime (Depends-on): Likewise.
12079         * modules/strsep (Depends-on): Likewise.
12080         * modules/strsignal (Depends-on): Likewise.
12081         * modules/strstr-simple (Depends-on): Likewise.
12082         * modules/strtod (Depends-on): Likewise.
12083         * modules/strtoimax (Depends-on): Likewise.
12084         * modules/strtok_r (Depends-on): Likewise.
12085         * modules/strtoumax (Depends-on): Likewise.
12086         * modules/symlink (Depends-on): Likewise.
12087         * modules/symlinkat (Depends-on): Likewise.
12088         * modules/tanl (Depends-on): Likewise.
12089         * modules/tcgetsid (Depends-on): Likewise.
12090         * modules/tmpfile (Depends-on): Likewise.
12091         * modules/trunc (Depends-on): Likewise.
12092         * modules/truncf (Depends-on): Likewise.
12093         * modules/truncl (Depends-on): Likewise.
12094         * modules/uname (Depends-on): Likewise.
12095         * modules/unlink (Depends-on): Likewise.
12096         * modules/unlockpt (Depends-on): Likewise.
12097         * modules/unsetenv (Depends-on): Likewise.
12098         * modules/usleep (Depends-on): Likewise.
12099         * modules/utimensat (Depends-on): Likewise.
12100         * modules/vasprintf (Depends-on): Likewise.
12101         * modules/vdprintf (Depends-on): Likewise.
12102         * modules/vdprintf-posix (Depends-on): Likewise.
12103         * modules/vfprintf-posix (Depends-on): Likewise.
12104         * modules/vprintf-posix (Depends-on): Likewise.
12105         * modules/vsnprintf (Depends-on): Likewise.
12106         * modules/vsnprintf-posix (Depends-on): Likewise.
12107         * modules/vsprintf-posix (Depends-on): Likewise.
12108         * modules/wcrtomb (Depends-on): Likewise.
12109         * modules/wcscasecmp (Depends-on): Likewise.
12110         * modules/wcscspn (Depends-on): Likewise.
12111         * modules/wcsdup (Depends-on): Likewise.
12112         * modules/wcsncasecmp (Depends-on): Likewise.
12113         * modules/wcsnrtombs (Depends-on): Likewise.
12114         * modules/wcspbrk (Depends-on): Likewise.
12115         * modules/wcsrtombs (Depends-on): Likewise.
12116         * modules/wcsspn (Depends-on): Likewise.
12117         * modules/wcsstr (Depends-on): Likewise.
12118         * modules/wcstok (Depends-on): Likewise.
12119         * modules/wcswidth (Depends-on): Likewise.
12120         * modules/wctob (Depends-on): Likewise.
12121         * modules/wctomb (Depends-on): Likewise.
12122         * modules/wctype (Depends-on): Likewise.
12123         * modules/wcwidth (Depends-on): Likewise.
12124         * modules/write (Depends-on): Likewise.
12125
12126 2011-05-03  Bruno Haible  <bruno@clisp.org>
12127
12128         Support for conditional dependencies.
12129         * doc/gnulib.texi (Module description): Document the syntax of
12130         conditional dependencies.
12131         * gnulib-tool: New option --conditional-dependencies.
12132         (func_usage): Document it.
12133         (cond_dependencies): New variable.
12134         (func_get_automake_snippet_conditional,
12135         func_get_automake_snippet_unconditional): New functions, extracted from
12136         func_get_automake_snippet.
12137         (func_get_automake_snippet): Use them.
12138         (sed_first_32_chars): New variable.
12139         (func_module_shellfunc_name): New function.
12140         (func_module_shellvar_name): New function.
12141         (func_module_conditional_name): New function.
12142         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12143         func_cond_module_condition): New functions.
12144         (func_modules_transitive_closure): Add support for conditional
12145         dependencies.
12146         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12147         conditional automake snippet in an automake conditional.
12148         (func_emit_autoconf_snippets): Emit shell functions that contain the
12149         code for conditional modules.
12150         (func_import, func_create_testdir): Update specification.
12151
12152 2011-05-03  Eric Blake  <eblake@redhat.com>
12153
12154         test-getaddrinfo: report error information
12155         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12156
12157 2011-05-03  Jim Meyering  <meyering@redhat.com>
12158
12159         bootstrap: avoid build failure when $GZIP is set
12160         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12161         program name.  If defined at all, it is supposed to list gzip options.
12162         Reported by Alan Curry in http://debbugs.gnu.org/8609
12163
12164 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12165
12166         readme-release: new module with release instructions
12167         * modules/readme-release: New module.
12168         * top/README-release: New file, from coreutils, grep, diffutils.
12169         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12170
12171 2011-05-02  Eric Blake  <eblake@redhat.com>
12172
12173         fflush: also replace fclose when fixing fflush
12174         * modules/fflush (Depends-on): Add fclose.
12175         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12176         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12177         memstreams with no backing fd.
12178         * doc/posix-functions/fclose.texi (fclose): Document the use of
12179         fflush module to fix the bug.
12180         * tests/test-fclose.c (main): Relax test when fclose is used in
12181         isolation.
12182
12183         fclose: add some tests
12184         * modules/fclose-tests: New test module.
12185         * tests/test-fclose.c: New file.
12186         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12187
12188         fclose: reduced dependencies
12189         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12190         simpler lseek.
12191         * lib/fclose.c (rpl_fclose): Likewise.
12192         Reported by Simon Josefsson.
12193
12194         exit: drop remaining clients
12195         * modules/argmatch (Depends-on): Replace exit with stdlib.
12196         * modules/copy-file (Depends-on): Likewise.
12197         * modules/execute (Depends-on): Likewise.
12198         * modules/exitfail (Depends-on): Likewise.
12199         * modules/obstack (Depends-on): Likewise.
12200         * modules/pagealign_alloc (Depends-on): Likewise.
12201         * modules/pipe-filter-gi (Depends-on): Likewise.
12202         * modules/pipe-filter-ii (Depends-on): Likewise.
12203         * modules/savewd (Depends-on): Likewise.
12204         * modules/spawn-pipe (Depends-on): Likewise.
12205         * modules/wait-process (Depends-on): Likewise.
12206         * modules/xsetenv (Depends-on): Likewise.
12207         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12208         * modules/git-merge-changelog (Depends-on): Likewise.
12209         * modules/long-options (Depends-on): Likewise.
12210         * modules/pt_chown (Depends-on): Likewise.
12211         * modules/sysexits (Depends-on): Likewise.
12212
12213         freading: relax license from LGPLv3+ to LGPLv2+
12214         * modules/freading (License): Relax LGPL version.
12215
12216 2011-05-02  Bruno Haible  <bruno@clisp.org>
12217
12218         fchdir: Remove unused dependencies.
12219         * modules/fchdir (Depends-on): Remove include_next.
12220
12221 2011-05-02  Bruno Haible  <bruno@clisp.org>
12222
12223         gnulib-tool: Refactor.
12224         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12225         from func_emit_autoconf_snippets.
12226         (func_emit_autoconf_snippets): Use it.
12227
12228 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12229
12230         * NEWS: Document removal of 'exit'.
12231         * modules/exit: Remove file.
12232
12233 2011-05-01  Bruno Haible  <bruno@clisp.org>
12234
12235         Update DEPENDENCIES.
12236         * DEPENDENCIES (gettext): Recommend the newest release.
12237         Reported by Simon Josefsson.
12238
12239 2011-05-01  Bruno Haible  <bruno@clisp.org>
12240
12241         gnulib-tool: Reduce code duplication.
12242         * gnulib-tool (func_emit_autoconf_snippets): New function.
12243         (func_import, func_create_testdir): Use it.
12244
12245 2011-04-30  Eric Blake  <eblake@redhat.com>
12246
12247         fclose: don't fail on non-seekable input stream
12248         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12249         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12250         since fflush is allowed to fail in that case.
12251
12252 2011-04-30  Bruno Haible  <bruno@clisp.org>
12253
12254         dup3: cleanup
12255         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12256
12257 2011-04-30  Bruno Haible  <bruno@clisp.org>
12258
12259         netdb: Make it work in C++ mode.
12260         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12261         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12262         module.
12263         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12264         gl_MODULE_INDICATOR_FOR_TESTS.
12265         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12266         * modules/netdb-c++-tests: New file.
12267         * tests/test-netdb-c++.cc: New file.
12268
12269 2011-04-30  Bruno Haible  <bruno@clisp.org>
12270
12271         New modules 'vfscanf', 'vscanf'.
12272         * modules/vfscanf: New file.
12273         * modules/vscanf: New file.
12274         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12275         here.
12276         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12277         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12278
12279 2011-04-30  Bruno Haible  <bruno@clisp.org>
12280
12281         passfd: Add comments.
12282         * lib/passfd.c: Add comments about platforms.
12283
12284 2011-04-30  Bruno Haible  <bruno@clisp.org>
12285
12286         sys_uio: Make <sys/uio.h> self-contained.
12287         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12288         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12289
12290 2011-04-30  Bruno Haible  <bruno@clisp.org>
12291
12292         sys_socket: Ensure 'struct iovec' definition.
12293         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12294         <sys/socket.h>.
12295         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12296
12297 2011-04-30  Bruno Haible  <bruno@clisp.org>
12298
12299         sys_uio: Protect definition of 'struct iovec'.
12300         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12301         it as a C struct.
12302
12303 2011-04-30  Bruno Haible  <bruno@clisp.org>
12304
12305         manywarnings: fix indentation
12306         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12307
12308 2011-04-30  Pádraig Brady <P@draigBrady.com>
12309
12310         manywarnings: add -Wno-missing-field-initializers if needed.
12311         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12312         option if it's needed to allow initialization with { 0, }
12313
12314 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12315
12316         announce-gen: cosmetic improvement
12317         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12318
12319 2011-04-29  Jim Meyering  <meyering@redhat.com>
12320
12321         vc-list-files: indent with spaces, not TABs
12322         * build-aux/vc-list-files: Convert leading TABs to spaces,
12323         to match the style of most other files in gnulib.
12324
12325         announce-gen: indent with spaces, not TABs
12326         * build-aux/announce-gen: Convert all TABs to spaces, to match
12327         the style of most other files in gnulib.
12328
12329 2011-04-29  Eric Blake  <eblake@redhat.com>
12330
12331         quotearg: avoid uninitialized variable use
12332         * lib/quotearg.c (quoting_options_from_style): Initialize
12333         remaining fields, and ensure that custom styles are only used via
12334         quoting_options rather than quoting_style.
12335
12336 2011-04-29  Jim Meyering  <meyering@redhat.com>
12337
12338         maint.mk: remove unused VC-tag variable
12339         * top/maint.mk (VC-tag): Remove unused variable.
12340
12341 2011-04-29  Bruno Haible  <bruno@clisp.org>
12342
12343         netdb: fix gai_strerror replacements
12344         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12345         * modules/netdb: Substitute it.
12346
12347 2011-04-29  Jim Meyering  <meyering@redhat.com>
12348
12349         test-getcwd.c: avoid new set-but-not-used warning
12350         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12351         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12352         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12353         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12354
12355         test-hash.c: avoid a new shadowing warning
12356         * tests/test-hash.c (main): Don't shadow "dup".
12357
12358 2011-04-28  Eric Blake  <eblake@redhat.com>
12359
12360         getaddrinfo: fix gai_strerror signature
12361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12362         and work around mingw with UNICODE defined.
12363         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12364         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12365         * modules/netdb (Makefile.am): Substitute it.
12366         * lib/netdb.in.h (gai_strerror): Declare replacement.
12367         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12368         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12369         the fix.
12370
12371         getsockopt: avoid compiler warning
12372         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12373         Reported by Matthias Bolte.
12374
12375         tests: drop unused link dependency
12376         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12377         * modules/dirent-safer-tests (Makefile.am): Likewise.
12378         * modules/fdopendir-tests (Makefile.am): Likewise.
12379         * modules/mkfifoat-tests (Makefile.am): Likewise.
12380         * modules/openat-safer-tests (Makefile.am): Likewise.
12381         * modules/openat-tests (Makefile.am): Likewise.
12382         * modules/readlinkat-tests (Makefile.am): Likewise.
12383         * modules/symlinkat-tests (Makefile.am): Likewise.
12384         * modules/linkat-tests (Makefile.am): Likewise.
12385         (Depends-on): Switch to filenamecat-lgpl.
12386         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12387         LIBINTL.
12388         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12389         * tests/test-linkat.c (main): Don't require xalloc.
12390
12391         hash, mgetgroups: drop xalloc dependency
12392         * lib/hash.c (includes): Adjust includes.
12393         * lib/mgetgroups.c (includes): Likewise.
12394         (xgetgroups): Move...
12395         * lib/xgetgroups.c: ...to new file.
12396         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12397         * modules/xgetgroups: New file, split from...
12398         * modules/mgetgroups: ...here.
12399         (Depends-on): Add xalloc-oversized.
12400         * modules/hash (Depends-on): Likewise.
12401         * modules/hash-tests (Depends-on): Drop xalloc.
12402         (test_hash_LDADD): Drop unused library.
12403         * tests/test-hash.c (main): Break xalloc dependency.
12404         (includes): Drop unused include.
12405
12406         xalloc-oversized: new module
12407         * modules/xalloc-oversized: New module.
12408         * modules/xalloc (Depends-on): Add it.
12409         * lib/xalloc.h (xalloc_oversized): Move...
12410         * lib/xalloc-oversized.h: ...into new file.
12411
12412         utimecmp: drop dependency on xmalloc
12413         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12414         due to memory pressure.
12415         * modules/utimecmp (Depends-on): Drop xalloc.
12416
12417 2011-04-27  Eric Blake  <eblake@redhat.com>
12418
12419         getcwd: fix mingw bugs
12420         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12421         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12422         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12423
12424 2011-04-27  Bruno Haible  <bruno@clisp.org>
12425
12426         mkstemps: Ensure declaration on MacOS X 10.5.
12427         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12428         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12429         MacOS X.
12430
12431 2011-04-27  Bruno Haible  <bruno@clisp.org>
12432
12433         mkstemp: More documentation.
12434         * doc/posix-functions/mkstemp.texi: Document header file problem on
12435         MacOS X.
12436
12437 2011-04-27  Bruno Haible  <bruno@clisp.org>
12438
12439         mkstemp: Tweak configure message when cross-compiling.
12440         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12441         result as a guess.
12442
12443 2011-04-27  Bruno Haible  <bruno@clisp.org>
12444
12445         clean-temp: Clarify what it does.
12446         * lib/clean-temp.h: Add more comments.
12447         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12448         module.
12449         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12450         * doc/glibc-functions/mkstemps.texi: Likewise.
12451         * doc/glibc-functions/mkostemps.texi: Likewise.
12452
12453 2011-04-27  Eric Blake  <eblake@redhat.com>
12454
12455         fchdir: avoid extra chdir and fix test
12456         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12457         getcwd-lgpl.
12458         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12459         have to be canonical.
12460         (canonicalize_file_name): Drop unused macro.
12461         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12462
12463         filenamecat-lgpl: fix licence
12464         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12465         when it was first created.
12466
12467         linkat, renameat: add missing dependency
12468         * modules/linkat (Depends-on): Require getcwd-lgpl.
12469         * modules/renameat (Depends-on): Likewise.
12470
12471         tests: reduce dependencies
12472         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12473         * tests/test-renameat.c (main): Likewise.
12474         * modules/linkat-tests (Depends-on): Relax dependency.
12475         * modules/renameat-tests (Depends-on): Likewise.
12476         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12477         dependency explicit.
12478
12479         save-cwd: reduce default dependency
12480         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12481         * lib/save-cwd.c: Update comments.
12482         * NEWS: Document the semantic change.
12483
12484         getcwd: enhance tests
12485         * tests/test-getcwd-lgpl.c: New file, taken from...
12486         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12487         repeat long path stress tests from m4 probe.
12488         * modules/getcwd-lgpl-tests: New module.
12489         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12490         * m4/getcwd-abort-bug.m4: Update comment.
12491         * m4/getcwd-path-max.m4: Likewise.
12492
12493         getcwd-lgpl: new module
12494         * modules/getcwd-lgpl: New module.
12495         * lib/getcwd-lgpl.c: New file.
12496         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12497         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12498         * modules/getcwd (configure.ac): Set C witness.
12499         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12500
12501         getcwd: tweak comments
12502         * m4/getcwd-abort-bug.m4: Fix comments.
12503         * m4/getcwd-path-max.m4: Likewise.
12504         * m4/getcwd.m4: Likewise.
12505
12506 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12507         and Eric Blake  <eblake@redhat.com>
12508
12509         mkstemp: replace if system version uses wrong permissions
12510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12511         read/write mode bits set in file created by mkstemp.
12512         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12513
12514 2011-04-27  Eric Blake  <eblake@redhat.com>
12515
12516         passfd: avoid compiler warning
12517         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12518         Reported by Laine Stump.
12519
12520 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12521
12522         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12523         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12524
12525 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12526         and Eric Blake  <eblake@redhat.com>
12527
12528         mkstemp: mention clean-temp module
12529         * lib/mkstemp.c: Add comment.
12530         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12531
12532 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12533
12534         inttypes: also provide default values for 32-bit tests
12535         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12536         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12537
12538 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12539
12540         strtoumax: remove dependency on strtoimax
12541         This is like the strtoull change of yesterday.
12542         * modules/strtoumax (Files): Add lib/strtoimax.c.
12543         (Depends-on): Remove strtoimax and add verify.
12544
12545         inttypes-incomplete: new module
12546         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12547         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12548         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12549         of gl_INTTYPES_H.
12550         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12551         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12552         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12553         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12554         * modules/strtoumax, modules/xstrtol (Depends-on):
12555         Depend on inttypes-incomplete, not inttypes.
12556         * modules/inttypes-incomplete: New module, containing the contents
12557         of the old modules/inttypes module, except that the Files: section
12558         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12559         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12560         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12561         (Depends-on): Depend only on inttypes-incomplete.
12562         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12563
12564         inttypes: omit now-redundant strtoimax and strtoumax work
12565         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12566         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12567
12568         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12569         This supports apps that need pointers to strtoimax and strtoumax,
12570         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12571         nonexistent functions.  See
12572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12573         et seq.
12574         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12575         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12576         a macro.
12577         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12578
12579 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12580
12581         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12582
12583 2011-04-25  Bruno Haible  <bruno@clisp.org>
12584
12585         strtol, strtoul: Mark modules as obsolete.
12586         * modules/strtol (Status, Notice): New sections.
12587         * modules/strtoul (Status, Notice): New sections.
12588
12589 2011-04-25  Bruno Haible  <bruno@clisp.org>
12590
12591         strtod: Remove check for strtod, unless supporting old platforms.
12592         * modules/strtod-obsolete: New file.
12593         * m4/strtod-obsolete.m4: New file.
12594         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12595         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12596         * modules/strtod (Depends-on): Add strtod-obsolete.
12597         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12598
12599 2011-04-25  Bruno Haible  <bruno@clisp.org>
12600
12601         strcase: Make module obsolete.
12602         * modules/strcase (Status, Notice): New sections.
12603
12604 2011-04-25  Bruno Haible  <bruno@clisp.org>
12605
12606         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12607         * modules/dup2-obsolete: New file.
12608         * m4/dup2-obsolete.m4: New file.
12609         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12610         gl_FUNC_DUP2_OBSOLETE is not also defined.
12611         * modules/dup2 (Depends-on): Add dup2-obsolete.
12612         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12613
12614 2011-04-25  Bruno Haible  <bruno@clisp.org>
12615
12616         strnlen: Avoid memchr related link error on old obsolete platforms.
12617         * modules/memchr-obsolete: New file.
12618         * m4/memchr-obsolete.m4: New file.
12619         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12620         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12621         * modules/memchr (Depends-on): Add memchr-obsolete.
12622         * modules/strnlen (Depends-on): Likewise.
12623         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12624
12625 2011-04-25  Jim Meyering  <meyering@redhat.com>
12626
12627         maint.mk: makefile_at_at_check extend and clean up
12628         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12629         in addition to */Makefile.am.
12630         Exempt legitimate uses of @VAR@ notation, e.g.,
12631         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12632         Remove obsolete coreutils-specific comment.
12633         Prompted by discussion here:
12634         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12635
12636 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12637
12638         strtoul: remove dependency on strtol
12639         This is so that 'configure' need not check for strtol merely because
12640         the application needs strtoul.
12641         * modules/strtoul (Files): Add lib/strtol.c.
12642         (Depends-on): Remove strtol.
12643
12644         strtoull: remove dependency on strtoul
12645         This is like the strtoll change.
12646         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12647         (Depends-on): Remove strtoul.
12648
12649         strtoll: remove dependency on strtol
12650         This is so that 'configure' need not check for strtol merely because
12651         the application needs strtoll.
12652         * modules/strtoll (Files): Add lib/strtol.c.
12653         (Depends-on): Remove strtol.
12654
12655 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12656
12657         inttypes: Move some configure check to module 'imaxdiv'.
12658         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12659         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12660         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12661
12662 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12663
12664         inttypes: Move some configure check to module 'imaxabs'.
12665         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12666         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12667         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12668
12669 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12670
12671         inttypes: Remove configure tests that are not needed since 2009-12-31.
12672         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12673         gl_cv_header_working_inttypes_h.
12674
12675 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12676
12677         * modules/strnlen (Depends-on): Remove memchr.
12678         The strnlen implementation doesn't need the memchr module's fixes; see
12679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12680
12681         strtol: remove dependency on wchar
12682         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12683         * modules/strtol (Depends-on): Remove wchar.
12684
12685 2011-04-21  Eric Blake  <eblake@redhat.com>
12686
12687         passfd: fix test regression on Linux
12688         * modules/passfd-tests (configure.ac): Correct socketpair check.
12689
12690         passfd: speed up configure and drop unused code
12691         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12692         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12693         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12694         Instead of probing at configure for unix_scm_rights_bsd44_way,
12695         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12696         check to a struct member probe.
12697         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12698         (sendfd, recvfd): Update preprocessor checks.
12699         * modules/passfd (Files): Reflect rename, and drop unused file.
12700         (Depends-on): Drop unused dependency.
12701
12702         passfd: allow compilation on mingw
12703         * modules/sys_socket (Depends-on): Add sys_uio.
12704         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12705         iovec and a minimal struct msghdr.
12706         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12707         * tests/test-sys_socket.c (main): Enhance test.
12708         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12709         guaranteed to provide what we need.
12710         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12711         * modules/passfd-tests (Depends-on): Add sys_wait.
12712         * tests/test-passfd.c (main): Skip test on mingw, for now.
12713         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12714         partial 'struct msghdr' implementation.
12715
12716         sys_uio: new module
12717         * modules/sys_uio: New module.
12718         * modules/sys_uio-tests: Likewise.
12719         * lib/sys_uio.in.h: New file.
12720         * m4/sys_uio_h.m4: Likewise.
12721         * tests/test-sys_uio.c: Likewise.
12722         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12723         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12724
12725 2011-04-20  Jim Meyering  <meyering@redhat.com>
12726
12727         useless-if-before-free: avoid false-positive
12728         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12729         disjunct so that it too requires a terminating ";".  Without that,
12730         this script would identify as useless one statement from gcc that
12731         was not:
12732           if (aligned_ptr)
12733             free (((void **) aligned_ptr) [-1]);
12734
12735 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12736
12737         doc: update users.txt.
12738         * users.txt: Add barcode.
12739
12740 2011-04-19  Bruno Haible  <bruno@clisp.org>
12741
12742         ioctl: Remove link dependency on native Windows.
12743         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12744         (gl_close_fn, gl_ioctl_fn): New types.
12745         (struct fd_hook): Renamed from struct close_hook. Change type of
12746         private_close_fn field. Add private_ioctl_fn field.
12747         (close_hook_fn): Add parameter for primary close method.
12748         (execute_close_hooks, execute_all_close_hooks): Likewise.
12749         (ioctl_hook_fn): New type.
12750         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12751         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12752         argument.
12753         (unregister_fd_hook): Renamed from unregister_close_hook.
12754         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12755         Don't include <unistd.h>.
12756         (close): Remove undef.
12757         (anchor): Update.
12758         (execute_close_hooks): Add argument for primary close method.
12759         (execute_all_close_hooks): Likewise.
12760         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12761         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12762         argument. Allow each argument to be NULL.
12763         (unregister_fd_hook): Renamed from unregister_close_hook.
12764         * lib/close.c (rpl_close): Pass 'close' function pointer to
12765         execute_all_close_hooks.
12766         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12767         (primary_ioctl): New function.
12768         (ioctl): Don't call ioctlsocket here. Instead, call
12769         execute_all_ioctl_hooks.
12770         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12771         close method.
12772         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12773         (fd_sockets_hook): Renamed from close_sockets_hook.
12774         (gl_sockets_startup, gl_sockets_cleanup): Update.
12775         * modules/fd-hook: Renamed from modules/close-hook. Update.
12776         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12777         * modules/sockets (Depends-on): Likewise.
12778         * modules/ioctl (Depends-on): Add fd-hook.
12779         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12780         GNULIB_SOCKET.
12781
12782 2011-04-19  Bruno Haible  <bruno@clisp.org>
12783
12784         Move the support of O_NONBLOCK in open() to the 'open' module.
12785         * modules/nonblocking (Depends-on): Remove 'open'.
12786         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12787         gl_cv_have_open_O_NONBLOCK.
12788         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12789         O_NONBLOCK support.
12790         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12791
12792 2011-04-17  Bruno Haible  <bruno@clisp.org>
12793
12794         pipe2: Simplify code.
12795         * lib/pipe2.c (pipe2): Reduce code duplication.
12796
12797 2011-04-17  Bruno Haible  <bruno@clisp.org>
12798
12799         nonblocking: Add comment.
12800         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12801
12802 2011-04-17  Bruno Haible  <bruno@clisp.org>
12803
12804         nonblocking: Add tests for sockets.
12805         * tests/test-nonblocking-socket.sh: New file.
12806         * tests/test-nonblocking-socket-main.c: New file.
12807         * tests/test-nonblocking-socket-child.c: New file.
12808         * tests/test-nonblocking-socket.h: New file.
12809         * tests/socket-server.h: New file.
12810         * tests/socket-client.h: New file.
12811         * modules/nonblocking-socket-tests: New file.
12812         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12813
12814 2011-04-17  Bruno Haible  <bruno@clisp.org>
12815
12816         nonblocking: Add tests for pipes.
12817         * tests/test-nonblocking-pipe.sh: New file.
12818         * tests/test-nonblocking-pipe-main.c: New file.
12819         * tests/test-nonblocking-pipe-child.c: New file.
12820         * tests/test-nonblocking-pipe.h: New file.
12821         * tests/test-nonblocking-writer.h: New file.
12822         * tests/test-nonblocking-reader.h: New file.
12823         * tests/test-nonblocking-misc.h: New file.
12824         * modules/nonblocking-pipe-tests: New file.
12825         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12826
12827 2011-04-16  Bruno Haible  <bruno@clisp.org>
12828
12829         gettext: Clarify the needed programmer actions.
12830         * modules/gettext (Notice): New field.
12831         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12832
12833 2011-04-16  Bruno Haible  <bruno@clisp.org>
12834
12835         strchrnul: Tweak last commit.
12836         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12837         bug.
12838         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12839         as in _GL_FUNCDECL_SYS.
12840         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12841         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12842
12843 2011-04-15  Eric Blake  <eblake@redhat.com>
12844
12845         strchrnul: work around cygwin bug
12846         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12847         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12849         * modules/string (Makefile.am): Substitute it.
12850         * lib/string.in.h (strchrnul): Use it.
12851
12852 2011-04-15  Bruno Haible  <bruno@clisp.org>
12853
12854         Don't require lib/stdio-write.c when only module 'stdio' is used.
12855         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12856         invocation.
12857         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12858
12859 2011-04-14  Bruno Haible  <bruno@clisp.org>
12860
12861         Support non-blocking pipe I/O in read() on native Windows.
12862         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12863         (read): New declaration.
12864         * lib/read.c: New file.
12865         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12866         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12867         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12868         vscanf): New declarations.
12869         * lib/stdio-read.c: New file.
12870         * m4/read.m4: New file.
12871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12872         REPLACE_READ.
12873         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12874         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12875         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12876         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12877         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12878         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12879         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12880         * modules/read: New file.
12881         * modules/nonblocking (Files): Add lib/stdio-read.c.
12882         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12883         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12884         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12885         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12886         * modules/pread (Depends-on): Add read.
12887         * modules/safe-read (Depends-on): Likewise.
12888         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12889         gets, scanf, vfscanf, vscanf): Verify signatures.
12890         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12891         problem with non-blocking pipes.
12892         * doc/posix-functions/fgetc.texi: Likewise.
12893         * doc/posix-functions/fgets.texi: Likewise.
12894         * doc/posix-functions/fread.texi: Likewise.
12895         * doc/posix-functions/fscanf.texi: Likewise.
12896         * doc/posix-functions/getc.texi: Likewise.
12897         * doc/posix-functions/getchar.texi: Likewise.
12898         * doc/posix-functions/gets.texi: Likewise.
12899         * doc/posix-functions/scanf.texi: Likewise.
12900         * doc/posix-functions/vfscanf.texi: Likewise.
12901         * doc/posix-functions/vscanf.texi: Likewise.
12902
12903 2011-04-14  Bruno Haible  <bruno@clisp.org>
12904
12905         Support non-blocking pipe I/O in write() on native Windows.
12906         * lib/write.c (rpl_write): Split a write request that failed merely
12907         because the byte count was larger than the pipe buffer's size.
12908         * doc/posix-functions/write.texi: Mention the problem with large byte
12909         counts.
12910
12911 2011-04-14  Bruno Haible  <bruno@clisp.org>
12912
12913         wchar: Ensure that wchar_t gets defined on uClibc.
12914         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12915         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12916
12917 2011-04-13  Bruno Haible  <bruno@clisp.org>
12918
12919         safe-write, full-read: Avoid unnecessary compilation units.
12920         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12921         (Depends-on): Remove safe-read. Add ssize_t.
12922         * modules/full-read (Files): Add lib/full-write.c.
12923         (Depends-on): Add full-write.
12924
12925 2011-04-13  Bruno Haible  <bruno@clisp.org>
12926
12927         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12928         * modules/pwrite (Depends-on): Add 'write'.
12929
12930 2011-04-13  Bruno Haible  <bruno@clisp.org>
12931
12932         Support non-blocking pipe I/O in write() on native Windows.
12933         * lib/unistd.in.h (write): Enable replacement also if
12934         GNULIB_UNISTD_H_NONBLOCKING is 1.
12935         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12936         (rpl_write): When failing to write on a non-blocking pipe, change
12937         errno from ENOSPC to EAGAIN.
12938         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12939         putchar, puts, vfprintf, vprintf): Enable replacement also if
12940         GNULIB_STDIO_H_NONBLOCKING is 1.
12941         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12942         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12943         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12944         CALL_WITH_SIGPIPE_EMULATION.
12945         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12946         * m4/nonblocking.m4: New file.
12947         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12948         for non-blocking I/O support.
12949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12950         GNULIB_UNISTD_H_NONBLOCKING.
12951         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12952         required for non-blocking I/O support.
12953         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12954         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12955         lib/stdio-write.c, m4/asm-underscore.m4.
12956         (Depends-on): Add stdio, unistd.
12957         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12958         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12959         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12960         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12961         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12962         problem with non-blocking pipes.
12963         * doc/posix-functions/fputc.texi: Likewise.
12964         * doc/posix-functions/fputs.texi: Likewise.
12965         * doc/posix-functions/fwrite.texi: Likewise.
12966         * doc/posix-functions/printf.texi: Likewise.
12967         * doc/posix-functions/putc.texi: Likewise.
12968         * doc/posix-functions/putchar.texi: Likewise.
12969         * doc/posix-functions/puts.texi: Likewise.
12970         * doc/posix-functions/vfprintf.texi: Likewise.
12971         * doc/posix-functions/vprintf.texi: Likewise.
12972         * doc/posix-functions/write.texi: Likewise.
12973
12974 2011-04-10  Jim Meyering  <meyering@redhat.com>
12975
12976         maint.mk: prohibit doubled words
12977         Detect them also when they're separated by a newline.
12978         There are 3 ways to customize it:
12979           - disable the test on a per file basis, as usual with rules using
12980             $(VC_LIST_EXCEPT)
12981           - replace the default doubled-word-selecting regexp (affects all files)
12982           - ignore a particular file-vs-doubled-word match
12983         I nearly used that last one to ignore the "is is" match in
12984         coreutils' NEWS file, since the text was "ls -is is ..."
12985         To do that, I would have added this line to cfg.mk:
12986           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12987         but it would have ignored any "is is" match in NEWS.
12988         Low probability, but still...
12989         Instead, I changed the text, slightly:
12990           -  ls -is is now consistent with ls -lis in ignoring values returned
12991           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12992         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12993         (prohibit_doubled_word_): Define.
12994         (sc_prohibit_doubled_word): New rule.
12995         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12996
12997 2011-04-10  Jim Meyering  <meyering@redhat.com>
12998
12999         maint: fix doubled-word typo in comment
13000         * m4/gethostname.m4: s/is is/it is/
13001         * m4/getdomainname.m4: Likewise.
13002
13003 2011-04-10  Jim Meyering  <meyering@redhat.com>
13004
13005         maint: remove doubled word: s/it it/it/
13006         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13007
13008 2011-04-10  Jim Meyering  <meyering@redhat.com>
13009
13010         maint.mk: remove useless semicolon and backslash
13011         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13012         semicolon and backslash.
13013
13014 2011-04-10  Bruno Haible  <bruno@clisp.org>
13015
13016         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13017         * modules/stdint-tests (Depends-on): Add wchar.
13018
13019 2011-04-10  Jim Meyering  <meyering@redhat.com>
13020
13021         maint: remove doubled words in comments, e.g., s/a a/a/
13022         * lib/strptime.c (day_of_the_week): s/the the/the/
13023         * tests/test-chown.h (test_chown): s/a a/a/
13024
13025         test-chown.h: correct a cast
13026         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13027         when the destination is a stat.st_gid.
13028
13029 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13030
13031         getaddrinfo: Fix test for sa_len member.
13032         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13033         include <sys/types.h> before <sys/socket.h>.
13034
13035 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13036
13037         maint: change "can not" to "cannot"
13038         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13039         boundaries.
13040
13041 2011-04-09  Jim Meyering  <meyering@redhat.com>
13042
13043         maint: change "a a" to "a"
13044         * tests/test-lchown.h (test_lchown): s/a a/a/
13045
13046         maint.mk: prohibit \<the the\>
13047         * top/maint.mk (sc_prohibit_the_the): New rule.
13048
13049         maint: fix "the the" in comment
13050         * lib/count-one-bits.h: s/the the/the/
13051
13052         maint: change "can not" to "cannot"
13053         But do not change the occurrences in maintain.texi or in
13054         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13055         * doc/gnulib-tool.texi: s/can not/cannot/
13056         * doc/posix-functions/accept.texi (accept): Likewise.
13057         * doc/posix-functions/socket.texi (socket): Likewise.
13058         * lib/mbrtowc.c: Likewise.
13059
13060         maint.mk: prohibit use of "can not"
13061         * top/maint.mk (sc_prohibit_can_not): New rule.
13062         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13063
13064 2011-04-09  Bruno Haible  <bruno@clisp.org>
13065
13066         careadlinkat: Guard against misuse of careadlinkatcwd.
13067         * lib/careadlinkat.c: Include <stdlib.h>.
13068         (careadlinkatcwd): Check that the fd argument is as expected.
13069
13070 2011-04-09  Bruno Haible  <bruno@clisp.org>
13071
13072         careadlinkat: Use common coding style.
13073         * lib/careadlinkat.c: Move gnulib includes after system includes.
13074
13075 2011-04-09  Bruno Haible  <bruno@clisp.org>
13076
13077         careadlinkat: Clarify specification.
13078         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13079         (careadlinkatcwd): Add comment.
13080         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13081
13082 2011-04-09  Bruno Haible  <bruno@clisp.org>
13083
13084         areadlinkat: Avoid link error on many platforms.
13085         * modules/areadlinkat (Depends-on): Add areadlink.
13086
13087 2011-04-09  Bruno Haible  <bruno@clisp.org>
13088
13089         allocator, careadlinkat: Fix double-inclusion guard.
13090         * lib/allocator.h: Fix double-inclusion guard.
13091         * lib/careadlinkat.h: Likewise.
13092
13093 2011-04-09  Bruno Haible  <bruno@clisp.org>
13094
13095         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13096         * lib/relocwrapper.c: Update dependencies hierarchy.
13097         * build-aux/install-reloc: Update list of files to be compiled.
13098         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13099         lib/allocator.[hc].
13100
13101 2011-04-08  Eric Blake  <eblake@redhat.com>
13102
13103         strftime: silence gnulib-tool warning
13104         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13105
13106 2011-04-08  Bruno Haible  <bruno@clisp.org>
13107
13108         verify: Fix syntax error with GCC 4.6 in C++ mode.
13109         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13110         (HAVE_STATIC_ASSERT): New macro.
13111         (verify_true, verify): Use 'static_assert' if it is supported and
13112         '_Static_assert' is not supported.
13113
13114 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13115
13116         allocator: New module.
13117         * modules/allocator, lib/allocator.c: New files.
13118         * lib/allocator.h (stdlib_allocator): New decl.
13119         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13120         Remove.  Do not include <stdlib.h>.
13121         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13122         * modules/careadlinkat (Files): Remove lib/allocator.h.
13123         (Depends-on): Add allocator.
13124
13125         stdlib: let modules use system malloc, realloc
13126         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13127         if !_GL_USE_STDLIB_ALLOC.
13128         (malloc, realloc): Limit this change to a smaller scope.
13129
13130         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13131         (malloc, realloc): Don't #undef; no longer needed.
13132         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13133         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13134         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13135         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13136         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13137         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13138         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13139         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13140
13141         careadlinkat: rename members to avoid problem
13142         * lib/allocator.h (struct allocator): Rename members from
13143         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13144         and realloc are #define'd.  Reported by Eric Blake in
13145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13146         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13147
13148 2011-04-08  Eric Blake  <eblake@redhat.com>
13149
13150         nonblocking: reduce dependency
13151         * tests/test-nonblocking.c: Only test sockets when in use.
13152         * modules/nonblocking-tests (Depends-on): Drop socket.
13153         (Makefile.am): Link even if sockets are not present.
13154         * modules/pipe2-tests (Makefile.am): Likewise.
13155         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13156
13157         pipe2: fix O_NONBLOCK support on mingw
13158         * modules/pipe2 (Depends-on): Add nonblocking.
13159         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13160         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13161         * tests/test-nonblocking.c (main): Likewise.
13162         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13163
13164         fcntl-h: fix O_ACCMODE on cygwin
13165         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13166         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13167
13168         pipe-filter: drop O_NONBLOCK workarounds
13169         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13170         * modules/pipe-filter-ii (Depends-on): Likewise.
13171         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13172
13173         nonblocking: provide O_NONBLOCK for mingw
13174         * modules/nonblocking (Depends-on): Add open.
13175         (configure.ac): Set new witness macro.
13176         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13177         * modules/fcntl-h (Makefile.am): Substitute it.
13178         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13179         nonblocking module is in use.
13180         * lib/nonblocking.c: Adjust portability test.
13181         * lib/open.c (open): Don't let native open see gnulib flag.
13182         * tests/test-fcntl-h.c (main): Enhance test.
13183         * tests/test-open.h (test_open): Likewise.
13184         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13185
13186         careadlinkat: fix compilation error on mingw
13187         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13188         within struct allocator.
13189
13190 2011-04-06  Eric Blake  <eblake@redhat.com>
13191
13192         binary-io: relicense under LGPLv2+
13193         * modules/binary-io (License): Relax to LGPLv2+.
13194         Requested for libvirt, and required by pipe2.
13195
13196 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13197
13198         verify: use _Static_assert if available
13199         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13200         (verify_true, verify): Use it if available.  This generates better
13201         diagnostics with GCC 4.6.0 and later.
13202
13203 2011-04-05  Bruno Haible  <bruno@clisp.org>
13204
13205         Remove leftover generated .h files after config.status changed.
13206
13207         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13208         GL_GENERATE_ALLOCA_H.
13209         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13210         GL_GENERATE_ALLOCA_H evaluates to false.
13211
13212         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13213         GL_GENERATE_ARGZ_H.
13214         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13215         evaluates to false.
13216
13217         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13218         GL_GENERATE_BYTESWAP_H.
13219         * modules/byteswap (Makefile.am): Remove byteswap.h if
13220         GL_GENERATE_BYTESWAP_H evaluates to false.
13221
13222         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13223         GL_GENERATE_ERRNO_H.
13224         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13225         evaluates to false.
13226
13227         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13228         GL_GENERATE_FLOAT_H.
13229         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13230         evaluates to false.
13231
13232         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13233         GL_GENERATE_FNMATCH_H.
13234         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13235         GL_GENERATE_FNMATCH_H evaluates to false.
13236
13237         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13238         GL_GENERATE_GLOB_H.
13239         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13240         evaluates to false.
13241
13242         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13243         automake conditional GL_GENERATE_ICONV_H.
13244         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13245         evaluates to false.
13246
13247         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13248         GL_GENERATE_NETINET_IN_H.
13249         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13250         GL_GENERATE_NETINET_IN_H evaluates to false.
13251
13252         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13253         conditional GL_GENERATE_PTHREAD_H.
13254         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13255         * modules/pthread (Makefile.am): Remove pthread.h if
13256         GL_GENERATE_PTHREAD_H evaluates to false.
13257
13258         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13259         GL_GENERATE_SCHED_H.
13260         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13261         evaluates to false.
13262
13263         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13264         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13265         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13266         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13267
13268         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13269         GL_GENERATE_STDARG_H.
13270         * modules/stdarg (Makefile.am): Remove stdarg.h if
13271         GL_GENERATE_STDARG_H evaluates to false.
13272
13273         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13274         GL_GENERATE_STDBOOL_H.
13275         * modules/stdbool (Makefile.am): Remove stdbool.h if
13276         GL_GENERATE_STDBOOL_H evaluates to false.
13277
13278         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13279         conditional GL_GENERATE_STDDEF_H.
13280         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13281         * modules/stddef (Makefile.am): Remove stddef.h if
13282         GL_GENERATE_STDDEF_H evaluates to false.
13283
13284         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13285         GL_GENERATE_STDINT_H.
13286         * modules/stdint (Makefile.am): Remove stdint.h if
13287         GL_GENERATE_STDINT_H evaluates to false.
13288
13289         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13290         GL_GENERATE_SYSEXITS_H.
13291         * modules/sysexits (Makefile.am): Remove sysexits.h if
13292         GL_GENERATE_SYSEXITS_H evaluates to false.
13293
13294         Reported by Karl Berry and Ralf Wildenhues.
13295
13296 2011-04-05  Bruno Haible  <bruno@clisp.org>
13297
13298         Ensure to rebuild generated .h files when config.status has changed.
13299         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13300         config.status.
13301         * modules/ctype (Makefile.am): Likewise.
13302         * modules/dirent (Makefile.am): Likewise.
13303         * modules/errno (Makefile.am): Likewise.
13304         * modules/fcntl-h (Makefile.am): Likewise.
13305         * modules/float (Makefile.am): Likewise.
13306         * modules/getopt-posix (Makefile.am): Likewise.
13307         * modules/glob (Makefile.am): Likewise.
13308         * modules/iconv-h (Makefile.am): Likewise.
13309         * modules/inttypes (Makefile.am): Likewise.
13310         * modules/langinfo (Makefile.am): Likewise.
13311         * modules/locale (Makefile.am): Likewise.
13312         * modules/math (Makefile.am): Likewise.
13313         * modules/netdb (Makefile.am): Likewise.
13314         * modules/netinet_in (Makefile.am): Likewise.
13315         * modules/poll-h (Makefile.am): Likewise.
13316         * modules/pthread (Makefile.am): Likewise.
13317         * modules/pty (Makefile.am): Likewise.
13318         * modules/sched (Makefile.am): Likewise.
13319         * modules/search (Makefile.am): Likewise.
13320         * modules/selinux-h (Makefile.am): Likewise.
13321         * modules/signal (Makefile.am): Likewise.
13322         * modules/spawn (Makefile.am): Likewise.
13323         * modules/stdarg (Makefile.am): Likewise.
13324         * modules/stdbool (Makefile.am): Likewise.
13325         * modules/stddef (Makefile.am): Likewise.
13326         * modules/stdint (Makefile.am): Likewise.
13327         * modules/stdio (Makefile.am): Likewise.
13328         * modules/stdlib (Makefile.am): Likewise.
13329         * modules/string (Makefile.am): Likewise.
13330         * modules/strings (Makefile.am): Likewise.
13331         * modules/sys_file (Makefile.am): Likewise.
13332         * modules/sys_ioctl (Makefile.am): Likewise.
13333         * modules/sys_select (Makefile.am): Likewise.
13334         * modules/sys_socket (Makefile.am): Likewise.
13335         * modules/sys_stat (Makefile.am): Likewise.
13336         * modules/sys_time (Makefile.am): Likewise.
13337         * modules/sys_times (Makefile.am): Likewise.
13338         * modules/sys_utsname (Makefile.am): Likewise.
13339         * modules/sys_wait (Makefile.am): Likewise.
13340         * modules/sysexits (Makefile.am): Likewise.
13341         * modules/termios (Makefile.am): Likewise.
13342         * modules/time (Makefile.am): Likewise.
13343         * modules/unistd (Makefile.am): Likewise.
13344         * modules/wchar (Makefile.am): Likewise.
13345         * modules/wctype-h (Makefile.am): Likewise.
13346         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13347
13348 2011-04-05  Bruno Haible  <bruno@clisp.org>
13349
13350         pipe2: Relicense under LGPLv2+.
13351         * modules/pipe2 (License): Change to LGPLv2+.
13352         Requested by Eric Blake, for libvirt.
13353
13354 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13355
13356         bootstrap: compute gnulib_extra_files after updating build_aux
13357         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13358         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13359
13360 2011-04-05  Eric Blake  <eblake@redhat.com>
13361
13362         bootstrap: preserve git whitelist item sorting
13363         * build-aux/bootstrap (sort_patterns): New function.
13364         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13365
13366 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13367
13368         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13369         sc_space_tab check.
13370
13371 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13372
13373         areadlink, areadlinkat: rewrite in terms of careadlinkat
13374         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13375         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13376         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13377         (malloc, realloc): Remove #undefs.
13378         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13379         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13380         readlink, ssize_t, stdint, unistd.
13381         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13382         areadlink, stdint.
13383
13384         careadlinkat: new module
13385         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13386         * modules/careadlinkat: New files, written by me with
13387         a review and feedback from Ben Pfaff in
13388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13389
13390 2011-04-01  Bruno Haible  <bruno@clisp.org>
13391
13392         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13393         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13394         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13395         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13396         Reported by Bruce Korb <bruce.korb@gmail.com>.
13397
13398 2011-04-01  Bruno Haible  <bruno@clisp.org>
13399
13400         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13401         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13402         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13403         * modules/wcpcpy (Depends-on): Add extensions.
13404         * modules/wcpncpy (Depends-on): Likewise.
13405         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13406         systems.
13407         * doc/posix-functions/wcpncpy.texi: Likewise.
13408         * doc/posix-functions/wcwidth.texi: Likewise.
13409
13410 2011-03-31  Eric Blake  <eblake@redhat.com>
13411
13412         nonblocking: fix mingw test failures
13413         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13414         non-blocking flag on regular file.
13415         (get_nonblocking_flag): Set errno on invalid fd.
13416         * tests/test-nonblocking.c (main): Avoid test failure on
13417         directories if fchdir is not active.
13418         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13419
13420 2011-03-31  Bruno Haible  <bruno@clisp.org>
13421
13422         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13423         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13424         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13425         Reported by Simon Josefsson <simon@josefsson.org>.
13426
13427 2011-03-31  Bruno Haible  <bruno@clisp.org>
13428         and Eric Blake  <eblake@redhat.com>
13429
13430         nonblocking: new module
13431         * modules/nonblocking: New module.
13432         * modules/nonblocking-tests: Likewise.
13433         * lib/nonblocking.h: New file.
13434         * lib/nonblocking.c: Likewise.
13435         * tests/test-nonblocking.c: New test.
13436         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13437
13438 2011-03-30  Bruno Haible  <bruno@clisp.org>
13439
13440         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13441         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13442         instead of 'printf' format for GCC >= 4.4.
13443         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13444         (fprintf, printf, vfprintf, vprintf): Declare with
13445         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13446         the system's vfprintf() function.
13447         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13448
13449 2011-03-30  Eric Blake  <eblake@redhat.com>
13450
13451         passfd: fix scoping bug
13452         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13453         before sendmsg/recvmsg.
13454
13455         passfd: standardize coding conventions
13456         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13457         can be learned at compile time.
13458         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13459         ifdefs.
13460         (sendfd, recvfd): Follow gnulib code conventions.
13461
13462         passfd: fix incorrect sendmsg arguments
13463         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13464         incorrect msg_controllen value.
13465         * modules/passfd-tests (Depends-on): Check for alarm.
13466         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13467         Reported by Bastien ROUCARIES.
13468
13469 2011-03-30  Bruno Haible  <bruno@clisp.org>
13470
13471         c-strcasestr: Relicense under LGPLv2+.
13472         * modules/c-strcasestr (License): Change to LGPLv2+.
13473         Requested by Eric Blake, for libvirt.
13474
13475 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13476
13477         * users.txt: Add libidn2.  Fix libtasn1 link.
13478
13479 2011-03-30  Jim Meyering  <meyering@redhat.com>
13480
13481         tests: readlink* ("",... fails with EINVAL on newer kernels
13482         readlink and readlinkat have typically failed with ENOENT for
13483         the invalid, empty file name,  "".  However, with the advent
13484         of linux-2.6.39, they fail with EINVAL.
13485         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13486         when operating on the empty file name.
13487         * tests/test-readlink.h (test_readlink): Likewise.
13488
13489 2011-03-29  Bruno Haible  <bruno@clisp.org>
13490
13491         Relicense some modules under LGPLv2+, for libidn2.
13492         * modules/array-mergesort (License): Change to LGPLv2+.
13493         * modules/c-strcaseeq (License): Likewise.
13494         * modules/striconveh (License): Likewise.
13495         * modules/striconveha (License): Likewise.
13496         * modules/uniconv/base (License): Likewise.
13497         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13498         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13499         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13500         * modules/unictype/base (License): Likewise.
13501         * modules/unictype/bidiclass-of (License): Likewise.
13502         * modules/unictype/category-M (License): Likewise.
13503         * modules/unictype/category-none (License): Likewise.
13504         * modules/unictype/category-of (License): Likewise.
13505         * modules/unictype/category-test (License): Likewise.
13506         * modules/unictype/category-test-withtable (License): Likewise.
13507         * modules/unictype/combining-class (License): Likewise.
13508         * modules/unictype/joiningtype-of (License): Likewise.
13509         * modules/unictype/scripts (License): Likewise.
13510         * modules/uninorm/base (License): Likewise.
13511         * modules/uninorm/canonical-decomposition (License): Likewise.
13512         * modules/uninorm/composition (License): Likewise.
13513         * modules/uninorm/decompose-internal (License): Likewise.
13514         * modules/uninorm/decomposition-table (License): Likewise.
13515         * modules/uninorm/nfc (License): Likewise.
13516         * modules/uninorm/nfd (License): Likewise.
13517         * modules/uninorm/u32-normalize (License): Likewise.
13518         * modules/unistr/base (License): Likewise.
13519         * modules/unistr/u32-cpy (License): Likewise.
13520         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13521         * modules/unistr/u32-to-u8 (License): Likewise.
13522         * modules/unistr/u32-uctomb (License): Likewise.
13523         * modules/unistr/u8-check (License): Likewise.
13524         * modules/unistr/u8-mblen (License): Likewise.
13525         * modules/unistr/u8-mbtouc (License): Likewise.
13526         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13527         * modules/unistr/u8-mbtoucr (License): Likewise.
13528         * modules/unistr/u8-prev (License): Likewise.
13529         * modules/unistr/u8-strlen (License): Likewise.
13530         * modules/unistr/u8-to-u32 (License): Likewise.
13531         * modules/unistr/u8-uctomb (License): Likewise.
13532         * modules/unitypes (License): Likewise.
13533         Requested by Simon Josefsson.
13534
13535 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13536
13537         lib-symbol-visibility: Add a notice.
13538         * modules/lib-symbol-visibility (Notice): New field.
13539
13540 2011-03-29  Bruno Haible  <bruno@clisp.org>
13541
13542         getaddrinfo: Doc fix.
13543         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13544         section "fixed in Gnulib".
13545
13546 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13547
13548         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13549         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13550
13551 2011-03-26  Bruno Haible  <bruno@clisp.org>
13552
13553         unictype/property-byname: Reduce the number of load-time relocations.
13554         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13555         (UC_PROPERTY_INDEX_*): New enumeration values.
13556         (uc_property_byname): Convert an index from the lookup table to an
13557         uc_property_t.
13558         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13559         values.
13560
13561 2011-03-26  Bruno Haible  <bruno@clisp.org>
13562
13563         unictype/property-byname: Allow omitted word separators and aliases.
13564         * lib/unictype/pr_byname.gperf: Add property names without word
13565         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13566         for 'space'.
13567
13568 2011-03-26  Bruno Haible  <bruno@clisp.org>
13569
13570         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13571         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13572         also hyphens to space.
13573         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13574         without spaces.
13575         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13576
13577 2011-03-26  Bruno Haible  <bruno@clisp.org>
13578
13579         unictype/joiningtype-byname: Recognize long names as well.
13580         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13581         a long name.
13582         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13583         unictype/joiningtype_byname.h.
13584         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13585         * lib/unictype/joiningtype_byname.gperf: New file.
13586         * modules/unictype/joiningtype-byname (Files): Add
13587         lib/unictype/joiningtype_byname.gperf.
13588         (Depends-on): Add gperf.
13589         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13590         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13591         long names.
13592
13593         Tests for module 'unictype/joiningtype-longname'.
13594         * modules/unictype/joiningtype-longname-tests: New file.
13595         * tests/unictype/test-joiningtype_longname.c: New file.
13596
13597         New module 'unictype/joiningtype-longname'.
13598         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13599         * lib/unictype/joiningtype_longname.c: New file.
13600         * modules/unictype/joiningtype-longname: New file.
13601         * modules/unictype/joiningtype-all (Depends-on): Add
13602         unictype/joiningtype-longname.
13603
13604 2011-03-26  Bruno Haible  <bruno@clisp.org>
13605
13606         unictype/bidiclass-byname: Recognize long names as well.
13607         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13608         name.
13609         * lib/unictype/bidi_byname.c: Include <string.h>,
13610         unictype/bidi_byname.h.
13611         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13612         * lib/unictype/bidi_byname.gperf: New file.
13613         * modules/unictype/bidiclass-byname (Files): Add
13614         lib/unictype/bidi_byname.gperf.
13615         (Depends-on): Add gperf.
13616         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13617         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13618         long names.
13619
13620         Tests for module 'unictype/bidiclass-longname'.
13621         * modules/unictype/bidiclass-longname-tests: New file.
13622         * tests/unictype/test-bidi_longname.c: New file.
13623
13624         New module 'unictype/bidiclass-longname'.
13625         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13626         * lib/unictype/bidi_longname.c: New file.
13627         * modules/unictype/bidiclass-longname: New file.
13628         * modules/unictype/bidiclass-all (Depends-on): Add
13629         unictype/bidiclass-longname.
13630
13631 2011-03-26  Bruno Haible  <bruno@clisp.org>
13632
13633         unictype/bidi*: Rename modules.
13634         * modules/unictype/bidiclass-all: Renamed from
13635         modules/unictype/bidicategory-all.
13636         * modules/unictype/bidiclass-name: Renamed from
13637         modules/unictype/bidiclass-name.
13638         (Description): Update.
13639         * modules/unictype/bidiclass-name-tests: Renamed from
13640         modules/unictype/bidicategory-name-tests.
13641         * modules/unictype/bidiclass-byname: Renamed from
13642         modules/unictype/bidicategory-byname.
13643         (Description): Update.
13644         * modules/unictype/bidiclass-byname-tests: Renamed from
13645         modules/unictype/bidicategory-byname-tests.
13646         * modules/unictype/bidiclass-of: Renamed from
13647         modules/unictype/bidicategory-of.
13648         (Description): Update.
13649         * modules/unictype/bidiclass-of-tests: Renamed from
13650         modules/unictype/bidicategory-of-tests.
13651         * modules/unictype/bidiclass-test: Renamed from
13652         modules/unictype/bidicategory-test.
13653         (Description): Update.
13654         * modules/unictype/bidiclass-test-tests: Renamed from
13655         modules/unictype/bidicategory-test-tests.
13656         * modules/unictype/bidicategory-all: New file, a simple redirection.
13657         * modules/unictype/bidicategory-name: Likewise.
13658         * modules/unictype/bidicategory-byname: Likewise.
13659         * modules/unictype/bidicategory-of: Likewise.
13660         * modules/unictype/bidicategory-test: Likewise.
13661         * modules/unictype/property-bidi-* (Dependencies): Update.
13662         * lib/unictype/bidi_*.c: Update comment.
13663
13664 2011-03-26  Bruno Haible  <bruno@clisp.org>
13665
13666         unictype/bidi*: Rename functions, part 2.
13667         * modules/unictype/bidicategory-name (configure.ac): Update required
13668         libunistring version.
13669         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13670
13671 2011-03-25  Bruno Haible  <bruno@clisp.org>
13672
13673         New module 'unictype/combining-class-all'.
13674         * modules/unictype/combining-class-all: New file.
13675
13676         Tests for module 'unictype/combining-class-byname'.
13677         * modules/unictype/combining-class-byname-tests: New file.
13678         * tests/unictype/test-combiningclass_byname.c: New file.
13679
13680         New module 'unictype/combining-class-byname'.
13681         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13682         * lib/unictype/combiningclass_byname.c: New file.
13683         * lib/unictype/combiningclass_byname.gperf: New file.
13684         * modules/unictype/combining-class-byname: New file.
13685
13686         Tests for module 'unictype/combining-class-longname'.
13687         * modules/unictype/combining-class-longname-tests: New file.
13688         * tests/unictype/test-combiningclass_longname.c: New file.
13689
13690         New module 'unictype/combining-class-longname'.
13691         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13692         * lib/unictype/combiningclass_longname.c: New file.
13693         * modules/unictype/combining-class-longname: New file.
13694
13695         Tests for module 'unictype/combining-class-name'.
13696         * modules/unictype/combining-class-name-tests: New file.
13697         * tests/unictype/test-combiningclass_name.c: New file.
13698
13699         New module 'unictype/combining-class-name'.
13700         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13701         * lib/unictype/combiningclass_name.c: New file.
13702         * modules/unictype/combining-class-name: New file.
13703
13704 2011-03-25  Bruno Haible  <bruno@clisp.org>
13705
13706         unictype/combining-class: Rename source files.
13707         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13708         of unictype/combining.h.
13709         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13710         Update.
13711         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13712         * modules/unictype/combining-class (Description): Fix.
13713         (Files, Makefile.am): Update.
13714         * tests/unictype/test-combiningclass.c: Renamed from
13715         tests/unictype/test-combining.c.
13716         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13717
13718 2011-03-25  Bruno Haible  <bruno@clisp.org>
13719
13720         unictype: Update list of canonical combining classes.
13721         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13722
13723 2011-03-25  Bruno Haible  <bruno@clisp.org>
13724
13725         unictype/category-byname: Recognize long names as well.
13726         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13727         a long name.
13728         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13729         unictype/categ_byname.h.
13730         (UC_CATEGORY_INDEX_*): New enumeration values.
13731         (uc_general_category_byname): Use uc_general_category_lookup and
13732         convert from index to value.
13733         * lib/unictype/categ_byname.gperf: New file.
13734         * modules/unictype/category-byname (Files): Add
13735         lib/unictype/categ_byname.gperf.
13736         (Depends-on): Add gperf.
13737         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13738         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13739         long names.
13740
13741         Tests for module 'unictype/category-longname'.
13742         * modules/unictype/category-longname-tests: New file.
13743         * tests/unictype/test-categ_longname.c: New file.
13744
13745         New module 'unictype/category-longname'.
13746         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13747         * lib/unictype/categ_longname.c: New file.
13748         * modules/unictype/category-longname: New file.
13749         * modules/unictype/category-all (Depends-on): Add it.
13750
13751 2011-03-25  Bruno Haible  <bruno@clisp.org>
13752
13753         Tests for module 'unictype/category-LC'.
13754         * modules/unictype/category-LC-tests: New file.
13755         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13756
13757         New module 'unictype/category-LC'.
13758         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13759         (UC_CATEGORY_LC): New declaration.
13760         (UC_CASED_LETTER): New macro.
13761         * lib/gen-uni-tables.c (is_category_LC): New function.
13762         (output_categories): Also handle category LC.
13763         (UC_CATEGORY_MASK_LC): New enumeration value.
13764         (general_category_byname): Also handle category LC.
13765         * lib/unictype/categ_LC.c: New file.
13766         * lib/unictype/categ_LC.h: New file, automatically generated.
13767         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13768         category LC.
13769         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13770         * modules/unictype/category-LC: New file.
13771         * modules/unictype/category-byname (Depends-on): Add
13772         unictype/category-LC.
13773         * modules/unictype/category-all (Depends-on): Likewise.
13774
13775 2011-03-25  Eric Blake  <eblake@redhat.com>
13776
13777         xmalloc: revert yesterday's regression
13778         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13779         realloc's underlying behavior (allowing allocation of zero-size
13780         objects, especially if malloc-gnu is also in use).
13781
13782 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13783
13784         maint.mk: add missing version to VC-tag
13785         * top/maint.mk: git tag was missing actual tag name; add it.
13786
13787         valgrind: do leak checking, and exit with code 1 on error (not 0)
13788         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13789         to VALGRIND.
13790
13791 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13792
13793         posix-modules: say what it does.
13794         * posix-modules: Add a line to the --help output saying what it does.
13795
13796 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13797
13798         xmalloc: Do not leak if underlying realloc is C99 compatible.
13799         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13800         This avoids a leak on C99-based systems.  See
13801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13802
13803 2011-03-24  Eric Blake  <eblake@redhat.com>
13804
13805         realloc: document portability problem
13806         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13807         passing 0 size to realloc.
13808
13809 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13810
13811         doc: update users.txt
13812         * users.txt: Add cvsps, tmpwatch
13813
13814 2011-03-23  Matt Rice  <ratmice@gmail.com>
13815
13816         doc: update users.txt
13817         * users.txt: Add gdb.
13818
13819 2011-03-23  Jim Meyering  <meyering@redhat.com>
13820
13821         doc: update users.txt
13822         Looking through matches up to the following URL (there are still
13823         several more pages), I found several projects that use gnulib:
13824         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13825         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13826         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13827
13828 2011-03-22  Bruno Haible  <bruno@clisp.org>
13829
13830         unictype/bidi*: Rename functions.
13831         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13832         uc_bidi_class, uc_is_bidi_class): New declarations.
13833         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13834         uc_bidi_category_byname.
13835         (uc_bidi_category_byname): New function.
13836         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13837         u_bidi_category_name.
13838         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13839         (uc_bidi_category_name): New function.
13840         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13841         uc_bidi_category.
13842         (uc_bidi_category): New function.
13843         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13844         uc_is_bidi_category. Invoke uc_bidi_class.
13845         (uc_is_bidi_category): New function.
13846         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13847         instead of uc_bidi_category_byname.
13848         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13849         instead of uc_bidi_category_name.
13850         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13851         uc_bidi_category.
13852         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13853         instead of uc_is_bidi_category.
13854
13855 2011-03-21  Bruno Haible  <bruno@clisp.org>
13856
13857         New module 'unictype/joininggroup-all'.
13858         * modules/unictype/joininggroup-all: New file.
13859
13860         Tests for module 'unictype/joininggroup-of'.
13861         * modules/unictype/joininggroup-of-tests: New file.
13862         * tests/unictype/test-joininggroup_of.c: New file.
13863         * tests/unictype/test-joininggroup_of.h: New file, automatically
13864         generated by gen-uni-tables.
13865
13866         New module 'unictype/joininggroup-of'.
13867         * modules/unictype/joininggroup-of: New file.
13868         * lib/unictype/joininggroup_of.c: New file.
13869         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13870         gen-uni-tables.
13871
13872         Tests for module 'unictype/joininggroup-byname'.
13873         * modules/unictype/joininggroup-byname-tests: New file.
13874         * tests/unictype/test-joininggroup_byname.c: New file.
13875
13876         New module 'unictype/joininggroup-byname'.
13877         * modules/unictype/joininggroup-byname: New file.
13878         * lib/unictype/joininggroup_byname.c: New file.
13879         * lib/unictype/joininggroup_byname.gperf: New file.
13880
13881         Tests for module 'unictype/joininggroup-name'.
13882         * modules/unictype/joininggroup-name-tests: New file.
13883         * tests/unictype/test-joininggroup_name.c: New file.
13884
13885         New module 'unictype/joininggroup-name'.
13886         * modules/unictype/joininggroup-name: New file.
13887         * lib/unictype/joininggroup_name.c: New file.
13888         * lib/unictype/joininggroup_name.h: New file.
13889
13890         New module 'unictype/joiningtype-all'.
13891         * modules/unictype/joiningtype-all: New file.
13892
13893         Tests for module 'unictype/joiningtype-of'.
13894         * modules/unictype/joiningtype-of-tests: New file.
13895         * tests/unictype/test-joiningtype_of.c: New file.
13896         * tests/unictype/test-joiningtype_of.h: New file, automatically
13897         generated by gen-uni-tables.
13898
13899         New module 'unictype/joiningtype-of'.
13900         * modules/unictype/joiningtype-of: New file.
13901         * lib/unictype/joiningtype_of.c: New file.
13902         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13903         gen-uni-tables.
13904
13905         Tests for module 'unictype/joiningtype-byname'.
13906         * modules/unictype/joiningtype-byname-tests: New file.
13907         * tests/unictype/test-joiningtype_byname.c: New file.
13908
13909         New module 'unictype/joiningtype-byname'.
13910         * modules/unictype/joiningtype-byname: New file.
13911         * lib/unictype/joiningtype_byname.c: New file.
13912
13913         Tests for module 'unictype/joiningtype-name'.
13914         * modules/unictype/joiningtype-name-tests: New file.
13915         * tests/unictype/test-joiningtype_name.c: New file.
13916
13917         New module 'unictype/joiningtype-name'.
13918         * modules/unictype/joiningtype-name: New file.
13919         * lib/unictype/joiningtype_name.c: New file.
13920
13921         unictype: Add support for Arabic shaping properties.
13922         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13923         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13924         declarations.
13925         (UC_JOINING_GROUP_*): New enumeration values.
13926         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13927         declarations.
13928         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13929         (unicode_joining_type): New variable.
13930         (UC_JOINING_GROUP_*): New enumeration values.
13931         (unicode_joining_group): New variable.
13932         (fill_arabicshaping, joining_type_as_c_identifier,
13933         output_joining_type_test, output_joining_type,
13934         joining_group_as_c_identifier, output_joining_group_test,
13935         output_joining_group): New functions.
13936         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13937         fill_arabicshaping and output_joining_type_test, output_joining_type,
13938         output_joining_group_test, output_joining_group.
13939         Reported by Simon Josefsson.
13940
13941 2011-03-21  Jim Meyering  <meyering@redhat.com>
13942
13943         strftime: fix a bug in yesterday's change
13944         * lib/strftime.c (add): Accommodate width's initial value of -1.
13945         Otherwise, nstrftime would copy uninitialized data into
13946         the result buffer.
13947
13948 2011-03-21  Jim Meyering  <meyering@redhat.com>
13949
13950         tests: add strftime-tests module
13951         * tests/test-strftime.c: New file.
13952         * modules/strftime-tests: New module.
13953
13954 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13955
13956         strftime: don't assume a byte count fits in 'int'
13957         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13958         found this problem by static analysis, using gcc -Wstrict-overflow
13959         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13960         on an integer overflow having undefined behavior, but it turns out
13961         that the argument is a size, which might not fit in 'int' anyway,
13962
13963 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13964
13965         stdio: don't require ignore_value around fwrite
13966
13967         This patch works around libc bug 11959
13968         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13969         Without this patch, applications must often write
13970         ignore_value (fwrite (...)) even though the ignore_value is
13971         not helpful here.  It's common to write many objects, using
13972         fwrite/printf/etc., and then use ferror to detect output error.
13973
13974         I considered making this patch optional, but decided against it,
13975         because libc is obviously being inconsistent here: there is no
13976         reason libc should insist that user code must inspect fwrite
13977         return's value without also insisting that it inspect printf's,
13978         putchar's, etc.  If user code wants to have a strict style where
13979         all these functions' values are checked (so that ferror need not
13980         be checked), we could add support for that style in a new gnulib
13981         module, but in the meantime it's better to be consistent and to
13982         support common usage.
13983
13984         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13985         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13986         that we are compiling in checking mode, and if not C++, and
13987         if not already wrapping fwrite for some other reason.
13988         (fwrite): #define to rpl_fwrite if the latter is defined.
13989
13990 2011-03-20  Bruno Haible  <bruno@clisp.org>
13991
13992         verror: Fix compilation error introduced on 2011-02-13.
13993         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13994         instead of __attribute__.
13995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13996
13997 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13998             Bruno Haible  <bruno@clisp.org>
13999
14000         socklen: do not depend on sys_socket
14001         While trying to modify Emacs to use gnulib's socklen module,
14002         I discovered a circular dependency: socklen depends on sys_socket
14003         and vice versa.  Emacs can use socklen, but it does not need
14004         sys_socket because it has its own substitute for sys/socket.h.
14005         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14006         gl_TYPE_SOCKLEN_T.
14007         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14008         gl_PREREQ_SYS_H_SOCKET.
14009         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14010         gl_PREREQ_SYS_H_SOCKET.
14011         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14012         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14013         * modules/socklen (Depends-on): Do not depend on sys_socket.
14014         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14015
14016 2011-03-20  Jim Meyering  <meyering@redhat.com>
14017
14018         maint.mk: sort file names *after* new transformation
14019         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14020         prefix would have led to an unwarranted failure in GNU parted.
14021         Sort after that transformation.
14022
14023 2011-03-19  Jim Meyering  <meyering@redhat.com>
14024
14025         maint.mk: fix po-file syntax-check rule
14026         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14027         Patch by Bruno Haible.
14028
14029 2011-03-19  Bruno Haible  <bruno@clisp.org>
14030
14031         socklen: Update comment.
14032         * m4/socklen.m4: Update comment about platforms.
14033
14034 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14035             Bruno Haible  <bruno@clisp.org>
14036
14037         inet_ntop, inet_pton: Simplify.
14038         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14039         documented to provide socklen_t and we already depend on sys_socket.
14040         * modules/inet_pton (Depends-on): Likewise.
14041         * lib/arpa_inet.in.h: Adjust comment.
14042
14043 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14044             Bruno Haible  <bruno@clisp.org>
14045
14046         netdb: Simplify.
14047         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14048         documented to provide socklen_t and we already depend on sys_socket.
14049         * lib/netdb.in.h: Adjust comment.
14050
14051 2011-03-19  Bruno Haible  <bruno@clisp.org>
14052
14053         sys_socket, netdb: Document problem with socklen_t.
14054         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14055         platforms.
14056         * doc/posix-headers/netdb.texi: Likewise.
14057
14058 2011-03-18  Eric Blake  <eblake@redhat.com>
14059
14060         maint.mk: let po check work in VPATH build
14061         * top/maint.mk (po_file): Allow cfg.mk override.
14062         (sc_po_check): Allow VPATH use.
14063         Reported by Jiri Denemark.
14064
14065 2011-03-16  Jim Meyering  <meyering@redhat.com>
14066
14067         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14068         Before, you would have had to create one .x-sc_ file per rule in order
14069         to exempt offending files.  Now, you may instead use a Make variable --
14070         usually defined in cfg.mk -- whose name identifies the affected rule.
14071         * top/maint.mk (_sc_excl): Define.
14072         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14073         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14074
14075 2011-03-13  Bruno Haible  <bruno@clisp.org>
14076
14077         ignore-value tests: Avoid warnings.
14078         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14079         empty for gcc < 3.4.
14080
14081 2011-03-13  Bruno Haible  <bruno@clisp.org>
14082
14083         passfd: Fix link error on Solaris.
14084         * modules/passfd (Description): Correct.
14085         (Depends-on): Add socketlib.
14086         (Link): New section.
14087         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14088
14089 2011-03-13  Bruno Haible  <bruno@clisp.org>
14090
14091         passfd: Fix link error on AIX 5.2.
14092         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14093
14094 2011-03-13  Bruno Haible  <bruno@clisp.org>
14095
14096         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14097         * lib/sys_socket.in.h: Include <stddef.h>.
14098         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14099         CMSG_FIRSTHDR. Remove unused variable.
14100
14101 2011-03-13  Bruno Haible  <bruno@clisp.org>
14102
14103         passfd: Fix compilation error on OpenBSD.
14104         * lib/passfd.c: Include <sys/uio.h>.
14105
14106 2011-03-13  Bruno Haible  <bruno@clisp.org>
14107
14108         passfd test: Fix warnings.
14109         * tests/test-passfd.c: Include <sys/wait.h>.
14110         (main): Fix typo.
14111
14112 2011-03-13  Bruno Haible  <bruno@clisp.org>
14113
14114         passfd module, part 4, tweaks.
14115         * tests/test-passfd.c: Reorder includes.
14116         (main): Fix perror and printf calls.
14117
14118 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14119
14120         passfd module, part 4.
14121         * modules/passfd-tests: New file.
14122         * tests/test-passfd.c: New file.
14123
14124 2011-03-13  Jim Meyering  <meyering@redhat.com>
14125
14126         Makefile: rely on GNU make; derive syntax-check rule names
14127         Rather than requiring that each sc_ rule be listed as a dependent
14128         of "check", use features of GNU make to derive the list.
14129         * Makefile (syntax-check-rules): Define.
14130         (check): Depend on the new variable, not the hard-coded list.
14131
14132 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14133             Bruno Haible  <bruno@clisp.org>
14134
14135         passfd module, part 3.
14136         * lib/passfd.h (recvfd): Add a flags argument.
14137         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14138         (recvfd): Add a flags argument.
14139         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14140         exists.
14141         * modules/passfd (Depends-on): Add cloexec.
14142         Suggested by Eric Blake.
14143
14144 2011-03-13  Bruno Haible  <bruno@clisp.org>
14145
14146         passfd module, part 2, tweaks.
14147         * modules/passfd (Files): Reorder.
14148         (Depends-on): Remove errno.
14149         (Include): Remove <sys/socket.h>, <sys/un.h>.
14150         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14151         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14152         specification header. Include <sys/socket.h> always. Don't include
14153         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14154         (sendfd): Clarify that it sets errno when it fails.
14155         (recvfd): Fix specification.
14156
14157 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14158
14159         passfd module, part 2.
14160         * modules/passfd: New file.
14161         * lib/passfd.h: New file.
14162         * lib/passfd.c: New file.
14163
14164 2011-03-12  Bruno Haible  <bruno@clisp.org>
14165
14166         wcswidth, mbswidth: Avoid integer overflow.
14167         * lib/wcswidth.c: Include <limits.h>.
14168         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14169         * lib/mbswidth.c: Include <limits.h>.
14170         (mbsnwidth): Avoid 'int' overflow.
14171         Reported by Jim Meyering.
14172
14173 2011-03-12  Bruno Haible  <bruno@clisp.org>
14174
14175         futimens, utimensat: Avoid endless recursion on Solaris 10.
14176         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14177         Solaris.
14178         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14179         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14180
14181 2011-03-11  Jim Meyering  <meyering@redhat.com>
14182
14183         maint.mk: relax a regexp to accommodate other formatting styles
14184         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14185         between "ngettext" and the following "(".
14186
14187 2011-03-11  Pádraig Brady <P@draigBrady.com>
14188
14189         maint.mk: suppress a false positive warning
14190         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14191         diagnostics are marked with ngettext.
14192
14193 2011-03-10  Eric Blake  <eblake@redhat.com>
14194
14195         wchar: add explicit dependencies, for Tru64
14196         * modules/mbmemcasecoll (Depends-on): Add wchar.
14197         * modules/mbtowc (Depends-on): Likewise.
14198         * modules/vasnprintf (Depends-on): Likewise.
14199         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14200         * modules/wctomb (Depends-on): Likewise.
14201         Reported by Peter O'Gorman.
14202
14203 2011-03-08  Bruno Haible  <bruno@clisp.org>
14204
14205         passfd module, part 1, tweaks.
14206         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14207         Improve indentation. Improve AC_MSG_CHECKING messages.
14208         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14209         gl_SOCKET_FAMILIES.
14210
14211 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14212
14213         passfd module, part 1.
14214         * m4/afunix.m4: New file.
14215         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14216         sockets.
14217
14218 2011-03-08  Bruno Haible  <bruno@clisp.org>
14219
14220         regex-quote: New API.
14221         * lib/regex-quote.h: Include <stdbool.h>.
14222         (struct regex_quote_spec): New type.
14223         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14224         New declarations.
14225         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14226         'const struct regex_quote_spec *' argument.
14227         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14228         (pcre_special): New constant.
14229         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14230         New functions.
14231         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14232         'const struct regex_quote_spec *' argument.
14233         * modules/regex-quote (Depends-on): Add stdbool.
14234         * tests/test-regex-quote.c (check): Update for new API. Add test for
14235         anchored results.
14236         * NEWS: Mention the API change.
14237         Reported by Reuben Thomas and Eric Blake.
14238
14239 2011-03-06  Bruno Haible  <bruno@clisp.org>
14240
14241         regex-quote: Fix creation of POSIX extended regular expressions.
14242         * lib/regex-quote.c (ere_special): Add grouping and alternation
14243         operators.
14244
14245 2011-03-05  Bruno Haible  <bruno@clisp.org>
14246
14247         doc: Improve doc regarding autopoint vs. gnulib.
14248         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14249         disable autopoint while running autoreconf.
14250         Suggested by Ralf Wildenhues.
14251
14252 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14253
14254         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14255         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14256
14257 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14258
14259         parse-duration: remove xalloc.h dependency
14260         * lib/parse-duration.c (parse_period): handle NULL return from
14261         strdup instead of calling xstrdup().
14262         * modules/parse-duration: remove "xalloc" dependency
14263
14264 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14265
14266         bootstrap: honor m4_base when running aclocal
14267         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14268
14269 2011-03-02  Jim Meyering  <meyering@redhat.com>
14270
14271         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14272         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14273         on request from Matt Booth.
14274
14275 2011-03-01  Eric Blake  <eblake@redhat.com>
14276
14277         test-link: work on Hurd
14278         * tests/test-link.h (test_link): Hurd rejects linking directories
14279         with EISDIR instead of the POSIX-mandated EPERM.
14280
14281 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14282
14283         stdio: simplify by moving files to printf-posix, sigpipe
14284         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14285         since this symbol is needed only if printf is replaced.
14286         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14287         Require gl_ASM_SYMBOL_PREFIX.
14288         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14289         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14290         (Depends-on): Add 'raise'.
14291         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14292         * modules/stdio (Files): Remove lib/stdio-write.c,
14293         m4/asm-underscore.m4.
14294         (Depends-on): Remove 'raise'.
14295
14296         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14297         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14298         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14299         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14300
14301 2011-02-28  Bruno Haible  <bruno@clisp.org>
14302
14303         localcharset: Assume ANSI C behaviour of free().
14304         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14305         calling free().
14306         Suggested by Simon Josefsson <simon@josefsson.org>.
14307
14308 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14309             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14310             Bruno Haible  <bruno@clisp.org>  (tiny change)
14311
14312         On Cygwin, use /proc file system instead of win32 API.
14313         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14314         Win32 file names.
14315         (DllMain): Simplify by removing Cygwin specific code.
14316         (find_shared_library_fullname): Use Linux specific implementation also
14317         for Cygwin.
14318         (get_shared_library_fullname): Update accordingly.
14319         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14320         Win32 file names.
14321         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14322         Cygwin specific code.
14323
14324 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14325             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14326
14327         Fix OpenMP flag detection for various Fortran compilers.
14328         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14329         OpenMP-conditional compilation construct, to force compile
14330         failure with missing OpenMP flag.
14331         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14332
14333 2011-02-25  Eric Blake  <eblake@redhat.com>
14334
14335         strstr: expand test coverage
14336         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14337         compilation.
14338         * tests/test-memmem.c (main): Duplicate tests.
14339         * tests/test-strcasestr.c (main): Likewise.
14340         * tests/test-c-strcasestr.c (main): Likewise.
14341
14342 2011-02-25  Jim Meyering  <meyering@redhat.com>
14343
14344         maint.mk: detect missing-NL-at-EOF, too
14345         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14346         it also detects when a file lacks a newline at EOF.
14347         (require_exactly_one_NL_at_EOF_): Renamed from
14348         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14349         since people may well have .x-sc_... file names tied to the
14350         existing name.  Suggested by Eric Blake.
14351
14352 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14353
14354         dirname: move m4/dos.m4 functionality into lib/dosname.h
14355
14356         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14357         extracts symbols from it, puts them into config.h; but it's much
14358         easier to use the symbols directly.  filename.h already does this,
14359         but it disagrees with dos.m4 in some respects.  This patch
14360         introduces a different include file dosname.h that packages up
14361         dos.m4, and then later we can work on merging filename.h and
14362         dosname.h.  Applications that need only the easy-to-configure
14363         symbols should consider including dosname.h rather than dirname.h.
14364         * NEWS: Mention incompatible changes.
14365         * m4/dos.m4: Remove.
14366         * lib/dosname.h, modules/dosname: New files.
14367         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14368         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14369         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14370         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14371         Include dosname.h, not dirname.h.
14372         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14373         Include dosname.h, for definitions of symbols like ISSLASH
14374         that used to be in config.h.
14375         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14376         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14377         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14378         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14379         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14380         * modules/rmdir (Files): Likewise.
14381         * modules/stat (Files): Likewise.
14382         * modules/unlink (Files): Likewise.
14383         * modules/dirname-lgpl (Depends-on): Add dosname.
14384         * modules/lstat (Depends-on): Likewise.
14385         * modules/openat (Depends-on): Likewise.
14386         * modules/rmdir (Depends-on): Likewise.
14387         * modules/savewd (Depends-on): Likewise.
14388         * modules/stat (Depends-on): Likewise.
14389         * modules/unlink (Depends-on): Likewise.
14390         * modules/openat (Depends-on): Remove dirname-lgpl.
14391         * modules/savewd (Depends-on): Likewise.
14392         * tests/test-dirname.c: Do not use removed symbols like
14393         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14394         the remaining symbols, e.g., ISSLASH ('\\').
14395
14396 2011-02-25  Eric Blake  <eblake@redhat.com>
14397
14398         strstr: revert patches that introduced bug and pessimization
14399         * lib/str-two-way.h: Add another reference.
14400         (two_way_short_needle, two_way_long_needle): Revert changes from
14401         2011-02-24; they pessimize search speed.
14402         (critical_factorization): Partially revert changes from
14403         2010-06-22; they violate the requirement that the left half of the
14404         needle be smaller than the period of the needle.
14405
14406 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14407
14408         filenamecat: remove unnecessary dependency on dirname-lgpl
14409         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14410         is no direct dependency, just an indirect one via filenamecat-lgpl.
14411
14412         remove: remove unnecessary use of m4/dos.m4
14413         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14414         * modules/remove (FILES): Remove m4/dos.m4.
14415
14416         * lib/openat-proc.c: Don't include dirname.h; not needed.
14417
14418         backupfile: remove unnecessary use of m4/dos.m4
14419         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14420         of its symbols are used by the backupfile code.  backupfile.c does
14421         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14422         for the rare case of programs that want all their backup file
14423         names to live within 8+3 limits, and dos.m4 doesn't address that.
14424         * modules/backupfile (Files): Remove m4/dos.m4.
14425
14426 2011-02-24  Jim Meyering  <meyering@redhat.com>
14427
14428         strstr: fix a bug whereby strstr would mistakenly return NULL
14429         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14430         in period calculation.
14431         (two_way_long_needle): Likewise.
14432         The original problem was reported by Mike Stump in
14433         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14434         Ralf Wildenhues provided the short needle and haystack.
14435         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14436         Add a more involved test to trigger the bug in two_way_long_needle.
14437
14438 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14439
14440         gnulib-tool: remove use of bold display in help screen
14441         * gnulib-tool (func_usage): Do not use bold display anymore in the
14442         help screen.  That was just meant to be a temporary emphasis for a
14443         backward-incompatible change.
14444
14445 2011-02-23  Bruno Haible  <bruno@clisp.org>
14446
14447         Fix misindentation of preprocessor directives.
14448         * lib/argp-namefrob.h: Reindent preprocessor directives.
14449         * lib/getopt_int.h (struct _getopt_data): Likewise.
14450         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14451         * lib/vasnprintf.c (decode_long_double): Likewise.
14452         * tests/test-argmatch.c: Insert blank lines, for clarity.
14453         * tests/test-exclude.c: Likewise.
14454
14455 2011-02-22  Bruno Haible  <bruno@clisp.org>
14456
14457         ioctl: Fix for MacOS X in 64-bit mode.
14458         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14459         value.
14460         Suggested by Eric Blake.
14461         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14462
14463 2011-02-22  Jim Meyering  <meyering@redhat.com>
14464
14465         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14466         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14467         in lib/.
14468
14469 2011-02-22  Eric Blake  <eblake@redhat.com>
14470
14471         maint: avoid any CDPATH issue
14472         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14473
14474         maint: adjust cpp indentation for my modules, as well
14475         * Makefile (sc_cpp_indent_check): Add my name.
14476         * lib/fbufmode.c: Filter through cppi.
14477         * lib/fpurge.c: Likewise.
14478         * lib/freadable.c: Likewise.
14479         * lib/freading.c: Likewise.
14480         * lib/fwritable.c: Likewise.
14481         * lib/fwriting.c: Likewise.
14482         * lib/sigaction.c: Likewise.
14483
14484 2011-02-22  Jim Meyering  <meyering@redhat.com>
14485
14486         maint: adjust cpp indentation to reflect nesting depth
14487         I.e., in a block of code that begins with an unnested "#if",
14488         put one space between the "#" in column 1 and following token.
14489         For example,
14490         -#include <sys/vfs.h>
14491         +# include <sys/vfs.h>
14492         Do this only in .c files that are part of a module I maintain.
14493         * lib/linkat.c: Filter through cppi.
14494         * lib/nanosleep.c: Likewise.
14495         * lib/openat.c: Likewise.
14496         * lib/openat-die.c: Likewise.
14497         * lib/dup3.c: Likewise.
14498         * lib/fchownat.c: Likewise.
14499         * lib/flock.c: Likewise.
14500         * lib/fsync.c: Likewise.
14501         * lib/fts.c: Likewise.
14502         * lib/getpass.c: Likewise.
14503         * lib/gettimeofday.c: Likewise.
14504         * lib/userspec.c: Likewise.
14505         * Makefile (sc_cpp_indent_check): New rule, to check this.
14506
14507 2011-02-22  Bruno Haible  <bruno@clisp.org>
14508
14509         New module 'wctomb'.
14510         * lib/stdlib.in.h (wctomb): New declaration.
14511         * lib/wctomb.c: New file.
14512         * lib/wctomb-impl.h: New file.
14513         * m4/wctomb.m4: New file.
14514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14515         REPLACE_WCTOMB.
14516         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14517         REPLACE_WCTOMB.
14518         * modules/wctomb: New file.
14519         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14520         * doc/posix-functions/wctomb.texi: Mention the new module.
14521         * modules/wctob (Depends-on): Add wctomb.
14522
14523 2011-02-22  Bruno Haible  <bruno@clisp.org>
14524
14525         New module 'mbtowc'.
14526         * lib/stdlib.in.h (mbtowc): New declaration.
14527         * lib/mbtowc.c: New file.
14528         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14529         * m4/mbtowc.m4: New file.
14530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14531         REPLACE_MBTOWC.
14532         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14533         REPLACE_MBTOWC.
14534         * modules/mbtowc: New file.
14535         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14536         * doc/posix-functions/mbtowc.texi: Mention the new module.
14537         * modules/btowc (Depends-on): Add mbtowc.
14538
14539 2011-02-22  Bruno Haible  <bruno@clisp.org>
14540
14541         wcrtomb: Add more tests for native Windows platforms.
14542         * tests/test-wcrtomb-w32-1.sh: New file.
14543         * tests/test-wcrtomb-w32-2.sh: New file.
14544         * tests/test-wcrtomb-w32-3.sh: New file.
14545         * tests/test-wcrtomb-w32-4.sh: New file.
14546         * tests/test-wcrtomb-w32-5.sh: New file.
14547         * tests/test-wcrtomb-w32.c: New file.
14548         * modules/wcrtomb-tests (Files): Add them.
14549         (Makefile.am): Arrange to run these tests.
14550         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14551         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14552
14553 2011-02-20  Bruno Haible  <bruno@clisp.org>
14554
14555         wcrtomb: Enhance test.
14556         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14557
14558 2011-02-20  Bruno Haible  <bruno@clisp.org>
14559
14560         mbrtowc: Tiny optimization.
14561         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14562
14563 2011-02-20  Jim Meyering  <meyering@redhat.com>
14564
14565         test-exclude.c: remove unmatched #endif
14566         * tests/test-exclude.c: Remove stray #endif, left over from
14567         the change of a week ago.
14568
14569 2011-02-19  Jim Meyering  <meyering@redhat.com>
14570
14571         git-version-gen: skip "-dirty" check when appropriate
14572         * build-aux/git-version-gen: Don't run any git commands when the
14573         version string comes from .tarball-version.  Prior to this, we
14574         would run git update-index --refresh even from a just-unpacked
14575         tarball directory, and that could affect a .git/ directory in a
14576         parent of the build directory.  Reported by Mike Frysinger.
14577
14578 2011-02-19  Bruno Haible  <bruno@clisp.org>
14579
14580         unictype/property-byname: Reduce the size of the 'data' segment.
14581         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14582
14583 2011-02-19  Bruno Haible  <bruno@clisp.org>
14584
14585         unictype/scripts: Reduce the size of the 'data' segment.
14586         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14587         '%pic'.
14588         * lib/unictype/scripts_byname.gperf: Regenerated.
14589
14590 2011-02-19  Bruno Haible  <bruno@clisp.org>
14591
14592         stdint: Update documentation.
14593         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14594
14595 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14596
14597         stdint: omit redundant check for wchar.h
14598         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14599         always tests whether wchar.h exists, so remove the now-redundant test.
14600
14601 2011-02-18  Bruno Haible  <bruno@clisp.org>
14602
14603         stdint: Cut dependency to module 'wchar'.
14604         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14605         include the necessary prerequisites.
14606         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14607         * modules/stdint (Depends-on): Remove wchar.
14608         (Makefile.am): Substitute HAVE_WCHAR_H.
14609         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14610
14611 2011-02-18  Eric Blake  <eblake@redhat.com>
14612
14613         longlong: skip, rather than fail, on cross-compilation
14614         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14615         when cross-compiling; regression from 2011-02-16.
14616
14617 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14618
14619         * NEWS: Mention 2011-02-08 change to stdlib.
14620
14621 2011-02-17  Bruno Haible  <bruno@clisp.org>
14622
14623         getloadavg: Add comments about platforms.
14624         * m4/getloadavg.m4: Add comment.
14625         * lib/getloadavg.c: Likewise.
14626
14627 2011-02-17  Bruno Haible  <bruno@clisp.org>
14628
14629         getloadavg: Fix link error on Solaris 2.6.
14630         * modules/getloadavg (Link): New section.
14631         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14632         linking test-getloadavg.
14633         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14634         getloadavg.
14635
14636 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14637
14638         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14639         It was 'int', but this doesn't match the IRIX 6.5 manual.
14640         Suggested by Bruno Haible in
14641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14642
14643 2011-02-17  Bruno Haible  <bruno@clisp.org>
14644
14645         havelib: Fix comments.
14646         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14647         change.
14648
14649 2011-02-17  Bruno Haible  <bruno@clisp.org>
14650
14651         havelib: Update config.rpath.
14652         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14653
14654 2011-02-17  Bruno Haible  <bruno@clisp.org>
14655
14656         getloadavg test: Add some plausibility checks.
14657         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14658         is improbable.
14659
14660 2011-02-16  Eric Blake  <eblake@redhat.com>
14661
14662         maintainer-makefile: make syntax-check a no-op from tarballs
14663         * top/maint.mk (no-vc-detected): New rule.
14664         (local-checks-available): Use it to avoid hanging if someone tries
14665         'make syntax-check' from a tarball.  Also append to any non-syntax
14666         checks already defined in cfg.mk.
14667
14668 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14669
14670         longlong: tune, particularly for common case of c99
14671
14672         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14673         or running anything if c99, or if unsigned long long int does not
14674         work.  In either case, we know the answer without further tests.
14675         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14676         it at most once, and use its results for both long long int and
14677         unsigned long long int.  This is more likely to be efficient in
14678         the common case where the program wants to check for both long
14679         long int and unsigned long long int.
14680         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14681         since the answer is already known.
14682
14683 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14684
14685         getloadavg: set errno
14686         * lib/getloadavg.c: Set errno when returning -1.  If no other
14687         error number looks appropriate, set it to ENOSYS if the getloadavg
14688         looks like it can't possibly ever work, ENOTSUP otherwise.
14689         Suggested by Bruno Haible in
14690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14691
14692         getloadavg: trim unused parts and speed up 'configure'
14693         * NEWS: Document this.
14694         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14695         always compiled if getloadavg is absent.
14696         Move test code to ...
14697         * tests/test-getloadavg.c: New file, containing previous
14698         contents of test from lib/getloadavg.c.  It also contains
14699         suggestions by Bruno Haible in
14700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14701         * modules/getloadavg-tests: New file.
14702         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14703         Do tests in the same order as they're needed for getloadavg.c.
14704         Omit setgid-related tests that generate symbols KMEM_GROUP,
14705         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14706         Do only the tests that are needed to see whether the system has
14707         getloadavg, moving the other tests into ...
14708         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14709         NLIST_NAME_UNION; nobody should be using it.  Do not define
14710         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14711         relevant, as the user of this module shouldn't care how getloadavg
14712         is implemented.
14713
14714         getloadavg: omit unused var
14715         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14716
14717 2011-02-15  Jim Meyering  <meyering@redhat.com>
14718
14719         doc: update users.txt
14720         * users.txt: Update iwhd's URL.
14721
14722 2011-02-13  Bruno Haible  <bruno@clisp.org>
14723
14724         Consistent macro naming for macros that use GCC __attribute__.
14725         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14726         _ATTRIBUTE_NONNULL_.
14727         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14728         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14729         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14730         ATTRIBUTE_DEPRECATED.
14731         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14732         ATTRIBUTE_NORETURN.
14733         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14734         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14735         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14736         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14737         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14738         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14739         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14740         ATTRIBUTE_SENTINEL.
14741         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14742         ATTRIBUTE_RETURN_CHECK.
14743         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14744         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14745         ATTRIBUTE_NORETURN.
14746         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14747         Reported by Paul Eggert.
14748
14749 2011-02-13  Bruno Haible  <bruno@clisp.org>
14750
14751         Don't interfere with a program's definition of __attribute__.
14752         * lib/argp.h (__attribute__): Remove definition.
14753         (_GL_ATTRIBUTE_FORMAT): New macro.
14754         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14755         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14756         (_GL_ATTRIBUTE_FORMAT): New macro.
14757         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14758         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14759         GCC 3 or newer.
14760         * lib/error.h (__attribute__): Remove definition.
14761         (_GL_ATTRIBUTE_FORMAT): New macro.
14762         (error, error_at_line): Use it.
14763         * lib/hash.h (__attribute__): Remove definition.
14764         (ATTRIBUTE_WUR): Update definition. Define always.
14765         * lib/openat.h (__attribute__): Remove definition.
14766         (ATTRIBUTE_NORETURN): Update definition. Define always.
14767         * lib/sigpipe-die.h (__attribute__): Remove definition.
14768         (ATTRIBUTE_NORETURN): Update definition. Define always.
14769         * lib/vasnprintf.h (__attribute__): Remove definition.
14770         (_GL_ATTRIBUTE_FORMAT): New macro.
14771         (asnprintf, vasnprintf): Use it.
14772         * lib/xalloc.h (__attribute__): Remove definition.
14773         (ATTRIBUTE_NORETURN): Update definition. Define always.
14774         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14775         * lib/xmemdup0.h (__attribute__): Remove definition.
14776         (ATTRIBUTE_NORETURN): Update definition. Define always.
14777         * lib/xprintf.h (__attribute__): Remove definition.
14778         (_GL_ATTRIBUTE_FORMAT): New macro.
14779         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14780         * lib/xstrtol.h (__attribute__): Remove definition.
14781         (ATTRIBUTE_NORETURN): Update definition. Define always.
14782         * lib/xvasprintf.h (__attribute__): Remove definition.
14783         (_GL_ATTRIBUTE_FORMAT): New macro.
14784         (xasprintf, xvasprintf): Use it.
14785         * tests/test-argmatch.c (__attribute__): Remove definition.
14786         (ATTRIBUTE_NORETURN): Update definition. Define always.
14787         * tests/test-exclude.c (__attribute__): Remove definition.
14788         (ATTRIBUTE_NORETURN): Update definition. Define always.
14789         Reported by Paul Eggert.
14790
14791 2011-02-13  Bruno Haible  <bruno@clisp.org>
14792
14793         mbrtowc: Add more tests for native Windows platforms.
14794         * tests/test-mbrtowc-w32-1.sh: New file.
14795         * tests/test-mbrtowc-w32-2.sh: New file.
14796         * tests/test-mbrtowc-w32-3.sh: New file.
14797         * tests/test-mbrtowc-w32-4.sh: New file.
14798         * tests/test-mbrtowc-w32-5.sh: New file.
14799         * tests/test-mbrtowc-w32.c: New file.
14800         * modules/mbrtowc-tests (Files): Add them.
14801         (Makefile.am): Arrange to run these tests.
14802         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14803         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14804
14805 2011-02-13  Bruno Haible  <bruno@clisp.org>
14806
14807         mbrtowc: Work around native Windows bug.
14808         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14809         guess when no suitable locale for testing was found.
14810         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14811
14812 2011-02-13  Bruno Haible  <bruno@clisp.org>
14813
14814         mbsinit: Work around mingw bug.
14815         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14816         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14817         Windows.
14818         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14819
14820 2011-02-13  Bruno Haible  <bruno@clisp.org>
14821
14822         mbsinit: Don't crash for a NULL argument.
14823         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14824         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14825
14826 2011-02-13  Bruno Haible  <bruno@clisp.org>
14827
14828         Don't interfere with a program's definition of __attribute__.
14829         * lib/stdio.in.h (__attribute__): Remove definition.
14830         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14831         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14832         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14833         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14834         * lib/string.in.h (__attribute__): Remove definition.
14835         Reported by Paul Eggert.
14836
14837 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14838
14839         stdlib: don't get in the way of non-GCC __attribute__
14840         See thread starting at
14841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14842         Revert previous stdlib change, installing the following instead:
14843         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14844         to get in the way of a non-GCC compiler that supports __attribute__.
14845         (_GL_ATTRIBUTE_RETURN): New macro.
14846         (_Exit): Use it instead of __attribute__.
14847
14848 2011-02-12  Bruno Haible  <bruno@clisp.org>
14849
14850         quotearg test: Avoid test failure on mingw.
14851         * tests/test-quotearg.sh: Convert the locale identifier from native
14852         Windows syntax to Unix syntax.
14853
14854 2011-02-12  Bruno Haible  <bruno@clisp.org>
14855
14856         setlocale: Prefer gnulib's override over libintl's override.
14857         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14858         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14859         GNULIB_defined_setlocale is set.
14860
14861 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14862
14863         stdlib: support non-GCC __attribute__
14864
14865         Fix a serious and tricky problem encountered when attempting to
14866         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14867         5.5, but it crashed due to memory corruption on Solaris 10 with
14868         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14869         bits that are otherwise zero.  This tagging is optional inside
14870         Emacs but is preferred and is used when __attribute__ ((__aligned
14871         (8))) works, as it does with both recent-enough GCC and with Sun C
14872         5.11.  However, Sun C 5.11 is not GCC and does not #define
14873         __GNUC__ and __GNUC_MINOR__.
14874
14875         When I added the getloadavg module to Emacs, it brought in
14876         stdlib.in.h, which contained this fragment:
14877
14878            #ifndef __attribute__
14879            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14880            #  define __attribute__(Spec)   /* empty */
14881            # endif
14882            #endif
14883
14884         When files that include <stdlib.h> were compiled with Sun C 5.11,
14885         the above code disabled __attribute__ ((__aligned (8))), which
14886         caused variables to not be properly aligned, which eventually led
14887         to the pointer corruption mentioned above.  (This was a bit hard
14888         to diagnose, unfortunately.)
14889
14890         Several "#define __attribute__(X) /* empty */" code snippets need
14891         to be eradicated from Gnulib to work with non-GCC compilers that
14892         support __attribute__.  The Autoconf way to do this is to test for
14893         each kind of attribute that we want support for, and selectively
14894         enable that in source code.
14895
14896         Fix this problem just for stdlib.h, by adding a test for the
14897         __noreturn__ attribute, and change stdlib.in.h to use that test
14898         when needed.  This technique can be easily generalized to the
14899         other *.in.h files and attributes, and a similar technique can be
14900         used for *.h and *.c files.  This patch is enough to solve the
14901         problem for Emacs + getloadavg, and I thought I'd publish it for
14902         feedback before undertaking further, similar fixes in other
14903         modules.
14904
14905         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14906         because it's not needed for stdlib.h.  It merely substitutes the
14907         value directly into stdlib.h.  We may well need to #define it, or
14908         similar symbols, for other modules, but it's nice to also have an
14909         option to not #define it for applications like Emacs that do not
14910         need it.
14911
14912         * lib/stdlib.in.h (__attribute__): Do not #define.
14913         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14914         be defined only if the _Exit module is also used.
14915         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14917         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14918         platforms.
14919         * modules/_Exit (Files): Add m4/attribute.m4.
14920         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14921         * m4/attribute.m4: New file.
14922
14923 2011-02-12  Bruno Haible  <bruno@clisp.org>
14924
14925         wcsrtombs: Work around bug on native Windows.
14926         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14927         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14928         instead of len.
14929         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14930
14931 2011-02-12  Bruno Haible  <bruno@clisp.org>
14932
14933         mbsrtowcs: Work around bug on native Windows.
14934         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14935         against mingw bug.
14936         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14937
14938 2011-02-12  Bruno Haible  <bruno@clisp.org>
14939
14940         Avoid setlocale bugs in tests.
14941         * modules/btowc (Dependencies): Add setlocale.
14942         * modules/c-strcase (Dependencies): Likewise.
14943         * modules/mbmemcasecmp (Dependencies): Likewise.
14944         * modules/mbmemcasecoll (Dependencies): Likewise.
14945         * modules/mbrtowc (Dependencies): Likewise.
14946         * modules/mbscasecmp (Dependencies): Likewise.
14947         * modules/mbscasestr (Dependencies): Likewise.
14948         * modules/mbschr (Dependencies): Likewise.
14949         * modules/mbscspn (Dependencies): Likewise.
14950         * modules/mbsinit (Dependencies): Likewise.
14951         * modules/mbsncasecmp (Dependencies): Likewise.
14952         * modules/mbsnrtowcs (Dependencies): Likewise.
14953         * modules/mbspbrk (Dependencies): Likewise.
14954         * modules/mbspcasecmp (Dependencies): Likewise.
14955         * modules/mbsrchr (Dependencies): Likewise.
14956         * modules/mbsrtowcs (Dependencies): Likewise.
14957         * modules/mbsspn (Dependencies): Likewise.
14958         * modules/mbsstr (Dependencies): Likewise.
14959         * modules/nl_langinfo (Dependencies): Likewise.
14960         * modules/quotearg (Dependencies): Likewise.
14961         * modules/unicase/locale-language (Dependencies): Likewise.
14962         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14963         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14964         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14965         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14966         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14967         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14968         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14969         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14970         * modules/vasnprintf-posix (Dependencies): Likewise.
14971         * modules/wcrtomb (Dependencies): Likewise.
14972         * modules/wcsnrtombs (Dependencies): Likewise.
14973         * modules/wcsrtombs (Dependencies): Likewise.
14974
14975 2011-02-12  Bruno Haible  <bruno@clisp.org>
14976
14977         setlocale: Workaround native Windows bug.
14978         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14979         succeeds but sets LC_CTYPE to "C", report a failure.
14980         * tests/test-setlocale2.sh: New file.
14981         * tests/test-setlocale2.c: New file.
14982         * modules/setlocale-tests (Files): Add the new files.
14983         (Makefile.am): Enable test-setlocale2.sh test.
14984         * doc/posix-functions/setlocale.texi: Mention workaround.
14985
14986 2011-02-11  Bruno Haible  <bruno@clisp.org>
14987
14988         Tests for module 'setlocale'.
14989         * modules/setlocale-tests: New file.
14990         * tests/test-setlocale1.sh: New file.
14991         * tests/test-setlocale1.c: New file.
14992
14993         New module 'setlocale'.
14994         * lib/locale.in.h (setlocale): New declaration.
14995         * lib/setlocale.c: New file, based on
14996         gettext/gettext-runtime/intl/setlocale.c.
14997         * m4/setlocale.m4: New file.
14998         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14999         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15000         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15001         REPLACE_SETLOCALE.
15002         * modules/setlocale: New file.
15003         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15004         * doc/posix-functions/setlocale.texi: Mention the new module.
15005
15006 2011-02-11  Bruno Haible  <bruno@clisp.org>
15007
15008         Prepare for locale dependent tests on mingw.
15009         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15010         because it has the wrong locale encoding.
15011         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15012         French_France.1252 instead of "fr".
15013         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15014         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15015         because it has the wrong locale encoding.
15016         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15017         native Windows, try Turkish_Turkey.65001.
15018         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15019         Chinese_China.54936.
15020
15021         Prepare for locale dependent tests on mingw.
15022         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15023         differently.
15024         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15025         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15026         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15027         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15028
15029 2011-02-11  Eric Blake  <eblake@redhat.com>
15030
15031         strptime: avoid compiler warnings
15032         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15033         compiler warnings about dead code.
15034         Reported by Daniel P. Berrange.
15035
15036 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15037
15038         doc: update users.txt
15039         * users.txt: Add rcs.
15040
15041 2011-02-10  John W. Eaton  <jwe@gnu.org>
15042
15043         doc: update users.txt
15044         * users.txt: Add octave.
15045
15046 2011-02-10  Jim Meyering  <meyering@redhat.com>
15047
15048         doc: update users.txt
15049         * users.txt: Add iwhd.
15050
15051 2011-02-09  Bruno Haible  <bruno@clisp.org>
15052
15053         gnulib-tool: Make copyright notice adjustment more robust.
15054         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15055         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15056         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15057         License".
15058         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15059
15060 2011-02-06  Bruno Haible  <bruno@clisp.org>
15061
15062         New module 'towctrans'.
15063         * modules/towctrans: New file.
15064         * lib/wctype.in.h (towctrans): New declaration.
15065         * lib/towctrans.c: New file.
15066         * lib/towctrans-impl.h: New file.
15067         * m4/towctrans.m4: New file.
15068         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15069         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15070         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15071         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15072         * doc/posix-functions/towctrans.texi: Mention the new module.
15073
15074 2011-02-06  Bruno Haible  <bruno@clisp.org>
15075
15076         New module 'wctrans'.
15077         * modules/wctrans: New file.
15078         * lib/wctype.in.h (wctrans): New declaration.
15079         * lib/wctrans.c: New file.
15080         * lib/wctrans-impl.h: New file.
15081         * m4/wctrans.m4: New file.
15082         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15083         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15084         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15085         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15086         * doc/posix-functions/wctrans.texi: Mention the new module.
15087
15088 2011-02-06  Bruno Haible  <bruno@clisp.org>
15089
15090         New module 'iswctype'.
15091         * modules/iswctype: New file.
15092         * lib/wctype.in.h (iswctype): New declaration.
15093         * lib/iswctype.c: New file.
15094         * lib/iswctype-impl.h: New file.
15095         * m4/iswctype.m4: New file.
15096         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15097         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15098         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15099         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15100         * doc/posix-functions/iswctype.texi: Mention the new module and the
15101         HP-UX 11.00 problem.
15102
15103 2011-02-06  Bruno Haible  <bruno@clisp.org>
15104
15105         New module 'wctype'.
15106         * modules/wctype: Change to represent the wctype() substitute.
15107         * lib/wctype.in.h (wctype): New declaration.
15108         * lib/wctype.c: New file.
15109         * lib/wctype-impl.h: New file.
15110         * m4/wctype.m4: New file.
15111         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15112         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15113         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15114         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15115         * doc/posix-functions/wctype.texi: Mention the new module and the
15116         HP-UX 11.00 problem.
15117
15118 2011-02-06  Bruno Haible  <bruno@clisp.org>
15119
15120         wctype-h: Ensure wctype_t and wctrans_t are defined.
15121         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15122         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15123         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15124         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15125         HAVE_WCTRANS_T.
15126         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15127
15128 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15129
15130         flock: fix license typo
15131
15132         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15133         omitted.
15134
15135 2011-02-08  Bruno Haible  <bruno@clisp.org>
15136
15137         Split large sed scripts, for HP-UX sed.
15138         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15139         to avoid HP-UX limit of 99 commands, in the near future.
15140         * modules/stdlib (Makefile.am): Likewise.
15141         * modules/unistd (Makefile.am): Likewise.
15142         * modules/wchar (Makefile.am): Likewise.
15143         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15144         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15146
15147 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15148             Bruno Haible  <bruno@clisp.org>
15149
15150         stdlib: improve random_r modularization
15151         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15152         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15153         you also need the random_r module to get this material right.
15154         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15155         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15156         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15157
15158 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15159
15160         stdlib: don't depend on stdint
15161         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15162         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15163         be independent of whether stdint.h is needed.
15164         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15165         here, instead of ...
15166         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15167         struct random_data should be using the random_r module, not just
15168         the stdlib module (which wouldn't make sense: what package needs
15169         just struct random_data without also needing random_r?).
15170         * modules/stdlib (Depends-on): Remove stdint.
15171
15172         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15173         See the thread rooted at
15174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15175         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15176         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15177         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15178         __VMS)); previously it was always included (via fcntl--.h).
15179         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15180         hand; this is good enough for load averages.  Also, do not use
15181         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15182         flags directly if available and don't bother otherwise.  (Packages
15183         that need the extra reliability should use the modules that define
15184         these flags on older platforms that lack them.)
15185         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15186         fcntl-safer.
15187
15188 2011-02-08  Jim Meyering  <meyering@redhat.com>
15189
15190         di-set.h, ino-map.h: add multiple-inclusion guard
15191         Technically, the guard is required only for ino-map.h, due to its
15192         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15193         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15194         * lib/ino-map.h: Likewise.
15195
15196 2011-02-06  Bruno Haible  <bruno@clisp.org>
15197
15198         iswblank: Ensure declaration on glibc systems.
15199         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15200         * modules/iswblank (Dependencies): Add 'extensions'.
15201         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15202
15203 2011-02-06  Bruno Haible  <bruno@clisp.org>
15204
15205         New module 'iswblank'.
15206         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15207         * modules/iswblank: New file.
15208         * modules/wctype-h (Files): Remove lib/iswblank.c.
15209         (Makefile.am): Substitute GNULIB_ISWBLANK.
15210         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15211         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15212         (gl_WCTYPE_H_DEFAULTS): New macro.
15213         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15214         * modules/iswblank-tests: New file.
15215         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15216         * tests/test-wctype-h.c (main): Remove iswblank tests.
15217         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15218         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15219         of 'wctype-h'.
15220         * NEWS: Mention the change.
15221         * modules/mbchar (Depends-on): Add iswblank.
15222
15223 2011-02-08  Bruno Haible  <bruno@clisp.org>
15224
15225         di-set tests: Refactor.
15226         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15227         unnecessary includes.
15228         (ASSERT): Remove macro.
15229         (main): Make C90 compliant by avoiding variable declaration after
15230         statement.
15231         * modules/di-set-tests (Files): Add tests/macros.h.
15232
15233 2011-02-08  Bruno Haible  <bruno@clisp.org>
15234
15235         ino-map tests: Refactor.
15236         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15237         unnecessary includes.
15238         (ASSERT): Remove macro.
15239         (main): Make C90 compliant by avoiding variable declaration after
15240         statement.
15241         * modules/ino-map-tests (Files): Add tests/macros.h.
15242
15243 2011-02-08  Jim Meyering  <meyering@redhat.com>
15244
15245         di-set: add "const" to a cast
15246         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15247         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15248
15249 2011-02-06  Bruno Haible  <bruno@clisp.org>
15250
15251         Rename module 'wctype' to 'wctype-h'.
15252         * modules/wctype-h: Renamed from modules/wctype.
15253         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15254         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15255         (Files, Depends-on, Makefile.am): Update.
15256         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15257         (Files, Makefile.am): Update.
15258         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15259         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15260         * doc/posix-headers/wctype.texi: Update.
15261         * doc/posix-functions/iswalnum.texi: Update.
15262         * doc/posix-functions/iswalpha.texi: Update.
15263         * doc/posix-functions/iswblank.texi: Update.
15264         * doc/posix-functions/iswcntrl.texi: Update.
15265         * doc/posix-functions/iswdigit.texi: Update.
15266         * doc/posix-functions/iswgraph.texi: Update.
15267         * doc/posix-functions/iswlower.texi: Update.
15268         * doc/posix-functions/iswprint.texi: Update.
15269         * doc/posix-functions/iswpunct.texi: Update.
15270         * doc/posix-functions/iswspace.texi: Update.
15271         * doc/posix-functions/iswupper.texi: Update.
15272         * doc/posix-functions/iswxdigit.texi: Update.
15273         * doc/posix-functions/towlower.texi: Update.
15274         * doc/posix-functions/towupper.texi: Update.
15275         * NEWS: Mention the change.
15276         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15277         * modules/mbchar (Dependencies): Likewise.
15278         * modules/mbswidth (Dependencies): Likewise.
15279         * modules/quotearg (Dependencies): Likewise.
15280         * modules/regex (Dependencies): Likewise.
15281         * modules/wcscasecmp (Dependencies): Likewise.
15282         * modules/wcsncasecmp (Dependencies): Likewise.
15283         * modules/wcwidth (Dependencies): Likewise.
15284
15285 2011-02-06  Bruno Haible  <bruno@clisp.org>
15286
15287         New module 'wcswidth'.
15288         * modules/wcswidth: New file.
15289         * lib/wchar.in.h (wcswidth): New declaration.
15290         * lib/wcswidth.c: New file.
15291         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15292         * m4/wcswidth.m4: New file.
15293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15295         REPLACE_WCSWIDTH.
15296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15297         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15298         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15299         * doc/posix-functions/wcswidth.texi: Mention the new module.
15300
15301 2011-02-06  Bruno Haible  <bruno@clisp.org>
15302
15303         New module 'wcstok'.
15304         * modules/wcstok: New file.
15305         * lib/wchar.in.h (wcstok): New declaration.
15306         * lib/wcstok.c: New file.
15307         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15308         * m4/wcstok.m4: New file.
15309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15311         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15312         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15313         * doc/posix-functions/wcstok.texi: Mention the new module.
15314
15315 2011-02-06  Bruno Haible  <bruno@clisp.org>
15316
15317         New module 'wcsstr'.
15318         * modules/wcsstr: New file.
15319         * lib/wchar.in.h (wcsstr): New declaration.
15320         * lib/wcsstr.c: New file.
15321         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15322         * m4/wcsstr.m4: New file.
15323         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15324         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15325         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15326         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15327         * doc/posix-functions/wcsstr.texi: Mention the new module.
15328
15329 2011-02-06  Bruno Haible  <bruno@clisp.org>
15330
15331         New module 'wcspbrk'.
15332         * modules/wcspbrk: New file.
15333         * lib/wchar.in.h (wcspbrk): New declaration.
15334         * lib/wcspbrk.c: New file.
15335         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15336         * m4/wcspbrk.m4: New file.
15337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15340         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15341         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15342
15343 2011-02-06  Bruno Haible  <bruno@clisp.org>
15344
15345         New module 'wcsspn'.
15346         * modules/wcsspn: New file.
15347         * lib/wchar.in.h (wcsspn): New declaration.
15348         * lib/wcsspn.c: New file.
15349         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15350         * m4/wcsspn.m4: New file.
15351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15354         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15355         * doc/posix-functions/wcsspn.texi: Mention the new module.
15356
15357 2011-02-06  Bruno Haible  <bruno@clisp.org>
15358
15359         New module 'wcscspn'.
15360         * modules/wcscspn: New file.
15361         * lib/wchar.in.h (wcscspn): New declaration.
15362         * lib/wcscspn.c: New file.
15363         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15364         * m4/wcscspn.m4: New file.
15365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15367         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15368         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15369         * doc/posix-functions/wcscspn.texi: Mention the new module.
15370
15371 2011-02-06  Bruno Haible  <bruno@clisp.org>
15372
15373         New module 'wcsrchr'.
15374         * modules/wcsrchr: New file.
15375         * lib/wchar.in.h (wcsrchr): New declaration.
15376         * lib/wcsrchr.c: New file.
15377         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15378         * m4/wcsrchr.m4: New file.
15379         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15380         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15382         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15383         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15384
15385 2011-02-06  Bruno Haible  <bruno@clisp.org>
15386
15387         New module 'wcschr'.
15388         * modules/wcschr: New file.
15389         * lib/wchar.in.h (wcschr): New declaration.
15390         * lib/wcschr.c: New file.
15391         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15392         * m4/wcschr.m4: New file.
15393         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15394         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15395         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15396         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15397         * doc/posix-functions/wcschr.texi: Mention the new module.
15398
15399 2011-02-06  Bruno Haible  <bruno@clisp.org>
15400
15401         New module 'wcsdup'.
15402         * modules/wcsdup: New file.
15403         * lib/wchar.in.h (wcsdup): New declaration.
15404         * lib/wcsdup.c: New file.
15405         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15406         * m4/wcsdup.m4: New file.
15407         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15408         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15409         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15410         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15411         * doc/posix-functions/wcsdup.texi: Mention the new module.
15412
15413 2011-02-06  Bruno Haible  <bruno@clisp.org>
15414
15415         New module 'wcsxfrm'.
15416         * modules/wcsxfrm: New file.
15417         * lib/wchar.in.h (wcsxfrm): New declaration.
15418         * lib/wcsxfrm.c: New file.
15419         * lib/wcsxfrm-impl.h: New file.
15420         * m4/wcsxfrm.m4: New file.
15421         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15422         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15424         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15425         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15426
15427 2011-02-06  Bruno Haible  <bruno@clisp.org>
15428
15429         New module 'wcscoll'.
15430         * modules/wcscoll: New file.
15431         * lib/wchar.in.h (wcscoll): New declaration.
15432         * lib/wcscoll.c: New file.
15433         * lib/wcscoll-impl.h: New file.
15434         * m4/wcscoll.m4: New file.
15435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15438         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15439         * doc/posix-functions/wcscoll.texi: Mention the new module.
15440
15441 2011-02-06  Bruno Haible  <bruno@clisp.org>
15442
15443         New module 'wcsncasecmp'.
15444         * modules/wcsncasecmp: New file.
15445         * lib/wchar.in.h (wcsncasecmp): New declaration.
15446         * lib/wcsncasecmp.c: New file.
15447         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15448         * m4/wcsncasecmp.m4: New file.
15449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15452         HAVE_WCSNCASECMP.
15453         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15454         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15455
15456 2011-02-06  Bruno Haible  <bruno@clisp.org>
15457
15458         New module 'wcscasecmp'.
15459         * modules/wcscasecmp: New file.
15460         * lib/wchar.in.h (wcscasecmp): New declaration.
15461         * lib/wcscasecmp.c: New file.
15462         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15463         * m4/wcscasecmp.m4: New file.
15464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15467         HAVE_WCSCASECMP.
15468         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15469         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15470
15471 2011-02-05  Bruno Haible  <bruno@clisp.org>
15472
15473         New module 'wcsncmp'.
15474         * modules/wcsncmp: New file.
15475         * lib/wchar.in.h (wcsncmp): New declaration.
15476         * lib/wcsncmp.c: New file.
15477         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15478         * m4/wcsncmp.m4: New file.
15479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15482         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15483         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15484
15485 2011-02-05  Bruno Haible  <bruno@clisp.org>
15486
15487         New module 'wcscmp'.
15488         * modules/wcscmp: New file.
15489         * lib/wchar.in.h (wcscmp): New declaration.
15490         * lib/wcscmp.c: New file.
15491         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15492         * m4/wcscmp.m4: New file.
15493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15496         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15497         * doc/posix-functions/wcscmp.texi: Mention the new module.
15498
15499 2011-02-05  Bruno Haible  <bruno@clisp.org>
15500
15501         New module 'wcsncat'.
15502         * modules/wcsncat: New file.
15503         * lib/wchar.in.h (wcsncat): New declaration.
15504         * lib/wcsncat.c: New file.
15505         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15506         * m4/wcsncat.m4: New file.
15507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15510         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15511         * doc/posix-functions/wcsncat.texi: Mention the new module.
15512
15513 2011-02-05  Bruno Haible  <bruno@clisp.org>
15514
15515         New module 'wcscat'.
15516         * modules/wcscat: New file.
15517         * lib/wchar.in.h (wcscat): New declaration.
15518         * lib/wcscat.c: New file.
15519         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15520         * m4/wcscat.m4: New file.
15521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15524         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15525         * doc/posix-functions/wcscat.texi: Mention the new module.
15526
15527 2011-02-05  Bruno Haible  <bruno@clisp.org>
15528
15529         New module 'wcpncpy'.
15530         * modules/wcpncpy: New file.
15531         * lib/wchar.in.h (wcpncpy): New declaration.
15532         * lib/wcpncpy.c: New file.
15533         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15534         * m4/wcpncpy.m4: New file.
15535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15537         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15538         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15539         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15540
15541 2011-02-05  Bruno Haible  <bruno@clisp.org>
15542
15543         New module 'wcsncpy'.
15544         * modules/wcsncpy: New file.
15545         * lib/wchar.in.h (wcsncpy): New declaration.
15546         * lib/wcsncpy.c: New file.
15547         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15548         * m4/wcsncpy.m4: New file.
15549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15552         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15553         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15554
15555 2011-02-05  Bruno Haible  <bruno@clisp.org>
15556
15557         New module 'wcpcpy'.
15558         * modules/wcpcpy: New file.
15559         * lib/wchar.in.h (wcpcpy): New declaration.
15560         * lib/wcpcpy.c: New file.
15561         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15562         * m4/wcpcpy.m4: New file.
15563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15565         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15566         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15567         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15568
15569 2011-02-05  Bruno Haible  <bruno@clisp.org>
15570
15571         New module 'wcscpy'.
15572         * modules/wcscpy: New file.
15573         * lib/wchar.in.h (wcscpy): New declaration.
15574         * lib/wcscpy.c: New file.
15575         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15576         * m4/wcscpy.m4: New file.
15577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15580         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15581         * doc/posix-functions/wcscpy.texi: Mention the new module.
15582
15583 2011-02-05  Bruno Haible  <bruno@clisp.org>
15584
15585         New module 'wcsnlen'.
15586         * modules/wcsnlen: New file.
15587         * lib/wchar.in.h (wcsnlen): New declaration.
15588         * lib/wcsnlen.c: New file.
15589         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15590         * m4/wcsnlen.m4: New file.
15591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15594         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15595         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15596
15597 2011-02-05  Bruno Haible  <bruno@clisp.org>
15598
15599         New module 'wcslen'.
15600         * modules/wcslen: New file.
15601         * lib/wchar.in.h (wcslen): New declaration.
15602         * lib/wcslen.c: New file.
15603         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15604         * m4/wcslen.m4: New file.
15605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15608         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15609         * doc/posix-functions/wcslen.texi: Mention the new module.
15610
15611 2011-02-05  Bruno Haible  <bruno@clisp.org>
15612
15613         New module 'wmemset'.
15614         * modules/wmemset: New file.
15615         * lib/wchar.in.h (wmemset): New declaration.
15616         * lib/wmemset.c: New file.
15617         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15618         * m4/wmemset.m4: New file.
15619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15621         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15622         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15623         * doc/posix-functions/wmemset.texi: Mention the new module.
15624
15625 2011-02-05  Bruno Haible  <bruno@clisp.org>
15626
15627         New module 'wmemmove'.
15628         * modules/wmemmove: New file.
15629         * lib/wchar.in.h (wmemmove): New declaration.
15630         * lib/wmemmove.c: New file.
15631         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15632         * m4/wmemmove.m4: New file.
15633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15635         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15636         HAVE_WMEMMOVE.
15637         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15638         * doc/posix-functions/wmemmove.texi: Mention the new module.
15639
15640 2011-02-05  Bruno Haible  <bruno@clisp.org>
15641
15642         New module 'wmemcpy'.
15643         * modules/wmemcpy: New file.
15644         * lib/wchar.in.h (wmemcpy): New declaration.
15645         * lib/wmemcpy.c: New file.
15646         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15647         * m4/wmemcpy.m4: New file.
15648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15650         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15651         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15652         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15653
15654 2011-02-05  Bruno Haible  <bruno@clisp.org>
15655
15656         New module 'wmemcmp'.
15657         * modules/wmemcmp: New file.
15658         * lib/wchar.in.h (wmemcmp): New declaration.
15659         * lib/wmemcmp.c: New file.
15660         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15661         * m4/wmemcmp.m4: New file.
15662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15664         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15665         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15666         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15667
15668 2011-02-07  Jim Meyering  <meyering@redhat.com>
15669
15670         di-set, ino-map: new modules, from coreutils
15671         * lib/di-set.c: New file.
15672         * lib/di-set.h: Likewise.
15673         * lib/ino-map.c: Likewise.
15674         * lib/ino-map.h: Likewise.
15675         * modules/di-set: Likewise.
15676         * modules/di-set-tests: Likewise.
15677         * modules/ino-map: Likewise.
15678         * modules/ino-map-tests: Likewise.
15679         * tests/test-di-set.c: Likewise.
15680         * tests/test-ino-map.c: Likewise.
15681
15682 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15683
15684         getloadavg: merge minor changes from Emacs
15685
15686         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15687         (getloadavg): Use memset, not bzero.
15688
15689         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15690         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15691         clash (bug#86).
15692
15693 2010-11-14  Bruno Haible  <bruno@clisp.org>
15694
15695         Allow multiple gnulib generated replacements to coexist.
15696         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15697         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15698         * lib/langinfo.in.h (nl_item): Likewise.
15699         * lib/math.in.h (_NaN, NAN): Likewise.
15700         * lib/netdb.in.h (struct addrinfo): Likewise.
15701         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15702         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15703         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15704         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15705         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15706         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15707         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15708         pthread_mutexattr_init, pthread_mutexattr_settype,
15709         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15710         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15711         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15712         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15713         * lib/sched.in.h (struct sched_param): Likewise.
15714         * lib/se-selinux.in.h (security_class_t, security_context_t,
15715         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15716         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15717         lsetfilecon, fsetfilecon, security_check_context,
15718         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15719         Likewise.
15720         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15721         Likewise.
15722         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15723         _gl_function_taking_int_returning_void_t, union sigval,
15724         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15725         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15726         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15727         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15728         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15729         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15730         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15731         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15732         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15733         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15734         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15735         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15736         socklen_t, rpl_fd_isset): Likewise.
15737         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15738         * lib/sys_time.in.h (struct timeval): Likewise.
15739         * lib/sys_times.in.h (struct tms): Likewise.
15740         * lib/sys_utsname.in.h (struct utsname):
15741         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15742         * lib/unistd.in.h (getpagesize): Likewise.
15743         * lib/wchar.in.h (mbstate_t): Likewise.
15744         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15745         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15746         towlower, towupper): Likewise.
15747         Reported by Sam Steingold <sds@gnu.org>.
15748
15749 2011-02-05  Eric Blake  <eblake@redhat.com>
15750
15751         unsetenv: work around Haiku issues
15752         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15753         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15754
15755 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15756
15757         libposix: avoid calling error() within libposix
15758         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15759         is defined.
15760
15761 2011-02-05  Eric Blake  <eblake@redhat.com>
15762
15763         strerror_r-posix: port to cygwin
15764         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15765         implementation.
15766         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15767         * tests/test-strerror_r.c (main): Fix test.
15768         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15769         issue.
15770
15771 2011-02-05  Bruno Haible  <bruno@clisp.org>
15772
15773         New module 'wmemchr'.
15774         * modules/wmemchr: New file.
15775         * lib/wchar.in.h (wmemchr): New declaration.
15776         * lib/wmemchr.c: New file.
15777         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15778         * m4/wmemchr.m4: New file.
15779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15781         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15782         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15783         * doc/posix-functions/wmemchr.texi: Mention the new module.
15784
15785 2011-02-04  Eric Blake  <eblake@redhat.com>
15786
15787         fdopendir: detect FreeBSD bug
15788         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15789         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15790
15791 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15792
15793         stdbool: do not define HAVE_STDBOOL_H
15794         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15795         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15796         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15797         imported from the latest Autoconf git.  It was motivated by Emacs,
15798         which uses gnulib but does not need HAVE_STDBOOL_H.
15799
15800 2011-02-04  Bruno Haible  <bruno@clisp.org>
15801
15802         wcsnrtombs: Prepare for new module wwcsnrtombs.
15803         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15804         * lib/wcsnrtombs.c: Include it.
15805         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15806
15807         wcsrtombs: Prepare for new module wwcsrtombs.
15808         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15809         * lib/wcsrtombs.c: Include it.
15810         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15811
15812         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15813         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15814         * lib/mbsnrtowcs.c: Include it.
15815         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15816
15817         mbsrtowcs: Prepare for new module mbsrtowwcs.
15818         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15819         * lib/mbsrtowcs.c: Include it.
15820         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15821
15822 2011-02-04  Bruno Haible  <bruno@clisp.org>
15823
15824         vasnprintf: Reduce use of malloc for small format strings.
15825         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15826         (arguments): Add room for the first 7 arguments.
15827         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15828         (char_directives, u8_directives, u16_directives, u32_directives): Add
15829         room for the first 7 directives.
15830         * lib/printf-parse.c: Include <string.h>.
15831         (PRINTF_PARSE): Change memory handling code so that it uses the first
15832         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15833         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15834         Reported by Pádraig Brady <P@draigbrady.com>.
15835
15836 2011-01-31  Eric Blake  <eblake@redhat.com>
15837
15838         dup2: work around Haiku bug
15839         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15840         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15841         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15842         * tests/test-dup2.c (main): Enhance test.
15843
15844 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15845
15846         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15847         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15848         declared by eglibc 2.11.2.
15849         * lib/stdio.in.h: Likewise.
15850
15851 2011-01-31  Eric Blake  <eblake@redhat.com>
15852
15853         ignore-value: add missing test dependency
15854         * tests/test-ignore-value.c: Revert previous change; stdio.h
15855         provides off_t.
15856         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15857
15858 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15859
15860         mktime: clarify long_int width checking
15861         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15862         the top level, to make it clearer that the assumption about
15863         long_int width is being checked.  See
15864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15865
15866 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15867
15868         ignore-value: Fix self-test.
15869         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15870
15871 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15872
15873         TYPE_MAXIMUM: avoid theoretically undefined behavior
15874         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15875         negative number, which the C Standard says has undefined behavior.
15876         In practice this is not a problem, but might as well do it by the book.
15877         Reported by Rich Felker and Eric Blake; see
15878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15879         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15880         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15882         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15883         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15884         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15885
15886         mktime: #undef mktime before #defining it
15887         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15888
15889         mktime: systematically normalize tm_isdst comparisons
15890         * lib/mktime.c (isdst_differ): New function.
15891         (__mktime_internal): Use it systematically for all isdst comparisons.
15892         This completes the fix for libc BZ #6723, and removes the need for
15893         normalizing tm_isdst.  See
15894         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15895         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15896
15897         mktime: fix some integer overflow issues and sidestep the rest
15898
15899         This was prompted by a bug report by Benjamin Lindner for MinGW
15900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15901         His bug is due to signed integer overflow (0 - INT_MIN), and I
15902         I scanned through mktime.c looking for other integer overflow
15903         problems, fixing all the bugs I found.
15904
15905         Although the C Standard says the resulting code is still not safe
15906         in the presence of integer overflow, in practice it should be good
15907         enough for all real-world two's-complement implementations, except
15908         for debugging environments that deliberately trap on integer
15909         overflow (e.g., gcc -ftrapv).
15910
15911         * lib/mktime.c (WRAPV): New macro.
15912         (SHR): Also check that long_int and time_t shift right in the
15913         usual way, before using the fast-but-unportable method.
15914         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15915         used.  The code already assumed two's complement, so there's
15916         no need to test for alternatives.  All uses removed.
15917         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15918         the C standard.  Problem reported by Rich Felker in
15919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15920         (twos_complement_arithmetic): Also check long_int and time_t.
15921         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15922         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15923         (__mktime_internal): Avoid integer overflow with unary subtraction
15924         in two instances where -1 - X is an adequate replacement for -X,
15925         since the calculations are approximate.
15926
15927 2011-01-29  Eric Blake  <eblake@redhat.com>
15928
15929         mktime: avoid infinite loop
15930         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15931         type; behavior is still undefined but portable to all known targets.
15932         Reported by Rich Felker.
15933
15934 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15935
15936         rename, unlink, same-inode: Relicense.
15937         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15938         * modules/unlink (License): Likewise.
15939         * modules/same-inode (License): Likewise.
15940
15941 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15942
15943         mktime: avoid problems on NetBSD 5 / i386
15944         * lib/mktime.c (long_int): New type.  This works around a problem
15945         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15946         but time_t is 64 bits, and where I expect the existing code is
15947         wrong in some cases.
15948         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15949         (ydhms_diff): Bring back the compile-time check for wide-enough
15950         year and yday.
15951
15952         mktime: fix misspelling in comment
15953         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15954         This merges all recent glibc changes of importance.
15955
15956 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15957
15958         move-if-change: cope with concurrent mv of identical file.
15959         * build-aux/move-if-change (CMPPROG): Accept environment
15960         variable as an override for `cmp'.
15961         (usage): Document CMPPROG.
15962         Adjust comparison to drop stdout.  Cope with failure of mv if
15963         the target file exists and is identical to the source, for
15964         parallel builds.
15965         Report from H.J. Lu against binutils in PR binutils/12283.
15966
15967 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15968
15969         * users.txt: Mention sharutils.
15970
15971 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15972
15973         * users.txt: Mention OATH Toolkit.
15974
15975 2011-01-27  Bruno Haible  <bruno@clisp.org>
15976
15977         Prepare for supporting FreeBSD 10.
15978         * build-aux/config.libpath: Remove handling of freebsd1*.
15979
15980 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15981
15982         Prepare for supporting FreeBSD 10.
15983         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15984         match FreeBSD 10.0.
15985
15986 2011-01-27  Bruno Haible  <bruno@clisp.org>
15987
15988         vma-iter, get-rusage-as: Add OpenBSD support.
15989         * modules/vma-iter (configure.ac): Test for mquery.
15990         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15991         * lib/vma-iter.c: Include <sys/mman.h>.
15992         (vma_iterate): Add an implementation based on mquery().
15993         * lib/resource-ext.h (get_rusage_as): Update comments.
15994         * lib/get-rusage-as.c: Likewise.
15995         * lib/get-rusage-data.c: Likewise.
15996
15997 2011-01-26  Karl Berry  <karl@gnu.org>
15998
15999         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16000         variables to make it easier to override the makeinfo program used.
16001
16002 2011-01-26  Eric Blake  <eblake@redhat.com>
16003
16004         fcntl: work around Haiku F_DUPFD bugs
16005         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16006         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16007         cloexec bit on duplication.
16008         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16009
16010 2011-01-26  Bruno Haible  <bruno@clisp.org>
16011
16012         Enable memory leak tests on AIX.
16013         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16014         * tests/test-fprintf-posix3.c (main): Likewise.
16015
16016 2011-01-26  Bruno Haible  <bruno@clisp.org>
16017
16018         Tests for module 'get-rusage-data'.
16019         * modules/get-rusage-data-tests: New file.
16020         * tests/test-get-rusage-data.c: New file.
16021
16022         New module 'get-rusage-data'.
16023         * lib/resource-ext.h (get_rusage_data): New declaration.
16024         * lib/get-rusage-data.c: New file.
16025         * modules/get-rusage-data: New file.
16026
16027 2011-01-25  Bruno Haible  <bruno@clisp.org>
16028
16029         get-rusage-as: Allow for easier testing.
16030         * lib/resource-ext.h (get_rusage_as): Add comment.
16031         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16032         (main): New function for interactive testing.
16033
16034 2011-01-25  Bruno Haible  <bruno@clisp.org>
16035
16036         vma-iter: Treat Haiku like BeOS.
16037         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16038         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16039
16040 2011-01-25  Eric Blake  <eblake@redhat.com>
16041
16042         c-stack: fix regression on cygwin when libsigsegv is present
16043         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16044
16045 2011-01-24  Bruno Haible  <bruno@clisp.org>
16046
16047         vma-iter: Avoid empty intervals.
16048         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16049         on an empty interval.
16050
16051 2011-01-24  Jim Meyering  <meyering@redhat.com>
16052
16053         u64: remove unnecessary #include
16054         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16055
16056 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16057
16058         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16059         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16060
16061 2011-01-23  Bruno Haible  <bruno@clisp.org>
16062
16063         New module 'vma-iter'.
16064         * lib/vma-iter.h: New file.
16065         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16066         * modules/vma-iter: New file.
16067         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16068         for get_rusage_as_via_iterator.
16069         (vma_iterate_callback): New function.
16070         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16071         * modules/get-rusage-as (Depends-on): Add vma-iter.
16072
16073 2011-01-23  Bruno Haible  <bruno@clisp.org>
16074
16075         uninorm: Tweak includes.
16076         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16077         Reported by Jim Meyering.
16078
16079 2011-01-23  Bruno Haible  <bruno@clisp.org>
16080
16081         get-rusage-as: Improve on NetBSD.
16082         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16083         /proc, like on FreeBSD.
16084
16085 2011-01-23  Jim Meyering  <meyering@redhat.com>
16086
16087         xreadlink.h: remove unnecessary #include
16088         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16089
16090         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16091         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16092
16093 2011-01-23  Bruno Haible  <bruno@clisp.org>
16094
16095         get-rusage-as: Fix bug.
16096         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16097         original limit when aborting the first loop.
16098
16099 2011-01-23  Bruno Haible  <bruno@clisp.org>
16100
16101         wctype: Ensure valid C syntax.
16102         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16103         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16104
16105 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16106
16107         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16109         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16110         as they are needed only for configure's test case.
16111         This removes two unnecessary symbols from config.h.
16112
16113         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16114         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16116         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16117         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16118         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16119         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16120         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16121         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16122         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16123         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16124         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16125         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16126         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16127         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16128         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16129         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16130         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16131
16132 2011-01-21  Eric Blake  <eblake@redhat.com>
16133
16134         maintainer-makefile: work with older git for submodule check
16135         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16136         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16137         Reported by Matthias Bolte.
16138
16139         bootstrap: minor portability fixes
16140         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16141         (usage): Omit leading capital and trailing . on help phrases, per
16142         GNU Coding Standards.
16143         (check_versions, top level): Prefix messages with script name.
16144
16145 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16146
16147         bootstrap: support --no-git option
16148         * build-aux/bootstrap: Add --no-git option, to be used when
16149         --gnulib-srcdir points to the exact desired checkout.
16150
16151 2011-01-21  Eric Blake  <eblake@redhat.com>
16152
16153         strerror_r-posix: work with glibc 2.13
16154         * lib/strerror_r.c (strerror_r): Fix return type.
16155
16156 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16157             Bruno Haible  <bruno@clisp.org>
16158
16159         uN_strstr: New unit tests.
16160         * modules/unistr/u8-strstr-tests: New file.
16161         * modules/unistr/u16-strstr-tests: New file.
16162         * modules/unistr/u32-strstr-tests: New file.
16163         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16164         * tests/unistr/test-u8-strstr.c: New file.
16165         * tests/unistr/test-u16-strstr.c: New file.
16166         * tests/unistr/test-u32-strstr.c: New file.
16167
16168 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16169             Bruno Haible  <bruno@clisp.org>
16170
16171         Make uN_strstr functions O(n) worst-case.
16172         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16173         16-bit and 32-bit unit cases, use the unibyte algorithm from
16174         lib/mbsstr.c.
16175         * lib/unistr/u8-strstr.c: Include <string.h>.
16176         (UNIT_IS_UINT8_T): New macro.
16177         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16178         (U_STRLEN, U_STRNLEN): New macros.
16179         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16180         (U_STRLEN, U_STRNLEN): New macros.
16181         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16182         (configure.ac): Update required libunistring version.
16183         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16184         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16185         malloca.
16186         (configure.ac): Update required libunistring version.
16187         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16188         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16189         malloca.
16190         (configure.ac): Update required libunistring version.
16191
16192 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16193             Bruno Haible  <bruno@clisp.org>
16194
16195         Prepare for faster uN_strstr functions.
16196         * lib/str-kmp.h: Support definable UNITs.
16197         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16198         needle_len argument.
16199         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16200         * lib/mbscasestr.c (mbscasestr): Likewise.
16201
16202 2011-01-21  Pádraig Brady <P@draigBrady.com>
16203
16204         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16205         * tests/test-malloca.c (main): Unset the environment variable
16206         to greatly speed up the test.
16207         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16208         * modules/malloca-tests: Depend on unsetenv.
16209
16210 2011-01-21  Pádraig Brady <P@draigBrady.com>
16211
16212         ignore-value: remove stdint dependency
16213         * lib/ignore-value.h: Remove <stdint.h>
16214         * modules/ignore-value: Remove stdint dependency.
16215
16216 2011-01-21  Jim Meyering  <meyering@redhat.com>
16217
16218         maint.mk: adjust variable name to be consistent with other gl_ vars
16219         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16220         to be lower case.
16221
16222 2011-01-20  Jim Meyering  <meyering@redhat.com>
16223
16224         maint.mk: make "check" depend on public-submodule-commit by default
16225         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16226
16227 2011-01-20  Bruno Haible  <bruno@clisp.org>
16228
16229         mbfile, mbiter: Complete change from 2008-12-21.
16230         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16231         * m4/mbiter.m4 (gl_MBITER): Likewise.
16232
16233 2011-01-20  Jim Meyering  <meyering@redhat.com>
16234
16235         init.sh: insert space between each function name and "()"
16236         * tests/init.sh: Make it a little easier to see that a function's
16237         name is "warn_", and not "warn" when looking at the first part of
16238         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16239
16240 2011-01-20  Jim Meyering  <meyering@redhat.com>
16241
16242         mountlist: clean up code formatting
16243         * lib/mountlist.c (read_file_system_list): Split a long line,
16244         correct bracing style, use NULL in place of "(struct statfs *)0",
16245         don't parenthesize return value, add spaces around "=" and after
16246         ";-in-for-stmt".
16247
16248 2011-01-14  Markus Duft <mduft@gentoo.org>
16249
16250         mountlist: add support for Interix
16251         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16252         Apply statvfs to all entries of /dev/fs.
16253         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16254         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16255
16256 2011-01-20  Jim Meyering  <meyering@redhat.com>
16257
16258         maint.mk: improve the public-submodule-commit rule
16259         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16260         to suppress printing of its commands... unless V=1.
16261         Add git submodule's --quiet option to suppress printing of e.g.,
16262         "Entering gnulib" output.
16263         "cd" into $(srcdir) before running git submodule.
16264
16265 2011-01-20  Bruno Haible  <bruno@clisp.org>
16266
16267         include_next: Fix bug introduced on 2011-01-18.
16268         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16269         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16270         ac_cv_header_... variable if the second argument is not 'check'.
16271         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16272         gl_NEXT_HEADERS_INTERNAL.
16273
16274 2011-01-20  Bruno Haible  <bruno@clisp.org>
16275
16276         Allow the user to avoid the GNULIB_TEST_* macros.
16277         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16278         Suggested by Paul Eggert.
16279
16280 2011-01-14  Jim Meyering  <meyering@redhat.com>
16281
16282         bootstrap: avoid failure when there is no .gitmodules file
16283         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16284         has been assigned to, even when its value is the empty string.
16285         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16286         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16287         Reported by John W. Eaton <jwe@gnu.org>.
16288
16289 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16290
16291         assume <ctype.h>, ..., <time.h> exist
16292         For years gnulib has been assuming the existence of the headers
16293         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16294         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16295         them, since they don't appear to be needed.
16296         * README (Portability guidelines): Document this.
16297         * lib/flock.c: Assume <fcntl.h> exists.
16298         * lib/regex_internal.h: Assume <locale.h> exists.
16299         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16300         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16301         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16302         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16303         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16304         * m4/regex.m4 (gl_REGEX): Likewise.
16305         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16306         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16307         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16308         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16309         * tests/test-argp.c: Likewise.
16310         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16311
16312         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16313         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16314         AA_APPLE_UNIVERSAL_BUILD.  See
16315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16316         * NEWS: Document this.
16317
16318 2011-01-19  Eric Blake  <eblake@redhat.com>
16319
16320         c-stack: assume stack overflow if SA_SIGINFO unsupported
16321         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16322         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16323         sigaction will work.
16324         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16325         behavior match Linux.
16326         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16327
16328         stdbool-tests: accomodate Haiku
16329         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16330
16331         binary-io: fix O_TEXT on Haiku
16332         * modules/binary-io (Depends-on): Add fcntl-h.
16333         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16334         than blindly undefining O_TEXT.
16335         Reported by Scott McCreary.
16336
16337 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16338
16339         include_next: do not check for standard headers like stddef.h
16340
16341         I found this problem when modifying Emacs to use gnulib.
16342         I noticed that it added HAVE_STDDEF_H to config.h, even though
16343         gnulib always assumes <stddef.h> exists as per README and this
16344         symbol is unnecessary.
16345         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16346         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16347         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16348         faster for headers like stddef.h that are known to exist.
16349         (gl_CHECK_NEXT_HEADERS): Use it.
16350         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16351         rather than gl_CHECK_NEXT_HEADERS.
16352         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16353         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16354
16355 2011-01-18  Eric Blake  <eblake@redhat.com>
16356
16357         ansi-c++-opt: skip C++ dependency style if C++ is unused
16358         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16359         tests when we know C++ compilation is not desired.
16360         Reported by Scott McCreary.
16361
16362 2011-01-18  Bruno Haible  <bruno@clisp.org>
16363
16364         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16365         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16366         (main): Perform test also when getrlimit and setrlimit don't exist or
16367         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16368         limiting the address space size using setrlimit, compare the address
16369         space size before and after the the test.
16370         * tests/test-dprintf-posix2.c: Likewise.
16371         * tests/test-fprintf-posix3.sh: Update skip messages.
16372         * tests/test-dprintf-posix2.sh: Likewise.
16373         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16374         * modules/dprintf-posix-tests (Depends-on): Likewise.
16375         Reported by Bruce Korb <bkorb@gnu.org> and
16376         Gary V. Vaughan <gary@gnu.org>.
16377
16378 2011-01-18  Bruno Haible  <bruno@clisp.org>
16379
16380         get-rusage-as: Improvement for Cygwin.
16381         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16382         areas that are merely reserved.
16383
16384 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16385
16386         strftime: remove dependencies on multibyte modules
16387
16388         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16389         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16390         only if __osf__ is defined, and I suspect OSF doesn't need these
16391         other modules.  If my guess is wrong, we'll need to come up with a
16392         variant of strftime that doesn't need the multibyte modules.
16393
16394         I discovered this problem when attempting modify Emacs to use the
16395         strftime module.  With the previous gnulib, this caused Emacs to
16396         need 31 new files, ranging from lib/config.charset to
16397         m4/wint_t.m4.  This was overkill and I expect would be offputting
16398         to the Emacs maintainers.  After this change, only 6 new files are
16399         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16400         stdbool.m4, and tm_gmtoff.m4.
16401
16402         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16403         Suggested by Bruno Haible in
16404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16405         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16406         and do not check for wchar.h.
16407         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16408         (Depends-on): Remove mbrlen, mbsinit, wchar.
16409
16410 2011-01-18  Bruno Haible  <bruno@clisp.org>
16411
16412         Tests for module 'get-rusage-as'.
16413         * modules/get-rusage-as-tests: New file.
16414         * tests/test-get-rusage-as.c: New file.
16415
16416         New module 'get-rusage-as'.
16417         * modules/get-rusage-as: New file.
16418         * lib/resource-ext.h: New file.
16419         * lib/get-rusage-as.c: New file.
16420
16421 2011-01-17  Eric Blake  <eblake@redhat.com>
16422
16423         sigaction: relax license from LGPLv3+ to LGPLv2+
16424         * modules/sigaction (License): Relax to LGPLv2+.
16425
16426 2011-01-14  Bruno Haible  <bruno@clisp.org>
16427
16428         filemode: Make function declarations usable in C++ mode.
16429         * lib/filemode.h: Enclose function declarations in extern "C" block.
16430         Reported by John W. Eaton <jwe@gnu.org>.
16431
16432 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16433
16434         save-cwd: no longer include "xgetcwd.h"
16435         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16436         This avoids a compilation failure in projects that use save-cwd
16437         without also using the xgetcwd module.
16438
16439 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16440
16441         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16442         This is so that a program like Emacs, which needs only dtoastr,
16443         does not have to bother with distributing and compiling ftoastr
16444         and ldtoastr.
16445         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16446         * modules/dtoastr, modules/ldtoastr: New files.
16447         * modules/ftoastr: Now works just for 'float'.
16448         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16449         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16450         dtoastr.c, ldtoastr.c.
16451
16452 2011-01-11  Jim Meyering  <meyering@redhat.com>
16453
16454         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16455         There is no need to work around the lack of the fchdir function,
16456         since gnulib can now provide a replacement when required.
16457         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16458         * modules/save-cwd (Depends-on): Add fchdir.
16459
16460 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16461
16462         openat, save-cwd: avoid xmalloc
16463
16464         This removes a direct (but undocumented) dependency of openat on
16465         xalloc, along with an indirect dependency via save-cwd.  It also
16466         removes a dependency of save-cwd on xgetcwd, and thereby
16467         indirectly on xalloc.  This change causes the openat substitute
16468         to fall back on save_cwd when memory is tight, and for save_cwd to
16469         fail instead of dying when memory is tight, but that's good enough.
16470         Problem and initial idea for fix reported by Bastien Roucaries in
16471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16472
16473         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16474         xalloc.h (for xmalloc).
16475         (openat_proc_name): Use malloc, not xmalloc.
16476         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16477         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16478
16479         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16480         This avoids heap allocation for file names whose lengths are in
16481         the range 512..1023, with the upper bound increasing to at most
16482         4031 depending on the platform's PATH_MAX.  (We do not want
16483         pathmax.h here as it might supply a non-constant PATH_MAX.)
16484         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16485         Perhaps they should be moved to malloca.h?
16486         (OPENAT_BUFFER_SIZE): Use them.
16487
16488 2011-01-10  Bruno Haible  <bruno@clisp.org>
16489
16490         doc: Update users.txt.
16491         * users.txt: Add recutils.
16492
16493 2011-01-09  Karl Berry  <karl@gnu.org>
16494
16495         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16496
16497         * doc/configmake.texi: New file.
16498         * doc/gnulib.texi: Include it.
16499         * modules/configmake: Move documentation from here.
16500
16501 2011-01-09  Bruno Haible  <bruno@clisp.org>
16502
16503         Update to Unicode 6.0.0.
16504         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16505         (get_lbp): Update for Unicode 6.0.0.
16506         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16507         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16508         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16509         U+11001, U+11038..U+11046. Remove U+06DE.
16510         (uc_width): Fix bounds of planes.
16511         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16512         lib/uniwidth/width.c.
16513         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16514         trailing whitespace removed.
16515         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16516         without comments, but with the original copyright notice.
16517         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16518         * lib/unicase/ignorable.h: Likewise.
16519         * lib/unicase/tocasefold.h: Likewise.
16520         * lib/unicase/tolower.h: Likewise.
16521         * lib/unicase/totitle.h: Likewise.
16522         * lib/unicase/toupper.h: Likewise.
16523         * lib/unictype/bidi_of.h: Likewise.
16524         * lib/unictype/blocks.h: Likewise.
16525         * lib/unictype/categ_C.h: Likewise.
16526         * lib/unictype/categ_Cn.h: Likewise.
16527         * lib/unictype/categ_L.h: Likewise.
16528         * lib/unictype/categ_Ll.h: Likewise.
16529         * lib/unictype/categ_Lm.h: Likewise.
16530         * lib/unictype/categ_Lo.h: Likewise.
16531         * lib/unictype/categ_Lu.h: Likewise.
16532         * lib/unictype/categ_M.h: Likewise.
16533         * lib/unictype/categ_Mc.h: Likewise.
16534         * lib/unictype/categ_Me.h: Likewise.
16535         * lib/unictype/categ_Mn.h: Likewise.
16536         * lib/unictype/categ_N.h: Likewise.
16537         * lib/unictype/categ_Nd.h: Likewise.
16538         * lib/unictype/categ_No.h: Likewise.
16539         * lib/unictype/categ_P.h: Likewise.
16540         * lib/unictype/categ_Po.h: Likewise.
16541         * lib/unictype/categ_S.h: Likewise.
16542         * lib/unictype/categ_Sc.h: Likewise.
16543         * lib/unictype/categ_Sk.h: Likewise.
16544         * lib/unictype/categ_Sm.h: Likewise.
16545         * lib/unictype/categ_So.h: Likewise.
16546         * lib/unictype/categ_of.h: Likewise.
16547         * lib/unictype/combining.h: Likewise.
16548         * lib/unictype/ctype_alnum.h: Likewise.
16549         * lib/unictype/ctype_alpha.h: Likewise.
16550         * lib/unictype/ctype_graph.h: Likewise.
16551         * lib/unictype/ctype_lower.h: Likewise.
16552         * lib/unictype/ctype_print.h: Likewise.
16553         * lib/unictype/ctype_punct.h: Likewise.
16554         * lib/unictype/ctype_upper.h: Likewise.
16555         * lib/unictype/decdigit.h: Likewise.
16556         * lib/unictype/digit.h: Likewise.
16557         * lib/unictype/numeric.h: Likewise.
16558         * lib/unictype/pr_alphabetic.h: Likewise.
16559         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16560         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16561         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16562         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16563         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16564         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16565         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16566         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16567         * lib/unictype/pr_case_ignorable.h: Likewise.
16568         * lib/unictype/pr_cased.h: Likewise.
16569         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16570         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16571         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16572         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16573         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16574         * lib/unictype/pr_combining.h: Likewise.
16575         * lib/unictype/pr_composite.h: Likewise.
16576         * lib/unictype/pr_currency_symbol.h: Likewise.
16577         * lib/unictype/pr_decimal_digit.h: Likewise.
16578         * lib/unictype/pr_deprecated.h: Likewise.
16579         * lib/unictype/pr_format_control.h: Likewise.
16580         * lib/unictype/pr_grapheme_base.h: Likewise.
16581         * lib/unictype/pr_grapheme_extend.h: Likewise.
16582         * lib/unictype/pr_grapheme_link.h: Likewise.
16583         * lib/unictype/pr_id_continue.h: Likewise.
16584         * lib/unictype/pr_id_start.h: Likewise.
16585         * lib/unictype/pr_ideographic.h: Likewise.
16586         * lib/unictype/pr_lowercase.h: Likewise.
16587         * lib/unictype/pr_math.h: Likewise.
16588         * lib/unictype/pr_numeric.h: Likewise.
16589         * lib/unictype/pr_other_alphabetic.h: Likewise.
16590         * lib/unictype/pr_other_id_continue.h: Likewise.
16591         * lib/unictype/pr_other_math.h: Likewise.
16592         * lib/unictype/pr_punctuation.h: Likewise.
16593         * lib/unictype/pr_sentence_terminal.h: Likewise.
16594         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16595         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16596         * lib/unictype/pr_unified_ideograph.h: Likewise.
16597         * lib/unictype/pr_uppercase.h: Likewise.
16598         * lib/unictype/pr_xid_continue.h: Likewise.
16599         * lib/unictype/pr_xid_start.h: Likewise.
16600         * lib/unictype/scripts.h: Likewise.
16601         * lib/unictype/scripts_byname.gperf: Likewise.
16602         * lib/unictype/sy_java_ident.h: Likewise.
16603         * lib/unigbrk/gbrkprop.h: Likewise.
16604         * lib/unilbrk/lbrkprop1.h: Likewise.
16605         * lib/unilbrk/lbrkprop2.h: Likewise.
16606         * lib/uninorm/decomposition-table2.h: Likewise.
16607         * lib/uniwbrk/wbrkprop.h: Likewise.
16608         * tests/unicase/test-cased.c: Likewise.
16609         * tests/unicase/test-ignorable.c: Likewise.
16610         * tests/unicase/test-uc_tolower.c: Likewise.
16611         * tests/unicase/test-uc_totitle.c: Likewise.
16612         * tests/unicase/test-uc_toupper.c: Likewise.
16613         * tests/unictype/test-categ_C.c: Likewise.
16614         * tests/unictype/test-categ_Cn.c: Likewise.
16615         * tests/unictype/test-categ_L.c: Likewise.
16616         * tests/unictype/test-categ_Ll.c: Likewise.
16617         * tests/unictype/test-categ_Lm.c: Likewise.
16618         * tests/unictype/test-categ_Lo.c: Likewise.
16619         * tests/unictype/test-categ_Lu.c: Likewise.
16620         * tests/unictype/test-categ_M.c: Likewise.
16621         * tests/unictype/test-categ_Mc.c: Likewise.
16622         * tests/unictype/test-categ_Me.c: Likewise.
16623         * tests/unictype/test-categ_Mn.c: Likewise.
16624         * tests/unictype/test-categ_N.c: Likewise.
16625         * tests/unictype/test-categ_Nd.c: Likewise.
16626         * tests/unictype/test-categ_No.c: Likewise.
16627         * tests/unictype/test-categ_P.c: Likewise.
16628         * tests/unictype/test-categ_Po.c: Likewise.
16629         * tests/unictype/test-categ_S.c: Likewise.
16630         * tests/unictype/test-categ_Sc.c: Likewise.
16631         * tests/unictype/test-categ_Sk.c: Likewise.
16632         * tests/unictype/test-categ_Sm.c: Likewise.
16633         * tests/unictype/test-categ_So.c: Likewise.
16634         * tests/unictype/test-ctype_alnum.c: Likewise.
16635         * tests/unictype/test-ctype_alpha.c: Likewise.
16636         * tests/unictype/test-ctype_graph.c: Likewise.
16637         * tests/unictype/test-ctype_lower.c: Likewise.
16638         * tests/unictype/test-ctype_print.c: Likewise.
16639         * tests/unictype/test-ctype_punct.c: Likewise.
16640         * tests/unictype/test-ctype_upper.c: Likewise.
16641         * tests/unictype/test-decdigit.h: Likewise.
16642         * tests/unictype/test-digit.h: Likewise.
16643         * tests/unictype/test-numeric.h: Likewise.
16644         * tests/unictype/test-pr_alphabetic.c: Likewise.
16645         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16646         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16647         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16648         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16649         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16650         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16651         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16652         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16653         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16654         * tests/unictype/test-pr_cased.c: Likewise.
16655         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16656         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16657         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16658         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16659         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16660         * tests/unictype/test-pr_combining.c: Likewise.
16661         * tests/unictype/test-pr_composite.c: Likewise.
16662         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16663         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16664         * tests/unictype/test-pr_deprecated.c: Likewise.
16665         * tests/unictype/test-pr_format_control.c: Likewise.
16666         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16667         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16668         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16669         * tests/unictype/test-pr_id_continue.c: Likewise.
16670         * tests/unictype/test-pr_id_start.c: Likewise.
16671         * tests/unictype/test-pr_ideographic.c: Likewise.
16672         * tests/unictype/test-pr_lowercase.c: Likewise.
16673         * tests/unictype/test-pr_math.c: Likewise.
16674         * tests/unictype/test-pr_numeric.c: Likewise.
16675         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16676         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16677         * tests/unictype/test-pr_other_math.c: Likewise.
16678         * tests/unictype/test-pr_punctuation.c: Likewise.
16679         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16680         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16681         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16682         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16683         * tests/unictype/test-pr_uppercase.c: Likewise.
16684         * tests/unictype/test-pr_xid_continue.c: Likewise.
16685         * tests/unictype/test-pr_xid_start.c: Likewise.
16686         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16687         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16688         changes.
16689         * lib/unictype/categ_Cc.h: Likewise.
16690         * lib/unictype/categ_Cf.h: Likewise.
16691         * lib/unictype/categ_Co.h: Likewise.
16692         * lib/unictype/categ_Cs.h: Likewise.
16693         * lib/unictype/categ_Lt.h: Likewise.
16694         * lib/unictype/categ_Nl.h: Likewise.
16695         * lib/unictype/categ_Pc.h: Likewise.
16696         * lib/unictype/categ_Pd.h: Likewise.
16697         * lib/unictype/categ_Pe.h: Likewise.
16698         * lib/unictype/categ_Pf.h: Likewise.
16699         * lib/unictype/categ_Pi.h: Likewise.
16700         * lib/unictype/categ_Ps.h: Likewise.
16701         * lib/unictype/categ_Z.h: Likewise.
16702         * lib/unictype/categ_Zl.h: Likewise.
16703         * lib/unictype/categ_Zp.h: Likewise.
16704         * lib/unictype/categ_Zs.h: Likewise.
16705         * lib/unictype/ctype_blank.h: Likewise.
16706         * lib/unictype/ctype_cntrl.h: Likewise.
16707         * lib/unictype/ctype_digit.h: Likewise.
16708         * lib/unictype/ctype_space.h: Likewise.
16709         * lib/unictype/ctype_xdigit.h: Likewise.
16710         * lib/unictype/mirror.h: Likewise.
16711         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16712         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16713         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16714         * lib/unictype/pr_bidi_control.h: Likewise.
16715         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16716         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16717         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16718         * lib/unictype/pr_bidi_pdf.h: Likewise.
16719         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16720         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16721         * lib/unictype/pr_dash.h: Likewise.
16722         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16723         * lib/unictype/pr_diacritic.h: Likewise.
16724         * lib/unictype/pr_extender.h: Likewise.
16725         * lib/unictype/pr_hex_digit.h: Likewise.
16726         * lib/unictype/pr_hyphen.h: Likewise.
16727         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16728         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16729         * lib/unictype/pr_ignorable_control.h: Likewise.
16730         * lib/unictype/pr_iso_control.h: Likewise.
16731         * lib/unictype/pr_join_control.h: Likewise.
16732         * lib/unictype/pr_left_of_pair.h: Likewise.
16733         * lib/unictype/pr_line_separator.h: Likewise.
16734         * lib/unictype/pr_logical_order_exception.h: Likewise.
16735         * lib/unictype/pr_non_break.h: Likewise.
16736         * lib/unictype/pr_not_a_character.h: Likewise.
16737         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16738         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16739         * lib/unictype/pr_other_id_start.h: Likewise.
16740         * lib/unictype/pr_other_lowercase.h: Likewise.
16741         * lib/unictype/pr_other_uppercase.h: Likewise.
16742         * lib/unictype/pr_paired_punctuation.h: Likewise.
16743         * lib/unictype/pr_paragraph_separator.h: Likewise.
16744         * lib/unictype/pr_pattern_syntax.h: Likewise.
16745         * lib/unictype/pr_pattern_white_space.h: Likewise.
16746         * lib/unictype/pr_private_use.h: Likewise.
16747         * lib/unictype/pr_quotation_mark.h: Likewise.
16748         * lib/unictype/pr_radical.h: Likewise.
16749         * lib/unictype/pr_soft_dotted.h: Likewise.
16750         * lib/unictype/pr_space.h: Likewise.
16751         * lib/unictype/pr_titlecase.h: Likewise.
16752         * lib/unictype/pr_variation_selector.h: Likewise.
16753         * lib/unictype/pr_white_space.h: Likewise.
16754         * lib/unictype/pr_zero_width.h: Likewise.
16755         * lib/unictype/sy_c_ident.h: Likewise.
16756         * lib/unictype/sy_c_whitespace.h: Likewise.
16757         * lib/unictype/sy_java_whitespace.h: Likewise.
16758         * lib/uninorm/composition-table.gperf: Likewise.
16759         * lib/uninorm/decomposition-table1.h: Likewise.
16760         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16761         LB8.
16762         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16763         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16764         * modules/unictype/*: Bump version number of expected libunistring
16765         version.
16766
16767 2011-01-09  Bruno Haible  <bruno@clisp.org>
16768
16769         Update to Unicode 5.2.0.
16770         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16771         trailing whitespace removed.
16772
16773 2011-01-09  Bruno Haible  <bruno@clisp.org>
16774
16775         New Unicode character properties, from Unicode 5.2.0.
16776         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16777         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16778         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16779         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16780         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16781         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16782         uc_is_property_cased, uc_is_property_case_ignorable,
16783         uc_is_property_changes_when_lowercased,
16784         uc_is_property_changes_when_uppercased,
16785         uc_is_property_changes_when_titlecased,
16786         uc_is_property_changes_when_casefolded,
16787         uc_is_property_changes_when_casemapped): New declarations.
16788         * lib/unictype/pr_byname.gperf: Add the new properties.
16789         * modules/unictype/property-byname (Depends-on): Depend on the new
16790         properties modules.
16791         * modules/unictype/property-all (Depends-on): Likewise.
16792         * MODULES.html.sh (Unicode string functions): Add
16793         unictype/property-case-ignorable, unictype/property-cased,
16794         unictype/property-changes-when-casefolded,
16795         unictype/property-changes-when-casemapped,
16796         unictype/property-changes-when-lowercased,
16797         unictype/property-changes-when-titlecased,
16798         unictype/property-changes-when-uppercased.
16799
16800         New module 'unictype/property-changes-when-casemapped'.
16801         * modules/unictype/property-changes-when-casemapped: New file.
16802         * lib/unictype/pr_changes_when_casemapped.c: New file.
16803         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16804         generated by gen-uni-tables.
16805         * modules/unictype/property-changes-when-casemapped-tests: New file.
16806         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16807         automatically generated by gen-uni-tables.
16808
16809         New module 'unictype/property-changes-when-casefolded'.
16810         * modules/unictype/property-changes-when-casefolded: New file.
16811         * lib/unictype/pr_changes_when_casefolded.c: New file.
16812         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16813         generated by gen-uni-tables.
16814         * modules/unictype/property-changes-when-casefolded-tests: New file.
16815         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16816         automatically generated by gen-uni-tables.
16817
16818         New module 'unictype/property-changes-when-titlecased'.
16819         * modules/unictype/property-changes-when-titlecased: New file.
16820         * lib/unictype/pr_changes_when_titlecased.c: New file.
16821         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16822         generated by gen-uni-tables.
16823         * modules/unictype/property-changes-when-titlecased-tests: New file.
16824         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16825         automatically generated by gen-uni-tables.
16826
16827         New module 'unictype/property-changes-when-uppercased'.
16828         * modules/unictype/property-changes-when-uppercased: New file.
16829         * lib/unictype/pr_changes_when_uppercased.c: New file.
16830         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16831         generated by gen-uni-tables.
16832         * modules/unictype/property-changes-when-uppercased-tests: New file.
16833         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16834         automatically generated by gen-uni-tables.
16835
16836         New module 'unictype/property-changes-when-lowercased'.
16837         * modules/unictype/property-changes-when-lowercased: New file.
16838         * lib/unictype/pr_changes_when_lowercased.c: New file.
16839         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16840         generated by gen-uni-tables.
16841         * modules/unictype/property-changes-when-lowercased-tests: New file.
16842         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16843         automatically generated by gen-uni-tables.
16844
16845         New module 'unictype/property-case-ignorable'.
16846         * modules/unictype/property-case-ignorable: New file.
16847         * lib/unictype/pr_case_ignorable.c: New file.
16848         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16849         by gen-uni-tables.
16850         * modules/unictype/property-case-ignorable-tests: New file.
16851         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16852         generated by gen-uni-tables.
16853
16854         New module 'unictype/property-cased'.
16855         * modules/unictype/property-cased: New file.
16856         * lib/unictype/pr_cased.c: New file.
16857         * lib/unictype/pr_cased.h: New file, automatically generated by
16858         gen-uni-tables.
16859         * modules/unictype/property-cased-tests: New file.
16860         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16861         gen-uni-tables.
16862
16863 2011-01-09  Bruno Haible  <bruno@clisp.org>
16864
16865         Update to Unicode 5.2.0.
16866         * lib/gen-uni-tables.c (output_predicate, output_category,
16867         output_combclass, output_bidi_category, output_decimal_digit_test,
16868         output_decimal_digit, output_digit_test, output_digit,
16869         output_numeric_test, output_numeric, output_mirror, output_scripts,
16870         output_scripts_byname, output_blocks, output_ident_category): Fix
16871         comment header.
16872         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16873         get_wbp.
16874         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16875         items.
16876         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16877         Changes_When_Lowercased, Changes_When_Uppercased,
16878         Changes_When_Titlecased, Changes_When_Casefolded,
16879         Changes_When_Casemapped.
16880         (is_property_alphabetic, is_property_default_ignorable_code_point):
16881         Update for Unicode 5.2.0.
16882         (is_property_cased, is_property_case_ignorable,
16883         is_property_changes_when_lowercased,
16884         is_property_changes_when_uppercased,
16885         is_property_changes_when_titlecased,
16886         is_property_changes_when_casefolded,
16887         is_property_changes_when_casemapped): New functions.
16888         (output_properties): Output also the properties cased, case_ignorable,
16889         changes_when_lowercased, changes_when_uppercased,
16890         changes_when_titlecased, changes_when_casefolded,
16891         changes_when_casemapped.
16892         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16893         Unicode TR#11 revision 17 -> 19.
16894         (LBP_CP): New enumeration value.
16895         (LBP_*): Adjust values accordingly.
16896         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16897         TR#14 revision 22 -> 24.
16898         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16899         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16900         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16901         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16902         is_WBP_MIDLETTER.
16903         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16904         the code1 and code2 of each composition rule.
16905         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16906         * lib/unicase/ignorable.h: Likewise.
16907         * lib/unicase/tocasefold.h: Likewise.
16908         * lib/unicase/tolower.h: Likewise.
16909         * lib/unicase/totitle.h: Likewise.
16910         * lib/unicase/toupper.h: Likewise.
16911         * lib/unictype/bidi_of.h: Likewise.
16912         * lib/unictype/blocks.h: Likewise.
16913         * lib/unictype/categ_C.h: Likewise.
16914         * lib/unictype/categ_Cf.h: Likewise.
16915         * lib/unictype/categ_Cn.h: Likewise.
16916         * lib/unictype/categ_L.h: Likewise.
16917         * lib/unictype/categ_Ll.h: Likewise.
16918         * lib/unictype/categ_Lm.h: Likewise.
16919         * lib/unictype/categ_Lo.h: Likewise.
16920         * lib/unictype/categ_Lu.h: Likewise.
16921         * lib/unictype/categ_M.h: Likewise.
16922         * lib/unictype/categ_Mc.h: Likewise.
16923         * lib/unictype/categ_Mn.h: Likewise.
16924         * lib/unictype/categ_N.h: Likewise.
16925         * lib/unictype/categ_Nd.h: Likewise.
16926         * lib/unictype/categ_Nl.h: Likewise.
16927         * lib/unictype/categ_No.h: Likewise.
16928         * lib/unictype/categ_P.h: Likewise.
16929         * lib/unictype/categ_Pd.h: Likewise.
16930         * lib/unictype/categ_Po.h: Likewise.
16931         * lib/unictype/categ_S.h: Likewise.
16932         * lib/unictype/categ_Sc.h: Likewise.
16933         * lib/unictype/categ_So.h: Likewise.
16934         * lib/unictype/categ_of.h: Likewise.
16935         * lib/unictype/combining.h: Likewise.
16936         * lib/unictype/ctype_alnum.h: Likewise.
16937         * lib/unictype/ctype_alpha.h: Likewise.
16938         * lib/unictype/ctype_graph.h: Likewise.
16939         * lib/unictype/ctype_lower.h: Likewise.
16940         * lib/unictype/ctype_print.h: Likewise.
16941         * lib/unictype/ctype_punct.h: Likewise.
16942         * lib/unictype/ctype_upper.h: Likewise.
16943         * lib/unictype/decdigit.h: Likewise.
16944         * lib/unictype/digit.h: Likewise.
16945         * lib/unictype/numeric.h: Likewise.
16946         * lib/unictype/pr_alphabetic.h: Likewise.
16947         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16948         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16949         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16950         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16951         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16952         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16953         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16954         * lib/unictype/pr_combining.h: Likewise.
16955         * lib/unictype/pr_composite.h: Likewise.
16956         * lib/unictype/pr_currency_symbol.h: Likewise.
16957         * lib/unictype/pr_dash.h: Likewise.
16958         * lib/unictype/pr_decimal_digit.h: Likewise.
16959         * lib/unictype/pr_deprecated.h: Likewise.
16960         * lib/unictype/pr_diacritic.h: Likewise.
16961         * lib/unictype/pr_extender.h: Likewise.
16962         * lib/unictype/pr_grapheme_base.h: Likewise.
16963         * lib/unictype/pr_grapheme_extend.h: Likewise.
16964         * lib/unictype/pr_grapheme_link.h: Likewise.
16965         * lib/unictype/pr_id_continue.h: Likewise.
16966         * lib/unictype/pr_id_start.h: Likewise.
16967         * lib/unictype/pr_ideographic.h: Likewise.
16968         * lib/unictype/pr_ignorable_control.h: Likewise.
16969         * lib/unictype/pr_logical_order_exception.h: Likewise.
16970         * lib/unictype/pr_lowercase.h: Likewise.
16971         * lib/unictype/pr_numeric.h: Likewise.
16972         * lib/unictype/pr_other_alphabetic.h: Likewise.
16973         * lib/unictype/pr_punctuation.h: Likewise.
16974         * lib/unictype/pr_sentence_terminal.h: Likewise.
16975         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16976         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16977         * lib/unictype/pr_unified_ideograph.h: Likewise.
16978         * lib/unictype/pr_uppercase.h: Likewise.
16979         * lib/unictype/pr_xid_continue.h: Likewise.
16980         * lib/unictype/pr_xid_start.h: Likewise.
16981         * lib/unictype/pr_zero_width.h: Likewise.
16982         * lib/unictype/scripts.h: Likewise.
16983         * lib/unictype/scripts_byname.gperf: Likewise.
16984         * lib/unictype/sy_java_ident.h: Likewise.
16985         * lib/unigbrk/gbrkprop.h: Likewise.
16986         * lib/unilbrk/lbrkprop1.h: Likewise.
16987         * lib/unilbrk/lbrkprop2.h: Likewise.
16988         * lib/unilbrk/lbrktables.h: Likewise.
16989         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16990         LBP_CP. Implement rule LB30.
16991         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16992         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16993         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16994         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16995         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16996         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16997         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16998         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16999         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17000         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17001         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17002         bits instead of 16 bits in the code1 and code2 of each composition
17003         rule.
17004         (uc_composition): Update for Unicode 5.2.0.
17005         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17006         * lib/uninorm/decomposition-table2.h: Likewise.
17007         * lib/uniwbrk/wbrkprop.h: Likewise.
17008         * tests/unicase/test-cased.c: Likewise.
17009         * tests/unicase/test-ignorable.c: Likewise.
17010         * tests/unicase/test-uc_tolower.c: Likewise.
17011         * tests/unicase/test-uc_totitle.c: Likewise.
17012         * tests/unicase/test-uc_toupper.c: Likewise.
17013         * tests/unictype/test-categ_C.c: Likewise.
17014         * tests/unictype/test-categ_Cf.c: Likewise.
17015         * tests/unictype/test-categ_Cn.c: Likewise.
17016         * tests/unictype/test-categ_L.c: Likewise.
17017         * tests/unictype/test-categ_Ll.c: Likewise.
17018         * tests/unictype/test-categ_Lm.c: Likewise.
17019         * tests/unictype/test-categ_Lo.c: Likewise.
17020         * tests/unictype/test-categ_Lu.c: Likewise.
17021         * tests/unictype/test-categ_M.c: Likewise.
17022         * tests/unictype/test-categ_Mc.c: Likewise.
17023         * tests/unictype/test-categ_Mn.c: Likewise.
17024         * tests/unictype/test-categ_N.c: Likewise.
17025         * tests/unictype/test-categ_Nd.c: Likewise.
17026         * tests/unictype/test-categ_Nl.c: Likewise.
17027         * tests/unictype/test-categ_No.c: Likewise.
17028         * tests/unictype/test-categ_P.c: Likewise.
17029         * tests/unictype/test-categ_Pd.c: Likewise.
17030         * tests/unictype/test-categ_Po.c: Likewise.
17031         * tests/unictype/test-categ_S.c: Likewise.
17032         * tests/unictype/test-categ_Sc.c: Likewise.
17033         * tests/unictype/test-categ_So.c: Likewise.
17034         * tests/unictype/test-ctype_alnum.c: Likewise.
17035         * tests/unictype/test-ctype_alpha.c: Likewise.
17036         * tests/unictype/test-ctype_graph.c: Likewise.
17037         * tests/unictype/test-ctype_lower.c: Likewise.
17038         * tests/unictype/test-ctype_print.c: Likewise.
17039         * tests/unictype/test-ctype_punct.c: Likewise.
17040         * tests/unictype/test-ctype_upper.c: Likewise.
17041         * tests/unictype/test-decdigit.h: Likewise.
17042         * tests/unictype/test-digit.h: Likewise.
17043         * tests/unictype/test-numeric.h: Likewise.
17044         * tests/unictype/test-pr_alphabetic.c: Likewise.
17045         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17046         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17047         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17048         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17049         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17050         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17051         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17052         * tests/unictype/test-pr_combining.c: Likewise.
17053         * tests/unictype/test-pr_composite.c: Likewise.
17054         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17055         * tests/unictype/test-pr_dash.c: Likewise.
17056         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17057         * tests/unictype/test-pr_deprecated.c: Likewise.
17058         * tests/unictype/test-pr_diacritic.c: Likewise.
17059         * tests/unictype/test-pr_extender.c: Likewise.
17060         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17061         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17062         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17063         * tests/unictype/test-pr_id_continue.c: Likewise.
17064         * tests/unictype/test-pr_id_start.c: Likewise.
17065         * tests/unictype/test-pr_ideographic.c: Likewise.
17066         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17067         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17068         * tests/unictype/test-pr_lowercase.c: Likewise.
17069         * tests/unictype/test-pr_numeric.c: Likewise.
17070         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17071         * tests/unictype/test-pr_punctuation.c: Likewise.
17072         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17073         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17074         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17075         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17076         * tests/unictype/test-pr_uppercase.c: Likewise.
17077         * tests/unictype/test-pr_xid_continue.c: Likewise.
17078         * tests/unictype/test-pr_xid_start.c: Likewise.
17079         * tests/unictype/test-pr_zero_width.c: Likewise.
17080         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17081         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17082         changed behaviour: line breaking is now disallowed between a letter
17083         or '=' and '('.
17084         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17085         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17086         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17087         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17088         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17089         lib/uniwidth/width.c.
17090         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17091         without comments, but with the original copyright notice.
17092         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17093         changes.
17094         * lib/unictype/categ_Cc.h: Likewise.
17095         * lib/unictype/categ_Co.h: Likewise.
17096         * lib/unictype/categ_Cs.h: Likewise.
17097         * lib/unictype/categ_Lt.h: Likewise.
17098         * lib/unictype/categ_Me.h: Likewise.
17099         * lib/unictype/categ_Pc.h: Likewise.
17100         * lib/unictype/categ_Pe.h: Likewise.
17101         * lib/unictype/categ_Pf.h: Likewise.
17102         * lib/unictype/categ_Pi.h: Likewise.
17103         * lib/unictype/categ_Ps.h: Likewise.
17104         * lib/unictype/categ_Sk.h: Likewise.
17105         * lib/unictype/categ_Sm.h: Likewise.
17106         * lib/unictype/categ_Z.h: Likewise.
17107         * lib/unictype/categ_Zl.h: Likewise.
17108         * lib/unictype/categ_Zp.h: Likewise.
17109         * lib/unictype/categ_Zs.h: Likewise.
17110         * lib/unictype/ctype_blank.h: Likewise.
17111         * lib/unictype/ctype_cntrl.h: Likewise.
17112         * lib/unictype/ctype_digit.h: Likewise.
17113         * lib/unictype/ctype_space.h: Likewise.
17114         * lib/unictype/ctype_xdigit.h: Likewise.
17115         * lib/unictype/mirror.h: Likewise.
17116         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17117         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17118         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17119         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17120         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17121         * lib/unictype/pr_bidi_control.h: Likewise.
17122         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17123         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17124         * lib/unictype/pr_bidi_pdf.h: Likewise.
17125         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17126         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17127         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17128         * lib/unictype/pr_format_control.h: Likewise.
17129         * lib/unictype/pr_hex_digit.h: Likewise.
17130         * lib/unictype/pr_hyphen.h: Likewise.
17131         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17132         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17133         * lib/unictype/pr_iso_control.h: Likewise.
17134         * lib/unictype/pr_join_control.h: Likewise.
17135         * lib/unictype/pr_left_of_pair.h: Likewise.
17136         * lib/unictype/pr_line_separator.h: Likewise.
17137         * lib/unictype/pr_math.h: Likewise.
17138         * lib/unictype/pr_non_break.h: Likewise.
17139         * lib/unictype/pr_not_a_character.h: Likewise.
17140         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17141         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17142         * lib/unictype/pr_other_id_continue.h: Likewise.
17143         * lib/unictype/pr_other_id_start.h: Likewise.
17144         * lib/unictype/pr_other_lowercase.h: Likewise.
17145         * lib/unictype/pr_other_math.h: Likewise.
17146         * lib/unictype/pr_other_uppercase.h: Likewise.
17147         * lib/unictype/pr_paired_punctuation.h: Likewise.
17148         * lib/unictype/pr_paragraph_separator.h: Likewise.
17149         * lib/unictype/pr_pattern_syntax.h: Likewise.
17150         * lib/unictype/pr_pattern_white_space.h: Likewise.
17151         * lib/unictype/pr_private_use.h: Likewise.
17152         * lib/unictype/pr_quotation_mark.h: Likewise.
17153         * lib/unictype/pr_radical.h: Likewise.
17154         * lib/unictype/pr_soft_dotted.h: Likewise.
17155         * lib/unictype/pr_space.h: Likewise.
17156         * lib/unictype/pr_titlecase.h: Likewise.
17157         * lib/unictype/pr_variation_selector.h: Likewise.
17158         * lib/unictype/pr_white_space.h: Likewise.
17159         * lib/unictype/sy_c_ident.h: Likewise.
17160         * lib/unictype/sy_c_whitespace.h: Likewise.
17161         * lib/unictype/sy_java_whitespace.h: Likewise.
17162         * modules/uni*/*: Bump version number of expected libunistring version.
17163         Reported by Simon Josefsson.
17164
17165 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17166
17167         useless-if-before-free: fix typo in --help and make the internal,
17168         automatic version date update process work once again.
17169         --help output contained a NUL character instead of the
17170         backslash-zero that was intended.  Also, the "must lie within
17171         the first 8 lines" line is on line 9, and hence not getting
17172         automatically updated.
17173         * build-aux/useless-if-before-free: Fix the former by adding a
17174         backslash, and the latter by condensing the three lines of what-it-does
17175         to a single line, leaving one line of slack for the future.
17176
17177 2011-01-09  Bruno Haible  <bruno@clisp.org>
17178
17179         uniwidth/width: Fix width of U+1D173..U+1D17A.
17180         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17181         symbolic_width, output_width_property_test): New functions.
17182         (main): Invoke output_nonspacing_property, output_width_property_test.
17183         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17184         U+1D173..U+1D17A.
17185         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17186         1.
17187         * modules/uniwidth/*: Bump version number of expected libunistring
17188         version.
17189         * modules/unilbrk/*: Likewise.
17190
17191 2011-01-08  Bruno Haible  <bruno@clisp.org>
17192
17193         uninorm tests: Preserve copyright of Unicode data file.
17194         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17195         Mention modifications.
17196
17197 2011-01-08  Bruno Haible  <bruno@clisp.org>
17198
17199         gen-uni-tables: Prepare for Unicode 5.2.0.
17200         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17201         (debug_output_lbp, output_lbp): Update.
17202
17203 2011-01-08  Bruno Haible  <bruno@clisp.org>
17204
17205         unilbrk: Clarify gen-uni-tables.c code.
17206         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17207         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17208         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17209
17210 2011-01-07  Bruno Haible  <bruno@clisp.org>
17211
17212         strtod: Restore errno when successfully parsing Infinity or NaN.
17213         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17214         restore the original errno.
17215
17216 2011-01-07  Bruno Haible  <bruno@clisp.org>
17217
17218         remove test: Avoid failure on HP-UX 11.
17219         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17220
17221 2011-01-07  Bruno Haible  <bruno@clisp.org>
17222
17223         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17224         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17225         error code.
17226
17227 2011-01-07  Pádraig Brady <P@draigBrady.com>
17228
17229         ignore-value: fixup comments, and add Eric Blake
17230         as an author since he rewrote the macros.
17231         * lib/ignore-value.h (ignore_value):  State that
17232         we now support aggregates.  Also specify exactly
17233         when the GCC warn_unused_result feature was added.
17234
17235 2011-01-06  Eric Blake  <eblake@redhat.com>
17236
17237         ignore-value: support aggregate types
17238         * lib/ignore-value.h (ignore_value): Provide separate gcc
17239         definition.
17240         * modules/ignore-value-tests: New test module.
17241         * tests/test-ignore-value.c: New test.
17242
17243         maint.mk: improve sc_prohibit_strcmp regex
17244         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17245         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17246         definition of STRNEQ.
17247
17248         signal: work around Haiku issue with SIGBUS
17249         * lib/siglist.h: Add comment.
17250         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17251         strsignal's favoring of SIGSEGV.
17252         * tests/test-signal.c (main): Avoid test failure.
17253         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17254         Reported by Scott McCreary.
17255
17256         maint.mk: add pre-release check to ensure submodule commits are public
17257         * top/maint.mk (public-submodule-commit): New rule.
17258         (submodule-checks): New variable.
17259         (alpha beta stable): Depend on the variable.
17260
17261 2011-01-05  Pádraig Brady <P@draigBrady.com>
17262         and Jim Meyering  <meyering@redhat.com>
17263
17264         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17265         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17266         (ATTRIBUTE_DEPRECATED): Define.
17267         (_ignore_case): New function.
17268         (ignore_value): New macro, to replace the old function.
17269         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17270         * modules/ignore-value (Depends-on): Add stdint.
17271
17272 2011-01-04  Eric Blake  <eblake@redhat.com>
17273
17274         doc: regenerate INSTALL
17275         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17276         @firstparagraphindent support, now that autoconf dropped it.
17277         (INSTALL_PRELUDE): Reinstate old macro.
17278         * doc/install.texi: Resync from autoconf.
17279         * doc/INSTALL: Reflect recent autoconf update.
17280         * doc/INSTALL.ISO: Likewise.
17281         * doc/INSTALL.UTF-8: Likewise.
17282         Reported by Karl Berry.
17283
17284 2011-01-04  Bruce Korb  <address@hidden>
17285
17286         git-version-gen: avoid a sub-shell
17287         * build-aux/git-version-gen: Redirect stderr in `...` via
17288         "exec 2>...", rather than via an added sub-shell.
17289
17290 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17291
17292         git-version-gen: use (...) rather than sh -c '...'
17293         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17294         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17295
17296 2011-01-03  Jim Meyering  <meyering@redhat.com>
17297
17298         git-version-gen: convert leading TABs to spaces
17299         * build-aux/git-version-gen: Expand leading TABs.
17300
17301         git-version-gen: handle failed "git rev-list"
17302         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17303         from git and proceeding as if it had succeeded but printed no SHA1
17304         checksums, suppress the diagnostic and handle the failure.
17305         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17306
17307         git-version-gen: include command name in one more diagnostic
17308         * build-aux/git-version-gen: When the required .tarball-version file
17309         was missing or unreadable, you might see the diagnostic from "cat",
17310         but no trace of the name of the invoking script.  Now, you still see
17311         the diagnostic from cat, but also get one from "git-version-gen: ".
17312         Inspired by a patch from Bruce Korb.
17313
17314         update-copyright: adjust test to match changed code
17315         * tests/test-update-copyright.sh: Change test's expected output
17316         to match new actual output.
17317
17318 2011-01-02  Bruno Haible  <bruno@clisp.org>
17319
17320         getlogin_r: Avoid test failure on HP-UX 11.
17321         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17322         ERANGE when the second argument is zero.
17323         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17324         portability problem.
17325
17326 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17327
17328         * build-aux/update-copyright: doc Simon's changes
17329
17330 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17331
17332         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17333         environment variable.
17334
17335 2011-01-02  Bruno Haible  <bruno@clisp.org>
17336
17337         unigbrk: Avoid gcc warnings.
17338         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17339         unused variable.
17340         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17341         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17342         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17343         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17344         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17345         Change type of first argument to 'const char *'.
17346         (main): Remove unused variable.
17347         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17348         type of first argument to 'const char *'.
17349         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17350         Likewise.
17351         (main): Change type of variable 's'.
17352         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17353         to 'int'.
17354
17355 2011-01-02  Bruno Haible  <bruno@clisp.org>
17356
17357         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17358         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17359         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17360         bug.
17361         * lib/pwrite.c: Undo 2010-12-31 patch.
17362         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17363
17364 2011-01-02  Bruno Haible  <bruno@clisp.org>
17365
17366         pread: Fix test whether it works.
17367         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17368
17369 2011-01-02  Bruno Haible  <bruno@clisp.org>
17370
17371         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17372         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17373         ends in "6". Don't require a specific month name. Try also the locale
17374         names found on HP-UX 11 and Solaris 7.
17375
17376 2011-01-02  Bruno Haible  <bruno@clisp.org>
17377
17378         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17379         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17380         C linkage.
17381         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17382
17383 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17384
17385         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17386         for consistency, since the "cluster" term is not used elsewhere.
17387         * lib/unigbrk.in.h: Update name.
17388         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17389         * lib/unigbrk/u16-grapheme-next.c: Update name.
17390         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17391         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17392         * lib/unigbrk/u32-grapheme-next.c: Update name.
17393         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17394         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17395         * lib/unigbrk/u8-grapheme-next.c: Update name.
17396         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17397         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17398         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17399         Suggested by Bruno Haible.
17400
17401 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17402
17403         Remove module 'u8-grapheme-len' as too redundant with
17404         'u8-grapheme-next'.
17405         * modules/unigbrk/u8-grapheme-len: Delete file.
17406         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17407         * lib/unigbrk.in.h: Remove prototype for deleted function.
17408         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17409         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17410
17411         Remove module 'u16-grapheme-len' as too redundant with
17412         'u16-grapheme-next'.
17413         * modules/unigbrk/u16-grapheme-len: Delete file.
17414         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17415         * lib/unigbrk.in.h: Remove prototype for deleted function.
17416         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17417         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17418
17419         Remove module 'u32-grapheme-len' as too redundant with
17420         'u32-grapheme-next'.
17421         * modules/unigbrk/u32-grapheme-len: Delete file.
17422         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17423         * lib/unigbrk.in.h: Remove prototype for deleted function.
17424         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17425         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17426
17427         Suggested by Bruno Haible.
17428
17429 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17430
17431         * unigbrk.in.h: Fix typo: "ben" => "been".
17432         Reported by Bruno Haible.
17433
17434 2011-01-01  Jim Meyering  <meyering@redhat.com>
17435
17436         maint: update almost all copyright ranges to include 2011
17437         Run the new "make update-copyright" rule.
17438
17439 2011-01-01  Jim Meyering  <meyering@redhat.com>
17440
17441         maint: update-copyright: exempt doc/INSTALL*
17442         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17443         since they are generated.  Suggested by Bruno Haible.
17444
17445 2011-01-01  Jim Meyering  <meyering@redhat.com>
17446
17447         maint: refine the update-copyright rule
17448         * Makefile (update-copyright): Also exclude any file that includes
17449         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17450         code that merely generates the comment.
17451
17452 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17453
17454         New module 'u8-grapheme-len'.
17455         * modules/unigbrk/u8-grapheme-len: New file.
17456         * modules/unigbrk/u8-grapheme-len-tests: New file.
17457         * lib/unigbrk.in.h: Add prototype for new function.
17458         * lib/unigbrk/u8-grapheme-len.c: New file.
17459         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17460
17461         New module 'u16-grapheme-len'.
17462         * modules/unigbrk/u16-grapheme-len: New file.
17463         * modules/unigbrk/u16-grapheme-len-tests: New file.
17464         * lib/unigbrk.in.h: Add prototype for new function.
17465         * lib/unigbrk/u16-grapheme-len.c: New file.
17466         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17467
17468         New module 'u32-grapheme-len'.
17469         * modules/unigbrk/u32-grapheme-len: New file.
17470         * modules/unigbrk/u32-grapheme-len-tests: New file.
17471         * lib/unigbrk.in.h: Add prototype for new function.
17472         * lib/unigbrk/u32-grapheme-len.c: New file.
17473         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17474
17475         New module 'u8-grapheme-next'.
17476         * modules/unigbrk/u8-grapheme-next: New file.
17477         * modules/unigbrk/u8-grapheme-next-tests: New file.
17478         * lib/unigbrk.in.h: Add prototype for new function.
17479         * lib/unigbrk/u8-grapheme-next.c: New file.
17480         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17481
17482         New module 'u16-grapheme-next'.
17483         * modules/unigbrk/u16-grapheme-next: New file.
17484         * modules/unigbrk/u16-grapheme-next-tests: New file.
17485         * lib/unigbrk.in.h: Add prototype for new function.
17486         * lib/unigbrk/u16-grapheme-next.c: New file.
17487         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17488
17489         New module 'u32-grapheme-next'.
17490         * modules/unigbrk/u32-grapheme-next: New file.
17491         * modules/unigbrk/u32-grapheme-next-tests: New file.
17492         * lib/unigbrk.in.h: Add prototype for new function.
17493         * lib/unigbrk/u32-grapheme-next.c: New file.
17494         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17495
17496         New module 'u8-grapheme-prev'.
17497         * modules/unigbrk/u8-grapheme-prev: New file.
17498         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17499         * lib/unigbrk.in.h: Add prototype for new function.
17500         * lib/unigbrk/u8-grapheme-prev.c: New file.
17501         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17502
17503         New module 'u16-grapheme-prev'.
17504         * modules/unigbrk/u16-grapheme-prev: New file.
17505         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17506         * lib/unigbrk.in.h: Add prototype for new function.
17507         * lib/unigbrk/u16-grapheme-prev.c: New file.
17508         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17509
17510         New module 'u32-grapheme-prev'.
17511         * modules/unigbrk/u32-grapheme-prev: New file.
17512         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17513         * lib/unigbrk.in.h: Add prototype for new function.
17514         * lib/unigbrk/u32-grapheme-prev.c: New file.
17515         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17516
17517         New module 'u8-grapheme-breaks'.
17518         * modules/unigbrk/u8-grapheme-breaks: New file.
17519         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17520         * lib/unigbrk.in.h: Add prototype for new function.
17521         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17522         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17523
17524         New module 'u16-grapheme-breaks'.
17525         * modules/unigbrk/u16-grapheme-breaks: New file.
17526         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17527         * lib/unigbrk.in.h: Add prototype for new function.
17528         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17529         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17530
17531         New module 'u32-grapheme-breaks'.
17532         * modules/unigbrk/u32-grapheme-breaks: New file.
17533         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17534         * lib/unigbrk.in.h: Add prototype for new function.
17535         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17536         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17537
17538         New module 'ulc-grapheme-breaks'.
17539         * modules/unigbrk/ulc-grapheme-breaks: New file.
17540         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17541         * m4/locale-ar.m4: New file.
17542         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17543         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17544         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17545
17546 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17547
17548         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17549         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17550         modified how this file was generated before I initially submitted
17551         the module, but failed to regenerate it.  This meant that several
17552         of the level2 entries were wrong.
17553         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17554         Remove the division-by-2 that is folded into the table now that
17555         gbrkprop.h has been regenerated properly.  Now -1 entries are
17556         handled correctly.
17557
17558         New module 'unigbrk/uc-gbrk-prop-tests'.
17559         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17560         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17561         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17562         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17563
17564 2011-01-01  Bruno Haible  <bruno@clisp.org>
17565
17566         Avoid use of hexadecimal escapes.
17567         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17568         instead of hexadecimal escapes.
17569
17570 2011-01-01  Jim Meyering  <meyering@redhat.com>
17571
17572         maint: new rule to update copyright year ranges
17573         * Makefile (update-copyright): New rule.
17574
17575         maint: indent with TABs in Makefile
17576         * Makefile: Expand leading sequences of spaces to TABs
17577
17578         version-etc: update the copyright year it reports
17579         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17580
17581 2010-12-31  Bruno Haible  <bruno@clisp.org>
17582
17583         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17584         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17585         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17586         zero.
17587
17588 2010-12-31  Bruno Haible  <bruno@clisp.org>
17589
17590         pwrite: Work around HP-UX 11.11 bug.
17591         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17592         works and set REPLACE_PWRITE if not.
17593         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17594         function.
17595         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17596
17597 2010-12-31  Bruno Haible  <bruno@clisp.org>
17598
17599         pread: Work around HP-UX 11 bugs.
17600         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17601         and set REPLACE_PREAD if not.
17602         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17603
17604 2010-12-31  Eric Blake  <eblake@redhat.com>
17605
17606         nl_langinfo: fix YESEXPR on Irix 6.5
17607         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17608         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17609         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17610         it.
17611
17612 2010-12-31  Bruno Haible  <bruno@clisp.org>
17613
17614         iconv: Document HP-UX 11 bug.
17615         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17616
17617 2010-12-31  Bruno Haible  <bruno@clisp.org>
17618
17619         ldexpl: Fix link error on HP-UX 11.
17620         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17621         LDEXPL_LIBM, using $ISNANL_LIBM.
17622
17623 2010-12-31  Eric Blake  <eblake@redhat.com>
17624
17625         ftello: avoid compilation failure with SunStudio c89
17626         * lib/ftello.c (ftello): Use lseek, not llseek.
17627
17628         tests: avoid failing coreutils tests on cygwin
17629         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17630         (create_exe_shims_): Return 0 when skipping.
17631
17632 2010-12-31  Bruno Haible  <bruno@clisp.org>
17633
17634         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17635         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17636
17637 2010-12-31  Bruno Haible  <bruno@clisp.org>
17638
17639         waitpid: Fix link error in C++ mode.
17640         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17641
17642 2010-12-31  Bruno Haible  <bruno@clisp.org>
17643
17644         isnan: Use GCC built-ins when possible.
17645         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17646         __builtin_isnan.
17647         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17648         (isnan): Define using GCC built-ins for GCC >= 4.0.
17649
17650 2010-12-31  Bruno Haible  <bruno@clisp.org>
17651
17652         isnand: Fix mistake.
17653         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17654         __builtin_isnand.
17655
17656 2010-12-31  Bruno Haible  <bruno@clisp.org>
17657
17658         open: Avoid C++ error on HP-UX 11.
17659         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17660
17661 2010-12-31  Bruno Haible  <bruno@clisp.org>
17662
17663         time_r: Add missing declarations on HP-UX 11.
17664         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17665         instead of HAVE_LOCALTIME_R.
17666         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17667         HAVE_LOCALTIME_R always.
17668         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17669         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17670         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17671         HAVE_LOCALTIME_R.
17672         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17673         * doc/posix-functions/localtime_r.texi: Likewise.
17674
17675 2010-12-29  Eric Blake  <eblake@redhat.com>
17676
17677         mountlist: tweak previous commit
17678         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17679         Reported by Paul Eggert.
17680
17681         mountlist: fix local drive detection on cygwin
17682         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17683         that works for cygwin.
17684
17685 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17686
17687         ftoastr, snprintf: ftoastr + snprintf module
17688         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17689         since the snprintf module now should be good enough here.
17690         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17691         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17692         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17693         GNULIB_SNPRINTF only for the test directory, and the latter
17694         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17695         seems to suffice by itself.
17696
17697 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17698
17699         alloca: one step towards thread-safety
17700         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17701         need for a static variable.  All callers changed.  This does not
17702         make the alloca replacement thread-safe, but it's one step.
17703
17704         tests: minor indenting change
17705         * tests/init.sh: Sync from coreutils housekeeping patch
17706         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17707         to keep lines within 80 columns.
17708
17709 2010-12-28  Jim Meyering  <meyering@redhat.com>
17710
17711         regex: don't infloop on persistent failing calloc
17712         * lib/regexec.c (build_trtable): Return failure indication upon
17713         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17714         In glibc, this was fixed for version 2.13:
17715         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17716
17717 2010-12-28  Bruno Haible  <bruno@clisp.org>
17718             Paul Eggert <eggert@cs.ucla.edu>
17719
17720         linkat: Make implementation robust against system behaviour variations.
17721         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17722         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17723         way, and to -2 if it needs a generic runtime test.
17724         * lib/linkat.c (solaris_optimized_link_immediate,
17725         solaris_optimized_link_follow): New functions.
17726         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17727         (check_same_link): Use it.
17728
17729 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17730
17731         New module 'unigbrk/base'.
17732         * modules/unigbrk/base: New file.
17733         * lib/unigbrk.in.h: New file.
17734
17735         New module 'unigbrk/uc-gbrk-prop'.
17736         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17737         * modules/unigbrk/uc-gbrk-prop: New file.
17738         * lib/unigbrk/gbrkprop.h: New file.
17739         * lib/unigbrk/uc-gbrk-prop.c: New file.
17740
17741         New module 'unigbrk/uc-is-grapheme-break'.
17742         * modules/unigbrk/uc-is-grapheme-break: New file.
17743         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17744         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17745         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17746         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17747         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17748
17749         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17750
17751 2010-12-27  Bruno Haible  <bruno@clisp.org>
17752
17753         linkat test: Avoid failure on Solaris 11 2010-11.
17754         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17755
17756 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17757
17758         utimens: work around glibc rounding bug on more platforms
17759         * lib/utimens.c (fdutimens): Work around rounding bug even if
17760         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17761         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17762
17763 2010-12-27  Bruno Haible  <bruno@clisp.org>
17764
17765         select tests: Improve comments.
17766         * tests/test-select.c (do_select): Add comments.
17767
17768 2010-12-27  Bruno Haible  <bruno@clisp.org>
17769
17770         select tests: Safer way of handling timeout.
17771         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17772         at every invocation.
17773
17774 2010-12-27  Bruno Haible  <bruno@clisp.org>
17775
17776         select tests: Use 'bool' where appropriate.
17777         * tests/test-select.c (connect_to_socket): Change argument type to
17778         'bool'.
17779
17780 2010-12-27  Bruno Haible  <bruno@clisp.org>
17781
17782         select tests: Use existing modules.
17783         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17784         (configure.ac): Don't test for unistd.h.
17785         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17786         declared in <unistd.h>.
17787
17788 2010-12-27  Bruno Haible  <bruno@clisp.org>
17789
17790         mbrtowc: Work around a Solaris 7 bug.
17791         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17792         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17793         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17794         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17795         MBRTOWC_NULL_ARG1_BUG.
17796         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17797         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17798         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17799         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17800
17801 2010-12-27  Jim Meyering  <meyering@redhat.com>
17802
17803         read-file.c: tweak syntax
17804         * lib/read-file.c (fread_file): Remove space after "*" in function
17805         definitions.
17806
17807 2010-12-27  Bruno Haible  <bruno@clisp.org>
17808
17809         times test: Avoid gcc warnings on OSF/1.
17810         * tests/test-times.c (main): Cast printf arguments from clock_t to
17811         'long int'.
17812
17813 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17814
17815         utimens: work around glibc rounding bug on older Linux kernels
17816         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17817         on Linux with a glibc whose utimes might not work, then work
17818         around a longstanding glibc bug involving rounding rather than
17819         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17820         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17821
17822 2010-12-26  Bruno Haible  <bruno@clisp.org>
17823
17824         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17825         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17826         _GL_CXXALIAS_SYS.
17827         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17828
17829 2010-12-26  Bruno Haible  <bruno@clisp.org>
17830
17831         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17832         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17833         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17834         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17835         looking for the declaration.
17836         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17837         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17838         problem.
17839         * doc/posix-functions/inet_pton.texi: Likewise.
17840
17841 2010-12-26  Bruno Haible  <bruno@clisp.org>
17842
17843         arpa_inet: Use the common idioms with C++ support.
17844         * lib/arpa_inet.in.h: Include c++defs.h.
17845         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17846         support.
17847         * modules/arpa_inet (Depends-on): Add c++defs.
17848         (Makefile.am): Substitute the contents of c++defs.h.
17849         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17850         * modules/arpa_inet-c++-tests: New file.
17851         * tests/test-arpa_inet-c++.cc: New file.
17852
17853 2010-12-25  Bruno Haible  <bruno@clisp.org>
17854
17855         Fix more C++ link errors on Solaris 8.
17856         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17857         $(LIB_EACCESS).
17858         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17859         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17860         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17861         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17862         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17863
17864 2010-12-25  Bruno Haible  <bruno@clisp.org>
17865
17866         printf-posix: Fix link error when a non-GCC compiler is used.
17867         * lib/stdio.in.h (printf): When not using GCC, override printf
17868         correctly.
17869         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17870
17871 2010-12-25  Bruno Haible  <bruno@clisp.org>
17872
17873         strerror_r-posix: Update doc.
17874         * doc/posix-functions/strerror_r.texi: Update doc about the return
17875         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17876
17877 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17878
17879         utimens: simplify the logic of the previous change
17880         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17881         This should not affect whether the test succeeds or fails.
17882
17883         utimens: configure better on hosts with NFS clock skew
17884         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17885         uses the clock of the local host.  It might use the clock of the
17886         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17887         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17888
17889 2010-12-25  Bruno Haible  <bruno@clisp.org>
17890
17891         ptsname test: Avoid failure on Solaris.
17892         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17893         open a pseudo-terminal; don't use BSD-style ptys.
17894         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17895
17896 2010-12-25  Bruno Haible  <bruno@clisp.org>
17897
17898         ptsname: Avoid ERANGE failure on some systems.
17899         * lib/ptsname.c (buffer): Increase size.
17900
17901 2010-12-25  Bruno Haible  <bruno@clisp.org>
17902
17903         rename, renameat: Avoid test failures at NFS mounted locations.
17904         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17905         so that subsequent mkdir calls succeed.
17906
17907 2010-12-25  Bruno Haible  <bruno@clisp.org>
17908
17909         iswblank: Fix C++ link error on Solaris 8.
17910         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17911         _GL_FUNCDECL_SYS.
17912
17913 2010-12-25  Bruno Haible  <bruno@clisp.org>
17914
17915         unistd: Fix C++ link error on Solaris 8.
17916         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17917
17918 2010-12-25  Bruno Haible  <bruno@clisp.org>
17919
17920         readlink doc: Mention an old glibc bug.
17921         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17922
17923 2010-12-25  Bruno Haible  <bruno@clisp.org>
17924
17925         fcntl-h: Fix for use of C++ on glibc systems.
17926         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17927         also on glibc systems in C++ mode.
17928         Reported by Gary V. Vaughan <gary@gnu.org>.
17929
17930 2010-12-25  Bruno Haible  <bruno@clisp.org>
17931
17932         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17933         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17934
17935 2010-12-25  Bruno Haible  <bruno@clisp.org>
17936
17937         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17938         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17939         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17940         test whether truncl works according to ISO C 99 with IEC 60559.
17941         * m4/truncl-ieee.m4: New file.
17942         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17943         m4/signbit.m4.
17944         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17945
17946 2010-12-25  Bruno Haible  <bruno@clisp.org>
17947
17948         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17949         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17950         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17951         test whether ceill works according to ISO C 99 with IEC 60559.
17952         * m4/ceill-ieee.m4: New file.
17953         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17954         m4/signbit.m4.
17955         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17956
17957 2010-12-25  Bruno Haible  <bruno@clisp.org>
17958
17959         Ensure all prerequisites of <wchar.h> are included.
17960         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17961         before <wchar.h>.
17962         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17963         gl_MBRLEN_NUL_RETVAL): Likewise.
17964         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17965         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17966         AC_FUNC_MBRTOWC): Likewise.
17967         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17968         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17969         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17970         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17971         Likewise.
17972         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17973         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17974         (gl_WCHAR_H): Improve comments.
17975         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17976
17977 2010-12-25  Bruno Haible  <bruno@clisp.org>
17978
17979         strtok_r: Fix C syntax error in autoconf macro.
17980         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17981         characters in test program.
17982
17983 2010-12-24  Bruno Haible  <bruno@clisp.org>
17984
17985         ceil, trunc, round: Fix gcc warnings.
17986         * lib/ceil.c (MIN): Undefine before redefining.
17987         * lib/trunc.c (MIN): Likewise.
17988         * lib/round.c (MIN): Likewise.
17989         Include <math.h> first.
17990
17991 2010-12-24  Bruno Haible  <bruno@clisp.org>
17992
17993         select tests: Avoid failures on OSF/1 5.1.
17994         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17995         failure of closing the last socket; it may fail with ECONNRESET.
17996
17997 2010-12-24  Eric Blake  <eblake@redhat.com>
17998
17999         stdint: avoid HP-UX 10.20 preprocessor bug
18000         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18001         than #if.
18002         * tests/test-floor2.c (main): Likewise.
18003         Reported by Peter O'Gorman.
18004
18005         pipe: make obsoletion transition easier
18006         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18007         * modules/pipe (Files): Include revived file.
18008         (Include): Drop reference, to mirror getdate's behavior.
18009
18010 2010-12-24  Bruno Haible  <bruno@clisp.org>
18011
18012         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18013         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18014         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18015         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18016
18017 2010-12-24  Bruno Haible  <bruno@clisp.org>
18018
18019         gethostname: Ensure declaration on NonStop Kernel.
18020         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18021         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18022
18023 2010-12-24  Bruno Haible  <bruno@clisp.org>
18024
18025         sys_select: Ensure all necessary types on NonStop Kernel.
18026         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18027         include <sys/time.h>.
18028         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18029         NonStop Kernel.
18030         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18031
18032 2010-12-24  Bruno Haible  <bruno@clisp.org>
18033
18034         sys_select: Remove unneeded include.
18035         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18036         have <sys/select.h>.
18037
18038 2010-12-24  Bruno Haible  <bruno@clisp.org>
18039
18040         gethostname: Provide a fallback for HOST_NAME_MAX.
18041         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18042         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18043         instead.
18044         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18045
18046 2010-12-24  Bruno Haible  <bruno@clisp.org>
18047
18048         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18049         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18050         (SA_RESTART): Likewise.
18051         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18052
18053 2010-12-24  Bruno Haible  <bruno@clisp.org>
18054
18055         signal: Define NSIG.
18056         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18057         * tests/test-signal.c (nsig): New variable.
18058         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18059
18060 2010-12-24  Bruno Haible  <bruno@clisp.org>
18061
18062         rename, renameat: Avoid test failures on OSF/1 5.1.
18063         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18064         alternative error codes.
18065         * tests/test-renameat.c (main): Likewise.
18066
18067 2010-12-24  Bruno Haible  <bruno@clisp.org>
18068
18069         *printf: Detect large precisions bug on Solaris 10/SPARC.
18070         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18071         by Paul Eggert.
18072         * tests/test-snprintf-posix.h (test_function): Add this test code here
18073         too.
18074         * tests/test-sprintf-posix.h (test_function): Likewise.
18075         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18076         * tests/test-vasprintf-posix.c (test_function): Likewise.
18077         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18078         around by gnulib.
18079         * doc/posix-functions/printf.texi: Likewise.
18080         * doc/posix-functions/snprintf.texi: Likewise.
18081         * doc/posix-functions/sprintf.texi: Likewise.
18082         * doc/posix-functions/vfprintf.texi: Likewise.
18083         * doc/posix-functions/vprintf.texi: Likewise.
18084         * doc/posix-functions/vsnprintf.texi: Likewise.
18085         * doc/posix-functions/vsprintf.texi: Likewise.
18086         * doc/posix-functions/dprintf.texi: Undo last commit.
18087         * doc/posix-functions/vdprintf.texi: Likewise.
18088
18089 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18090
18091         tests: port test-fdutimensat.c to Solaris 8
18092         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18093         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18094         On Solaris 8, it fails with errno == ENOSYS, because there is no
18095         futimens (so it can't use the fd), and there is no lutimens (so it
18096         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18097
18098         vsnprintf: make more consistent with snprintf; doc fixes
18099
18100         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18101         the byte count return problem was promoted from the snprintf-posix
18102         to the snprintf module.
18103         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18104         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18105         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18106         * tests/test-snprintf.c (main): Check the byte count returned.
18107         * tests/test-vsnprintf.c (main): Likewise.
18108
18109 2010-12-23  Eric Blake  <eblake@redhat.com>
18110
18111         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18112         * modules/sigpipe (License): Relax license.
18113
18114 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18115
18116         doc: document Solaris printf bug with large float precisions
18117         * doc/posix-functions/dprintf.texi (dprintf):
18118         * doc/posix-functions/fprintf.texi (fprintf):
18119         * doc/posix-functions/printf.texi (printf):
18120         * doc/posix-functions/snprintf.texi (snprintf):
18121         * doc/posix-functions/sprintf.texi (sprintf):
18122         * doc/posix-functions/vdprintf.texi (vdprintf):
18123         * doc/posix-functions/vfprintf.texi (vfprintf):
18124         * doc/posix-functions/vprintf.texi (vprintf):
18125         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18126         * doc/posix-functions/vsprintf.texi (vsprintf):
18127         Mention that these functions mishandle large floating point
18128         precisions on Solaris 10.  The same bug is also present in Solaris
18129         8, and I assume earlier.  This causes "cd gnulib-tests; make
18130         check" to fail on Solaris 8 (and I assume, later) when building
18131         the latest coreutils, in test-vasprintf-posix's call to
18132         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18133         the wide flavors (e.g., wprintf) so this patch just updates the
18134         documentation for the narrow ones.
18135
18136         test-posixtm.c: add two tests
18137         * tests/test-posixtm.c: Add two tests, to highlight the
18138         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18139         around this bug; this is merely to document it.
18140
18141 2010-12-22  Bruno Haible  <bruno@clisp.org>
18142
18143         getlogin_r: Work around portability problem on OSF/1.
18144         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18145         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18146         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18147         test for a truncated result.
18148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18149         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18150         * modules/getlogin_r (Depends-on): Add memchr.
18151         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18152
18153 2010-12-22  Bruno Haible  <bruno@clisp.org>
18154
18155         ptsname: Avoid test failure on OSF/1 5.1.
18156         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18157         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18158         (same_slave): New function.
18159         (main): Use it to compare ptsname's result with the expected file name.
18160
18161 2010-12-22  Bruno Haible  <bruno@clisp.org>
18162
18163         Port extended stdio modules to HP NonStop Kernel.
18164         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18165         macros.
18166         * lib/fbufmode.c: Update comments.
18167         * lib/fflush.c: Likewise.
18168         * lib/fpurge.c: Likewise.
18169         * lib/freadable.c: Likewise.
18170         * lib/freadahead.c: Likewise.
18171         * lib/freading.c: Likewise.
18172         * lib/freadptr.c: Likewise.
18173         * lib/freadseek.c: Likewise.
18174         * lib/fseeko.c: Likewise.
18175         * lib/fseterr.c: Likewise.
18176         * lib/fwritable.c: Likewise.
18177         * lib/fwriting.c: Likewise.
18178         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18179
18180 2010-12-22  Bruno Haible  <bruno@clisp.org>
18181
18182         ttyname_r: Work around bug on OSF/1 5.1.
18183         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18184         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18185         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18186         present.
18187         * lib/ttyname_r.c (ttyname_r): Update comments.
18188
18189 2010-12-22  Bruno Haible  <bruno@clisp.org>
18190
18191         round: Implement result sign according to IEEE 754.
18192         * lib/round.c (MIN, MINUS_ZERO): New macros.
18193         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18194         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18195         * tests/test-round-ieee.c (main): Likewise.
18196         * tests/test-roundl-ieee.c (main): Likewise.
18197
18198         trunc: Implement result sign according to IEEE 754.
18199         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18200         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18201         * tests/test-trunc2.c: Include minus-zero.h.
18202         (MINUS_ZERO): New macro.
18203         (trunc_reference): Keep in sync with lib/trunc.c.
18204         * tests/test-truncf2.c: Include minus-zero.h.
18205         (MINUS_ZERO): New macro.
18206         (truncf_reference): Keep in sync with lib/trunc.c.
18207         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18208         * tests/test-trunc-ieee.c (main): Likewise.
18209         * tests/test-truncl-ieee.c (main): Likewise.
18210
18211         ceil: Implement result sign according to IEEE 754.
18212         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18213         (FUNC): Return -0.0 for -1 < x < 0.
18214         * tests/test-ceil2.c: Include minus-zero.h.
18215         (MINUS_ZERO): New macro.
18216         (ceil_reference): Keep in sync with lib/ceil.c.
18217         * tests/test-ceilf2.c: Include minus-zero.h.
18218         (MINUS_ZERO): New macro.
18219         (ceilf_reference): Keep in sync with lib/ceil.c.
18220         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18221         * tests/test-ceil-ieee.c (main): Likewise.
18222         * tests/test-ceill-ieee.c (main): Likewise.
18223
18224         floor: Implement result sign according to IEEE 754.
18225         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18226         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18227         * tests/test-floorf2.c (floorf_reference): Likewise.
18228         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18229         * tests/test-floor-ieee.c (main): Likewise.
18230         * tests/test-floorl-ieee.c (main): Likewise.
18231
18232 2010-12-22  Bruno Haible  <bruno@clisp.org>
18233
18234         getaddrinfo: Update doc.
18235         * doc/posix-functions/gai_strerror.texi: Return type is also different
18236         on AIX and HP-UX.
18237
18238 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18239
18240         getaddrinfo, inet_ntop: Update doc for Solaris.
18241         * doc/posix-functions/gai_strerror.texi: Return type is also an
18242         issue on Solaris 9 and earlier.
18243         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18244         on Solaris 10 and earlier.
18245
18246 2010-12-21  Bruno Haible  <bruno@clisp.org>
18247
18248         New module 'roundl-ieee'.
18249         * modules/roundl-ieee: New file.
18250         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18251         test whether roundl works according to ISO C 99 with IEC 60559.
18252         * m4/roundl-ieee.m4: New file.
18253         * modules/roundl-ieee-tests: New file.
18254         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18255         * tests/test-roundl.c (main): Remove signbit tests.
18256         * modules/roundl-tests (Depends-on): Remove signbit.
18257         * doc/posix-functions/roundl.texi: Mention the new module.
18258
18259 2010-12-21  Bruno Haible  <bruno@clisp.org>
18260
18261         New module 'truncl-ieee'.
18262         * modules/truncl-ieee: New file.
18263         * modules/truncl-ieee-tests: New file.
18264         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18265         * tests/test-truncl.c (main): Remove signbit tests.
18266         * modules/truncl-tests (Depends-on): Remove signbit.
18267         * doc/posix-functions/truncl.texi: Mention the new module.
18268
18269 2010-12-21  Bruno Haible  <bruno@clisp.org>
18270
18271         New module 'ceill-ieee'.
18272         * modules/ceill-ieee: New file.
18273         * modules/ceill-ieee-tests: New file.
18274         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18275         * tests/test-ceill.c (main): Remove signbit tests.
18276         * modules/ceill-tests (Depends-on): Remove signbit.
18277         * doc/posix-functions/ceill.texi: Mention the new module.
18278
18279 2010-12-21  Bruno Haible  <bruno@clisp.org>
18280
18281         New module 'floorl-ieee'.
18282         * modules/floorl-ieee: New file.
18283         * modules/floorl-ieee-tests: New file.
18284         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18285         * tests/test-floorl.c (main): Remove signbit tests.
18286         * modules/floorl-tests (Depends-on): Remove signbit.
18287         * doc/posix-functions/floorl.texi: Mention the new module.
18288
18289 2010-12-21  Bruno Haible  <bruno@clisp.org>
18290
18291         New module 'round-ieee'.
18292         * modules/round-ieee: New file.
18293         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18294         whether round works according to ISO C 99 with IEC 60559.
18295         * m4/round-ieee.m4: New file.
18296         * modules/round-ieee-tests: New file.
18297         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18298         * tests/test-round1.c (main): Remove signbit tests.
18299         * modules/round-tests (Depends-on): Remove 'signbit'.
18300         * doc/posix-functions/round.texi: Mention the new module.
18301
18302 2010-12-21  Bruno Haible  <bruno@clisp.org>
18303
18304         New module 'trunc-ieee'.
18305         * modules/trunc-ieee: New file.
18306         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18307         whether trunc works according to ISO C 99 with IEC 60559.
18308         * m4/trunc-ieee.m4: New file.
18309         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18311         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18312         * modules/trunc-ieee-tests: New file.
18313         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18314         * tests/test-trunc1.c (main): Remove signbit tests.
18315         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18316         * doc/posix-functions/trunc.texi: Mention the new module.
18317
18318 2010-12-21  Bruno Haible  <bruno@clisp.org>
18319
18320         New module 'ceil-ieee'.
18321         * modules/ceil-ieee: New file.
18322         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18323         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18324         ISO C 99 with IEC 60559.
18325         * m4/ceil-ieee.m4: New file.
18326         * modules/ceil (Files): Add lib/ceil.c.
18327         (Depends-on): Add 'float'.
18328         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18329         * lib/math.in.h (ceil): New declaration.
18330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18331         REPLACE_CEIL.
18332         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18333         * modules/ceil-ieee-tests: New file.
18334         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18335         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18336         * doc/posix-functions/ceil.texi: Mention the new module.
18337
18338 2010-12-21  Bruno Haible  <bruno@clisp.org>
18339
18340         New module 'floor-ieee'.
18341         * modules/floor-ieee: New file.
18342         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18343         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18344         ISO C 99 with IEC 60559.
18345         * m4/floor-ieee.m4: New file.
18346         * modules/floor (Files): Add lib/floor.c.
18347         (Depends-on): Add 'float'.
18348         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18349         * lib/math.in.h (floor): New declaration.
18350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18351         REPLACE_FLOOR.
18352         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18353         * modules/floor-ieee-tests: New file.
18354         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18355         * tests/test-math-c++.cc: Check the signature of 'floor'.
18356         * doc/posix-functions/floor.texi: Mention the new module.
18357
18358 2010-12-21  Bruno Haible  <bruno@clisp.org>
18359
18360         New module 'roundf-ieee'.
18361         * modules/roundf-ieee: New file.
18362         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18363         test whether roundf works according to ISO C 99 with IEC 60559.
18364         * m4/roundf-ieee.m4: New file.
18365         * modules/roundf-ieee-tests: New file.
18366         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18367         * tests/test-roundf1.c (main): Remove signbit tests.
18368         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18369         * doc/posix-functions/roundf.texi: Mention the new module.
18370
18371 2010-12-21  Bruno Haible  <bruno@clisp.org>
18372
18373         New module 'truncf-ieee'.
18374         * modules/truncf-ieee: New file.
18375         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18376         test whether truncf works according to ISO C 99 with IEC 60559.
18377         * m4/truncf-ieee.m4: New file.
18378         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18380         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18381         * modules/truncf-ieee-tests: New file.
18382         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18383         * tests/test-truncf1.c (main): Remove signbit tests.
18384         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18385         * doc/posix-functions/truncf.texi: Mention the new module.
18386
18387 2010-12-21  Bruno Haible  <bruno@clisp.org>
18388
18389         New module 'ceilf-ieee'.
18390         * modules/ceilf-ieee: New file.
18391         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18392         test whether ceilf works according to ISO C 99 with IEC 60559.
18393         * m4/ceilf-ieee.m4: New file.
18394         * modules/ceilf-ieee-tests: New file.
18395         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18396         * tests/test-ceilf1.c (main): Remove signbit tests.
18397         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18398         * doc/posix-functions/ceilf.texi: Mention the new module.
18399
18400 2010-12-21  Bruno Haible  <bruno@clisp.org>
18401
18402         New module 'floorf-ieee'.
18403         * modules/floorf-ieee: New file.
18404         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18405         test whether floorf works according to ISO C 99 with IEC 60559.
18406         * m4/floorf-ieee.m4: New file.
18407         * modules/floorf-ieee-tests: New file.
18408         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18409         * tests/test-floorf1.c (main): Remove signbit tests.
18410         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18411         * doc/posix-functions/floorf.texi: Mention the new module.
18412
18413 2010-12-21  Bruno Haible  <bruno@clisp.org>
18414
18415         Support for minus zero in autoconf macros.
18416         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18417         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18418         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18419         * tests/minus-zero.h: Update comments.
18420
18421 2010-12-21  Bruno Haible  <bruno@clisp.org>
18422
18423         Tests for module 'ceil'.
18424         * modules/ceil-tests: New file.
18425         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18426         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18427
18428 2010-12-21  Bruno Haible  <bruno@clisp.org>
18429
18430         Tests for module 'floor'.
18431         * modules/floor-tests: New file.
18432         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18433         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18434
18435 2010-12-21  Bruno Haible  <bruno@clisp.org>
18436
18437         math: Fix indentation.
18438         * lib/math.in.h (floorf): Fix indentation.
18439
18440 2010-12-21  Bruno Haible  <bruno@clisp.org>
18441
18442         Fix cross-compilation guesses on Solaris.
18443         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18444         not match "solaris2.10".
18445         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18446         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18447         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18448
18449 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18450
18451         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18452         This fixes a problem observed with the latest coreutils snapshot
18453         that caused a test to fail on Solaris 8.  src/csplit.c's call
18454         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18455         earlier, instead of returning the number of bytes that would have
18456         been generated; this causes csplit to incorrectly report memory
18457         exhaustion.
18458         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18459         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18460         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18461         comments to match.
18462         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18463         Fix typo in matching older versions of Solaris: "solaris2.10"
18464         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18465         only for guessing while cross-compiling.
18466         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18467
18468 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18469
18470         ftoastr: fix comment again
18471         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18472         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18473         Also, simplify example a bit by using flags = 0.
18474
18475 2010-12-20  Bruno Haible  <bruno@clisp.org>
18476
18477         round*, trunc*: Update documentation regarding glibc.
18478         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18479         * doc/posix-functions/round.texi: Likewise.
18480         * doc/posix-functions/roundl.texi: Likewise.
18481         * doc/posix-functions/truncf.texi: Likewise.
18482         * doc/posix-functions/trunc.texi: Likewise.
18483         * doc/posix-functions/truncl.texi: Likewise.
18484
18485 2010-12-20  Bruno Haible  <bruno@clisp.org>
18486
18487         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18488         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18489         * doc/posix-functions/round.texi: Likewise.
18490         * doc/posix-functions/roundl.texi: Likewise.
18491
18492 2010-12-20  Bruno Haible  <bruno@clisp.org>
18493
18494         ttyname_r: Add missing declaration on HP-UX 11.
18495         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18496         HAVE_TTYNAME_R.
18497         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18498         declared. Set HAVE_TTYNAME_R always.
18499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18500         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18501         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18502         HAVE_TTYNAME_R.
18503         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18504
18505 2010-12-20  Bruno Haible  <bruno@clisp.org>
18506
18507         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18508         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18509         * doc/posix-functions/getlogin_r.texi: Likewise.
18510         * tests/test-getlogin.c: Include <errno.h>.
18511         (main): Avoid test failure on HP-UX 11.11.
18512         * tests/test-getlogin_r.c (main): Likewise.
18513
18514 2010-12-20  Bruno Haible  <bruno@clisp.org>
18515
18516         getlogin_r: Add missing declaration on HP-UX 11.
18517         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18518         declared also when it exists as a function.
18519         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18520
18521 2010-12-20  Bruno Haible  <bruno@clisp.org>
18522
18523         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18524         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18525         through wcrtomb.
18526
18527 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18528
18529         ftoastr: fix comment
18530         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18531         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18532
18533 2010-12-19  Bruno Haible  <bruno@clisp.org>
18534
18535         isnan: Ensure it is a macro.
18536         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18537         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18538         Solaris.
18539
18540 2010-12-19  Bruno Haible  <bruno@clisp.org>
18541
18542         ldexpl test: Fix link error on OSF/1 5.1.
18543         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18544
18545 2010-12-19  Bruno Haible  <bruno@clisp.org>
18546
18547         wctype: Make it work in C++ mode on OSF/1 5.1.
18548         * lib/wctype.in.h (iswblank): Declare but not define here.
18549         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18550         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18551         * modules/wctype (Files): Add lib/iswblank.c.
18552
18553 2010-12-19  Bruno Haible  <bruno@clisp.org>
18554
18555         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18556         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18557         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18558
18559 2010-12-19  Bruno Haible  <bruno@clisp.org>
18560
18561         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18562         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18563         _POSIX_PII_SOCKET.
18564         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18565         * doc/posix-functions/recvfrom.texi: Likewise.
18566         * doc/posix-functions/send.texi: Likewise.
18567         * doc/posix-functions/sendto.texi: Likewise.
18568
18569 2010-12-19  Bruno Haible  <bruno@clisp.org>
18570
18571         tcgetsid: Add missing declaration on OSF/1 5.1.
18572         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18573         HAVE_TCGETSID.
18574         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18575         Don't set HAVE_TCGETSID.
18576         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18577         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18578         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18579         HAVE_TCGETSID.
18580         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18581
18582 2010-12-19  Bruno Haible  <bruno@clisp.org>
18583
18584         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18585         * lib/stdio.in.h: During the include_next statement, let recursive
18586         includes of this file include only the system header file.
18587
18588 2010-12-19  Bruno Haible  <bruno@clisp.org>
18589
18590         iconv_open: Fix regression from 2010-12-04.
18591         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18592         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18593
18594 2010-12-19  Bruno Haible  <bruno@clisp.org>
18595
18596         stdbool test: Avoid a gcc warning.
18597         * tests/test-stdbool.c (main): Fail if e1 is false.
18598         Reported by Jim Meyering.
18599
18600 2010-12-19  Jim Meyering  <meyering@redhat.com>
18601
18602         setenv: restore to working order
18603         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18604         mistakenly removed.
18605         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18606         HAVE_SETENV.
18607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18608         HAVE_SETENV.
18609
18610 2010-12-19  Bruno Haible  <bruno@clisp.org>
18611
18612         Document some different function declarations on OSF/1 5.1.
18613         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18614         * doc/posix-functions/inet_ntop.texi: Likewise.
18615         * doc/posix-functions/gethostname.texi: Likewise.
18616         * lib/unistd.in.h (gethostname): Update comment.
18617
18618 2010-12-19  Bruno Haible  <bruno@clisp.org>
18619
18620         doc: Mention vasprintf-posix module.
18621         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18622         the 'vasprintf-posix' module.
18623         * doc/glibc-functions/vasprintf.texi: Likewise.
18624
18625 2010-12-19  Bruno Haible  <bruno@clisp.org>
18626
18627         unsetenv: Add missing declaration on OSF/1 5.1.
18628         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18629         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18630         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18632         not HAVE_UNSETENV.
18633         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18634         HAVE_UNSETENV.
18635         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18636
18637 2010-12-19  Bruno Haible  <bruno@clisp.org>
18638
18639         setenv: Add missing declaration on OSF/1 5.1.
18640         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18641         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18642         declared. Don't set HAVE_SETENV.
18643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18644         not HAVE_SETENV.
18645         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18646         HAVE_SETENV.
18647         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18648
18649 2010-12-19  Bruno Haible  <bruno@clisp.org>
18650
18651         nl_langinfo tests: Avoid gcc warning.
18652         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18653
18654 2010-12-19  Bruno Haible  <bruno@clisp.org>
18655
18656         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18657         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18658         _GL_CXXALIAS_SYS.
18659
18660 2010-12-19  Bruno Haible  <bruno@clisp.org>
18661
18662         stdbool: Relax test.
18663         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18664         address to 'bool' work in static initializer, for compilers other than
18665         GCC.
18666
18667 2010-12-19  Bruno Haible  <bruno@clisp.org>
18668
18669         ftello: Add missing declaration on OSF/1 5.1.
18670         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18671         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18673         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18674         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18675
18676 2010-12-19  Bruno Haible  <bruno@clisp.org>
18677
18678         fseeko: Add missing declaration on OSF/1 5.1.
18679         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18682         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18683         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18684
18685 2010-12-19  Bruno Haible  <bruno@clisp.org>
18686
18687         fchdir: Add missing declaration on OSF/1 5.1.
18688         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18691         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18692         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18693
18694 2010-12-19  Bruno Haible  <bruno@clisp.org>
18695
18696         relocatable-prog-wrapper: Separate from relocatable-prog.
18697         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18698         uninstall-relocwrapper rule here.
18699         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18700         Reported by Ian Beckwith <ianb@erislabs.net>.
18701
18702 2010-12-19  Bruno Haible  <bruno@clisp.org>
18703
18704         unistr/u8-mbsnlen: Add missing dependency.
18705         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18706         Reported by Ian Beckwith <ianb@erislabs.net>.
18707
18708 2010-12-19  Bruno Haible  <bruno@clisp.org>
18709
18710         iconv: Make it possible again to use this module without 'iconv-h'.
18711         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18712         if it is not defined.
18713         Reported by Ian Beckwith <ianb@erislabs.net>.
18714
18715 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18716
18717         acl: port to Solaris 8 when copying from tmpfs to ufs
18718         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18719         error number.  Problem observed on Solaris 8 with latest
18720         coreutils, with "mv A B", where A is on a tmpfs file system and B
18721         is on a ufs file system.  This caused coreutils' mv/part-symlink
18722         test to fail.
18723
18724         tests: set fail=0 at start
18725         * tests/init.sh (setup_): Move fail=0 initialization here ...
18726         (mktempd_): ... from here, so that tests can rely on fail being
18727         set to 0 initially.  This fixes a problem in coreutils; see:
18728         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18729
18730 2010-12-18  Bruno Haible  <bruno@clisp.org>
18731
18732         memmem-simple: Stylistic changes.
18733         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18734         Fix preprocessor directive indentation.
18735
18736 2010-12-15  Pádraig Brady <P@draigBrady.com>
18737
18738         memmem, memmem-simple: reorganize and expand empty needle check
18739         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18740         functional checks to memmem-simple so that one has a fully functional
18741         memmem by using just this module.
18742         Restrict the performance only check to the memmem module.
18743         Also expand the empty needle check to ensure the correct
18744         pointer is returned, not just a non NULL pointer.
18745         * doc/glibc-functions/memmem.texi: Rearrange the portability
18746         documentation to correlate with the rearranged checks.
18747         Clarify exactly how the memmem and memmem-simple modules
18748         relate to each other.
18749
18750 2010-12-15  Pádraig Brady <P@draigBrady.com>
18751             Bruno Haible  <bruno@clisp.org>
18752
18753         Improve cross-compilation guesses for uClibc.
18754         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18755         that uClibc does not have the glibc bug.
18756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18757         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18758
18759 2010-12-14  Eric Blake  <eblake@redhat.com>
18760
18761         configmake: provide fallbacks for oldest supported autotools
18762         * m4/configmake.m4: New file.
18763         * modules/configmake (Files): Ship it.
18764         (configure.ac): Use it to guarantee fallbacks.
18765
18766 2010-12-13  Pádraig Brady <P@draigBrady.com>
18767
18768         read-file: Improve handling of large files
18769         * lib/read-file.c (fread_file): Minimize realloc()s
18770         for regular files, and better manage sizes around SIZE_MAX.
18771
18772 2010-12-13  Eric Blake  <eblake@redhat.com>
18773
18774         cloexec, fcntl: relax license
18775         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18776         consent from all contributors.
18777         * modules/fcntl (License): Likewise.
18778
18779 2010-12-10  Bruno Haible  <bruno@clisp.org>
18780
18781         Tests for module 'pipe-posix'.
18782         * modules/pipe-posix-tests: New file.
18783         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18784
18785 2010-12-10  Bruno Haible  <bruno@clisp.org>
18786
18787         pipe-posix: Make it work in C++ mode.
18788         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18789         (pipe): Use common idiom, not a macro definition.
18790         * lib/pipe.c: New file.
18791         * m4/pipe.m4: New file.
18792         * modules/pipe-posix (Description): Enhance.
18793         (Files): Add lib/pipe.c, m4/pipe.m4.
18794         (configure.ac): Invoke gl_FUNC_PIPE.
18795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18796         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18797         * tests/test-unistd-c++.cc: Check the signature of pipe.
18798
18799 2010-12-10  Bruno Haible  <bruno@clisp.org>
18800
18801         Rename module 'pipe' to 'spawn-pipe'.
18802         * modules/spawn-pipe: New file, renamed from modules/pipe.
18803         (Files, configure.ac, Makefile.am): Update.
18804         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18805         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18806         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18807         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18808         "spawn-pipe.h" instead of "pipe.h".
18809         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18810         to gl_SPAWN_PIPE.
18811         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18812         (Files, Makefile.am): Update.
18813         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18814         Update.
18815         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18816         Include "spawn-pipe.h" instead of "pipe.h".
18817         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18818         * lib/javacomp.c: Likewise.
18819         * lib/javaversion.c: Likewise.
18820         * lib/pipe-filter-gi.c: Likewise.
18821         * lib/pipe-filter-ii.c: Likewise.
18822         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18823         * modules/javacomp (Depends-on): Likewise.
18824         * modules/javaversion (Depends-on): Likewise.
18825         * modules/pipe-filter-gi (Depends-on): Likewise.
18826         * modules/pipe-filter-ii (Depends-on): Likewise.
18827         * MODULES.html.sh (Executing programs): Update.
18828         * NEWS: Mention the change.
18829
18830 2010-12-10  Eric Blake  <eblake@redhat.com>
18831
18832         pipe-posix: new module
18833         * modules/pipe-posix: New file.
18834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18835         (gl_UNISTD_H): Check for declaration.
18836         * modules/unistd (Makefile.am): Substitute it.
18837         * lib/unistd.in.h (pipe): Provide it for mingw.
18838         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18839         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18840
18841 2010-12-07  Bruno Haible  <bruno@clisp.org>
18842
18843         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18844         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18845         u8_strcmp_gnu.
18846         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18847
18848 2010-12-06  Bruno Haible  <bruno@clisp.org>
18849
18850         Update internal documentation.
18851         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18852
18853 2010-12-04  Bruno Haible  <bruno@clisp.org>
18854
18855         Put more information about failed tests into the test return codes.
18856         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18857         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18858         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18859         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18860         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18861         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18862         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18863         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18864         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18866         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18867         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18868         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18869         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18870         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18871         returns a bit mask.
18872         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18873         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18874         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18875         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18876         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18877         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18878         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18879         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18880         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18881         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18882         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18883         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18884         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18885         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18886         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18887         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18888         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18889         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18890         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18891         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18892         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18893         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18894         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18895         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18896         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18897         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18898         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18899         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18900         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18901         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18902         gl_PRINTF_PRECISION): Likewise.
18903         * m4/regex.m4 (gl_REGEX): Likewise.
18904         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18905         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18906         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18907         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18908         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18910         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18911         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18912         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18913         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18914         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18915         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18916         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18917         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18918         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18919         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18920         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18921         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18923         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18924         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18925         enumerated value.
18926         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18927
18928 2010-12-04  Bruno Haible  <bruno@clisp.org>
18929
18930         Update for Solaris 11 2010-11.
18931         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18932         Express, released in November 2010.
18933
18934 2010-12-04  Bruno Haible  <bruno@clisp.org>
18935
18936         nproc: Relax license.
18937         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18938         and Paul Eggert.
18939         Requested by Ludovic Courtès <ludo@gnu.org>.
18940
18941 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18942
18943         utimecmp: fine-grained src to nearby coarse-grained dest
18944
18945         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18946         and the source is on a file system with higher-resolution time
18947         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18948         not work, and the time stamps are close together, the algorithm to
18949         determine the exact resolution from the read-back mtime was buggy:
18950         it had a "!=" where it should have had an "==".  This bug has been
18951         in the code ever since it was introduced to gnulib.
18952         Problem reported by Dan Jacobson in
18953         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18954
18955 2010-11-30  Bruno Haible  <bruno@clisp.org>
18956
18957         strerror_r-posix: Fix autoconf test.
18958         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18959
18960 2010-11-28  Bruno Haible  <bruno@clisp.org>
18961             Paul Eggert  <eggert@cs.ucla.edu>
18962
18963         Tests for module 'getdomainname'.
18964         * modules/getdomainname-tests: New file.
18965         * tests/test-getdomainname.c: New file, based on
18966         tests/test-gethostname.c.
18967
18968 2010-11-28  Bruno Haible  <bruno@clisp.org>
18969             Paul Eggert  <eggert@cs.ucla.edu>
18970
18971         getdomainname: Use the system function when possible.
18972         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18973         (getdomainname): Replace if needed. Provide the declaration if it is
18974         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18975         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18976         (getdomainname): When the system has getdomainname, call the system
18977         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18978         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18979         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18980         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18981         the function if its second argument is of type 'int' or if it is found
18982         in libnsl.
18983         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18984         <sys/systeminfo.h> and sysinfo().
18985         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18987         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18988         HAVE_GETDOMAINNAME.
18989         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18990         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18991         * doc/glibc-functions/getdomainname.texi: Document the problems with
18992         the getdomainname declaration.
18993
18994 2010-11-28  Bruno Haible  <bruno@clisp.org>
18995
18996         sys_socket: Ensure ss_family field on AIX.
18997         * lib/sys_socket.in.h (ss_family): New macro definition.
18998         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18999         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19000         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19001         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19002         * modules/sys_socket (Makefile.am): Substitute
19003         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19004         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19005
19006 2010-11-27  Bruno Haible  <bruno@clisp.org>
19007
19008         readline: Improve configure output.
19009         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19010         "checking for readline..." result understandable.
19011
19012 2010-11-27  Bruno Haible  <bruno@clisp.org>
19013
19014         *printf-posix: Detect a bug on Solaris 10/x86.
19015         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19016         for floating-point output.
19017         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19018         directive.
19019         * tests/test-snprintf-posix.h (test_function): Likewise.
19020         * tests/test-sprintf-posix.h (test_function): Likewise.
19021         * tests/test-vasprintf-posix.c (test_function): Likewise.
19022         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19023         * doc/posix-functions/printf.texi: Likewise.
19024         * doc/posix-functions/snprintf.texi: Likewise.
19025         * doc/posix-functions/sprintf.texi: Likewise.
19026         * doc/posix-functions/vfprintf.texi: Likewise.
19027         * doc/posix-functions/vprintf.texi: Likewise.
19028         * doc/posix-functions/vsnprintf.texi: Likewise.
19029         * doc/posix-functions/vsprintf.texi: Likewise.
19030         * doc/glibc-functions/obstack_printf.texi: Likewise.
19031         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19032
19033 2010-11-27  Bruno Haible  <bruno@clisp.org>
19034
19035         Fix link error when module libunistring-optional is in use.
19036         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19037         * modules/striconveha-tests (Makefile.am): Likewise.
19038
19039 2010-11-27  Bruno Haible  <bruno@clisp.org>
19040
19041         regex: Mention link dependencies.
19042         * modules/regex (Link): New section.
19043         * modules/rpmatch (Link): Likewise.
19044         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19045
19046 2010-11-27  Bruno Haible  <bruno@clisp.org>
19047
19048         ftoastr: Fix compilation error on Solaris.
19049         * lib/ftoastr.c: Include <config.h>.
19050
19051 2010-11-27  Bruno Haible  <bruno@clisp.org>
19052
19053         getloadavg: Update documentation.
19054         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19055
19056 2010-11-27  Bruno Haible  <bruno@clisp.org>
19057
19058         sys_socket: Fix test whether the functions are declared.
19059         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19060         not <sys/select.h>.
19061
19062 2010-11-27  Bruno Haible  <bruno@clisp.org>
19063
19064         getpass: Make sure to get system declaration on some platforms.
19065         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19066         gl_USE_SYSTEM_EXTENSIONS.
19067         * modules/getpass (Depends-on): Add extensions.
19068
19069 2010-11-26  Bruno Haible  <bruno@clisp.org>
19070
19071         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19072         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19073         'iconv' module is present.
19074         (ICONV_CONST): New macro.
19075         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19076         ICONV_CONST.
19077         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19078         set ICONV_CONST.
19079         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19080         here.
19081         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19082         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19083         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19084         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19085         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19086         present.
19087
19088 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19089
19090         ftoastr: comment fix
19091         * lib/ftoastr.c: "little" -> "little or no" in comment
19092
19093 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19094
19095         stdint: port to GCC 4.3 + OSX + Octave
19096         On this platform, stdint.h is buggy and defines int64_t to long
19097         long int.  The replacement defined it to long int, causing
19098         problems with C++ style name mangling.  Instead, trust the system
19099         definition if INT64_MAX is defined, and likewise for the unsigned
19100         variant.   Problem reported by Jarno Rajahalme in
19101         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19102         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19103         and don't mess with int64_t and INT64_MAX in this case.
19104         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19105
19106 2010-11-24  Bruno Haible  <bruno@clisp.org>
19107
19108         doc: Corrections regarding MacOS X 10.4 and 10.5.
19109         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19110         MacOS X.
19111         Reported by Simon Josefsson.
19112
19113 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19114
19115         Uninstall ".bin" files installed by relocwrapper.
19116         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19117         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19118         unless it is already there.
19119
19120 2010-11-21  Bruno Haible  <bruno@clisp.org>
19121
19122         Update for NetBSD 5.0.
19123         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19124         NetBSD; the test fails on NetBSD 5.0.
19125         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19126         about NetBSD.
19127
19128 2010-11-21  Bruno Haible  <bruno@clisp.org>
19129
19130         Update for HP-UX 11.23 and HP-UX 11.31.
19131         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19132         HP-UX.
19133
19134 2010-11-21  Bruno Haible  <bruno@clisp.org>
19135
19136         Update for MacOS X 10.5.
19137         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19138         MacOS X; the test fails on MacOS X 10.5.8.
19139         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19140         about MacOS X.
19141
19142 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19143
19144         bootstrap: add bootstrap_sync option.
19145         See discussion at
19146         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19147         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19148         * build-aux/bootstrap: Accept --bootstrap-sync to update
19149         bootstrap if it is not identical to the local gnulib's
19150         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19151         enable this by default.  Accept --no-bootstrap-sync to disable
19152         it.
19153
19154 2010-11-20  Bruno Haible  <bruno@clisp.org>
19155
19156         Ensure that <features.h> is included before __GLIBC__ is tested.
19157         * lib/printf-parse.h: Include <features.h>.
19158         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19159         Reported by Mike Frysinger <vapier@gentoo.org>.
19160
19161         Ensure that <features.h> is included before __GLIBC__ is tested.
19162         * lib/wchar.in.h: Include <features.h>.
19163         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19164         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19165         Reported by Mike Frysinger <vapier@gentoo.org>.
19166
19167         Ensure that <features.h> is included before __GLIBC__ is tested.
19168         * lib/arpa_inet.in.h: Include <features.h>.
19169         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19170         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19171         Reported by Mike Frysinger <vapier@gentoo.org>.
19172
19173         Ensure that <features.h> is included before __GLIBC__ is tested.
19174         * build-aux/link-warning.h: Include <features.h>.
19175         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19176         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19177         Reported by Mike Frysinger <vapier@gentoo.org>.
19178
19179         Ensure that <features.h> is included before __GLIBC__ is tested.
19180         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19181         Reported by Mike Frysinger <vapier@gentoo.org>.
19182
19183 2010-11-20  Bruno Haible  <bruno@clisp.org>
19184
19185         memmem: Fix autoconf test.
19186         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19187
19188 2010-11-20  Bruno Haible  <bruno@clisp.org>
19189
19190         Port to uClibc.
19191         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19192         * lib/fcntl.in.h: Likewise.
19193         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19194         * lib/mbrtowc.c (mbrtowc): Likewise.
19195         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19196         * lib/strerror_r.c: Likewise.
19197         * lib/unistr/u8-strnlen.c: Likewise.
19198         * lib/vasnprintf.c (decimal_point_char): Likewise.
19199         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19200         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19201         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19202         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19203         * tests/test-sigaction.c (handler, main): Likewise.
19204         * lib/freading.h: Treat uClibc like a non-glibc platform.
19205         * lib/freading.c: Likewise.
19206         * lib/gettext.h: Likewise.
19207         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19208         Likewise.
19209         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19210         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19211         * lib/propername.c (proper_name_utf8): Likewise.
19212         * lib/spawn.in.h: Likewise.
19213         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19214         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19215         mem_cd_iconveh_internal): Likewise.
19216         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19217         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19218         strstr, strcasestr): Likewise.
19219         * lib/unicodeio.c (unicode_to_mb): Likewise.
19220         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19221         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19222         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19223         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19224         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19225         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19226         * lib/unistr/u8-stpncpy.c: Likewise.
19227         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19228         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19229         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19230         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19231         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19232         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19233         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19234         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19236         Likewise.
19237         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19238         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19239         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19240         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19241         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19242         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19243         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19244         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19245         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19246         * tests/test-striconveha.c (main): Likewise.
19247         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19248         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19249         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19250         * doc/posix-functions/getline.texi: Likewise.
19251         Reported by Mike Frysinger <vapier@gentoo.org>.
19252
19253 2010-11-20  Bruno Haible  <bruno@clisp.org>
19254
19255         nproc: Fix condition.
19256         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19257         HAVE_PTHREAD_AFFINITY_NP.
19258
19259 2010-11-20  Bruno Haible  <bruno@clisp.org>
19260
19261         Fix a comment.
19262         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19263
19264 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19265
19266         ftoastr: don't assume snprintf
19267         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19268         Implement a subset of snprintf here, by using sprintf safely.
19269         * modules/ftoastr (Depends-on): Remove snprintf.
19270
19271 2010-11-19  Jim Meyering  <meyering@redhat.com>
19272
19273         test-rename.h: fix compilation failure
19274         * tests/test-rename.h (test_rename): Add omitted "}".
19275
19276 2010-11-17  Jim Meyering  <meyering@redhat.com>
19277
19278         maint.mk: add a URL discussing the no-@acronym policy
19279         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19280
19281 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19282
19283         ftoastr: depend on snprintf, improve comments
19284         * lib/ftoastr.c: Also mention Loitsch's draft.
19285         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19286         needed in the current implementation, but it might simplify
19287         speeding up the code later.
19288         * modules/ftoastr: Depend on snprintf; this improves portability.
19289         Suggested by Bruno Haible in the same email.
19290
19291         ftoastr: port to hosts lacking strtof and strtold
19292         Problem reported by Bruno Haible in
19293         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19294         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19295         environment and strtold (and presumably strtof) are not available.
19296         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19297         (configure.ac): Require gl_C99_STRTOLD.
19298
19299 2010-11-18  Bruno Haible  <bruno@clisp.org>
19300
19301         c-strtold: Avoid link error on AIX 7.
19302         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19303         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19304         (gl_C_STRTOLD): Test whether strtold_l exists.
19305         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19306
19307 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19308
19309         intprops: new macro INT_BITS_STRLEN_BOUND
19310         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19311         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19312         not exposed.  Also, it uses a slightly tighter bound than before;
19313         though this makes no practical difference, we might as well be as
19314         tight as we easily can.
19315
19316         ftoastr: new module, for lossless conversion of floats to short strings
19317         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19318         * modules/ftoastr: New files.
19319
19320 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19321
19322         bootstrap: port to Solaris sed
19323         * build-aux/bootstrap (get_version): Port to Solaris sed.
19324         See Ralf Wildenhues's note in
19325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19326
19327 2010-11-14  Jim Meyering  <meyering@redhat.com>
19328
19329         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19330         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19331         and move definition closer to sole use.
19332
19333 2010-11-13  Jim Meyering  <meyering@redhat.com>
19334
19335         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19336         Now we require at least autoconf-2.59, which means the work-around
19337         is no longer needed.
19338         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19339         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19340         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19341         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19342         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19343
19344 2010-11-13  Bruno Haible  <bruno@clisp.org>
19345
19346         rename, renameat: Avoid test failures at NFS mounted locations.
19347         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19348         functions.
19349         (test_rename): Use assert_nonexistent.
19350         * tests/test-rename.c: Include <dirent.h>.
19351         * tests/test-renameat.c: Likewise.
19352         Reported by Gary V. Vaughan <gary@gnu.org>.
19353
19354         rename, renameat: Document Linux bug with NFS
19355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19356         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19357         * doc/posix-functions/renameat.texi: Likewise.
19358         Suggested by Eric Blake.
19359
19360 2010-11-13  Bruno Haible  <bruno@clisp.org>
19361
19362         rename test: Add comments.
19363         * tests/test-rename.h (test_rename): Add structure and comments.
19364
19365 2010-11-13  Eric Blake  <eblake@redhat.com>
19366
19367         maintainer-makefile: cover a few more files
19368         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19369         scripts generated within C files, for libvirt.
19370
19371 2010-11-13  Bruno Haible  <bruno@clisp.org>
19372
19373         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19374         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19375         character, return the number of bytes that belong together, not always
19376         1.
19377         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19378         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19379         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19380         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19381         number of bytes of an invalid character.
19382         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19383         (main): Invoke it.
19384         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19385         results.
19386         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19387         malformed byte sequences.
19388         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19389         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19390         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19391         Reported by Ben Pfaff and Paolo Bonzini.
19392
19393 2010-11-13  Bruno Haible  <bruno@clisp.org>
19394
19395         openat: Work around glibc bug with fchownat() and empty file names.
19396         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19397         (gl_FUNC_FCHOWNAT): Invoke it.
19398         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19399         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19400         Reported by Gary V. Vaughan <gary@gnu.org>.
19401
19402 2010-11-13  Bruno Haible  <bruno@clisp.org>
19403
19404         openat: Ensure autoconf macro ordering.
19405         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19406         gl_USE_SYSTEM_EXTENSIONS.
19407         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19408
19409 2010-11-13  Bruno Haible  <bruno@clisp.org>
19410
19411         Update comments.
19412         * lib/unistr/u8-check.c: Update file name in comments.
19413         * lib/unistr/u8-mblen.c: Likewise.
19414         * lib/unistr/u8-prev.c: Likewise.
19415         * lib/unistr/u8-strmblen.c: Likewise.
19416         * lib/unistr/u8-strmbtouc.c: Likewise.
19417
19418 2010-11-13  Jim Meyering  <meyering@redhat.com>
19419
19420         tests: avoid test failure on Solaris 10 due to lack of PATH export
19421         * tests/test-update-copyright.sh: Don't forget to export PATH.
19422
19423         init.sh: ensure that IFS is defined, just in case...
19424         * tests/init.sh (setup_): Ensure that IFS is defined,
19425         so that saving and restoring it works as expected.  This
19426         appears to be useful at least for an old version of dash
19427         from a long time ago (RH 6).  See here for details:
19428         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19429
19430         maint.mk: tighten "test a == b" check
19431         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19432         test to files that contain something like #!/bin/sh.
19433         Without this, coreutils would get two false positives in
19434         the comments of C source files.
19435
19436 2010-11-12  Eric Blake  <eblake@redhat.com>
19437
19438         bootstrap: fix typo in previous attempt
19439         * build-aux/bootstrap (buildreq): Correct the grouping.
19440         Reported by Paul Eggert.
19441
19442         maintainer-makefile: prohibit test x == x
19443         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19444         Based on a report by Matthias Bolte.
19445
19446         bootstrap: allow FreeBSD gzip
19447         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19448         which has no '.' and goes to stderr.
19449         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19450         Reported by Matthias Bolte.
19451
19452         maintainer-makefile: check for i18n setup
19453         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19454         will likely work.
19455
19456 2010-11-12  Bruno Haible  <bruno@clisp.org>
19457
19458         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19459         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19460         * lib/nanosleep.c (nanosleep): Likewise.
19461
19462 2010-11-11  Bruno Haible  <bruno@clisp.org>
19463
19464         fcntl-h: Fix for use of C++ on glibc systems.
19465         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19466         also on glibc systems in C++ mode.
19467         Reported by Gary V. Vaughan <gary@gnu.org>.
19468
19469 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19470
19471         mknod: avoid false failure with dash
19472         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19473
19474 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19475
19476         unlink: Fix "is it should" typo in diagnostic.
19477         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19478         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19479
19480 2010-11-11  Bruno Haible  <bruno@clisp.org>
19481
19482         Tests for module 'strerror_r-posix'.
19483         * modules/strerror_r-posix-tests: New file.
19484         * tests/test-strerror_r.c: New file.
19485         * tests/test-string-c++.cc: Check the signature of strerror_r.
19486
19487         New module 'strerror_r-posix'.
19488         * lib/string.in.h (strerror_r): New declaration.
19489         * lib/strerror_r.c: New file.
19490         * m4/strerror_r.m4: New file.
19491         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19492         of strerror_r.
19493         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19494         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19495         * modules/strerror_r-posix: New file.
19496         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19497         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19498         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19499         portability problems.
19500
19501 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19502
19503         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19504         line is also considered for output. Quoted function name in shell
19505         command, so temporary files for functions like MyClass::operator()
19506         are removed correctly without errors.
19507
19508 2010-11-09  Bruno Haible  <bruno@clisp.org>
19509
19510         * doc/posix-functions/strerror.texi: List more failing platforms.
19511
19512         * doc/posix-functions/strerror.texi: Add a comment.
19513
19514 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19515
19516         fdopendir: fix bug on MacOS X when low on file descriptors
19517
19518         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19519         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19520         All callers changed.
19521         (fdopendir): Invoke save_cwd at the top level, not after using
19522         multiple dup() calls to use up file descriptors.  Then retry
19523         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19524         less than the maximum number of open file descriptors, because
19525         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19526         on Mac OS X 10.6.4 for tar 1.24
19527         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19528         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19529         and for tar 1.25
19530         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19531
19532 2010-11-07  Bruno Haible  <bruno@clisp.org>
19533
19534         vasnprintf: Support I flag on glibc systems.
19535         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19536         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19537         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19538         snprintf function.
19539         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19540         glibc systems.
19541         * tests/test-vasnprintf-posix3.c: New file.
19542         * modules/vasnprintf-posix-tests (Files): Add it.
19543         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19544
19545 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19546
19547         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19548         * MODULES.html.sh: For compiler warnings, use name
19549         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19550
19551 2010-11-05  Eric Blake  <eblake@redhat.com>
19552
19553         ceil, floor: avoid spurious failure with icc
19554         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19555         [denormals-as-zero] when optimizing without -mieee-fp option.
19556         * tests/test-floorf2.c (floorf_reference): Likewise.
19557         * tests/test-ceilf1.c (dummy): New function.
19558         (main): Use it to outsmart icc's optimization.
19559         * tests/test-floorf1.c (dummy, main): Likewise.
19560
19561         tests: require working signbit
19562         * modules/ceilf-tests (Depends-on): Add signbit.
19563         * modules/ceill-tests (Depends-on): Likewise.
19564         * modules/floorf-tests (Depends-on): Likewise.
19565         * modules/floorl-tests (Depends-on): Likewise.
19566         * modules/round-tests (Depends-on): Likewise.
19567         * modules/roundf-tests (Depends-on): Likewise.
19568         * modules/roundl-tests (Depends-on): Likewise.
19569         * modules/trunc-tests (Depends-on): Likewise.
19570         * modules/truncf-tests (Depends-on): Likewise.
19571         * modules/truncl-tests (Depends-on): Likewise.
19572
19573         strtod: work around icc bug
19574         * lib/strtod.c (minus_zero): Define to working value.
19575         (strtod): Use it to avoid icc bug.
19576
19577         copysign: enhance tests
19578         * modules/copysign-tests (Files): Add minus-zero.h.
19579         * tests/test-copysign.c (main): Also test zeros.
19580
19581 2010-11-04  Eric Blake  <eblake@redhat.com>
19582
19583         ceil, floor, round, trunc: enhance tests of -0
19584         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19585         * tests/test-ceill.c (main): Likewise.
19586         * tests/test-floorf1.c (main): Likewise.
19587         * tests/test-floorl.c (main): Likewise.
19588         * tests/test-round1.c (main): Likewise.
19589         * tests/test-roundf1.c (main): Likewise.
19590         * tests/test-roundl.c (main): Likewise.
19591         * tests/test-trunc1.c (main): Likewise.
19592         * tests/test-truncf1.c (main): Likewise.
19593         * tests/test-truncl.c (main): Likewise.
19594
19595 2010-11-04  Eric Blake  <eblake@redhat.com>
19596
19597         frexp, tests: work around ICC bug with -zero
19598         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19599         works with more compilers.
19600         * tests/minus-zero.h: New file.
19601         * modules/ceilf-tests (Files): Include it.
19602         * modules/ceill-tests (Files): Likewise.
19603         * modules/floorf-tests (Files): Likewise.
19604         * modules/floorl-tests (Files): Likewise.
19605         * modules/frexp-nolibm-tests (Files): Likewise.
19606         * modules/frexp-tests (Files): Likewise.
19607         * modules/frexpl-nolibm-tests (Files): Likewise.
19608         * modules/frexpl-tests (Files): Likewise.
19609         * modules/isnan-tests (Files): Likewise.
19610         * modules/isnand-nolibm-tests (Files): Likewise.
19611         * modules/isnand-tests (Files): Likewise.
19612         * modules/isnanf-nolibm-tests (Files): Likewise.
19613         * modules/isnanf-tests (Files): Likewise.
19614         * modules/isnanl-nolibm-tests (Files): Likewise.
19615         * modules/isnanl-tests (Files): Likewise.
19616         * modules/round-tests (Files): Likewise.
19617         * modules/roundf-tests (Files): Likewise.
19618         * modules/roundl-tests (Files): Likewise.
19619         * modules/ldexpl-tests (Files): Likewise.
19620         * modules/signbit-tests (Files): Likewise.
19621         * modules/snprintf-posix-tests (Files): Likewise.
19622         * modules/sprintf-posix-tests (Files): Likewise.
19623         * modules/strtod-tests (Files): Likewise.
19624         * modules/trunc-tests (Files): Likewise.
19625         * modules/truncf-tests (Files): Likewise.
19626         * modules/truncl-tests (Files): Likewise.
19627         * modules/vsnprintf-posix-tests (Files): Likewise.
19628         * modules/vsprintf-posix-tests (Files): Likewise.
19629         * modules/vasnprintf-posix-tests (Files): Likewise.
19630         * modules/vasprintf-posix-tests (Files): Likewise.
19631         * tests/test-ceilf1.c (main): Use it.
19632         * tests/test-ceill.c (main): Likewise.
19633         * tests/test-floorf1.c (main): Likewise.
19634         * tests/test-floorl.c (main): Likewise.
19635         * tests/test-frexp.c (main): Likewise.
19636         * tests/test-frexpl.c (main): Likewise.
19637         * tests/test-isnan.c (main): Likewise.
19638         * tests/test-isnand.h (main): Likewise.
19639         * tests/test-isnanf.h (main): Likewise.
19640         * tests/test-isnanl.h (main): Likewise.
19641         * tests/test-ldexpl.c (main): Likewise.
19642         * tests/test-round.c (main): Likewise.
19643         * tests/test-roundf.c (main): Likewise.
19644         * tests/test-roundl.c (main): Likewise.
19645         * tests/test-signbit.c (test_signbitf, test_signbitd)
19646         (test_signbitl): Likewise.
19647         * tests/test-snprintf-posix.h (test_function): Likewise.
19648         * tests/test-sprintf-posix.h (test_function): Likewise.
19649         * tests/test-strtod.c (main): Likewise.
19650         * tests/test-trunc1.c (main): Likewise.
19651         * tests/test-truncf1.c (main): Likewise.
19652         * tests/test-truncl.c (main): Likewise.
19653
19654         isnanl: work around icc bug
19655         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19656
19657 2010-11-03  Eric Blake  <eblake@redhat.com>
19658
19659         tests: fix compiler warnings
19660         * tests/test-getopt.h (test_getopt): Fix condition.
19661         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19662         * tests/test-pipe2.c (main): Likewise.
19663         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19664
19665         utimens: fix broken m4 test
19666         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19667
19668 2010-10-28  Bruno Haible  <bruno@clisp.org>
19669
19670         posix_spawn*, getdtablesize: Relax license.
19671         * modules/posix_spawn (License): Change to LGPLv2+.
19672         * modules/posix_spawnp (License): Likewise.
19673         * modules/posix_spawn-internal (License): Likewise.
19674         * modules/posix_spawnattr_init (License): Likewise.
19675         * modules/posix_spawnattr_getflags (License): Likewise.
19676         * modules/posix_spawnattr_setflags (License): Likewise.
19677         * modules/posix_spawnattr_getpgroup (License): Likewise.
19678         * modules/posix_spawnattr_setpgroup (License): Likewise.
19679         * modules/posix_spawnattr_getschedparam (License): Likewise.
19680         * modules/posix_spawnattr_setschedparam (License): Likewise.
19681         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19682         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19683         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19684         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19685         * modules/posix_spawnattr_getsigmask (License): Likewise.
19686         * modules/posix_spawnattr_setsigmask (License): Likewise.
19687         * modules/posix_spawnattr_destroy (License): Likewise.
19688         * modules/posix_spawn_file_actions_init (License): Likewise.
19689         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19690         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19691         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19692         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19693         * modules/getdtablesize (License): Likewise.
19694         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19695
19696 2010-10-26  Bruno Haible  <bruno@clisp.org>
19697
19698         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19699         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19700         Cygwin and mingw.
19701         Suggested by Eric Blake.
19702
19703 2010-10-26  Bruno Haible  <bruno@clisp.org>
19704
19705         stdio: Work around compilation error due to renameat() on Solaris 10.
19706         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19707         * lib/renameat.c: Don't include <unistd.h> here.
19708         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19709         Reported by Paul Eggert and Eric Blake.
19710
19711 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19712
19713         renameat: port to Solaris 10, which declares renameat in unistd.h
19714
19715         * lib/renameat.c: Include unistd.h before stdio.h, because
19716         Solaris 10 declares renameat in unistd.h.  Problem encountered
19717         when building GNU tar 1.24 on Solaris 10.
19718
19719 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19720
19721         fdopendir: fix C89 compilation
19722         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19723         compilers.
19724
19725 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19726
19727         inttostr: simplify by removing unnecessary redundancy
19728         * lib/anytostr.c: Don't include verify.h.
19729         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19730         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19731         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19732         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19733         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19734         Likewise.
19735         * modules/inttostr (Depends-on): Remove 'verify'.
19736
19737 2010-10-23  Bruno Haible  <bruno@clisp.org>
19738
19739         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19740         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19741         Reported by Eric Blake.
19742
19743 2010-10-23  Bruno Haible  <bruno@clisp.org>
19744
19745         Tests: Fix LOCALE_JA on MirBSD 10.
19746         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19747         to an UTF-8 locale.
19748         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19749         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19750         Reported by Eric Blake.
19751
19752 2010-10-21  Bruno Haible  <bruno@clisp.org>
19753
19754         nl_langinfo test: Avoid test failure on NetBSD 5.
19755         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19756         Reported by Eric Blake.
19757
19758 2010-10-21  Eric Blake  <eblake@redhat.com>
19759
19760         c-stack: work around libsigsegv 2.8 bug
19761         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19762         overflow on at least PowerPC64.
19763
19764 2010-10-17  Bruno Haible  <bruno@clisp.org>
19765
19766         userspec: Drop redundant file.
19767         * modules/userspec (Files): Remove lib/inttostr.h.
19768
19769 2010-10-17  Bruno Haible  <bruno@clisp.org>
19770
19771         nl_langinfo tests: Silence some warnings.
19772         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19773         Reported by Jim Meyering.
19774
19775 2010-10-17  Bruno Haible  <bruno@clisp.org>
19776
19777         Make use of GCC's attribute __alloc_size__.
19778         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19779         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19780         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19781         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19782         __alloc_size__.
19783         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19784         Suggested by Jim Meyering.
19785
19786 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19787
19788         bootstrap: anchor .gitignore entries.
19789         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19790         with...
19791         (insert_vc_ignore): ... this new function, which prepends `/' to
19792         all .gitignore entries before passing them to
19793         insert_sorted_if_absent.
19794
19795 2010-10-16  Bruno Haible  <bruno@clisp.org>
19796
19797         nextafter: Fix configure check.
19798         * modules/nextafter (configure.ac): Correct expected prototype.
19799
19800 2010-10-16  Bruno Haible  <bruno@clisp.org>
19801
19802         termios: Update documentation.
19803         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19804
19805 2010-10-16  Bruno Haible  <bruno@clisp.org>
19806
19807         tests: Make them compile with TinyCC.
19808         * tests/test-strstr.c (main): Remove parentheses around array
19809         initializer.
19810
19811 2010-10-15  Eric Blake  <eblake@redhat.com>
19812
19813         ignore-value: make header idempotent
19814         * lib/ignore-value.h: Add double-inclusion guards.
19815         Reported by Stefan Berger.
19816
19817 2010-10-15  Jim Meyering  <meyering@redhat.com>
19818
19819         GNUmakefile: handle "stable" target, not "major"
19820         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19821         lists in maint.mk and announce-gen.  Without this, "make stable"
19822         would fail to ensure that $(VERSION) is up to date.
19823
19824 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19825
19826         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19827         & co.
19828
19829 2010-10-14  Bruno Haible  <bruno@clisp.org>
19830
19831         vasnprintf: Don't set errno to 0.
19832         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19833         block that sets it to 0.
19834         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19835
19836 2010-10-14  Bruno Haible  <bruno@clisp.org>
19837
19838         socketlib: Fix.
19839         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19840         gl_PREREQ_SYS_H_WINSOCK2.
19841         Reported by Ian Beckwith <ianb@erislabs.net>.
19842
19843 2010-10-13  Jim Meyering  <meyering@redhat.com>
19844
19845         test-select-stdin.c: avoid warn_unused_result warnings
19846         * tests/test-select-stdin.c: Include "macros.h".
19847         ASSERT that read and fflush succeed.
19848
19849 2010-10-13  Jim Meyering  <meyering@redhat.com>
19850
19851         git-version-gen: do require git-VC'd files in cwd
19852         * build-aux/git-version-gen: Reject a git version string
19853         if there are no commits associated with the current directory.
19854         This avoids an unlikely false-positive (unrelated dir whose parent
19855         repository also contains a tag matching v*), as pointed out
19856         by Giuseppe Scrivano in
19857         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19858
19859 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19860
19861         argv-iter: omit nonconforming declaration
19862         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19863         enum arg_iter_err declaration, which doesn't conform to C99.
19864         Solaris 10 cc warns about this.
19865
19866 2010-10-13  Eric Blake  <eblake@redhat.com>
19867
19868         termios: fix compilation on mingw
19869         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19870         (gl_TERMIOS_H): Adjust it on mingw.
19871         * modules/termios (Makefile.am): Substitute new key.
19872         * lib/termios.in.h (includes): Make include_next conditional.
19873         * doc/posix-headers/termios.texi (termios.h): Update
19874         documentation.
19875         Reported by Daniel P. Berrange.
19876
19877 2010-10-13  Jim Meyering  <meyering@redhat.com>
19878
19879         git-version-gen: don't require that .git/ be in the current dir
19880         * build-aux/git-version-gen: Adjust this script so that it works
19881         when run from any working directory beneath the top-level .git/-
19882         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19883         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19884
19885         test-select: avoid warn_unused_result warnings
19886         * tests/test-select.c: Include "macros.h".
19887         ASSERT that each call to read, write, and pipe succeeds.
19888         While not technically required, also check each "close".
19889         * modules/select-tests (Files): Add tests/macros.h.
19890
19891         test-symlinkat: remove declaration of unused local
19892         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19893
19894         test-inttostr: avoid shadowing warnings
19895         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19896         and use malloc rather than the stack for the same reason as
19897         mentioned in the comment justifying the other allocation.
19898
19899 2010-10-11  Bruno Haible  <bruno@clisp.org>
19900
19901         stdlib: Allow multiple gnulib generated replacements to coexist.
19902         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19903         Reported by Sam Steingold <sds@gnu.org>.
19904
19905 2010-10-11  Jim Meyering  <meyering@redhat.com>
19906
19907         fix a documentation typo
19908         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19909
19910 2010-10-11  Eric Blake  <eblake@redhat.com>
19911
19912         futimens: work around Solaris 11 bug
19913         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19914         * tests/test-futimens.h (test_futimens): Enhance, rather than
19915         weaken test.
19916         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19917
19918 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19919
19920         Indentation.
19921         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19922         higher-level operators more to the left.
19923
19924 2010-10-11  Jim Meyering  <meyering@redhat.com>
19925
19926         test-futimens: avoid unwarranted test failure on Solaris 5.11
19927         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19928         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19929         because it tries to dereference the NULL name argument.
19930
19931 2010-10-11  Bruno Haible  <bruno@clisp.org>
19932
19933         Indentation.
19934         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19935         indentation.
19936
19937 2010-10-11  Jim Meyering  <meyering@redhat.com>
19938
19939         spawn.in.h: make indentation consistent with parentheses
19940         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19941         Make indentation consistent with parentheses.
19942
19943 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19944
19945         Fix mismatched parens in previous commit
19946         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19947         parens.
19948
19949 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19950
19951         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19952
19953         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19954         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19955         * lib/malloca.c: Include "verify.h".
19956         (verify1): Remove, replacing with a verify call.
19957         * lib/relocwrapper.c (verify1): Likewise.
19958         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19959         Likewise.
19960         * modules/malloca (Depends-on): Add 'verify'.
19961         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19962         * modules/vasnprintf (Depends-on): Add 'verify'.
19963         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19964         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19965         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19966         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19967         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19968         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19969         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19970
19971         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19972
19973         Formerly the style was sometimes 2*X - 1, because the C standard
19974         was wrongly thought to disallow ?: in integral constant expressions.
19975         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19976         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19977         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19978         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19979         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19980         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19981         verify that time_t cannot be floating.
19982
19983 2010-10-08  Eric Blake  <eblake@redhat.com>
19984
19985         time: enforce recent POSIX ruling that time_t is integral
19986         * lib/time.in.h (__time_t_must_be_integral): Detect any
19987         problematic systems, allowing the rest of gnulib to assume POSIX.
19988
19989 2010-10-08  Jim Meyering  <meyering@redhat.com>
19990
19991         fdopendir: fix a bug on systems lacking openat and /proc support
19992         OpenBSD 4.7 is one such system.  The most noticeable effect was
19993         failure of any application making nontrivial use of fts: rm, du,
19994         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19995           ./rm: traversal failed: `a': Bad file descriptor
19996         Debugging that, you see that even though FD 6 was closed just
19997         prior to the opendir call in fd_clone_opendir, its resulting
19998         dir->dd_fd was 8, rather than the expected value of 6:
19999
20000         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20001         93                close (fd);
20002         (gdb) n
20003         94                dir = fd_clone_opendir (dupfd);
20004         (gdb) n
20005         95                saved_errno = errno;
20006         (gdb) p dir->dd_fd
20007         $11 = 8
20008
20009         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20010         The problem is that on OpenBSD, fd_clone_opendir has to resort
20011         to using the old-style save/restore CWD mechanism, due to its
20012         lack of openat/proc support, and *that* would steal the FD (6)
20013         that opendir was supposed to use.
20014
20015         The fix is to squirrel away the desired FD so that save_cwd uses a
20016         different one, and then free the dest FD right before calling opendir.
20017         That guarantees opendir will use the required file descriptor.
20018
20019         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20020
20021 2010-10-08  Bruno Haible  <bruno@clisp.org>
20022
20023         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20024         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20025
20026 2010-10-08  Bruno Haible  <bruno@clisp.org>
20027
20028         nanosleep: Make replacement POSIX compliant.
20029         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20030         is out of range.
20031         Reported by Jim Meyering.
20032
20033 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20034
20035         bootstrap: add hook for altering gnulib.mk, for Bison
20036         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20037         the Bison bootstrapping process can rewrite file names and variables
20038         in this file before later parts of 'bootstrap' use the file.
20039         Bison wants to include lib/gnulib.mk from the top-level makefile,
20040         so it needs the file names in this file to be relative to the top
20041         level, not relative to lib; plus it needs variable names to be
20042         rewritten.
20043         (slurp): Use the new function.
20044
20045         bootstrap: reformat for readability
20046         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20047
20048 2010-10-08  Eric Blake  <eblake@redhat.com>
20049
20050         docs: update cygwin progress
20051         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20052         1.7.7.
20053         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20054         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20055         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20056         * doc/posix-functions/carg.texi (carg): Likewise.
20057         * doc/posix-functions/cargf.texi (cargf): Likewise.
20058         * doc/posix-functions/casin.texi (casin): Likewise.
20059         * doc/posix-functions/casinf.texi (casinf): Likewise.
20060         * doc/posix-functions/casinh.texi (casinh): Likewise.
20061         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20062         * doc/posix-functions/catan.texi (catan): Likewise.
20063         * doc/posix-functions/catanf.texi (catanf): Likewise.
20064         * doc/posix-functions/catanh.texi (catanh): Likewise.
20065         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20066         * doc/posix-functions/ccos.texi (ccos): Likewise.
20067         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20068         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20069         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20070         * doc/posix-functions/cexp.texi (cexp): Likewise.
20071         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20072         * doc/posix-functions/cimag.texi (cimag): Likewise.
20073         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20074         * doc/posix-functions/clog.texi (clog): Likewise.
20075         * doc/posix-functions/clogf.texi (clogf): Likewise.
20076         * doc/posix-functions/conj.texi (conj): Likewise.
20077         * doc/posix-functions/conjf.texi (conjf): Likewise.
20078         * doc/posix-functions/cpow.texi (cpow): Likewise.
20079         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20080         * doc/posix-functions/cproj.texi (cproj): Likewise.
20081         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20082         * doc/posix-functions/creal.texi (creal): Likewise.
20083         * doc/posix-functions/crealf.texi (crealf): Likewise.
20084         * doc/posix-functions/csin.texi (csin): Likewise.
20085         * doc/posix-functions/csinf.texi (csinf): Likewise.
20086         * doc/posix-functions/csinh.texi (csinh): Likewise.
20087         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20088         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20089         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20090         * doc/posix-functions/ctan.texi (ctan): Likewise.
20091         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20092         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20093         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20094         * doc/posix-headers/complex.texi (complex.h): Likewise.
20095
20096 2010-10-07  Jim Meyering  <meyering@redhat.com>
20097
20098         parse-datetime: avoid compilation failure on OpenBSD 4.7
20099         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20100         This works around a compilation failure on OpenBSD 4.7:
20101         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20102
20103 2010-10-07  Eric Blake  <eblake@redhat.com>
20104
20105         docs: update cygwin progress
20106         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20107         1.7.6.
20108         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20109         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20110         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20111         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20112         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20113         Likewise.
20114         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20115         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20116         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20117         Likewise.
20118         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20119         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20120         Likewise.
20121         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20122         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20123         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20124         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20125         Likewise.
20126         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20127         Likewise.
20128         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20129
20130         docs: update parse-datetime history
20131         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20132         documentation of this function's history and alternatives.
20133
20134         cygwin: use more robust version check
20135         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20136         exclude an eventual cygwin 1.9.1.
20137         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20138         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20139         (gl_FUNC_STRCASESTR): Likewise.
20140         Reported by Bruno Haible.
20141
20142 2010-10-06  Bruno Haible  <bruno@clisp.org>
20143
20144         string, sys_select: Avoid #including large headers unless necessary.
20145         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20146         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20147         OSF/1, BeOS, Haiku.
20148         Reported by Jim Meyering.
20149
20150 2010-10-05  Eric Blake  <eblake@redhat.com>
20151
20152         memmem, strstr, strcasestr: fix bug with long periodic needle
20153         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20154         periodic needle having false positive.
20155         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20156         and cygwin 1.7.7.
20157         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20159         (gl_FUNC_STRCASESTR): Likewise.
20160         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20161         * tests/test-memmem.c (main): Expose the bug.
20162         * tests/test-strcasestr.c (main): Likewise.
20163         * tests/test-strstr.c (main): Likewise.
20164         * tests/test-c-strcasestr.c (main): Likewise.
20165         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20166         * doc/posix-functions/strstr.texi (strstr): Likewise.
20167         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20168         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20169
20170 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20171
20172         parse-datetime: do some more renaming
20173         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20174         parse_datetime, not get_date.  Mention the renaming.
20175         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20176         in comments.
20177         * m4/bison.m4: Likewise.
20178
20179 2010-10-05  Eric Blake  <eblake@redhat.com>
20180
20181         parse-datetime: better name than get_date
20182         * NEWS: Reword the deprecation notice.
20183         * modules/get_date: Rename to modules/parse-datetime.
20184         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20185         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20186         * lib/get_date.y: Rename to lib/parse-datetime.y.
20187         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20188         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20189         * doc/getdate.texi: Provide fallback wrapper.
20190         * lib/getdate.h: Move guts, and wrap...
20191         * lib/parse-datetime.h: ...new file.
20192         * lib/parse-datetime.y (get_date): Rename...
20193         (parse_datetime): ...to this.
20194         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20195         (gl_PARSE_DATETIME): ...to this.
20196         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20197         documentation.
20198         * modules/getdate (Files): Provide fallback docs and header.
20199         (Notice, Depends-on): Update references.
20200         * tests/test-parse-datetime.c: Likewise.
20201         * DEPENDENCIES: Likewise.
20202         * MODULES.html.sh (Date and time <time.h>): Likewise.
20203         * doc/parse-datetime.texi (Date input formats)
20204         (Authors of parse_datetime): Likewise.
20205         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20206         (Include): Likewise.
20207         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20208         * gnulib-tool: Likewise.
20209         * m4/bison.m4 (gl_BISON): Likewise.
20210         Suggested by Bruno Haible.
20211
20212 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20213
20214         more ports to Solaris tr, which needs [] around ranges
20215         * gnulib-tool: Solaris tr needs [] around ranges.
20216         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20217         * tests/test-pipe-filter-gi1.c (main): Likewise.
20218         * tests/test-pipe-filter-ii1.c (main): Likewise.
20219
20220 2010-10-05  Eric Blake  <eblake@redhat.com>
20221
20222         bootstrap: fix Solaris regression
20223         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20224         around ranges.
20225         Reported by Pádraig Brady.
20226
20227         bootstrap: work with pkg-config
20228         * build-aux/bootstrap (check_versions): Also transliterate - in
20229         prerequisite name.
20230         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20231         prerequisites that were already found, to avoid confusion.
20232         Reported by Justin Clift.
20233
20234         faccessat: remove unused wrappers
20235         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20236         presence of these wrappers dragged in -lgen on Solaris.
20237         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20238
20239 2010-10-05  Jim Meyering  <meyering@redhat.com>
20240
20241         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20242         * Makefile (sc_pragma_columns): New syntax-check rule.
20243
20244 2010-10-04  Bruno Haible  <bruno@clisp.org>
20245
20246         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20247         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20248         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20249         Reported by Bruce Korb and Eric Blake.
20250
20251 2010-10-04  Bruno Haible  <bruno@clisp.org>
20252
20253         threadlib: Make option --with-libpth-prefix work.
20254         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20255         use $LIBPTH, not just -lpth.
20256
20257 2010-10-04  Bruno Haible  <bruno@clisp.org>
20258
20259         Avoid line length limitation from HP NonStop system header files.
20260         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20261         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20262         * lib/ctype.in.h: Likewise.
20263         * lib/dirent.in.h: Likewise.
20264         * lib/errno.in.h: Likewise.
20265         * lib/fcntl.in.h: Likewise.
20266         * lib/float.in.h: Likewise.
20267         * lib/getopt.in.h: Likewise.
20268         * lib/iconv.in.h: Likewise.
20269         * lib/inttypes.in.h: Likewise.
20270         * lib/langinfo.in.h: Likewise.
20271         * lib/locale.in.h: Likewise.
20272         * lib/math.in.h: Likewise.
20273         * lib/netdb.in.h: Likewise.
20274         * lib/netinet_in.in.h: Likewise.
20275         * lib/poll.in.h: Likewise.
20276         * lib/pthread.in.h: Likewise.
20277         * lib/pty.in.h: Likewise.
20278         * lib/sched.in.h: Likewise.
20279         * lib/se-selinux.in.h: Likewise.
20280         * lib/search.in.h: Likewise.
20281         * lib/signal.in.h: Likewise.
20282         * lib/spawn.in.h: Likewise.
20283         * lib/stdarg.in.h: Likewise.
20284         * lib/stddef.in.h: Likewise.
20285         * lib/stdint.in.h: Likewise.
20286         * lib/stdio.in.h: Likewise.
20287         * lib/stdlib.in.h: Likewise.
20288         * lib/string.in.h: Likewise.
20289         * lib/strings.in.h: Likewise.
20290         * lib/sys_file.in.h: Likewise.
20291         * lib/sys_ioctl.in.h: Likewise.
20292         * lib/sys_select.in.h: Likewise.
20293         * lib/sys_socket.in.h: Likewise.
20294         * lib/sys_stat.in.h: Likewise.
20295         * lib/sys_time.in.h: Likewise.
20296         * lib/sys_times.in.h: Likewise.
20297         * lib/sys_utsname.in.h: Likewise.
20298         * lib/sys_wait.in.h: Likewise.
20299         * lib/sysexits.in.h: Likewise.
20300         * lib/termios.in.h: Likewise.
20301         * lib/time.in.h: Likewise.
20302         * lib/unistd.in.h: Likewise.
20303         * lib/wchar.in.h: Likewise.
20304         * lib/wctype.in.h: Likewise.
20305         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20306         * modules/ctype (Makefile.am): Likewise.
20307         * modules/dirent (Makefile.am): Likewise.
20308         * modules/errno (Makefile.am): Likewise.
20309         * modules/fcntl-h (Makefile.am): Likewise.
20310         * modules/float (Makefile.am): Likewise.
20311         * modules/getopt-posix (Makefile.am): Likewise.
20312         * modules/iconv-h (Makefile.am): Likewise.
20313         * modules/inttypes (Makefile.am): Likewise.
20314         * modules/langinfo (Makefile.am): Likewise.
20315         * modules/locale (Makefile.am): Likewise.
20316         * modules/math (Makefile.am): Likewise.
20317         * modules/netdb (Makefile.am): Likewise.
20318         * modules/netinet_in (Makefile.am): Likewise.
20319         * modules/poll-h (Makefile.am): Likewise.
20320         * modules/pthread (Makefile.am): Likewise.
20321         * modules/pty (Makefile.am): Likewise.
20322         * modules/sched (Makefile.am): Likewise.
20323         * modules/search (Makefile.am): Likewise.
20324         * modules/selinux-h (Makefile.am): Likewise.
20325         * modules/signal (Makefile.am): Likewise.
20326         * modules/spawn (Makefile.am): Likewise.
20327         * modules/stdarg (Makefile.am): Likewise.
20328         * modules/stddef (Makefile.am): Likewise.
20329         * modules/stdint (Makefile.am): Likewise.
20330         * modules/stdio (Makefile.am): Likewise.
20331         * modules/stdlib (Makefile.am): Likewise.
20332         * modules/string (Makefile.am): Likewise.
20333         * modules/strings (Makefile.am): Likewise.
20334         * modules/sys_file (Makefile.am): Likewise.
20335         * modules/sys_ioctl (Makefile.am): Likewise.
20336         * modules/sys_select (Makefile.am): Likewise.
20337         * modules/sys_socket (Makefile.am): Likewise.
20338         * modules/sys_stat (Makefile.am): Likewise.
20339         * modules/sys_time (Makefile.am): Likewise.
20340         * modules/sys_times (Makefile.am): Likewise.
20341         * modules/sys_utsname (Makefile.am): Likewise.
20342         * modules/sys_wait (Makefile.am): Likewise.
20343         * modules/sysexits (Makefile.am): Likewise.
20344         * modules/termios (Makefile.am): Likewise.
20345         * modules/time (Makefile.am): Likewise.
20346         * modules/unistd (Makefile.am): Likewise.
20347         * modules/wchar (Makefile.am): Likewise.
20348         * modules/wctype (Makefile.am): Likewise.
20349
20350 2010-10-04  Bruno Haible  <bruno@clisp.org>
20351
20352         read-file tests: Avoid a test failure on NonStop Kernel.
20353         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20354         a regular file.
20355         Reported by Joachim Schmitz <schmitz@hp.com>.
20356
20357 2010-10-03  Bruno Haible  <bruno@clisp.org>
20358
20359         gnulib-tool: Fixes for --create-testdir with --libtool.
20360         * gnulib-tool (func_get_automake_snippet): Don't augment
20361         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20362         an executable.
20363         (func_create_testdir): Handle module 'alloca' like func_import.
20364         Reported by Bruce Korb <bruce.korb@gmail.com>.
20365
20366 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20367
20368         Avoid some lines longer than 80 characters.
20369         * lib/stdint.in.h: Break long comment lines.
20370         * lib/math.in.h: Likewise.
20371         (_GL_NUM_UINT_WORDS): New macro, for readability.
20372         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20373         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20374         * lib/stdlib.in.h: Likewise.
20375         * lib/spawn.in.h: Likewise.
20376         * lib/sys_socket.in.h: Update an URL.
20377         * lib/sys_stat.in.h: Break long line.
20378
20379 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20380
20381         Improve pmccabe2html.
20382         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20383         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20384         when the sources change. Remove the line in the HTML about "Used
20385         ranges" (which implied that there might be other unused ranges),
20386         rename "Resume" to "Summary" (easier to understand for more users).
20387         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20388         styles, and some unnecessary blank lines.
20389
20390 2010-10-03  Bruno Haible  <bruno@clisp.org>
20391             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20392
20393         acl: Add support for ACLs on NonStop Kernel.
20394         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20395         Check whether the function aclsort() exists.
20396         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20397         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20398         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20399         (acl_nontrivial [HAVE_ACLSORT]: New function.
20400         (file_has_acl): Implement for NonStop Kernel.
20401         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20402         (qset_acl): Implement for NonStop Kernel.
20403         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20404         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20405         (main): Implement for NonStop Kernel.
20406         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20407         Kernel. Handle this flavor.
20408         * tests/test-set-mode-acl.sh: Likewise.
20409         * tests/test-copy-acl.sh: Likewise.
20410         * tests/test-copy-file.sh: Likewise.
20411
20412 2010-10-03  Bruno Haible  <bruno@clisp.org>
20413
20414         Info about ACLs on NonStop Kernel.
20415         * doc/acl-resources.txt: Add info about NonStop Kernel.
20416         References by Joachim Schmitz <schmitz@hp.com>.
20417
20418 2010-10-02  Bruno Haible  <bruno@clisp.org>
20419
20420         Define missing EDQUOT on NonStop Kernel.
20421         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20422         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20423         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20424         missing.
20425         * doc/posix-headers/errno.texi: Mention the NSK bug.
20426         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20427         Reported by Joachim Schmitz <schmitz@hp.com>.
20428
20429 2010-10-02  Bruno Haible  <bruno@clisp.org>
20430
20431         Update doc for POSIX:2008.
20432         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20433         Update URL of POSIX specification.
20434
20435 2010-10-02  Bruno Haible  <bruno@clisp.org>
20436
20437         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20438         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20439         from gnulib, not from Automake.
20440
20441 2010-10-02  Bruno Haible  <bruno@clisp.org>
20442
20443         New module 'system-posix'.
20444         * modules/system-posix: New file.
20445         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20446         module is present.
20447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20448         GNULIB_SYSTEM_POSIX.
20449         * modules/stdlib (Depends-on): Remove sys_wait.
20450         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20451         * doc/posix-functions/system.texi: Mention the new module.
20452         * doc/posix-headers/stdlib.texi: Likewise.
20453         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20454         define test_sys_wait_macros to a no-op.
20455         Reported by Sam Steingold <sds@gnu.org>.
20456
20457 2010-09-30  Bruno Haible  <bruno@clisp.org>
20458
20459         More renaming from 'getdate' to 'get_date'.
20460         * doc/get_date.texi: Renamed from doc/getdate.texi.
20461         * modules/get_date (Files): Update.
20462         * MODULES.html.sh (Date and time <time.h>): Update.
20463         * DEPENDENCIES: Update.
20464         * gnulib-tool: Update comment.
20465         * m4/bison.m4 (gl_BISON): Likewise.
20466         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20467
20468 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20469
20470         bootstrap: support ACLOCAL_FLAGS during aclocal
20471         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20472         can add additional -I dir for third-party .m4 files.
20473
20474 2010-09-30  Eric Blake  <eblake@redhat.com>
20475
20476         bootstrap: use glibtoolize on MacOS
20477         * build-aux/bootstrap (check_versions): Convert libtool into
20478         libtoolize.
20479         (tool search): Move libtool check earlier, and look for
20480         glibtoolize for MacOS.
20481         (gnulib_tool_options): Auto-add --libtool when appropriate.
20482         Reported by Justin Clift.
20483
20484         poll: fix typo that broke test on MacOS
20485         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20486         Reported by Justin Clift.
20487
20488         getdate: rename to get_date
20489         Note: getdate.h is not renamed, to minimize client impact.
20490         * modules/getdate: Mark obsolete.  Move old contents...
20491         * modules/get_date: ...to new module name.
20492         * modules/getdate-tests: Move...
20493         * modules/get_date-tests: ...here.
20494         * m4/getdate.m4: Move...
20495         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20496         * lib/getdate.y: Move...
20497         * lib/get_date.y: ...here.
20498         * tests/test-getdate.c: Move...
20499         * tests/test-get_date.c: ...here.
20500         * doc/posix-functions/getdate.texi (getdate): Update name.
20501         * NEWS: Mention the change.
20502
20503 2010-09-29  Bruno Haible  <bruno@clisp.org>
20504
20505         Separate the module 'waitpid' from the module 'sys_wait'.
20506         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20507         present.
20508         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20509         gl_MODULE_INDICATOR_FOR_TESTS.
20510         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20511         * modules/sys_wait (Depends-on): Remove waitpid.
20512         (Makefile.am): Substitute GNULIB_WAITPID.
20513         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20514         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20515         signature only if the 'waitpid' module is present.
20516         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20517         * NEWS: Mention the change.
20518         * modules/grantpt (Depends-on): Add waitpid.
20519         * modules/wait-process (Depends-on): Likewise.
20520
20521 2010-09-29  Bruno Haible  <bruno@clisp.org>
20522
20523         More tests for module 'sys_wait'.
20524         * modules/sys_wait-c++-tests: New file.
20525         * tests/test-sys_wait-c++.cc: New file.
20526         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20527         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20528
20529 2010-09-29  Bruno Haible  <bruno@clisp.org>
20530
20531         New module 'waitpid'.
20532         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20533         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20534         Don't include <process.h>.
20535         (waitpid): Declare only, using modern idiom.
20536         * m4/waitpid.m4: New file.
20537         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20538         * modules/waitpid: New file.
20539         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20540         (Makefile.am): Update.
20541         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20542
20543 2010-09-28  Bruno Haible  <bruno@clisp.org>
20544
20545         poll: Assume ANSI C.
20546         * lib/poll.c (poll): Use an ANSI C declaration.
20547
20548 2010-09-28  Bruno Haible  <bruno@clisp.org>
20549
20550         poll-h: Create poll.h on all platforms.
20551         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20552         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20553         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20554         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20555         (gl_REPLACE_POLL_H): Don't set POLL_H.
20556         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20557         * modules/poll-h (Depends-on): Add include_next.
20558         (Makefile.am): Create poll.h unconditionally. Substitute also
20559         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20560
20561 2010-09-28  Bruno Haible  <bruno@clisp.org>
20562
20563         Tests for module 'poll-h'.
20564         * modules/poll-h-c++-tests: New file.
20565         * tests/test-poll-h-c++.cc: New file.
20566
20567         Tests for module 'poll-h'.
20568         * modules/poll-h-tests: New file.
20569         * tests/test-poll-h.c: New file.
20570
20571 2010-09-28  Bruno Haible  <bruno@clisp.org>
20572
20573         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20574         * modules/poll-h (Depends-on): Add 'extensions'.
20575
20576 2010-09-28  Bruno Haible  <bruno@clisp.org>
20577
20578         New module 'poll-h'.
20579         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20580         (poll): Use modern idiom.
20581         * modules/poll-h: New file.
20582         * modules/poll (Files): Remove lib/poll.in.h.
20583         (Depends-on): Add poll-h.
20584         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20585         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20586         * m4/poll_h.m4: New file.
20587         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20588         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20589         and invoke gl_REPLACE_POLL_H.
20590         * lib/poll.c: Use common idiom.
20591         * tests/test-poll.c: Likewise.
20592         * doc/posix-headers/poll.texi: Mention the poll-h module.
20593         Suggested by Eric Blake.
20594
20595 2010-09-26  Bruno Haible  <bruno@clisp.org>
20596
20597         sys_wait: Implement WSTOPSIG.
20598         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20599         Reported by Simon Josefsson.
20600
20601 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20602
20603         stdlib, sys_wait: Avoid compilation error on mingw.
20604         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20605
20606 2010-09-26  Bruno Haible  <bruno@clisp.org>
20607
20608         stdlib tests: Avoid code duplication.
20609         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20610         * modules/sys_wait-tests (Files): Likewise.
20611         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20612         * tests/test-stdlib.c: Include test-sys_wait.h.
20613         (main): Invoke test_sys_wait_macros.
20614         * tests/test-sys_wait.c: Include test-sys_wait.h.
20615         (main): Invoke test_sys_wait_macros.
20616
20617 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20618
20619         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20620         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20621         sure Windows sockets are working before calling getaddrinfo.
20622         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20623         * doc/gnulib.texi (Windows sockets): Fix typo.
20624
20625 2010-09-25  Bruno Haible  <bruno@clisp.org>
20626
20627         Tests for module 'regex-quote'.
20628         * modules/regex-quote-tests: New file.
20629         * tests/test-regex-quote.c: New file.
20630
20631         New module 'regex-quote'.
20632         * lib/regex-quote.h: New file.
20633         * lib/regex-quote.c: New file.
20634         * modules/regex-quote: New file.
20635         Suggested by Reuben Thomas <rrt@sc3d.org>.
20636
20637 2010-09-24  Bruno Haible  <bruno@clisp.org>
20638
20639         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20640         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20641
20642 2010-09-23  Bruno Haible  <bruno@clisp.org>
20643
20644         setenv: Relax license.
20645         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20646         Blake.
20647         Requested by Eric Blake.
20648
20649 2010-09-22  Bruno Haible  <bruno@clisp.org>
20650
20651         termios: Relax license.
20652         * modules/termios (License): Change to LGPLv2+.
20653         Requested by Eric Blake.
20654
20655 2010-09-22  Bruno Haible  <bruno@clisp.org>
20656
20657         threadlib: Allow the package to change the default to 'no'.
20658         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20659         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20660         Reported by Paul Eggert.
20661
20662 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20663             Bruno Haible  <bruno@clisp.org>
20664
20665         Fix endless loop in mbmemcasecoll.
20666         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20667         byte.
20668         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20669
20670 2010-09-22  Bruno Haible  <bruno@clisp.org>
20671
20672         Tests for module 'memcoll'.
20673         * modules/memcoll-tests: New file.
20674         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20675
20676         memcoll, xmemcoll: Clarify size vs. length.
20677         * modules/memcoll.c (memcoll0): Clarify specification.
20678         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20679         passed to collate_error.
20680
20681 2010-09-22  Bruno Haible  <bruno@clisp.org>
20682
20683         Tests for module 'memcasecmp'.
20684         * modules/memcasecmp-tests: New file.
20685         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20686
20687 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20688
20689         * lib/pthread.in.h: Add split double-inclusion guard, and include
20690         system <pthread.h> if there is one.  Use @@-style as in other
20691         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20692         pthread.h doesn't.
20693         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20694         (pthread_mutexattr_settype, pthread_mutex_trylock):
20695         New static inline functions, if there's no system <pthread.h>.
20696         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20697         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20698         Approximate with mutexes if the system lacks spinlocks, as in
20699         MacOS.
20700         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20701         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20702         @@-style.  Check for spinlocks separately.
20703         (gl_PTHREAD_DEFAULTS): New macro.
20704         * modules/pthread: Redo to use a more typical style for in.h files.
20705
20706 2010-09-21  Eric Blake  <eblake@redhat.com>
20707
20708         net_if: enhance tests
20709         * tests/test-net_if.c (main): Move signature checks earlier.
20710         Print failures to stderr.
20711         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20712         Document the bug that we do not yet fix.
20713
20714 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20715
20716         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20717         about gnulib, not GSS.
20718
20719 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20720
20721         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20722         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20723         for Emacs.
20724         * build-aux/pmccabe2html: Make Makefile.am example code more
20725         cut-and-paste friendly.
20726
20727 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20728
20729         * tests/test-net_if.c: New file.
20730         * modules/net_if-tests: New file.
20731
20732 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20733
20734         pthread: add pthread_spin_destroy
20735         * lib/pthread.in.h (pthread_spin_destroy): New function.
20736
20737 2010-09-19  Bruno Haible  <bruno@clisp.org>
20738
20739         gnulib-tool: Fix --help output.
20740         * gnulib-tool (func_usage): Fix help message.
20741         Reported by Reuben Thomas <rrt@sc3d.org>.
20742
20743 2010-09-18  Jim Meyering  <meyering@redhat.com>
20744
20745         maint.mk: avoid unexpanded \n in two diagnostics
20746         * top/maint.mk (sc_prohibit_always_true_header_tests):
20747         Don't use a literal \n in a halt=... assignment.  It would not be
20748         expanded, and the two \n bytes would appear in the diagnostic output
20749         rather than the desired newline.  Use halt=$$(printf ... instead.
20750         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20751
20752 2010-09-18  Bruno Haible  <bruno@clisp.org>
20753
20754         netinet_in: Doc tweak.
20755         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20756         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20757
20758 2010-09-18  Jim Meyering  <meyering@redhat.com>
20759
20760         init.sh: correct an outdated comment
20761         * tests/init.sh (create_exe_shims_):  s/function/alias/
20762
20763         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20764         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20765         a file named "*.exe" is removed between the glob expansion and the
20766         processing of that oddly named file.
20767
20768 2010-09-17  Eric Blake  <eblake@redhat.com>
20769
20770         mirbsd: add some more support
20771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20772         in BSD family.
20773         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20774         devices as OpenBSD.
20775         * m4/host-os.m4 (mirbsd): Add MirBSD.
20776
20777         tests: fix unportable assumption on sys/wait.h
20778         * tests/test-sys_wait.c (main): Relax test.
20779         * tests/test-stdlib.c (main): Likewise.
20780
20781         init.sh: accomodate directory with no .exes
20782         * tests/init.sh: Accomodate directory containing only scripts.
20783
20784         tests: avoid compiler warning
20785         * tests/test-stdlib.c (main): Use the variable.
20786
20787         fdutimens, fdutimensat: update signature, again
20788         * lib/utimens.h (gl_futimens): Delete, and move signature...
20789         (fdutimens): ...here.
20790         (fdutimensat): Rearrange signature.
20791         (lutimensat): Rename variable for clarity.
20792         * lib/fdutimensat.c (fdutimensat): Update signature.
20793         * lib/utimens.c (fdutimens): Likewise.
20794         (gl_futimens): Delete.
20795         (utimens, lutimens): Update callers.
20796         * lib/futimens.c (futimens): Likewise.
20797         * tests/test-fdutimensat.c: Likewise.
20798         * tests/test-utimens.c: Likewise.
20799         * tests/test-futimens.h: Update comment.
20800         * NEWS: Mention this.
20801         Suggested by Paul Eggert.
20802
20803 2010-09-17  Bruno Haible  <bruno@clisp.org>
20804
20805         Take over the maintenance of some older macros from Autoconf.
20806         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20807         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20808         GNU Autoconf.
20809         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20810         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20811
20812 2010-09-17  Eric Blake  <eblake@redhat.com>
20813
20814         fdutimensat: drop atflag validation
20815         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20816         with valid fd, to close a race scenario where futimens is
20817         unsupported and FILE was replaced by a symlink.
20818         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20819         accordingly.
20820         Suggested by Paul Eggert.
20821
20822 2010-09-16  Bruno Haible  <bruno@clisp.org>
20823
20824         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20825         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20826
20827 2010-09-16  Bruno Haible  <bruno@clisp.org>
20828
20829         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20830         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20831         login_tty exists.
20832         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20833
20834 2010-09-16  Bruno Haible  <bruno@clisp.org>
20835
20836         login_tty: Make the replacement code work on BSD systems.
20837         * lib/login_tty.c: Include <sys/ioctl.h>.
20838         (login_tty): Use ioctl TIOCSCTTY when available.
20839         * modules/login_tty (Depends-on): Add sys_ioctl.
20840         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20841
20842 2010-09-16  Bruno Haible  <bruno@clisp.org>
20843
20844         login_tty: Stricter unit test.
20845         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20846         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20847         and tcgetsid() after login_tty.
20848         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20849
20850 2010-09-16  Bruno Haible  <bruno@clisp.org>
20851
20852         New module 'tcgetsid'.
20853         * lib/tcgetsid.c: New file.
20854         * m4/tcgetsid.m4: New file.
20855         * modules/tcgetsid: New file.
20856         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20857         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20858         GNULIB_TCGETSID, HAVE_TCGETSID.
20859         * lib/termios.in.h: Include <sys/types.h>.
20860         (tcgetsid): New declaration.
20861         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20862         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20863         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20864         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20865
20866 2010-09-16  Bruno Haible  <bruno@clisp.org>
20867
20868         Tests for module 'termios'.
20869         * modules/termios-c++-tests: New file.
20870         * modules/termios-tests: New file.
20871         * tests/test-termios-c++.cc: New file.
20872         * tests/test-termios.c: New file.
20873
20874         New module 'termios'.
20875         * modules/termios: New file.
20876         * lib/termios.in.h: New file.
20877         * m4/termios_h.m4: New file.
20878         * doc/posix-headers/termios.texi: Mention the new module.
20879
20880 2010-09-16  Eric Blake  <eblake@redhat.com>
20881
20882         fdutimensat: add an atflag parameter
20883         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20884         * lib/utimens.h (fdutimensat): Update prototype.
20885         * tests/test-fdutimensat.c: Adjust test to match.
20886         * NEWS: Document the change.
20887         Suggested by Paul Eggert.
20888
20889 2010-09-16  Bruno Haible  <bruno@clisp.org>
20890
20891         Fix typos in comments.
20892         * lib/striconveh.h: Fix typo in comment.
20893         * lib/login_tty.c (login_tty): Likewise.
20894
20895 2010-09-15  Bruno Haible  <bruno@clisp.org>
20896
20897         stdlib: clarify MirBSD WEXITSTATUS bug
20898         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20899         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20900
20901 2010-09-15  Eric Blake  <eblake@redhat.com>
20902
20903         stdlib: work around MirBSD WEXITSTATUS bug
20904         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20905         * modules/stdlib (Depends-on): Add sys_wait.
20906         * tests/test-sys_wait.c (main): Enhance test.
20907         * tests/test-stdlib.c (main): Likewise.
20908         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20909
20910         docs: mention MacOS issue with WEXITSTATUS(constant)
20911         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20912         issue.
20913         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20914
20915         strnlen: add tests
20916         * modules/strnlen-tests: New file.
20917         * tests/test-strnlen.c: Likewise.
20918
20919 2010-09-14  Bruno Haible  <bruno@clisp.org>
20920
20921         unistr/base: Avoid link errors when module 'libunistring' is also used.
20922         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20923         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20924         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20925         Declare also when HAVE_LIBUNISTRING is set.
20926         Reported by Pádraig Brady <P@draigbrady.com>.
20927
20928 2010-09-14  Eric Blake  <eblake@redhat.com>
20929
20930         test-rawmemchr: make more robust
20931         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20932         (Depends-on, configure.ac): Add needed prerequisites to use it.
20933         * modules/memchr-tests (Files, Depends-on, configure.ac):
20934         Likewise, to avoid implicit reliance on memchr module prereqs.
20935         * tests/test-memchr.c (main): Ensure proper masking.
20936         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20937         reads.
20938
20939         memchr: detect glibc Alpha bug
20940         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20941         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20942         Alpha.
20943         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20944         * tests/test-memchr.c (main): Enhance test.
20945         Reported by Nelson H. F. Beebe.
20946
20947 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20948
20949         fts, getcwd, glob: audit for dirfd returning -1
20950         * lib/fts.c (opendir): Remove #define; no longer used.
20951         (opendirat): New arg PDIR_FD.  All callers changed.
20952         (fts_build, _opendir2): Use new opendirat to avoid the need for
20953         dirfd, or for checking whether dirfd returns a negative value.
20954         Don't use opendir; always use openat followed by fdopendir.
20955         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20956         it.
20957         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20958         returns -1 here.
20959         * modules/fts (Depends-on): Remove dirfd.
20960         * modules/getcwd (Depends-on): Likewise.
20961
20962 2010-09-13  Eric Blake  <eblake@redhat.com>
20963
20964         float: fix broken MirBSD header
20965         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20966         * doc/posix-headers/float.texi (float.h): Document it.
20967
20968 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20969
20970         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20971         * lib/fts.c (opendirat): New arg extra_flags.
20972         (__opendir2): Use it to avoid following symlinks when opening
20973         a directory, if symlinks are not supposed to be followed.  See
20974         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20975
20976         fdopendir: preserve argument fd before returning
20977         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20978         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20979         (fdopendir): Use them, arranging for FD to be open to the same
20980         directory that it was when it started.  (It might be temporarily
20981         closed while fdopendir is running, so this not thread- or
20982         signal-safe.)  Be careful to do the right thing even when file
20983         descriptors are scarce and dup fails with errno == EMFILE.  See
20984         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20985
20986 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20987
20988         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20989         * NEWS: Document change.
20990         * m4/regex.m4: Disable test for regoff_t size.
20991
20992 2010-09-13  Jim Meyering  <meyering@redhat.com>
20993
20994         fts: don't operate on an invalid file descriptor after failed dup
20995         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20996         negative file descriptor.
20997
20998 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20999
21000         savedir: add streamsavedir, deprecate fdsavedir
21001         * NEWS: Mention deprecation of fdsavedir.
21002         * lib/savedir.c (streamsavedir): New extern function, whose name
21003         ends in "savedir" to be consistent with the others.  This differs
21004         from savedirstream in that it doesn't close its argument.  The
21005         next version of GNU tar will use this instead of fdsavedir, to
21006         avoid some race conditions and conserve file descriptors.
21007         (savedirstream): Reimplement as a wrapper around streamsavedir.
21008         (fdsavedir): Add a comment deprecating this function.  As far as
21009         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21010         * lib/savedir.h (streamsavedir): New decl.
21011         (fdsavedir): Add a comment deprecating this.
21012
21013 2010-09-10  Bruno Haible  <bruno@clisp.org>
21014
21015         langinfo: Fix last commit.
21016         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21017         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21019
21020 2010-09-10  Bruno Haible  <bruno@clisp.org>
21021
21022         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21023         * lib/progreloc.c (O_EXEC): Define fallback.
21024
21025 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21026
21027         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21028         * NEWS: Document recent changes to fcntl-h.
21029         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21030         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21031         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21032         Similarly for O_SEARCH; this last was already true, but not documented.
21033         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21034         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21035         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21036         Likewise.
21037         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21038         is zero, not whether it is defined.
21039         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21040         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21041         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21042
21043 2010-09-10  Bruno Haible  <bruno@clisp.org>
21044
21045         langinfo, nl_langinfo: Fix for IRIX 5.3.
21046         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21047         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21048         HAVE_LANGINFO_YESEXPR.
21049         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21050         HAVE_LANGINFO_YESEXPR.
21051         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21052         HAVE_LANGINFO_T_FMT_AMPM is 0.
21053         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21054         HAVE_LANGINFO_YESEXPR is 0.
21055         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21056         NOEXPR.
21057         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21058         * doc/posix-functions/nl_langinfo.texi: Likewise.
21059         Reported by Eric Blake.
21060
21061 2010-09-10  Bruno Haible  <bruno@clisp.org>
21062
21063         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21064         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21065         on FreeBSD 8.0 and OpenBSD 4.6.
21066         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21067         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21068         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21069         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21070         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21071         ac_includes_default.
21072         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21073
21074 2010-09-09  Eric Blake  <eblake@redhat.com>
21075
21076         strsignal: work around NetBSD bug
21077         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21078         * lib/string.in.h (includes): Likewise.
21079         * doc/posix-functions/strsignal.texi (strsignal): Document the
21080         bug.
21081         Reported by Nelson H. F. Beebe.
21082
21083         gnulib-tool: work with NetBSD /bin/sh
21084         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21085         (func_get_description, func_get_comment, func_get_status)
21086         (func_get_notice, func_get_applicability, func_get_filelist)
21087         (func_get_dependencies, func_get_autoconf_early_snippet)
21088         (func_get_autoconf_snippet, func_get_automake_snippet)
21089         (func_get_include_directive, func_get_link_directive)
21090         (func_get_license, func_get_maintainer, func_import): Avoid
21091         shell syntax errors from parsing syntax extensions.
21092
21093 2010-09-09  Bruno Haible  <bruno@clisp.org>
21094
21095         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21096         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21097         a reliable way to determine whether the 'alias' command works.
21098
21099 2010-09-08  Jim Meyering  <meyering@redhat.com>
21100
21101         init.sh: penalize a set-x-impaired shell; don't disqualify it
21102         * tests/init.sh: Too many shells corrupt application stderr when
21103         you set -x, so we can't afford to disqualify them, since at least
21104         on Irix-6.5, that would disqualify all bourne shells.
21105         Instead, use a two-pass approach.
21106         On the first pass, try to find a shell that meets the stricter
21107         condition that set -x does not corrupt stderr.
21108         If no shell meets the stricter condition, retest each candidate
21109         shell, but without that extra condition.  Finally, when
21110         VERBOSE=yes is requested and set -x might cause trouble, simply
21111         issue a warning and refrain from enabling debug output.
21112
21113 2010-09-08  Eric Blake  <eblake@redhat.com>
21114
21115         unsetenv: fix OpenBSD bug
21116         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21117         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21118         documentation.
21119         Reported by Jim Meyering.
21120
21121         strtod: work around IRIX 6.5 bug
21122         * lib/strtod.c (strtod): Reparse number on shorter string if
21123         exponent parse was invalid.
21124         * tests/test-strtod.c (main): Add check for "0x1p 2".
21125         Reported by Tom G. Christensen.
21126
21127         getopt: optimize previous patch
21128         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21129         empty variable.  Speed up awk script.
21130         Reported by Paolo Bonzini.
21131
21132 2010-09-08  Jim Meyering  <meyering@redhat.com>
21133
21134         test.sh: disqualify shells for which set -x corrupts stderr
21135         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21136         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21137         appear in stderr output.  For example, this command:
21138             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21139         prints "P=1" on those two systems:
21140
21141 2010-09-08  Bruno Haible  <bruno@clisp.org>
21142
21143         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21144         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21145         commands, because some shells ignore redirections when there is an
21146         error in the command lookup.
21147         Reported by Eric Blake.
21148
21149 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21150
21151         * lib/regex.h: Fix a mention of `regex_compile' (should be
21152         `re_compile_pattern').
21153         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21154         (re_set_registers): Correct name of parameter in comment.
21155
21156         * doc/regex.texi: Add documentation for missing syntax flags.
21157         Remove commented-out documentation of defunct syntax option
21158         RE_NO_EMPTY_ALTS.
21159         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21160         Add documentation of re_set_registers.
21161         Document trick to re-use a pattern buffer by setting fastmap manually.
21162         Update documentation of struct re_pattern_buffer per public members.
21163         Uncomment documentation of equivalence class operators and
21164         collating symbol operators, since they are now implemented,
21165         Explain leftmost-longest matching in relation to alternatives.
21166         Tidy documentation of substring matching.
21167         Remove POSIX documentation, which is done better in
21168         glibc, and refer the reader there. Keep BSD API documentation, as
21169         that is not readily available elsewhere.
21170
21171 2010-09-07  Eric Blake  <eblake@redhat.com>
21172
21173         getopt: handle POSIXLY_CORRECT set but not exported
21174         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21175         export state of POSIXLY_CORRECT, due to bash set -o posix.
21176         Reported by Dustin J. Mitchell.
21177
21178 2010-09-05  Bruno Haible  <bruno@clisp.org>
21179
21180         gnulib-tool: Highlight the changed options.
21181         * gnulib-tool (func_usage): Display the --import, --add-import,
21182         --remove-import explanations in bold font.
21183
21184 2010-09-06  Karl Berry  <karl@gnu.org>
21185
21186         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21187
21188 2010-09-05  Bruno Haible  <bruno@clisp.org>
21189
21190         uniwidth/width: Update comment.
21191         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21192         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21193
21194 2010-09-05  Bruno Haible  <bruno@clisp.org>
21195
21196         isinf, isnan: Relax license.
21197         * modules/isinf (License): Change from GPL to LGPL, with consent from
21198         Ben Pfaff.
21199         * modules/isnan (License): Likewise.
21200         Requested by Ludovic Courtès.
21201
21202 2010-09-04  Bruno Haible  <bruno@clisp.org>
21203
21204         gnulib-tool: Help migration from --import to --add-import or --update.
21205         * gnulib-tool: Emit a verbose error message when --import is used
21206         without any module name.
21207
21208 2010-09-04  Bruno Haible  <bruno@clisp.org>
21209
21210         Update doc about gnulib-tool.
21211         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21212         'gnulib-tool --update' in more detail.
21213         Reported by Eric Blake.
21214
21215 2010-09-04  Bruno Haible  <bruno@clisp.org>
21216
21217         gnulib-tool: Change --import. New options --add/remove-import.
21218         * gnulib-tool: New options --add-import, --remove-import.
21219         (func_usage): Document them.
21220         (have_associative): Define always.
21221         (func_import): In import mode, don't merge the specified settings with
21222         the cached settings. Implement remove-import mode.
21223         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21224         Explain when to use them versus --import.
21225         (Simple update): Use --add-import instead of --import.
21226         * NEWS: Mention the change.
21227
21228 2010-09-04  Bruno Haible  <bruno@clisp.org>
21229
21230         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21231         separate gnulib.mk.
21232
21233 2010-09-04  Bruno Haible  <bruno@clisp.org>
21234
21235         gnulib-tool: Don't talk about CVS any more.
21236         * gnulib-tool (func_usage, func_import): Write "version control"
21237         instead of CVS.
21238
21239 2010-09-04  Jim Meyering  <meyering@redhat.com>
21240
21241         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21242         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21243         false positives (whose names may be ill-chosen) when searching
21244         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21245         would cause a false-positive.
21246
21247         avoid coreutils "make distcheck" failure
21248         Coreutils tests with an absolute build directory name that contains
21249         a space.  Not quoting this directory name caused a failure.
21250         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21251         * tests/test-vc-list-files-cvs.sh: Likewise.
21252
21253 2010-09-04  Bruno Haible  <bruno@clisp.org>
21254
21255         gnulib-tool: Avoid error when run in a package without Makefile.am.
21256         * gnulib-tool: When collecting the m4dirs in a package that does not
21257         have a Makefile.am, eliminate those directories that contain no
21258         gnulib-cache.m4. Fix expression that counts these directories.
21259
21260 2010-09-04  Bruno Haible  <bruno@clisp.org>
21261
21262         update-copyright test: Improve output when perl is missing or too old.
21263         * tests/test-update-copyright.sh: Move test of Perl version down after
21264         the test whether Perl exists. Provide an explanation relating Perl's
21265         error message to Automake's SKIP: message.
21266
21267 2010-09-04  Bruno Haible  <bruno@clisp.org>
21268
21269         Don't augment PATH in TESTS_ENVIRONMENT.
21270         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21271         set abs_aux_dir instead of augmenting PATH.
21272         * modules/vc-list-files-tests (Makefile.am): Likewise.
21273         * tests/test-update-copyright.sh: Augment PATH here.
21274         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21275         path_prepend_.
21276         * tests/test-vc-list-files-git.sh: Likewise.
21277
21278 2010-09-04  Jim Meyering  <meyering@redhat.com>
21279
21280         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21281         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21282
21283 2010-09-04  Bruno Haible  <bruno@clisp.org>
21284
21285         strdup: Fix compilation error in C++ mode.
21286         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21287         the macro.
21288
21289 2010-09-04  Bruno Haible  <bruno@clisp.org>
21290
21291         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21292         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21293         macro into a function.
21294         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21295
21296 2010-09-04  Bruno Haible  <bruno@clisp.org>
21297
21298         Set PATH_SEPARATOR the same way autoconf does.
21299         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21300         the value of PATH_SEPARATOR the same way autoconf-generated configure
21301         scripts do.
21302         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21303         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21304
21305 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21306
21307         Set PATH_SEPARATOR the same way autoconf does.
21308         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21309         the same way autoconf-generated configure scripts do.
21310         * posix-modules: Likewise.
21311
21312 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21313
21314         hash: fix safe_hasher const typo
21315         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21316         const; otherwise, there is a type error later.
21317
21318 2010-09-02  Jim Meyering  <meyering@redhat.com>
21319
21320         test-update-copyright.sh: require perl 5.8.0
21321         * tests/test-update-copyright.sh: Require 5.8.0,
21322         which Tom G. Christensen has confirmed is adequate,
21323         while 5.6.1 is not.
21324
21325 2010-09-02  Eric Blake  <eblake@redhat.com>
21326
21327         tests: init.sh improvements for re-exec'ing with zsh
21328         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21329         -vx through shell re-exec.
21330         Reported by Tom G. Christensen.
21331
21332         wctype: fix typo in previous commit
21333         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21334         Reported by Ludovic Courtès.
21335
21336 2010-09-02  Jim Meyering  <meyering@redhat.com>
21337
21338         test-update-copyright.sh: skip test if Perl is too old
21339         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21340         Reported by Tom G. Christensen.
21341
21342 2010-09-02  Bruno Haible  <bruno@clisp.org>
21343
21344         wctype: Avoid compilation error on IRIX 6.5.30.
21345         * lib/wctype.in.h (iswblank): Declare with a replacement if
21346         REPLACE_ISWBLANK is set.
21347         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21348         declared. Set REPLACE_ISWBLANK.
21349         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21350         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21351         * doc/posix-headers/wctype.texi: Likewise.
21352         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21353
21354 2010-09-01  Bruno Haible  <bruno@clisp.org>
21355
21356         New module 'socketlib'.
21357         * modules/socketlib: New file.
21358         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21359         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21360         * modules/sockets (Depends-on): Add socketlib.
21361         Suggested by Sam Steingold <sds@gnu.org>.
21362
21363 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21364
21365         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21366
21367         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21368         when one needs search access to a directory but not read access.
21369         On systems where it is available, it works in some cases where
21370         O_RDONLY does not, namely on directories that are searchable but
21371         not readable, and which need only to be searchable.  If O_SEARCH
21372         is not available, fall back to the traditional method of using
21373         O_RDONLY.
21374
21375         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21376         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21377         when opening a directory that needs only to be searchable.
21378         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21379         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21380         * lib/openat-proc.c (openat_proc_name): Likewise.
21381         * lib/openat.c (openat_needs_fchdir): Likewise.
21382         * lib/save-cwd.c (save_cwd): Likewise.
21383         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21384
21385 2010-08-28  Bruno Haible  <bruno@clisp.org>
21386
21387         New module 'host-cpu-c-abi'.
21388         * modules/host-cpu-c-abi: New file.
21389         * m4/host-cpu-c-abi.m4: New file, based on part of
21390         clisp/src/m4/general.m4.
21391         Requested by Sam Steingold <sds@gnu.org>.
21392
21393 2010-08-31  Eric Blake  <eblake@redhat.com>
21394         and Jim Meyering  <meyering@redhat.com>
21395
21396         hash: factor, and guard against misbehaving hasher function
21397         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21398         of table->hasher's return value.  Also protect against a hash value
21399         so large that adding it to table->bucket results in a NULL pointer.
21400         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21401         Use it in place of open-coded check-and-abort.
21402
21403 2010-08-30  Bruno Haible  <bruno@clisp.org>
21404
21405         hash: silence spurious clang warning
21406         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21407         Reported by Eric Blake.
21408
21409 2010-08-30  Eric Blake  <eblake@redhat.com>
21410
21411         strstr, memmem, strcasestr: avoid leaked shell message
21412         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21413         FreeBSD.
21414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21415         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21416
21417         tests: silence clang warning
21418         * tests/test-malloca.c (do_allocation): Avoid dead store.
21419
21420 2010-08-29  Bruno Haible  <bruno@clisp.org>
21421
21422         gettext: Fix recent mistake.
21423         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21424
21425 2010-08-29  Bruno Haible  <bruno@clisp.org>
21426
21427         selinux-h: Offer a --without-selinux option.
21428         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21429         --without-selinux was specified, skip all tests and define
21430         HAVE_SELINUX_SELINUX_H to 0.
21431         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21432         set LIB_SELINUX to empty.
21433         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21434         gl_LIBSELINUX. If --without-selinux was specified, replace
21435         selinux/context.h.
21436         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21437
21438 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21439             Bruno Haible  <bruno@clisp.org>
21440
21441         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21442         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21443         of HAVE_REALLOC.
21444         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21445         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21446         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21447         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21448
21449 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21450             Bruno Haible  <bruno@clisp.org>
21451
21452         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21453         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21454         HAVE_CALLOC.
21455         * lib/xmalloc.c: Update accordingly.
21456         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21457         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21458         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21459
21460 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21461             Bruno Haible  <bruno@clisp.org>
21462
21463         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21464         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21465         HAVE_MALLOC.
21466         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21467         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21468         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21469
21470 2010-08-29  Bruno Haible  <bruno@clisp.org>
21471
21472         Update modules list.
21473         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21474         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21475         (String handling <string.h>): Add astrxfrm.
21476         (File system functions): Add readlinkat.
21477
21478 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21479
21480         Tests for module 'realloc-gnu'.
21481         * modules/realloc-gnu-tests: New file.
21482         * tests/test-realloc-gnu.c: New file.
21483
21484         Tests for module 'calloc-gnu'.
21485         * modules/calloc-gnu-tests: New file.
21486         * tests/test-calloc-gnu.c: New file.
21487
21488         Tests for module 'malloc-gnu'.
21489         * modules/malloc-gnu-tests: New file.
21490         * tests/test-malloc-gnu.c: New file.
21491
21492 2010-08-28  Bruno Haible  <bruno@clisp.org>
21493
21494         Rename module 'realloc' -> 'realloc-gnu'.
21495         * modules/realloc-gnu: New file, copied from modules/realloc.
21496         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21497         obsolete.
21498         * modules/mgetgroups (Depends-on): Update.
21499         * doc/posix-functions/realloc.texi: Update.
21500         * NEWS: Mention the change.
21501
21502         Rename module 'calloc' -> 'calloc-gnu'.
21503         * modules/calloc-gnu: New file, copied from modules/calloc.
21504         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21505         obsolete.
21506         * doc/posix-functions/calloc.texi: Update.
21507         * NEWS: Mention the change.
21508
21509         Rename module 'malloc' -> 'malloc-gnu'.
21510         * modules/malloc-gnu: New file, copied from modules/malloc.
21511         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21512         obsolete.
21513         * modules/argp (Depends-on): Update.
21514         * modules/regex (Depends-on): Update.
21515         * doc/posix-functions/malloc.texi: Update.
21516         * NEWS: Mention the change.
21517
21518 2010-08-28  Eric Blake  <eblake@redhat.com>
21519
21520         pread, pwrite: add missing dependency
21521         * modules/pread (Depends-on): Add extensions.
21522         * modules/pwrite (Depends-on): Likewise.
21523
21524 2010-08-28  Bruno Haible  <bruno@clisp.org>
21525
21526         unistr/u*-strchr: Fix tests dependencies.
21527         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21528         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21529         Reported by Ian Beckwith <ianb@erislabs.net>.
21530
21531 2010-08-28  Bruno Haible  <bruno@clisp.org>
21532
21533         read-file: Don't occupy too much unused memory.
21534         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21535
21536 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21537             Eric Blake  <eblake@redhat.com>
21538             Bruno Haible  <bruno@clisp.org>
21539
21540         read-file: Avoid memory reallocations with regular files.
21541         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21542         (fread_file): With regular files, use the remaining length as the
21543         initial buffer size.  Check against overflow.
21544         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21545         sys_stat.
21546
21547 2010-08-28  Bruno Haible  <bruno@clisp.org>
21548
21549         ftello: Relax license.
21550         * modules/ftello (License): Relax to LGPLv2+.
21551         Reported by Eric Blake.
21552
21553 2010-08-28  Bruno Haible  <bruno@clisp.org>
21554
21555         Avoid relocwrapper link errors due to gnulib replacement functions.
21556         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21557         function.
21558         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21559
21560 2010-08-28  Bruno Haible  <bruno@clisp.org>
21561
21562         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21563         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21564         defined.
21565         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21566         Suggested by Eric Blake.
21567
21568 2010-08-28  Bruno Haible  <bruno@clisp.org>
21569
21570         sys_socket, netdb: Ensure socklen_t gets defined.
21571         * modules/sys_socket (Depends-on): Add socklen.
21572         * modules/netdb (Depends-on): Likewise.
21573         * modules/getaddrinfo (Depends-on): Remove socklen.
21574         * modules/getsockopt (Depends-on): Likewise.
21575         * modules/setsockopt (Depends-on): Likewise.
21576         * tests/test-sys_socket.c: Check that socklen_t is defined.
21577         * tests/test-netdb.c: Likewise.
21578         * m4/socklen.m4: Update comments.
21579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21580
21581 2010-08-27  Eric Blake  <eblake@redhat.com>
21582
21583         login_tty: add missing dependency
21584         * modules/login_tty (Depends-on): Add pty.
21585
21586 2010-08-26  Eric Blake  <eblake@redhat.com>
21587
21588         lib-symbol-versions: fix m4 quoting
21589         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21590         format for AC_LINK_IFELSE.
21591
21592         glob: fix compile test
21593         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21594
21595         btowc: fix missing file
21596         * modules/btowc (Files): Also ship locale-fr.m4.
21597
21598         lseek: fix link test
21599         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21600         AC_LINK_IFELSE.
21601
21602         include_next: silence autoconf 2.68 warning
21603         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21604         AC_COMPILE_IFELSE as special.
21605         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21606         autoconf < 2.68.
21607
21608         acl: fix compilation test
21609         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21610         AC_COMPILE_IFELSE.
21611
21612 2010-08-26  Bruno Haible  <bruno@clisp.org>
21613
21614         Modernize AC_TRY_RUN invocations.
21615         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21616         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21617         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21618         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21619         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21620         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21621         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21622         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21623         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21624         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21625         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21626         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21627         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21628         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21629         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21630         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21631         gl_MBRLEN_NUL_RETVAL): Likewise.
21632         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21633         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21634         Likewise.
21635         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21636         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21637         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21638         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21639         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21640         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21641         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21642         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21643         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21644         Likewise.
21645         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21646         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21647         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21648         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21649         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21650         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21651         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21652         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21653         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21655
21656 2010-08-26  Bruno Haible  <bruno@clisp.org>
21657
21658         Modernize AC_TRY_LINK invocations.
21659         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21660         AC_TRY_LINK.
21661         * m4/argp.m4 (gl_ARGP): Likewise.
21662         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21663         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21664         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21665         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21666         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21667         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21668         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21669         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21670         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21671         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21672         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21673         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21674         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21675         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21676         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21677         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21678         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21679         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21680         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21681         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21682         Likewise.
21683         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21684         Likewise.
21685         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21686         Likewise.
21687         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21688         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21689         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21690         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21691         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21692         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21693         * m4/servent.m4 (gl_SERVENT): Likewise.
21694         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21695         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21696         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21697         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21698         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21699         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21700         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21701         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21702         * modules/tsearch-tests (configure.ac): Likewise.
21703
21704 2010-08-26  Bruno Haible  <bruno@clisp.org>
21705
21706         Modernize AC_TRY_COMPILE invocations.
21707         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21708         AC_TRY_COMPILE.
21709         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21710         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21711         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21712         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21713         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21714         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21715         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21716         * m4/lock.m4 (gl_LOCK): Likewise.
21717         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21718         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21719         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21720         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21721         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21722         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21723         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21725         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21726         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21727         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21728         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21729         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21730         extraneous semicolon.
21731
21732 2010-08-26  Jim Meyering  <meyering@redhat.com>
21733
21734         stat-time: relax license LGPL
21735         * modules/stat-time (License): Change from GPL to LGPL,
21736         with consent from all contributors, for use in libguile.
21737         Requested by Ludovic Courtès.
21738
21739 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21740
21741         poll: return immediately on POLLHUP.
21742         * lib/poll.c (poll): Always set timeout before wait_timeout is
21743         computed.
21744
21745 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21746
21747         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21748         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21749         rmdir ("dir/.//"), unlinkat.
21750
21751 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21752
21753         stdbool: avoid spurious failure with modern xlc
21754         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21755
21756 2010-08-24  Bruno Haible  <bruno@clisp.org>
21757
21758         getloadavg: simplify code
21759         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21760         gl_have_func. Update comments.
21761
21762 2010-08-24  Eric Blake  <eblake@redhat.com>
21763
21764         getloadavg: don't define SVR4 on cygwin
21765         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21766         only define SVR4 when -lkvm is required.
21767         Reported by Yaakov Selkowitz.
21768
21769 2010-08-24  Bruno Haible  <bruno@clisp.org>
21770
21771         priv-set: fix comment
21772         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21773
21774 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21775
21776         priv-set: fix comments
21777         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21778         to match code, as suggested by David Bartley in:
21779         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21780
21781 2010-08-23  Eric Blake  <eblake@redhat.com>
21782
21783         stdbool: avoid rejecting clang
21784         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21785         * tests/test-stdbool.c: Enable more tests if using the system
21786         <stdbool.h> instead of the gnulib replacement.
21787         (main): Move xlc bug test to a runtime test for all compilers.
21788         Reported by Anders Kaseorg.
21789
21790         argz: fix shell quoting issue
21791         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21792         Reported by Charles Wilson.
21793
21794 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21795             Erik Faye-Lund <kusmabite@gmail.com>
21796
21797         poll, select: handle ERROR_BROKEN_PIPE.
21798         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21799         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21800         * lib/select.c (win32_compute_revents): Do not mark a pipe
21801         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21802
21803 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21804
21805         fts: allow compilation with C++
21806         * lib/fts_.h: Specify extern "C" linkage with C++.
21807
21808 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21809
21810         Fix gnulib-tool sed script de-commentation for AIX sed.
21811         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21812         sed.
21813
21814 2010-08-17  Eric Blake  <eblake@redhat.com>
21815
21816         test-stddef: test for (some) offsetof bugs
21817         * tests/test-stddef.c: Enhance test to ensure correct type of
21818         offsetof.
21819         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21820         that we are not fixing at this time.
21821
21822 2010-08-15  Bruno Haible  <bruno@clisp.org>
21823
21824         stpncpy: Allow stpncpy to be defined as a macro.
21825         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21826         if it's already correctly declared.
21827         * lib/string.in.h (stpncpy): Undefine before redefining.
21828         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21829
21830 2010-08-14  Bruno Haible  <bruno@clisp.org>
21831
21832         Rename module 'memxfrm' to 'amemxfrm'.
21833         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21834         (amemxfrm): Renamed from memxfrm.
21835         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21836         (amemxfrm): Renamed from memxfrm.
21837         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21838         * NEWS: Mention the change.
21839         * MODULES.html.sh (String handling <string.h>): Update.
21840         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21841         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21842         * lib/unicase/u16-casexfrm.c: Likewise.
21843         * lib/unicase/u32-casexfrm.c: Likewise.
21844         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21845         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21846         * lib/uninorm/u16-normxfrm.c: Likewise.
21847         * lib/uninorm/u32-normxfrm.c: Likewise.
21848         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21849         memxfrm.
21850         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21851         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21852         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21853         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21854         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21855         Suggested by Paul Eggert.
21856
21857 2010-08-14  Bruno Haible  <bruno@clisp.org>
21858
21859         Tests for module 'astrxfrm'.
21860         * modules/astrxfrm-tests: New file.
21861         * tests/test-astrxfrm.c: New file.
21862
21863         New module 'astrxfrm'.
21864         * lib/astrxfrm.h: New file.
21865         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21866         * modules/astrxfrm: New file.
21867
21868 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21869
21870         regex: Tweak doc.
21871         * doc/regex.texi (Overview): Don't mention regex.c.
21872         (GNU Regular Expression Compiling): Likewise.
21873         (Match-end-of-line Operator): Mention 'not_eol'.
21874
21875 2010-08-14  Brian Gough  <bjg@gnu.org>
21876             Bruno Haible  <bruno@clisp.org>
21877
21878         git-merge-changelog: add doc relating to use with bzr and hg.
21879         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21880
21881 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21882
21883         pthread: fix pthread.h creation for srcdir != builddir
21884         * modules/pthread (Makefile.am): Fix the rule to work also in a
21885         non-srcdir build.
21886
21887 2010-08-13  Karl Berry  <karl@gnu.org>
21888
21889         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21890         * doc/posix-*/*: force line break before @url of POSIX
21891         specifications.
21892         Suggested by Werner Lemberg.
21893
21894 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21895
21896         strtod: fix const diagnostic
21897         * lib/strtod.c (strtod): Don't assign const char * to char *,
21898         as this elicits a warning from GCC when warnings are enabled.
21899
21900 2010-08-10  Pádraig Brady <P@draigbrady.com>
21901         and Eric Blake  <eblake@redhat.com>
21902
21903         copy-acl: ignore ENOTSUP on HP-UX
21904         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21905         so that it is available for HP-UX.
21906         * lib/copy-acl.c (qcopy_acl): Use it.
21907         Reported by Patrick M. Callahan.
21908
21909 2010-08-10  Eric Blake  <eblake@redhat.com>
21910
21911         open, chown: relax license
21912         * modules/open (License): Change to LGPLv2+, with consent by all
21913         authors, for use in augeas.
21914         * modules/chown (License): Likewise.
21915         * modules/lchown (Likewise): Likewise.
21916         Requested by Adam Stokes.
21917
21918 2010-08-09  Karl Berry  <karl@gnu.org>
21919
21920         * build-aux/ar-lib: new file, import from Automake.
21921         * config/srclist.txt: autocheck for updates.
21922
21923 2010-08-09  Eric Blake  <eblake@redhat.com>
21924
21925         readlinkat: adjust client modules
21926         * modules/areadlinkat (Depends-on): Use readlinkat, not
21927         symlinkat.
21928         * modules/areadlinkat-with-size (Depends-on): Likewise.
21929
21930         mknod: be more vocal about danger of running tests as root
21931         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21932         root, since that is just asking for problems.
21933         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21934
21935         readlinkat: split into its own module
21936         * modules/symlinkat: Split readlinkat...
21937         * modules/readlinkat: ...into separate module.
21938         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21939         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21940         * lib/symlinkat.c (readlinkat): Move...
21941         * lib/readlinkat.c: ...into new file.
21942         * modules/symlinkat-tests: Split readlinkat test...
21943         * modules/readlinkat-tests: ...into separate module.
21944         * tests/test-symlinkat.c: Split...
21945         * tests/test-readlinkat.c: ...into new file.
21946         * NEWS: Document the split.
21947         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21948         * lib/unistd.in.h (readlinkat): Likewise.
21949         Suggested by Bruno Haible.
21950
21951 2010-08-08  Bruno Haible  <bruno@clisp.org>
21952
21953         memxfrm: Speed up.
21954         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21955         that usually only one call to strxfrm is necessary for each string
21956         part.
21957         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21958
21959 2010-08-07  Karl Berry  <karl@gnu.org>
21960
21961         * doc/posix-headers/limits.texi,
21962         * doc/posix-functions/malloc.texi,
21963         * doc/posix-functions/strsignal.texi: missing @item.
21964         * doc/ld-version-script.texi: spurious leading i.
21965         * doc/regex.texi (Interval Operators): no commas inside @var.
21966
21967 2010-08-01  Bruno Haible  <bruno@clisp.org>
21968
21969         Integrate the regex documentation.
21970         * doc/gnulib.texi: Define 'cn' index.
21971         (Regular expressions): New a chapter that includes regex.texi and
21972         regexprops-generic.texi.
21973         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21974         syntax.
21975
21976         Whitespace cleanup.
21977         * doc/regex.texi: Remove trailing spaces.
21978
21979         Add regex documentation.
21980         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21981         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21982         Written by Kathy A. Hargreaves and Karl Berry.
21983
21984 2010-08-01  Bruno Haible  <bruno@clisp.org>
21985
21986         link: Update documentation.
21987         * doc/posix-functions/link.texi: Update regarding Solaris.
21988
21989 2010-07-31  Bruno Haible  <bruno@clisp.org>
21990
21991         Update modules list.
21992         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21993         (String handling <string.h>): Add memcmp2, memxfrm.
21994         (Container data structures): Add xlist, xsublist, xoset.
21995         (Core language properties): Add alignof, unused-parameter.
21996         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21997         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21998         (Unibyte characters <ctype.h>): New section.
21999         (String handling <string.h>): New section.
22000         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22001         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22002         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22003         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22004         tan, tanh, tanl, y0, y1, yn.
22005         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22006         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22007         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22008         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22009         unlockpt, vdprintf, vdprintf-posix.
22010         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22011         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22012         xconcat-filename.
22013         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22014         getdtablesize, pipe2, pipe2-safer.
22015         (Security): New section.
22016         (Networking functions): Add accept4.
22017         (Signal handling): Add sigpipe.
22018         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22019         mbmemcasecoll.
22020         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22021         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22022         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22023         pipe-filter-ii.
22024         (Misc): Add argp-version-etc, login_tty, parse-duration.
22025
22026 2010-07-31  Bruno Haible  <bruno@clisp.org>
22027
22028         Improve doc in MODULES.html.
22029         * modules/linkat (Description): Add the word "function".
22030         * modules/mkfifo (Description): Likewise.
22031         * modules/mknod (Description): Likewise.
22032         * modules/remove (Description): Likewise.
22033         * modules/renameat (Description): Likewise.
22034         * modules/stat (Description): Likewise.
22035         * modules/symlink (Description): Likewise.
22036         * modules/unlink (Description): Likewise.
22037
22038 2010-07-31  Bruno Haible  <bruno@clisp.org>
22039
22040         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22041         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22042         option --enable/disable-c++ instead of --enable/disable-cxx.
22043         * NEWS: Mention the change.
22044
22045 2010-07-31  Bruno Haible  <bruno@clisp.org>
22046
22047         readlink, areadlink: Relax test a bit.
22048         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22049         alternative to ENOTDIR.
22050         * tests/test-areadlink.h (test_areadlink): Likewise.
22051         Reported by Rainer Tammer.
22052
22053 2010-07-31  Bruno Haible  <bruno@clisp.org>
22054
22055         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22056         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22057         character, perform the search using U_STRCHR.
22058         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22059         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22060         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22061         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22062         Suggested by Paolo Bonzini.
22063
22064 2010-07-31  Bruno Haible  <bruno@clisp.org>
22065
22066         unistr/u*-strstr: Fix dependencies.
22067         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22068         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22069         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22070
22071 2010-07-31  Bruno Haible  <bruno@clisp.org>
22072
22073         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22074         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22075         the beginning of the loop.
22076         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22077         cases in 'switch' statement.
22078
22079         unistr/u8-strchr: Fix several bugs.
22080         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22081         the string. When not found, return NULL, not a pointer near the end.
22082
22083         More tests for unistr/u8-strchr.
22084         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22085         that the function does not read past the first occurrence of the byte
22086         being searched.
22087         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22088         * tests/unistr/test-u16-strchr.c (main): New function.
22089         * tests/unistr/test-u32-strchr.c (main): New function.
22090
22091 2010-07-31  Bruno Haible  <bruno@clisp.org>
22092
22093         posix-modules: Ignore backup files of documentation files.
22094         * posix-modules: grep only through files named *.texi.
22095
22096 2010-07-31  Bruno Haible  <bruno@clisp.org>
22097
22098         symlinkat: Fix documentation.
22099         * doc/posix-functions/readlinkat.texi: Fix module name.
22100
22101 2010-07-31  Bruno Haible  <bruno@clisp.org>
22102
22103         fchownat: Replace also when chown has the trailing slash bug.
22104         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22105         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22106         introduced on 2010-04-10.
22107         Reported by Rainer Tammer.
22108
22109 2010-07-31  Bruno Haible  <bruno@clisp.org>
22110
22111         linkat: Work around AIX 7.1 bug.
22112         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22113         whether linkat handles trailing slash correctly. If not, replace linkat
22114         and define LINKAT_TRAILING_SLASH_BUG.
22115         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22116         check whether (fd1,file1) points to a directory if file1 or file2 ends
22117         in a slash. Code taken from lib/link.c.
22118         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22119         Reported by Rainer Tammer.
22120
22121 2010-07-31  Bruno Haible  <bruno@clisp.org>
22122
22123         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22124         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22125         This disables an xlc optimization that was causing wrong test results.
22126         Reported by Rainer Tammer.
22127
22128 2010-07-31  Bruno Haible  <bruno@clisp.org>
22129
22130         iconv: Work around AIX 6.1..7.1 bug.
22131         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22132         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22133         cross-compiling, guess no on all versions of AIX.
22134         Reported by Rainer Tammer.
22135
22136 2010-07-31  Bruno Haible  <bruno@clisp.org>
22137
22138         readlink: Relax test a bit.
22139         * tests/test-readlink.h (test_readlink): Allow different errno value
22140         when readlink is called with a file name that ends in / and refers to
22141         a file.
22142         Suggested by Eric Blake.
22143         Reported by Rainer Tammer.
22144
22145 2010-07-31  Bruno Haible  <bruno@clisp.org>
22146
22147         copysign: Does not require -lm on glibc systems.
22148         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22149         gl_COMMON_DOUBLE_MATHFUNC.
22150         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22151
22152 2010-07-31  Bruno Haible  <bruno@clisp.org>
22153
22154         duplocale: Work around AIX 7.1 bug.
22155         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22156         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22157         * lib/duplocale.c (rpl_duplocale): Update comment.
22158         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22159         Reported by Rainer Tammer.
22160
22161 2010-07-30  Bruno Haible  <bruno@clisp.org>
22162
22163         dirfd: Avoid link error on AIX 7.1.
22164         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22165         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22166         exist, set REPLACE_DIRFD.
22167         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22168         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22169         * doc/posix-functions/dirfd.texi: Update.
22170         Reported by Rainer Tammer.
22171
22172 2010-07-30  Eric Blake  <eblake@redhat.com>
22173
22174         strtod: next round of AIX fixes
22175         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22176         exponent.
22177         * tests/test-strtod.c (main): Enhance tests.
22178         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22179         Reported by Rainer Tammer.
22180
22181         futimens: fix configure check
22182         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22183         Reported by Bruno Haible.
22184
22185 2010-07-30  Bruno Haible  <bruno@clisp.org>
22186
22187         getline: Update regarding AIX.
22188         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22189         Reported by Rainer Tammer.
22190
22191 2010-07-30  Bruno Haible  <bruno@clisp.org>
22192
22193         wcwidth: Drop replacement on AIX 7.
22194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22195         AIX 7.
22196         Reported by Rainer Tammer.
22197
22198 2010-07-30  Bruno Haible  <bruno@clisp.org>
22199
22200         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22201         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22202         a 'char *'.
22203         Reported by Rainer Tammer.
22204
22205 2010-07-30  Bruno Haible  <bruno@clisp.org>
22206
22207         unlink: Update regarding AIX.
22208         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22209         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22210         Reported by Rainer Tammer.
22211
22212 2010-07-30  Bruno Haible  <bruno@clisp.org>
22213
22214         symlink: Update regarding AIX.
22215         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22216         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22217         Reported by Rainer Tammer.
22218
22219 2010-07-30  Bruno Haible  <bruno@clisp.org>
22220
22221         strndup: Update regarding AIX.
22222         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22223         AIX 7.
22224         Reported by Rainer Tammer.
22225
22226 2010-07-30  Bruno Haible  <bruno@clisp.org>
22227
22228         stat: Update regarding AIX.
22229         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22230         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22231         Reported by Rainer Tammer.
22232
22233 2010-07-30  Bruno Haible  <bruno@clisp.org>
22234
22235         truncl: Fix autoconf test.
22236         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22237         whether truncl works.
22238         Reported by Rainer Tammer.
22239
22240 2010-07-30  Bruno Haible  <bruno@clisp.org>
22241
22242         round: Update regarding AIX.
22243         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22244         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22245         Reported by Rainer Tammer.
22246
22247 2010-07-30  Bruno Haible  <bruno@clisp.org>
22248
22249         rename: Update regarding AIX.
22250         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22251         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22252         Reported by Rainer Tammer.
22253
22254 2010-07-30  Bruno Haible  <bruno@clisp.org>
22255
22256         printf.m4: Update regarding AIX.
22257         * m4/printf.m4: Update comments regarding AIX.
22258         Reported by Rainer Tammer.
22259
22260 2010-07-30  Bruno Haible  <bruno@clisp.org>
22261
22262         iconv: Update regarding AIX.
22263         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22264         AIX 7.
22265         Reported by Rainer Tammer.
22266
22267 2010-07-30  Bruno Haible  <bruno@clisp.org>
22268
22269         getopt: Update regarding AIX.
22270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22271         no on AIX.
22272         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22273         Reported by Rainer Tammer.
22274
22275 2010-07-30  Bruno Haible  <bruno@clisp.org>
22276
22277         ldexpl; Update regarding AIX.
22278         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22279         on AIX 7.
22280         Reported by Rainer Tammer.
22281
22282 2010-07-30  Bruno Haible  <bruno@clisp.org>
22283
22284         frexpl: Update regarding AIX.
22285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22286         on AIX 7.
22287         Reported by Rainer Tammer.
22288
22289 2010-07-30  Bruno Haible  <bruno@clisp.org>
22290
22291         open, fopen: Update regarding AIX.
22292         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22293         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22294         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22295         * doc/posix-functions/fopen.texi: Likewise.
22296         Reported by Rainer Tammer.
22297
22298 2010-07-30  Bruno Haible  <bruno@clisp.org>
22299
22300         chown: Update doc regarding AIX.
22301         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22302         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22303         Reported by Rainer Tammer.
22304
22305 2010-07-30  Eric Blake  <eblake@redhat.com>
22306
22307         strtod: fix bug in replacement function on AIX
22308         * lib/strtod.c (strtod): Special case broken "0x" parse in
22309         underlying strtod.
22310         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22311         * doc/posix-functions/strtod.texi (strtod): Likewise.
22312         Reported by Rainer Tammer.
22313
22314 2010-07-30  Bruno Haible  <bruno@clisp.org>
22315
22316         mbrlen: Fix cross-compilation guess for AIX.
22317         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22318         guess. Leftover from 2008-12-22.
22319
22320 2010-07-30  Bruno Haible  <bruno@clisp.org>
22321
22322         mbrtowc: Fix cross-compilation guess for AIX.
22323         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22324         guess. Leftover from 2008-12-21.
22325
22326 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22327
22328         init.sh: work around trap limitation of some shells
22329         * tests/init.sh (setup_): Move exit trap outside of shell function.
22330
22331 2010-07-29  Eric Blake  <eblake@redhat.com>
22332
22333         strtod: aid debugging
22334         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22335         understanding why strtod is rejected.
22336
22337 2010-07-28  Bruno Haible  <bruno@clisp.org>
22338
22339         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22340         * lib/unistr/u8-chr.c: Include <string.h>.
22341         * tests/unistr/test-u8-chr.c: Likewise.
22342         * tests/unistr/test-u16-chr.c: Likewise.
22343         * tests/unistr/test-u32-chr.c: Likewise.
22344         * tests/unistr/test-u8-strchr.c: Likewise.
22345         * tests/unistr/test-u16-strchr.c: Likewise.
22346         * tests/unistr/test-u32-strchr.c: Likewise.
22347         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22348         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22349         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22350         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22351
22352 2010-07-28  Bruno Haible  <bruno@clisp.org>
22353
22354         Use spaces for indentation, not tabs.
22355         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22356
22357 2010-07-27  Bruno Haible  <bruno@clisp.org>
22358
22359         mbspcasecmp: Fix function specification.
22360         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22361         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22362         Reported by Eric Blake <eblake@redhat.com>.
22363
22364 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22365
22366         timespec: use cast and not conditional, as truncation isn't possible
22367         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22368         instead of a conditional.  Comment about the situation in more detail.
22369         This undoes most of the 2009-10-29 patch.
22370
22371 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22372
22373         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22374         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22375         * lib/unistr/u8-strchr.c: Likewise.
22376         * modules/unistr/u8-chr: Depend on memchr.
22377
22378         unistr/u*-strchr: add tests
22379         * modules/unistr/u8-strchr-tests: New file.
22380         * modules/unistr/u16-strchr-tests: New file.
22381         * modules/unistr/u32-strchr-tests: New file.
22382         * tests/unistr/test-strchr.h: New file.
22383         * tests/unistr/test-u8-strchr.c: New file.
22384         * tests/unistr/test-u16-strchr.c: New file.
22385         * tests/unistr/test-u32-strchr.c: New file.
22386
22387         unistr/u*-chr: test multibyte sequences more
22388         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22389         test vector.
22390         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22391         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22392         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22393
22394         unistr/u*-chr: test multibyte sequences
22395         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22396
22397         unistr/u*-chr: prepare for multibyte tests
22398         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22399         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22400         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22401         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22402         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22403         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22404
22405 2010-07-18  Bruno Haible  <bruno@clisp.org>
22406
22407         unistr/u8-strchr: Optimize non-ASCII argument case.
22408         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22409         because the first byte often matches anyway.
22410         Reported by Pádraig Brady <P@draigbrady.com>.
22411
22412 2010-07-15  Karl Berry  <karl@gnu.org>
22413
22414         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22415
22416 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22417
22418         getcwd: on Solaris, work better if ancestors are inaccessible
22419         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22420         buffer and size, try again with a large buffer.  This works better
22421         on Solaris, since its getcwd succeeds even if the path to the root
22422         is inaccessible, and this is helpful in common cases such as .zfs
22423         hidden directories.  Problem reported by J Chapman Flack in
22424         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22425         Use system getcwd if it's declared, not merely if it's partly
22426         working; use the partly-working test only to avoid needless effort
22427         if the system getcwd fails.
22428         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22429         comment that was already obsolete and is now even more obsolete.
22430         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22431         now might call strdup.
22432
22433 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22434
22435         pthread: Add enough so that coreutils/src/sort.c compiles.
22436         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22437         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22438         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22439         Include <sys/types.h>, in case it defines pthread_t.
22440         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22441         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22442         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22443         (pthread_rwlockattr_t, pthread_spinlock_t):
22444         New typedefs, if HAVE_PTHREAD_T is not defined.
22445         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22446         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22447         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22448         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22449         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22450         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22451         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22452         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22453         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22454         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22455         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22456         New macros.
22457         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22458         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22459         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22460         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22461         (pthread_spin_unlock): New dummy functions.
22462         (pthread_create): Return EAGAIN; don't set errno.
22463         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22464         require AC_C_INLINE.
22465         * modules/pthread (Depends-on): Add sched, time.
22466         (pthread.h): Use AM_V_GEN.
22467
22468 2010-07-13  Bruno Haible  <bruno@clisp.org>
22469
22470         striconveh: Don't malloc memory if the result buffer is sufficient.
22471         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22472         buffer if its size is sufficient.
22473         Reported by Ludovic Courtès <ludo@gnu.org>.
22474
22475 2010-07-13  Bruno Haible  <bruno@clisp.org>
22476
22477         strtod: Add safety check.
22478         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22479
22480 2010-07-12  Bruno Haible  <bruno@clisp.org>
22481
22482         Unify tests that set gl_cv_func_ldexpl_no_libm.
22483         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22484         gl_FUNC_LDEXPL.
22485         (gl_FUNC_LDEXPL): Invoke it.
22486         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22487
22488 2010-07-12  Bruno Haible  <bruno@clisp.org>
22489
22490         Unify tests that set gl_cv_func_ldexp_no_libm.
22491         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22492         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22493         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22494         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22495         * modules/strtod (Files): Add m4/ldexp.m4.
22496
22497 2010-07-12  Bruno Haible  <bruno@clisp.org>
22498
22499         Unify tests that set gl_cv_func_frexpl_no_libm.
22500         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22501         gl_FUNC_FREXPL_NO_LIBM.
22502         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22503         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22504
22505 2010-07-12  Bruno Haible  <bruno@clisp.org>
22506
22507         Unify tests that set gl_cv_func_frexp_no_libm.
22508         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22509         gl_FUNC_FREXP_NO_LIBM.
22510         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22511         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22512
22513 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22514
22515         memcoll: clarify sizes versus lengths, document better, and tweak perf
22516         * lib/memcoll.c (strcoll_loop, memcoll0):
22517         Improve quality of descriptive comments.  Name variables
22518         consistently as to whether they are lengths (which do not include
22519         terminating null) versus sizes (which do).
22520         * lib/xmemcoll.c (xmemcoll0): Likewise.
22521         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22522         returned when s1size == 0; this is easier to compile and saves
22523         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22524
22525 2010-07-12  Bruno Haible  <bruno@clisp.org>
22526
22527         Tests for module '_Exit'.
22528         * modules/_Exit-tests: New file.
22529         * tests/test-_Exit.sh: New file.
22530         * tests/test-_Exit.c: New file.
22531
22532         New module '_Exit'.
22533         * lib/stdlib.in.h (__attribute__): New macro.
22534         (_Exit): New declaration.
22535         * lib/_Exit.c: New file.
22536         * m4/_Exit.m4: New file.
22537         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22538         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22539         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22540         * modules/_Exit: New file.
22541         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22542         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22543
22544 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22545
22546         strtod: make it more-accurate typically, and don't require libm
22547         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22548         Include limits.h.  Don't include string.h.
22549         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22550         (locale_isspace): New function, so that no casts are needed to
22551         check whether *s is a space.
22552         (ldexp): Provide an unused dummy if not available.
22553         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22554         (strtod): Use them.  This implementation prefers to use the
22555         underlying strtod if available, falling back on our own code
22556         only to fix known bugs.  This is more likely to produce an
22557         accurate result.  Also, it avoids the use of libm functions.
22558         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22559         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22560         was absent, but it caused a test failure with coreutils.
22561         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22562         with libm.
22563         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22564         * modules/strtod-tests (Makefile.am): Likewise.
22565
22566 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22567             Bruno Haible  <bruno@clisp.org>
22568
22569         unistr/u8-strchr: Optimize ASCII argument case.
22570         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22571
22572 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22573
22574         (x)memcoll: minor tweaks
22575         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22576         is after the type that it qualifies.
22577         (memcoll0): Likewise.
22578         * lib/memcoll.h (memcoll0): Likewise.
22579         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22580         * lib/xmemcoll.h (xmemcoll0): Likewise.
22581         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22582         differs from memcoll in that the NUL byte is part of the argument.
22583         Omit the abort-checks, as performance is a real issue here.  Plus,
22584         the checks were wrong anyway (an off-by-one error).  Omit local
22585         variable 'diff', as it's a bit clearer that way.
22586         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22587         no longer needed.
22588
22589 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22590
22591         (x)memcoll: speedup when input is known to be NUL delimited
22592         * lib/memcoll.c: Include stdlib.
22593         (memcoll0): New function.
22594         (strcoll_loop): New function, refactored for use in both memcoll
22595         and memcoll0.
22596         * lib/memcoll.h (memcoll0): Add prototype.
22597         * lib/xmemcoll.c (xmemcoll0): New function.
22598         (collate_error): New function, refactored for use in both xmemcoll
22599         and xmemcoll0.
22600         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22601         * m4/memcoll.m4: add inline invocation.
22602
22603 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22604
22605         * build-aux/bootstrap: Remove any local translations
22606         from the translation project synchronization directory,
22607         so that local only translations are not distributed.
22608
22609 2010-07-04  Bruno Haible  <bruno@clisp.org>
22610
22611         fsusage: Clarify which code applies to which platforms.
22612         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22613         platform.
22614         * lib/fsusage.c (get_fs_usage): Likewise.
22615
22616 2010-07-04  Bruno Haible  <bruno@clisp.org>
22617
22618         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22619         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22620         Reported by Martin Lambers <marlam@marlam.de>.
22621
22622 2010-07-04  Jim Meyering  <meyering@redhat.com>
22623
22624         hash: once again explicitly disallow insertion of NULL
22625         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22626         inserting a NULL pointer cannot work with these functions.
22627         Add a comment with details.
22628         This reverts part of the 2010-07-01 commit, 5bef1a35
22629         "hash: extend module to deal with non-pointer keys".
22630
22631 2010-07-01  Bruno Haible  <bruno@clisp.org>
22632
22633         stdbool: Update doc.
22634         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22635         Info from Christian Weisgerber <naddy@mips.inka.de>.
22636
22637 2010-07-01  Jim Meyering  <meyering@redhat.com>
22638
22639         hash: extend module to deal with non-pointer keys
22640         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22641         but that allows insertion of non-pointer entries.
22642         Do not disallow an ENTRY value of NULL.
22643         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22644         * lib/hash.h (hash_insert0): Declare.
22645
22646 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22647
22648         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22649         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22650         not present (i.e. with autoconf 2.59 and when using gettextize, not
22651         gnulib), require AC_GNU_SOURCE instead.
22652
22653 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22654
22655         idpriv-drop: Fix tests.
22656         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22657         not to the test-idpriv-droptemp program.
22658
22659 2010-06-29  Bruno Haible  <bruno@clisp.org>
22660
22661         string: Fix syntax error with g++ 2.96.
22662         * lib/string.in.h (__pure__): Remove definition.
22663         (_GL_ATTRIBUTE_PURE): New macro.
22664         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22665         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22666         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22667
22668 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22669
22670         unitypes: Fix bug introduced on 2010-05-18.
22671         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22672
22673 2010-06-22  Eric Blake  <eblake@redhat.com>
22674
22675         memmem: slight optimization
22676         * lib/str-two-way.h (critical_factorization): Update comments.
22677         Reduce work during factorization phase.
22678         Reported by Carlos Bueno <carlos@bueno.org>.
22679
22680 2010-06-21  Bruno Haible  <bruno@clisp.org>
22681
22682         Fix HAVE_CALLOC_POSIX misnomer.
22683         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22684         !HAVE_CALLOC_POSIX.
22685         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22686         HAVE_CALLOC_POSIX.
22687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22688         instead of HAVE_CALLOC_POSIX.
22689         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22690         HAVE_CALLOC_POSIX.
22691
22692         Use modern idiom for calloc() replacement.
22693         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22694         AC_FUNC_CALLOC.
22695         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22696         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22697         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22698         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22699         (gl_REPLACE_CALLOC): New macro.
22700
22701 2010-06-21  Bruno Haible  <bruno@clisp.org>
22702
22703         Fix HAVE_REALLOC_POSIX misnomer.
22704         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22705         !HAVE_REALLOC_POSIX.
22706         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22707         HAVE_REALLOC_POSIX.
22708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22709         instead of HAVE_REALLOC_POSIX.
22710         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22711         HAVE_REALLOC_POSIX.
22712
22713         Use modern idiom for realloc() replacement.
22714         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22715         AC_FUNC_REALLOC.
22716         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22717         Autoconf's AC_FUNC_REALLOC.
22718         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22719         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22720         (gl_REPLACE_REALLOC): New macro.
22721         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22722
22723 2010-06-21  Bruno Haible  <bruno@clisp.org>
22724
22725         Fix HAVE_MALLOC_POSIX misnomer.
22726         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22727         !HAVE_MALLOC_POSIX.
22728         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22729         HAVE_MALLOC_POSIX.
22730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22731         instead of HAVE_MALLOC_POSIX.
22732         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22733         HAVE_MALLOC_POSIX.
22734
22735         Use modern idiom for malloc() replacement.
22736         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22737         AC_FUNC_MALLOC.
22738         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22739         Autoconf's AC_FUNC_MALLOC.
22740         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22741         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22742         (gl_REPLACE_MALLOC): New macro.
22743         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22744
22745 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22746
22747         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22748         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22749         This macro takes 3 arguments, not 4.
22750
22751 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22752
22753         ipv6: fix detection under mingw
22754         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22755         in6_addr.
22756
22757 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22758
22759         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22760         that strtod() works when cross-compiling to a glibc version known
22761         to work.
22762
22763 2010-06-15  Bruno Haible  <bruno@clisp.org>
22764
22765         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22766
22767 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22768
22769         select: Correct timeout.
22770         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22771
22772 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22773
22774         git-version-gen: init shell var to avoid env var influence
22775         * build-aux/git-version-gen (v): Init shell var to empty.
22776
22777 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22778
22779         priv-set: Don't assume that priv.h exists merely because getppriv does.
22780         See Jan Andersen's bug report about AIX 5L in
22781         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22782         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22783         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22784         * lib/priv-set.h: Likewise.
22785         * tests/test-priv-set.c: Likewise.
22786
22787 2010-06-13  Bruno Haible  <bruno@clisp.org>
22788
22789         relocatable: Make it easier to test whether to install wrappers.
22790         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22791         RELOCATABLE_VIA_WRAPPER.
22792
22793 2010-06-13  Bruno Haible  <bruno@clisp.org>
22794
22795         gnulib-tool: Display specified modules and dependencies differently.
22796         * gnulib-tool (func_show_module_list): New function.
22797         (func_import, func_create_testdir): Invoke it.
22798         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22799
22800 2010-06-13  Bruno Haible  <bruno@clisp.org>
22801
22802         gnulib-tool: Align code of func_import and func_create_testdir.
22803         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22804         specified_modules.
22805
22806 2010-06-12  Jim Meyering  <meyering@redhat.com>
22807
22808         test-inttostr: avoid spurious failure on Solaris 9
22809         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22810         to accept "%ju".  Reported by Bruno Haible.
22811
22812 2010-06-11  Jim Meyering  <meyering@redhat.com>
22813
22814         test-sys_socket: mark variables as used more readably
22815         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22816         as "used" explicitly via (void) statement casts.  This is more
22817         readable than using them in an artificial return expression.
22818         Suggestion from Bruno Haible.
22819
22820 2010-06-11  Bruno Haible  <bruno@clisp.org>
22821
22822         Avoid some more warnings from "gcc -Wwrite-strings".
22823         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22824         to 'const char *'.
22825         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22826         * tests/test-c-strcasestr.c (main): Likewise.
22827         * tests/test-mbscasestr1.c (main): Likewise.
22828         * tests/test-mbscasestr2.c (main): Likewise.
22829         * tests/test-memmem.c (main): Likewise.
22830         * tests/test-strstr.c (main): Likewise.
22831         * tests/test-strcasestr.c (main): Likewise.
22832
22833 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22834
22835         init.sh: change framework_failure_ to fail with status 99, not 1
22836         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22837         automake's parallel-tests rule that this is an unexpected failure,
22838         even if the test is listed in XFAIL_TESTS.
22839
22840 2010-06-11  Jim Meyering  <meyering@redhat.com>
22841
22842         test-inttostr: avoid warnings about 4-6KB literal strings
22843         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22844         Include "macros.h", for its definition of ASSERT.
22845         (CK): s/assert/ASSERT/
22846         * modules/inttostr-tests (Files): Add macros.h.
22847
22848         init.sh: don't use $ME_ or skip_ before they are defined
22849         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22850         their first uses.  Also hoist their companions: warn_, fail_,
22851         framework_failure_, $stderr_fileno.  Prompted by a patch from
22852         Stefano Lattarini.
22853
22854         test-sys_socket: avoid set-but-not-used warnings from gcc
22855         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22856         avoid warning about set-but-not-used variables.
22857
22858         test-xvasprintf: avoid 'const' discard warnings
22859         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22860         "const" when assigning from literal strings.
22861         (test_xasprintf): Add "void" in function argument list to placate
22862         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22863
22864         tests: avoid compilation warnings in argmatch and exclude tests...
22865         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22866         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22867         Since it always exits, declare with the "noreturn" attribute.
22868         * tests/test-argmatch.c: Likewise.
22869
22870         tests: avoid 'const' discard warnings in mbsstr tests
22871         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22872         * tests/test-mbsstr2.c (main): Likewise.
22873
22874         test-verify: avoid warning from gcc's -Wmissing-declarations
22875         * tests/test-verify.c (function): Declare to be static.
22876
22877         test-inttostr.c: include <string.h> for use of strcmp
22878         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22879
22880         test-linkat: avoid failed assertion on "other" architectures
22881         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22882         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22883         sparc: https://bugs.launchpad.net/bugs/591968
22884
22885 2010-06-11  Jim Meyering  <meyering@redhat.com>
22886
22887         printf.m4: avoid autoconf's "Expanded Before Required" warning
22888         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22889         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22890         autoconf warning.
22891
22892 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22893
22894         Replacement header templates are now named with ".in", not "_".
22895         * doc/gnulib-intro.texi: Correct.
22896
22897 2010-06-10  Jim Meyering  <meyering@redhat.com>
22898
22899         inttostr-tests: depend on snprintf, not snprintf-posix
22900         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22901         snprintf-posix, to avoid this aclocal failure:
22902           missing file gnulib-tests/vasnprintf.c
22903           configure.ac:45: error: expected source file, required through \
22904           AC_LIBSOURCES, not found
22905
22906 2010-06-10  Jim Meyering  <meyering@redhat.com>
22907
22908         inttostr: add a new function, inttostr, and tests
22909         The namesake function was not available.  The existence of the
22910         template file, inttostr.c makes its addition nontrivial.
22911         * lib/anytostr.c: Rename from inttostr.c.
22912         (anytostr): Rename from inttostr.
22913         * lib/inttostr.c: New file.
22914         * modules/inttostr (Files): Add anytostr.c.
22915         (Makefile.am): Set lib_SOURCES instead of ...
22916         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22917         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22918         * lib/offtostr.c: Likewise.
22919         * lib/uinttostr.c: Likewise.
22920         * lib/umaxtostr.c: Likewise.
22921         * modules/inttostr-tests: New file.
22922         * tests/test-inttostr.c: New file.  Test these functions.
22923
22924 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22925             Bruno Haible  <bruno@clisp.org>
22926
22927         Add "Extending Gnulib" chapter to manual.
22928         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22929         chapter.
22930         (Extending Gnulib): New chapter.
22931         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22932         chapter.
22933
22934 2010-06-09  Bruno Haible  <bruno@clisp.org>
22935
22936         Avoid relocwrapper link errors due to gnulib replacement functions.
22937         * lib/areadlink.c: Use the system's malloc, realloc functions.
22938         (areadlink): Set errno to ENOMEM explicitly.
22939         * modules/areadlink (Depends-on): Remove malloc-posix.
22940         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22941
22942 2010-06-09  Bruno Haible  <bruno@clisp.org>
22943
22944         Avoid relocwrapper link errors due to gnulib replacement functions.
22945         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22946         * lib/malloca.c: Likewise.
22947         * lib/relocatable.c: Likewise.
22948         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22949         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22950         * lib/setenv.c: Use the system's malloc, realloc functions.
22951         * lib/strerror.c: Use the system's sprintf function.
22952         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22953
22954 2010-06-04  Bruno Haible  <bruno@clisp.org>
22955
22956         Prefer documented low-level autoconf macro names.
22957         * m4/lib-link.m4: Use m4_translit instead of translit.
22958         * m4/environ.m4: Likewise.
22959         * m4/mathfunc.m4: Likewise.
22960         * m4/onceonly.m4: Likewise.
22961         * m4/stdint.m4: Likewise.
22962         Suggested by Eric Blake.
22963
22964 2010-06-04  Martin Lambers  <marlam@marlam.de>
22965             Bruno Haible  <bruno@clisp.org>
22966
22967         havelib: Allow library names with '+' characters.
22968         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22969         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22970
22971 2010-06-09  Bruno Haible  <bruno@clisp.org>
22972
22973         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22974         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22975         realloc failed.
22976
22977 2010-06-08  Peter Simons  <simons@cryp.to>
22978
22979         maint.mk: make the news-check rule more configurable
22980         * top/maint.mk (news-check-lines-spec): New variable.
22981         (news-check): Use "sed -n 1,10p" in place of "head".
22982
22983 2010-06-07  Jim Meyering  <meyering@redhat.com>
22984
22985         do-release-commit-and-tag: fix typo in --help
22986         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22987
22988         regex: avoid new dead-code warning with gcc-4.6.0
22989         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22990         if-block containing a while-loop.  It's been unused for at least
22991         5 years.
22992
22993 2010-06-05  Bruno Haible  <bruno@clisp.org>
22994
22995         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22996         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22997
22998 2010-06-04  Bruno Haible  <bruno@clisp.org>
22999
23000         Update to GNU gettext 0.18.1.
23001         * modules/gettext (configure.ac): Require gettext infrastructure from
23002         version 0.18.1.
23003
23004 2010-06-03  Bruno Haible  <bruno@clisp.org>
23005
23006         Don't use AC_LIBOBJ with file names in subdirectories.
23007         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23008         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23009         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23010         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23011         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23012         gl_LIBUNISTRING_LIBSOURCE.
23013         (Makefile.am): Augment lib_SOURCES here, conditionally.
23014         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23015
23016 2010-06-03  Bruno Haible  <bruno@clisp.org>
23017
23018         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23019         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23020         expansion does not end with a newline.
23021         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23022         unnecessary newline.
23023
23024 2010-06-03  Bruno Haible  <bruno@clisp.org>
23025
23026         Reduce dependencies.
23027         * tests/test-quotearg.h: New file, extracted from
23028         tests/test-quotearg.c.
23029         * tests/test-quotearg-simple.c: New file, extracted from
23030         tests/test-quotearg.c.
23031         * tests/test-quotearg.c: Don't include <ctype.h>.
23032         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23033         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23034         use_quote_double_quotes, use_quotearg_colon): Moved to
23035         tests/test-quotearg.h.
23036         (results_g, flag_results, custom_quotes, custom_results): Moved
23037         to tests/test-quotearg-simple.c.
23038         (main): Moved the part that does not depend on gettext to
23039         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23040         performed.
23041         * modules/quotearg-simple: New file.
23042         * modules/quotearg-simple-tests: New file.
23043         * modules/quotearg (Depends-on): Add quotearg-simple.
23044         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23045         (Files): Add tests/test-quotearg.h.
23046         Reported by Paolo Bonzini.
23047
23048 2010-06-03  Bruno Haible  <bruno@clisp.org>
23049
23050         Reduce dependencies.
23051         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23052
23053 2010-06-03  Bruno Haible  <bruno@clisp.org>
23054
23055         time: Undefine more broken macros.
23056         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23057         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23058         Reported by Eric Blake.
23059
23060 2010-06-03  Bruno Haible  <bruno@clisp.org>
23061
23062         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23063         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23064         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23065         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23066         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23067         Reported by Ludovic Courtès <ludo@gnu.org>.
23068
23069 2010-06-02  Eric Blake  <eblake@redhat.com>
23070
23071         time: work with mingw + pthreads-win32 library
23072         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23073         if timespec is defined only in pthread.h.
23074         * modules/time (Makefile.am): Substitute it.
23075         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23076         <pthread.h>, when needed.
23077         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23078         from the library.
23079
23080 2010-05-31  Bruno Haible  <bruno@clisp.org>
23081
23082         Avoid expanding two macros in the wrong order.
23083         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23084         gl_LIBUNISTRING if it is defined.
23085         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23086         autoconf >= 2.64.
23087         Reported by Ludovic Courtès <ludo@gnu.org>.
23088
23089 2010-05-27  Jim Meyering  <meyering@redhat.com>
23090
23091         maint.mk: also prohibit "#undef" of always-defined symbols
23092         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23093         Allow more than one space before the symbol name.
23094         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23095         the regexp uses alternation.
23096
23097 2010-05-26  Eric Blake  <eblake@redhat.com>
23098
23099         maint.mk: avoid echo -e
23100         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23101         Convert all uses of echo -* to printf.
23102         Reported by Matthias Bolte.
23103
23104 2010-05-25  Bruno Haible  <bruno@clisp.org>
23105
23106         Update to GNU gettext 0.18, part 2.
23107         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23108         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23109
23110 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23111
23112         Add missing include in test-pwrite.c.
23113         * tests/test-pwrite.c: Include string.h, for strcmp.
23114
23115 2010-05-24  Bruno Haible  <bruno@clisp.org>
23116
23117         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23118
23119 2010-05-24  Bruno Haible  <bruno@clisp.org>
23120
23121         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23122         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23123         iconveh_error argument.
23124         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23125         U_STRCONV_TO_LOCALE.
23126         * lib/unistr/u16-strcoll.c: Likewise.
23127         * lib/unistr/u32-strcoll.c: Likewise.
23128         * modules/unistr/u8-strcoll (Depends-on): Add
23129         uniconv/u8-strconv-to-enc, localcharset. Remove
23130         uniconv/u8-strconv-to-locale.
23131         (configure.ac): Bump version number.
23132         * modules/unistr/u16-strcoll (Depends-on): Add
23133         uniconv/u16-strconv-to-enc, localcharset. Remove
23134         uniconv/u16-strconv-to-locale.
23135         (configure.ac): Bump version number.
23136         * modules/unistr/u32-strcoll (Depends-on): Add
23137         uniconv/u32-strconv-to-enc, localcharset. Remove
23138         uniconv/u32-strconv-to-locale.
23139         (configure.ac): Bump version number.
23140
23141 2010-05-24  Bruno Haible  <bruno@clisp.org>
23142
23143         Avoid a test failure on NetBSD 5.0.
23144         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23145         an iconv() bug.
23146
23147 2010-05-24  Bruno Haible  <bruno@clisp.org>
23148
23149         Adjust #include directive style.
23150         * modules/regex (Includes): Recommend to write <regex.h>.
23151
23152 2010-05-24  Bruno Haible  <bruno@clisp.org>
23153
23154         regex: Don't require alloca.
23155         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23156         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23157         only inside if (0).
23158
23159 2010-05-23  Jim Meyering  <meyering@redhat.com>
23160
23161         test-renameat.c: include <sys/stat.h>
23162         * tests/test-renameat.c: Include <sys/stat.h>; required for
23163         definition of S_IS* macros.
23164
23165 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23166
23167         Update maintainer documentation for 'relocatable-prog' module.
23168         * doc/relocatable-maint.texi: Update.
23169         Comments by Bruno Haible.
23170
23171 2010-05-23  Bruno Haible  <bruno@clisp.org>
23172
23173         git-merge-changelog: Enable --split-merged-entry by default.
23174         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23175         (usage): Don't mention this option any more.
23176         Reported by Ralf Wildenhues.
23177
23178 2010-05-23  Jim Meyering  <meyering@redhat.com>
23179
23180         test-pwrite: do not leave behind a test file named "out"
23181         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23182         The trivial-looking use of init.sh is really necessary.
23183         It ensures that the temporary file, "out", is created in
23184         a temporary directory, and removed upon termination.
23185         * tests/test-pwrite.sh: Re-add file.
23186         * modules/pwrite-tests: Reference it.
23187
23188 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23189
23190         Fix output redirection buglet in init.sh.
23191         * tests/init.sh: Fix redirection of stderr.
23192
23193 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23194
23195         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23196
23197 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23198
23199         * modules/valgrind-tests: New file.
23200         * m4/valgrind-tests.m4: New file.
23201         * doc/valgrind-tests.texi: New file.
23202         * doc/gnulib.texi (Running self-tests under valgrind): New
23203         section.
23204
23205 2010-05-19  Bruno Haible  <bruno@clisp.org>
23206
23207         Clean up dead code in recent commit.
23208         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23209         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23210         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23211         Suggested by Paolo Bonzini.
23212
23213 2010-05-19  Bruno Haible  <bruno@clisp.org>
23214
23215         Avoid valgrind error reports from libunistring.
23216         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23217         * modules/libunistring (Files): Add it.
23218         * modules/libunistring-optional (Files): Likewise.
23219
23220 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23221             Bruno Haible  <bruno@clisp.org>
23222
23223         New module 'libunistring-optional'.
23224         * modules/libunistring-optional: New file.
23225         * m4/libunistring-base.m4: New file.
23226         * m4/libunistring-optional.m4: New file.
23227         * lib/unicase.in.h: Renamed from lib/unicase.h.
23228         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23229         * lib/unictype.in.h: Renamed from lib/unictype.h.
23230         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23231         * lib/uniname.in.h: Renamed from lib/uniname.h.
23232         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23233         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23234         * lib/unistr.in.h: Renamed from lib/unistr.h.
23235         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23236         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23237         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23238         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23239         gl_LIBUNISTRING. If the library was found, determine the installed
23240         version and set LIBUNISTRING_VERSION.
23241         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23242         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23243         handle a configuration option --with-included-libunistring.
23244         * modules/libunistring (Files): Add m4/absolute-header.m4.
23245         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23246         Add m4/libunistring-base.m4.
23247         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23248         (Makefile.am): Build unicase.h from unicase.in.h.
23249         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23250         Add m4/libunistring-base.m4.
23251         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23252         (Makefile.am): Build uniconv.h from uniconv.in.h.
23253         * modules/unictype/base (Files): Use unictype.in.h instead of
23254         unictype.h. Add m4/libunistring-base.m4.
23255         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23256         (Makefile.am): Build unictype.h from unictype.in.h.
23257         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23258         Add m4/libunistring-base.m4.
23259         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23260         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23261         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23262         Add m4/libunistring-base.m4.
23263         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23264         (Makefile.am): Build uniname.h from uniname.in.h.
23265         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23266         Add m4/libunistring-base.m4.
23267         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23268         (Makefile.am): Build uninorm.h from uninorm.in.h.
23269         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23270         unistdio.h. Add m4/libunistring-base.m4.
23271         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23272         (Makefile.am): Build unistdio.h from unistdio.in.h.
23273         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23274         Add m4/libunistring-base.m4.
23275         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23276         (Makefile.am): Build unistr.h from unistr.in.h.
23277         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23278         Add m4/libunistring-base.m4.
23279         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23280         (Makefile.am): Build unitypes.h from unitypes.in.h.
23281         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23282         Add m4/libunistring-base.m4.
23283         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23284         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23285         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23286         uniwidth.h. Add m4/libunistring-base.m4.
23287         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23288         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23289         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23290         instead of augmenting lib_SOURCES.
23291         * modules/unicase/empty-suffix-context: Likewise.
23292         * modules/unicase/locale-language: Likewise.
23293         * modules/unicase/tolower: Likewise.
23294         * modules/unicase/totitle: Likewise.
23295         * modules/unicase/toupper: Likewise.
23296         * modules/unicase/u8-casecmp: Likewise.
23297         * modules/unicase/u8-casecoll: Likewise.
23298         * modules/unicase/u8-casefold: Likewise.
23299         * modules/unicase/u8-casexfrm: Likewise.
23300         * modules/unicase/u8-ct-casefold: Likewise.
23301         * modules/unicase/u8-ct-tolower: Likewise.
23302         * modules/unicase/u8-ct-totitle: Likewise.
23303         * modules/unicase/u8-ct-toupper: Likewise.
23304         * modules/unicase/u8-is-cased: Likewise.
23305         * modules/unicase/u8-is-casefolded: Likewise.
23306         * modules/unicase/u8-is-lowercase: Likewise.
23307         * modules/unicase/u8-is-titlecase: Likewise.
23308         * modules/unicase/u8-is-uppercase: Likewise.
23309         * modules/unicase/u8-prefix-context: Likewise.
23310         * modules/unicase/u8-suffix-context: Likewise.
23311         * modules/unicase/u8-tolower: Likewise.
23312         * modules/unicase/u8-totitle: Likewise.
23313         * modules/unicase/u8-toupper: Likewise.
23314         * modules/unicase/u16-casecmp: Likewise.
23315         * modules/unicase/u16-casecoll: Likewise.
23316         * modules/unicase/u16-casefold: Likewise.
23317         * modules/unicase/u16-casexfrm: Likewise.
23318         * modules/unicase/u16-ct-casefold: Likewise.
23319         * modules/unicase/u16-ct-tolower: Likewise.
23320         * modules/unicase/u16-ct-totitle: Likewise.
23321         * modules/unicase/u16-ct-toupper: Likewise.
23322         * modules/unicase/u16-is-cased: Likewise.
23323         * modules/unicase/u16-is-casefolded: Likewise.
23324         * modules/unicase/u16-is-lowercase: Likewise.
23325         * modules/unicase/u16-is-titlecase: Likewise.
23326         * modules/unicase/u16-is-uppercase: Likewise.
23327         * modules/unicase/u16-prefix-context: Likewise.
23328         * modules/unicase/u16-suffix-context: Likewise.
23329         * modules/unicase/u16-tolower: Likewise.
23330         * modules/unicase/u16-totitle: Likewise.
23331         * modules/unicase/u16-toupper: Likewise.
23332         * modules/unicase/u32-casecmp: Likewise.
23333         * modules/unicase/u32-casecoll: Likewise.
23334         * modules/unicase/u32-casefold: Likewise.
23335         * modules/unicase/u32-casexfrm: Likewise.
23336         * modules/unicase/u32-ct-casefold: Likewise.
23337         * modules/unicase/u32-ct-tolower: Likewise.
23338         * modules/unicase/u32-ct-totitle: Likewise.
23339         * modules/unicase/u32-ct-toupper: Likewise.
23340         * modules/unicase/u32-is-cased: Likewise.
23341         * modules/unicase/u32-is-casefolded: Likewise.
23342         * modules/unicase/u32-is-lowercase: Likewise.
23343         * modules/unicase/u32-is-titlecase: Likewise.
23344         * modules/unicase/u32-is-uppercase: Likewise.
23345         * modules/unicase/u32-prefix-context: Likewise.
23346         * modules/unicase/u32-suffix-context: Likewise.
23347         * modules/unicase/u32-tolower: Likewise.
23348         * modules/unicase/u32-totitle: Likewise.
23349         * modules/unicase/u32-toupper: Likewise.
23350         * modules/unicase/ulc-casecmp: Likewise.
23351         * modules/unicase/ulc-casecoll: Likewise.
23352         * modules/unicase/ulc-casexfrm: Likewise.
23353         * modules/uniconv/u8-conv-from-enc: Likewise.
23354         * modules/uniconv/u8-conv-to-enc: Likewise.
23355         * modules/uniconv/u8-strconv-from-enc: Likewise.
23356         * modules/uniconv/u8-strconv-from-locale: Likewise.
23357         * modules/uniconv/u8-strconv-to-enc: Likewise.
23358         * modules/uniconv/u8-strconv-to-locale: Likewise.
23359         * modules/uniconv/u16-conv-from-enc: Likewise.
23360         * modules/uniconv/u16-conv-to-enc: Likewise.
23361         * modules/uniconv/u16-strconv-from-enc: Likewise.
23362         * modules/uniconv/u16-strconv-from-locale: Likewise.
23363         * modules/uniconv/u16-strconv-to-enc: Likewise.
23364         * modules/uniconv/u16-strconv-to-locale: Likewise.
23365         * modules/uniconv/u32-conv-from-enc: Likewise.
23366         * modules/uniconv/u32-conv-to-enc: Likewise.
23367         * modules/uniconv/u32-strconv-from-enc: Likewise.
23368         * modules/uniconv/u32-strconv-from-locale: Likewise.
23369         * modules/uniconv/u32-strconv-to-enc: Likewise.
23370         * modules/uniconv/u32-strconv-to-locale: Likewise.
23371         * modules/unictype/bidicategory-byname: Likewise.
23372         * modules/unictype/bidicategory-name: Likewise.
23373         * modules/unictype/bidicategory-of: Likewise.
23374         * modules/unictype/bidicategory-test: Likewise.
23375         * modules/unictype/block-list: Likewise.
23376         * modules/unictype/block-test: Likewise.
23377         * modules/unictype/category-C: Likewise.
23378         * modules/unictype/category-Cc: Likewise.
23379         * modules/unictype/category-Cf: Likewise.
23380         * modules/unictype/category-Cn: Likewise.
23381         * modules/unictype/category-Co: Likewise.
23382         * modules/unictype/category-Cs: Likewise.
23383         * modules/unictype/category-L: Likewise.
23384         * modules/unictype/category-Ll: Likewise.
23385         * modules/unictype/category-Lm: Likewise.
23386         * modules/unictype/category-Lo: Likewise.
23387         * modules/unictype/category-Lt: Likewise.
23388         * modules/unictype/category-Lu: Likewise.
23389         * modules/unictype/category-M: Likewise.
23390         * modules/unictype/category-Mc: Likewise.
23391         * modules/unictype/category-Me: Likewise.
23392         * modules/unictype/category-Mn: Likewise.
23393         * modules/unictype/category-N: Likewise.
23394         * modules/unictype/category-Nd: Likewise.
23395         * modules/unictype/category-Nl: Likewise.
23396         * modules/unictype/category-No: Likewise.
23397         * modules/unictype/category-P: Likewise.
23398         * modules/unictype/category-Pc: Likewise.
23399         * modules/unictype/category-Pd: Likewise.
23400         * modules/unictype/category-Pe: Likewise.
23401         * modules/unictype/category-Pf: Likewise.
23402         * modules/unictype/category-Pi: Likewise.
23403         * modules/unictype/category-Po: Likewise.
23404         * modules/unictype/category-Ps: Likewise.
23405         * modules/unictype/category-S: Likewise.
23406         * modules/unictype/category-Sc: Likewise.
23407         * modules/unictype/category-Sk: Likewise.
23408         * modules/unictype/category-Sm: Likewise.
23409         * modules/unictype/category-So: Likewise.
23410         * modules/unictype/category-Z: Likewise.
23411         * modules/unictype/category-Zl: Likewise.
23412         * modules/unictype/category-Zp: Likewise.
23413         * modules/unictype/category-Zs: Likewise.
23414         * modules/unictype/category-and: Likewise.
23415         * modules/unictype/category-and-not: Likewise.
23416         * modules/unictype/category-byname: Likewise.
23417         * modules/unictype/category-name: Likewise.
23418         * modules/unictype/category-none: Likewise.
23419         * modules/unictype/category-of: Likewise.
23420         * modules/unictype/category-or: Likewise.
23421         * modules/unictype/category-test: Likewise.
23422         * modules/unictype/combining-class: Likewise.
23423         * modules/unictype/ctype-alnum: Likewise.
23424         * modules/unictype/ctype-alpha: Likewise.
23425         * modules/unictype/ctype-blank: Likewise.
23426         * modules/unictype/ctype-cntrl: Likewise.
23427         * modules/unictype/ctype-digit: Likewise.
23428         * modules/unictype/ctype-graph: Likewise.
23429         * modules/unictype/ctype-lower: Likewise.
23430         * modules/unictype/ctype-print: Likewise.
23431         * modules/unictype/ctype-punct: Likewise.
23432         * modules/unictype/ctype-space: Likewise.
23433         * modules/unictype/ctype-upper: Likewise.
23434         * modules/unictype/ctype-xdigit: Likewise.
23435         * modules/unictype/decimal-digit: Likewise.
23436         * modules/unictype/digit: Likewise.
23437         * modules/unictype/mirror: Likewise.
23438         * modules/unictype/numeric: Likewise.
23439         * modules/unictype/property-alphabetic: Likewise.
23440         * modules/unictype/property-ascii-hex-digit: Likewise.
23441         * modules/unictype/property-bidi-arabic-digit: Likewise.
23442         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23443         * modules/unictype/property-bidi-block-separator: Likewise.
23444         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23445         * modules/unictype/property-bidi-common-separator: Likewise.
23446         * modules/unictype/property-bidi-control: Likewise.
23447         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23448         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23449         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23450         * modules/unictype/property-bidi-european-digit: Likewise.
23451         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23452         * modules/unictype/property-bidi-left-to-right: Likewise.
23453         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23454         * modules/unictype/property-bidi-other-neutral: Likewise.
23455         * modules/unictype/property-bidi-pdf: Likewise.
23456         * modules/unictype/property-bidi-segment-separator: Likewise.
23457         * modules/unictype/property-bidi-whitespace: Likewise.
23458         * modules/unictype/property-byname: Likewise.
23459         * modules/unictype/property-combining: Likewise.
23460         * modules/unictype/property-composite: Likewise.
23461         * modules/unictype/property-currency-symbol: Likewise.
23462         * modules/unictype/property-dash: Likewise.
23463         * modules/unictype/property-decimal-digit: Likewise.
23464         * modules/unictype/property-default-ignorable-code-point: Likewise.
23465         * modules/unictype/property-deprecated: Likewise.
23466         * modules/unictype/property-diacritic: Likewise.
23467         * modules/unictype/property-extender: Likewise.
23468         * modules/unictype/property-format-control: Likewise.
23469         * modules/unictype/property-grapheme-base: Likewise.
23470         * modules/unictype/property-grapheme-extend: Likewise.
23471         * modules/unictype/property-grapheme-link: Likewise.
23472         * modules/unictype/property-hex-digit: Likewise.
23473         * modules/unictype/property-hyphen: Likewise.
23474         * modules/unictype/property-id-continue: Likewise.
23475         * modules/unictype/property-id-start: Likewise.
23476         * modules/unictype/property-ideographic: Likewise.
23477         * modules/unictype/property-ids-binary-operator: Likewise.
23478         * modules/unictype/property-ids-trinary-operator: Likewise.
23479         * modules/unictype/property-ignorable-control: Likewise.
23480         * modules/unictype/property-iso-control: Likewise.
23481         * modules/unictype/property-join-control: Likewise.
23482         * modules/unictype/property-left-of-pair: Likewise.
23483         * modules/unictype/property-line-separator: Likewise.
23484         * modules/unictype/property-logical-order-exception: Likewise.
23485         * modules/unictype/property-lowercase: Likewise.
23486         * modules/unictype/property-math: Likewise.
23487         * modules/unictype/property-non-break: Likewise.
23488         * modules/unictype/property-not-a-character: Likewise.
23489         * modules/unictype/property-numeric: Likewise.
23490         * modules/unictype/property-other-alphabetic: Likewise.
23491         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23492         * modules/unictype/property-other-grapheme-extend: Likewise.
23493         * modules/unictype/property-other-id-continue: Likewise.
23494         * modules/unictype/property-other-id-start: Likewise.
23495         * modules/unictype/property-other-lowercase: Likewise.
23496         * modules/unictype/property-other-math: Likewise.
23497         * modules/unictype/property-other-uppercase: Likewise.
23498         * modules/unictype/property-paired-punctuation: Likewise.
23499         * modules/unictype/property-paragraph-separator: Likewise.
23500         * modules/unictype/property-pattern-syntax: Likewise.
23501         * modules/unictype/property-pattern-white-space: Likewise.
23502         * modules/unictype/property-private-use: Likewise.
23503         * modules/unictype/property-punctuation: Likewise.
23504         * modules/unictype/property-quotation-mark: Likewise.
23505         * modules/unictype/property-radical: Likewise.
23506         * modules/unictype/property-sentence-terminal: Likewise.
23507         * modules/unictype/property-soft-dotted: Likewise.
23508         * modules/unictype/property-space: Likewise.
23509         * modules/unictype/property-terminal-punctuation: Likewise.
23510         * modules/unictype/property-test: Likewise.
23511         * modules/unictype/property-titlecase: Likewise.
23512         * modules/unictype/property-unassigned-code-value: Likewise.
23513         * modules/unictype/property-unified-ideograph: Likewise.
23514         * modules/unictype/property-uppercase: Likewise.
23515         * modules/unictype/property-variation-selector: Likewise.
23516         * modules/unictype/property-white-space: Likewise.
23517         * modules/unictype/property-xid-continue: Likewise.
23518         * modules/unictype/property-xid-start: Likewise.
23519         * modules/unictype/property-zero-width: Likewise.
23520         * modules/unictype/scripts: Likewise.
23521         * modules/unictype/syntax-c-ident: Likewise.
23522         * modules/unictype/syntax-c-whitespace: Likewise.
23523         * modules/unictype/syntax-java-ident: Likewise.
23524         * modules/unictype/syntax-java-whitespace: Likewise.
23525         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23526         * modules/unilbrk/u8-width-linebreaks: Likewise.
23527         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23528         * modules/unilbrk/u16-width-linebreaks: Likewise.
23529         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23530         * modules/unilbrk/u32-width-linebreaks: Likewise.
23531         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23532         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23533         * modules/uniname/uniname: Likewise.
23534         * modules/uninorm/canonical-decomposition: Likewise.
23535         * modules/uninorm/composition: Likewise.
23536         * modules/uninorm/decomposing-form: Likewise.
23537         * modules/uninorm/decomposition: Likewise.
23538         * modules/uninorm/filter: Likewise.
23539         * modules/uninorm/nfc: Likewise.
23540         * modules/uninorm/nfd: Likewise.
23541         * modules/uninorm/nfkc: Likewise.
23542         * modules/uninorm/nfkd: Likewise.
23543         * modules/uninorm/u8-normalize: Likewise.
23544         * modules/uninorm/u8-normcmp: Likewise.
23545         * modules/uninorm/u8-normcoll: Likewise.
23546         * modules/uninorm/u8-normxfrm: Likewise.
23547         * modules/uninorm/u16-normalize: Likewise.
23548         * modules/uninorm/u16-normcmp: Likewise.
23549         * modules/uninorm/u16-normcoll: Likewise.
23550         * modules/uninorm/u16-normxfrm: Likewise.
23551         * modules/uninorm/u32-normalize: Likewise.
23552         * modules/uninorm/u32-normcmp: Likewise.
23553         * modules/uninorm/u32-normcoll: Likewise.
23554         * modules/uninorm/u32-normxfrm: Likewise.
23555         * modules/unistdio/u8-asnprintf: Likewise.
23556         * modules/unistdio/u8-asprintf: Likewise.
23557         * modules/unistdio/u8-snprintf: Likewise.
23558         * modules/unistdio/u8-sprintf: Likewise.
23559         * modules/unistdio/u8-u8-asnprintf: Likewise.
23560         * modules/unistdio/u8-u8-asprintf: Likewise.
23561         * modules/unistdio/u8-u8-snprintf: Likewise.
23562         * modules/unistdio/u8-u8-sprintf: Likewise.
23563         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23564         * modules/unistdio/u8-u8-vasprintf: Likewise.
23565         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23566         * modules/unistdio/u8-u8-vsprintf: Likewise.
23567         * modules/unistdio/u8-vasnprintf: Likewise.
23568         * modules/unistdio/u8-vasprintf: Likewise.
23569         * modules/unistdio/u8-vsnprintf: Likewise.
23570         * modules/unistdio/u8-vsprintf: Likewise.
23571         * modules/unistdio/u16-asnprintf: Likewise.
23572         * modules/unistdio/u16-asprintf: Likewise.
23573         * modules/unistdio/u16-snprintf: Likewise.
23574         * modules/unistdio/u16-sprintf: Likewise.
23575         * modules/unistdio/u16-u16-asnprintf: Likewise.
23576         * modules/unistdio/u16-u16-asprintf: Likewise.
23577         * modules/unistdio/u16-u16-snprintf: Likewise.
23578         * modules/unistdio/u16-u16-sprintf: Likewise.
23579         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23580         * modules/unistdio/u16-u16-vasprintf: Likewise.
23581         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23582         * modules/unistdio/u16-u16-vsprintf: Likewise.
23583         * modules/unistdio/u16-vasnprintf: Likewise.
23584         * modules/unistdio/u16-vasprintf: Likewise.
23585         * modules/unistdio/u16-vsnprintf: Likewise.
23586         * modules/unistdio/u16-vsprintf: Likewise.
23587         * modules/unistdio/u32-asnprintf: Likewise.
23588         * modules/unistdio/u32-asprintf: Likewise.
23589         * modules/unistdio/u32-snprintf: Likewise.
23590         * modules/unistdio/u32-sprintf: Likewise.
23591         * modules/unistdio/u32-u32-asnprintf: Likewise.
23592         * modules/unistdio/u32-u32-asprintf: Likewise.
23593         * modules/unistdio/u32-u32-snprintf: Likewise.
23594         * modules/unistdio/u32-u32-sprintf: Likewise.
23595         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23596         * modules/unistdio/u32-u32-vasprintf: Likewise.
23597         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23598         * modules/unistdio/u32-u32-vsprintf: Likewise.
23599         * modules/unistdio/u32-vasnprintf: Likewise.
23600         * modules/unistdio/u32-vasprintf: Likewise.
23601         * modules/unistdio/u32-vsnprintf: Likewise.
23602         * modules/unistdio/u32-vsprintf: Likewise.
23603         * modules/unistdio/ulc-asnprintf: Likewise.
23604         * modules/unistdio/ulc-asprintf: Likewise.
23605         * modules/unistdio/ulc-fprintf: Likewise.
23606         * modules/unistdio/ulc-snprintf: Likewise.
23607         * modules/unistdio/ulc-sprintf: Likewise.
23608         * modules/unistdio/ulc-vasnprintf: Likewise.
23609         * modules/unistdio/ulc-vasprintf: Likewise.
23610         * modules/unistdio/ulc-vfprintf: Likewise.
23611         * modules/unistdio/ulc-vsnprintf: Likewise.
23612         * modules/unistdio/ulc-vsprintf: Likewise.
23613         * modules/unistr/u8-check: Likewise.
23614         * modules/unistr/u8-chr: Likewise.
23615         * modules/unistr/u8-cmp: Likewise.
23616         * modules/unistr/u8-cmp2: Likewise.
23617         * modules/unistr/u8-cpy: Likewise.
23618         * modules/unistr/u8-cpy-alloc: Likewise.
23619         * modules/unistr/u8-endswith: Likewise.
23620         * modules/unistr/u8-mblen: Likewise.
23621         * modules/unistr/u8-mbsnlen: Likewise.
23622         * modules/unistr/u8-mbtouc: Likewise.
23623         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23624         * modules/unistr/u8-mbtoucr: Likewise.
23625         * modules/unistr/u8-move: Likewise.
23626         * modules/unistr/u8-next: Likewise.
23627         * modules/unistr/u8-prev: Likewise.
23628         * modules/unistr/u8-set: Likewise.
23629         * modules/unistr/u8-startswith: Likewise.
23630         * modules/unistr/u8-stpcpy: Likewise.
23631         * modules/unistr/u8-stpncpy: Likewise.
23632         * modules/unistr/u8-strcat: Likewise.
23633         * modules/unistr/u8-strchr: Likewise.
23634         * modules/unistr/u8-strcmp: Likewise.
23635         * modules/unistr/u8-strcoll: Likewise.
23636         * modules/unistr/u8-strcpy: Likewise.
23637         * modules/unistr/u8-strcspn: Likewise.
23638         * modules/unistr/u8-strdup: Likewise.
23639         * modules/unistr/u8-strlen: Likewise.
23640         * modules/unistr/u8-strmblen: Likewise.
23641         * modules/unistr/u8-strmbtouc: Likewise.
23642         * modules/unistr/u8-strncat: Likewise.
23643         * modules/unistr/u8-strncmp: Likewise.
23644         * modules/unistr/u8-strncpy: Likewise.
23645         * modules/unistr/u8-strnlen: Likewise.
23646         * modules/unistr/u8-strpbrk: Likewise.
23647         * modules/unistr/u8-strrchr: Likewise.
23648         * modules/unistr/u8-strspn: Likewise.
23649         * modules/unistr/u8-strstr: Likewise.
23650         * modules/unistr/u8-strtok: Likewise.
23651         * modules/unistr/u8-to-u16: Likewise.
23652         * modules/unistr/u8-to-u32: Likewise.
23653         * modules/unistr/u8-uctomb: Likewise.
23654         * modules/unistr/u16-check: Likewise.
23655         * modules/unistr/u16-chr: Likewise.
23656         * modules/unistr/u16-cmp: Likewise.
23657         * modules/unistr/u16-cmp2: Likewise.
23658         * modules/unistr/u16-cpy: Likewise.
23659         * modules/unistr/u16-cpy-alloc: Likewise.
23660         * modules/unistr/u16-endswith: Likewise.
23661         * modules/unistr/u16-mblen: Likewise.
23662         * modules/unistr/u16-mbsnlen: Likewise.
23663         * modules/unistr/u16-mbtouc: Likewise.
23664         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23665         * modules/unistr/u16-mbtoucr: Likewise.
23666         * modules/unistr/u16-move: Likewise.
23667         * modules/unistr/u16-next: Likewise.
23668         * modules/unistr/u16-prev: Likewise.
23669         * modules/unistr/u16-set: Likewise.
23670         * modules/unistr/u16-startswith: Likewise.
23671         * modules/unistr/u16-stpcpy: Likewise.
23672         * modules/unistr/u16-stpncpy: Likewise.
23673         * modules/unistr/u16-strcat: Likewise.
23674         * modules/unistr/u16-strchr: Likewise.
23675         * modules/unistr/u16-strcmp: Likewise.
23676         * modules/unistr/u16-strcoll: Likewise.
23677         * modules/unistr/u16-strcpy: Likewise.
23678         * modules/unistr/u16-strcspn: Likewise.
23679         * modules/unistr/u16-strdup: Likewise.
23680         * modules/unistr/u16-strlen: Likewise.
23681         * modules/unistr/u16-strmblen: Likewise.
23682         * modules/unistr/u16-strmbtouc: Likewise.
23683         * modules/unistr/u16-strncat: Likewise.
23684         * modules/unistr/u16-strncmp: Likewise.
23685         * modules/unistr/u16-strncpy: Likewise.
23686         * modules/unistr/u16-strnlen: Likewise.
23687         * modules/unistr/u16-strpbrk: Likewise.
23688         * modules/unistr/u16-strrchr: Likewise.
23689         * modules/unistr/u16-strspn: Likewise.
23690         * modules/unistr/u16-strstr: Likewise.
23691         * modules/unistr/u16-strtok: Likewise.
23692         * modules/unistr/u16-to-u32: Likewise.
23693         * modules/unistr/u16-to-u8: Likewise.
23694         * modules/unistr/u16-uctomb: Likewise.
23695         * modules/unistr/u32-check: Likewise.
23696         * modules/unistr/u32-chr: Likewise.
23697         * modules/unistr/u32-cmp: Likewise.
23698         * modules/unistr/u32-cmp2: Likewise.
23699         * modules/unistr/u32-cpy: Likewise.
23700         * modules/unistr/u32-cpy-alloc: Likewise.
23701         * modules/unistr/u32-endswith: Likewise.
23702         * modules/unistr/u32-mblen: Likewise.
23703         * modules/unistr/u32-mbsnlen: Likewise.
23704         * modules/unistr/u32-mbtouc: Likewise.
23705         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23706         * modules/unistr/u32-mbtoucr: Likewise.
23707         * modules/unistr/u32-move: Likewise.
23708         * modules/unistr/u32-next: Likewise.
23709         * modules/unistr/u32-prev: Likewise.
23710         * modules/unistr/u32-set: Likewise.
23711         * modules/unistr/u32-startswith: Likewise.
23712         * modules/unistr/u32-stpcpy: Likewise.
23713         * modules/unistr/u32-stpncpy: Likewise.
23714         * modules/unistr/u32-strcat: Likewise.
23715         * modules/unistr/u32-strchr: Likewise.
23716         * modules/unistr/u32-strcmp: Likewise.
23717         * modules/unistr/u32-strcoll: Likewise.
23718         * modules/unistr/u32-strcpy: Likewise.
23719         * modules/unistr/u32-strcspn: Likewise.
23720         * modules/unistr/u32-strdup: Likewise.
23721         * modules/unistr/u32-strlen: Likewise.
23722         * modules/unistr/u32-strmblen: Likewise.
23723         * modules/unistr/u32-strmbtouc: Likewise.
23724         * modules/unistr/u32-strncat: Likewise.
23725         * modules/unistr/u32-strncmp: Likewise.
23726         * modules/unistr/u32-strncpy: Likewise.
23727         * modules/unistr/u32-strnlen: Likewise.
23728         * modules/unistr/u32-strpbrk: Likewise.
23729         * modules/unistr/u32-strrchr: Likewise.
23730         * modules/unistr/u32-strspn: Likewise.
23731         * modules/unistr/u32-strstr: Likewise.
23732         * modules/unistr/u32-strtok: Likewise.
23733         * modules/unistr/u32-to-u16: Likewise.
23734         * modules/unistr/u32-to-u8: Likewise.
23735         * modules/unistr/u32-uctomb: Likewise.
23736         * modules/uniwbrk/u8-wordbreaks: Likewise.
23737         * modules/uniwbrk/u16-wordbreaks: Likewise.
23738         * modules/uniwbrk/u32-wordbreaks: Likewise.
23739         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23740         * modules/uniwbrk/wordbreak-property: Likewise.
23741         * modules/uniwidth/u8-strwidth: Likewise.
23742         * modules/uniwidth/u8-width: Likewise.
23743         * modules/uniwidth/u16-strwidth: Likewise.
23744         * modules/uniwidth/u16-width: Likewise.
23745         * modules/uniwidth/u32-strwidth: Likewise.
23746         * modules/uniwidth/u32-width: Likewise.
23747         * modules/uniwidth/width: Likewise.
23748         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23749         with $(LIBUNISTRING).
23750         * modules/unicase/ignorable-tests: Likewise.
23751         * modules/unicase/locale-language-tests: Likewise.
23752         * modules/unicase/tolower-tests: Likewise.
23753         * modules/unicase/totitle-tests: Likewise.
23754         * modules/unicase/toupper-tests: Likewise.
23755         * modules/unicase/u8-casecmp-tests: Likewise.
23756         * modules/unicase/u8-casecoll-tests: Likewise.
23757         * modules/unicase/u8-casefold-tests: Likewise.
23758         * modules/unicase/u8-is-cased-tests: Likewise.
23759         * modules/unicase/u8-is-casefolded-tests: Likewise.
23760         * modules/unicase/u8-is-lowercase-tests: Likewise.
23761         * modules/unicase/u8-is-titlecase-tests: Likewise.
23762         * modules/unicase/u8-is-uppercase-tests: Likewise.
23763         * modules/unicase/u8-tolower-tests: Likewise.
23764         * modules/unicase/u8-totitle-tests: Likewise.
23765         * modules/unicase/u8-toupper-tests: Likewise.
23766         * modules/unicase/u16-casecmp-tests: Likewise.
23767         * modules/unicase/u16-casecoll-tests: Likewise.
23768         * modules/unicase/u16-casefold-tests: Likewise.
23769         * modules/unicase/u16-is-cased-tests: Likewise.
23770         * modules/unicase/u16-is-casefolded-tests: Likewise.
23771         * modules/unicase/u16-is-lowercase-tests: Likewise.
23772         * modules/unicase/u16-is-titlecase-tests: Likewise.
23773         * modules/unicase/u16-is-uppercase-tests: Likewise.
23774         * modules/unicase/u16-tolower-tests: Likewise.
23775         * modules/unicase/u16-totitle-tests: Likewise.
23776         * modules/unicase/u16-toupper-tests: Likewise.
23777         * modules/unicase/u32-casecmp-tests: Likewise.
23778         * modules/unicase/u32-casecoll-tests: Likewise.
23779         * modules/unicase/u32-casefold-tests: Likewise.
23780         * modules/unicase/u32-is-cased-tests: Likewise.
23781         * modules/unicase/u32-is-casefolded-tests: Likewise.
23782         * modules/unicase/u32-is-lowercase-tests: Likewise.
23783         * modules/unicase/u32-is-titlecase-tests: Likewise.
23784         * modules/unicase/u32-is-uppercase-tests: Likewise.
23785         * modules/unicase/u32-tolower-tests: Likewise.
23786         * modules/unicase/u32-totitle-tests: Likewise.
23787         * modules/unicase/u32-toupper-tests: Likewise.
23788         * modules/unicase/ulc-casecmp-tests: Likewise.
23789         * modules/unicase/ulc-casecoll-tests: Likewise.
23790         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23791         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23792         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23793         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23794         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23795         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23796         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23797         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23798         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23799         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23800         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23801         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23802         * modules/unictype/bidicategory-byname-tests: Likewise.
23803         * modules/unictype/bidicategory-name-tests: Likewise.
23804         * modules/unictype/bidicategory-of-tests: Likewise.
23805         * modules/unictype/bidicategory-test-tests: Likewise.
23806         * modules/unictype/block-list-tests: Likewise.
23807         * modules/unictype/block-of-tests: Likewise.
23808         * modules/unictype/block-test-tests: Likewise.
23809         * modules/unictype/category-C-tests: Likewise.
23810         * modules/unictype/category-Cc-tests: Likewise.
23811         * modules/unictype/category-Cf-tests: Likewise.
23812         * modules/unictype/category-Cn-tests: Likewise.
23813         * modules/unictype/category-Co-tests: Likewise.
23814         * modules/unictype/category-Cs-tests: Likewise.
23815         * modules/unictype/category-L-tests: Likewise.
23816         * modules/unictype/category-Ll-tests: Likewise.
23817         * modules/unictype/category-Lm-tests: Likewise.
23818         * modules/unictype/category-Lo-tests: Likewise.
23819         * modules/unictype/category-Lt-tests: Likewise.
23820         * modules/unictype/category-Lu-tests: Likewise.
23821         * modules/unictype/category-M-tests: Likewise.
23822         * modules/unictype/category-Mc-tests: Likewise.
23823         * modules/unictype/category-Me-tests: Likewise.
23824         * modules/unictype/category-Mn-tests: Likewise.
23825         * modules/unictype/category-N-tests: Likewise.
23826         * modules/unictype/category-Nd-tests: Likewise.
23827         * modules/unictype/category-Nl-tests: Likewise.
23828         * modules/unictype/category-No-tests: Likewise.
23829         * modules/unictype/category-P-tests: Likewise.
23830         * modules/unictype/category-Pc-tests: Likewise.
23831         * modules/unictype/category-Pd-tests: Likewise.
23832         * modules/unictype/category-Pe-tests: Likewise.
23833         * modules/unictype/category-Pf-tests: Likewise.
23834         * modules/unictype/category-Pi-tests: Likewise.
23835         * modules/unictype/category-Po-tests: Likewise.
23836         * modules/unictype/category-Ps-tests: Likewise.
23837         * modules/unictype/category-S-tests: Likewise.
23838         * modules/unictype/category-Sc-tests: Likewise.
23839         * modules/unictype/category-Sk-tests: Likewise.
23840         * modules/unictype/category-Sm-tests: Likewise.
23841         * modules/unictype/category-So-tests: Likewise.
23842         * modules/unictype/category-Z-tests: Likewise.
23843         * modules/unictype/category-Zl-tests: Likewise.
23844         * modules/unictype/category-Zp-tests: Likewise.
23845         * modules/unictype/category-Zs-tests: Likewise.
23846         * modules/unictype/category-and-not-tests: Likewise.
23847         * modules/unictype/category-and-tests: Likewise.
23848         * modules/unictype/category-byname-tests: Likewise.
23849         * modules/unictype/category-name-tests: Likewise.
23850         * modules/unictype/category-none-tests: Likewise.
23851         * modules/unictype/category-of-tests: Likewise.
23852         * modules/unictype/category-or-tests: Likewise.
23853         * modules/unictype/category-test-withtable-tests: Likewise.
23854         * modules/unictype/combining-class-tests: Likewise.
23855         * modules/unictype/ctype-alnum-tests: Likewise.
23856         * modules/unictype/ctype-alpha-tests: Likewise.
23857         * modules/unictype/ctype-blank-tests: Likewise.
23858         * modules/unictype/ctype-cntrl-tests: Likewise.
23859         * modules/unictype/ctype-digit-tests: Likewise.
23860         * modules/unictype/ctype-graph-tests: Likewise.
23861         * modules/unictype/ctype-lower-tests: Likewise.
23862         * modules/unictype/ctype-print-tests: Likewise.
23863         * modules/unictype/ctype-punct-tests: Likewise.
23864         * modules/unictype/ctype-space-tests: Likewise.
23865         * modules/unictype/ctype-upper-tests: Likewise.
23866         * modules/unictype/ctype-xdigit-tests: Likewise.
23867         * modules/unictype/decimal-digit-tests: Likewise.
23868         * modules/unictype/digit-tests: Likewise.
23869         * modules/unictype/mirror-tests: Likewise.
23870         * modules/unictype/numeric-tests: Likewise.
23871         * modules/unictype/property-alphabetic-tests: Likewise.
23872         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23873         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23874         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23875         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23876         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23877         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23878         * modules/unictype/property-bidi-control-tests: Likewise.
23879         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23880         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23881         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23882         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23883         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23884         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23885         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23886         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23887         * modules/unictype/property-bidi-pdf-tests: Likewise.
23888         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23889         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23890         * modules/unictype/property-byname-tests: Likewise.
23891         * modules/unictype/property-combining-tests: Likewise.
23892         * modules/unictype/property-composite-tests: Likewise.
23893         * modules/unictype/property-currency-symbol-tests: Likewise.
23894         * modules/unictype/property-dash-tests: Likewise.
23895         * modules/unictype/property-decimal-digit-tests: Likewise.
23896         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23897         * modules/unictype/property-deprecated-tests: Likewise.
23898         * modules/unictype/property-diacritic-tests: Likewise.
23899         * modules/unictype/property-extender-tests: Likewise.
23900         * modules/unictype/property-format-control-tests: Likewise.
23901         * modules/unictype/property-grapheme-base-tests: Likewise.
23902         * modules/unictype/property-grapheme-extend-tests: Likewise.
23903         * modules/unictype/property-grapheme-link-tests: Likewise.
23904         * modules/unictype/property-hex-digit-tests: Likewise.
23905         * modules/unictype/property-hyphen-tests: Likewise.
23906         * modules/unictype/property-id-continue-tests: Likewise.
23907         * modules/unictype/property-id-start-tests: Likewise.
23908         * modules/unictype/property-ideographic-tests: Likewise.
23909         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23910         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23911         * modules/unictype/property-ignorable-control-tests: Likewise.
23912         * modules/unictype/property-iso-control-tests: Likewise.
23913         * modules/unictype/property-join-control-tests: Likewise.
23914         * modules/unictype/property-left-of-pair-tests: Likewise.
23915         * modules/unictype/property-line-separator-tests: Likewise.
23916         * modules/unictype/property-logical-order-exception-tests: Likewise.
23917         * modules/unictype/property-lowercase-tests: Likewise.
23918         * modules/unictype/property-math-tests: Likewise.
23919         * modules/unictype/property-non-break-tests: Likewise.
23920         * modules/unictype/property-not-a-character-tests: Likewise.
23921         * modules/unictype/property-numeric-tests: Likewise.
23922         * modules/unictype/property-other-alphabetic-tests: Likewise.
23923         * modules/unictype/property-other-default-ignorable-code-point-tests:
23924         Likewise.
23925         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23926         * modules/unictype/property-other-id-continue-tests: Likewise.
23927         * modules/unictype/property-other-id-start-tests: Likewise.
23928         * modules/unictype/property-other-lowercase-tests: Likewise.
23929         * modules/unictype/property-other-math-tests: Likewise.
23930         * modules/unictype/property-other-uppercase-tests: Likewise.
23931         * modules/unictype/property-paired-punctuation-tests: Likewise.
23932         * modules/unictype/property-paragraph-separator-tests: Likewise.
23933         * modules/unictype/property-pattern-syntax-tests: Likewise.
23934         * modules/unictype/property-pattern-white-space-tests: Likewise.
23935         * modules/unictype/property-private-use-tests: Likewise.
23936         * modules/unictype/property-punctuation-tests: Likewise.
23937         * modules/unictype/property-quotation-mark-tests: Likewise.
23938         * modules/unictype/property-radical-tests: Likewise.
23939         * modules/unictype/property-sentence-terminal-tests: Likewise.
23940         * modules/unictype/property-soft-dotted-tests: Likewise.
23941         * modules/unictype/property-space-tests: Likewise.
23942         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23943         * modules/unictype/property-test-tests: Likewise.
23944         * modules/unictype/property-titlecase-tests: Likewise.
23945         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23946         * modules/unictype/property-unified-ideograph-tests: Likewise.
23947         * modules/unictype/property-uppercase-tests: Likewise.
23948         * modules/unictype/property-variation-selector-tests: Likewise.
23949         * modules/unictype/property-white-space-tests: Likewise.
23950         * modules/unictype/property-xid-continue-tests: Likewise.
23951         * modules/unictype/property-xid-start-tests: Likewise.
23952         * modules/unictype/property-zero-width-tests: Likewise.
23953         * modules/unictype/scripts-tests: Likewise.
23954         * modules/unictype/syntax-c-ident-tests: Likewise.
23955         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23956         * modules/unictype/syntax-java-ident-tests: Likewise.
23957         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23958         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23959         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23960         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23961         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23962         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23963         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23964         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23965         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23966         * modules/uniname/uniname-tests: Likewise.
23967         * modules/uninorm/canonical-decomposition-tests: Likewise.
23968         * modules/uninorm/compat-decomposition-tests: Likewise.
23969         * modules/uninorm/composition-tests: Likewise.
23970         * modules/uninorm/decomposing-form-tests: Likewise.
23971         * modules/uninorm/decomposition-tests: Likewise.
23972         * modules/uninorm/filter-tests: Likewise.
23973         * modules/uninorm/nfc-tests: Likewise.
23974         * modules/uninorm/nfd-tests: Likewise.
23975         * modules/uninorm/nfkc-tests: Likewise.
23976         * modules/uninorm/nfkd-tests: Likewise.
23977         * modules/uninorm/u8-normcmp-tests: Likewise.
23978         * modules/uninorm/u8-normcoll-tests: Likewise.
23979         * modules/uninorm/u16-normcmp-tests: Likewise.
23980         * modules/uninorm/u16-normcoll-tests: Likewise.
23981         * modules/uninorm/u32-normcmp-tests: Likewise.
23982         * modules/uninorm/u32-normcoll-tests: Likewise.
23983         * modules/unistdio/u8-asnprintf-tests: Likewise.
23984         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23985         * modules/unistdio/u8-vasprintf-tests: Likewise.
23986         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23987         * modules/unistdio/u8-vsprintf-tests: Likewise.
23988         * modules/unistdio/u16-asnprintf-tests: Likewise.
23989         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23990         * modules/unistdio/u16-vasprintf-tests: Likewise.
23991         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23992         * modules/unistdio/u16-vsprintf-tests: Likewise.
23993         * modules/unistdio/u32-asnprintf-tests: Likewise.
23994         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23995         * modules/unistdio/u32-vasprintf-tests: Likewise.
23996         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23997         * modules/unistdio/u32-vsprintf-tests: Likewise.
23998         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23999         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24000         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24001         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24002         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24003         * modules/unistr/u8-check-tests: Likewise.
24004         * modules/unistr/u8-chr-tests: Likewise.
24005         * modules/unistr/u8-cmp-tests: Likewise.
24006         * modules/unistr/u8-cmp2-tests: Likewise.
24007         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24008         * modules/unistr/u8-cpy-tests: Likewise.
24009         * modules/unistr/u8-mblen-tests: Likewise.
24010         * modules/unistr/u8-mbsnlen-tests: Likewise.
24011         * modules/unistr/u8-mbtouc-tests: Likewise.
24012         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24013         * modules/unistr/u8-mbtoucr-tests: Likewise.
24014         * modules/unistr/u8-move-tests: Likewise.
24015         * modules/unistr/u8-next-tests: Likewise.
24016         * modules/unistr/u8-prev-tests: Likewise.
24017         * modules/unistr/u8-set-tests: Likewise.
24018         * modules/unistr/u8-stpcpy-tests: Likewise.
24019         * modules/unistr/u8-stpncpy-tests: Likewise.
24020         * modules/unistr/u8-strcat-tests: Likewise.
24021         * modules/unistr/u8-strcmp-tests: Likewise.
24022         * modules/unistr/u8-strcoll-tests: Likewise.
24023         * modules/unistr/u8-strcpy-tests: Likewise.
24024         * modules/unistr/u8-strdup-tests: Likewise.
24025         * modules/unistr/u8-strlen-tests: Likewise.
24026         * modules/unistr/u8-strmblen-tests: Likewise.
24027         * modules/unistr/u8-strmbtouc-tests: Likewise.
24028         * modules/unistr/u8-strncat-tests: Likewise.
24029         * modules/unistr/u8-strncmp-tests: Likewise.
24030         * modules/unistr/u8-strncpy-tests: Likewise.
24031         * modules/unistr/u8-strnlen-tests: Likewise.
24032         * modules/unistr/u8-to-u16-tests: Likewise.
24033         * modules/unistr/u8-to-u32-tests: Likewise.
24034         * modules/unistr/u8-uctomb-tests: Likewise.
24035         * modules/unistr/u16-check-tests: Likewise.
24036         * modules/unistr/u16-chr-tests: Likewise.
24037         * modules/unistr/u16-cmp-tests: Likewise.
24038         * modules/unistr/u16-cmp2-tests: Likewise.
24039         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24040         * modules/unistr/u16-cpy-tests: Likewise.
24041         * modules/unistr/u16-mblen-tests: Likewise.
24042         * modules/unistr/u16-mbsnlen-tests: Likewise.
24043         * modules/unistr/u16-mbtouc-tests: Likewise.
24044         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24045         * modules/unistr/u16-mbtoucr-tests: Likewise.
24046         * modules/unistr/u16-move-tests: Likewise.
24047         * modules/unistr/u16-next-tests: Likewise.
24048         * modules/unistr/u16-prev-tests: Likewise.
24049         * modules/unistr/u16-set-tests: Likewise.
24050         * modules/unistr/u16-stpcpy-tests: Likewise.
24051         * modules/unistr/u16-stpncpy-tests: Likewise.
24052         * modules/unistr/u16-strcat-tests: Likewise.
24053         * modules/unistr/u16-strcmp-tests: Likewise.
24054         * modules/unistr/u16-strcoll-tests: Likewise.
24055         * modules/unistr/u16-strcpy-tests: Likewise.
24056         * modules/unistr/u16-strdup-tests: Likewise.
24057         * modules/unistr/u16-strlen-tests: Likewise.
24058         * modules/unistr/u16-strmblen-tests: Likewise.
24059         * modules/unistr/u16-strmbtouc-tests: Likewise.
24060         * modules/unistr/u16-strncat-tests: Likewise.
24061         * modules/unistr/u16-strncmp-tests: Likewise.
24062         * modules/unistr/u16-strncpy-tests: Likewise.
24063         * modules/unistr/u16-strnlen-tests: Likewise.
24064         * modules/unistr/u16-to-u32-tests: Likewise.
24065         * modules/unistr/u16-to-u8-tests: Likewise.
24066         * modules/unistr/u16-uctomb-tests: Likewise.
24067         * modules/unistr/u32-check-tests: Likewise.
24068         * modules/unistr/u32-chr-tests: Likewise.
24069         * modules/unistr/u32-cmp-tests: Likewise.
24070         * modules/unistr/u32-cmp2-tests: Likewise.
24071         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24072         * modules/unistr/u32-cpy-tests: Likewise.
24073         * modules/unistr/u32-mblen-tests: Likewise.
24074         * modules/unistr/u32-mbsnlen-tests: Likewise.
24075         * modules/unistr/u32-mbtouc-tests: Likewise.
24076         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24077         * modules/unistr/u32-mbtoucr-tests: Likewise.
24078         * modules/unistr/u32-move-tests: Likewise.
24079         * modules/unistr/u32-next-tests: Likewise.
24080         * modules/unistr/u32-prev-tests: Likewise.
24081         * modules/unistr/u32-set-tests: Likewise.
24082         * modules/unistr/u32-stpcpy-tests: Likewise.
24083         * modules/unistr/u32-stpncpy-tests: Likewise.
24084         * modules/unistr/u32-strcat-tests: Likewise.
24085         * modules/unistr/u32-strcmp-tests: Likewise.
24086         * modules/unistr/u32-strcoll-tests: Likewise.
24087         * modules/unistr/u32-strcpy-tests: Likewise.
24088         * modules/unistr/u32-strdup-tests: Likewise.
24089         * modules/unistr/u32-strlen-tests: Likewise.
24090         * modules/unistr/u32-strmblen-tests: Likewise.
24091         * modules/unistr/u32-strmbtouc-tests: Likewise.
24092         * modules/unistr/u32-strncat-tests: Likewise.
24093         * modules/unistr/u32-strncmp-tests: Likewise.
24094         * modules/unistr/u32-strncpy-tests: Likewise.
24095         * modules/unistr/u32-strnlen-tests: Likewise.
24096         * modules/unistr/u32-to-u16-tests: Likewise.
24097         * modules/unistr/u32-to-u8-tests: Likewise.
24098         * modules/unistr/u32-uctomb-tests: Likewise.
24099         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24100         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24101         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24102         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24103         * modules/uniwidth/u8-strwidth-tests: Likewise.
24104         * modules/uniwidth/u8-width-tests: Likewise.
24105         * modules/uniwidth/u16-strwidth-tests: Likewise.
24106         * modules/uniwidth/u16-width-tests: Likewise.
24107         * modules/uniwidth/u32-strwidth-tests: Likewise.
24108         * modules/uniwidth/u32-width-tests: Likewise.
24109         * modules/uniwidth/width-tests: Likewise.
24110
24111 2010-05-18  Richard Jones  <rjones@redhat.com>
24112
24113         doc: users.txt: list hivex
24114         * users.txt: Add hivex.
24115
24116 2010-05-18  Richard Jones  <rjones@redhat.com>
24117
24118         doc: users.txt: list febootstrap
24119         * users.txt: Add febootstrap.
24120
24121 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24122
24123         bootstrap: fix an error when gnulib is not used as a git submodule
24124         * build-aux/bootstrap (gnulib_path): If its length is zero then
24125         assign "gnulib" to it.
24126         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24127
24128 2010-05-16  Bruno Haible  <bruno@clisp.org>
24129
24130         Avoid autoconf warnings about AM_ICONV.
24131         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24132         2.64.
24133
24134 2010-05-16  Bruno Haible  <bruno@clisp.org>
24135
24136         absolute-header: Make the macro usable in more situations.
24137         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24138         from gl_ABSOLUTE_HEADER.
24139         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24140
24141 2010-05-16  James Youngman  <jay@gnu.org>
24142
24143         doc: update users.txt
24144         * users.txt: Add CSSC.
24145
24146 2010-05-16  Jim Meyering  <meyering@redhat.com>
24147
24148         init.sh: fix an error in the previous change; add more comments
24149         * tests/init.sh: Compare exit code in loop against 9, not 2.
24150         Patch by Bruno Haible.
24151         Make the two tests more similar by adding an empty "then" clause.
24152         Add comments.
24153
24154         init.sh: avoid unnecessary shell re-exec
24155         * tests/init.sh: Improve the re-exec-required check to first test the
24156         current shell.  If it passes the test, do not search for a shell that
24157         does pass, and do not re-exec.  This test is particularly contorted to
24158         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24159         of $(...) evokes a syntax error and causes immediate shell exit with
24160         status 2.  Bruno Haible reported that the re-exec made it impossible
24161         to single-step through any init.sh-using script.
24162
24163 2010-05-16  Bruno Haible  <bruno@clisp.org>
24164
24165         Fix collision between gnulib's and libintl's printf replacements.
24166         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24167         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24168         (printf): When using GNU C, map the __printf__ function to rpl_printf
24169         via __asm__. When not using GNU C, define rpl_printf instead of
24170         __printf__.
24171         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24172         commit.
24173         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24174         commit.
24175         * m4/asm-underscore.m4: New file.
24176         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24177         * modules/stdio (Files): Add m4/asm-underscore.m4.
24178         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24179         Reported by Ben Pfaff.
24180
24181 2010-05-16  Bruno Haible  <bruno@clisp.org>
24182
24183         verify: Avoid skipping the test on openSUSE 11.0.
24184         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24185
24186 2010-05-13  Bruno Haible  <bruno@clisp.org>
24187
24188         Avoid useless warnings from G++.
24189         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24190         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24191         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24192
24193 2010-05-11  Jim Meyering  <meyering@redhat.com>
24194
24195         maint.mk: tweak preceding change
24196         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24197         regexps tighter by anchoring at EOL, and make the new group "shy"
24198         for slightly decreased overhead.
24199
24200 2010-05-11  Eric Blake  <eblake@redhat.com>
24201
24202         maint.mk: gnulib doesn't guarantee NSIG
24203         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24204
24205 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24206
24207         test-pwrite.c: Remove unused variable declaration.
24208         * tests/test-pwrite.c (main): Remove read_buf declaration.
24209
24210         Remove useless test-pwrite.sh file.
24211         * tests/test-pwrite.sh: Delete file.
24212         * modules/pwrite-tests: Remove references.
24213         Reported by Bruno Haible.
24214
24215 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24216
24217         init.sh: fix a typo
24218         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24219
24220 2010-05-10  Jim Meyering  <meyering@redhat.com>
24221
24222         maint.mk: avoid using a temporary file in the always-defined-macros check
24223         * top/maint.mk (.re-defmac): Remove rule.
24224         (gl_trap_): Remove definition.
24225         (sc_prohibit_always-defined_macros): Rewrite not to create and
24226         depend on a temporary file.  Instead, depend on GNU grep's ability
24227         to read a list of regular expressions from stdin when given "-f -".
24228
24229 2010-05-09  Bruno Haible  <bruno@clisp.org>
24230
24231         Update to GNU gettext 0.18, part 1.
24232         * m4/gettext.m4: Update to GNU gettext 0.18.
24233         * m4/intl.m4: Likewise.
24234         * m4/po.m4: Likewise.
24235         * modules/gettext (Files): Add m4/fcntl-o.m4.
24236         (configure.ac): Require gettext infrastructure from version 0.18.
24237
24238 2010-05-09  Jim Meyering  <meyering@redhat.com>
24239
24240         init.sh: enable MALLOC_PERTURB_
24241         * tests/init.sh: Enable glibc's malloc-perturbing option.
24242
24243         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24244         With my recent change in init.sh from the two-line form:
24245             -#   : ${srcdir=.}
24246             -#   . "$srcdir/init.sh"; path_prepend_ .
24247             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24248         I noticed that using the one-line form would cause this test
24249         to fail with a false-positive, or to stop working altogether,
24250         depending on whether help-version changed or all the tests did.
24251         * top/maint.mk (_hv_regex): Remove this definition.
24252         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24253         (_hv_regex_strong): Use a stronger regex to check for conformance.
24254         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24255         Give a separate diagnostic for lack of conforming use.
24256
24257         maint.mk: prohibit definition of symbols defined by gnulib
24258         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24259         definition of symbols defined by gnulib.
24260
24261 2010-05-09  Bruno Haible  <bruno@clisp.org>
24262
24263         acl: Avoid test failure on Cygwin-hosted mingw.
24264         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24265
24266 2010-05-09  Bruno Haible  <bruno@clisp.org>
24267
24268         error: Use system's fcntl function.
24269         * lib/error.c (fcntl): Undefine.
24270
24271 2010-05-09  Jim Meyering  <meyering@redhat.com>
24272
24273         verify: adjust formatting to be more consistent
24274         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24275         argument-list '('s, and after one comma.
24276
24277 2010-05-09  Bruno Haible  <bruno@clisp.org>
24278
24279         error: More reliable output on mingw.
24280         * lib/error.c: Include <windows.h>.
24281         (is_open): New function.
24282         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24283         defined.
24284
24285 2010-05-09  Bruno Haible  <bruno@clisp.org>
24286
24287         vasnprintf: Fix syntax errors in libintl build on mingw.
24288         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24289         pad_ourselves and prec_ourselves after use.
24290
24291 2010-05-08  Bruno Haible  <bruno@clisp.org>
24292
24293         * lib/config.charset: Update comments for Cygwin 1.7.
24294         * lib/localcharset.c: Likewise.
24295
24296 2010-05-07  Jim Meyering  <meyering@redhat.com>
24297
24298         init.sh: improve comments
24299         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24300         . "${srcdir=.}/init.sh"; path_prepend_ .
24301         Add a note about path_prepend_ and the alternative of using
24302         TESTS_ENVIRONMENT.
24303
24304 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24305
24306         exclude: Unescape hashed patterns in wildcard mode.
24307         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24308         to the hash list.
24309         * tests/test-exclude8.sh: New test case.
24310         * modules/exclude-tests: Add new test.
24311
24312 2010-05-05  Eric Blake  <eblake@redhat.com>
24313
24314         verify: automate tests
24315         * modules/verify-tests: New module.
24316         * tests/test-verify.sh: New file.
24317         * tests/test-verify.c: Guard each negative test with a unique id.
24318         Also avoid warning about unused left hand of comma expressions.
24319
24320 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24321
24322         Further improvements to verify.h, suggested by Eric Blake.
24323         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24324         the GL_* versions, to avoid collision with OpenGL.
24325         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24326         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24327         than testing merely whether it's defined.
24328
24329         Modify verify.h to pacify gcc -Wredundant_decls.
24330         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24331         These use the prefix "GL_" since they're likely to be useful elsewhere.
24332         We may need to break them out into a different .h file.
24333         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24334         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24335         of verify_function__.
24336
24337 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24338
24339         Tests for module pwrite.
24340         * modules/pwrite-tests: New file.
24341         * tests/test-pwrite.sh: New file.
24342         * tests/test-pwrite.c: New file.
24343
24344         New module pwrite.
24345         * lib/unistd.in.h (pwrite): New declaration.
24346         * lib/pwrite.c: New file, from glibc with modifications.
24347         * m4/pwrite.m4: New file.
24348         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24349         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24350         REPLACE_PWRITE.
24351         * modules/pwrite: New file.
24352         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24353         REPLACE_PWRITE.
24354         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24355         * doc/posix-functions/pwrite.texi: Mention the new module.
24356
24357 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24358
24359         pread: Update documentation.
24360         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24361
24362 2010-05-04  Eric Blake  <eblake@redhat.com>
24363
24364         docs: update cygwin progress
24365         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24366         this bug.
24367         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24368         Added in cygwin 1.7.2.
24369         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24370         Likewise.
24371         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24372         Likewise.
24373         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24374         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24375         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24376         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24377         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24378         Mention nproc module.
24379         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24380         bug in cygwin 1.7.5 addition.
24381         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24382         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24383         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24384         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24385         1.7.5.
24386         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24387         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24388         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24389         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24390         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24391         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24392         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24393         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24394         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24395         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24396         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24397         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24398         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24399         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24400         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24401         Likewise.
24402         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24403         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24404         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24405         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24406         Likewise.
24407         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24408         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24409         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24410         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24411         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24412         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24413         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24414         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24415         Likewise.
24416         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24417         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24418         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24419         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24420         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24421         Likewise.
24422         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24423         Likewise.
24424         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24425         Likewise.
24426         * doc/glibc-functions/xdrrec_endofrecord.texi
24427         (xdrrec_endofrecord): Likewise.
24428         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24429         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24430         Likewise.
24431         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24432         Likewise.
24433
24434 2010-05-04  Jim Meyering  <meyering@redhat.com>
24435
24436         gendocs.sh: make its "-s FILE" option more useful
24437         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24438         $PACKAGE to reflect the probably-different basename of "FILE".
24439
24440 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24441
24442         bootstrap: don't ignore download_po_files failure
24443         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24444         failure.
24445
24446 2010-05-03  Jim Meyering  <meyering@redhat.com>
24447
24448         maint.mk: allow to pass options to gendocs.sh
24449         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24450         (gendocs_options_): New overridable variable.
24451
24452         gnu-web-doc-update: don't ignore configure or build failure
24453         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24454
24455         announce-gen: backslash-escape '@'s in --help output
24456         * build-aux/announce-gen: Fix syntax errors.
24457
24458         maint.mk, announce-gen: allow project-specific announcement mail headers
24459         * top/maint.mk (translation_project_): Define default.
24460         (announcement_Cc_, announcement_mail_headers_): Likewise.
24461         (announcement): Invoke announce-gen with new --mail-headers option.
24462         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24463
24464         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24465         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24466         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24467         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24468         line in the "err2" output file when running "make check" in verbose
24469         mode (i.e., with set -x enabled).
24470
24471 2010-05-03  Bruno Haible  <bruno@clisp.org>
24472
24473         wctob: Fix for weird platforms.
24474         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24475         argument value.
24476
24477 2010-05-03  Jim Meyering  <meyering@redhat.com>
24478
24479         maint.mk: prohibit unwarranted use of <strings.h>
24480         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24481         strings.h in a file that does not also use strcasecmp, strncasecmp,
24482         ffs or ffsll.
24483
24484         maint.mk: remove obsolete comments
24485         * top/maint.mk: Remove stale, commented-out rules.
24486
24487 2010-05-02  Bruno Haible  <bruno@clisp.org>
24488
24489         wcwidth: Declare also when it's aliased.
24490         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24491         macro.
24492
24493 2010-05-02  Bruno Haible  <bruno@clisp.org>
24494
24495         Fix regression from 2010-04-25.
24496         * gnulib-tool (func_modules_transitive_closure): Check the status of
24497         all modules, not only of the tests that are of the form foo-tests where
24498         foo is a module.
24499
24500 2010-05-02  Bruno Haible  <bruno@clisp.org>
24501
24502         wctob: Work around nasty Cygwin 1.7.2 bug.
24503         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24504         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24505
24506 2010-05-01  Bruno Haible  <bruno@clisp.org>
24507
24508         fpurge: Sharper test.
24509         * tests/test-fpurge.c (main): Add one more ftell check.
24510         * modules/fpurge-tests (Depends-on): Add ftell.
24511         Suggested by Eric Blake.
24512
24513 2010-05-01  Bruno Haible  <bruno@clisp.org>
24514
24515         ftello: Another test.
24516         * tests/test-ftello3.c: New file.
24517         * modules/ftello-tests (Files): Add it.
24518         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24519         MOSTLYCLEANFILES.
24520
24521         ftell: Another test.
24522         * tests/test-ftell3.c: New file.
24523         * modules/ftell-tests (Files): Add it.
24524         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24525         MOSTLYCLEANFILES.
24526
24527 2010-05-01  Bruno Haible  <bruno@clisp.org>
24528
24529         ftell, ftello: Work around Solaris bug.
24530         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24531         * lib/ftello.c: Include stdio-impl.h.
24532         (ftello): On Solaris, when _IOWRT is set, compute the result without
24533         looking at _IOREAD.
24534         * modules/ftello (Files): Add lib/stdio-impl.h.
24535         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24536         * doc/posix-functions/ftello.texi: Likewise.
24537         Reported by Eric Blake.
24538
24539 2010-05-01  Bruno Haible  <bruno@clisp.org>
24540
24541         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24542         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24543         the _IOWRT flag is also set.
24544
24545 2010-05-01  Bruno Haible  <bruno@clisp.org>
24546
24547         Fix doc about a HP-UX stdio bug.
24548         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24549         * doc/posix-functions/ftello.texi: Likewise.
24550
24551 2010-05-01  Bruno Haible  <bruno@clisp.org>
24552
24553         lseek test: Fix failure on Solaris.
24554         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24555         output.
24556
24557 2010-04-30  Jim Meyering  <meyering@redhat.com>
24558
24559         bootstrap: don't ignore failure to generate po*/Makevars
24560         * build-aux/bootstrap (with_gettext): Don't ignore failure
24561         to create po/Makevars or runtime-po/Makevars.
24562
24563 2010-04-29  Eric Blake  <eblake@redhat.com>
24564
24565         headers: relax license to LGPLv2+
24566         * modules/fcntl-h (License): Relax license.
24567         * modules/getopt-posix (License): Likewise.
24568         * modules/locale (License): Likewise.
24569         * modules/math (License): Likewise.
24570         * modules/pty (License): Likewise.
24571         * modules/sched (License): Likewise.
24572         * modules/search (License): Likewise.
24573         * modules/spawn (License): Likewise.
24574         * modules/stdarg (License): Likewise.
24575         * modules/sysexits (License): Likewise.
24576
24577 2010-04-29  Jim Meyering  <meyering@redhat.com>
24578
24579         inttypes: relax license to LGPLv2+
24580         * modules/inttypes (License): Relax license.
24581
24582 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24583
24584         * top/maint.mk (indent): Run twice to produce idempotent results.
24585
24586 2010-04-28  Bruno Haible  <bruno@clisp.org>
24587
24588         getdate: Generate getdate.c in the source directory.
24589         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24590         MOSTLYCLEANFILES.
24591         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24592
24593 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24594
24595         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24596         is not declared as a const *; avoid warnings in that case.
24597
24598 2010-04-28  Eric Blake  <eblake@redhat.com>
24599
24600         canonicalize-lgpl: avoid compiler warning
24601         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24602         declaration' / 'extraneous semicolon' warning with some compilers.
24603         Reported by Andreas Gruenbacher.
24604
24605 2010-04-28  Jim Meyering  <meyering@redhat.com>
24606
24607         init.sh: ensure a more reliable exit status when exiting via trap
24608         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24609         Inspired by patches from Dmitry V. Levin.
24610         Also trap on signal 3 (SIGQUIT).
24611
24612 2010-04-27  Bruno Haible  <bruno@clisp.org>
24613
24614         Update doc about utimes().
24615         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24616         'utimens' module.
24617         Reported by Andreas Gruenbacher <agruen@suse.de>.
24618
24619 2010-04-27  Eric Blake  <eblake@redhat.com>
24620
24621         full-read, full-write: relax license
24622         * modules/full-read (License): Drop to LGPLv2+.
24623         * modules/full-write (License): Likewise.
24624         * modules/safe-read (License): Likewise.
24625         * modules/safe-write (License): Likewise.
24626
24627         pthread: mention library for linking
24628         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24629
24630 2010-04-27  Jim Meyering  <meyering@redhat.com>
24631
24632         maint.mk: fix a bug introduced in last change
24633         * top/maint.mk (gl_assured_headers_): Now that all names are on
24634         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24635         is not anchored to end of word, it should be adequate.
24636
24637         maint.mk: avoid side-effect in latest syntax-check
24638         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24639         to run commands via $(shell...), and hence to incur cost only when
24640         the new rule is actually run.
24641
24642         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24643         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24644         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24645         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24646         (gl_assured_headers_, az_, AZ_): Define.
24647         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24648
24649 2010-04-26  Jim Meyering  <jim@meyering.net>
24650             Bruno Haible  <bruno@clisp.org>
24651
24652         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24653         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24654         Prompted by an exchange with Gilles Espinasse.
24655
24656 2010-04-26  Jim Meyering  <meyering@redhat.com>
24657
24658         git-version-gen: aesthetic tweak
24659         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24660         so that the command remains on a single line.
24661
24662 2010-04-26  Eric Blake  <eblake@redhat.com>
24663
24664         git-version-gen: allow use on EBCDIC hosts
24665         * build-aux/git-version-gen (dirty): Use literal rather than tying
24666         ourselves to ascii.
24667         Reported by Steve Goetze.
24668
24669 2010-04-25  Bruno Haible  <bruno@clisp.org>
24670
24671         netdb: Add support for GNULIB_POSIXCHECK.
24672         * lib/netdb.in.h: Include warn-on-use.h.
24673         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24674         functions are used when GNULIB_POSIXCHECK is defined and the
24675         getaddrinfo module is not in use.
24676         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24677         freeaddrinfo, gai_strerror, getnameinfo are declared.
24678         * modules/netdb (Depends-on): Add warn-on-use.
24679         (Makefile.am): Include warn-on-use.h in netdb.h.
24680
24681 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24682
24683         build: avoid "make check" failure without .git/ directory
24684         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24685         there is no .git/ directory.
24686
24687 2010-04-25  Bruno Haible  <bruno@clisp.org>
24688
24689         ptsname: Fix misuse of ttyname_r.
24690         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24691         of errno.
24692
24693 2010-04-25  Bruno Haible  <bruno@clisp.org>
24694
24695         ttyname_r: Make it work on Solaris 10.
24696         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24697         if the system function has the POSIX declaration. Test whether the
24698         function fails if the buffer is less than 128 bytes large.
24699         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24700         system's ttyname_r function. Provide a reasonably large buffer.
24701         * modules/ttyname_r (Depends-on): Add extensions.
24702         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24703
24704 2010-04-25  Bruno Haible  <bruno@clisp.org>
24705
24706         Use the 'extensions' module for some more functions on Solaris.
24707         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24708         module.
24709         * doc/posix-functions/ctime_r.texi: Likewise.
24710         * doc/posix-functions/getgrgid_r.texi: Likewise.
24711         * doc/posix-functions/getgrnam_r.texi: Likewise.
24712         * doc/posix-functions/getpwnam_r.texi: Likewise.
24713         * doc/posix-functions/getpwuid_r.texi: Likewise.
24714         * doc/posix-functions/readdir_r.texi: Likewise.
24715         * doc/posix-functions/sigwait.texi: Likewise.
24716         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24717         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24718
24719 2010-04-25  Bruno Haible  <bruno@clisp.org>
24720
24721         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24722         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24723         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24724         * lib/ttyname_r.c: Include <limits.h>.
24725         (ttyname_r): Define using the system's ttyname_r function, if it exists
24726         and not on Solaris.
24727         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24728         set.
24729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24730         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24731         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24732         Reported by Simon Josefsson.
24733
24734 2010-04-25  Bruno Haible  <bruno@clisp.org>
24735
24736         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24737         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24738         * doc/posix-functions/ctime_r.texi: Likewise.
24739         * doc/posix-functions/getgrgid_r.texi: Likewise.
24740         * doc/posix-functions/getgrnam_r.texi: Likewise.
24741         * doc/posix-functions/getlogin_r.texi: Likewise.
24742         * doc/posix-functions/getpwnam_r.texi: Likewise.
24743         * doc/posix-functions/getpwuid_r.texi: Likewise.
24744         * doc/posix-functions/readdir_r.texi: Likewise.
24745         * doc/posix-functions/sigwait.texi: Likewise.
24746         * doc/posix-functions/ttyname_r.texi: Likewise.
24747         Reported by Simon Josefsson.
24748
24749 2010-04-25  Bruno Haible  <bruno@clisp.org>
24750
24751         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24752         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24753         also to --create-testdir.
24754         (func_acceptable): Don't consider the status of *-tests modules here.
24755         (func_modules_transitive_closure): Consider it here, before including a
24756         test module.
24757         (func_import, func_create_testdir): Set inc_all_direct_tests,
24758         inc_all_indirect_tests.
24759         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24760         --create-testdir and --create-megatestdir.
24761
24762 2010-04-25  Bruno Haible  <bruno@clisp.org>
24763
24764         gnulib-tool: Add --without-*-tests options.
24765         * gnulib-tool (func_usage): Document the --without-*-tests options.
24766         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24767         excl_unportable_tests): New variables.
24768         Fail if they are specified with --import or --update.
24769         (func_acceptable): Respect the excl_*_tests variables.
24770         (func_import): Set the excl_*_tests variables to empty.
24771
24772 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24773             Bruno Haible  <bruno@clisp.org>
24774
24775         Work around a MacOS X 10.4 bug with openpty.
24776         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24777         * tests/test-openpty.c (main): Close the master side explicitly.
24778
24779 2010-04-25  Bruno Haible  <bruno@clisp.org>
24780
24781         strnlen: Fix a C++ test error on MacOS X and Solaris.
24782         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24783         the function is not declared.
24784         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24785         Simon Josefsson.
24786
24787 2010-04-24  Bruno Haible  <bruno@clisp.org>
24788
24789         Avoid a gcc warning.
24790         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24791         of correct type for %08lx directive.
24792         Reported by Eric Blake.
24793
24794 2010-04-24  Bruno Haible  <bruno@clisp.org>
24795
24796         vasnprintf: Correct errno value in case of out-of-memory.
24797         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24798         or sprintf. Use the errno value from SNPRINTF or sprintf.
24799         Reported by Ian Beckwith <ianb@erislabs.net>.
24800
24801 2010-04-24  Bruno Haible  <bruno@clisp.org>
24802
24803         ansi-c++-opt: Find correct compiler when cross-compiling.
24804         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24805         AC_CHECK_PROGS.
24806         Reported by Simon Josefsson.
24807
24808 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24809
24810         vc-list-files: Add support for subversion
24811         * build-aux/vc-list-files: Use "svn list" to generate the list of
24812         files controlled by subversion.
24813
24814 2010-04-23  Jim Meyering  <meyering@redhat.com>
24815
24816         vc-list-files tests: convert to use init.sh
24817         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24818         path_prepend_.
24819         Use Exit, not exit.
24820         Use skip_ rather than open coding it.
24821         Remove trap set-up and compare definitions.
24822         * tests/test-vc-list-files-git.sh: Likewise.
24823         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24824
24825 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24826
24827         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24828         backup files.
24829
24830 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24831
24832         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24833
24834 2010-04-20  Eric Blake  <eblake@redhat.com>
24835
24836         tests: be robust to ignored SIGPIPE
24837         * tests/test-select-in.sh: Consume all output.
24838         * tests/test-lseek.sh: Check correct exit status, while avoiding
24839         EPIPE.
24840
24841 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24842             Bruno Haible  <bruno@clisp.org>
24843
24844         visibility: Don't use -fvisibility if it leads to a warning.
24845         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24846         yes, don't pretend that visibility works if it leads to a warning.
24847         Reported by Mike Gran <spk121@yahoo.com>.
24848
24849 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24850
24851         * build-aux/bootstrap: Use "git -h" for testing for supported options
24852         instead of "git --help".  The short-form option only shows a summary,
24853         and doesn't layout the full man page.  Grep for the full option name
24854         in the summary, too.
24855
24856 2010-04-19  Bruno Haible  <bruno@clisp.org>
24857
24858         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24859         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24860         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24861         mention of RELOCATABLE_STRIP.
24862         Reported by Sylvain Beucler <beuc@beuc.net>.
24863
24864 2010-04-19  Bruno Haible  <bruno@clisp.org>
24865
24866         * lib/diffseq.h: Fix typo in comment.
24867         Reported by Eric Blake.
24868
24869 2010-04-19  Bruno Haible  <bruno@clisp.org>
24870
24871         ioctl: Move autoconf macro to a .m4 file.
24872         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24873         * modules/ioctl (Files): Add it.
24874         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24875         Reported by Ian Beckwith <ianb@erislabs.net>.
24876
24877 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24878             Bruno Haible  <bruno@clisp.org>
24879
24880         diffseq: Accommodate use-case with abstract arrays.
24881         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24882         is not defined.
24883         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24884         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24885
24886 2010-04-18  Bruno Haible  <bruno@clisp.org>
24887
24888         * doc/posix-headers/stdbool.texi: More precise wording.
24889
24890 2010-04-17  Jim Meyering  <meyering@redhat.com>
24891
24892         maint.mk: use gnu-style indentation in an embedded perl script
24893         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24894         Rename variable: s/two/last_two_bytes/
24895
24896 2010-04-16  Eric Blake  <eblake@redhat.com>
24897
24898         test-stdbool: skip test that fails with Solaris CC
24899         * tests/test-stdbool.c (f): Skip test that causes compilation
24900         error under buggy C++ compiler.
24901         * lib/stdbool.in.h: Document the limitation.
24902         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24903
24904         setenv: allow compilation with C++
24905         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24906         register keyword.
24907
24908         stdint: allow test to pass with C++
24909         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24910
24911         getopt: allow compilation with C++
24912         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24913         struct.
24914         * lib/getopt.c (_getopt_internal_r): Use correct type.
24915         Reported by Dagobert Michelson, via Joel E. Denny.
24916
24917 2010-04-16  Bruno Haible  <bruno@clisp.org>
24918
24919         Override netdb.h always.
24920         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24921         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24922         Reported by Ludovic Courtès <ludo@gnu.org>.
24923
24924 2010-04-15  Bruno Haible  <bruno@clisp.org>
24925
24926         openpty: Fix mistake from 2010-03-21.
24927         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24928         Reported by Simon Josefsson.
24929
24930 2010-04-15  Eric Blake  <eblake@redhat.com>
24931
24932         test-forkpty: fix expected signature
24933         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24934         Reported by Simon Josefsson.
24935
24936 2010-04-15  Jim Meyering  <meyering@redhat.com>
24937
24938         maint.mk: texinfo_suffix_re_: correct the default regexp
24939         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24940
24941         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24942         make it configurable via texinfo_suffix_re_.
24943
24944 2010-04-14  Eric Blake  <eblake@redhat.com>
24945
24946         strtok_r: relax license to LGPLv2+
24947         * modules/strtok_r (License): Relax license.
24948         Reported by Matthias Bolte.
24949
24950 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24951
24952         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24953         version 1.4.4 by default instead of requiring the libgcrypt
24954         version used during build.  This makes it possible to use the
24955         application with older but still binary compatible libgcrypt
24956         versions.
24957
24958 2010-04-13  Eric Blake  <eblake@redhat.com>
24959
24960         getopt-gnu: match recent glibc fixes and posix ruling
24961         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24962         '+' handling, when requesting extensions.
24963         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24964         'W;' handling.
24965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24966         * doc/posix-functions/getopt.texi (getopt): Document this.
24967         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24968         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24969         Likewise.
24970
24971         getopt: merge bug fixes from glibc
24972         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24973         diagnostics.  Honor '+:' correctly.  Reject ';'.
24974
24975         getopt-posix: detect MacOS bug
24976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24977         optind when missing a required argument.
24978         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24979         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24980         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24981         Likewise.
24982
24983         getopt-posix: avoid spurious failure on Solaris
24984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24985         an indicator that setting optind=1 is sufficient for reset.
24986
24987         getopt-posix: avoid spurious failure on FreeBSD
24988         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24989         in POSIX mode, since the m4 test uses it.
24990
24991         gnulib-tool: silence warning on BSD sh
24992         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24993
24994 2010-04-13  Jim Meyering  <meyering@redhat.com>
24995
24996         doc: users.txt: GNU patch now uses gnulib
24997         * users.txt: Add patch.
24998
24999 2010-04-12  Jim Meyering  <meyering@redhat.com>
25000
25001         maint.mk: generate more concise timing data for syntax-check rules
25002         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25003         " done" from each line that reports a syntax-check test duration.
25004
25005 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25006
25007         git-version-gen: use "git update-index..." rather than "git status"
25008         * build-aux/git-version-gen: Use git update-index --refresh, not
25009         "git status".  With some versions of git, "git status" would fail
25010         to update the index and result in an unwarranted "-dirty" suffix.
25011
25012 2010-04-11  Jim Meyering  <meyering@redhat.com>
25013
25014         openat: correct formatting (no semantic change)
25015         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25016         Suggested by Bruno Haible.
25017
25018 2010-04-11  Bruno Haible  <bruno@clisp.org>
25019
25020         Stricter declaration checking in testdirs.
25021         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25022         If for_tests is true, augment AM_CPPFLAGS to define
25023         GNULIB_STRICT_CHECKING.
25024         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25025         GNULIB_STRICT_CHECKING is defined, verify that the function is
25026         declared.
25027
25028 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25029             Bruno Haible  <bruno@clisp.org>
25030
25031         libunistring: Improve configure output.
25032         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25033         Don't say "consider installing GNU libunistring" when checking again
25034         with libiconv.
25035
25036 2010-04-11  Bruno Haible  <bruno@clisp.org>
25037
25038         libunistring: Correct value of $LTLIBUNISTRING.
25039         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25040         correct the value of $LTLIBUNISTRING.
25041
25042 2010-04-11  Bruno Haible  <bruno@clisp.org>
25043
25044         havelib: Add static libraries to LIBS in the right order.
25045         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25046         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25047
25048 2010-04-11  Bruno Haible  <bruno@clisp.org>
25049
25050         libunistring: Detect libunistring also when it depends on libiconv.
25051         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25052         the second AC_LIB_HAVE_LINKFLAGS invocation.
25053
25054 2010-04-11  James Youngman  <jay@gnu.org>
25055
25056         close-stream: declare local scalars to be "const"
25057         * lib/close-stream.c (close_stream): Make boolean variables const
25058         to document the fact that we set but do not change them.
25059
25060 2010-04-11  Bruno Haible  <bruno@clisp.org>
25061
25062         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25063
25064 2010-04-11  Jim Meyering  <meyering@redhat.com>
25065
25066         maint.mk: don't include dist-check.mk
25067         * top/maint.mk: Remove bogus include directive.
25068
25069         maint.mk: improve empty-line-at-EOF check
25070         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25071         solution, rather than tail+Perl-based one.  The latter would read
25072         a few kilobytes from the end of each file, and did not handle empty
25073         files properly.
25074
25075         maint.mk: print the elapsed time for each syntax-check rule
25076         * top/maint.mk (sc_m_rules_): Save start time in a file.
25077         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25078         (local-check): Interpose the .z rules
25079
25080 2010-04-11  Jim Meyering  <meyering@redhat.com>
25081
25082         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25083         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25084         empty file with one that ends in an empty line.
25085
25086 2010-04-10  Bruno Haible  <bruno@clisp.org>
25087
25088         mkdir: Make it work on mingw64.
25089         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25090         * lib/mkdir.c: Update comment.
25091         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
25092
25093 2010-04-10  Bruno Haible  <bruno@clisp.org>
25094
25095         Don't override improved macro from newer autoconf.
25096         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25097         autoconf >= 2.62.
25098         Reported by Joel E. Denny <jdenny@clemson.edu>.
25099
25100 2010-04-10  Jim Meyering  <meyering@redhat.com>
25101
25102         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25103         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25104
25105         maint.mk: correct a diagnostic
25106         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25107         in diagnostic; now use $prohibit.
25108
25109 2010-04-10  Bruno Haible  <address@hidden>
25110
25111         fchownat: Fix a C++ test error on Solaris 8.
25112         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25113         the function does not exist.
25114
25115 2010-04-10  Bruno Haible  <bruno@clisp.org>
25116
25117         vasnprintf: Add more tests.
25118         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25119         (test_function): Test converting an invalid wide string.
25120
25121         vasnprintf: Correct handling of unconvertible wide string arguments.
25122         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25123         VASNPRINTF.
25124         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25125         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25126         smaller than the expected maximum need for the directive. Set errno to
25127         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25128         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25130         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25131         * modules/vasnprintf (Files): Add m4/printf.m4.
25132         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25133
25134 2010-04-10  Bruno Haible  <bruno@clisp.org>
25135
25136         vasnprintf: Fix crash in %ls directive.
25137         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25138         string is passed as argument to %ls, with no precision and no width.
25139         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25140
25141 2010-04-10  Bruno Haible  <bruno@clisp.org>
25142
25143         vasnprintf: Fix multiple test failures on mingw.
25144         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25145         _snprintf, or snwprintf, not _snwprintf.
25146
25147 2010-04-10  Bruno Haible  <bruno@clisp.org>
25148
25149         write: Fix a C++ test error on mingw.
25150         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25151
25152 2010-04-10  Bruno Haible  <bruno@clisp.org>
25153
25154         vasnprintf test: Reduce code duplication.
25155         * tests/test-vasnprintf.c (test_function): New function, extracted from
25156         test_vasnprintf.
25157         (test_vasnprintf, test_asnprintf): Invoke it.
25158
25159 2010-04-10  Bruno Haible  <bruno@clisp.org>
25160
25161         strnlen: Fix warning in C++ mode on MacOS X.
25162         * lib/string.in.h (strnlen): Use the modern idiom.
25163         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25164         defining strnlen as a macro already in <config.h>.
25165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25166         REPLACE_STRNLEN.
25167         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25168         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25169
25170 2010-04-08  James Youngman  <jay@gnu.org>
25171
25172         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25173         the example.
25174
25175 2010-04-09  Jim Meyering  <meyering@redhat.com>
25176
25177         maint.mk: print better diagnostic when there is no $(_hv_file)
25178         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25179         announce that when $(_hv_file) (aka help-version) does not exist.
25180
25181         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25182         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25183         not try to interpret its random input bytes.  Jarno Rajahalme reported
25184         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25185         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25186         (mktempd_): Likewise, just in case.
25187
25188         ftruncate: add two years to projected module removal date: 2012
25189         * m4/ftruncate.m4: Adjust comments.
25190
25191         ftruncate: mark module as obsolete; even MinGW provides it, now
25192         * modules/ftruncate (Status): Obsolete.
25193         (Notice): Say that.
25194         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25195         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25196
25197 2010-04-08  Bruno Haible  <bruno@clisp.org>
25198
25199         Fix side effects from tests-related modules.
25200         * modules/dprintf-posix (Comment): New section.
25201         * modules/fprintf-posix (Comment): Likewise.
25202         * modules/obstack-printf-posix (Comment): Likewise.
25203         * modules/printf-posix (Comment): Likewise.
25204         * modules/snprintf-posix (Comment): Likewise.
25205         * modules/sprintf-posix (Comment): Likewise.
25206         * modules/vasnprintf-posix (Comment): Likewise.
25207         * modules/vasprintf-posix (Comment): Likewise.
25208         * modules/vdprintf-posix (Comment): Likewise.
25209         * modules/vfprintf-posix (Comment): Likewise.
25210         * modules/vprintf-posix (Comment): Likewise.
25211         * modules/vsnprintf-posix (Comment): Likewise.
25212         * modules/vsprintf-posix (Comment): Likewise.
25213         * modules/xprintf-posix (Comment): Likewise.
25214         * modules/xvasprintf-posix (Comment): Likewise.
25215         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25216         * modules/floorf-tests (Depends-on): Likewise.
25217         * modules/round-tests (Depends-on): Likewise.
25218         * modules/roundf-tests (Depends-on): Likewise.
25219         * modules/trunc-tests (Depends-on): Likewise.
25220         * modules/truncf-tests (Depends-on): Likewise.
25221         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25222         'fprintf-posix' module is not present.
25223         * tests/test-floorf2.c (check): Likewise.
25224         * tests/test-trunc2.c (check): Likewise.
25225         * tests/test-truncf2.c (check): Likewise.
25226         * tests/test-round2.c (equal): Likewise.
25227         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25228
25229 2010-04-07  Karl Berry  <karl@gnu.org>
25230
25231         * config/srclist.txt,
25232         * config/srclistvars.sh,
25233         * config/srclist-update: doc fixes.
25234
25235 2010-04-07  Jim Meyering  <meyering@redhat.com>
25236
25237         maint.mk: add a PATH crosschecking syntax-check rule
25238         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25239         Useful if you use a test like the one in help-version (coreutils,
25240         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25241         printed by prog --version.
25242
25243 2010-04-06  Bruno Haible  <bruno@clisp.org>
25244
25245         Fix link error on mingw.
25246         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25247         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25248
25249 2010-04-06  Bruno Haible  <bruno@clisp.org>
25250
25251         Assume rmdir exists.
25252         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25253
25254 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25255
25256         doc: update users.txt
25257         * users.txt: Add gcal.
25258
25259 2010-04-06  Jim Meyering  <meyering@redhat.com>
25260
25261         init.sh: simply unset TMPDIR rather than risking env -i
25262         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25263         although it probably works fine on all Unix-based systems, some
25264         systems (Cygwin?) cannot tolerate a totally cleared environment.
25265         Suggestion from Eric Blake.
25266
25267 2010-04-06  Jim Meyering  <meyering@redhat.com>
25268
25269         init.sh: portability fix: use env's POSIX-specified -i option not -u
25270         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25271         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25272
25273 2010-04-05  Bruno Haible  <bruno@clisp.org>
25274
25275         btowc: Work around Cygwin 1.7.2 bug.
25276         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25277         does not map NUL to 0.
25278         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25279
25280 2010-04-05  Bruno Haible  <bruno@clisp.org>
25281
25282         Make the multithread modules work on Cygwin 1.7.2.
25283         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25284         imported symbols can be declared weak, so that it returns "no" on
25285         Cygwin 1.7.2.
25286
25287 2010-04-05  Bruno Haible  <bruno@clisp.org>
25288
25289         Use the module 'strncat'.
25290         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25291
25292         Tests for module 'strncat'.
25293         * modules/strncat-tests: New file.
25294         * tests/test-strncat.c: New file.
25295
25296         New module 'strncat'.
25297         * lib/string.in.h (strncat): New declaration.
25298         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25299         * m4/strncat.m4: New file, based on m4/memchr.m4.
25300         * modules/strncat: New file.
25301         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25302         is declared.
25303         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25304         REPLACE_STRNCAT.
25305         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25306         REPLACE_STRNCAT.
25307         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25308         module.
25309         * tests/test-string-c++.cc: Check signature of strncat.
25310
25311 2010-04-05  Jim Meyering  <meyering@redhat.com>
25312
25313         xstrtoumax-tests: convert to use init.sh
25314         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25315         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25316         Use Exit, not exit.
25317         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25318
25319         xstrtoimax-tests: convert to use init.sh
25320         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25321         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25322         Use Exit, not exit.
25323         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25324
25325 2010-04-05  Bruno Haible  <bruno@clisp.org>
25326
25327         sys_socket: Avoid #define replacements in C++ mode.
25328         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25329         warning to the function if possible, rather than #defining the symbol
25330         to a dysfunctional alias.
25331
25332 2010-04-05  Bruno Haible  <bruno@clisp.org>
25333
25334         fseeko: Fix C++ test error on mingw.
25335         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25336         gl_FUNC_FSEEKO.
25337         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25338         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25339         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25340         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25341
25342 2010-04-05  Bruno Haible  <bruno@clisp.org>
25343
25344         duplocale: Improve test output.
25345         * tests/test-duplocale.c (main): Print reason for skipped test.
25346
25347 2010-04-05  Bruno Haible  <bruno@clisp.org>
25348
25349         Assume rmdir exists.
25350         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25351         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25352
25353 2010-04-05  Bruno Haible  <bruno@clisp.org>
25354
25355         Fix link error on Solaris 8 with cc.
25356         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25357
25358 2010-04-05  Bruno Haible  <bruno@clisp.org>
25359
25360         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25361         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25362
25363 2010-04-05  Bruno Haible  <bruno@clisp.org>
25364
25365         vasprintf: Update documentation.
25366         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25367
25368 2010-04-05  Bruno Haible  <bruno@clisp.org>
25369
25370         ptsname: Improve test.
25371         * tests/test-ptsname.c (main): Also try the various master names of BSD
25372         systems.
25373
25374 2010-04-05  Bruno Haible  <bruno@clisp.org>
25375
25376         memchr: Avoid a possible C++ test error.
25377         * lib/string.in.h (memchr): Provide declaration if function is missing.
25378         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25379         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25381         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25382
25383 2010-04-05  Bruno Haible  <bruno@clisp.org>
25384
25385         strtok_r: Improve idiom.
25386         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25387         AC_LIBOBJ is used.
25388
25389 2010-04-05  Bruno Haible  <bruno@clisp.org>
25390
25391         strdup: Improve idiom.
25392         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25393         AC_LIBOBJ is used.
25394         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25395         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25396         when AC_LIBOBJ is used.
25397
25398 2010-04-05  Bruno Haible  <bruno@clisp.org>
25399
25400         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25401         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25402         don't set REPLACE_MBSINIT to 1.
25403         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25404         don't set REPLACE_MBRTOWC to 1.
25405         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25406         exist, don't set REPLACE_MBSRTOWCS to 1.
25407         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25408         exist, don't set REPLACE_MBSNRTOWCS to 1.
25409         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25410         don't set REPLACE_WCRTOMB to 1.
25411         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25412         exist, don't set REPLACE_WCSRTOMBS to 1.
25413         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25414         exist, don't set REPLACE_WCSNRTOMBS to 1.
25415
25416 2010-04-05  Bruno Haible  <bruno@clisp.org>
25417
25418         ldexpl: Improve idiom.
25419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25420         make sure to set HAVE_DECL_LDEXPL to 0.
25421
25422 2010-04-05  Jim Meyering  <meyering@redhat.com>
25423
25424         xstrtol-tests: convert to use init.sh
25425         * modules/xstrtol-tests (Files): Add tests/init.sh.
25426         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25427         Use Exit, not exit.
25428         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25429
25430         atexit-tests: convert to use init.sh
25431         * modules/atexit-tests (Files): Add tests/init.sh.
25432         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25433         Use Exit, not exit.
25434         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25435
25436         init.sh: fix typo
25437         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25438
25439         init.sh: make it easier for a test script to write to the tty, ...
25440         when using automake's parallel-tests mode.
25441         * tests/init.sh (stderr_fileno_): Define overridable variable.
25442         (warn_): New function, to use it.
25443         (fail_, skip_, framework_failure_): Use warn_.
25444
25445 2010-04-04  Bruno Haible  <bruno@clisp.org>
25446
25447         btowc: Avoid warning.
25448         * lib/btowc.c: Include <stdlib.h>.
25449         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25450
25451 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25452             Bruno Haible  <bruno@clisp.org>
25453
25454         wchar: Port to NetBSD 1.5.
25455         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25456         * lib/wctype.in.h (WEOF): Likewise.
25457
25458 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25459             Bruno Haible  <bruno@clisp.org>
25460
25461         Port extended stdio to NetBSD 1.5.
25462         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25463         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25464         older.
25465
25466 2010-04-04  Bruno Haible  <bruno@clisp.org>
25467
25468         string: Remove unused substitution.
25469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25470         HAVE_DECL_STRERROR.
25471         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25472
25473 2010-04-04  Bruno Haible  <bruno@clisp.org>
25474
25475         strtod: Avoid a possible C++ test error.
25476         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25477         set REPLACE_STRTOD.
25478
25479 2010-04-04  Bruno Haible  <bruno@clisp.org>
25480
25481         strerror: Update documentation.
25482         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25483
25484 2010-04-04  Bruno Haible  <bruno@clisp.org>
25485
25486         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25487         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25488         _GL_CXXALIAS_SYS_CAST.
25489
25490 2010-04-04  Bruno Haible  <bruno@clisp.org>
25491
25492         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25493         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25494         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25495         REPLACE_FREXPL to 1.
25496         * doc/posix-functions/frexpl.texi: Update documentation.
25497
25498 2010-04-04  Bruno Haible  <bruno@clisp.org>
25499
25500         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25501         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25502
25503 2010-04-04  Bruno Haible  <bruno@clisp.org>
25504
25505         Implement nanosleep for native Windows.
25506         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25507
25508 2010-04-04  Bruno Haible  <bruno@clisp.org>
25509
25510         math: Fix some C++ test errors on Solaris 8.
25511         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25512
25513 2010-04-04  Bruno Haible  <bruno@clisp.org>
25514
25515         math: Fix some C++ test errors on Cygwin.
25516         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25517         truncl): Provide declaration if the system does not have it.
25518         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25519         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25520         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25521         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25522         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25523         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25524         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25525         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25526         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25527         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25528         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25529         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25530         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25531         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25532         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25533         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25535         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25536         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25537         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25538         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25539         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25540
25541 2010-04-04  Bruno Haible  <bruno@clisp.org>
25542
25543         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25544         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25545         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25546         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25547         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25548         * m4/isinf.m4 (gl_ISINF): Likewise.
25549         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25550
25551 2010-04-04  Bruno Haible  <bruno@clisp.org>
25552
25553         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25554         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25555
25556 2010-04-04  Bruno Haible  <bruno@clisp.org>
25557
25558         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25559         * modules/tmpfile (configure.ac): Update.
25560
25561         tmpfile: Fix C++ test error on mingw.
25562         * lib/stdio.in.h (tmpfile): New declaration.
25563         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25564         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25565         * modules/tmpfile (Depends-on): Add stdio.
25566         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25567         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25568         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25569         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25570         REPLACE_TMPFILE.
25571         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25572
25573 2010-04-04  Bruno Haible  <bruno@clisp.org>
25574
25575         ioctl: Fix C++ test error on mingw.
25576         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25577         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25578         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25579
25580 2010-04-03  Bruno Haible  <bruno@clisp.org>
25581
25582         wcwidth: Fix C++ test error on mingw.
25583         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25585         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25586
25587 2010-04-03  Bruno Haible  <bruno@clisp.org>
25588
25589         nanosleep: Fix C++ test error on mingw.
25590         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25591         * lib/time.in.h (nanosleep): Use modern idiom.
25592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25593         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25594         REPLACE_NANOSLEEP to 1.
25595         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25596         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25597
25598 2010-04-03  Bruno Haible  <bruno@clisp.org>
25599
25600         strptime: Fix C++ test error on mingw.
25601         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25602         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25603         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25604         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25605         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25606         not REPLACE_STRPTIME.
25607         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25608         REPLACE_STRPTIME.
25609
25610 2010-04-03  Bruno Haible  <bruno@clisp.org>
25611
25612         timegm: Fix C++ test error on mingw.
25613         * lib/time.in.h (timegm): Use modern idiom.
25614         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25615         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25616         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25617         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25618
25619 2010-04-03  Bruno Haible  <bruno@clisp.org>
25620
25621         timegm: Assume declaration if function exists.
25622         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25623         if it exists. Don't clobber ac_cv_func_timegm.
25624
25625 2010-04-03  Bruno Haible  <bruno@clisp.org>
25626
25627         time_r: Fix C++ test error on mingw.
25628         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25629         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25630         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25631         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25632         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25633
25634 2010-04-03  Bruno Haible  <bruno@clisp.org>
25635
25636         time_r: Minor updates.
25637         * modules/time_r (Description): Mention the provided functions.
25638         * lib/time_r.c: Don't include <string.h>.
25639         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25640         * doc/posix-functions/localtime_r.texi: Likewise.
25641
25642 2010-04-03  Bruno Haible  <bruno@clisp.org>
25643
25644         time: Fix regression introduced on 2010-03-08.
25645         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25646         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25647
25648 2010-04-03  Jim Meyering  <meyering@redhat.com>
25649
25650         maint.mk: don't silently disable project-specific syntax-check rules
25651         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25652         that they need to convert their project-specific syntax-check rules
25653         to use the new _sc_search_regexp.
25654
25655 2010-04-03  Bruno Haible  <bruno@clisp.org>
25656
25657         fchdir: Fix regression introduced on 2010-03-08.
25658         * lib/unistd.in.h (fchdir): Fix declaration.
25659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25661         REPLACE_FCHDIR.
25662         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25663         REPLACE_FCHDIR.
25664
25665 2010-04-03  Bruno Haible  <bruno@clisp.org>
25666
25667         getpagesize: Fix C++ test error on mingw.
25668         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25669         system does not declare the function.
25670         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25671         declared.
25672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25673         HAVE_DECL_GETPAGESIZE.
25674         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25675
25676 2010-04-03  Bruno Haible  <bruno@clisp.org>
25677
25678         stdio: Make C++ tests work on mingw.
25679         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25680         does not declare the function.
25681
25682 2010-04-03  Bruno Haible  <bruno@clisp.org>
25683
25684         ftello: Fix C++ test error on mingw.
25685         * lib/stdio.in.h (ftello): Use modern idiom.
25686         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25687         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25688         is missing and that it needs to be replaced.
25689         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25691         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25692
25693 2010-04-03  Bruno Haible  <bruno@clisp.org>
25694
25695         fseeko: Fix C++ test error on mingw.
25696         * lib/stdio.in.h (fseeko): Use modern idiom.
25697         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25698         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25699         is missing and that it needs to be replaced.
25700         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25702         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25703
25704 2010-04-03  Bruno Haible  <bruno@clisp.org>
25705
25706         mkstemp: Fix C++ test error on mingw.
25707         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25708         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25709         function is missing and that it needs to be replaced.
25710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25711         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25712
25713 2010-04-03  Bruno Haible  <bruno@clisp.org>
25714
25715         stpncpy: Fix C++ test error on mingw.
25716         * lib/string.in.h (stpncpy): Use modern idiom.
25717         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25718         function is missing and that it needs to be replaced.
25719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25720         REPLACE_STPNCPY.
25721         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25722
25723 2010-04-03  Bruno Haible  <bruno@clisp.org>
25724
25725         sys_stat: Fix C++ test error on mingw.
25726         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25727         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25728
25729 2010-04-03  Bruno Haible  <bruno@clisp.org>
25730
25731         pty: Update doc.
25732         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25733
25734 2010-04-03  Bruno Haible  <bruno@clisp.org>
25735
25736         unistd: Fix C++ test error on mingw.
25737         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25738
25739 2010-04-03  Bruno Haible  <bruno@clisp.org>
25740
25741         Update doc regarding mingw.
25742         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25743         * doc/glibc-functions/login_tty.texi: Likewise.
25744         * doc/glibc-functions/forkpty.texi: Likewise.
25745
25746 2010-04-03  Bruno Haible  <bruno@clisp.org>
25747
25748         stdlib: Avoid compilation failure of c-strtold on mingw.
25749         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25750
25751 2010-04-03  Bruno Haible  <bruno@clisp.org>
25752
25753         locale: Make C++ tests work on Cygwin and mingw.
25754         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25755         cannot provide the function.
25756         Reported by Simon Josefsson.
25757
25758 2010-04-03  Bruno Haible  <bruno@clisp.org>
25759
25760         localename: Port to MacOS X 10.6.
25761         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25762         memory layout of the locales in MacOS X 10.6 as well.
25763         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25764
25765 2010-04-02  Bruno Haible  <bruno@clisp.org>
25766
25767         gnulib-tool: Ensure that long-running tests are executed last.
25768         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25769         running tests after the one for the other tests.
25770
25771 2010-04-02  Bruno Haible  <bruno@clisp.org>
25772
25773         gnulib-tool: Ensure the tests in the main directory are executed first.
25774         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25775         start with the current directory.
25776
25777 2010-04-02  Bruno Haible  <bruno@clisp.org>
25778
25779         Tests for module 'havelib', moved here from GNU gettext.
25780         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25781         modifications.
25782         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25783         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25784         with modifications.
25785         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25786         modifications.
25787         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25788         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25789         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25790         with modifications.
25791         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25792         with modifications.
25793         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25794         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25795         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25796         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25797         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25798         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25799         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25800         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25801         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25802         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25803         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25804         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25805         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25806         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25807         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25808         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25809         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25810         with modifications.
25811         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25812         with modifications.
25813         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25814         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25815         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25816         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25817         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25818         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25819         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25820         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25821         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25822         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25823         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25824         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25825         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25826         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25827         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25828         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25829         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25830         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25831         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25832         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25833         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25834         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25835         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25836         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25837         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25838         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25839         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25840         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25841         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25842         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25843         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25844         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25845         * tests/havelib/rpathx/rpathx.c: New file, from
25846         gettext/autoconf-lib-link.
25847         * tests/havelib/rpathx/Makefile.am: New file, from
25848         gettext/autoconf-lib-link.
25849         * tests/havelib/rpathx/configure.ac: New file, from
25850         gettext/autoconf-lib-link with modifications.
25851         * tests/havelib/rpathy/rpathy.c: New file, from
25852         gettext/autoconf-lib-link.
25853         * tests/havelib/rpathy/Makefile.am: New file, from
25854         gettext/autoconf-lib-link.
25855         * tests/havelib/rpathy/configure.ac: New file, from
25856         gettext/autoconf-lib-link with modifications.
25857         * tests/havelib/rpathz/rpathz.c: New file, from
25858         gettext/autoconf-lib-link.
25859         * tests/havelib/rpathz/Makefile.am: New file, from
25860         gettext/autoconf-lib-link.
25861         * tests/havelib/rpathz/configure.ac: New file, from
25862         gettext/autoconf-lib-link with modifications.
25863         * tests/havelib/rpathlx/usex.c: New file, from
25864         gettext/autoconf-lib-link.
25865         * tests/havelib/rpathlx/Makefile.am: New file, from
25866         gettext/autoconf-lib-link.
25867         * tests/havelib/rpathlx/configure.ac: New file, from
25868         gettext/autoconf-lib-link with modifications.
25869         * tests/havelib/rpathly/usey.c: New file, from
25870         gettext/autoconf-lib-link.
25871         * tests/havelib/rpathly/Makefile.am: New file, from
25872         gettext/autoconf-lib-link.
25873         * tests/havelib/rpathly/configure.ac: New file, from
25874         gettext/autoconf-lib-link with modifications.
25875         * tests/havelib/rpathlz/usez.c: New file, from
25876         gettext/autoconf-lib-link.
25877         * tests/havelib/rpathlz/Makefile.am: New file, from
25878         gettext/autoconf-lib-link.
25879         * tests/havelib/rpathlz/configure.ac: New file, from
25880         gettext/autoconf-lib-link with modifications.
25881         * tests/havelib/rpathlyx/usey.c: New file, from
25882         gettext/autoconf-lib-link.
25883         * tests/havelib/rpathlyx/Makefile.am: New file, from
25884         gettext/autoconf-lib-link.
25885         * tests/havelib/rpathlyx/configure.ac: New file, from
25886         gettext/autoconf-lib-link with modifications.
25887         * tests/havelib/rpathlzyx/usez.c: New file, from
25888         gettext/autoconf-lib-link.
25889         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25890         gettext/autoconf-lib-link.
25891         * tests/havelib/rpathlzyx/configure.ac: New file, from
25892         gettext/autoconf-lib-link with modifications.
25893         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25894         with modifications.
25895
25896 2010-04-02  Bruno Haible  <bruno@clisp.org>
25897
25898         gnulib-tool: Create distributed built sources also for the tests.
25899         * gnulib-tool (func_create_testdir): Also generate distributed built
25900         sources in the tests directory.
25901
25902 2010-04-02  Bruno Haible  <bruno@clisp.org>
25903
25904         gnulib-tool: Obey user's environment variables.
25905         * gnulib-tool (func_create_testdir): When creating built sources,
25906         respect the environment variables for autoconf, automake, etc. given by
25907         the user.
25908
25909 2010-04-02  Bruno Haible  <bruno@clisp.org>
25910
25911         gnulib-tool: Provide the value of --m4-base to modules.
25912         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25913         of gl_m4_base.
25914
25915 2010-04-02  Eric Blake  <eblake@redhat.com>
25916
25917         maint.mk: fix some fallout
25918         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25919         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25920
25921 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25922
25923         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25924         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25925         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25926         (sc_cast_of_x_alloc_return_value): Likewise.
25927         (sc_cast_of_alloca_return_value): Likewise.
25928         (sc_space_tab): Likewise.
25929         (sc_prohibit_atoi_atof): Likewise.
25930         (sc_prohibit_magic_number_exit): Likewise.
25931         (sc_error_exit_success): Likewise.
25932         (sc_file_system): Likewise.
25933         (sc_prohibit_have_config_h): Likewise.
25934         (sc_require_config_h): Likewise.
25935         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25936         (sc_obsolete_symbols): Likewise.
25937         (sc_changelog): Likewise.
25938         (sc_program_name): Likewise.
25939         (sc_the_the): Likewise.
25940         (sc_trailing_blank): Likewise.
25941         (sc_two_space_separator_in_usage): Likewise.
25942         (sc_useless_cpp_parens): Likewise.
25943         (sc_GPL_version): Likewise.
25944         (sc_GFDL_version): Likewise.
25945         (sc_texinfo_acronym): Likewise.
25946         (sc_prohibit_cvs_keyword): Likewise.
25947         (sc_prohibit_stat_st_blocks): Likewise.
25948         (sc_prohibit_S_IS_definition): Likewise.
25949         (sc_redundant_const): Likewise.
25950         (sc_makefile_TAB_only_indentation): Likewise.
25951         (sc_m4_quote_check): Likewise.
25952         (sc_makefile_path_separator_check): Likewise.
25953         (sc_copyright_check): Likewise.
25954         (sc_Wundef_boolean): Likewise.
25955         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25956
25957         maint.mk: match 0 or more whitespace-before-function-call '('
25958         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25959         that have zero or two-and-more spaces between the function name
25960         and the open parenthesis.
25961         (sc_error_message_warn_fatal): Likewise.
25962         (sc_error_message_uppercase): Likewise.
25963         (sc_error_message_period): Likewise.
25964
25965 2010-03-31  Eric Blake  <eblake@redhat.com>
25966
25967         maint.mk: check for [ as well as test
25968         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25969         Based on a libvirt report by Matthias Bolte.
25970
25971         gnumakefile: don't squelch _version output
25972         * top/GNUmakefile (_version): Create one-shot dependency rather
25973         than using $(shell) when version must be regenerated.
25974         (_autoreconf): Run verbosely, by default.
25975
25976         sys_time: avoid compiler warnings
25977         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25978         unconditional, fixing regression from 2010-03-29.
25979         Reported by Simon Josefsson.
25980
25981 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25982
25983         maint.mk: s/_header_without_use/_sc_header_without_use/
25984         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25985         (sc_prohibit_assert_without_use): Use the new name.
25986         (sc_prohibit_close_stream_without_use): Likewise.
25987         (sc_prohibit_getopt_without_use): Likewise.
25988         (sc_prohibit_quotearg_without_use): Likewise.
25989         (sc_prohibit_quote_without_use): Likewise.
25990         (sc_prohibit_long_options_without_use): Likewise.
25991         (sc_prohibit_inttostr_without_use): Likewise.
25992         (sc_prohibit_ignore_value_without_use): Likewise.
25993         (sc_prohibit_error_without_use): Likewise.
25994         (sc_prohibit_xalloc_without_use): Likewise.
25995         (sc_prohibit_hash_without_use): Likewise.
25996         (sc_prohibit_hash_pjw_without_use): Likewise.
25997         (sc_prohibit_safe_read_without_use): Likewise.
25998         (sc_prohibit_argmatch_without_use): Likewise.
25999         (sc_prohibit_canonicalize_without_use): Likewise.
26000         (sc_prohibit_root_dev_ino_without_use): Likewise.
26001         (sc_prohibit_openat_without_use): Likewise.
26002         (sc_prohibit_c_ctype_without_use): Likewise.
26003         (sc_prohibit_signal_without_use): Likewise.
26004         (sc_prohibit_intprops_without_use): Likewise.
26005
26006 2010-03-30  Eric Blake  <eblake@redhat.com>
26007
26008         maint: improve module indicators
26009         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26010         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26011         columns, and avoid extra macro expansion.
26012
26013         fdopendir: work around FreeBSD bug
26014         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26015         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26016         * modules/dirent (Makefile.am): Substitute it.
26017         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26018         declaration.
26019         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26020         fix.
26021         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26022
26023 2010-03-29  Bruno Haible  <bruno@clisp.org>
26024
26025         Emit #pragma system_header after the inclusion guard, not before.
26026         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26027         guard that spans the entire file, not before. This enables an
26028         optimization in GCC's preprocessor.
26029         * lib/ctype.in.h: Likewise.
26030         * lib/dirent.in.h: Likewise.
26031         * lib/errno.in.h: Likewise.
26032         * lib/float.in.h: Likewise.
26033         * lib/getopt.in.h: Likewise.
26034         * lib/iconv.in.h: Likewise.
26035         * lib/langinfo.in.h: Likewise.
26036         * lib/locale.in.h: Likewise.
26037         * lib/math.in.h: Likewise.
26038         * lib/netdb.in.h: Likewise.
26039         * lib/netinet_in.in.h: Likewise.
26040         * lib/pty.in.h: Likewise.
26041         * lib/sched.in.h: Likewise.
26042         * lib/se-selinux.in.h: Likewise.
26043         * lib/search.in.h: Likewise.
26044         * lib/spawn.in.h: Likewise.
26045         * lib/stdarg.in.h: Likewise.
26046         * lib/stdint.in.h: Likewise.
26047         * lib/string.in.h: Likewise.
26048         * lib/strings.in.h: Likewise.
26049         * lib/sys_file.in.h: Likewise.
26050         * lib/sys_ioctl.in.h: Likewise.
26051         * lib/sys_time.in.h: Likewise.
26052         * lib/sys_times.in.h: Likewise.
26053         * lib/sys_utsname.in.h: Likewise.
26054         * lib/sys_wait.in.h: Likewise.
26055         * lib/sysexits.in.h: Likewise.
26056         * lib/wctype.in.h: Likewise.
26057
26058 2010-03-28  James Youngman  <jay@gnu.org>
26059
26060         save-cwd: don't leak a file descriptor when the caller execs.
26061         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26062         saved file descriptor.
26063         * modules/save-cwd (Depends-on): Depend on cloexec.
26064
26065 2010-03-29  Bruno Haible  <bruno@clisp.org>
26066
26067         Remove vestiges of fts-lgpl module.
26068         * lib/fts_.h: Assume GNULIB_FTS is 1.
26069         * lib/fts.c: Likewise.
26070         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26071
26072 2010-03-28  Bruno Haible  <bruno@clisp.org>
26073
26074         Fix definition of tests witness macro.
26075         * gnulib-tool (func_import): Fix definition of witness macro.
26076
26077 2010-03-28  Bruno Haible  <bruno@clisp.org>
26078
26079         Fix ioctl's protoype on glibc systems.
26080         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26081         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26082         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26083         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26084         signature. If not, arrange to replace the ioctl function.
26085         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26086         REPLACE_IOCTL.
26087         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26088         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26089         Reported by Ludovic Courtès <ludo@gnu.org>.
26090
26091 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26092
26093         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26094         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26095         made it so grep -r --include=GLOB* ... did not work.
26096
26097 2010-03-26  Jim Meyering  <meyering@redhat.com>
26098             Eric Blake  <eblake@redhat.com>
26099
26100         maint.mk: prohibit use of test's -o and -a operators
26101         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26102
26103 2010-03-28  Bruno Haible  <bruno@clisp.org>
26104
26105         Remove unused GNULIB_XYZ macro definitions.
26106         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26107         invocation.
26108
26109 2010-03-28  Bruno Haible  <bruno@clisp.org>
26110
26111         Mark privileged tests modules.
26112         * modules/idpriv-drop-tests (Status): New section.
26113         * modules/idpriv-droptemp-tests (Status): New section.
26114
26115 2010-03-28  Bruno Haible  <bruno@clisp.org>
26116
26117         Split C++ tests into separate tests modules.
26118         * modules/dirent-c++-tests: New file, extracted from
26119         modules/dirent-tests.
26120         * modules/dirent-tests: Depend on it.
26121         * modules/fcntl-h-c++-tests: New file, extracted from
26122         modules/fcntl-h-tests.
26123         * modules/fcntl-h-tests: Depend on it.
26124         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26125         * modules/glob-tests: Depend on it.
26126         * modules/iconv-h-c++-tests: New file, extracted from
26127         modules/iconv-h-tests.
26128         * modules/iconv-h-tests: Depend on it.
26129         * modules/langinfo-c++-tests: New file, extracted from
26130         modules/langinfo-tests.
26131         * modules/langinfo-tests: Depend on it.
26132         * modules/locale-c++-tests: New file, extracted from
26133         modules/locale-tests.
26134         * modules/locale-tests: Depend on it.
26135         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26136         * modules/math-tests: Depend on it.
26137         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26138         * modules/pty-tests: Depend on it.
26139         * modules/search-c++-tests: New file, extracted from
26140         modules/search-tests.
26141         * modules/search-tests: Depend on it.
26142         * modules/signal-c++-tests: New file, extracted from
26143         modules/signal-tests.
26144         * modules/signal-tests: Depend on it.
26145         * modules/spawn-c++-tests: New file, extracted from
26146         modules/spawn-tests.
26147         * modules/spawn-tests: Depend on it.
26148         * modules/stdio-c++-tests: New file, extracted from
26149         modules/stdio-tests.
26150         * modules/stdio-tests: Depend on it.
26151         * modules/stdlib-c++-tests: New file, extracted from
26152         modules/stdlib-tests.
26153         * modules/stdlib-tests: Depend on it.
26154         * modules/string-c++-tests: New file, extracted from
26155         modules/string-tests.
26156         * modules/string-tests: Depend on it.
26157         * modules/sys_ioctl-c++-tests: New file, extracted from
26158         modules/sys_ioctl-tests.
26159         * modules/sys_ioctl-tests: Depend on it.
26160         * modules/sys_select-c++-tests: New file, extracted from
26161         modules/sys_select-tests.
26162         * modules/sys_select-tests: Depend on it.
26163         * modules/sys_socket-c++-tests: New file, extracted from
26164         modules/sys_socket-tests.
26165         * modules/sys_socket-tests: Depend on it.
26166         * modules/sys_stat-c++-tests: New file, extracted from
26167         modules/sys_stat-tests.
26168         * modules/sys_stat-tests: Depend on it.
26169         * modules/sys_time-c++-tests: New file, extracted from
26170         modules/sys_time-tests.
26171         * modules/sys_time-tests: Depend on it.
26172         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26173         * modules/time-tests: Depend on it.
26174         * modules/unistd-c++-tests: New file, extracted from
26175         modules/unistd-tests.
26176         * modules/unistd-tests: Depend on it.
26177         * modules/wchar-c++-tests: New file, extracted from
26178         modules/wchar-tests.
26179         * modules/wchar-tests: Depend on it.
26180         * modules/wctype-c++-tests: New file, extracted from
26181         modules/wctype-tests.
26182         * modules/wctype-tests: Depend on it.
26183         Reported by Simon Josefsson.
26184
26185 2010-03-28  Bruno Haible  <bruno@clisp.org>
26186
26187         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26188         * gnulib-tool (func_exists_module): New function, extracted from
26189         func_verify_module.
26190         (func_verify_module): Use it.
26191         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26192         'foo' only if 'foo' exists.
26193         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26194         module.
26195
26196 2010-03-28  Bruno Haible  <bruno@clisp.org>
26197
26198         gnulib-tool: Add support for special categories of tests.
26199         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26200         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26201         (func_usage): Document them.
26202         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26203         inc_unportable_tests, inc_all_tests): New variables.
26204         (func_acceptable): Consider these variables.
26205         (func_modules_transitive_closure): Make it work when the 'Status' field
26206         consists of multiple words.
26207         (func_import): Store and restore the values of inc_cxx_tests,
26208         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26209         inc_all_tests in gnulib-comp.m4.
26210         (func_create_testdir): Set inc_all_tests to true.
26211         * doc/gnulib.texi (Extra tests modules): New section.
26212         Suggested by Jim Meyering.
26213
26214 2010-03-28  Bruno Haible  <bruno@clisp.org>
26215
26216         ansi-c++-opt: Allow turning off the C++ build by default.
26217         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26218         gl_CXX_CHOICE_DEFAULT_NO is defined.
26219         Requested by Eric Blake.
26220
26221 2010-03-28  Bruno Haible  <bruno@clisp.org>
26222
26223         unistd: Avoid #define replacements in C++ mode.
26224         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26225         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26226         setsockopt, shutdown, select): In C++, attach a warning to the function
26227         if possible, rather than #defining the symbol to a dysfunctional alias.
26228         Reported by John W. Eaton <jwe@gnu.org>.
26229
26230 2010-03-28  Bruno Haible  <bruno@clisp.org>
26231
26232         Fix link errors on mingw.
26233         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26234         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26235         $(LIBSOCKET).
26236         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26237         $(LIBSOCKET).
26238
26239 2010-03-28  Bruno Haible  <bruno@clisp.org>
26240             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26241
26242         lib-ignore: Determine different options for different compilers.
26243         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26244         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26245         Add comments.
26246         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26247         * NEWS: Mention the change.
26248
26249 2010-03-27  Bruno Haible  <bruno@clisp.org>
26250
26251         Remove unused GNULIB_XYZ macro definitions.
26252         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26253         * modules/fseek (configure.ac): Likewise.
26254         * modules/ioctl (configure.ac): Likewise.
26255         * modules/open (configure.ac): Likewise.
26256         * modules/stdlib-safer (configure.ac): Likewise.
26257
26258 2010-03-27  Bruno Haible  <bruno@clisp.org>
26259
26260         Add a remark about certain modules.
26261         * modules/malloc (Comment): New section.
26262         * modules/realloc (Comment): Likewise.
26263         * modules/sigpipe (Comment): Likewise.
26264
26265 2010-03-27  Bruno Haible  <bruno@clisp.org>
26266
26267         Resolve conflict between the two kinds of module indicators.
26268         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26269         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26270         * modules/canonicalize (configure.ac): Invoke
26271         gl_MODULE_INDICATOR_FOR_TESTS.
26272         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26273         GNULIB_XYZ.
26274         * tests/test-dirent-c++.cc: Likewise.
26275         * tests/test-dirent-safer.c: Likewise.
26276         * tests/test-dup2.c: Likewise.
26277         * tests/test-fchdir.c: Likewise.
26278         * tests/test-fcntl-h-c++.cc: Likewise.
26279         * tests/test-getopt.c: Likewise.
26280         * tests/test-getopt.h: Likewise.
26281         * tests/test-langinfo-c++.cc: Likewise.
26282         * tests/test-locale-c++.cc: Likewise.
26283         * tests/test-math-c++.cc: Likewise.
26284         * tests/test-pty-c++.cc: Likewise.
26285         * tests/test-search-c++.cc: Likewise.
26286         * tests/test-signal-c++.cc: Likewise.
26287         * tests/test-spawn-c++.cc: Likewise.
26288         * tests/test-stdio-c++.cc: Likewise.
26289         * tests/test-stdlib-c++.cc: Likewise.
26290         * tests/test-string-c++.cc: Likewise.
26291         * tests/test-sys_ioctl-c++.cc: Likewise.
26292         * tests/test-sys_select-c++.cc: Likewise.
26293         * tests/test-sys_socket-c++.cc: Likewise.
26294         * tests/test-sys_stat-c++.cc: Likewise.
26295         * tests/test-sys_time-c++.cc: Likewise.
26296         * tests/test-time-c++.cc: Likewise.
26297         * tests/test-unistd-c++.cc: Likewise.
26298         * tests/test-wchar-c++.cc: Likewise.
26299         * tests/uninorm/test-u8-nfc.c: Likewise.
26300         * tests/uninorm/test-u8-nfd.c: Likewise.
26301         * tests/uninorm/test-u8-nfkc.c: Likewise.
26302         * tests/uninorm/test-u8-nfkd.c: Likewise.
26303         * tests/uninorm/test-u16-nfc.c: Likewise.
26304         * tests/uninorm/test-u16-nfd.c: Likewise.
26305         * tests/uninorm/test-u16-nfkc.c: Likewise.
26306         * tests/uninorm/test-u16-nfkd.c: Likewise.
26307         * tests/uninorm/test-u32-nfc.c: Likewise.
26308         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26309         * tests/uninorm/test-u32-nfd.c: Likewise.
26310         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26311         * tests/uninorm/test-u32-nfkc.c: Likewise.
26312         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26313         * tests/uninorm/test-u32-nfkd.c: Likewise.
26314         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26315         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26316
26317 2010-03-27  Bruno Haible  <bruno@clisp.org>
26318
26319         Distinguish two kinds of module indicators.
26320         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26321         gl_MODULE_INDICATOR.
26322         (gl_MODULE_INDICATOR): New macro.
26323         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26324         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26325         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26326         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26327         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26328         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26329         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26330         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26331         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26332         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26333         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26334         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26336         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26337         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26338         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26339         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26340         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26341         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26342         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26343         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26344         * modules/cloexec (configure.ac): Likewise.
26345         * modules/getopt-gnu (configure.ac): Likewise.
26346         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26347         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26348         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26349         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26350
26351 2010-03-27  Bruno Haible  <bruno@clisp.org>
26352
26353         New module description field 'Comment'.
26354         * gnulib-tool: New option --extract-comment.
26355         (func_usage): Document it.
26356         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26357         (func_get_comment): New function.
26358         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26359
26360 2010-03-27  Bruno Haible  <bruno@clisp.org>
26361
26362         Addendum to 2010-02-07 commit.
26363         * gnulib-tool (func_usage): Document --extract-applicability option.
26364
26365 2010-03-27  Bruno Haible  <bruno@clisp.org>
26366
26367         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26368         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26369         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26370         rather than link errors.
26371
26372 2010-03-27  Bruno Haible  <bruno@clisp.org>
26373
26374         Avoid side effects from tests-related modules on the compilation of lib.
26375         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26376         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26377         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26378         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26379         macro.
26380         (func_import): Define a witness macro. Assign it a value that depends
26381         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26382         tests-related modules.
26383         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26384         Reported by Jim Meyering.
26385
26386 2010-03-27  Bruno Haible  <bruno@clisp.org>
26387
26388         Factorize common .m4 code.
26389         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26390         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26391         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26392         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26393         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26394         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26395         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26396         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26397         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26398         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26399         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26400         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26401         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26402         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26403         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26404         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26405         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26406         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26408         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26409         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26410         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26411         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26412         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26413         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26414         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26415         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26416         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26417         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26418         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26419         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26420         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26421
26422 2010-03-27  Bruno Haible  <bruno@clisp.org>
26423
26424         Fix a compilation error on Cygwin with g++ >= 4.3.
26425         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26426         if it is undefined or if we alias it to chmod.
26427         (lstat): Don't warn about the use of this function if it is undefined
26428         or if we alias it to stat.
26429         Reported by Simon Josefsson.
26430
26431 2010-03-27  Bruno Haible  <bruno@clisp.org>
26432
26433         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26434         * modules/getlogin (configure.ac): Update.
26435
26436         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26437         * modules/getlogin_r (configure.ac): Update.
26438
26439         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26441         * modules/inet_ntop (configure.ac): Update.
26442
26443         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26444         * modules/inet_pton (configure.ac): Update.
26445
26446         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26447         * modules/mbslen (configure.ac): Update.
26448
26449         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26450         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26451         * modules/forkpty (configure.ac): Update.
26452         * modules/openpty (configure.ac): Update.
26453
26454 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26455
26456         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26457         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26458
26459 2010-03-25  Eric Blake  <eblake@redhat.com>
26460
26461         maint: use pragma consistently across replacement headers
26462         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26463         * lib/dirent.in.h (system_header): Likewise.
26464         * lib/errno.in.h (system_header): Likewise.
26465         * lib/float.in.h (system_header): Likewise.
26466         * lib/getopt.in.h (system_header): Likewise.
26467         * lib/iconv.in.h (system_header): Likewise.
26468         * lib/inttypes.in.h (system_header): Likewise.
26469         * lib/langinfo.in.h (system_header): Likewise.
26470         * lib/locale.in.h (system_header): Likewise.
26471         * lib/math.in.h (system_header): Likewise.
26472         * lib/netdb.in.h (system_header): Likewise.
26473         * lib/netinet_in.in.h (system_header): Likewise.
26474         * lib/pty.in.h (system_header): Likewise.
26475         * lib/sched.in.h (system_header): Likewise.
26476         * lib/se-selinux.in.h (system_header): Likewise.
26477         * lib/search.in.h (system_header): Likewise.
26478         * lib/spawn.in.h (system_header): Likewise.
26479         * lib/stdarg.in.h (system_header): Likewise.
26480         * lib/stdint.in.h (system_header): Likewise.
26481         * lib/string.in.h (system_header): Likewise.
26482         * lib/strings.in.h (system_header): Likewise.
26483         * lib/sys_file.in.h (system_header): Likewise.
26484         * lib/sys_ioctl.in.h (system_header): Likewise.
26485         * lib/sys_socket.in.h (system_header): Likewise.
26486         * lib/sys_times.in.h (system_header): Likewise.
26487         * lib/sys_utsname.in.h (system_header): Likewise.
26488         * lib/sys_wait.in.h (system_header): Likewise.
26489         * lib/sysexits.in.h (system_header): Likewise.
26490         * lib/unistd.in.h (system_header): Likewise.
26491         * lib/wctype.in.h (system_header): Likewise.
26492
26493         arpa/inet: fix mingw compilation warning
26494         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26495         Reported by Matthew Bolte.
26496
26497 2010-03-25  Bruno Haible  <bruno@clisp.org>
26498
26499         Avoid collision between gnulib wrapper and libintl wrapper.
26500         * lib/printf.c (printf): Don't define if a printf wrapper is already
26501         defined in intl/printf.c.
26502         Reported by Michel Boaventura <michel@michelboaventura.com>.
26503
26504 2010-03-25  Bruno Haible  <bruno@clisp.org>
26505
26506         Use ANSI C.
26507         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26508
26509 2010-03-25  Bruno Haible  <bruno@clisp.org>
26510
26511         Minor formatting changes.
26512         * lib/acosl.c: Insert space before function argument list.
26513         * lib/argz.c: Likewise.
26514         * lib/asinl.c: Likewise.
26515         * lib/expl.c: Likewise.
26516         * lib/gen-uni-tables.c: Likewise.
26517         * lib/gettext.h: Likewise.
26518         * lib/glthread/lock.h: Likewise.
26519         * lib/tanl.c: Likewise.
26520         * lib/uniname/uniname.c: Likewise.
26521         * tests/test-idpriv-drop.c: Likewise.
26522         * tests/test-idpriv-droptemp.c: Likewise.
26523         * tests/test-lock.c: Likewise.
26524         * tests/test-tls.c: Likewise.
26525         * lib/argp-help.c: Insert space before function-like macro argument
26526         list.
26527         * lib/memcmp.c: Likewise.
26528         * tests/test-base64.c: Likewise.
26529         * lib/localename.c: Insert space before sizeof's argument list.
26530         * lib/safe-alloc.h: Likewise.
26531         * lib/file-set.h: Insert space before macro argument list.
26532         * tests/test-argp.c: Likewise.
26533         * lib/argp-namefrob.h: Insert space before function parameter list.
26534         * lib/getaddrinfo.c: Likewise.
26535         * lib/netdb.in.h: Likewise.
26536         * lib/parse-duration.h: Likewise.
26537         * lib/parse-duration.c: Likewise.
26538         * lib/poll.c: Likewise.
26539         * lib/select.c: Likewise.
26540         * lib/trim.h: Likewise.
26541         * tests/test-usleep.c: Likewise.
26542         * lib/ldexpl.c: Insert space before function parameter list and before
26543         function argument list.
26544         * lib/logl.c: Likewise.
26545         * lib/sqrtl.c: Likewise.
26546         * lib/trim.c: Likewise.
26547         * lib/cosl.c: Use GNU style indentation. Insert space before function
26548         argument list.
26549         * lib/sinl.c: Likewise.
26550         * lib/tsearch.c: Insert space after 'for'.
26551         Reported by Jim Meyering.
26552
26553 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26554
26555         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26556         config header before grepping, as it's not present before
26557         autoreconf/configure are run.  Reported by Simon Josefsson.
26558
26559 2010-03-23  Bruno Haible  <bruno@clisp.org>
26560
26561         pt_chown: Make it work with automake < 1.11.
26562         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26563         Reported by Simon Josefsson.
26564
26565 2010-03-23  Bruno Haible  <bruno@clisp.org>
26566
26567         pt_chown: Don't depend on GPLed modules.
26568         * lib/pt_chown.c: Don't include idpriv.h.
26569         (main): Don't drop privileges.
26570         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26571         Reported by Simon Josefsson.
26572
26573 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26574
26575         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26576         suggestions from karl@freefriends.org (Karl Berry).
26577
26578 2010-03-22  Eric Blake  <eblake@redhat.com>
26579
26580         gethostname: further tweaks
26581         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26582         are overriding gethostname.
26583         Suggested by Bruno Haible.
26584
26585 2010-03-21  Bruno Haible  <bruno@clisp.org>
26586
26587         Fix comments.
26588         * lib/forkpty.c (rpl_forkpty): Fix comment.
26589         * lib/openpty.c (rpl_openpty): Likewise.
26590         Reported by Eric Blake.
26591
26592 2010-03-22  Eric Blake  <eblake@redhat.com>
26593
26594         gethostname: fix build on mingw
26595         * lib/unistd.in.h (includes): Work around fact that mingw
26596         <winsock2.h> re-includes <unistd.h>, by avoiding any
26597         redeclarations if we are being included by <winsock2.h>.
26598         Reported by Matthias Bolte.
26599
26600 2010-03-21  Bruno Haible  <bruno@clisp.org>
26601
26602         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26603         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26604         modifications.
26605         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26606         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26607         provide the replacement.
26608         * modules/forkpty (Depends-on): Add openpty, login_tty.
26609         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26610         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26611         * doc/glibc-functions/forkpty.texi: More supported platforms.
26612         * config/srclist.txt: Add forkpty.c (commented).
26613
26614 2010-03-21  Bruno Haible  <bruno@clisp.org>
26615
26616         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26617         (Makefile.am): Verify that PTY_LIB is defined.
26618
26619         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26620
26621 2010-03-21  Bruno Haible  <bruno@clisp.org>
26622
26623         Tests for module 'login_tty'.
26624         * modules/login_tty-tests: New file.
26625         * tests/test-login_tty.c: New file.
26626
26627         New module 'login_tty'.
26628         * lib/login_tty.c: New file.
26629         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26630         * modules/login_tty: New file.
26631         * doc/glibc-functions/login_tty.texi: Mention the new module.
26632
26633 2010-03-21  Bruno Haible  <bruno@clisp.org>
26634
26635         login_tty: Documentation.
26636         * doc/glibc-functions/login_tty.texi: New file.
26637         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26638
26639 2010-03-21  Bruno Haible  <bruno@clisp.org>
26640
26641         pty: Consistent macro naming.
26642         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26643         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26644         * modules/pty (configure.ac): Update.
26645
26646 2010-03-21  Bruno Haible  <bruno@clisp.org>
26647
26648         Tests for openpty: Make stricter.
26649         * tests/test-openpty.c (main): Add test of canonical processing and
26650         erase.
26651         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26652
26653         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26654         * lib/openpty.c (openpty): New replacement function.
26655         * lib/pty.in.h: Include <termios.h>.
26656         (openpty): Update declaration. Add comments.
26657         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26658         is not declared, arrange to provide the replacement. Check for _getpty
26659         and posix_openpt.
26660         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26661         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26662         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26663         * modules/pty-tests (test_pty_c___LDADD): New variable.
26664         * doc/glibc-functions/openpty.texi: More supported platforms.
26665
26666 2010-03-21  Bruno Haible  <bruno@clisp.org>
26667
26668         setenv: Tweaks.
26669         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26670         the test program.
26671         * doc/posix-functions/setenv.texi: Update platforms list.
26672
26673 2010-03-21  Bruno Haible  <bruno@clisp.org>
26674
26675         New module 'unlockpt'.
26676         * lib/unlockpt.c: New file, from glibc with modifications.
26677         * m4/unlockpt.m4: New file.
26678         * modules/unlockpt: New file.
26679         * lib/stdlib.in.h (unlockpt): New declaration.
26680         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26681         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26682         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26683         HAVE_UNLOCKPT.
26684         * doc/posix-functions/unlockpt.texi: Mention the new module.
26685         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26686         * config/srclist.txt: Add unlockpt.c (commented).
26687
26688 2010-03-21  Jim Meyering  <meyering@redhat.com>
26689
26690         maint.mk: prohibit inclusion of "intprops.h" without use
26691         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26692
26693 2010-03-21  Bruno Haible  <bruno@clisp.org>
26694
26695         New module 'grantpt'.
26696         * lib/grantpt.c: New file, from glibc with modifications.
26697         * m4/grantpt.m4: New file.
26698         * modules/grantpt: New file.
26699         * lib/stdlib.in.h (grantpt): New declaration.
26700         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26701         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26702         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26703         HAVE_GRANTPT.
26704         * doc/posix-functions/grantpt.texi: Mention the new module.
26705         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26706         * config/srclist.txt: Add grantpt.c (commented).
26707
26708 2010-03-21  Bruno Haible  <bruno@clisp.org>
26709
26710         New module 'pt_chown'.
26711         * lib/pt_chown.c: New file, from glibc with modifications.
26712         * lib/pty-private.h: New file, from glibc with modifications.
26713         * modules/pt_chown: New file.
26714         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26715
26716 2010-03-21  Bruno Haible  <bruno@clisp.org>
26717
26718         Tests for module 'ptsname'.
26719         * modules/ptsname-tests: New file.
26720         * tests/test-ptsname.c: New file.
26721
26722         New module 'ptsname'.
26723         * lib/ptsname.c: New file, from glibc with modifications.
26724         * m4/ptsname.m4: New file.
26725         * modules/ptsname: New file.
26726         * lib/stdlib.in.h (ptsname): New declaration.
26727         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26728         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26729         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26730         HAVE_PTSNAME.
26731         * doc/posix-functions/ptsname.texi: Mention the new module.
26732         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26733         * config/srclist.txt: Add ptsname.c (commented).
26734
26735 2010-03-21  Bruno Haible  <bruno@clisp.org>
26736
26737         Tests for module 'ttyname_r'.
26738         * modules/ttyname_r-tests: New file.
26739         * tests/test-ttyname_r.c: New file.
26740
26741         New module 'ttyname_r'.
26742         * lib/ttyname_r.c: New file.
26743         * m4/ttyname_r.m4: New file.
26744         * modules/ttyname_r: New file.
26745         * lib/unistd.in.h (ttyname_r): New declaration.
26746         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26747         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26748         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26749         HAVE_TTYNAME_R.
26750         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26751         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26752
26753 2010-03-20  Bruno Haible  <bruno@clisp.org>
26754
26755         signal: Undefine macro definitions in C++ mode.
26756         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26757         sigfillset): Undefine macro definitions from the system header in C++
26758         mode.
26759         Reported by John W. Eaton <jwe@gnu.org>.
26760
26761 2010-03-20  Bruno Haible  <bruno@clisp.org>
26762
26763         Ensure no #include statements inside extern "C" { ... }.
26764         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26765         contain #include statements.
26766         * lib/time.in.h: Likewise.
26767
26768 2010-03-20  Bruno Haible  <bruno@clisp.org>
26769
26770         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26771         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26772         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26773         Reported by John W. Eaton <jwe@gnu.org>.
26774
26775 2010-03-20  Bruno Haible  <bruno@clisp.org>
26776
26777         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26778         Reported by Jim Meyering.
26779
26780 2010-03-20  Bruno Haible  <bruno@clisp.org>
26781
26782         pipe: Set errno upon failure.
26783         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26784         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26785         errno value in error message.
26786
26787 2010-03-20  Bruno Haible  <bruno@clisp.org>
26788             Jim Meyering  <meyering@redhat.com>
26789
26790         lchown: Avoid "unused variable" warning.
26791         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26792
26793 2010-03-20  Bruno Haible  <bruno@clisp.org>
26794
26795         Work around unlink() bug on MacOS X 10.5.6.
26796         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26797         attempting to unlink a parent directory.
26798         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26799         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26800         activate for the replacement function.
26801         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26802
26803 2010-03-20  Bruno Haible  <bruno@clisp.org>
26804
26805         Fix link errors on Solaris 8.
26806         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26807         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26808
26809 2010-03-19  Jim Meyering  <meyering@redhat.com>
26810
26811         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26812         The _LIBC implementation of build_range_exp correctly honors the
26813         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26814         However, the non-_LIBC implementation would ignore that syntax-bit
26815         flag and return REG_ERANGE unconditionally.
26816         This change makes it honor that flag.
26817         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26818         Make two pointer parameters "const".
26819         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26820         (parse_bracket_exp): Update caller.
26821
26822         regex.m4: correct the reversed range endpoint ([b-a]) test
26823         * m4/regex.m4: When requiring that [b-a] evoke failure,
26824         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26825         test pass once again for x86-based systems.
26826
26827 2010-03-19  Bruno Haible  <bruno@clisp.org>
26828
26829         scandir: Fix link error on Solaris 8.
26830         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26831         macros.
26832
26833 2010-03-19  Bruno Haible  <bruno@clisp.org>
26834
26835         getusershell: Fix documentation.
26836         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26837         module.
26838         * doc/glibc-functions/setusershell.texi: Likewise.
26839
26840         getusershell: Provide declaration, missing on Solaris 9.
26841         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26842         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26843         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26844         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26846         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26847         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26848         HAVE_GETUSERSHELL.
26849         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26850
26851 2010-03-19  Bruno Haible  <bruno@clisp.org>
26852
26853         wctype: Provide iswblank function.
26854         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26855         exists and is fine.
26856         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26857         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26858         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26859         * doc/posix-functions/iswblank.texi: Update.
26860
26861 2010-03-19  Bruno Haible  <bruno@clisp.org>
26862
26863         Tests of module 'pty' in C++ mode.
26864         * modules/pty-tests: New file.
26865         * tests/test-pty-c++.cc: New file.
26866         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26867
26868 2010-03-19  Eric Blake  <eblake@redhat.com>
26869
26870         logb: fix documentation
26871         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26872         1.5 declaration bug.
26873
26874         forkpty, openpty: prefer glibc's const-safe prototype
26875         * lib/forkpty.c (rpl_forkpty): New file.
26876         * lib/openpty.c (rpl_openpty): Likewise.
26877         * modules/forkpty (Files): Distribute it.
26878         * modules/openpty (Files): Likewise.
26879         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26880         check...
26881         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26882         replacement for for non-const BSD signature.
26883         * modules/pty (Makefile.am): Substitute witnesses.
26884         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26885         * tests/test-forkpty.c: Update signature check.
26886         * tests/test-openpty.c: Likewise.
26887         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26888         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26889
26890         forkpty, openpty: split functions into new modules
26891         * modules/pty (Makefile.am): Substitute new witnesses.
26892         (Libraries): Move library detection...
26893         * modules/forkpty: ...into new module.
26894         * modules/openpty: Another new module.
26895         * modules/pty-tests: Rename and split...
26896         * modules/forkpty-tests: ...to this...
26897         * modules/openpty-tests: ...and this.
26898         * tests/test-pty.c: Rename and split...
26899         * tests/test-forkpty.c: ...to this...
26900         * tests/test-openpty.c: ...and this.
26901         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26902         (gl_PTY): Split library searching...
26903         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26904         (gl_FORKPTY, gl_OPENPTY): New macros.
26905         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26906         * NEWS: Mention the split.
26907         * MODULES.html.sh (Misc): Document the modules.
26908         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26909         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26910
26911         pty: improve replacement header
26912         * lib/pty.in.h: New file.
26913         * modules/pty (Files): Ship it.
26914         (Makefile.am): Always build replacement.
26915         * m4/pty.m4: Rename...
26916         * m4/pty_h.m4: ...to this.
26917         (gl_PTY): Modernize setting of witness macros; update check of
26918         forkpty to take proper advantage of cache.
26919         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26920
26921         getopt: avoid compiler warning
26922         * lib/getopt.c (attribute_hidden): Remove unused macro.
26923
26924 2010-03-18  Bruno Haible  <bruno@clisp.org>
26925
26926         Fix link errors on Solaris 8.
26927         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26928         * modules/search-tests (test_search_c___LDADD): Likewise.
26929         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26930         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26931         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26932         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26933         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26934         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26935         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26936
26937 2010-03-18  Bruno Haible  <bruno@clisp.org>
26938
26939         Fix bug introduced on 2010-03-14.
26940         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26941         (gl_SPAWN_H): Require it.
26942         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26943         Reported by Simon Josefsson.
26944
26945 2010-03-18  Bruno Haible  <bruno@clisp.org>
26946
26947         Fix typo introduced on 2009-12-31.
26948         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26949         posix_spawn_file_actions_adddup2.
26950
26951 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26952         and Eric Blake  <eblake@redhat.com>
26953
26954         test-vc-list-files-git: make more robust
26955         * tests/test-vc-list-files-git.sh: Unset problematic environment
26956         variables.  Chain commands together.
26957
26958 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26959
26960         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26961         `AC_CHECK_DECL' invocation.
26962
26963 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26964
26965         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26966         appears before executable statements. Suggested by Petr Sumbera
26967         <Petr.Sumbera@Sun.COM>.
26968
26969 2010-03-14  Bruno Haible  <bruno@clisp.org>
26970
26971         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26972         portability problems. Instead use a simpler test.
26973         (main): Check that invalid arguments are rejected only on Linux.
26974
26975 2010-03-14  Bruno Haible  <bruno@clisp.org>
26976
26977         Fix bug introduced on 2009-12-31.
26978         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26979         gl_PREREQ_SYS_H_WINSOCK2 always.
26980         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26981         SYS_SOCKET_H variable.
26982         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26983         Update comments.
26984         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26985         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26986         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26987         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26988         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26989
26990 2010-03-14  Bruno Haible  <bruno@clisp.org>
26991
26992         Fix values returned by sinl, cosl.
26993         * lib/trigl.h: Add specification comments.
26994         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26995         that combines the values from the precomputed table with the values of
26996         the Chebyshev polynomials.
26997
26998 2010-03-14  Bruno Haible  <bruno@clisp.org>
26999
27000         Fix compilation error when modules 'posix_spawn[p]' are not used.
27001         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27003
27004 2010-03-14  Bruno Haible  <bruno@clisp.org>
27005
27006         Fix compilation error on mingw when module 'time_r' is not used.
27007         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27008         is 1.
27009         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27010         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27011         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27012         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27013
27014 2010-03-14  Bruno Haible  <bruno@clisp.org>
27015
27016         Fix compilation error with Sun C.
27017         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27018         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27019         instead of GCC specific ULONG_LONG_MAX.
27020         * lib/xstrtoll.c: Likewise.
27021         * lib/xstrtoull.c: Likewise.
27022
27023 2010-03-13  Bruno Haible  <bruno@clisp.org>
27024
27025         Allow the user to disable C++ code and tests.
27026         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27027         (gl_PROG_ANSI_CXX): Require it.
27028
27029 2010-03-13  Bruno Haible  <bruno@clisp.org>
27030
27031         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27032         cases.
27033
27034 2010-03-13  Bruno Haible  <bruno@clisp.org>
27035
27036         Test that gnulib does not break the standard C++ headers.
27037         * tests/test-locale-c++2.cc: New file.
27038         * modules/locale-tests (Files): Add it.
27039         (Makefile.am): Compile it for test-locale-c++.
27040         * tests/test-math-c++2.cc: New file.
27041         * modules/math-tests (Files): Add it.
27042         (Makefile.am): Compile it for test-math-c++.
27043         * tests/test-signal-c++2.cc: New file.
27044         * modules/signal-tests (Files): Add it.
27045         (Makefile.am): Compile it for test-signal-c++.
27046         * tests/test-stdio-c++2.cc: New file.
27047         * modules/stdio-tests (Files): Add it.
27048         (Makefile.am): Compile it for test-stdio-c++.
27049         * tests/test-stdlib-c++2.cc: New file.
27050         * modules/stdlib-tests (Files): Add it.
27051         (Makefile.am): Compile it for test-stdlib-c++.
27052         * tests/test-string-c++2.cc: New file.
27053         * modules/string-tests (Files): Add it.
27054         (Makefile.am): Compile it for test-string-c++.
27055         * tests/test-time-c++2.cc: New file.
27056         * modules/time-tests (Files): Add it.
27057         (Makefile.am): Compile it for test-time-c++.
27058         Reported by John W. Eaton <jwe@gnu.org>.
27059
27060 2010-03-13  Bruno Haible  <bruno@clisp.org>
27061
27062         * gnulib-tool (func_usage): Clarify which options are available for
27063         --create-testdir and --create-megatestdir.
27064
27065 2010-03-13  Bruno Haible  <bruno@clisp.org>
27066
27067         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27068         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27069         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27070         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27071         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27072         when appropriate.
27073         Reported by Jim Meyering.
27074
27075 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27076
27077         * gnulib-tool (func_import): Explain origin of code.
27078
27079 2010-03-12  Bruno Haible  <bruno@clisp.org>
27080
27081         Fix problem with automake's definition of CXXLINK.
27082         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27083         Reported by Simon Josefsson and Ludovic Courtès.
27084
27085 2010-03-12  Bruno Haible  <bruno@clisp.org>
27086
27087         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27088         stable releases.
27089
27090 2010-03-11  Bruno Haible  <bruno@clisp.org>
27091
27092         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27093         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27094         whether the system provides one variant or multiple variants of the
27095         function.
27096         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27097         C++ compilers.
27098         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27099         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27100         Reported by Jim Meyering.
27101
27102 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27103
27104         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27105
27106 2010-03-08  Bruno Haible  <bruno@clisp.org>
27107
27108         gnulib-tool: Add support for --libtool in --create-testdir.
27109         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27110         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27111
27112 2010-03-08  Eric Blake  <eblake@redhat.com>
27113
27114         gnulib-tool.texi: mention possibility of git submodule
27115         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27116         submodules.
27117         * doc/.gitignore: Ignore another generated file.
27118
27119 2010-03-08  Karl Berry  <karl@gnu.org>
27120
27121         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27122         of committing gnulib files while skipping others.
27123
27124 2010-03-07  Bruno Haible  <bruno@clisp.org>
27125
27126         Tests of module 'wctype' in C++ mode.
27127         * tests/test-wctype-c++.cc: New file.
27128         * modules/wctype-tests (Files): Add it and tests/signature.h.
27129         (Depends-on): Add ansi-c++-opt.
27130         (Makefile.am): Arrange to compile and run test-wctype-c++.
27131
27132         Tests of module 'wchar' in C++ mode.
27133         * tests/test-wchar-c++.cc: New file.
27134         * modules/wchar-tests (Files): Add it and tests/signature.h.
27135         (Depends-on): Add ansi-c++-opt.
27136         (Makefile.am): Arrange to compile and run test-wchar-c++.
27137         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27138         gl_MODULE_INDICATOR.
27139
27140         Tests of module 'unistd' in C++ mode.
27141         * tests/test-unistd-c++.cc: New file.
27142         * modules/unistd-tests (Files): Add it and tests/signature.h.
27143         (Depends-on): Add ansi-c++-opt.
27144         (Makefile.am): Arrange to compile and run test-unistd-c++.
27145         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27146         gl_MODULE_INDICATOR.
27147
27148         Tests of module 'time' in C++ mode.
27149         * tests/test-time-c++.cc: New file.
27150         * modules/time-tests (Files): Add it and tests/signature.h.
27151         (Depends-on): Add ansi-c++-opt.
27152         (Makefile.am): Arrange to compile and run test-time-c++.
27153         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27154
27155         Tests of module 'sys_time' in C++ mode.
27156         * tests/test-sys_time-c++.cc: New file.
27157         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27158         (Depends-on): Add ansi-c++-opt.
27159         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27160         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27161         gl_MODULE_INDICATOR.
27162
27163         Tests of module 'sys_stat' in C++ mode.
27164         * tests/test-sys_stat-c++.cc: New file.
27165         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27166         (Depends-on): Add ansi-c++-opt.
27167         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27168         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27169         gl_MODULE_INDICATOR.
27170
27171         Tests of module 'sys_socket' in C++ mode.
27172         * tests/test-sys_socket-c++.cc: New file.
27173         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27174         (Depends-on): Add ansi-c++-opt.
27175         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27176         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27177         gl_MODULE_INDICATOR.
27178
27179         Tests of module 'sys_select' in C++ mode.
27180         * tests/test-sys_select-c++.cc: New file.
27181         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27182         (Depends-on): Add ansi-c++-opt.
27183         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27184         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27185         gl_MODULE_INDICATOR.
27186
27187         Tests of module 'sys_ioctl' in C++ mode.
27188         * tests/test-sys_ioctl-c++.cc: New file.
27189         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27190         (Depends-on): Add ansi-c++-opt.
27191         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27192         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27193         gl_MODULE_INDICATOR.
27194
27195         Tests of module 'string' in C++ mode.
27196         * tests/test-string-c++.cc: New file.
27197         * modules/string-tests (Files): Add it and tests/signature.h.
27198         (Depends-on): Add ansi-c++-opt.
27199         (Makefile.am): Arrange to compile and run test-string-c++.
27200         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27201         gl_MODULE_INDICATOR.
27202
27203         Tests of module 'stdlib' in C++ mode.
27204         * tests/test-stdlib-c++.cc: New file.
27205         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27206         (Depends-on): Add ansi-c++-opt.
27207         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27208         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27209         gl_MODULE_INDICATOR.
27210
27211         Tests of module 'stdio' in C++ mode.
27212         * tests/test-stdio-c++.cc: New file.
27213         * modules/stdio-tests (Files): Add it and tests/signature.h.
27214         (Depends-on): Add ansi-c++-opt.
27215         (Makefile.am): Arrange to compile and run test-stdio-c++.
27216         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27217         gl_MODULE_INDICATOR.
27218
27219         Tests of module 'spawn' in C++ mode.
27220         * tests/test-spawn-c++.cc: New file.
27221         * modules/spawn-tests (Files): Add it and tests/signature.h.
27222         (Depends-on): Add ansi-c++-opt.
27223         (Makefile.am): Arrange to compile and run test-spawn-c++.
27224         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27225         gl_MODULE_INDICATOR.
27226
27227         Tests of module 'signal' in C++ mode.
27228         * tests/test-signal-c++.cc: New file.
27229         * modules/signal-tests (Files): Add it and tests/signature.h.
27230         (Depends-on): Add ansi-c++-opt.
27231         (Makefile.am): Arrange to compile and run test-signal-c++.
27232         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27233         gl_MODULE_INDICATOR.
27234
27235         Tests of module 'search' in C++ mode.
27236         * tests/test-search-c++.cc: New file.
27237         * modules/search-tests (Files): Add it and tests/signature.h.
27238         (Depends-on): Add ansi-c++-opt.
27239         (Makefile.am): Arrange to compile and run test-search-c++.
27240         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27241         gl_MODULE_INDICATOR.
27242
27243         Tests of module 'math' in C++ mode.
27244         * tests/test-math-c++.cc: New file.
27245         * modules/math-tests (Files): Add it and tests/signature.h.
27246         (Depends-on): Add ansi-c++-opt.
27247         (Makefile.am): Arrange to compile and run test-math-c++.
27248         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27249
27250         Tests of module 'locale' in C++ mode.
27251         * tests/test-locale-c++.cc: New file.
27252         * modules/locale-tests (Files): Add it and tests/signature.h.
27253         (Depends-on): Add ansi-c++-opt.
27254         (Makefile.am): Arrange to compile and run test-locale-c++.
27255         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27256         gl_MODULE_INDICATOR.
27257
27258         Tests of module 'langinfo' in C++ mode.
27259         * tests/test-langinfo-c++.cc: New file.
27260         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27261         (Depends-on): Add ansi-c++-opt.
27262         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27263         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27264         gl_MODULE_INDICATOR.
27265
27266         Tests of module 'iconv-h' in C++ mode.
27267         * tests/test-iconv-h-c++.cc: New file.
27268         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27269         (Depends-on): Add ansi-c++-opt.
27270         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27271
27272         Tests of module 'glob' in C++ mode.
27273         * tests/test-glob-c++.cc: New file.
27274         * modules/glob-tests (Files): Add it.
27275         (Depends-on): Add ansi-c++-opt.
27276         (Makefile.am): Arrange to compile and run test-glob-c++.
27277
27278         Tests of module 'fcntl-h' in C++ mode.
27279         * tests/test-fcntl-h-c++.cc: New file.
27280         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27281         (Depends-on): Add ansi-c++-opt.
27282         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27283         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27284         gl_MODULE_INDICATOR.
27285
27286         Tests of module 'dirent' in C++ mode.
27287         * tests/test-dirent-c++.cc: New file.
27288         * modules/dirent-tests (Files): Add it and tests/signature.h.
27289         (Depends-on): Add ansi-c++-opt.
27290         (Makefile.am): Arrange to compile and run test-dirent-c++.
27291         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27292         gl_MODULE_INDICATOR.
27293
27294         New module 'ansi-c++-opt'.
27295         * modules/ansi-c++-opt: New file.
27296         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27297
27298         Document C++ namespace mode.
27299         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27300
27301         wctype: Avoid #define replacements in C++ mode.
27302         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27303         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27304         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27305         In C++, define a namespaced alias symbol.
27306         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27307         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27308         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27309         rule.
27310
27311         wchar: Avoid #define replacements in C++ mode.
27312         * lib/wchar.in.h: Include c++defs.h.
27313         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27314         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27315         symbol.
27316         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27317         * modules/wchar (Depends-on): Add c++defs.
27318         (Makefile.am): Update wchar.h rule.
27319
27320         unistd: Avoid #define replacements in C++ mode.
27321         * lib/unistd.in.h: Include c++defs.h.
27322         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27323         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27324         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27325         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27326         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27327         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27328         symbol.
27329         (environ): Update.
27330         * modules/unistd (Depends-on): Add c++defs.
27331         (Makefile.am): Update unistd.h rule.
27332
27333         time: Avoid #define replacements in C++ mode.
27334         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27335         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27336         define a namespaced alias symbol.
27337         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27338         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27339         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27340         * modules/time (Depends-on): Add c++defs, warn-on-use.
27341         (Makefile.am): Update time.h rule.
27342         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27343         * modules/nanosleep (configure.ac): Likewise.
27344         * modules/strptime (configure.ac): Likewise.
27345         * modules/timegm (configure.ac): Likewise.
27346
27347         sys_time: Avoid #define replacements in C++ mode.
27348         * lib/sys_time.in.h: Include c++defs.h.
27349         (gettimeofday): In C++, define a namespaced alias symbol.
27350         * modules/sys_time (Depends-on): Add c++defs.
27351         (Makefile.am): Update sys/time.h rule.
27352
27353         sys_stat: Avoid #define replacements in C++ mode.
27354         * lib/sys_stat.in.h: Include c++defs.h.
27355         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27356         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27357         namespaced alias symbol.
27358         In C++, define a namespaced alias symbol.
27359         * modules/sys_stat (Depends-on): Add c++defs.
27360         (Makefile.am): Update sys/stat.h rule.
27361
27362         sys_socket: Avoid #define replacements in C++ mode.
27363         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27364         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27365         definitions also when the system has a <sys/socket.h>.
27366         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27367         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27368         In C++, define a namespaced alias symbol.
27369         * modules/sys_socket (Depends-on): Add c++defs.
27370         (Makefile.am): Update sys/socket.h rule.
27371
27372         sys_select: Avoid #define replacements in C++ mode.
27373         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27374         definitions also when the system has a <sys/select.h>.
27375         (select): In C++, define a namespaced alias symbol.
27376         * modules/sys_select (Depends-on): Add c++defs.
27377         (Makefile.am): Update sys/select.h rule.
27378
27379         sys_ioctl: Avoid #define replacements in C++ mode.
27380         * lib/sys_ioctl.in.h: Include c++defs.h.
27381         (ioctl): In C++, define a namespaced alias symbol.
27382         * modules/sys_ioctl (Depends-on): Add c++defs.
27383         (Makefile.am): Update sys/ioctl.h rule.
27384
27385         string: Avoid #define replacements in C++ mode.
27386         * lib/string.in.h: Include c++defs.h.
27387         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27388         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27389         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27390         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27391         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27392         * modules/string (Depends-on): Add c++defs.
27393         (Makefile.am): Update string.h rule.
27394
27395         stdlib: Avoid #define replacements in C++ mode.
27396         * lib/stdlib.in.h: Include c++defs.h.
27397         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27398         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27399         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27400         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27401         symbol.
27402         * modules/stdlib (Depends-on): Add c++defs.
27403         (Makefile.am): Update stdlib.h rule.
27404
27405         stdio: Avoid #define replacements in C++ mode.
27406         * lib/stdio.in.h: Include c++defs.h.
27407         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27408         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27409         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27410         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27411         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27412         namespaced alias symbol.
27413         * modules/stdio (Depends-on): Add c++defs.
27414         (Makefile.am): Update stdio.h rule.
27415
27416         spawn: Avoid #define replacements in C++ mode.
27417         * lib/spawn.in.h: Include c++defs.h.
27418         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27419         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27420         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27421         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27422         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27423         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27424         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27425         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27426         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27427         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27428         In C++, define a namespaced alias symbol.
27429         * modules/spawn (Depends-on): Add c++defs.
27430         (Makefile.am): Update spawn.h rule.
27431
27432         signal: Avoid #define replacements in C++ mode.
27433         * lib/signal.in.h: Include c++defs.h.
27434         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27435         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27436         namespaced alias symbol.
27437         * modules/signal (Depends-on): Add c++defs.
27438         (Makefile.am): Update signal.h rule.
27439
27440         search: Avoid #define replacements in C++ mode.
27441         * lib/search.in.h: Include c++defs.h.
27442         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27443         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27444         symbol.
27445         * modules/search (Depends-on): Add c++defs.
27446         (Makefile.am): Update search.h rule.
27447
27448         math: Avoid #define replacements in C++ mode.
27449         * lib/math.in.h: Include c++defs.h.
27450         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27451         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27452         trunc, truncl): In C++, define a namespaced alias symbol.
27453         * modules/math (Depends-on): Add c++defs.
27454         (Makefile.am): Update math.h rule.
27455
27456         locale: Avoid #define replacements in C++ mode.
27457         * lib/locale.in.h: Include c++defs.h.
27458         (duplocale): In C++, define a namespaced alias symbol.
27459         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27460         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27461         * modules/locale (Depends-on): Add c++defs.
27462         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27463
27464         langinfo: Avoid #define replacements in C++ mode.
27465         * lib/langinfo.in.h: Include c++defs.h.
27466         (nl_langinfo): In C++, define a namespaced alias symbol.
27467         * modules/langinfo (Depends-on): Add c++defs.
27468         (Makefile.am): Update langinfo.h rule.
27469
27470         iconv-h: Avoid #define replacements in C++ mode.
27471         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27472         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27473         symbol.
27474         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27475         whenever iconv is present.
27476         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27477         (Makefile.am): Update iconv.h rule.
27478
27479         glob: Avoid #define replacements in C++ mode.
27480         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27481         (_gl_glob_errfunc_fn): New type.
27482         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27483         symbol.
27484         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27485         (Makefile.am): Update glob.h rule.
27486
27487         fcntl-h: Avoid #define replacements in C++ mode.
27488         * lib/fcntl.in.h: Include c++defs.h.
27489         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27490         * modules/fcntl-h (Depends-on): Add c++defs.
27491         (Makefile.am): Update fcntl.h rule.
27492
27493         dirent: Avoid #define replacements in C++ mode.
27494         * lib/dirent.in.h: Include c++defs.h.
27495         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27496         namespaced alias symbol.
27497         (dirfd): Update declaration.
27498         * modules/dirent (Depends-on): Add c++defs.
27499         (Makefile.am): Update dirent.h rule.
27500
27501         ctype: Make it usable in C++ code.
27502         * lib/ctype.in.h: Include c++defs.h.
27503         (isblank): Declare as extern "C".
27504         * modules/ctype (Depends-on): Add c++defs.
27505         (Makefile.am): Update ctype.h rule.
27506
27507         New module 'c++defs'.
27508         * modules/c++defs: New file.
27509         * build-aux/c++defs.h: New file.
27510         Reported by John W. Eaton <jwe@gnu.org>.
27511
27512 2010-03-07  Bruno Haible  <bruno@clisp.org>
27513
27514         logb: Provide missing declaration for Cygwin.
27515         * lib/math.in.h (logb): New declaration.
27516         * m4/logb.m4: New file.
27517         * modules/logb (Files): Add m4/logb.m4.
27518         (Depends-on): Add math.
27519         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27520         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27522         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27523         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27524
27525 2010-03-07  Bruno Haible  <bruno@clisp.org>
27526
27527         Fix test-cond link error.
27528         * tests/test-cond.c: Include <stdio.h>.
27529
27530 2010-03-07  Bruno Haible  <bruno@clisp.org>
27531
27532         Fix test-dirent-safer link error.
27533         * modules/dirent-safer-tests (Makefile.am): Define
27534         test_dirent_safer_LDADD.
27535
27536 2010-03-07  Bruno Haible  <bruno@clisp.org>
27537
27538         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27539         among default module list.
27540
27541 2010-03-07  Bruno Haible  <bruno@clisp.org>
27542
27543         Fix link error on platforms with GNU libiconv.
27544         * modules/unistr/u8-strcoll-tests (Makefile): Define
27545         test_u8_strcoll_LDADD.
27546         * modules/unistr/u16-strcoll-tests (Makefile): Define
27547         test_u16_strcoll_LDADD.
27548         * modules/unistr/u32-strcoll-tests (Makefile): Define
27549         test_u32_strcoll_LDADD.
27550
27551 2010-03-07  Bruno Haible  <bruno@clisp.org>
27552
27553         Use POSIX declarations for socket functions.
27554         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27555         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27556         rpl_sendto): Change declaration to match POSIX.
27557         * lib/connect.c (rpl_connect): Likewise.
27558         * lib/accept.c (rpl_accept): Likewise.
27559         * lib/bind.c (rpl_bind): Likewise.
27560         * lib/getpeername.c (rpl_getpeername): Likewise.
27561         * lib/getsockname.c (rpl_getsockname): Likewise.
27562         * lib/recv.c (rpl_recv): Likewise.
27563         * lib/send.c (rpl_send): Likewise.
27564         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27565         * lib/sendto.c (rpl_sendto): Likewise.
27566
27567 2010-03-06  Bruno Haible  <bruno@clisp.org>
27568
27569         Clarify access, euidaccess, faccessat.
27570         * doc/posix-functions/faccessat.texi: Mention security problem under
27571         "Other problems", not "Portability problems".
27572         * doc/posix-functions/access.texi: Likewise. Mention a related security
27573         problem.
27574         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27575         * lib/euidaccess.c: Add comments about platforms.
27576         * lib/unistd.in.h (access, euidaccess): Add warnings.
27577
27578 2010-03-07  Bruno Haible  <bruno@clisp.org>
27579
27580         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27581         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27582         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27583         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27584         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27585         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27586         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27587         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27588         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27589         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27590         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27591         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27592         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27593         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27594         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27595         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27596         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27597         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27598         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27599         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27600         Likewise.
27601         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27602         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27603         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27604         Likewise.
27605         * tests/test-spawn.c (main): Make it work when
27606         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27607
27608 2010-03-07  Bruno Haible  <bruno@clisp.org>
27609
27610         Fix incorrect Makefile.am generation in German locale.
27611         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27612         Execute sed command with character range in C locale.
27613
27614 2010-03-06  Bruno Haible  <bruno@clisp.org>
27615
27616         Tests for module 'iconv-h'.
27617         * modules/iconv-h-tests: New file.
27618         * tests/test-iconv-h.c: New file.
27619
27620         New module 'iconv-h'.
27621         * modules/iconv-h: New file.
27622         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27623         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27624         (configure.ac): Remove gl_ICONV_H.
27625         (Makefile.am): Remove rule for iconv.h.
27626
27627 2010-03-06  Bruno Haible  <bruno@clisp.org>
27628
27629         More consistent naming of *.m4 files.
27630         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27631         * modules/wctype (Files): Update.
27632
27633         More consistent naming of *.m4 files.
27634         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27635         * modules/wchar (Files): Update.
27636
27637 2010-03-06  Jim Meyering  <meyering@redhat.com>
27638
27639         euidaccess: relax license to LGPLv2+
27640         * modules/euidaccess (License): Relax to LGPLv2+.
27641
27642 2010-03-06  Bruno Haible  <bruno@clisp.org>
27643
27644         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27645         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27646         (Makefile.am): Augment lib_SOURCES instead.
27647
27648 2010-03-04  Jim Meyering  <meyering@redhat.com>
27649
27650         utime: remove obsolete module
27651         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27652         unnecessary for years, and has been marked as obsolete for 10 months.
27653         * modules/utime: Remove file.
27654         * lib/utime.c: Remove file.
27655         * m4/utime.m4: Remove file.
27656         * m4/utimes-null.m4: Remove file.
27657         * doc/posix-functions/utime.texi (utime): Remove reference to
27658         the module.  Move the sole "fixed by gnulib" item into the
27659         "problems not fixed by Gnulib" list.
27660         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27661
27662 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27663
27664         * modules/exit (License): Relax license to LGPLv2+.
27665         (Status): Mark as obsolete.
27666         * NEWS: Mention deprecated 'exit' module.
27667         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27668         of now obsolete 'exit'.
27669
27670 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27671
27672         fts-lgpl: remove unused module
27673         * modules/fts-lgpl: Remove.
27674         * MODULES.html.sh (func_all_modules): Adjust.
27675         * check-module (find_included_lib_files): Adjust.
27676         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27677
27678 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27679
27680         copy-acl: enhance Solaris ACL error handling
27681         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27682         * lib/set-mode-acl.c (qset_acl): Likewise.
27683
27684 2010-03-02  Bruno Haible  <bruno@clisp.org>
27685
27686         spawn: Don't override the system defined values on FreeBSD 8.
27687         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27688         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27689         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27690         if HAVE_POSIX_SPAWN is 1.
27691         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27692
27693 2010-03-01  Bruno Haible  <bruno@clisp.org>
27694
27695         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27696         regarding Automake.
27697
27698 2010-02-25  Bruno Haible  <bruno@clisp.org>
27699
27700         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27701         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27702         setting, not afterwards.
27703         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27704
27705 2010-02-24  Eric Blake  <eblake@redhat.com>
27706
27707         bootstrap, git-version-gen: use timestamp
27708         * build-aux/git-version-gen (scriptversion): Force UTC.
27709         * build-aux/bootstrap (scriptversion): New variable.
27710
27711         bootstrap: allow older git
27712         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27713         older than 1.6.4.  Requested by the libvirt project.
27714
27715 2010-02-23  Eric Blake  <eblake@redhat.com>
27716
27717         warn-on-use: work with old autoconf
27718         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27719         AS_VAR semantics of autoconf 2.60.
27720         Reported by Bruno Haible.
27721
27722         bootstrap: improve some comments
27723         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27724         clarification comments.
27725
27726         gettimeofday: provide correct function
27727         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27728         when replacement is declared, otherwise provide gettimeofday.
27729         Reported by Michael Goffioul.
27730
27731 2010-02-23  Jim Meyering  <meyering@redhat.com>
27732
27733         lib-ignore: relax license to "unlimited", not LGPLv2+
27734         * modules/lib-ignore (License): Relax to "unlimited".
27735
27736 2010-02-23  Jim Meyering  <meyering@redhat.com>
27737
27738         lib-ignore: relax license to LGPLv2+
27739         * modules/lib-ignore (License): Relax to LGPLv2+.
27740
27741 2010-02-22  Eric Blake  <eblake@redhat.com>
27742
27743         lseek: avoid bash 3.2 broken pipe bug
27744         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27745         warning from bash 3.2.
27746         Reported by Ben Pfaff, with analysis from Bruno Haible.
27747
27748         bootstrap: support non-FSF copyright holder
27749         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27750         bootstrap.conf override of COPYRIGHT_HOLDER.
27751         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27752
27753         bootstrap: interoperate with gettext 0.14.1
27754         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27755
27756         bootstrap: allow for alternate submodule location
27757         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27758         hardcoding submodule location.
27759         (gnulib_mk): Allow direct use of Makefile.am.
27760
27761         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27762         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27763         rather than reconfiguring where the submodule points.
27764
27765         gettimeofday: restore support for platforms that lack function
27766         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27767         replacement if function is missing.
27768         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27769         * modules/sys_time (Makefile.am): Substitute it.
27770         * lib/sys_time.in.h (gettimeofday): Check it.
27771         Reported by Michael Goffioul.
27772
27773 2010-02-21  Bruno Haible  <bruno@clisp.org>
27774
27775         * lib/stdio.in.h (obstack_printf): Fix typo.
27776
27777 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27778
27779         vc-list-files: use bzr ls's -R option
27780         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27781         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27782
27783 2010-02-21  Jim Meyering  <meyering@redhat.com>
27784
27785         init.sh: fix EXEEXT shims to work also for names like test-prog
27786         * tests/init.sh: Re-exec a better shell, when needed.
27787         If the current shell lacks support for posix $(...), an init.sh-using
27788         test will now try to find a shell that supports that.  If EXEEXT is
27789         nonempty, we also require support for hyphen-in-alias-name and shell
27790         substitutions like ${var#glob}.  Failure to find such a shell results
27791         in a skipped test.
27792
27793 2010-02-21  Bruno Haible  <bruno@clisp.org>
27794
27795         Really work around around "broken pipe" error message from bash 3.2.
27796         * gnulib-tool (func_reset_sigpipe): Remove function.
27797         (echo): In bash 3.2, define to a function that uses printf.
27798         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27799
27800 2010-02-20  Bruno Haible  <bruno@clisp.org>
27801
27802         Restore support for automake 1.9.6 with autoconf 2.61.
27803         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27804         Reported by James Youngman <jay@gnu.org>.
27805
27806 2010-02-20  Bruno Haible  <bruno@clisp.org>
27807
27808         Improve *printf warning condition.
27809         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27810         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27811         and the function is overridden due to SIGPIPE emulation.
27812
27813 2010-02-20  Bruno Haible  <bruno@clisp.org>
27814
27815         * lib/stdio.in.h: Tweak comments.
27816
27817 2010-02-19  Bruno Haible  <bruno@clisp.org>
27818
27819         Make it easier to find modules. New gnulib-tool option '--find'.
27820         * gnulib-tool: New option --find.
27821         (func_usage): Document it.
27822         (func_sanitize_modulelist): New function, extracted from
27823         func_all_modules.
27824         (func_all_modules): Invoke it.
27825         * doc/gnulib-tool.texi (Which modules?): New node.
27826
27827 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27828
27829         * lib/sys_select.in.h: Provide select replacement even if
27830         sys/select.h exists on a system, for Interix.
27831
27832 2010-02-18  Jim Meyering  <meyering@redhat.com>
27833
27834         init.sh: don't use $(...) just yet
27835         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27836         to accommodate e.g., Solaris' /bin/sh.
27837
27838 2010-02-17  Bruno Haible  <bruno@clisp.org>
27839
27840         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27841         Reported by Ludovic Courtès <ludo@gnu.org>.
27842
27843 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27844
27845         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27846         linking with -lintl.
27847
27848 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27849
27850         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27851         if not provided by the system's netdb.h.  Reported by
27852         ludo@gnu.org (Ludovic Courtès).
27853
27854 2010-02-15  Jim Meyering  <meyering@redhat.com>
27855
27856         init.sh: improve portability and efficiency
27857         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27858         "dummy" in a for loop.
27859         Use '!', not '^' to select the complement of a character set used
27860         in a "case" statement.
27861         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27862         Suggestions from Eric Blake.
27863
27864         init.sh: automatically accommodate programs with the .exe suffix
27865         Automatically arrange for an invocation of "prog" to execute the
27866         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27867         may use the simpler "prog", yet still work when built on a system
27868         that requires specifying the added suffix.
27869         Do this by constructing a function named "prog" that invokes
27870         "prog.exe" for each .exe file in selected directories.
27871         * tests/init.sh (find_exe_basenames_): New function.
27872         (create_exe_shim_functions_): New function.
27873         (path_prepend_): Use it.
27874
27875         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27876         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27877         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27878
27879 2010-02-14  Jim Meyering  <meyering@redhat.com>
27880
27881         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27882         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27883         (sc_prohibit_hash_pjw_without_use): New rule.
27884
27885         maint.mk: allow the default upload destination dir to be overridden
27886         * top/maint.mk (upload_dest_dir_): Define with a default that
27887         preserves the status quo.
27888         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27889         Reported by Peter Simons.
27890
27891         maint.mk: prohibit inclusion of "hash.h" without_use
27892         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27893
27894 2010-02-10  Jim Meyering  <meyering@redhat.com>
27895
27896         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27897         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27898
27899 2010-02-09  Eric Blake  <ebb9@byu.net>
27900         and Bruno Haible  <bruno@clisp.org>
27901
27902         obstack-printf-posix: ensure declaration
27903         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27904         extracted from gl_FUNC_OBSTACK_PRINTF.
27905         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27906         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27907         Likewise.
27908         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27909         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27910         0.
27911
27912 2010-02-08  Bruno Haible  <bruno@clisp.org>
27913
27914         gnulib-tool: Fix typo in 2010-02-07 commit.
27915         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27916         Reported by Eric Blake.
27917
27918 2010-02-07  Bruno Haible  <bruno@clisp.org>
27919
27920         gnulib-tool: Fix up caching patches.
27921         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27922         option --no-cache. Use associative arrays when supported by the shell.
27923         (sed_comments): New variable.
27924         (modcache): Renamed from do_cache.
27925         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27926         abbreviate unnecessarily.
27927         (have_associative): New variable.
27928         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27929         way also for ksh and zsh.
27930         (func_init_sed_convert_to_cache_statements): New function, extracted
27931         from func_cache_lookup_module. Add support for associative arrays.
27932         Don't set the c_MODULE_cached variable here. Ignore all lines before
27933         the first field header. Remove only the final newline, not all trailing
27934         newlines. Support empty fields correctly. Limit the use of 'eval' to
27935         assignments.
27936         (func_get_description, func_get_status, func_get_notice,
27937         func_get_applicability, func_get_filelist, func_get_dependencies,
27938         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27939         func_get_automake_snippet, func_get_include_directive,
27940         func_get_link_directive, func_get_license, func_get_maintainer):
27941         Update documentation. List the unoptimized code first. Add support for
27942         associative arrays. Limit the use of 'eval' to assignments.
27943         (func_get_applicability): Undo stylistic pessimisations.
27944         (func_get_automake_snippet, func_get_include_directive): Reduce code
27945         duplication.
27946         (func_modules_transitive_closure, func_modules_add_dummy,
27947         func_modules_notice, func_modules_to_filelist, func_add_file,
27948         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27949         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27950         func_create_testdir, func_create_megatestdir): Update documentation.
27951
27952 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27953
27954         * gnulib-tool (func_cache_lookup_module): Store the module name
27955         belonging to the cache variable; error out if two different
27956         module names map to the same cache variable name.
27957
27958 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27959
27960         gnulib-tool: Make caching optional.
27961         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27962         Update matching short versions of --no-changelog.
27963         (func_usage): Update.
27964         (sed_extract_cache_prog): Renamed from ...
27965         (sed_extract_prog): ... this; revert to old extraction script.
27966         (func_get_description, func_get_status)
27967         (func_get_notice, func_get_applicability, func_get_filelist)
27968         (func_get_dependencies, func_get_autoconf_early_snippet)
27969         (func_get_autoconf_snippet, func_get_automake_snippet)
27970         (func_get_include_directive, func_get_link_directive)
27971         (func_get_license, func_get_maintainer): If $do_cache is false,
27972         use old, non-caching extraction scripts.
27973         Suggestion by Bruno Haible.
27974
27975 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27976
27977         gnulib-tool: cache module metainformation.
27978         * gnulib-tool (sed_extract_prog): Match newline before each
27979         header, and rewrite header to a shell variable suffix.
27980         (func_cache_var, func_cache_lookup_module): New functions,
27981         to turn a module name into a cache variable prefix, and to
27982         look up and cache module metainformation.
27983         (func_get_description, func_get_status)
27984         (func_get_notice, func_get_applicability, func_get_filelist)
27985         (func_get_dependencies, func_get_autoconf_early_snippet)
27986         (func_get_autoconf_snippet, func_get_automake_snippet)
27987         (func_get_include_directive, func_get_link_directive)
27988         (func_get_license, func_get_maintainer): Use
27989         func_cache_lookup_module.
27990
27991 2010-02-07  Bruno Haible  <bruno@clisp.org>
27992
27993         fnctl: Fix missing dependency.
27994         * modules/fcntl (Depends-on): Add getdtablesize.
27995         Reported by John W. Eaton <jwe@gnu.org>.
27996
27997 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27998
27999         Argp: fix recognition of short alias options.
28000
28001         * lib/argp-parse.c (convert_options): Fix improper use of
28002         `|' between character values.
28003         * tests/test-argp.c (group1_option): New alias option
28004         --read (-r).
28005         (group1_parser): Special handling for 'r'.
28006         (test15): New test case.
28007         (test_fun): Add test15.
28008         * tests/test-argp-2.sh: Update expected --help and --usage
28009         outputs.
28010
28011 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28012
28013         * tests/test-argp.c: Fix indentation.
28014
28015 2010-02-04  Eric Blake  <ebb9@byu.net>
28016
28017         gettimeofday: expose type of second argument
28018         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28019         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28020         * tests/test-gettimeofday.c: Use it to silence warning.
28021         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28022         the issue.
28023
28024 2010-02-03  Jim Meyering  <meyering@redhat.com>
28025
28026         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28027         * lib/regcomp.c (TYPE_SIGNED): Define.
28028         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28029
28030         regcomp.c: avoid a new -Wshadow warning
28031         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28032
28033 2010-02-01  Jim Meyering  <meyering@redhat.com>
28034
28035         removing useless parentheses in cpp #define directives
28036         For motivation, see commit c0221df4, "define STREQ(a,b)
28037         consistently, removing useless parentheses"
28038         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28039         * lib/mountlist.c (MNT_IGNORE): Likewise.
28040         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28041
28042 2010-02-01  Eric Blake  <ebb9@byu.net>
28043
28044         sys_time: use link-warning
28045         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28046         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28047         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28048         * modules/sys_time (Depends-on): Add warn-on-use.
28049         (Makefile.am): Always build replacement.
28050         (configure.ac): Update substitutions.
28051         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28052         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28053         bother with SYS_TIME_H.
28054         * modules/gettimeofday (configure.ac): Declare indicator.
28055         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28056         in use.
28057
28058         closein-tests: silence compiler warning
28059         * tests/test-closein.c (main): Ignore fread result.
28060         * modules/closein-tests (Depends-on): Add ignore-value.
28061
28062         tests: silence warning about system return
28063         * tests/test-areadlink-with-size.c (main): Ignore system result.
28064         * tests/test-areadlink.c (main): Likewise.
28065         * tests/test-areadlinkat-with-size.c (main): Likewise.
28066         * tests/test-areadlinkat.c (main): Likewise.
28067         * tests/test-canonicalize-lgpl.c (main): Likewise.
28068         * tests/test-canonicalize.c (main): Likewise.
28069         * tests/test-chown.c (main): Likewise.
28070         * tests/test-fchownat.c (main): Likewise.
28071         * tests/test-fdutimensat.c (main): Likewise.
28072         * tests/test-fstatat.c (main): Likewise.
28073         * tests/test-futimens.c (main): Likewise.
28074         * tests/test-lchown.c (main): Likewise.
28075         * tests/test-link.c (main): Likewise.
28076         * tests/test-linkat.c (main): Likewise.
28077         * tests/test-lstat.c (main): Likewise.
28078         * tests/test-mkdir.c (main): Likewise.
28079         * tests/test-mkdirat.c (main): Likewise.
28080         * tests/test-mkfifo.c (main): Likewise.
28081         * tests/test-mkfifoat.c (main): Likewise.
28082         * tests/test-mknod.c (main): Likewise.
28083         * tests/test-readlink.c (main): Likewise.
28084         * tests/test-remove.c (main): Likewise.
28085         * tests/test-rename.c (main): Likewise.
28086         * tests/test-renameat.c (main): Likewise.
28087         * tests/test-rmdir.c (main): Likewise.
28088         * tests/test-symlink.c (main): Likewise.
28089         * tests/test-symlinkat.c (main): Likewise.
28090         * tests/test-unlink.c (main): Likewise.
28091         * tests/test-unlinkat.c (main): Likewise.
28092         * tests/test-utimens.c (main): Likewise.
28093         * tests/test-utimensat.c (main): Likewise.
28094         * modules/areadlink-tests (Depends-on): Add ignore-value.
28095         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28096         * modules/areadlinkat-tests (Depends-on): Likewise.
28097         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28098         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28099         * modules/canonicalize-tests (Depends-on): Likewise.
28100         * modules/chown-tests (Depends-on): Likewise.
28101         * modules/fdutimensat-tests (Depends-on): Likewise.
28102         * modules/futimens-tests (Depends-on): Likewise.
28103         * modules/lchown-tests (Depends-on): Likewise.
28104         * modules/link-tests (Depends-on): Likewise.
28105         * modules/linkat-tests (Depends-on): Likewise.
28106         * modules/lstat-tests (Depends-on): Likewise.
28107         * modules/mkdir-tests (Depends-on): Likewise.
28108         * modules/mkfifo-tests (Depends-on): Likewise.
28109         * modules/mkfifoat-tests (Depends-on): Likewise.
28110         * modules/mknod-tests (Depends-on): Likewise.
28111         * modules/openat-tests (Depends-on): Likewise.
28112         * modules/readlink-tests (Depends-on): Likewise.
28113         * modules/remove-tests (Depends-on): Likewise.
28114         * modules/rename-tests (Depends-on): Likewise.
28115         * modules/renameat-tests (Depends-on): Likewise.
28116         * modules/rmdir-tests (Depends-on): Likewise.
28117         * modules/symlink-tests (Depends-on): Likewise.
28118         * modules/symlinkat-tests (Depends-on): Likewise.
28119         * modules/unlink-tests (Depends-on): Likewise.
28120         * modules/utimens-tests (Depends-on): Likewise.
28121         * modules/utimensat-tests (Depends-on): Likewise.
28122
28123 2010-01-31  Bruno Haible  <bruno@clisp.org>
28124
28125         Perform the same test for many <math.h> functions.
28126         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28127         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28128         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28129         of gl_MATHFUNC.
28130         * modules/acos (configure.ac): Likewise.
28131         * modules/asin (configure.ac): Likewise.
28132         * modules/atan (configure.ac): Likewise.
28133         * modules/atan2 (configure.ac): Likewise.
28134         * modules/cbrt (configure.ac): Likewise.
28135         * modules/copysign (configure.ac): Likewise.
28136         * modules/cos (configure.ac): Likewise.
28137         * modules/cosh (configure.ac): Likewise.
28138         * modules/erf (configure.ac): Likewise.
28139         * modules/erfc (configure.ac): Likewise.
28140         * modules/exp (configure.ac): Likewise.
28141         * modules/fmod (configure.ac): Likewise.
28142         * modules/hypot (configure.ac): Likewise.
28143         * modules/j0 (configure.ac): Likewise.
28144         * modules/j1 (configure.ac): Likewise.
28145         * modules/jn (configure.ac): Likewise.
28146         * modules/lgamma (configure.ac): Likewise.
28147         * modules/log (configure.ac): Likewise.
28148         * modules/log10 (configure.ac): Likewise.
28149         * modules/log1p (configure.ac): Likewise.
28150         * modules/pow (configure.ac): Likewise.
28151         * modules/remainder (configure.ac): Likewise.
28152         * modules/sin (configure.ac): Likewise.
28153         * modules/sinh (configure.ac): Likewise.
28154         * modules/tan (configure.ac): Likewise.
28155         * modules/tanh (configure.ac): Likewise.
28156         * modules/y0 (configure.ac): Likewise.
28157         * modules/y1 (configure.ac): Likewise.
28158         * modules/yn (configure.ac): Likewise.
28159         Suggested by Paolo Bonzini.
28160
28161 2010-01-31  Bruno Haible  <bruno@clisp.org>
28162
28163         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28164
28165 2010-01-31  Bruno Haible  <bruno@clisp.org>
28166
28167         Work around getdelim() bug on FreeBSD 8.0.
28168         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28169         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28170         not work.
28171         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28172         is 1.
28173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28174         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28175         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28176         a non-zero size.
28177         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28178
28179 2010-01-31  Bruno Haible  <bruno@clisp.org>
28180
28181         Work around getline() bug on FreeBSD 8.0.
28182         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28183         and a non-zero size.
28184         * tests/test-getline.c (main): Likewise.
28185         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28186         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28187
28188 2010-01-28  Eric Blake  <ebb9@byu.net>
28189
28190         regex: fix build failure
28191         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28192         platforms.
28193
28194 2010-01-28  Jim Meyering  <meyering@redhat.com>
28195
28196         regex: do not ignore memory allocation failure
28197         * lib/regex_internal.c (create_cd_newstate): Detect
28198         re_node_set_init_copy failure.   Extracted from glibc commit
28199         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28200
28201         regex: sync more white-space changes from libc
28202         * lib/regex_internal.c: White-space only changes.
28203         * lib/regexec.c: Likewise.
28204
28205         regex: add many uses of __attribute_warn_unused_result__
28206         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28207         * lib/regexec.c: Likewise.
28208         Extracted from a messy glibc commit.
28209
28210         regcomp.c: spelling and merge-artifact from glibc
28211         * lib/regcomp.c: Merge remainder of glibc's
28212         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28213
28214         regcomp.c: sync white-space changes from glibc
28215         * lib/regcomp.c: Merge to accommodate white space
28216         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28217
28218         regcomp.c: do not ignore internal return values
28219         * lib/regcomp.c: Do not ignore internal return values.
28220         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28221         but without its white-space changes and spelling fixes.
28222
28223         regex_internal.h: define __attribute_warn_unused_result__
28224         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28225
28226         maint: add a syntax-check rule to check for vulnerable Makefile.in
28227         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28228
28229 2010-01-27  Jim Meyering  <meyering@redhat.com>
28230
28231         ncftpput-ftp: clean up spaces
28232         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28233         Remove trailing blanks.
28234
28235 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28236
28237         * build-aux/git-version-gen: Fix copyright statement.
28238         * build-aux/gnupload: Likewise.
28239         * tests/test-arcfour.c: Likewise.
28240         * tests/test-arctwo.c: Likewise.
28241         * tests/test-count-one-bits.c: Likewise.
28242         * tests/test-crc.c: Likewise.
28243         * tests/test-des.c: Likewise.
28244         * tests/test-gc-arcfour.c: Likewise.
28245         * tests/test-gc-arctwo.c: Likewise.
28246         * tests/test-gc-des.c: Likewise.
28247         * tests/test-gc-hmac-md5.c: Likewise.
28248         * tests/test-gc-hmac-sha1.c: Likewise.
28249         * tests/test-gc-md2.c: Likewise.
28250         * tests/test-gc-md4.c: Likewise.
28251         * tests/test-gc-md5.c: Likewise.
28252         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28253         * tests/test-gc-rijndael.c: Likewise.
28254         * tests/test-gc-sha1.c: Likewise.
28255         * tests/test-gc.c: Likewise.
28256         * tests/test-gethostname.c: Likewise.
28257         * tests/test-gettimeofday.c: Likewise.
28258         * tests/test-hash.c: Likewise.
28259         * tests/test-hmac-md5.c: Likewise.
28260         * tests/test-hmac-sha1.c: Likewise.
28261         * tests/test-md2.c: Likewise.
28262         * tests/test-md4.c: Likewise.
28263         * tests/test-md5.c: Likewise.
28264         * tests/test-memchr.c: Likewise.
28265         * tests/test-memchr2.c: Likewise.
28266         * tests/test-memcmp.c: Likewise.
28267         * tests/test-memmem.c: Likewise.
28268         * tests/test-memrchr.c: Likewise.
28269         * tests/test-rawmemchr.c: Likewise.
28270         * tests/test-read-file.c: Likewise.
28271         * tests/test-rijndael.c: Likewise.
28272         * tests/test-sockets.c: Likewise.
28273         * tests/test-strchrnul.c: Likewise.
28274         * tests/test-strstr.c: Likewise.
28275         * tests/test-strtod.c: Likewise.
28276         * build-aux/ncftpput-ftp: Likewise.
28277
28278 2010-01-26  Eric Blake  <ebb9@byu.net>
28279
28280         ignore-value: update recommended header name
28281         * modules/ignore-value (Include): Only use <> for headers that
28282         exist in glibc.
28283
28284 2010-01-26  Jim Meyering  <meyering@redhat.com>
28285
28286         test-userspec.c: avoid compiler warnings
28287         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28288         and "initialization discards qualifiers..." warnings.
28289         Put the first "uid" in its own scope, and make char* members "const".
28290
28291 2010-01-25  Bruno Haible  <bruno@clisp.org>
28292
28293         gnulib-tool: Make warning diagnostics consistent.
28294         * gnulib-tool (func_warning): New function.
28295         Use it everywhere where gnulib-tool produces output to stderr and it is
28296         not a fatal error.
28297
28298 2010-01-25  Bruno Haible  <bruno@clisp.org>
28299
28300         Fix test dependencies.
28301         * modules/xstrtol-tests (Depends-on): Add inttypes.
28302         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28303
28304 2010-01-25 Pádraig Brady <P@draigBrady.com>
28305
28306         syntax-check: detect incorrect boolean macro values in config.h
28307         * modules/maintainer-makefile (configure.ac): Parameterize the location
28308         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28309         The logic is from Eric Blake and the location indicated by Jim Meyering.
28310         Note the more natural CONFIG_HEADER name is prohibited by automake
28311         for backwards compatibility reasons.
28312         * top/maint.mk (sc_Wundef_boolean): New rule.
28313
28314 2010-01-25  Jim Meyering  <meyering@redhat.com>
28315
28316         bootstrap: detect MacOS 10.6's shasum, too
28317         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28318         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28319
28320 2010-01-23  Jim Meyering  <meyering@redhat.com>
28321
28322         xstrtoll: new module
28323         * modules/xstrtoll: New file.
28324         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28325         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28326         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28327         ./configure fails if you use this module and lack "long long".
28328         * modules/xstrtoll-tests: New module.
28329         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28330         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28331         new init.sh-based test framework.
28332
28333 2010-01-24  Bruno Haible  <bruno@clisp.org>
28334
28335         Tests for module 'yn'.
28336         * modules/yn-tests: New file.
28337         * tests/test-yn.c: New file.
28338
28339         Tests for module 'y1'.
28340         * modules/y1-tests: New file.
28341         * tests/test-y1.c: New file.
28342
28343         Tests for module 'y0'.
28344         * modules/y0-tests: New file.
28345         * tests/test-y0.c: New file.
28346
28347         Tests for module 'tanh'.
28348         * modules/tanh-tests: New file.
28349         * tests/test-tanh.c: New file.
28350
28351         Tests for module 'tan'.
28352         * modules/tan-tests: New file.
28353         * tests/test-tan.c: New file.
28354
28355         Tests for module 'sqrt'.
28356         * modules/sqrt-tests: New file.
28357         * tests/test-sqrt.c: New file.
28358
28359         Tests for module 'sinh'.
28360         * modules/sinh-tests: New file.
28361         * tests/test-sinh.c: New file.
28362
28363         Tests for module 'sin'.
28364         * modules/sin-tests: New file.
28365         * tests/test-sin.c: New file.
28366
28367         Tests for module 'rint'.
28368         * modules/rint-tests: New file.
28369         * tests/test-rint.c: New file.
28370
28371         Tests for module 'remainder'.
28372         * modules/remainder-tests: New file.
28373         * tests/test-remainder.c: New file.
28374
28375         Tests for module 'pow'.
28376         * modules/pow-tests: New file.
28377         * tests/test-pow.c: New file.
28378
28379         Tests for module 'nextafter'.
28380         * modules/nextafter-tests: New file.
28381         * tests/test-nextafter.c: New file.
28382
28383         Tests for module 'modf'.
28384         * modules/modf-tests: New file.
28385         * tests/test-modf.c: New file.
28386
28387         Tests for module 'logb'.
28388         * modules/logb-tests: New file.
28389         * tests/test-logb.c: New file.
28390
28391         Tests for module 'log1p'.
28392         * modules/log1p-tests: New file.
28393         * tests/test-log1p.c: New file.
28394
28395         Tests for module 'log10'.
28396         * modules/log10-tests: New file.
28397         * tests/test-log10.c: New file.
28398
28399         Tests for module 'log'.
28400         * modules/log-tests: New file.
28401         * tests/test-log.c: New file.
28402
28403         Tests for module 'lgamma'.
28404         * modules/lgamma-tests: New file.
28405         * tests/test-lgamma.c: New file.
28406
28407         Tests for module 'ldexp'.
28408         * modules/ldexp-tests: New file.
28409         * tests/test-ldexp.c: New file.
28410
28411         Tests for module 'jn'.
28412         * modules/jn-tests: New file.
28413         * tests/test-jn.c: New file.
28414
28415         Tests for module 'j1'.
28416         * modules/j1-tests: New file.
28417         * tests/test-j1.c: New file.
28418
28419         Tests for module 'j0'.
28420         * modules/j0-tests: New file.
28421         * tests/test-j0.c: New file.
28422
28423         Tests for module 'hypot'.
28424         * modules/hypot-tests: New file.
28425         * tests/test-hypot.c: New file.
28426
28427         Tests for module 'fmod'.
28428         * modules/fmod-tests: New file.
28429         * tests/test-fmod.c: New file.
28430
28431         Tests for module 'fabs'.
28432         * modules/fabs-tests: New file.
28433         * tests/test-fabs.c: New file.
28434
28435         Tests for module 'exp'.
28436         * modules/exp-tests: New file.
28437         * tests/test-exp.c: New file.
28438
28439         Tests for module 'erfc'.
28440         * modules/erfc-tests: New file.
28441         * tests/test-erfc.c: New file.
28442
28443         Tests for module 'erf'.
28444         * modules/erf-tests: New file.
28445         * tests/test-erf.c: New file.
28446
28447         Tests for module 'cosh'.
28448         * modules/cosh-tests: New file.
28449         * tests/test-cosh.c: New file.
28450
28451         Tests for module 'cos'.
28452         * modules/cos-tests: New file.
28453         * tests/test-cos.c: New file.
28454
28455         Tests for module 'copysign'.
28456         * modules/copysign-tests: New file.
28457         * tests/test-copysign.c: New file.
28458
28459         Tests for module 'cbrt'.
28460         * modules/cbrt-tests: New file.
28461         * tests/test-cbrt.c: New file.
28462
28463         Tests for module 'atan2'.
28464         * modules/atan2-tests: New file.
28465         * tests/test-atan2.c: New file.
28466
28467         Tests for module 'atan'.
28468         * modules/atan-tests: New file.
28469         * tests/test-atan.c: New file.
28470
28471         Tests for module 'asin'.
28472         * modules/asin-tests: New file.
28473         * tests/test-asin.c: New file.
28474
28475         Tests for module 'acos'.
28476         * modules/acos-tests: New file.
28477         * tests/test-acos.c: New file.
28478
28479 2010-01-24  Bruno Haible  <bruno@clisp.org>
28480
28481         Fix tests for common <math.h> functions.
28482         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28483         code snippet that references the function pointer, rather than merely
28484         calling the function. Substitute the FUNC_LIBM variable.
28485         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28486         * modules/acos (configure.ac): Likewise.
28487         * modules/asin (configure.ac): Likewise.
28488         * modules/atan (configure.ac): Likewise.
28489         * modules/atan2 (configure.ac): Likewise.
28490         * modules/cbrt (configure.ac): Likewise.
28491         * modules/copysign (configure.ac): Likewise.
28492         * modules/cos (configure.ac): Likewise.
28493         * modules/cosh (configure.ac): Likewise.
28494         * modules/erf (configure.ac): Likewise.
28495         * modules/erfc (configure.ac): Likewise.
28496         * modules/exp (configure.ac): Likewise.
28497         * modules/fabs (configure.ac): Likewise.
28498         * modules/fmod (configure.ac): Likewise.
28499         * modules/hypot (configure.ac): Likewise.
28500         * modules/j0 (configure.ac): Likewise.
28501         * modules/j1 (configure.ac): Likewise.
28502         * modules/jn (configure.ac): Likewise.
28503         * modules/ldexp (configure.ac): Likewise.
28504         * modules/lgamma (configure.ac): Likewise.
28505         * modules/log (configure.ac): Likewise.
28506         * modules/log10 (configure.ac): Likewise.
28507         * modules/log1p (configure.ac): Likewise.
28508         * modules/logb (configure.ac): Likewise.
28509         * modules/modf (configure.ac): Likewise.
28510         * modules/nextafter (configure.ac): Likewise.
28511         * modules/pow (configure.ac): Likewise.
28512         * modules/remainder (configure.ac): Likewise.
28513         * modules/rint (configure.ac): Likewise.
28514         * modules/sin (configure.ac): Likewise.
28515         * modules/sinh (configure.ac): Likewise.
28516         * modules/tan (configure.ac): Likewise.
28517         * modules/tanh (configure.ac): Likewise.
28518         * modules/y0 (configure.ac): Likewise.
28519         * modules/y1 (configure.ac): Likewise.
28520         * modules/yn (configure.ac): Likewise.
28521
28522 2010-01-24  Bruno Haible  <bruno@clisp.org>
28523
28524         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28525         * tests/test-acosl.c (x): New variable.
28526         (main): Store argument in x and fetch it from x.
28527         * tests/test-asinl.c (x): New variable.
28528         (main): Store argument in x and fetch it from x.
28529         * tests/test-atanl.c (x): New variable.
28530         (main): Store argument in x and fetch it from x.
28531         * tests/test-cosl.c (x): New variable.
28532         (main): Store argument in x and fetch it from x.
28533         * tests/test-expl.c (x): New variable.
28534         (main): Store argument in x and fetch it from x.
28535         * tests/test-logl.c (x): New variable.
28536         (main): Store argument in x and fetch it from x.
28537         * tests/test-sinl.c (x): New variable.
28538         (main): Store argument in x and fetch it from x.
28539         * tests/test-sqrtl.c (x): New variable.
28540         (main): Store argument in x and fetch it from x.
28541         * tests/test-tanl.c (x): New variable.
28542         (main): Store argument in x and fetch it from x.
28543
28544 2010-01-24  Bruno Haible  <bruno@clisp.org>
28545
28546         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28547         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28548         assignments to the initial TESTS_ENVIRONMENT.
28549         * doc/gnulib.texi (Unit test modules): Document it.
28550         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28551         TESTS_ENVIRONMENT.
28552         * modules/btowc-tests (Makefile.am): Likewise.
28553         * modules/c-stack-tests (Makefile.am): Likewise.
28554         * modules/c-strcase-tests (Makefile.am): Likewise.
28555         * modules/copy-file-tests (Makefile.am): Likewise.
28556         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28557         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28558         * modules/mbrtowc-tests (Makefile.am): Likewise.
28559         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28560         * modules/mbscasestr-tests (Makefile.am): Likewise.
28561         * modules/mbschr-tests (Makefile.am): Likewise.
28562         * modules/mbscspn-tests (Makefile.am): Likewise.
28563         * modules/mbsinit-tests (Makefile.am): Likewise.
28564         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28565         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28566         * modules/mbspbrk-tests (Makefile.am): Likewise.
28567         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28568         * modules/mbsrchr-tests (Makefile.am): Likewise.
28569         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28570         * modules/mbsspn-tests (Makefile.am): Likewise.
28571         * modules/mbsstr-tests (Makefile.am): Likewise.
28572         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28573         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28574         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28575         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28576         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28577         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28578         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28579         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28580         * modules/wcrtomb-tests (Makefile.am): Likewise.
28581         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28582         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28583         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28584         assignments from TESTS_ENVIRONMENT.
28585         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28586         augmentation.
28587         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28588         * modules/atexit-tests (Makefile.am): Likewise.
28589         * modules/binary-io-tests (Makefile.am): Likewise.
28590         * modules/closein-tests (Makefile.am): Likewise.
28591         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28592         * modules/exclude-tests (Makefile.am): Likewise.
28593         * modules/fflush-tests (Makefile.am): Likewise.
28594         * modules/fpending-tests (Makefile.am): Likewise.
28595         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28596         * modules/freadahead-tests (Makefile.am): Likewise.
28597         * modules/freadptr-tests (Makefile.am): Likewise.
28598         * modules/freadseek-tests (Makefile.am): Likewise.
28599         * modules/fseek-tests (Makefile.am): Likewise.
28600         * modules/fseeko-tests (Makefile.am): Likewise.
28601         * modules/ftell-tests (Makefile.am): Likewise.
28602         * modules/ftello-tests (Makefile.am): Likewise.
28603         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28604         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28605         * modules/lseek-tests (Makefile.am): Likewise.
28606         * modules/parse-duration-tests (Makefile.am): Likewise.
28607         * modules/perror-tests (Makefile.am): Likewise.
28608         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28609         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28610         * modules/pipe-tests (Makefile.am): Likewise.
28611         * modules/pread-tests (Makefile.am): Likewise.
28612         * modules/printf-posix-tests (Makefile.am): Likewise.
28613         * modules/select-tests (Makefile.am): Likewise.
28614         * modules/sigpipe-tests (Makefile.am): Likewise.
28615         * modules/tsearch-tests (Makefile.am): Likewise.
28616         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28617         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28618         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28619         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28620         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28621         * modules/version-etc-tests (Makefile.am): Likewise.
28622         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28623         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28624         * modules/xalloc-die-tests (Makefile.am): Likewise.
28625         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28626         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28627         * modules/xstrtol-tests (Makefile.am): Likewise.
28628         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28629         * modules/yesno-tests (Makefile.am): Likewise.
28630         Suggested by Jim Meyering.
28631
28632 2010-01-24  Bruno Haible  <bruno@clisp.org>
28633
28634         More documentation.
28635         * doc/gnulib.texi (Writing modules): New chapter.
28636         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28637         the new chapter.
28638
28639 2010-01-24  Jim Meyering  <meyering@redhat.com>
28640
28641         maint.mk: do not prepend "./" after filtering
28642         * top/maint.mk (_prepend_srcdir_prefix): New variable
28643         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28644         "./" when $(srcdir) is ".".
28645
28646         define STREQ(a,b) consistently, removing useless parentheses
28647         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28648         since the only risk is that "a" or "b" contains an unparenthesized
28649         comma, but if either did that, STREQ would have 3 or more arguments.
28650         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28651         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28652         * lib/hash-triple.c (STREQ): Likewise.
28653         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28654         * lib/getugroups.c (STREQ): Likewise.
28655
28656 2010-01-23  Jim Meyering  <meyering@redhat.com>
28657
28658         maint.mk: fix syntax-check in a non-srcdir build directory
28659         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28660         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28661
28662 2010-01-22  Jim Meyering  <meyering@redhat.com>
28663
28664         userspec: add unit tests
28665         * tests/test-userspec.c: New file.
28666         * modules/userspec-tests: Likewise.
28667
28668 2010-01-21  Jim Meyering  <meyering@redhat.com>
28669
28670         maint.mk: handle source file names containing "." robustly
28671         * top/maint.mk (_dot_escaped_srcdir): Define.
28672         (VC_LIST): Use it in LHS of sed substitution.
28673
28674 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28675
28676         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28677         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28678         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28679         from a non-srcdir build.
28680
28681 2010-01-20  Eric Blake  <ebb9@byu.net>
28682
28683         warn-on-use: use instead of link-warning
28684         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28685         * modules/unistd (Depends-on, Makefile.am): Likewise.
28686         * modules/arpa_inet (Depends-on): Replace link-warning with
28687         warn-on-use.
28688         (Makefile.am): Update rules accordingly.
28689         * modules/ctype (Depends-on, Makefile.am): Likewise.
28690         * modules/dirent (Depends-on, Makefile.am): Likewise.
28691         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28692         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28693         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28694         * modules/locale (Depends-on, Makefile.am): Likewise.
28695         * modules/math (Depends-on, Makefile.am): Likewise.
28696         * modules/search (Depends-on, Makefile.am): Likewise.
28697         * modules/signal (Depends-on, Makefile.am): Likewise.
28698         * modules/spawn (Depends-on, Makefile.am): Likewise.
28699         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28700         * modules/string (Depends-on, Makefile.am): Likewise.
28701         * modules/strings (Depends-on, Makefile.am): Likewise.
28702         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28703         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28704         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28705         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28706         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28707         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28708         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28709         * modules/wchar (Depends-on, Makefile.am): Likewise.
28710         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28711         should be poisoned.
28712         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28713         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28714         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28715         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28716         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28717         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28718         * m4/math_h.m4 (gl_MATH_H): Likewise.
28719         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28720         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28721         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28722         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28723         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28724         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28725         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28726         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28727         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28728         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28729         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28730         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28731         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28732         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28733         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28734         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28735         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28736         GL_LINK_WARNING.
28737         * lib/ctype.in.h: Likewise.
28738         * lib/dirent.in.h: Likewise.
28739         * lib/fcntl.in.h: Likewise.
28740         * lib/inttypes.in.h: Likewise.
28741         * lib/langinfo.in.h: Likewise.
28742         * lib/locale.in.h: Likewise.
28743         * lib/math.in.h: Likewise.
28744         * lib/search.in.h: Likewise.
28745         * lib/signal.in.h: Likewise.
28746         * lib/spawn.in.h: Likewise.
28747         * lib/stdio.in.h: Likewise.
28748         * lib/stdlib.in.h: Likewise.
28749         * lib/string.in.h: Likewise.
28750         * lib/strings.in.h: Likewise.
28751         * lib/sys_file.in.h: Likewise.
28752         * lib/sys_ioctl.in.h: Likewise.
28753         * lib/sys_select.in.h: Likewise.
28754         * lib/sys_socket.in.h: Likewise.
28755         * lib/sys_stat.in.h: Likewise.
28756         * lib/sys_times.in.h: Likewise.
28757         * lib/sys_utsname.in.h: Likewise.
28758         * lib/unistd.in.h: Likewise.
28759         * lib/wchar.in.h: Likewise.
28760
28761 2010-01-20  Bruno Haible  <bruno@clisp.org>
28762
28763         Avoid duplicate -lm.
28764         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28765         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28766         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28767         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28768         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28769         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28770         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28771         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28772         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28773         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28774         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28775         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28776         Reported by Paolo Bonzini.
28777
28778 2010-01-19  Bruno Haible  <bruno@clisp.org>
28779
28780         langinfo, nl_langinfo: Relicense under LGPLv2+.
28781         * modules/langinfo (License): Change to LGPLv2+.
28782         * modules/nl_langinfo (License): Likewise.
28783         Patch by David Lutterkort <lutter@redhat.com>.
28784
28785 2010-01-19  Bruno Haible  <bruno@clisp.org>
28786
28787         Avoid compilation error with cc on OSF/1 5.1.
28788         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28789         statement, not before.
28790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28791
28792 2010-01-18  Bruno Haible  <bruno@clisp.org>
28793
28794         Avoid a link error due to the __printf__ symbol.
28795         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28796         and 2.6.x.
28797         (__format__, __printf__): Remove definitions.
28798         * lib/argp-fmtstream.h: Likewise.
28799         * lib/argp.h: Likewise.
28800         * lib/error.h: Likewise.
28801         * lib/vasnprintf.h: Likewise.
28802         * lib/xprintf.h: Likewise.
28803         * lib/xvasprintf.h: Likewise.
28804         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28805
28806 2010-01-18  Bruno Haible  <bruno@clisp.org>
28807
28808         Tests for module 'tanl'.
28809         * modules/tanl-tests: New file.
28810         * tests/test-tanl.c: New file.
28811
28812         Tests for module 'sqrtl'.
28813         * modules/sqrtl-tests: New file.
28814         * tests/test-sqrtl.c: New file.
28815
28816         Tests for module 'sinl'.
28817         * modules/sinl-tests: New file.
28818         * tests/test-sinl.c: New file.
28819
28820         Tests for module 'logl'.
28821         * modules/logl-tests: New file.
28822         * tests/test-logl.c: New file.
28823
28824         Tests for module 'expl'.
28825         * modules/expl-tests: New file.
28826         * tests/test-expl.c: New file.
28827
28828         Tests for module 'cosl'.
28829         * modules/cosl-tests: New file.
28830         * tests/test-cosl.c: New file.
28831
28832         Tests for module 'atanl'.
28833         * modules/atanl-tests: New file.
28834         * tests/test-atanl.c: New file.
28835
28836         Tests for module 'asinl'.
28837         * modules/asinl-tests: New file.
28838         * tests/test-asinl.c: New file.
28839
28840         Tests for module 'acosl'.
28841         * modules/acosl-tests: New file.
28842         * tests/test-acosl.c: New file.
28843
28844         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28845         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28846         tanl): Use the standard gnulib idiom.
28847         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28848         * lib/sinl.c: Likewise.
28849         * lib/tanl.c: Don't include trigl.c.
28850         (kernel_tanl): Make static.
28851         * lib/sincosl.c: Include trigl.h first.
28852         * lib/trigl.c: Likewise.
28853         * m4/acosl.m4: New file.
28854         * m4/asinl.m4: New file.
28855         * m4/atanl.m4: New file.
28856         * m4/cosl.m4: New file.
28857         * m4/expl.m4: New file.
28858         * m4/logl.m4: New file.
28859         * m4/sinl.m4: New file.
28860         * m4/sqrtl.m4: New file.
28861         * m4/tanl.m4: New file.
28862         * m4/mathl.m4: Remove file.
28863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28864         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28865         Don't initialize GNULIB_MATHL.
28866         * modules/acosl: New file.
28867         * modules/asinl: New file.
28868         * modules/atanl: New file.
28869         * modules/cosl: New file.
28870         * modules/expl: New file.
28871         * modules/logl: New file.
28872         * modules/sinl: New file.
28873         * modules/sqrtl: New file.
28874         * modules/tanl: New file.
28875         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28876         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28877         substitute GNULIB_MATHL.
28878         * modules/mathl: Rewritten.
28879         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28880         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28881         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28882         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28883         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28884         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28885         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28886         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28887         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28888
28889 2010-01-18  Bruno Haible  <bruno@clisp.org>
28890
28891         sqrt: Make gl_FUNC_SQRT requirable.
28892         * m4/sqrt.m4: New file.
28893         * modules/sqrt (Files): Add it.
28894         (configure.ac): Invoke gl_FUNC_SQRT.
28895
28896 2010-01-18  Bruno Haible  <bruno@clisp.org>
28897
28898         New modules for common <math.h> functions.
28899         * m4/mathfunc.m4: New file.
28900         * modules/acos: New file.
28901         * modules/asin: New file.
28902         * modules/atan: New file.
28903         * modules/atan2: New file.
28904         * modules/cbrt: New file.
28905         * modules/copysign: New file.
28906         * modules/cos: New file.
28907         * modules/cosh: New file.
28908         * modules/erf: New file.
28909         * modules/erfc: New file.
28910         * modules/exp: New file.
28911         * modules/fabs: New file.
28912         * modules/fmod: New file.
28913         * modules/hypot: New file.
28914         * modules/j0: New file.
28915         * modules/j1: New file.
28916         * modules/jn: New file.
28917         * modules/ldexp: New file.
28918         * modules/lgamma: New file.
28919         * modules/log: New file.
28920         * modules/log10: New file.
28921         * modules/log1p: New file.
28922         * modules/logb: New file.
28923         * modules/modf: New file.
28924         * modules/nextafter: New file.
28925         * modules/pow: New file.
28926         * modules/remainder: New file.
28927         * modules/rint: New file.
28928         * modules/sin: New file.
28929         * modules/sinh: New file.
28930         * modules/sqrt: New file.
28931         * modules/tan: New file.
28932         * modules/tanh: New file.
28933         * modules/y0: New file.
28934         * modules/y1: New file.
28935         * modules/yn: New file.
28936         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28937         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28938         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28939         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28940         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28941         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28942         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28943         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28944         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28945         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28946         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28947         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28948         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28949         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28950         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28951         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28952         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28953         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28954         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28955         * doc/posix-functions/log.texi: Mention the 'log' module.
28956         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28957         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28958         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28959         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28960         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28961         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28962         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28963         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28964         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28965         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28966         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28967         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28968         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28969         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28970         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28971         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28972
28973 2010-01-18  Jim Meyering  <meyering@redhat.com>
28974
28975         ignore-value: relax license to LGPLv2+
28976         * modules/ignore-value (License): Relax to LGPLv2+.
28977
28978         getdate: don't leak when TZ contains two or more '"'s
28979         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28980         double quote in TZ after the first one.
28981
28982         readtokens: do not leak internal token_lengths buffer
28983         * lib/readtokens.c (readtokens): Free the local, lengths,
28984         when the supplied "token_lengths" parameter is NULL.
28985
28986 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28987
28988         Fix a couple of missing LIBTHREAD link failures on AIX.
28989         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28990         $(LIBTHREAD).
28991         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28992
28993         Link test-poll against INET_PTON_LIB.
28994         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28995         for inet_pton on Solaris 10.
28996
28997 2010-01-17  Bruno Haible  <bruno@clisp.org>
28998
28999         unistdio/*-sprintf: Fix typo in module description.
29000         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29001         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29002         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29003         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29004         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29005         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29006         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29007         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29008
29009 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29010
29011         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29012         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29013         variables in shell case patterns, for AIX and HP-UX ksh.
29014
29015         Split large sed scripts, for HP-UX sed.
29016         * modules/stdio: Split sed scripts around 50 sed commands,
29017         to avoid HP-UX limit of 99 commands, in the near future.
29018         * modules/string: Likewise.
29019         * modules/unistd: Likewise.
29020
29021         gnulib-tool: avoid writing in the current directory.
29022         * gnulib-tool (func_emit_lib_Makefile_am)
29023         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29024         not in the current directory, so concurrent gnulib-tool
29025         instances do not interfere.
29026
29027 2010-01-16  Jim Meyering  <meyering@redhat.com>
29028
29029         doc: update users.txt
29030         * users.txt: Add grep.
29031         (diffutils, gzip): Update URLs.
29032
29033 2010-01-12  Bruno Haible  <bruno@clisp.org>
29034
29035         posix_spawn: Avoid test failure on Cygwin.
29036         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29037         characters.
29038         Reported by Simon Josefsson.
29039
29040 2010-01-12  Bruno Haible  <bruno@clisp.org>
29041
29042         * tests/test-cond.c (main): When skipping the test, show the reason.
29043
29044 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29045
29046         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29047
29048 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29049
29050         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29051         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29052
29053 2010-01-12  Eric Blake  <ebb9@byu.net>
29054
29055         build: guarantee AS_VAR_IF
29056         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29057         (gl_AS_VAR_IF): Move...
29058         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29059         Reported by Simon Josefsson.
29060
29061 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29062
29063         * lib/stdio.in.h: Fix typo.
29064
29065 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29066
29067         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29068         libgpg-error.
29069
29070 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29071
29072         * tests/test-xalloc-die.sh: Use $EXEEXT.
29073
29074 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29075             Bruno Haible  <bruno@clisp.org>
29076
29077         getlogin, getlogin_r: Avoid test failure.
29078         * tests/test-getlogin.c: Include <stdio.h>.
29079         (main): Skip the test when the function fails because stdin is not a
29080         tty.
29081         * tests/test-getlogin_r.c: Include <stdio.h>.
29082         (main): Skip the test when the function fails because stdin is not a
29083         tty.
29084
29085 2010-01-11  Eric Blake  <ebb9@byu.net>
29086
29087         tests: avoid more large file warnings
29088         * tests/test-fflush.c: Avoid warning about ftell use.
29089         * tests/test-fseek.c: Avoid warning about fseek use.
29090
29091 2010-01-10  Bruno Haible  <bruno@clisp.org>
29092
29093         nproc: Work better on Linux when /proc and /sys are not mounted.
29094         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29095         as lower bound when, on glibc/Linux systems,
29096         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29097         Suggested by Pádraig Brady <P@draigbrady.com>.
29098         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29099
29100         nproc: Refactor.
29101         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29102         extracted from num_processors.
29103         (num_processors): Call it.
29104
29105 2010-01-11  Jim Meyering  <meyering@redhat.com>
29106
29107         utimecmp: avoid new warning from upcoming gcc-4.5.0
29108         * lib/utimecmp.c (BILLION): Define using #define rather than an
29109         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29110
29111 2010-01-11  Eric Blake  <ebb9@byu.net>
29112
29113         math: add portability warnings for classification macros
29114         * modules/math (Depends-on): Add warn-on-use.
29115         (Makefile.am): Provide new substitutions.
29116         * m4/math_h.m4 (gl_MATH_H): Require inline.
29117         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29118         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29119         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29120         implement warnings.
29121
29122         unistd: warn on use of environ without module
29123         * modules/unistd (Depends-on): Add warn-on-use.
29124         (Makefile.am): Provide new substitutions.
29125         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29126         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29127
29128         stdio: warn on suspicious uses
29129         * modules/stdio (Depends-on): Add warn-on-use.
29130         (Makefile.am): Provide new substitutions.
29131         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29132         fseeko.
29133         * lib/stdio.in.h (gets): Always warn on use.
29134         (fseek, ftell): Adjust when warnings are issued, and honor
29135         _GL_NO_LARGE_FILES as a way to silence the warning.
29136         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29137         any warning about large file offsets.
29138         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29139         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29140         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29141         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29142         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29143         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29144         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29145         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29146
29147         warn-on-use: new module
29148         * modules/warn-on-use: New file.
29149         * build-aux/warn-on-use.h: Likewise.
29150         * m4/warn-on-use.m4: Likewise.
29151         * MODULES.html.sh (Support for building): Mention it.
29152
29153 2010-01-10  Bruno Haible  <bruno@clisp.org>
29154
29155         Tests for module 'unistr/u32-strdup'.
29156         * modules/unistr/u32-strdup-tests: New file.
29157         * tests/unistr/test-u32-strdup.c: New file.
29158
29159         Tests for module 'unistr/u16-strdup'.
29160         * modules/unistr/u16-strdup-tests: New file.
29161         * tests/unistr/test-u16-strdup.c: New file.
29162
29163         Tests for module 'unistr/u8-strdup'.
29164         * modules/unistr/u8-strdup-tests: New file.
29165         * tests/unistr/test-u8-strdup.c: New file.
29166         * tests/unistr/test-strdup.h: New file.
29167
29168         Tests for module 'unistr/u32-strncmp'.
29169         * modules/unistr/u32-strncmp-tests: New file.
29170         * tests/unistr/test-u32-strncmp.c: New file.
29171
29172         Tests for module 'unistr/u16-strncmp'.
29173         * modules/unistr/u16-strncmp-tests: New file.
29174         * tests/unistr/test-u16-strncmp.c: New file.
29175
29176         Tests for module 'unistr/u8-strncmp'.
29177         * modules/unistr/u8-strncmp-tests: New file.
29178         * tests/unistr/test-u8-strncmp.c: New file.
29179         * tests/unistr/test-strncmp.h: New file.
29180
29181         Tests for module 'unistr/u32-strcoll'.
29182         * modules/unistr/u32-strcoll-tests: New file.
29183         * tests/unistr/test-u32-strcoll.c: New file.
29184
29185         Tests for module 'unistr/u16-strcoll'.
29186         * modules/unistr/u16-strcoll-tests: New file.
29187         * tests/unistr/test-u16-strcoll.c: New file.
29188
29189         Tests for module 'unistr/u8-strcoll'.
29190         * modules/unistr/u8-strcoll-tests: New file.
29191         * tests/unistr/test-u8-strcoll.c: New file.
29192
29193         Tests for module 'unistr/u32-strcmp'.
29194         * modules/unistr/u32-strcmp-tests: New file.
29195         * tests/unistr/test-u32-strcmp.c: New file.
29196         * tests/unistr/test-u32-strcmp.h: New file.
29197
29198         Tests for module 'unistr/u16-strcmp'.
29199         * modules/unistr/u16-strcmp-tests: New file.
29200         * tests/unistr/test-u16-strcmp.c: New file.
29201         * tests/unistr/test-u16-strcmp.h: New file.
29202
29203         Tests for module 'unistr/u8-strcmp'.
29204         * modules/unistr/u8-strcmp-tests: New file.
29205         * tests/unistr/test-u8-strcmp.c: New file.
29206         * tests/unistr/test-u8-strcmp.h: New file.
29207         * tests/unistr/test-strcmp.h: New file.
29208
29209         Tests for module 'unistr/u32-strncat'.
29210         * modules/unistr/u32-strncat-tests: New file.
29211         * tests/unistr/test-u32-strncat.c: New file.
29212
29213         Tests for module 'unistr/u16-strncat'.
29214         * modules/unistr/u16-strncat-tests: New file.
29215         * tests/unistr/test-u16-strncat.c: New file.
29216
29217         Tests for module 'unistr/u8-strncat'.
29218         * modules/unistr/u8-strncat-tests: New file.
29219         * tests/unistr/test-u8-strncat.c: New file.
29220         * tests/unistr/test-strncat.h: New file.
29221
29222         Tests for module 'unistr/u32-strcat'.
29223         * modules/unistr/u32-strcat-tests: New file.
29224         * tests/unistr/test-u32-strcat.c: New file.
29225
29226         Tests for module 'unistr/u16-strcat'.
29227         * modules/unistr/u16-strcat-tests: New file.
29228         * tests/unistr/test-u16-strcat.c: New file.
29229
29230         Tests for module 'unistr/u8-strcat'.
29231         * modules/unistr/u8-strcat-tests: New file.
29232         * tests/unistr/test-u8-strcat.c: New file.
29233         * tests/unistr/test-strcat.h: New file.
29234
29235         Tests for module 'unistr/u32-stpncpy'.
29236         * modules/unistr/u32-stpncpy-tests: New file.
29237         * tests/unistr/test-u32-stpncpy.c: New file.
29238
29239         Tests for module 'unistr/u16-stpncpy'.
29240         * modules/unistr/u16-stpncpy-tests: New file.
29241         * tests/unistr/test-u16-stpncpy.c: New file.
29242
29243         Tests for module 'unistr/u8-stpncpy'.
29244         * modules/unistr/u8-stpncpy-tests: New file.
29245         * tests/unistr/test-u8-stpncpy.c: New file.
29246         * tests/unistr/test-stpncpy.h: New file.
29247
29248         Tests for module 'unistr/u32-strncpy'.
29249         * modules/unistr/u32-strncpy-tests: New file.
29250         * tests/unistr/test-u32-strncpy.c: New file.
29251
29252         Tests for module 'unistr/u16-strncpy'.
29253         * modules/unistr/u16-strncpy-tests: New file.
29254         * tests/unistr/test-u16-strncpy.c: New file.
29255
29256         Tests for module 'unistr/u8-strncpy'.
29257         * modules/unistr/u8-strncpy-tests: New file.
29258         * tests/unistr/test-u8-strncpy.c: New file.
29259         * tests/unistr/test-strncpy.h: New file.
29260
29261         Tests for module 'unistr/u32-stpcpy'.
29262         * modules/unistr/u32-stpcpy-tests: New file.
29263         * tests/unistr/test-u32-stpcpy.c: New file.
29264
29265         Tests for module 'unistr/u16-stpcpy'.
29266         * modules/unistr/u16-stpcpy-tests: New file.
29267         * tests/unistr/test-u16-stpcpy.c: New file.
29268
29269         Tests for module 'unistr/u8-stpcpy'.
29270         * modules/unistr/u8-stpcpy-tests: New file.
29271         * tests/unistr/test-u8-stpcpy.c: New file.
29272         * tests/unistr/test-stpcpy.h: New file.
29273
29274         Tests for module 'unistr/u32-strcpy'.
29275         * modules/unistr/u32-strcpy-tests: New file.
29276         * tests/unistr/test-u32-strcpy.c: New file.
29277
29278         Tests for module 'unistr/u16-strcpy'.
29279         * modules/unistr/u16-strcpy-tests: New file.
29280         * tests/unistr/test-u16-strcpy.c: New file.
29281
29282         Tests for module 'unistr/u8-strcpy'.
29283         * modules/unistr/u8-strcpy-tests: New file.
29284         * tests/unistr/test-u8-strcpy.c: New file.
29285         * tests/unistr/test-strcpy.h: New file.
29286
29287         Tests for module 'unistr/u32-strnlen'.
29288         * modules/unistr/u32-strnlen-tests: New file.
29289         * tests/unistr/test-u32-strnlen.c: New file.
29290
29291         Tests for module 'unistr/u16-strnlen'.
29292         * modules/unistr/u16-strnlen-tests: New file.
29293         * tests/unistr/test-u16-strnlen.c: New file.
29294
29295         Tests for module 'unistr/u8-strnlen'.
29296         * modules/unistr/u8-strnlen-tests: New file.
29297         * tests/unistr/test-u8-strnlen.c: New file.
29298         * tests/unistr/test-strnlen.h: New file.
29299
29300         Tests for module 'unistr/u32-strlen'.
29301         * modules/unistr/u32-strlen-tests: New file.
29302         * tests/unistr/test-u32-strlen.c: New file.
29303
29304         Tests for module 'unistr/u16-strlen'.
29305         * modules/unistr/u16-strlen-tests: New file.
29306         * tests/unistr/test-u16-strlen.c: New file.
29307
29308         Tests for module 'unistr/u8-strlen'.
29309         * modules/unistr/u8-strlen-tests: New file.
29310         * tests/unistr/test-u8-strlen.c: New file.
29311
29312         Tests for module 'unistr/u32-prev'.
29313         * modules/unistr/u32-prev-tests: New file.
29314         * tests/unistr/test-u32-prev.c: New file.
29315
29316         Tests for module 'unistr/u16-prev'.
29317         * modules/unistr/u16-prev-tests: New file.
29318         * tests/unistr/test-u16-prev.c: New file.
29319
29320         Tests for module 'unistr/u8-prev'.
29321         * modules/unistr/u8-prev-tests: New file.
29322         * tests/unistr/test-u8-prev.c: New file.
29323
29324         Tests for module 'unistr/u32-next'.
29325         * modules/unistr/u32-next-tests: New file.
29326         * tests/unistr/test-u32-next.c: New file.
29327
29328         Tests for module 'unistr/u16-next'.
29329         * modules/unistr/u16-next-tests: New file.
29330         * tests/unistr/test-u16-next.c: New file.
29331
29332         Tests for module 'unistr/u8-next'.
29333         * modules/unistr/u8-next-tests: New file.
29334         * tests/unistr/test-u8-next.c: New file.
29335
29336         Tests for module 'unistr/u32-strmbtouc'.
29337         * modules/unistr/u32-strmbtouc-tests: New file.
29338         * tests/unistr/test-u32-strmbtouc.c: New file.
29339
29340         Tests for module 'unistr/u16-strmbtouc'.
29341         * modules/unistr/u16-strmbtouc-tests: New file.
29342         * tests/unistr/test-u16-strmbtouc.c: New file.
29343
29344         Tests for module 'unistr/u8-strmbtouc'.
29345         * modules/unistr/u8-strmbtouc-tests: New file.
29346         * tests/unistr/test-u8-strmbtouc.c: New file.
29347
29348         Tests for module 'unistr/u32-strmblen'.
29349         * modules/unistr/u32-strmblen-tests: New file.
29350         * tests/unistr/test-u32-strmblen.c: New file.
29351
29352         Tests for module 'unistr/u16-strmblen'.
29353         * modules/unistr/u16-strmblen-tests: New file.
29354         * tests/unistr/test-u16-strmblen.c: New file.
29355
29356         Tests for module 'unistr/u8-strmblen'.
29357         * modules/unistr/u8-strmblen-tests: New file.
29358         * tests/unistr/test-u8-strmblen.c: New file.
29359
29360         Tests for module 'unistr/u32-cpy-alloc'.
29361         * modules/unistr/u32-cpy-alloc-tests: New file.
29362         * tests/unistr/test-u32-cpy-alloc.c: New file.
29363
29364         Tests for module 'unistr/u16-cpy-alloc'.
29365         * modules/unistr/u16-cpy-alloc-tests: New file.
29366         * tests/unistr/test-u16-cpy-alloc.c: New file.
29367
29368         Tests for module 'unistr/u8-cpy-alloc'.
29369         * modules/unistr/u8-cpy-alloc-tests: New file.
29370         * tests/unistr/test-u8-cpy-alloc.c: New file.
29371         * tests/unistr/test-cpy-alloc.h: New file.
29372
29373         Tests for module 'unistr/u32-mbsnlen'.
29374         * modules/unistr/u32-mbsnlen-tests: New file.
29375         * tests/unistr/test-u32-mbsnlen.c: New file.
29376
29377         Tests for module 'unistr/u16-mbsnlen'.
29378         * modules/unistr/u16-mbsnlen-tests: New file.
29379         * tests/unistr/test-u16-mbsnlen.c: New file.
29380
29381         Tests for module 'unistr/u8-mbsnlen'.
29382         * modules/unistr/u8-mbsnlen-tests: New file.
29383         * tests/unistr/test-u8-mbsnlen.c: New file.
29384
29385         Tests for module 'unistr/u32-chr'.
29386         * modules/unistr/u32-chr-tests: New file.
29387         * tests/unistr/test-u32-chr.c: New file.
29388
29389         Tests for module 'unistr/u16-chr'.
29390         * modules/unistr/u16-chr-tests: New file.
29391         * tests/unistr/test-u16-chr.c: New file.
29392
29393         Tests for module 'unistr/u8-chr'.
29394         * modules/unistr/u8-chr-tests: New file.
29395         * tests/unistr/test-u8-chr.c: New file.
29396         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29397
29398         Tests for module 'unistr/u32-cmp2'.
29399         * modules/unistr/u32-cmp2-tests: New file.
29400         * tests/unistr/test-u32-cmp2.c: New file.
29401
29402         Tests for module 'unistr/u16-cmp2'.
29403         * modules/unistr/u16-cmp2-tests: New file.
29404         * tests/unistr/test-u16-cmp2.c: New file.
29405
29406         Tests for module 'unistr/u8-cmp2'.
29407         * modules/unistr/u8-cmp2-tests: New file.
29408         * tests/unistr/test-u8-cmp2.c: New file.
29409         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29410
29411         Tests for module 'unistr/u32-cmp'.
29412         * modules/unistr/u32-cmp-tests: New file.
29413         * tests/unistr/test-u32-cmp.c: New file.
29414
29415         Tests for module 'unistr/u16-cmp'.
29416         * modules/unistr/u16-cmp-tests: New file.
29417         * tests/unistr/test-u16-cmp.c: New file.
29418
29419         Tests for module 'unistr/u8-cmp'.
29420         * modules/unistr/u8-cmp-tests: New file.
29421         * tests/unistr/test-u8-cmp.c: New file.
29422         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29423
29424         Tests for module 'unistr/u32-set'.
29425         * modules/unistr/u32-set-tests: New file.
29426         * tests/unistr/test-u32-set.c: New file.
29427
29428         Tests for module 'unistr/u16-set'.
29429         * modules/unistr/u16-set-tests: New file.
29430         * tests/unistr/test-u16-set.c: New file.
29431
29432         Tests for module 'unistr/u8-set'.
29433         * modules/unistr/u8-set-tests: New file.
29434         * tests/unistr/test-u8-set.c: New file.
29435         * tests/unistr/test-set.h: New file.
29436
29437         Tests for module 'unistr/u32-move'.
29438         * modules/unistr/u32-move-tests: New file.
29439         * tests/unistr/test-u32-move.c: New file.
29440
29441         Tests for module 'unistr/u16-move'.
29442         * modules/unistr/u16-move-tests: New file.
29443         * tests/unistr/test-u16-move.c: New file.
29444
29445         Tests for module 'unistr/u8-move'.
29446         * modules/unistr/u8-move-tests: New file.
29447         * tests/unistr/test-u8-move.c: New file.
29448         * tests/unistr/test-move.h: New file.
29449
29450         Tests for module 'unistr/u32-cpy'.
29451         * modules/unistr/u32-cpy-tests: New file.
29452         * tests/unistr/test-u32-cpy.c: New file.
29453
29454         Tests for module 'unistr/u16-cpy'.
29455         * modules/unistr/u16-cpy-tests: New file.
29456         * tests/unistr/test-u16-cpy.c: New file.
29457
29458         Tests for module 'unistr/u8-cpy'.
29459         * modules/unistr/u8-cpy-tests: New file.
29460         * tests/unistr/test-u8-cpy.c: New file.
29461         * tests/unistr/test-cpy.h: New file.
29462
29463 2010-01-09  Bruno Haible  <bruno@clisp.org>
29464
29465         Tests for module 'unistr/u32-uctomb'.
29466         * modules/unistr/u32-uctomb-tests: New file.
29467         * tests/unistr/test-u32-uctomb.c: New file.
29468
29469         Tests for module 'unistr/u16-uctomb'.
29470         * modules/unistr/u16-uctomb-tests: New file.
29471         * tests/unistr/test-u16-uctomb.c: New file.
29472
29473         Tests for module 'unistr/u8-uctomb'.
29474         * modules/unistr/u8-uctomb-tests: New file.
29475         * tests/unistr/test-u8-uctomb.c: New file.
29476
29477         Tests for module 'unistr/u32-mbtoucr'.
29478         * modules/unistr/u32-mbtoucr-tests: New file.
29479         * tests/unistr/test-u32-mbtoucr.c: New file.
29480
29481         Tests for module 'unistr/u16-mbtoucr'.
29482         * modules/unistr/u16-mbtoucr-tests: New file.
29483         * tests/unistr/test-u16-mbtoucr.c: New file.
29484
29485         Tests for module 'unistr/u8-mbtoucr'.
29486         * modules/unistr/u8-mbtoucr-tests: New file.
29487         * tests/unistr/test-u8-mbtoucr.c: New file.
29488
29489         Tests for module 'unistr/u32-mbtouc'.
29490         * modules/unistr/u32-mbtouc-tests: New file.
29491         * tests/unistr/test-u32-mbtouc.c: New file.
29492
29493         Tests for module 'unistr/u16-mbtouc'.
29494         * modules/unistr/u16-mbtouc-tests: New file.
29495         * tests/unistr/test-u16-mbtouc.c: New file.
29496
29497         Tests for module 'unistr/u8-mbtouc'.
29498         * modules/unistr/u8-mbtouc-tests: New file.
29499         * tests/unistr/test-u8-mbtouc.c: New file.
29500
29501         Tests for module 'unistr/u32-mbtouc-unsafe'.
29502         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29503         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29504         * tests/unistr/test-u32-mbtouc.h: New file.
29505
29506         Tests for module 'unistr/u16-mbtouc-unsafe'.
29507         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29508         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29509         * tests/unistr/test-u16-mbtouc.h: New file.
29510
29511         Tests for module 'unistr/u8-mbtouc-unsafe'.
29512         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29513         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29514         * tests/unistr/test-u8-mbtouc.h: New file.
29515
29516         Tests for module 'unistr/u32-mblen'.
29517         * modules/unistr/u32-mblen-tests: New file.
29518         * tests/unistr/test-u32-mblen.c: New file.
29519
29520         Tests for module 'unistr/u16-mblen'.
29521         * modules/unistr/u16-mblen-tests: New file.
29522         * tests/unistr/test-u16-mblen.c: New file.
29523
29524         Tests for module 'unistr/u8-mblen'.
29525         * modules/unistr/u8-mblen-tests: New file.
29526         * tests/unistr/test-u8-mblen.c: New file.
29527
29528         Tests for module 'unistr/u32-to-u16'.
29529         * modules/unistr/u32-to-u16-tests: New file.
29530         * tests/unistr/test-u32-to-u16.c: New file.
29531
29532         Tests for module 'unistr/u32-to-u8'.
29533         * modules/unistr/u32-to-u8-tests: New file.
29534         * tests/unistr/test-u32-to-u8.c: New file.
29535
29536         Tests for module 'unistr/u16-to-u32'.
29537         * modules/unistr/u16-to-u32-tests: New file.
29538         * tests/unistr/test-u16-to-u32.c: New file.
29539
29540         Tests for module 'unistr/u16-to-u8'.
29541         * modules/unistr/u16-to-u8-tests: New file.
29542         * tests/unistr/test-u16-to-u8.c: New file.
29543
29544         Tests for module 'unistr/u8-to-u32'.
29545         * modules/unistr/u8-to-u32-tests: New file.
29546         * tests/unistr/test-u8-to-u32.c: New file.
29547
29548         Tests for module 'unistr/u8-to-u16'.
29549         * modules/unistr/u8-to-u16-tests: New file.
29550         * tests/unistr/test-u8-to-u16.c: New file.
29551
29552         Tests for module 'unistr/u32-check'.
29553         * modules/unistr/u32-check-tests: New file.
29554         * tests/unistr/test-u32-check.c: New file.
29555
29556         Tests for module 'unistr/u16-check'.
29557         * modules/unistr/u16-check-tests: New file.
29558         * tests/unistr/test-u16-check.c: New file.
29559
29560         Tests for module 'unistr/u8-check'.
29561         * modules/unistr/u8-check-tests: New file.
29562         * tests/unistr/test-u8-check.c: New file.
29563
29564         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29565         (category_equals): New function.
29566         (main): Add more tests.
29567         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29568
29569         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29570
29571 2010-01-10  Bruno Haible  <bruno@clisp.org>
29572
29573         unistr/u*-strcoll: Try harder to distinguish different strings.
29574         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29575         compare s1 and s2 to see if they are different.
29576
29577 2010-01-10  Bruno Haible  <bruno@clisp.org>
29578
29579         unistr/u*-stpncpy: Fix the return value.
29580         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29581         description of the return value consistent with stpncpy in glibc.
29582         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29583         written non-NUL unit.
29584
29585 2010-01-10  Bruno Haible  <bruno@clisp.org>
29586
29587         unistr/u*-next: Add missing dependencies.
29588         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29589         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29590         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29591
29592 2010-01-10  Bruno Haible  <bruno@clisp.org>
29593
29594         unistr/u8-mbsnlen: Fix return value for incomplete character.
29595         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29596         u8_mblen.
29597         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29598         Remove unistr/u8-mblen.
29599         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29600         u16_mblen.
29601         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29602         Remove unistr/u16-mblen.
29603
29604 2010-01-10  Bruno Haible  <bruno@clisp.org>
29605
29606         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29607         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29608         Reported by Brian Gough <bjg@gnu.org> and
29609         Chris Clayton <chris2553@googlemail.com> via
29610         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29611
29612 2010-01-09  Bruno Haible  <bruno@clisp.org>
29613
29614         unistr/u16-to-u32: Reject invalid input.
29615         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29616         u16_mbtouc.
29617         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29618         Remove unistr/u16-mbtouc.
29619
29620         unistr/u16-to-u8: Reject invalid input.
29621         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29622         u16_mbtouc.
29623         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29624         Remove unistr/u16-mbtouc.
29625
29626         unistr/u8-to-u32: Reject invalid input.
29627         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29628         u8_mbtouc.
29629         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29630         Remove unistr/u8-mbtouc.
29631
29632         unistr/u8-to-u16: Reject invalid input.
29633         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29634         u8_mbtouc.
29635         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29636         Remove unistr/u8-mbtouc.
29637
29638 2010-01-09  Bruno Haible  <bruno@clisp.org>
29639
29640         Tests for module 'getlogin'.
29641         * modules/getlogin-tests: New file.
29642         * tests/test-getlogin.c: New file.
29643
29644         New module 'getlogin'.
29645         * lib/unistd.in.h (getlogin): New declaration.
29646         * lib/getlogin.c: New file.
29647         * m4/getlogin.m4: New file.
29648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29649         HAVE_GETLOGIN.
29650         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29651         HAVE_GETLOGIN.
29652         * modules/getlogin: New file.
29653         * doc/posix-functions/getlogin.texi: Mention the new module.
29654         Reported by John W. Eaton <jwe@gnu.org>.
29655
29656 2010-01-09  Bruno Haible  <bruno@clisp.org>
29657
29658         getlogin_r: Support for native Windows.
29659         * lib/getlogin_r.c: Include <windows.h>
29660         (getlogin_r): Implement for native Windows.
29661         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29662         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29663         via John W. Eaton <jwe@gnu.org>.
29664
29665 2010-01-09  Bruno Haible  <bruno@clisp.org>
29666
29667         getlogin_r: Small fixes.
29668         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29669         succeeds.
29670         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29671         before testing whether getlogin_r is declared. No need to set
29672         HAVE_DECL_GETLOGIN_R to 1.
29673         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29674
29675 2010-01-09  Bruno Haible  <bruno@clisp.org>
29676
29677         * lib/unistd.in.h (getlogin_r): Add comment.
29678
29679 2010-01-09  Bruno Haible  <bruno@clisp.org>
29680
29681         Tests for module 'getlogin_r'.
29682         * modules/getlogin_r-tests: New file.
29683         * tests/test-getlogin_r.c: New file.
29684
29685 2010-01-09  Jim Meyering  <meyering@redhat.com>
29686
29687         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29688         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29689         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29690
29691 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29692
29693         * lib/dup2.c (rpl_dup2): Improve comment.
29694
29695 2010-01-08  Eric Blake  <ebb9@byu.net>
29696
29697         maint.mk: allow packages to add makefile @@ exceptions
29698         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29699         (sc_makefile_check): Rename...
29700         (sc_makefile_at_at_check): ...to this, and use hook.
29701
29702         dup2: work around mingw bug
29703         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29704         Reported by Simon Josefsson.
29705
29706 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29707
29708         glob: Fix C++ compilation.
29709         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29710         C++.
29711
29712 2010-01-07  Bruno Haible  <bruno@clisp.org>
29713
29714         Fix indentation of wctype.in.h, broken since 2007-01-06.
29715         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29716
29717 2010-01-07  Bruno Haible  <bruno@clisp.org>
29718
29719         mbslen: Avoid collision with system function.
29720         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29721         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29722         * m4/mbslen.m4: New file.
29723         * modules/mbslen (Files): Add it.
29724         (configure.ac): Invoke gl_MBSLEN.
29725         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29726         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29727         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29728         via Ian Beckwith <ianb@erislabs.net>.
29729
29730 2010-01-07  Bruno Haible  <bruno@clisp.org>
29731
29732         dirent: Document the last fix.
29733         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29734
29735 2010-01-07  Bruno Haible  <bruno@clisp.org>
29736
29737         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29738         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29739         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29740         va_list are defined.
29741         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29742         Reported by Eric Blake.
29743
29744 2010-01-07  Bruno Haible  <bruno@clisp.org>
29745
29746         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29747         * modules/xlist (Depends-on): Add 'list',
29748         * modules/xoset (Depends-on): Add 'oset'.
29749         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29750
29751 2010-01-07  Bruno Haible  <bruno@clisp.org>
29752
29753         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29754         * doc/posix-functions/strncasecmp.texi: Likewise.
29755
29756 2010-01-07  Bruno Haible  <bruno@clisp.org>
29757
29758         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29759
29760 2010-01-07  John W. Eaton  <jwe@octave.org>
29761
29762         wctype: allow C++ use
29763         * lib/wctype.in.h: Add extern "C" block for C++.
29764
29765 2010-01-06  Eric Blake  <ebb9@byu.net>
29766
29767         maint.mk: detect incorrect GFDL usage
29768         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29769
29770 2010-01-06  Jim Meyering  <meyering@redhat.com>
29771         and Eric Blake  <ebb9@byu.net>
29772
29773         maint.mk: ignore multi-line copyright in NEWS
29774         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29775
29776 2010-01-06  Eric Blake  <ebb9@byu.net>
29777
29778         select: add missing dependency
29779         * modules/select-tests (Depends-on): Move sockets dependency...
29780         * modules/select (Depends-on): ...here.
29781         Reported by Ian Beckwith.
29782
29783         doc: regenerate INSTALL
29784         * doc/INSTALL: Reflect recent autoconf update.
29785         * doc/INSTALL.ISO: Likewise.
29786         * doc/INSTALL.UTF-8: Likewise.
29787
29788         pread: fix compilation on glibc
29789         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29790         Reported by Ralf Wildenhues.
29791
29792         dirent: fix test failure
29793         * lib/dirent.in.h (includes): Guarantee ino_t.
29794         Reported by Ralf Wildenhues.
29795
29796 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29797
29798         linkat, renameat: avoid bad free
29799         * lib/at-func2.c (at_func2): Fix typo.
29800         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29801
29802 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29803
29804         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29805         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29806         to avoid failure of symlink test later.
29807
29808 2010-01-06  Eric Blake  <ebb9@byu.net>
29809
29810         stdio, unistd: guarantee ssize_t
29811         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29812         2008 are exposed when needed.
29813         * lib/stdio.in.h (includes): Likewise.
29814         Reported by Ralf Wildenhues.
29815
29816 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29817
29818         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29819         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29820         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29821
29822 2010-01-06  Jim Meyering  <meyering@redhat.com>
29823
29824         readtokens: this module *does* require xalloc.h
29825         It uses only functions that were omitted by the old syntax-check rule.
29826         * lib/readtokens.c: Include "xalloc.h" once again.
29827         * modules/readtokens (Depends-on): Add xalloc.
29828         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29829
29830 2010-01-05  Eric Blake  <ebb9@byu.net>
29831
29832         maint: support 'make announcement' from a VPATH build
29833         * top/maint.mk (announcement): Look for correct NEWS file.
29834
29835 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29836
29837         utimens (fdutimens): ignore a negative FD, per contract
29838         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29839         when we have a valid file descriptor.  Otherwise, using a brand
29840         new glibc (with just-patched futimens that now fails with EBADF)
29841         would cause this function to fail with ENOSYS.
29842         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29843         See also http://bugzilla.redhat.com/552320.
29844
29845 2010-01-05  Eric Blake  <ebb9@byu.net>
29846
29847         strcase: document what it provides
29848         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29849         gnulib module.
29850         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29851         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29852
29853 2010-01-05  Jim Meyering  <meyering@redhat.com>
29854
29855         maint: remove useless inclusions of "xalloc.h"
29856         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29857         * lib/readtokens.c: Likewise.
29858         * lib/same.c: Likewise.
29859         * modules/getloadavg (Depends-on): Remove xalloc.
29860         * modules/readtokens: Likewise.
29861         * modules/same: Likewise.
29862
29863         maint.mk: include 4 more function names in alloca.h-checking regexp
29864         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29865         regexp.  Before, we would give a false-positive (saying alloca.h
29866         is included unnecessarily) when the only uses involved omitted symbols.
29867
29868         xalloc.h: use consistent formatting
29869         * lib/xalloc.h: Move declarations to start in the first column.
29870
29871 2010-01-05  Eric Blake  <ebb9@byu.net>
29872
29873         mkdir: avoid xalloc
29874         * lib/mkdir.c (includes): Drop unused header.
29875         Reported by John W. Eaton.
29876
29877 2010-01-04  Jim Meyering  <meyering@redhat.com>
29878
29879         nl_langinfo: avoid configure-time syntax error
29880         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29881         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29882         the empty string.  Don't let that provoke a shell syntax error.
29883
29884         regcomp, regexec, fnmatch: avoid array bounds read error
29885         * lib/regcomp.c (build_equiv_class): From glibc:
29886         Use only the low 24 bits of a findidx return value as an index
29887         into the weights array.  Patch by Ulrich Drepper:
29888         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29889         * lib/regexec.c (check_node_accept_bytes): Likewise.
29890         * lib/fnmatch_loop.c (FCT): Likewise.
29891
29892         regcomp: skip collseq lookup when there are no rules
29893         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29894         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29895
29896         regcomp: recognize ill-formed { } expressions
29897         * lib/regcomp.c (parse_dup_op): From glibc:
29898         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29899
29900         regcomp: fix typo in comment
29901         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29902         s/satisfy/satisfies/.
29903
29904         regcomp: sync from glibc: remove dead store
29905         * lib/regcomp.c (duplicate_node_closure): Remove useless
29906         search_duplicated_node call and dead store.
29907
29908         regcomp: sync from glibc; always use nl_langinfo
29909         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29910         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29911         * modules/regex (Depends-on): Add nl_langinfo.
29912
29913 2010-01-04  Eric Blake  <ebb9@byu.net>
29914
29915         fdopendir: fix configure test
29916         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29917
29918 2010-01-01  Bruno Haible  <bruno@clisp.org>
29919
29920         wchar: Remove unused configure check.
29921         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29922
29923 2010-01-01  Eric Blake  <ebb9@byu.net>
29924
29925         headers: make check of system header explicit
29926         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29927         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29928         ourselves.
29929         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29930         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29931         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29932         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29933         internals.
29934         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29935         missing.
29936         Suggested by Bruno Haible.
29937
29938 2010-01-01  Jim Meyering  <meyering@redhat.com>
29939
29940         ChangeLog: tweak to eliminate unnecessary copyright line
29941         * ChangeLog: Remove a copyright line that was mistakenly updated
29942         by today's update-copyright run.  Reported by Eric Blake.
29943
29944         test-update-copyright: don't let envvar setting cause test failure
29945         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29946
29947 2010-01-01  Bruno Haible  <bruno@clisp.org>
29948
29949         localename: Avoid gcc warning.
29950         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29951         function if it is not used.
29952
29953 2010-01-01  Jim Meyering  <meyering@redhat.com>
29954
29955         update nearly all FSF copyright year lists to include 2010
29956         Use the same procedure as for 2009, outlined in
29957         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29958
29959         version-etc: set COPYRIGHT_YEAR to 2010
29960         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29961
29962 2009-12-31  Eric Blake  <ebb9@byu.net>
29963
29964         doc: correct availability of cygwin 1.5.x getopt
29965         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29966         variables.
29967         * doc/posix-functions/opterr.texi (opterr): Likewise.
29968         * doc/posix-functions/optind.texi (optind): Likewise.
29969         * doc/posix-functions/optopt.texi (optopt): Likewise.
29970         * doc/posix-functions/tzname.texi (tzname): Likewise.
29971
29972         openat: update maintainer
29973         * modules/openat (Maintainer): Add myself.
29974
29975         utimens: avoid shadowing warning
29976         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29977         buffers into one, to avoid shadowing, as well as avoiding a
29978         redundant stat.
29979         Reported by Jim Meyering.
29980
29981         test-dup2: avoid compiler warning
29982         * tests/test-dup2.c (is_inheritable): Only define if used.
29983
29984 2010-01-01  Bruno Haible  <bruno@clisp.org>
29985
29986         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29987         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29988         defined, use wctomb instead of wcrtomb.
29989
29990 2010-01-01  Bruno Haible  <bruno@clisp.org>
29991
29992         iconv: Reject native Solaris iconv.
29993         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29994         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29995
29996 2009-12-31  Bruno Haible  <bruno@clisp.org>
29997
29998         * tests/test-signal.c (main): Remove test of 'SIG'.
29999
30000 2009-12-31  Bruno Haible  <bruno@clisp.org>
30001
30002         spawn: Fix incomplete fix.
30003         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30004         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30005         warnings for GNULIB_POSIXCHECK again.
30006         Reported by Eric Blake.
30007
30008 2009-12-31  Bruno Haible  <bruno@clisp.org>
30009
30010         Avoid namespace pollution on glibc systems.
30011         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30012         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30013         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30014         glibc systems.
30015
30016 2009-12-31  Bruno Haible  <bruno@clisp.org>
30017
30018         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30019         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30020         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30021         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30022         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30023         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30024         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30025
30026 2009-12-31  Bruno Haible  <bruno@clisp.org>
30027
30028         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30029         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30030         afterwards.
30031
30032 2009-12-31  Bruno Haible  <bruno@clisp.org>
30033
30034         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30035         SYS_UTSNAME_H.
30036
30037 2009-12-31  Bruno Haible  <bruno@clisp.org>
30038
30039         spawn: Fix misapplied patch.
30040         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30041         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30042         warnings for GNULIB_POSIXCHECK.
30043
30044 2009-12-31  Bruno Haible  <bruno@clisp.org>
30045
30046         times: Update after sys_times changed.
30047         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30048         * modules/times (Files): Add it.
30049         (configure.ac): Invoke gl_FUNC_TIMES.
30050
30051 2009-12-31  Bruno Haible  <bruno@clisp.org>
30052
30053         Use AC_C_INLINE where necessary.
30054         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30055         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30056         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30057         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30058         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30059         * m4/mbiter.m4 (gl_MBITER): Likewise.
30060         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30061         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30062         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30063         * modules/u64 (configure.ac): Likewise.
30064
30065 2009-12-31  Bruno Haible  <bruno@clisp.org>
30066
30067         Use AC_C_INLINE instead of module 'inline' where possible.
30068         * modules/inline (Description): Clarify purpose.
30069         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30070         * modules/count-one-bits (Depends-on): Remove inline.
30071         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30072         * modules/openat (Depends-on): Remove inline.
30073         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30074         instead of depending on module 'inline'.
30075         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30076         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30077         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30078         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30079         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30080         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30081         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30082         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30083         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30084         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30085         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30086         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30087         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30088         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30089         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30090         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30091         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30092         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30093         Likewise.
30094         * modules/unictype/property-ascii-hex-digit (Depends-on,
30095         configure.ac): Likewise.
30096         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30097         configure.ac): Likewise.
30098         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30099         configure.ac): Likewise.
30100         * modules/unictype/property-bidi-block-separator (Depends-on,
30101         configure.ac): Likewise.
30102         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30103         configure.ac): Likewise.
30104         * modules/unictype/property-bidi-common-separator (Depends-on,
30105         configure.ac): Likewise.
30106         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30107         Likewise.
30108         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30109         configure.ac): Likewise.
30110         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30111         configure.ac): Likewise.
30112         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30113         configure.ac): Likewise.
30114         * modules/unictype/property-bidi-european-digit (Depends-on,
30115         configure.ac): Likewise.
30116         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30117         configure.ac): Likewise.
30118         * modules/unictype/property-bidi-left-to-right (Depends-on,
30119         configure.ac): Likewise.
30120         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30121         configure.ac): Likewise.
30122         * modules/unictype/property-bidi-other-neutral (Depends-on,
30123         configure.ac): Likewise.
30124         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30125         Likewise.
30126         * modules/unictype/property-bidi-segment-separator (Depends-on,
30127         configure.ac): Likewise.
30128         * modules/unictype/property-bidi-whitespace (Depends-on,
30129         configure.ac): Likewise.
30130         * modules/unictype/property-combining (Depends-on, configure.ac):
30131         Likewise.
30132         * modules/unictype/property-composite (Depends-on, configure.ac):
30133         Likewise.
30134         * modules/unictype/property-currency-symbol (Depends-on,
30135         configure.ac): Likewise.
30136         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30137         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30138         Likewise.
30139         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30140         configure.ac): Likewise.
30141         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30142         Likewise.
30143         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30144         Likewise.
30145         * modules/unictype/property-extender (Depends-on, configure.ac):
30146         Likewise.
30147         * modules/unictype/property-format-control (Depends-on, configure.ac):
30148         Likewise.
30149         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30150         Likewise.
30151         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30152         Likewise.
30153         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30154         Likewise.
30155         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30156         Likewise.
30157         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30158         Likewise.
30159         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30160         Likewise.
30161         * modules/unictype/property-id-start (Depends-on, configure.ac):
30162         Likewise.
30163         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30164         Likewise.
30165         * modules/unictype/property-ids-binary-operator (Depends-on,
30166         configure.ac): Likewise.
30167         * modules/unictype/property-ids-trinary-operator (Depends-on,
30168         configure.ac): Likewise.
30169         * modules/unictype/property-ignorable-control (Depends-on,
30170         configure.ac): Likewise.
30171         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30172         Likewise.
30173         * modules/unictype/property-join-control (Depends-on, configure.ac):
30174         Likewise.
30175         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30176         Likewise.
30177         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30178         Likewise.
30179         * modules/unictype/property-logical-order-exception (Depends-on,
30180         configure.ac): Likewise.
30181         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30182         Likewise.
30183         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30184         * modules/unictype/property-non-break (Depends-on, configure.ac):
30185         Likewise.
30186         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30187         Likewise.
30188         * modules/unictype/property-numeric (Depends-on, configure.ac):
30189         Likewise.
30190         * modules/unictype/property-other-alphabetic (Depends-on,
30191         configure.ac): Likewise.
30192         * modules/unictype/property-other-default-ignorable-code-point
30193         (Depends-on, configure.ac): Likewise.
30194         * modules/unictype/property-other-grapheme-extend (Depends-on,
30195         configure.ac): Likewise.
30196         * modules/unictype/property-other-id-continue (Depends-on,
30197         configure.ac): Likewise.
30198         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30199         Likewise.
30200         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30201         Likewise.
30202         * modules/unictype/property-other-math (Depends-on, configure.ac):
30203         Likewise.
30204         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30205         Likewise.
30206         * modules/unictype/property-paired-punctuation (Depends-on,
30207         configure.ac): Likewise.
30208         * modules/unictype/property-paragraph-separator (Depends-on,
30209         configure.ac): Likewise.
30210         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30211         Likewise.
30212         * modules/unictype/property-pattern-white-space (Depends-on,
30213         configure.ac): Likewise.
30214         * modules/unictype/property-private-use (Depends-on, configure.ac):
30215         Likewise.
30216         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30217         Likewise.
30218         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30219         Likewise.
30220         * modules/unictype/property-radical (Depends-on, configure.ac):
30221         Likewise.
30222         * modules/unictype/property-sentence-terminal (Depends-on,
30223         configure.ac): Likewise.
30224         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30225         Likewise.
30226         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30227         * modules/unictype/property-terminal-punctuation (Depends-on,
30228         configure.ac): Likewise.
30229         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30230         Likewise.
30231         * modules/unictype/property-unassigned-code-value (Depends-on,
30232         configure.ac): Likewise.
30233         * modules/unictype/property-unified-ideograph (Depends-on,
30234         configure.ac): Likewise.
30235         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30236         Likewise.
30237         * modules/unictype/property-variation-selector (Depends-on,
30238         configure.ac): Likewise.
30239         * modules/unictype/property-white-space (Depends-on, configure.ac):
30240         Likewise.
30241         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30242         Likewise.
30243         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30244         Likewise.
30245         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30246         Likewise.
30247         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30248         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30249         Likewise.
30250
30251 2009-12-31  Bruno Haible  <bruno@clisp.org>
30252
30253         Remove unnecessary AC_C_INLINE invocation.
30254         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30255         since 2009-08-21.
30256
30257 2009-12-31  Jim Meyering  <meyering@redhat.com>
30258
30259         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30260         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30261         With this change, we can all remove the gpg_key_ID = ... definition
30262         from our respective cfg.mk files.
30263
30264         maint.mk: create announcement template in ~/, not in /tmp
30265         * top/maint.mk (emit_upload_commands): Adjust.
30266         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30267         Remove temporary file, .ci-msg.
30268
30269 2009-12-31  Eric Blake  <ebb9@byu.net>
30270
30271         link-warning: always build headers with link warnings
30272         * modules/arpa_inet (Makefile.am): Always build replacement
30273         header.
30274         * modules/ctype (Makefile.am): Likewise.
30275         * modules/dirent (Makefile.am): Likewise.
30276         * modules/inttypes (Makefile.am): Likewise.
30277         * modules/langinfo (Makefile.am): Likewise.
30278         * modules/locale (Makefile.am): Likewise.
30279         * modules/spawn (Makefile.am): Likewise.
30280         * modules/sys_file (Makefile.am): Likewise.
30281         * modules/sys_ioctl (Makefile.am): Likewise.
30282         * modules/sys_select (Makefile.am): Likewise.
30283         * modules/sys_socket (Makefile.am): Likewise.
30284         * modules/sys_times (Makefile.am): Likewise.
30285         * modules/sys_utsname (Makefile.am): Likewise.
30286         * modules/sys_wait (Makefile.am): Likewise.
30287         * modules/wchar (Makefile.am): Likewise.
30288         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30289         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30290         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30291         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30292         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30293         Likewise.
30294         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30295         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30296         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30297         Likewise.
30298         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30299         Likewise.
30300         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30301         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30302         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30303         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30306         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30307         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30308         (gl_WCHAR_H_DEFAULTS): Likewise.
30309
30310 2009-12-31  Eric Blake  <ebb9@byu.net>
30311
30312         signal, spawn: use link warnings
30313         * lib/signal.in.h (sigset_t): Make unconditional.
30314         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30315         (sigpending, sigprocmask, sigaction): Add link warnings.
30316         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30317         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30318         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30319         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30320         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30321         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30322         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30323         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30324         (posix_spawn_file_actions_destroy)
30325         (posix_spawn_file_actions_addopen)
30326         (posix_spawn_file_actions_addclose)
30327         (posix_spawn_file_actions_adddup2): Likewise.
30328         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30329         * tests/test-signal.c (main): Enhance test.
30330
30331         spawn: improve wrapper support
30332         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30333         (gl_SPAWN_H_DEFAULTS): New defaults.
30334         * modules/spawn (Makefile.am): Substitute them.
30335         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30336         Only declare if missing or broken.
30337
30338         sys_times, sys_utsname: use include_next
30339         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30340         header.
30341         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30342         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30343         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30344         * modules/sys_times (Depends-on): Add include_next.
30345         (Makefile.am): Substitute additional values.
30346         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30347         * lib/sys_times.in.h (includes): Include native header, if
30348         available.
30349         * lib/sys_utsname.in.h (includes): Likewise.
30350         * tests/test-sys_times.c (main): Enhance test.
30351
30352         fdutimensat: revert prior patch
30353         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30354         utimens.h.
30355         Reported by Bruno Haible.
30356
30357 2009-12-30  Eric Blake  <ebb9@byu.net>
30358
30359         sys_wait: drop link-warning dependency
30360         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30361         link-warning efforts.
30362         * lib/sys_wait.in.h: Likewise.
30363
30364         fdutimensat: remove bogus dependency
30365         * modules/fdutimensat (Depends-on): Drop inline.
30366
30367         unistd: fix typo
30368         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30369
30370 2009-12-30  Bruno Haible  <bruno@clisp.org>
30371
30372         Fix compilation error with Solaris cc.
30373         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30374         * lib/unicase/u16-is-invariant.c: Likewise.
30375         * lib/unicase/u32-is-invariant.c: Likewise.
30376         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30377
30378 2009-12-30  Bruno Haible  <bruno@clisp.org>
30379
30380         Fix test crash.
30381         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30382         locales.
30383         Reported by Simon Josefsson <simon@josefsson.org>.
30384
30385 2009-12-30  Bruno Haible  <bruno@clisp.org>
30386
30387         Fix compilation error on most platforms.
30388         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30389         Reported by Simon Josefsson <simon@josefsson.org>
30390         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30391
30392 2009-12-30  Eric Blake  <ebb9@byu.net>
30393
30394         futimens, utimensat: work around ntfs-3g bug
30395         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30396         a ctime bug is present, and expand workaround to cover ntfs-3g.
30397         * lib/utimens.c (fdutimens, lutimens): Likewise.
30398         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30399         (validate_timespec): Adjust return value.
30400         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30401         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30402         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30403
30404 2009-12-29  Eric Blake  <ebb9@byu.net>
30405
30406         link-warning: make usage consistent
30407         * modules/ctype (Depends-on): Add link-warning.
30408         (Makefile.am): Update rules accordingly.
30409         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30410         * modules/locale (Depends-on, Makefile.am): Likewise.
30411         * modules/sys_file (Makefile.am): Likewise.
30412         * modules/getopt-posix (Makefile.am): Delete unused link warning
30413         efforts.
30414         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30415         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30416         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30417         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30418
30419         stdio: remove unused variables
30420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30421         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30422         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30423
30424         tests: test more substitute headers
30425         * modules/ctype-tests: New file.
30426         * modules/dirent-tests: Likewise.
30427         * modules/spawn-tests: Likewise.
30428         * modules/sys_file-tests: Likewise.
30429         * modules/sys_ioctl-tests: Likewise.
30430         * modules/sys_wait-tests: Likewise.
30431         * tests/test-ctype.c: Likewise.
30432         * tests/test-dirent.c: Likewise.
30433         * tests/test-spawn.c: Likewise.
30434         * tests/test-sys_file.c: Likewise.
30435         * tests/test-sys_ioctl.c: Likewise.
30436         * tests/test-sys_wait.c: Likewise.
30437         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30438         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30439         whether or not flock is in use.
30440
30441         tests: remove License section from module
30442         * modules/arpa_inet-tests: Remove unneeded section.
30443         * modules/byteswap-tests: Likewise.
30444         * modules/ceilf-tests: Likewise.
30445         * modules/ceill-tests: Likewise.
30446         * modules/crypto/des-tests: Likewise.
30447         * modules/crypto/gc-arcfour-tests: Likewise.
30448         * modules/crypto/gc-arctwo-tests: Likewise.
30449         * modules/crypto/gc-des-tests: Likewise.
30450         * modules/crypto/gc-hmac-md5-tests: Likewise.
30451         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30452         * modules/crypto/gc-md2-tests: Likewise.
30453         * modules/crypto/gc-md4-tests: Likewise.
30454         * modules/crypto/gc-md5-tests: Likewise.
30455         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30456         * modules/crypto/gc-rijndael-tests: Likewise.
30457         * modules/crypto/gc-sha1-tests: Likewise.
30458         * modules/crypto/gc-tests: Likewise.
30459         * modules/crypto/md2-tests: Likewise.
30460         * modules/crypto/md4-tests: Likewise.
30461         * modules/fcntl-h-tests: Likewise.
30462         * modules/floorf-tests: Likewise.
30463         * modules/floorl-tests: Likewise.
30464         * modules/frexp-nolibm-tests: Likewise.
30465         * modules/frexp-tests: Likewise.
30466         * modules/frexpl-nolibm-tests: Likewise.
30467         * modules/frexpl-tests: Likewise.
30468         * modules/getaddrinfo-tests: Likewise.
30469         * modules/inttypes-tests: Likewise.
30470         * modules/isfinite-tests: Likewise.
30471         * modules/isinf-tests: Likewise.
30472         * modules/ldexpl-tests: Likewise.
30473         * modules/locale-tests: Likewise.
30474         * modules/math-tests: Likewise.
30475         * modules/netdb-tests: Likewise.
30476         * modules/netinet_in-tests: Likewise.
30477         * modules/printf-frexp-tests: Likewise.
30478         * modules/printf-frexpl-tests: Likewise.
30479         * modules/priv-set-tests: Likewise.
30480         * modules/random_r-tests: Likewise.
30481         * modules/round-tests: Likewise.
30482         * modules/roundf-tests: Likewise.
30483         * modules/roundl-tests: Likewise.
30484         * modules/search-tests: Likewise.
30485         * modules/select-tests: Likewise.
30486         * modules/signal-tests: Likewise.
30487         * modules/stdbool-tests: Likewise.
30488         * modules/stddef-tests: Likewise.
30489         * modules/stdint-tests: Likewise.
30490         * modules/stdio-tests: Likewise.
30491         * modules/stdlib-tests: Likewise.
30492         * modules/string-tests: Likewise.
30493         * modules/strings-tests: Likewise.
30494         * modules/sys_select-tests: Likewise.
30495         * modules/sys_socket-tests: Likewise.
30496         * modules/sys_stat-tests: Likewise.
30497         * modules/sys_time-tests: Likewise.
30498         * modules/sys_utsname-tests: Likewise.
30499         * modules/sysexits-tests: Likewise.
30500         * modules/time-tests: Likewise.
30501         * modules/trunc-tests: Likewise.
30502         * modules/truncf-tests: Likewise.
30503         * modules/truncl-tests: Likewise.
30504         * modules/tsearch-tests: Likewise.
30505         * modules/unistd-tests: Likewise.
30506         * modules/wchar-tests: Likewise.
30507         * modules/wctype-tests: Likewise.
30508
30509         tests: fix license on several tests
30510         * tests/test-des.c: Update to GPLv3+.
30511         * tests/test-flock.c: Likewise.
30512         * tests/test-fsync.c: Likewise.
30513         * tests/test-futimens.h: Likewise.
30514         * tests/test-gc-arcfour.c: Likewise.
30515         * tests/test-gc-arctwo.c: Likewise.
30516         * tests/test-gc-des.c: Likewise.
30517         * tests/test-gc-hmac-md5.c: Likewise.
30518         * tests/test-gc-hmac-sha1.c: Likewise.
30519         * tests/test-gc-md2.c: Likewise.
30520         * tests/test-gc-md4.c: Likewise.
30521         * tests/test-gc-md5.c: Likewise.
30522         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30523         * tests/test-gc-rijndael.c: Likewise.
30524         * tests/test-gc-sha1.c: Likewise.
30525         * tests/test-gc.c: Likewise.
30526         * tests/test-getcwd.c: Likewise.
30527         * tests/test-link.c: Likewise.
30528         * tests/test-link.h: Likewise.
30529         * tests/test-lutimens.h: Likewise.
30530         * tests/test-md2.c: Likewise.
30531         * tests/test-md4.c: Likewise.
30532         * tests/test-mkdir.h: Likewise.
30533         * tests/test-rename.c: Likewise.
30534         * tests/test-rename.h: Likewise.
30535         * tests/test-safe-alloc.c: Likewise.
30536         * tests/test-utimens-common.h: Likewise.
30537         * tests/test-utimens.h: Likewise.
30538
30539         maint: sync license texts
30540         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30541         * doc/gpl-3.0.texi: Revert copyright year update.
30542         * doc/lgpl-3.0.texi: Likewise.
30543
30544 2009-12-29  Jim Meyering  <meyering@redhat.com>
30545
30546         update nearly all FSF copyright year lists to include 2009
30547         The files named by the following are exempted:
30548             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30549               test -f "$dst" && { echo "$dst"; continue; }
30550               test -d "$dst" || continue
30551               echo "$dst"/$(basename "$src")
30552             done > exempt
30553             git ls-files tests/unictype >> exempt
30554         In the remaining files, convert to all-interval notation if
30555         - there is already at least one year interval like 2000-2003
30556         - the file is maintained by me
30557         - the file is in lib/uni*/, where that style already prevails
30558         Otherwise, use update-copyright's default.
30559
30560 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30561         and Eric Blake  <ebb9@byu.net>
30562
30563         tests: don't require debug system() to pass
30564         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30565         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30566         * tests/test-unlink.h (test_unlink_func): Likewise.
30567         * tests/test-fstatat.c (main): ...into callers.
30568         * tests/test-lstat.c (main): Likewise.
30569         * tests/test-rmdir.c (main): Likewise.
30570         * tests/test-unlink.c (main): Likewise.
30571         * tests/test-unlinkat.c (main): Likewise.
30572         * tests/test-areadlink-with-size.c (main): Don't require a
30573         debug-only system call to pass, aiding cross-testing to mingw.
30574         * tests/test-areadlink.c (main): Likewise.
30575         * tests/test-areadlinkat-with-size.c (main): Likewise.
30576         * tests/test-areadlinkat.c (main): Likewise.
30577         * tests/test-canonicalize-lgpl.c (main): Likewise.
30578         * tests/test-canonicalize.c (main): Likewise.
30579         * tests/test-chown.c (main): Likewise.
30580         * tests/test-fchownat.c (main): Likewise.
30581         * tests/test-lchown.c (main): Likewise.
30582         * tests/test-fdutimensat.c (main): Likewise.
30583         * tests/test-futimens.c (main): Likewise.
30584         * tests/test-link.c (main): Likewise.
30585         * tests/test-linkat.c (main): Likewise.
30586         * tests/test-mkdir.c (main): Likewise.
30587         * tests/test-mkdirat.c (main): Likewise.
30588         * tests/test-mkfifo.c (main): Likewise.
30589         * tests/test-mkfifoat.c (main): Likewise.
30590         * tests/test-mknod.c (main): Likewise.
30591         * tests/test-readlink.c (main): Likewise.
30592         * tests/test-remove.c (main): Likewise.
30593         * tests/test-rename.c (main): Likewise.
30594         * tests/test-renameat.c (main): Likewise.
30595         * tests/test-symlink.c (main): Likewise.
30596         * tests/test-symlinkat.c (main): Likewise.
30597         * tests/test-utimens.c (main): Likewise.
30598         * tests/test-utimensat.c (main): Likewise.
30599
30600 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30601
30602         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30603         on $(UNUSED_PARAMETER_H) to avoid build failure.
30604
30605 2009-12-28  Jim Meyering  <meyering@redhat.com>
30606
30607         update-copyright: you may specify a max. line length other than 72
30608         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30609
30610         maint: use consistent FSF copyright line syntax
30611         * lib/posixtm.c: Add missing comma in FSF copyright line.
30612         * lib/posixtm.h: Likewise.
30613         * lib/getugroups.c: Add missing ", Inc.".
30614
30615         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30616         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30617         FSF copyright line.  Remove trailing blanks.
30618
30619 2009-12-28  Eric Blake  <ebb9@byu.net>
30620
30621         test-dup2: reduce dependencies
30622         * modules/cloexec (Configure.ac): Set witness.
30623         * modules/dup2-tests (Depends-on): Drop cloexec.
30624         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30625         not present.
30626         Suggested by Bruno Haible.
30627
30628 2009-12-26  Bruno Haible  <bruno@clisp.org>
30629
30630         Remove an unneeded dependency.
30631         * modules/fseterr (Depends-on): Remove dup2.
30632
30633 2009-12-26  Eric Blake  <ebb9@byu.net>
30634
30635         tests: use macros.h in more places
30636         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30637         (ASSERT_STREAM): Provide default of stderr.
30638         * tests/test-dirent-safer.c: Include macros.h, using alternate
30639         stream for assertions.
30640         * tests/test-dup-safer.c: Likewise.
30641         * tests/test-freopen-safer.c: Likewise.
30642         * tests/test-getopt.c: Likewise.
30643         * tests/test-openat-safer.c: Likewise.
30644         * tests/test-pipe.c: Likewise.
30645         * tests/test-popen-safer.c: Likewise.
30646         * modules/dirent-safer-tests (Files): Include macros.h.
30647         * modules/unistd-safer-tests (Files): Likewise.
30648         * modules/freopen-safer-tests (Files): Likewise.
30649         * modules/getopt-posix-tests (Files): Likewise.
30650         * modules/openat-safer-tests (Files): Likewise.
30651         * modules/pipe-tests (Files): Likewise.
30652
30653 2009-12-26  Bruno Haible  <bruno@clisp.org>
30654
30655         javacomp: Portability fix.
30656         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30657         that it also works on Solaris.
30658
30659 2009-12-26  Bruno Haible  <bruno@clisp.org>
30660
30661         localename: Fix storage allocation of gl_locale_name_thread's result.
30662         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30663         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30664         all platforms that have 'uselocale'.
30665         (gl_locale_name_thread_unsafe): New function, extracted from
30666         gl_locale_name_thread.
30667         (gl_locale_name_thread): Call struniq on all platforms that have
30668         'uselocale'.
30669         * tests/test-localename.c (test_locale_name_thread): Check that the
30670         resulting strings are permanently allocated.
30671         * modules/localename-tests (Depends-on): Add strdup.
30672
30673 2009-12-26  Bruno Haible  <bruno@clisp.org>
30674
30675         * tests/test-localename.c (categories): Fill in the strings.
30676
30677 2009-12-26  Jim Meyering  <meyering@redhat.com>
30678
30679         isdir: complete the removal of m4/isdir.m4
30680         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30681
30682         isdir: clean up, since at least grep still uses it
30683         * lib/isdir.c: Include "isdir.h".
30684         (S_ISDIR): Remove now-unneeded definition.
30685         * modules/isdir (Files): Add lib/isdir.h.
30686         * lib/isdir.h: New file, with declaration.
30687         * m4/isdir.m4: Remove file -- unneeded.
30688
30689 2009-12-25  Bruno Haible  <bruno@clisp.org>
30690
30691         selinux-h: Make generated .h files standalone.
30692         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30693         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30694         * lib/se-selinux.in.h: Likewise.
30695         * modules/selinux-h (Depends-on): Add unused-parameter.
30696         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30697         selinux/selinux.h and selinux/context.h.
30698         Suggested by Eric Blake.
30699
30700 2009-12-25  Bruno Haible  <bruno@clisp.org>
30701
30702         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30703         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30704         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30705         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30706         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30707
30708 2009-12-24  Bruno Haible  <bruno@clisp.org>
30709
30710         openat: Fix warning.
30711         * lib/openat-proc.c: Include <unistd.h>.
30712
30713 2009-12-24  Bruno Haible  <bruno@clisp.org>
30714
30715         New module 'unused-parameter'.
30716         * build-aux/unused-parameter.h: New file, extracted from earlier
30717         gnulib-common.m4.
30718         * modules/unused-parameter: New file.
30719         * lib/unistr.h: Include unused-parameter.h.
30720         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30721         _GL_UNUSED.
30722         * modules/unistr/base (Depends-on): Add unused-parameter.
30723
30724 2009-12-24  Bruno Haible  <bruno@clisp.org>
30725
30726         Add missing dependencies to 'extensions' module.
30727         * m4/extensions.m4: Add comment.
30728         * modules/accept4 (Depends-on): Add extensions.
30729         * modules/dup3 (Depends-on): Likewise.
30730         * modules/fcntl (Depends-on): Likewise.
30731         * modules/futimens (Depends-on): Likewise.
30732         * modules/mknod (Depends-on): Likewise.
30733         * modules/pipe2 (Depends-on): Likewise.
30734         * modules/stat-time (Depends-on): Likewise.
30735         * modules/strcasestr-simple (Depends-on): Likewise.
30736         * modules/strsignal (Depends-on): Likewise.
30737         * modules/utimensat (Depends-on): Likewise.
30738         * modules/localcharset (Depends-on): Likewise. Needed because of
30739         gl_FCNTL_O_FLAGS.
30740         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30741         AC_TYPE_MBSTATE_T.
30742         * modules/wcsnrtombs (Depends-on): Likewise.
30743         * modules/wcsrtombs (Depends-on): Likewise.
30744
30745 2009-12-24  Bruno Haible  <bruno@clisp.org>
30746
30747         binary-io: Avoid gcc warning due to SET_BINARY.
30748         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30749         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30750
30751 2009-12-24  Bruno Haible  <bruno@clisp.org>
30752
30753         Avoid future namespace pollution on glibc systems.
30754         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30755         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30756         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30757         glibc systems.
30758
30759 2009-12-24  Bruno Haible  <bruno@clisp.org>
30760
30761         Refactor common macros used in tests.
30762         * tests/macros.h: New file.
30763         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30764         and/or <stdlib.h>, if appropriate.
30765         (ASSERT, SIZEOF): Remove macros.
30766         * tests/test-areadlink-with-size.c: Likewise.
30767         * tests/test-areadlinkat.c: Likewise.
30768         * tests/test-areadlinkat-with-size.c: Likewise.
30769         * tests/test-argmatch.c: Likewise.
30770         * tests/test-argv-iter.c: Likewise.
30771         * tests/test-array-mergesort.c: Likewise.
30772         * tests/test-array_list.c: Likewise.
30773         * tests/test-array_oset.c: Likewise.
30774         * tests/test-avltree_list.c: Likewise.
30775         * tests/test-avltree_oset.c: Likewise.
30776         * tests/test-avltreehash_list.c: Likewise.
30777         * tests/test-base64.c: Likewise.
30778         * tests/test-binary-io.c: Likewise.
30779         * tests/test-bitrotate.c: Likewise.
30780         * tests/test-btowc.c: Likewise.
30781         * tests/test-byteswap.c: Likewise.
30782         * tests/test-c-ctype.c: Likewise.
30783         * tests/test-c-stack.c: Likewise.
30784         * tests/test-c-strcasecmp.c: Likewise.
30785         * tests/test-c-strcasestr.c: Likewise.
30786         * tests/test-c-strncasecmp.c: Likewise.
30787         * tests/test-c-strstr.c: Likewise.
30788         * tests/test-canonicalize-lgpl.c: Likewise.
30789         * tests/test-canonicalize.c: Likewise.
30790         * tests/test-carray_list.c: Likewise.
30791         * tests/test-ceilf1.c: Likewise.
30792         * tests/test-ceilf2.c: Likewise.
30793         * tests/test-ceill.c: Likewise.
30794         * tests/test-chown.c: Likewise.
30795         * tests/test-cloexec.c: Likewise.
30796         * tests/test-copy-acl.c: Likewise.
30797         * tests/test-copy-file.c: Likewise.
30798         * tests/test-count-one-bits.c: Likewise.
30799         * tests/test-dprintf-posix.c: Likewise.
30800         * tests/test-dup2.c: Likewise.
30801         * tests/test-dup3.c: Likewise.
30802         * tests/test-duplocale.c: Likewise.
30803         * tests/test-fbufmode.c: Likewise.
30804         * tests/test-fchdir.c: Likewise.
30805         * tests/test-fchownat.c: Likewise.
30806         * tests/test-fcntl-safer.c: Likewise.
30807         * tests/test-fcntl.c: Likewise.
30808         * tests/test-fdopendir.c: Likewise.
30809         * tests/test-fdutimensat.c: Likewise.
30810         * tests/test-fflush2.c: Likewise.
30811         * tests/test-file-has-acl.c: Likewise.
30812         * tests/test-filevercmp.c: Likewise.
30813         * tests/test-flock.c: Likewise.
30814         * tests/test-floorf1.c: Likewise.
30815         * tests/test-floorf2.c: Likewise.
30816         * tests/test-floorl.c: Likewise.
30817         * tests/test-fnmatch.c: Likewise.
30818         * tests/test-fopen.h: Likewise.
30819         * tests/test-fpending.c: Likewise.
30820         * tests/test-fprintf-posix.c: Likewise.
30821         * tests/test-fpurge.c: Likewise.
30822         * tests/test-freadable.c: Likewise.
30823         * tests/test-freadahead.c: Likewise.
30824         * tests/test-freading.c: Likewise.
30825         * tests/test-freadptr.c: Likewise.
30826         * tests/test-freadptr2.c: Likewise.
30827         * tests/test-freadseek.c: Likewise.
30828         * tests/test-freopen.c: Likewise.
30829         * tests/test-frexp.c: Likewise.
30830         * tests/test-frexpl.c: Likewise.
30831         * tests/test-fseek.c: Likewise.
30832         * tests/test-fseeko.c: Likewise.
30833         * tests/test-fstatat.c: Likewise.
30834         * tests/test-fstrcmp.c: Likewise.
30835         * tests/test-fsync.c: Likewise.
30836         * tests/test-ftell.c: Likewise.
30837         * tests/test-ftello.c: Likewise.
30838         * tests/test-func.c: Likewise.
30839         * tests/test-futimens.c: Likewise.
30840         * tests/test-fwritable.c: Likewise.
30841         * tests/test-fwriting.c: Likewise.
30842         * tests/test-getcwd.c: Likewise.
30843         * tests/test-getdate.c: Likewise.
30844         * tests/test-getdelim.c: Likewise.
30845         * tests/test-getdtablesize.c: Likewise.
30846         * tests/test-getgroups.c: Likewise.
30847         * tests/test-getline.c: Likewise.
30848         * tests/test-getndelim2.c: Likewise.
30849         * tests/test-glob.c: Likewise.
30850         * tests/test-hash.c: Likewise.
30851         * tests/test-i-ring.c: Likewise.
30852         * tests/test-iconv-utf.c: Likewise.
30853         * tests/test-iconv.c: Likewise.
30854         * tests/test-idpriv-drop.c: Likewise.
30855         * tests/test-idpriv-droptemp.c: Likewise.
30856         * tests/test-inet_ntop.c: Likewise.
30857         * tests/test-inet_pton.c: Likewise.
30858         * tests/test-isblank.c: Likewise.
30859         * tests/test-isfinite.c: Likewise.
30860         * tests/test-isinf.c: Likewise.
30861         * tests/test-isnan.c: Likewise.
30862         * tests/test-isnand.h: Likewise.
30863         * tests/test-isnanf.h: Likewise.
30864         * tests/test-isnanl.h: Likewise.
30865         * tests/test-lchown.c: Likewise.
30866         * tests/test-ldexpl.c: Likewise.
30867         * tests/test-link.c: Likewise.
30868         * tests/test-linkat.c: Likewise.
30869         * tests/test-linked_list.c: Likewise.
30870         * tests/test-linkedhash_list.c: Likewise.
30871         * tests/test-localename.c: Likewise.
30872         * tests/test-lseek.c: Likewise.
30873         * tests/test-lstat.c: Likewise.
30874         * tests/test-mbmemcasecmp.c: Likewise.
30875         * tests/test-mbmemcasecoll.c: Likewise.
30876         * tests/test-mbrtowc.c: Likewise.
30877         * tests/test-mbscasecmp.c: Likewise.
30878         * tests/test-mbscasestr1.c: Likewise.
30879         * tests/test-mbscasestr2.c: Likewise.
30880         * tests/test-mbscasestr3.c: Likewise.
30881         * tests/test-mbscasestr4.c: Likewise.
30882         * tests/test-mbschr.c: Likewise.
30883         * tests/test-mbscspn.c: Likewise.
30884         * tests/test-mbsinit.c: Likewise.
30885         * tests/test-mbsncasecmp.c: Likewise.
30886         * tests/test-mbsnrtowcs.c: Likewise.
30887         * tests/test-mbspbrk.c: Likewise.
30888         * tests/test-mbspcasecmp.c: Likewise.
30889         * tests/test-mbsrchr.c: Likewise.
30890         * tests/test-mbsrtowcs.c: Likewise.
30891         * tests/test-mbsspn.c: Likewise.
30892         * tests/test-mbsstr1.c: Likewise.
30893         * tests/test-mbsstr2.c: Likewise.
30894         * tests/test-mbsstr3.c: Likewise.
30895         * tests/test-memchr.c: Likewise.
30896         * tests/test-memchr2.c: Likewise.
30897         * tests/test-memcmp.c: Likewise.
30898         * tests/test-memmem.c: Likewise.
30899         * tests/test-memrchr.c: Likewise.
30900         * tests/test-mkdir.c: Likewise.
30901         * tests/test-mkdirat.c: Likewise.
30902         * tests/test-mkfifo.c: Likewise.
30903         * tests/test-mkfifoat.c: Likewise.
30904         * tests/test-mknod.c: Likewise.
30905         * tests/test-nanosleep.c: Likewise.
30906         * tests/test-nl_langinfo.c: Likewise.
30907         * tests/test-obstack-printf.c: Likewise.
30908         * tests/test-open.c: Likewise.
30909         * tests/test-openat.c: Likewise.
30910         * tests/test-pipe-filter-gi1.c: Likewise.
30911         * tests/test-pipe-filter-gi2-main.c: Likewise.
30912         * tests/test-pipe-filter-ii1.c: Likewise.
30913         * tests/test-pipe-filter-ii2-main.c: Likewise.
30914         * tests/test-pipe2.c: Likewise.
30915         * tests/test-popen.h: Likewise.
30916         * tests/test-posixtm.c: Likewise.
30917         * tests/test-pread.c: Likewise.
30918         * tests/test-printf-frexp.c: Likewise.
30919         * tests/test-printf-frexpl.c: Likewise.
30920         * tests/test-printf-posix.c: Likewise.
30921         * tests/test-priv-set.c: Likewise.
30922         * tests/test-quotearg.c: Likewise.
30923         * tests/test-random_r.c: Likewise.
30924         * tests/test-rawmemchr.c: Likewise.
30925         * tests/test-rbtree_list.c: Likewise.
30926         * tests/test-rbtree_oset.c: Likewise.
30927         * tests/test-rbtreehash_list.c: Likewise.
30928         * tests/test-readlink.c: Likewise.
30929         * tests/test-remove.c: Likewise.
30930         * tests/test-rename.c: Likewise.
30931         * tests/test-renameat.c: Likewise.
30932         * tests/test-rmdir.c: Likewise.
30933         * tests/test-round1.c: Likewise.
30934         * tests/test-roundf1.c: Likewise.
30935         * tests/test-roundl.c: Likewise.
30936         * tests/test-safe-alloc.c: Likewise.
30937         * tests/test-sameacls.c: Likewise.
30938         * tests/test-set-mode-acl.c: Likewise.
30939         * tests/test-setenv.c: Likewise.
30940         * tests/test-sigaction.c: Likewise.
30941         * tests/test-signbit.c: Likewise.
30942         * tests/test-sleep.c: Likewise.
30943         * tests/test-snprintf-posix.c: Likewise.
30944         * tests/test-snprintf.c: Likewise.
30945         * tests/test-sprintf-posix.c: Likewise.
30946         * tests/test-stat-time.c: Likewise.
30947         * tests/test-stat.c: Likewise.
30948         * tests/test-strcasestr.c: Likewise.
30949         * tests/test-strchrnul.c: Likewise.
30950         * tests/test-strerror.c: Likewise.
30951         * tests/test-striconv.c: Likewise.
30952         * tests/test-striconveh.c: Likewise.
30953         * tests/test-striconveha.c: Likewise.
30954         * tests/test-strsignal.c: Likewise.
30955         * tests/test-strstr.c: Likewise.
30956         * tests/test-strtod.c: Likewise.
30957         * tests/test-strverscmp.c: Likewise.
30958         * tests/test-symlink.c: Likewise.
30959         * tests/test-symlinkat.c: Likewise.
30960         * tests/test-trunc1.c: Likewise.
30961         * tests/test-trunc2.c: Likewise.
30962         * tests/test-truncf1.c: Likewise.
30963         * tests/test-truncf2.c: Likewise.
30964         * tests/test-truncl.c: Likewise.
30965         * tests/test-uname.c: Likewise.
30966         * tests/test-unlink.c: Likewise.
30967         * tests/test-unlinkat.c: Likewise.
30968         * tests/test-unsetenv.c: Likewise.
30969         * tests/test-usleep.c: Likewise.
30970         * tests/test-utimens.c: Likewise.
30971         * tests/test-utimensat.c: Likewise.
30972         * tests/test-vasnprintf-posix.c: Likewise.
30973         * tests/test-vasnprintf-posix2.c: Likewise.
30974         * tests/test-vasnprintf.c: Likewise.
30975         * tests/test-vasprintf-posix.c: Likewise.
30976         * tests/test-vasprintf.c: Likewise.
30977         * tests/test-vdprintf-posix.c: Likewise.
30978         * tests/test-vfprintf-posix.c: Likewise.
30979         * tests/test-vprintf-posix.c: Likewise.
30980         * tests/test-vsnprintf-posix.c: Likewise.
30981         * tests/test-vsnprintf.c: Likewise.
30982         * tests/test-vsprintf-posix.c: Likewise.
30983         * tests/test-wcrtomb.c: Likewise.
30984         * tests/test-wcsnrtombs.c: Likewise.
30985         * tests/test-wcsrtombs.c: Likewise.
30986         * tests/test-wctype.c: Likewise.
30987         * tests/test-wcwidth.c: Likewise.
30988         * tests/test-xfprintf-posix.c: Likewise.
30989         * tests/test-xmemdup0.c: Likewise.
30990         * tests/test-xprintf-posix.c: Likewise.
30991         * tests/test-xvasprintf.c: Likewise.
30992         * tests/unicase/test-locale-language.c: Likewise.
30993         * tests/unicase/test-mapping-part1.h: Likewise.
30994         * tests/unicase/test-predicate-part1.h: Likewise.
30995         * tests/unicase/test-u8-casecmp.c: Likewise.
30996         * tests/unicase/test-u8-casecoll.c: Likewise.
30997         * tests/unicase/test-u8-casefold.c: Likewise.
30998         * tests/unicase/test-u8-is-cased.c: Likewise.
30999         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31000         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31001         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31002         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31003         * tests/unicase/test-u8-tolower.c: Likewise.
31004         * tests/unicase/test-u8-totitle.c: Likewise.
31005         * tests/unicase/test-u8-toupper.c: Likewise.
31006         * tests/unicase/test-u16-casecmp.c: Likewise.
31007         * tests/unicase/test-u16-casecoll.c: Likewise.
31008         * tests/unicase/test-u16-casefold.c: Likewise.
31009         * tests/unicase/test-u16-is-cased.c: Likewise.
31010         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31011         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31012         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31013         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31014         * tests/unicase/test-u16-tolower.c: Likewise.
31015         * tests/unicase/test-u16-totitle.c: Likewise.
31016         * tests/unicase/test-u16-toupper.c: Likewise.
31017         * tests/unicase/test-u32-casecmp.c: Likewise.
31018         * tests/unicase/test-u32-casecoll.c: Likewise.
31019         * tests/unicase/test-u32-casefold.c: Likewise.
31020         * tests/unicase/test-u32-is-cased.c: Likewise.
31021         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31022         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31023         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31024         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31025         * tests/unicase/test-u32-tolower.c: Likewise.
31026         * tests/unicase/test-u32-totitle.c: Likewise.
31027         * tests/unicase/test-u32-toupper.c: Likewise.
31028         * tests/unicase/test-ulc-casecmp.c: Likewise.
31029         * tests/unicase/test-ulc-casecoll.c: Likewise.
31030         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31031         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31032         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31033         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31034         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31035         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31036         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31037         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31038         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31039         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31040         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31041         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31042         * tests/unictype/test-bidi_byname.c: Likewise.
31043         * tests/unictype/test-bidi_name.c: Likewise.
31044         * tests/unictype/test-bidi_of.c: Likewise.
31045         * tests/unictype/test-bidi_test.c: Likewise.
31046         * tests/unictype/test-block_list.c: Likewise.
31047         * tests/unictype/test-block_of.c: Likewise.
31048         * tests/unictype/test-block_test.c: Likewise.
31049         * tests/unictype/test-categ_and.c: Likewise.
31050         * tests/unictype/test-categ_and_not.c: Likewise.
31051         * tests/unictype/test-categ_byname.c: Likewise.
31052         * tests/unictype/test-categ_name.c: Likewise.
31053         * tests/unictype/test-categ_none.c: Likewise.
31054         * tests/unictype/test-categ_of.c: Likewise.
31055         * tests/unictype/test-categ_or.c: Likewise.
31056         * tests/unictype/test-categ_test_withtable.c: Likewise.
31057         * tests/unictype/test-combining.c: Likewise.
31058         * tests/unictype/test-decdigit.c: Likewise.
31059         * tests/unictype/test-digit.c: Likewise.
31060         * tests/unictype/test-mirror.c: Likewise.
31061         * tests/unictype/test-numeric.c: Likewise.
31062         * tests/unictype/test-pr_byname.c: Likewise.
31063         * tests/unictype/test-pr_test.c: Likewise.
31064         * tests/unictype/test-predicate-part1.h: Likewise.
31065         * tests/unictype/test-scripts.c: Likewise.
31066         * tests/unictype/test-sy_c_ident.c: Likewise.
31067         * tests/unictype/test-sy_java_ident.c: Likewise.
31068         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31069         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31070         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31071         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31072         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31073         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31074         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31075         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31076         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31077         * tests/uninorm/test-compat-decomposition.c: Likewise.
31078         * tests/uninorm/test-composition.c: Likewise.
31079         * tests/uninorm/test-decomposing-form.c: Likewise.
31080         * tests/uninorm/test-decomposition.c: Likewise.
31081         * tests/uninorm/test-u8-nfc.c: Likewise.
31082         * tests/uninorm/test-u8-nfd.c: Likewise.
31083         * tests/uninorm/test-u8-nfkc.c: Likewise.
31084         * tests/uninorm/test-u8-nfkd.c: Likewise.
31085         * tests/uninorm/test-u8-normcmp.c: Likewise.
31086         * tests/uninorm/test-u8-normcoll.c: Likewise.
31087         * tests/uninorm/test-u16-nfc.c: Likewise.
31088         * tests/uninorm/test-u16-nfd.c: Likewise.
31089         * tests/uninorm/test-u16-nfkc.c: Likewise.
31090         * tests/uninorm/test-u16-nfkd.c: Likewise.
31091         * tests/uninorm/test-u16-normcmp.c: Likewise.
31092         * tests/uninorm/test-u16-normcoll.c: Likewise.
31093         * tests/uninorm/test-u32-nfc.c: Likewise.
31094         * tests/uninorm/test-u32-nfd.c: Likewise.
31095         * tests/uninorm/test-u32-nfkc.c: Likewise.
31096         * tests/uninorm/test-u32-nfkd.c: Likewise.
31097         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31098         * tests/uninorm/test-u32-normcmp.c: Likewise.
31099         * tests/uninorm/test-u32-normcoll.c: Likewise.
31100         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31101         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31102         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31103         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31104         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31105         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31106         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31107         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31108         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31109         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31110         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31111         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31112         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31113         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31114         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31115         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31116         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31117         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31118         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31119         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31120         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31121         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31122         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31123         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31124         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31125         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31126         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31127         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31128         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31129         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31130         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31131         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31132         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31133         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31134         * tests/uniwidth/test-u8-width.c: Likewise.
31135         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31136         * tests/uniwidth/test-u16-width.c: Likewise.
31137         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31138         * tests/uniwidth/test-u32-width.c: Likewise.
31139         * tests/uniwidth/test-uc_width.c: Likewise.
31140         * tests/uniwidth/test-uc_width2.c: Likewise.
31141         * modules/acl-tests (Files): Add tests/macros.h.
31142         * modules/areadlink-tests (Files): Likewise.
31143         * modules/areadlink-with-size-tests (Files): Likewise.
31144         * modules/areadlinkat-tests (Files): Likewise.
31145         * modules/areadlinkat-with-size-tests (Files): Likewise.
31146         * modules/argmatch-tests (Files): Likewise.
31147         * modules/argv-iter-tests (Files): Likewise.
31148         * modules/array-list-tests (Files): Likewise.
31149         * modules/array-mergesort-tests (Files): Likewise.
31150         * modules/array-oset-tests (Files): Likewise.
31151         * modules/avltree-list-tests (Files): Likewise.
31152         * modules/avltree-oset-tests (Files): Likewise.
31153         * modules/avltreehash-list-tests (Files): Likewise.
31154         * modules/base64-tests (Files): Likewise.
31155         * modules/binary-io-tests (Files): Likewise.
31156         * modules/bitrotate-tests (Files): Likewise.
31157         * modules/btowc-tests (Files): Likewise.
31158         * modules/byteswap-tests (Files): Likewise.
31159         * modules/c-ctype-tests (Files): Likewise.
31160         * modules/c-stack-tests (Files): Likewise.
31161         * modules/c-strcase-tests (Files): Likewise.
31162         * modules/c-strcasestr-tests (Files): Likewise.
31163         * modules/c-strstr-tests (Files): Likewise.
31164         * modules/canonicalize-lgpl-tests (Files): Likewise.
31165         * modules/canonicalize-tests (Files): Likewise.
31166         * modules/carray-list-tests (Files): Likewise.
31167         * modules/ceilf-tests (Files): Likewise.
31168         * modules/ceill-tests (Files): Likewise.
31169         * modules/chown-tests (Files): Likewise.
31170         * modules/cloexec-tests (Files): Likewise.
31171         * modules/copy-file-tests (Files): Likewise.
31172         * modules/count-one-bits-tests (Files): Likewise.
31173         * modules/dprintf-posix-tests (Files): Likewise.
31174         * modules/dup2-tests (Files): Likewise.
31175         * modules/dup3-tests (Files): Likewise.
31176         * modules/duplocale-tests (Files): Likewise.
31177         * modules/fbufmode-tests (Files): Likewise.
31178         * modules/fchdir-tests (Files): Likewise.
31179         * modules/fcntl-safer-tests (Files): Likewise.
31180         * modules/fcntl-tests (Files): Likewise.
31181         * modules/fdopendir-tests (Files): Likewise.
31182         * modules/fdutimensat-tests (Files): Likewise.
31183         * modules/fflush-tests (Files): Likewise.
31184         * modules/filevercmp-tests (Files): Likewise.
31185         * modules/flock-tests (Files): Likewise.
31186         * modules/floorf-tests (Files): Likewise.
31187         * modules/floorl-tests (Files): Likewise.
31188         * modules/fnmatch-tests (Files): Likewise.
31189         * modules/fopen-safer-tests (Files): Likewise.
31190         * modules/fopen-tests (Files): Likewise.
31191         * modules/fpending-tests (Files): Likewise.
31192         * modules/fprintf-posix-tests (Files): Likewise.
31193         * modules/fpurge-tests (Files): Likewise.
31194         * modules/freadable-tests (Files): Likewise.
31195         * modules/freadahead-tests (Files): Likewise.
31196         * modules/freading-tests (Files): Likewise.
31197         * modules/freadptr-tests (Files): Likewise.
31198         * modules/freadseek-tests (Files): Likewise.
31199         * modules/freopen-tests (Files): Likewise.
31200         * modules/frexp-nolibm-tests (Files): Likewise.
31201         * modules/frexp-tests (Files): Likewise.
31202         * modules/frexpl-nolibm-tests (Files): Likewise.
31203         * modules/frexpl-tests (Files): Likewise.
31204         * modules/fseek-tests (Files): Likewise.
31205         * modules/fseeko-tests (Files): Likewise.
31206         * modules/fstrcmp-tests (Files): Likewise.
31207         * modules/fsync-tests (Files): Likewise.
31208         * modules/ftell-tests (Files): Likewise.
31209         * modules/ftello-tests (Files): Likewise.
31210         * modules/func-tests (Files): Likewise.
31211         * modules/futimens-tests (Files): Likewise.
31212         * modules/fwritable-tests (Files): Likewise.
31213         * modules/fwriting-tests (Files): Likewise.
31214         * modules/getcwd-tests (Files): Likewise.
31215         * modules/getdate-tests (Files): Likewise.
31216         * modules/getdelim-tests (Files): Likewise.
31217         * modules/getdtablesize-tests (Files): Likewise.
31218         * modules/getgroups-tests (Files): Likewise.
31219         * modules/getline-tests (Files): Likewise.
31220         * modules/getndelim2-tests (Files): Likewise.
31221         * modules/glob-tests (Files): Likewise.
31222         * modules/hash-tests (Files): Likewise.
31223         * modules/i-ring-tests (Files): Likewise.
31224         * modules/iconv-tests (Files): Likewise.
31225         * modules/iconv_open-utf-tests (Files): Likewise.
31226         * modules/idpriv-drop-tests (Files): Likewise.
31227         * modules/idpriv-droptemp-tests (Files): Likewise.
31228         * modules/inet_ntop-tests (Files): Likewise.
31229         * modules/inet_pton-tests (Files): Likewise.
31230         * modules/isblank-tests (Files): Likewise.
31231         * modules/isfinite-tests (Files): Likewise.
31232         * modules/isinf-tests (Files): Likewise.
31233         * modules/isnan-tests (Files): Likewise.
31234         * modules/isnand-nolibm-tests (Files): Likewise.
31235         * modules/isnand-tests (Files): Likewise.
31236         * modules/isnanf-nolibm-tests (Files): Likewise.
31237         * modules/isnanf-tests (Files): Likewise.
31238         * modules/isnanl-nolibm-tests (Files): Likewise.
31239         * modules/isnanl-tests (Files): Likewise.
31240         * modules/lchown-tests (Files): Likewise.
31241         * modules/ldexpl-tests (Files): Likewise.
31242         * modules/link-tests (Files): Likewise.
31243         * modules/linkat-tests (Files): Likewise.
31244         * modules/linked-list-tests (Files): Likewise.
31245         * modules/linkedhash-list-tests (Files): Likewise.
31246         * modules/localename-tests (Files): Likewise.
31247         * modules/lseek-tests (Files): Likewise.
31248         * modules/lstat-tests (Files): Likewise.
31249         * modules/mbmemcasecmp-tests (Files): Likewise.
31250         * modules/mbmemcasecoll-tests (Files): Likewise.
31251         * modules/mbrtowc-tests (Files): Likewise.
31252         * modules/mbscasecmp-tests (Files): Likewise.
31253         * modules/mbscasestr-tests (Files): Likewise.
31254         * modules/mbschr-tests (Files): Likewise.
31255         * modules/mbscspn-tests (Files): Likewise.
31256         * modules/mbsinit-tests (Files): Likewise.
31257         * modules/mbsncasecmp-tests (Files): Likewise.
31258         * modules/mbsnrtowcs-tests (Files): Likewise.
31259         * modules/mbspbrk-tests (Files): Likewise.
31260         * modules/mbspcasecmp-tests (Files): Likewise.
31261         * modules/mbsrchr-tests (Files): Likewise.
31262         * modules/mbsrtowcs-tests (Files): Likewise.
31263         * modules/mbsspn-tests (Files): Likewise.
31264         * modules/mbsstr-tests (Files): Likewise.
31265         * modules/memchr-tests (Files): Likewise.
31266         * modules/memchr2-tests (Files): Likewise.
31267         * modules/memcmp-tests (Files): Likewise.
31268         * modules/memmem-tests (Files): Likewise.
31269         * modules/memrchr-tests (Files): Likewise.
31270         * modules/mkdir-tests (Files): Likewise.
31271         * modules/mkfifo-tests (Files): Likewise.
31272         * modules/mkfifoat-tests (Files): Likewise.
31273         * modules/mknod-tests (Files): Likewise.
31274         * modules/nanosleep-tests (Files): Likewise.
31275         * modules/nl_langinfo-tests (Files): Likewise.
31276         * modules/obstack-printf-tests (Files): Likewise.
31277         * modules/open-tests (Files): Likewise.
31278         * modules/openat-tests (Files): Likewise.
31279         * modules/pipe-filter-gi-tests (Files): Likewise.
31280         * modules/pipe-filter-ii-tests (Files): Likewise.
31281         * modules/pipe2-tests (Files): Likewise.
31282         * modules/popen-safer-tests (Files): Likewise.
31283         * modules/popen-tests (Files): Likewise.
31284         * modules/posixtm-tests (Files): Likewise.
31285         * modules/pread-tests (Files): Likewise.
31286         * modules/printf-frexp-tests (Files): Likewise.
31287         * modules/printf-frexpl-tests (Files): Likewise.
31288         * modules/printf-posix-tests (Files): Likewise.
31289         * modules/priv-set-tests (Files): Likewise.
31290         * modules/quotearg-tests (Files): Likewise.
31291         * modules/random_r-tests (Files): Likewise.
31292         * modules/rawmemchr-tests (Files): Likewise.
31293         * modules/rbtree-list-tests (Files): Likewise.
31294         * modules/rbtree-oset-tests (Files): Likewise.
31295         * modules/rbtreehash-list-tests (Files): Likewise.
31296         * modules/readlink-tests (Files): Likewise.
31297         * modules/remove-tests (Files): Likewise.
31298         * modules/rename-tests (Files): Likewise.
31299         * modules/renameat-tests (Files): Likewise.
31300         * modules/rmdir-tests (Files): Likewise.
31301         * modules/round-tests (Files): Likewise.
31302         * modules/roundf-tests (Files): Likewise.
31303         * modules/roundl-tests (Files): Likewise.
31304         * modules/safe-alloc-tests (Files): Likewise.
31305         * modules/setenv-tests (Files): Likewise.
31306         * modules/sigaction-tests (Files): Likewise.
31307         * modules/signbit-tests (Files): Likewise.
31308         * modules/sleep-tests (Files): Likewise.
31309         * modules/snprintf-posix-tests (Files): Likewise.
31310         * modules/snprintf-tests (Files): Likewise.
31311         * modules/sprintf-posix-tests (Files): Likewise.
31312         * modules/stat-tests (Files): Likewise.
31313         * modules/stat-time-tests (Files): Likewise.
31314         * modules/strcasestr-tests (Files): Likewise.
31315         * modules/strchrnul-tests (Files): Likewise.
31316         * modules/strerror-tests (Files): Likewise.
31317         * modules/striconv-tests (Files): Likewise.
31318         * modules/striconveh-tests (Files): Likewise.
31319         * modules/striconveha-tests (Files): Likewise.
31320         * modules/strsignal-tests (Files): Likewise.
31321         * modules/strstr-tests (Files): Likewise.
31322         * modules/strtod-tests (Files): Likewise.
31323         * modules/strverscmp-tests (Files): Likewise.
31324         * modules/symlink-tests (Files): Likewise.
31325         * modules/symlinkat-tests (Files): Likewise.
31326         * modules/trunc-tests (Files): Likewise.
31327         * modules/truncf-tests (Files): Likewise.
31328         * modules/truncl-tests (Files): Likewise.
31329         * modules/uname-tests (Files): Likewise.
31330         * modules/unicase/cased-tests (Files): Likewise.
31331         * modules/unicase/ignorable-tests (Files): Likewise.
31332         * modules/unicase/locale-language-tests (Files): Likewise.
31333         * modules/unicase/tolower-tests (Files): Likewise.
31334         * modules/unicase/totitle-tests (Files): Likewise.
31335         * modules/unicase/toupper-tests (Files): Likewise.
31336         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31337         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31338         * modules/unicase/u8-casefold-tests (Files): Likewise.
31339         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31340         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31341         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31342         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31343         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31344         * modules/unicase/u8-tolower-tests (Files): Likewise.
31345         * modules/unicase/u8-totitle-tests (Files): Likewise.
31346         * modules/unicase/u8-toupper-tests (Files): Likewise.
31347         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31348         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31349         * modules/unicase/u16-casefold-tests (Files): Likewise.
31350         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31351         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31352         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31353         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31354         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31355         * modules/unicase/u16-tolower-tests (Files): Likewise.
31356         * modules/unicase/u16-totitle-tests (Files): Likewise.
31357         * modules/unicase/u16-toupper-tests (Files): Likewise.
31358         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31359         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31360         * modules/unicase/u32-casefold-tests (Files): Likewise.
31361         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31362         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31363         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31364         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31365         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31366         * modules/unicase/u32-tolower-tests (Files): Likewise.
31367         * modules/unicase/u32-totitle-tests (Files): Likewise.
31368         * modules/unicase/u32-toupper-tests (Files): Likewise.
31369         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31370         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31371         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31372         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31373         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31374         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31375         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31376         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31377         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31378         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31379         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31380         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31381         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31382         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31383         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31384         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31385         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31386         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31387         * modules/unictype/block-list-tests (Files): Likewise.
31388         * modules/unictype/block-of-tests (Files): Likewise.
31389         * modules/unictype/block-test-tests (Files): Likewise.
31390         * modules/unictype/category-C-tests (Files): Likewise.
31391         * modules/unictype/category-Cc-tests (Files): Likewise.
31392         * modules/unictype/category-Cf-tests (Files): Likewise.
31393         * modules/unictype/category-Cn-tests (Files): Likewise.
31394         * modules/unictype/category-Co-tests (Files): Likewise.
31395         * modules/unictype/category-Cs-tests (Files): Likewise.
31396         * modules/unictype/category-L-tests (Files): Likewise.
31397         * modules/unictype/category-Ll-tests (Files): Likewise.
31398         * modules/unictype/category-Lm-tests (Files): Likewise.
31399         * modules/unictype/category-Lo-tests (Files): Likewise.
31400         * modules/unictype/category-Lt-tests (Files): Likewise.
31401         * modules/unictype/category-Lu-tests (Files): Likewise.
31402         * modules/unictype/category-M-tests (Files): Likewise.
31403         * modules/unictype/category-Mc-tests (Files): Likewise.
31404         * modules/unictype/category-Me-tests (Files): Likewise.
31405         * modules/unictype/category-Mn-tests (Files): Likewise.
31406         * modules/unictype/category-N-tests (Files): Likewise.
31407         * modules/unictype/category-Nd-tests (Files): Likewise.
31408         * modules/unictype/category-Nl-tests (Files): Likewise.
31409         * modules/unictype/category-No-tests (Files): Likewise.
31410         * modules/unictype/category-P-tests (Files): Likewise.
31411         * modules/unictype/category-Pc-tests (Files): Likewise.
31412         * modules/unictype/category-Pd-tests (Files): Likewise.
31413         * modules/unictype/category-Pe-tests (Files): Likewise.
31414         * modules/unictype/category-Pf-tests (Files): Likewise.
31415         * modules/unictype/category-Pi-tests (Files): Likewise.
31416         * modules/unictype/category-Po-tests (Files): Likewise.
31417         * modules/unictype/category-Ps-tests (Files): Likewise.
31418         * modules/unictype/category-S-tests (Files): Likewise.
31419         * modules/unictype/category-Sc-tests (Files): Likewise.
31420         * modules/unictype/category-Sk-tests (Files): Likewise.
31421         * modules/unictype/category-Sm-tests (Files): Likewise.
31422         * modules/unictype/category-So-tests (Files): Likewise.
31423         * modules/unictype/category-Z-tests (Files): Likewise.
31424         * modules/unictype/category-Zl-tests (Files): Likewise.
31425         * modules/unictype/category-Zp-tests (Files): Likewise.
31426         * modules/unictype/category-Zs-tests (Files): Likewise.
31427         * modules/unictype/category-and-not-tests (Files): Likewise.
31428         * modules/unictype/category-and-tests (Files): Likewise.
31429         * modules/unictype/category-byname-tests (Files): Likewise.
31430         * modules/unictype/category-name-tests (Files): Likewise.
31431         * modules/unictype/category-none-tests (Files): Likewise.
31432         * modules/unictype/category-of-tests (Files): Likewise.
31433         * modules/unictype/category-or-tests (Files): Likewise.
31434         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31435         * modules/unictype/combining-class-tests (Files): Likewise.
31436         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31437         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31438         * modules/unictype/ctype-blank-tests (Files): Likewise.
31439         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31440         * modules/unictype/ctype-digit-tests (Files): Likewise.
31441         * modules/unictype/ctype-graph-tests (Files): Likewise.
31442         * modules/unictype/ctype-lower-tests (Files): Likewise.
31443         * modules/unictype/ctype-print-tests (Files): Likewise.
31444         * modules/unictype/ctype-punct-tests (Files): Likewise.
31445         * modules/unictype/ctype-space-tests (Files): Likewise.
31446         * modules/unictype/ctype-upper-tests (Files): Likewise.
31447         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31448         * modules/unictype/decimal-digit-tests (Files): Likewise.
31449         * modules/unictype/digit-tests (Files): Likewise.
31450         * modules/unictype/mirror-tests (Files): Likewise.
31451         * modules/unictype/numeric-tests (Files): Likewise.
31452         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31453         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31454         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31455         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31456         Likewise.
31457         * modules/unictype/property-bidi-block-separator-tests (Files):
31458         Likewise.
31459         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31460         Likewise.
31461         * modules/unictype/property-bidi-common-separator-tests (Files):
31462         Likewise.
31463         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31464         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31465         Likewise.
31466         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31467         Likewise.
31468         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31469         Likewise.
31470         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31471         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31472         Likewise.
31473         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31474         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31475         Likewise.
31476         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31477         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31478         * modules/unictype/property-bidi-segment-separator-tests (Files):
31479         Likewise.
31480         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31481         * modules/unictype/property-byname-tests (Files): Likewise.
31482         * modules/unictype/property-combining-tests (Files): Likewise.
31483         * modules/unictype/property-composite-tests (Files): Likewise.
31484         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31485         * modules/unictype/property-dash-tests (Files): Likewise.
31486         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31487         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31488         Likewise.
31489         * modules/unictype/property-deprecated-tests (Files): Likewise.
31490         * modules/unictype/property-diacritic-tests (Files): Likewise.
31491         * modules/unictype/property-extender-tests (Files): Likewise.
31492         * modules/unictype/property-format-control-tests (Files): Likewise.
31493         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31494         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31495         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31496         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31497         * modules/unictype/property-hyphen-tests (Files): Likewise.
31498         * modules/unictype/property-id-continue-tests (Files): Likewise.
31499         * modules/unictype/property-id-start-tests (Files): Likewise.
31500         * modules/unictype/property-ideographic-tests (Files): Likewise.
31501         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31502         * modules/unictype/property-ids-trinary-operator-tests (Files):
31503         Likewise.
31504         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31505         * modules/unictype/property-iso-control-tests (Files): Likewise.
31506         * modules/unictype/property-join-control-tests (Files): Likewise.
31507         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31508         * modules/unictype/property-line-separator-tests (Files): Likewise.
31509         * modules/unictype/property-logical-order-exception-tests (Files):
31510         Likewise.
31511         * modules/unictype/property-lowercase-tests (Files): Likewise.
31512         * modules/unictype/property-math-tests (Files): Likewise.
31513         * modules/unictype/property-non-break-tests (Files): Likewise.
31514         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31515         * modules/unictype/property-numeric-tests (Files): Likewise.
31516         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31517         * modules/unictype/property-other-default-ignorable-code-point-tests
31518         (Files): Likewise.
31519         * modules/unictype/property-other-grapheme-extend-tests (Files):
31520         Likewise.
31521         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31522         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31523         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31524         * modules/unictype/property-other-math-tests (Files): Likewise.
31525         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31526         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31527         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31528         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31529         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31530         * modules/unictype/property-private-use-tests (Files): Likewise.
31531         * modules/unictype/property-punctuation-tests (Files): Likewise.
31532         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31533         * modules/unictype/property-radical-tests (Files): Likewise.
31534         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31535         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31536         * modules/unictype/property-space-tests (Files): Likewise.
31537         * modules/unictype/property-terminal-punctuation-tests (Files):
31538         Likewise.
31539         * modules/unictype/property-test-tests (Files): Likewise.
31540         * modules/unictype/property-titlecase-tests (Files): Likewise.
31541         * modules/unictype/property-unassigned-code-value-tests (Files):
31542         Likewise.
31543         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31544         * modules/unictype/property-uppercase-tests (Files): Likewise.
31545         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31546         * modules/unictype/property-white-space-tests (Files): Likewise.
31547         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31548         * modules/unictype/property-xid-start-tests (Files): Likewise.
31549         * modules/unictype/property-zero-width-tests (Files): Likewise.
31550         * modules/unictype/scripts-tests (Files): Likewise.
31551         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31552         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31553         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31554         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31555         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31556         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31557         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31558         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31559         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31560         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31561         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31562         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31563         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31564         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31565         * modules/uninorm/composition-tests (Files): Likewise.
31566         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31567         * modules/uninorm/decomposition-tests (Files): Likewise.
31568         * modules/uninorm/filter-tests (Files): Likewise.
31569         * modules/uninorm/nfc-tests (Files): Likewise.
31570         * modules/uninorm/nfd-tests (Files): Likewise.
31571         * modules/uninorm/nfkc-tests (Files): Likewise.
31572         * modules/uninorm/nfkd-tests (Files): Likewise.
31573         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31574         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31575         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31576         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31577         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31578         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31579         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31580         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31581         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31582         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31583         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31584         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31585         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31586         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31587         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31588         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31589         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31590         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31591         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31592         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31593         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31594         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31595         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31596         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31597         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31598         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31599         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31600         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31601         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31602         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31603         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31604         * modules/uniwidth/u8-width-tests (Files): Likewise.
31605         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31606         * modules/uniwidth/u16-width-tests (Files): Likewise.
31607         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31608         * modules/uniwidth/u32-width-tests (Files): Likewise.
31609         * modules/uniwidth/width-tests (Files): Likewise.
31610         * modules/unlink-tests (Files): Likewise.
31611         * modules/unsetenv-tests (Files): Likewise.
31612         * modules/usleep-tests (Files): Likewise.
31613         * modules/utimens-tests (Files): Likewise.
31614         * modules/utimensat-tests (Files): Likewise.
31615         * modules/vasnprintf-posix-tests (Files): Likewise.
31616         * modules/vasnprintf-tests (Files): Likewise.
31617         * modules/vasprintf-posix-tests (Files): Likewise.
31618         * modules/vasprintf-tests (Files): Likewise.
31619         * modules/vdprintf-posix-tests (Files): Likewise.
31620         * modules/vfprintf-posix-tests (Files): Likewise.
31621         * modules/vprintf-posix-tests (Files): Likewise.
31622         * modules/vsnprintf-posix-tests (Files): Likewise.
31623         * modules/vsnprintf-tests (Files): Likewise.
31624         * modules/vsprintf-posix-tests (Files): Likewise.
31625         * modules/wcrtomb-tests (Files): Likewise.
31626         * modules/wcsnrtombs-tests (Files): Likewise.
31627         * modules/wcsrtombs-tests (Files): Likewise.
31628         * modules/wctype-tests (Files): Likewise.
31629         * modules/wcwidth-tests (Files): Likewise.
31630         * modules/xmemdup0-tests (Files): Likewise.
31631         * modules/xprintf-posix-tests (Files): Likewise.
31632         * modules/xvasprintf-tests (Files): Likewise.
31633
31634 2009-12-24  Eric Blake  <ebb9@byu.net>
31635
31636         test-nanosleep: fix typo
31637         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31638         patch.
31639         Reported by Bruno Haible.
31640
31641 2009-12-24  Bruno Haible  <bruno@clisp.org>
31642
31643         Reduce namespace pollution on glibc systems.
31644         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31645         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31646         systems.
31647         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31648         <getopt.h> on glibc systems.
31649         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31650         systems.
31651         * lib/fcntl.c: Include <unistd.h> here instead.
31652
31653 2009-12-24  Bruno Haible  <bruno@clisp.org>
31654
31655         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31656
31657 2009-12-24  Eric Blake  <ebb9@byu.net>
31658
31659         tests: add signature checks
31660         * tests/signature.h (SIGNATURE_CHECK): New file.
31661         * modules/atexit-tests (Files): Use it.
31662         * modules/btowc-tests (Files): Likewise.
31663         * modules/canonicalize-lgpl-tests (Files): Likewise.
31664         * modules/ceilf-tests (Files): Likewise.
31665         * modules/ceill-tests (Files): Likewise.
31666         * modules/chown-tests (Files): Likewise.
31667         * modules/dprintf-posix-tests (Files): Likewise.
31668         * modules/dup2-tests (Files): Likewise.
31669         * modules/dup3-tests (Files): Likewise.
31670         * modules/duplocale-tests (Files): Likewise.
31671         * modules/fchdir-tests (Files): Likewise.
31672         * modules/fcntl-tests (Files): Likewise.
31673         * modules/fdopendir-tests (Files): Likewise.
31674         * modules/fflush-tests (Files): Likewise.
31675         * modules/flock-tests (Files): Likewise.
31676         * modules/floorf-tests (Files): Likewise.
31677         * modules/floorl-tests (Files): Likewise.
31678         * modules/fnmatch-tests (Files): Likewise.
31679         * modules/fopen-tests (Files): Likewise.
31680         * modules/fprintf-posix-tests (Files): Likewise.
31681         * modules/freopen-tests (Files): Likewise.
31682         * modules/frexp-nolibm-tests (Files): Likewise.
31683         * modules/frexp-tests (Files): Likewise.
31684         * modules/frexpl-nolibm-tests (Files): Likewise.
31685         * modules/frexpl-tests (Files): Likewise.
31686         * modules/fseek-tests (Files): Likewise.
31687         * modules/fseeko-tests (Files): Likewise.
31688         * modules/fsync-tests (Files): Likewise.
31689         * modules/ftell-tests (Files): Likewise.
31690         * modules/ftello-tests (Files): Likewise.
31691         * modules/futimens-tests (Files): Likewise.
31692         * modules/getaddrinfo-tests (Files): Likewise.
31693         * modules/getcwd-tests (Files): Likewise.
31694         * modules/getdelim-tests (Files): Likewise.
31695         * modules/getdtablesize-tests (Files): Likewise.
31696         * modules/getgroups-tests (Files): Likewise.
31697         * modules/gethostname-tests (Files): Likewise.
31698         * modules/getline-tests (Files): Likewise.
31699         * modules/getopt-posix-tests (Files): Likewise.
31700         * modules/gettimeofday-tests (Files): Likewise.
31701         * modules/glob-tests (Files): Likewise.
31702         * modules/iconv-tests (Files): Likewise.
31703         * modules/inet_ntop-tests (Files): Likewise.
31704         * modules/inet_pton-tests (Files): Likewise.
31705         * modules/isblank-tests (Files): Likewise.
31706         * modules/lchown-tests (Files): Likewise.
31707         * modules/ldexpl-tests (Files): Likewise.
31708         * modules/link-tests (Files): Likewise.
31709         * modules/linkat-tests (Files): Likewise.
31710         * modules/lseek-tests (Files): Likewise.
31711         * modules/lstat-tests (Files): Likewise.
31712         * modules/mbrtowc-tests (Files): Likewise.
31713         * modules/mbsinit-tests (Files): Likewise.
31714         * modules/mbsnrtowcs-tests (Files): Likewise.
31715         * modules/mbsrtowcs-tests (Files): Likewise.
31716         * modules/memchr-tests (Files): Likewise.
31717         * modules/memcmp-tests (Files): Likewise.
31718         * modules/memmem-tests (Files): Likewise.
31719         * modules/memrchr-tests (Files): Likewise.
31720         * modules/mkdir-tests (Files): Likewise.
31721         * modules/mkfifo-tests (Files): Likewise.
31722         * modules/mkfifoat-tests (Files): Likewise.
31723         * modules/mknod-tests (Files): Likewise.
31724         * modules/nanosleep-tests (Files): Likewise.
31725         * modules/nl_langinfo-tests (Files): Likewise.
31726         * modules/obstack-printf-tests (Files): Likewise.
31727         * modules/open-tests (Files): Likewise.
31728         * modules/openat-tests (Files): Likewise.
31729         * modules/perror-tests (Files): Likewise.
31730         * modules/pipe2-tests (Files): Likewise.
31731         * modules/poll-tests (Files): Likewise.
31732         * modules/popen-tests (Files): Likewise.
31733         * modules/posix_spawn-tests (Files): Likewise.
31734         * modules/posix_spawnp-tests (Files): Likewise.
31735         * modules/pread-tests (Files): Likewise.
31736         * modules/printf-posix-tests (Files): Likewise.
31737         * modules/pty-tests (Files): Likewise.
31738         * modules/random_r-tests (Files): Likewise.
31739         * modules/rawmemchr-tests (Files): Likewise.
31740         * modules/readlink-tests (Files): Likewise.
31741         * modules/remove-tests (Files): Likewise.
31742         * modules/rename-tests (Files): Likewise.
31743         * modules/renameat-tests (Files): Likewise.
31744         * modules/rmdir-tests (Files): Likewise.
31745         * modules/round-tests (Files): Likewise.
31746         * modules/roundf-tests (Files): Likewise.
31747         * modules/roundl-tests (Files): Likewise.
31748         * modules/select-tests (Files): Likewise.
31749         * modules/setenv-tests (Files): Likewise.
31750         * modules/sigaction-tests (Files): Likewise.
31751         * modules/sleep-tests (Files): Likewise.
31752         * modules/snprintf-posix-tests (Files): Likewise.
31753         * modules/snprintf-tests (Files): Likewise.
31754         * modules/sprintf-posix-tests (Files): Likewise.
31755         * modules/stat-tests (Files): Likewise.
31756         * modules/strcasestr-tests (Files): Likewise.
31757         * modules/strchrnul-tests (Files): Likewise.
31758         * modules/strerror-tests (Files): Likewise.
31759         * modules/strsignal-tests (Files): Likewise.
31760         * modules/strstr-tests (Files): Likewise.
31761         * modules/strtod-tests (Files): Likewise.
31762         * modules/strverscmp-tests (Files): Likewise.
31763         * modules/symlink-tests (Files): Likewise.
31764         * modules/symlinkat-tests (Files): Likewise.
31765         * modules/times-tests (Files): Likewise.
31766         * modules/trunc-tests (Files): Likewise.
31767         * modules/truncf-tests (Files): Likewise.
31768         * modules/truncl-tests (Files): Likewise.
31769         * modules/tsearch-tests (Files): Likewise.
31770         * modules/uname-tests (Files): Likewise.
31771         * modules/unlink-tests (Files): Likewise.
31772         * modules/unsetenv-tests (Files): Likewise.
31773         * modules/usleep-tests (Files): Likewise.
31774         * modules/utimensat-tests (Files): Likewise.
31775         * modules/vasprintf-tests (Files): Likewise.
31776         * modules/vdprintf-posix-tests (Files): Likewise.
31777         * modules/vfprintf-posix-tests (Files): Likewise.
31778         * modules/vprintf-posix-tests (Files): Likewise.
31779         * modules/vsnprintf-posix-tests (Files): Likewise.
31780         * modules/vsnprintf-tests (Files): Likewise.
31781         * modules/vsprintf-posix-tests (Files): Likewise.
31782         * modules/wcrtomb-tests (Files): Likewise.
31783         * modules/wcsnrtombs-tests (Files): Likewise.
31784         * modules/wcsrtombs-tests (Files): Likewise.
31785         * modules/wcwidth-tests (Files): Likewise.
31786         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31787         * tests/test-isinf.c (isinf): Likewise.
31788         * tests/test-isnan.c (isnan): Likewise.
31789         * tests/test-signbit.c (signbit): Likewise.
31790         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31791         declaration, either as macro or with correct signature.
31792         (select): Ensure function under test is declared with correct
31793         signature in correct header.
31794         * tests/test-atexit.c (atexit): Likewise.
31795         * tests/test-btowc.c (btowc): Likewise.
31796         * tests/test-canonicalize-lgpl.c (realpath)
31797         (canonicalize_file_name): Likewise.
31798         * tests/test-ceilf1.c (ceilf): Likewise.
31799         * tests/test-ceill.c (ceill): Likewise.
31800         * tests/test-chown.c (chown): Likewise.
31801         * tests/test-dprintf-posix.c (dprintf): Likewise.
31802         * tests/test-dup2.c (dup2): Likewise.
31803         * tests/test-dup3.c (dup3): Likewise.
31804         * tests/test-duplocale.c (duplocale): Likewise.
31805         * tests/test-fchdir.c (fchdir): Likewise.
31806         * tests/test-fchownat.c (fchownat): Likewise.
31807         * tests/test-fcntl.c (fcntl): Likewise.
31808         * tests/test-fdopendir.c (fdopendir): Likewise.
31809         * tests/test-fflush.c (fflush): Likewise.
31810         * tests/test-flock.c (flock): Likewise.
31811         * tests/test-floorf1.c (floorf): Likewise.
31812         * tests/test-floorl.c (floorl): Likewise.
31813         * tests/test-fnmatch.c (fnmatch): Likewise.
31814         * tests/test-fopen.c (fopen): Likewise.
31815         * tests/test-fprintf-posix.c (fprintf): Likewise.
31816         * tests/test-freopen.c (freopen): Likewise.
31817         * tests/test-frexp.c (frexp): Likewise.
31818         * tests/test-frexpl.c (frexpl): Likewise.
31819         * tests/test-fseek.c (fseek): Likewise.
31820         * tests/test-fseeko.c (fseeko): Likewise.
31821         * tests/test-fstatat.c (fstatat): Likewise.
31822         * tests/test-fsync.c (fsync): Likewise.
31823         * tests/test-ftell.c (ftell): Likewise.
31824         * tests/test-ftello.c (ftello): Likewise.
31825         * tests/test-futimens.c (futimens): Likewise.
31826         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31827         (gai_strerror): Likewise.
31828         * tests/test-getcwd.c (getcwd): Likewise.
31829         * tests/test-getdelim.c (getdelim): Likewise.
31830         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31831         * tests/test-getgroups.c (getgroups): Likewise.
31832         * tests/test-gethostname.c (gethostname): Likewise.
31833         * tests/test-getline.c (getline): Likewise.
31834         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31835         Likewise.
31836         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31837         * tests/test-glob.c (glob, globfree): Likewise.
31838         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31839         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31840         * tests/test-inet_pton.c (inet_pton): Likewise.
31841         * tests/test-isblank.c (isblank): Likewise.
31842         * tests/test-lchown.c (lchown): Likewise.
31843         * tests/test-ldexpl.c (ldexpl): Likewise.
31844         * tests/test-link.c (link): Likewise.
31845         * tests/test-linkat.c (linkat): Likewise.
31846         * tests/test-lseek.c (lseek): Likewise.
31847         * tests/test-lstat.c (lstat): Likewise.
31848         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31849         * tests/test-mbsinit.c (mbsinit): Likewise.
31850         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31851         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31852         * tests/test-memchr.c (memchr): Likewise.
31853         * tests/test-memcmp.c (memcmp): Likewise.
31854         * tests/test-memmem.c (memmem): Likewise.
31855         * tests/test-memrchr.c (memrchr): Likewise.
31856         * tests/test-mkdir.c (mkdir): Likewise.
31857         * tests/test-mkdirat.c (mkdirat): Likewise.
31858         * tests/test-mkfifo.c (mkfifo): Likewise.
31859         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31860         * tests/test-mknod.c (mknod): Likewise.
31861         * tests/test-nanosleep.c (nanosleep): Likewise.
31862         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31863         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31864         Likewise.
31865         * tests/test-open.c (open): Likewise.
31866         * tests/test-openat.c (openat): Likewise.
31867         * tests/test-perror.c (perror): Likewise.
31868         * tests/test-pipe2.c (pipe2): Likewise.
31869         * tests/test-poll.c (poll): Likewise.
31870         * tests/test-popen.c (popen, pclose): Likewise.
31871         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31872         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31873         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31874         (posix_spawn_file_actions_destroy)
31875         (posix_spawn_file_actions_addclose)
31876         (posix_spawn_file_actions_addopen)
31877         (posix_spawn_file_actions_adddup2): Likewise.
31878         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31879         * tests/test-pread.c (pread): Likewise.
31880         * tests/test-printf-posix.c (printf): Likewise.
31881         * tests/test-pty.c (openpty, forkpty): Likewise.
31882         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31883         (random_r): Likewise.
31884         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31885         * tests/test-readlink.c (readlink): Likewise.
31886         * tests/test-remove.c (remove): Likewise.
31887         * tests/test-rename.c (rename): Likewise.
31888         * tests/test-renameat.c (renameat): Likewise.
31889         * tests/test-rmdir.c (rmdir): Likewise.
31890         * tests/test-round1.c (round): Likewise.
31891         * tests/test-roundf1.c (roundf): Likewise.
31892         * tests/test-roundl.c (roundl): Likewise.
31893         * tests/test-setenv.c (setenv): Likewise.
31894         * tests/test-sigaction.c (sigaction): Likewise.
31895         * tests/test-sleep.c (sleep): Likewise.
31896         * tests/test-snprintf.c (snprintf): Likewise.
31897         * tests/test-sprintf-posix.c (sprintf): Likewise.
31898         * tests/test-stat.c (stat): Likewise.
31899         * tests/test-stpncpy.c (stpncpy): Likewise.
31900         * tests/test-strcasestr.c (strcasestr): Likewise.
31901         * tests/test-strchrnul.c (strchrnul): Likewise.
31902         * tests/test-strerror.c (strerror): Likewise.
31903         * tests/test-strsignal.c (strsignal): Likewise.
31904         * tests/test-strstr.c (strstr): Likewise.
31905         * tests/test-strtod.c (strtod): Likewise.
31906         * tests/test-strverscmp.c (strverscmp): Likewise.
31907         * tests/test-symlink.c (symlink): Likewise.
31908         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31909         * tests/test-times.c (times): Likewise.
31910         * tests/test-trunc1.c (trunc): Likewise.
31911         * tests/test-truncf1.c (truncf): Likewise.
31912         * tests/test-truncl.c (truncl): Likewise.
31913         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31914         Likewise.
31915         * tests/test-uname.c (uname): Likewise.
31916         * tests/test-unlink.c (unlink): Likewise.
31917         * tests/test-unlinkat.c (unlinkat): Likewise.
31918         * tests/test-unsetenv.c (unsetenv): Likewise.
31919         * tests/test-usleep.c (usleep): Likewise.
31920         * tests/test-utimensat.c (utimensat): Likewise.
31921         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31922         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31923         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31924         * tests/test-vprintf-posix.c (vprintf): Likewise.
31925         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31926         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31927         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31928         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31929         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31930         * tests/test-wcwidth.c (wcwidth): Likewise.
31931
31932         build: pull in conditional headers during GNULIB_POSIXCHECK
31933         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31934         definitions from any conditionally-included headers.
31935         * lib/stdlib.in.h (includes): Likewise.
31936         * lib/unistd.in.h (includes): Likewise.
31937
31938 2009-12-24  Bruno Haible  <bruno@clisp.org>
31939
31940         * tests/test-argv-iter.c: Include header file being tested immediately
31941         after config.h.
31942         * tests/test-base64.c: Likewise.
31943         * tests/test-flock.c: Likewise.
31944         * tests/test-fsync.c: Likewise.
31945         * tests/test-getdate.c: Likewise.
31946         * tests/test-getndelim2.c: Likewise.
31947         * tests/test-isfinite.c: Likewise.
31948         * tests/test-isinf.c: Likewise.
31949         * tests/test-strerror.c: Likewise.
31950         * tests/test-strsignal.c: Likewise.
31951
31952 2009-12-23  Eric Blake  <ebb9@byu.net>
31953
31954         unistd: work around cygwin bug
31955         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31956         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31957         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31958
31959 2009-12-23  Bruno Haible  <bruno@clisp.org>
31960
31961         localename: More tests.
31962         * tests/test-localename.c (SIZEOF): New macro.
31963         (categories): New variable.
31964         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31965         test_locale_name_default): Add test w.r.t. thread locale.
31966         (test_locale_name_thread): New function.
31967         (main): Invoke it.
31968
31969         localename: Make aware of thread locale.
31970         * lib/localename.h (gl_locale_name_thread): New declaration.
31971         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31972         behaviour with respect to thread locale.
31973         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31974         <langinfo.h>, glthread/lock.h.
31975         (SIZE_BITS): New macro.
31976         (string_hash): New function.
31977         (struct hash_node): New type.
31978         (HASH_TABLE_SIZE): New macro.
31979         (struniq_hash_table, struniq_lock): New variables.
31980         (struniq): New function.
31981         (gl_locale_name_thread): New function.
31982         (gl_locale_name): Invoke it.
31983         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31984         * modules/localename (Depends-on): Add lock.
31985         Reported by Mike Gran <spk121@yahoo.com>.
31986
31987 2009-12-23  Eric Blake  <ebb9@byu.net>
31988
31989         va-args: new module
31990         * modules/va-args: New file.
31991         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31992         * MODULES.html.sh (Core language properties): Mention it.
31993
31994         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31995         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31996         named alias for __attribute__((__unused__)).
31997         * lib/chown.c: Update client.
31998         * lib/fchmodat.c: Likewise.
31999         * lib/fts.c: Likewise.
32000         * lib/getdate.y: Likewise.
32001         * lib/getgroups.c: Likewise.
32002         * lib/getopt.c: Likewise.
32003         * lib/getugroups.c: Likewise.
32004         * lib/mkdir.c: Likewise.
32005         * lib/mkfifo.c: Likewise.
32006         * lib/mkfifoat.c: Likewise.
32007         * lib/mknod.c: Likewise.
32008         * lib/mknodat.c: Likewise.
32009         * lib/readlink.c: Likewise.
32010         * lib/se-context.in.h: Likewise.
32011         * lib/se-selinux.in.h: Likewise.
32012         * lib/sockets.c: Likewise.
32013         * lib/symlink.c: Likewise.
32014         * lib/symlinkat.c: Likewise.
32015         * lib/unicodeio.c: Likewise.
32016         * lib/unistr.h: Likewise.
32017         * tests/test-areadlink.c: Likewise.
32018         * tests/test-areadlinkat.c: Likewise.
32019         * tests/test-filenamecat.c: Likewise.
32020         * tests/test-fseeko.c: Likewise.
32021         * tests/test-ftello.c: Likewise.
32022         * tests/test-getdate.c: Likewise.
32023         * tests/test-getgroups.c: Likewise.
32024         * tests/test-gethostname.c: Likewise.
32025         * tests/test-quotearg.c: Likewise.
32026         * tests/test-version-etc.c: Likewise.
32027         * tests/test-xalloc-die.c: Likewise.
32028         * tests/test-xfprintf-posix.c: Likewise.
32029         * tests/test-xprintf-posix.c: Likewise.
32030         * tests/test-xvasprintf.c: Likewise.
32031
32032         tests: avoid compiler warnings
32033         * tests/test-fcntl.c (main): Delete unused parameters.
32034         * tests/test-freopen-safer.c (main): Likewise.
32035         * tests/test-xalloc-die.c (main): Mark unused parameters.
32036         * tests/test-fseeko.c (main): Likewise.
32037         * tests/test-ftello.c (main): Likewise.
32038         * tests/test-nanosleep.c (main): Avoid declaration warning.
32039         * tests/test-sleep.c (main): Likewise.
32040         * tests/test-unsetenv.c (main): Silence warning about string
32041         literal.
32042         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32043
32044 2009-12-23  Bruno Haible  <bruno@clisp.org>
32045
32046         * tests/test-localename.c (test_locale_name): New function, extracted
32047         from main. Also test mixed situations.
32048         (test_locale_name_posix, test_locale_name_environ,
32049         test_locale_name_default): New functions.
32050         (main): Invoke them all.
32051         * modules/localename-tests (configure.ac): Test for newlocale.
32052
32053 2009-12-23  Bruno Haible  <bruno@clisp.org>
32054
32055         unistd: Ensure getcwd gets declared before being overridden.
32056         * lib/unistd.in.h: Conditionally include <io.h>.
32057
32058 2009-12-22  Bruno Haible  <bruno@clisp.org>
32059
32060         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32061         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32062         (gl_WCHAR_H): Invoke it.
32063         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32064         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32065         Reported by Karl Berry <karl@freefriends.org>.
32066
32067 2009-12-22  Eric Blake  <ebb9@byu.net>
32068
32069         math, unistd: avoid redundant includes
32070         * lib/math.in.h (isnan): No need to re-include <math.h>.
32071         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32072
32073         getsubopt: work around cygwin bug
32074         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32075         avoid conflicting with system getsubopt.
32076         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32077         bug.
32078
32079         getopt: synchronize from glibc
32080         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32081         parameter order.  Adjust all callers.
32082         (_getopt_internal_r, main): Adjust quoting in error messages.
32083         Drop considerations for outdated POSIX 1003.2 error message.
32084         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32085         callers.
32086         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32087
32088         test-getopt: test stderr behavior
32089         * modules/getopt-posix-tests (Depends-on): Add dup2.
32090         * tests/test-getopt.c (ASSERT): Avoid stderr.
32091         (main): Move stderr to a temporary file.
32092         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32093         Instead, add parameter to inform caller if output occurred.
32094         (test_getopt): Adjust all existing tests to expect silence, and
32095         add new tests of leading ":".
32096         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32097         glibc shortcomings with leading "-:" or "+:" in optstring.
32098         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32099         Likewise.
32100         * doc/posix-functions/getopt.texi (getopt): Likewise.
32101
32102         test-getopt: enhance test
32103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32104         supports optind=0.
32105         * tests/test-getopt.c (OPTIND_MIN): Move...
32106         * tests/test-getopt.h (OPTIND_MIN): ...here.
32107         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32108         Require that optind=0 works, since modern BSD supports it in
32109         addition to optreset, and since coreutils expects it.
32110         (test_getopt_long_only): New test.
32111         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32112         glibc shortcomings with 'W;', and enforcement of optind=0.
32113         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32114         Likewise.
32115
32116 2009-12-21  Bruno Haible  <bruno@clisp.org>
32117
32118         localename: Improvements for MacOS X and Cygwin.
32119         * lib/localename.h (gl_locale_name_environ): New declaration.
32120         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32121         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32122         (gl_locale_name_posix): Invoke it.
32123         (gl_locale_name_default): Add comments. Use Windows native API also on
32124         Cygwin.
32125
32126 2009-12-21  Bruno Haible  <bruno@clisp.org>
32127
32128         Update list of Win32 locale ids.
32129         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32130         (LANG_SAMI): Renamed from LANG_SAAMI.
32131         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32132         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32133         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32134         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32135         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32136         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32137         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32138         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32139         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32140         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32141         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32142         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32143         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32144         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32145         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32146         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32147         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32148         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32149         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32150         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32151         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32152         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32153         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32154         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32155         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32156         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32157         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32158         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32159         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32160         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32161         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32162         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32163         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32164         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32165         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32166         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32167         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32168         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32169         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32170         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32171         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32172         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32173         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32174         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32175         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32176         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32177         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32178         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32179         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32180         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32181         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32182         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32183         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32184         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32185         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32186         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32187         Add more languages and countries for Sami, Sorbian. Add more countries
32188         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32189         for Pashto. Change country for Syriac, Tswana.
32190
32191 2009-12-21  Eric Blake  <ebb9@byu.net>
32192
32193         test-utimens: avoid spurious failure
32194         * tests/test-chown.h (nap): Factor...
32195         * tests/nap.h: ...into new file.
32196         * tests/test-lchown.h (nap): Avoid duplication.
32197         * tests/test-utimens-common.h (nap): Use shared implementation,
32198         necessary on file systems with 1-second resolution.
32199         * modules/chown-tests (Files): Include new file.
32200         * modules/fdutimensat-tests (Files): Likewise.
32201         * modules/futimens-tests (Files): Likewise.
32202         * modules/lchown-tests (Files): Likewise.
32203         * modules/openat-tests (Files): Likewise.
32204         * modules/utimens-tests (Files): Likewise.
32205         * modules/utimensat-tests (Files): Likewise.
32206
32207 2009-12-19  Eric Blake  <ebb9@byu.net>
32208
32209         futimens, utimensat: work around Linux bug
32210         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32211         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32212         * lib/utimensat.c (rpl_utimensat): Work around it.
32213         * lib/futimens.c (rpl_futimens): Adjust comment.
32214
32215         utimens: work around Linux ctime bug
32216         * lib/utimens.c (detect_ctime_bug): New helper function.
32217         (update_timespec): Differentiate between workaround needed for
32218         this bug vs. what is needed for systems that lack utimensat.
32219         (fdutimens, lutimens): Work around bug.
32220
32221         utimens: check for ctime update
32222         * tests/test-utimens-common.h (check_ctime): Define.
32223         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32224         * tests/test-futimens.h (test_futimens): Likewise.
32225         * tests/test-lutimens.h (test_lutimens): Likewise.
32226         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32227         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32228
32229 2009-12-19  Bruno Haible  <bruno@clisp.org>
32230
32231         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32232         * tests/test-dprintf-posix2.sh: New file.
32233         * tests/test-dprintf-posix2.c: New file.
32234         * modules/dprintf-posix-tests (Files): Add them.
32235         (configure.ac): Check for getrlimit and setrlimit.
32236         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32237
32238 2009-12-19  Bruno Haible  <bruno@clisp.org>
32239
32240         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32241         * tests/test-fprintf-posix3.sh: New file.
32242         * tests/test-fprintf-posix3.c: New file.
32243         * modules/fprintf-posix-tests (Files): Add them.
32244         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32245
32246 2009-12-19  Eric Blake  <ebb9@byu.net>
32247
32248         dirfd: fix prototype
32249         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32250         * lib/dirfd.c (dirfd): Likewise.
32251
32252         canonicalize: reduce memory usage
32253         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32254         allocation to size.
32255         Reported by Solar Designer <solar@openwall.com>.
32256
32257 2009-12-19  Bruno Haible  <bruno@clisp.org>
32258
32259         New module attribute 'Applicability'.
32260         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32261         * gnulib-tool: New option --extract-applicability.
32262         (func_usage): Document it.
32263         (sed_extract_prog): Recognize it.
32264         (func_get_applicability): New function.
32265         (func_import): Generalize handling of 'link-warning' module.
32266         * modules/link-warning (Applicability): New section.
32267         * modules/arg-nonnull (Applicability): New section.
32268         Repoted by Simon Josefsson <simon@josefsson.org>.
32269
32270 2009-12-19  Bruno Haible  <bruno@clisp.org>
32271
32272         fflush: tweak
32273         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32274         * lib/fseeko.c (rpl_fseeko): Likewise.
32275
32276 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32277
32278         * lib/gl_list.h: Fix typo in comment.
32279
32280 2009-12-16  Eric Blake  <ebb9@byu.net>
32281
32282         fcntl: use to simplify other modules
32283         * modules/cloexec (Depends-on): Add fcntl.
32284         * modules/fchdir (Depends-on): Likewise.
32285         * modules/fd-safer-flag (Depends-on): Likewise.
32286         * modules/unistd-safer (Depends-on): Likewise.
32287         * modules/dup3 (configure.ac): Set module indicator.
32288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32289         missing.
32290         * lib/fchdir.c (_gl_register_dup): Fix comment.
32291         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32292         * lib/dup-safer.c (dup_safer): Likewise.
32293         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32294         * lib/dup3.c (dup3): Likewise.
32295         * tests/test-fchdir.c (main): Enhance test.
32296         Fixes a dup_cloexec bug reported by Ondřej Vašík.
32297
32298         fcntl: port portions of fcntl to mingw
32299         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32300         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32301         replacement for mingw.
32302         * modules/fcntl (Description): Update.
32303         (Depends-on): Add dup2.
32304         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32305         * modules/fcntl-h (Makefile.am): Substitute it.
32306         * lib/fcntl.in.h (fcntl): Update declaration.
32307         (F_DUPFD, F_GETFD): New macros, when needed.
32308         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32309         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32310         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32311         we now guarantee.
32312
32313         fcntl: work around cygwin bug in F_DUPFD
32314         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32315         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32316         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32317         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32318         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32319
32320         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32321         * modules/fcntl (Files): List new files.
32322         (configure.ac): Run a test.
32323         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32324         * lib/fcntl.c (rpl_fcntl): Likewise.
32325         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32326         (gl_FCNTL_H): Always replace fcntl.h.
32327         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32328         * lib/fcntl.in.h (fcntl): Declare replacement.
32329         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32330         needed, plus a witness.
32331         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32332         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32333         * tests/test-fcntl.c: New file.
32334         * modules/fcntl-tests: Likewise.
32335
32336         binary-io: avoid potential compilation warning
32337         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32338         directives.
32339
32340         fflush: avoid compilation error on NetBSD
32341         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32342         between off_t and fpos_t, since the latter is sometimes a struct.
32343         * lib/fseeko.c (rpl_fseeko): Likewise.
32344         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32345
32346 2009-12-15  Eric Blake  <ebb9@byu.net>
32347
32348         fcntl-h, stdio, sys_ioctl: fix declarations
32349         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32350         function must not take arguments.
32351         * lib/sys_ioctl.in.h (ioctl): Likewise.
32352         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32353         (open): Add a link warning.
32354
32355 2009-12-15  Jim Meyering  <meyering@redhat.com>
32356
32357         areadlink, areadlink-with-size: relax license to LGPLv2+
32358         * modules/areadlink (License): Relax to LGPLv2+.
32359         * modules/areadlink-with-size (License): Likewise.
32360
32361 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32362             Bruno Haible  <bruno@clisp.org>
32363
32364         *printf: Fix memory leak.
32365         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32366         * lib/vfprintf.c (vfprintf): Likewise.
32367         * lib/dprintf.c (dprintf): Likewise.
32368         * lib/vdprintf.c (vdprintf): Likewise.
32369
32370 2009-12-14  Eric Blake  <ebb9@byu.net>
32371
32372         accept4: adjust module dependencies
32373         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32374
32375         utimens: one more try at avoiding compiler warning
32376         * lib/utimens.c (lutimens): Lower scope of result.
32377
32378 2009-12-13  Bruno Haible  <bruno@clisp.org>
32379
32380         Move the malloc checking from module 'list' to new module 'xlist'.
32381         * modules/xlist: New file.
32382         * lib/gl_xlist.h: New file.
32383         * lib/gl_xlist.c: New file.
32384         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32385         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32386         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32387         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32388         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32389         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32390         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32391         gl_sortedlist_nx_add): New declarations.
32392         (struct gl_list_implementation): Rename and change methods accordingly.
32393         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32394         (gl_list_nx_create): Renamed from gl_list_create.
32395         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32396         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32397         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32398         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32399         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32400         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32401         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32402         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32403         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32404         gl_list_create_empty.
32405         (gl_list_nx_create): Renamed from gl_list_create.
32406         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32407         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32408         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32409         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32410         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32411         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32412         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32413         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32414         * lib/gl_array_list.c: Don't include xalloc.h.
32415         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32416         NULL upon out-of-memory.
32417         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32418         out-of-memory.
32419         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32420         Change return type to 'int'.
32421         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32422         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32423         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32424         upon out-of-memory.
32425         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32426         upon out-of-memory.
32427         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32428         upon out-of-memory.
32429         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32430         upon out-of-memory.
32431         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32432         out-of-memory.
32433         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32434         Update.
32435         (gl_array_list_implementation): Update.
32436         * lib/gl_carray_list.c: Don't include xalloc.h.
32437         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32438         Return NULL upon out-of-memory.
32439         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32440         out-of-memory.
32441         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32442         Change return type to 'int'.
32443         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32444         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32445         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32446         upon out-of-memory.
32447         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32448         upon out-of-memory.
32449         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32450         out-of-memory.
32451         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32452         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32453         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32454         Update.
32455         (gl_carray_list_implementation): Update.
32456         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32457         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32458         gl_linked_create_empty. Return NULL upon out-of-memory.
32459         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32460         out-of-memory.
32461         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32462         Change return type to 'int'. Return -1 upon out-of-memory.
32463         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32464         out-of-memory.
32465         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32466         upon out-of-memory.
32467         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32468         upon out-of-memory.
32469         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32470         NULL upon out-of-memory.
32471         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32472         upon out-of-memory.
32473         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32474         out-of-memory.
32475         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32476         Update.
32477         * lib/gl_linked_list.c: Don't include xalloc.h.
32478         (gl_linked_list_implementation): Update.
32479         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32480         (add_to_bucket): Change return type to 'int'.
32481         (gl_linkedhash_list_implementation): Update.
32482         * lib/gl_anytree_list1.h (free_subtree): New function.
32483         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32484         gl_tree_create_empty. Return NULL upon out-of-memory.
32485         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32486         Change return type to 'int'. Return -1 upon out-of-memory.
32487         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32488         out-of-memory.
32489         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32490         (gl_tree_remove_node): New function, moved here from
32491         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32492         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32493         Update.
32494         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32495         malloc, not xmalloc. Return NULL upon out-of-memory.
32496         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32497         out-of-memory.
32498         (gl_tree_remove_node_from_tree): New function, extracted from
32499         gl_tree_remove_node.
32500         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32501         upon out-of-memory.
32502         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32503         out-of-memory.
32504         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32505         upon out-of-memory.
32506         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32507         upon out-of-memory.
32508         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32509         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32510         not xmalloc. Return NULL upon out-of-memory.
32511         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32512         out-of-memory.
32513         (gl_tree_remove_node_from_tree): New function, extracted from
32514         gl_tree_remove_node.
32515         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32516         upon out-of-memory.
32517         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32518         out-of-memory.
32519         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32520         upon out-of-memory.
32521         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32522         upon out-of-memory.
32523         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32524         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32525         gl_anytree_list1.h before gl_anyavltree_list2.h.
32526         (gl_avltree_list_implementation): Update.
32527         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32528         gl_anytree_list1.h before gl_anyavltree_list2.h.
32529         (gl_rbtree_list_implementation): Update.
32530         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32531         Change return type to 'int'. Return -1 upon out-of-memory. Use
32532         __builtin_expect.
32533         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32534         (gl_avltreehash_list_implementation): Update.
32535         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32536         (gl_rbtreehash_list_implementation): Update.
32537         * modules/array-list (Depends-on): Remove xalloc.
32538         * modules/carray-list (Depends-on): Likewise.
32539         * modules/linked-list (Depends-on): Likewise.
32540         * modules/linkedhash-list (Depends-on): Likewise.
32541         * modules/avltree-list (Depends-on): Likewise.
32542         * modules/rbtree-list (Depends-on): Likewise.
32543         * modules/avltreehash-list (Depends-on): Likewise.
32544         * modules/rbtreehash-list (Depends-on): Likewise.
32545
32546         * modules/xsublist: New file.
32547         * lib/gl_xsublist.h: New file.
32548         * lib/gl_xsublist.c: New file.
32549         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32550         (gl_sublist_nx_create): New declaration.
32551         * lib/gl_sublist.c: Don't include xalloc.h.
32552         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32553         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32554         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32555         Change return type to 'int'. Return -1 upon out-of-memory.
32556         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32557         upon out-of-memory.
32558         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32559         NULL upon out-of-memory.
32560         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32561         upon out-of-memory.
32562         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32563         NULL upon out-of-memory.
32564         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32565         NULL upon out-of-memory.
32566         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32567         upon out-of-memory.
32568         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32569         (gl_sublist_list_implementation): Update.
32570         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32571         upon out-of-memory.
32572         * modules/sublist (Depends-on): Remove xalloc.
32573
32574         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32575         * tests/test-carray_list.c: Likewise.
32576         * tests/test-linked_list.c: Likewise.
32577         * tests/test-linkedhash_list.c: Likewise.
32578         * tests/test-avltree_list.c: Likewise.
32579         * tests/test-rbtree_list.c: Likewise.
32580         * tests/test-avltreehash_list.c: Likewise.
32581         * tests/test-rbtreehash_list.c: Likewise.
32582         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32583         * modules/carray-list-tests (Makefile.am): Likewise.
32584         * modules/linked-list-tests (Makefile.am): Likewise.
32585         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32586         * modules/avltree-list-tests (Makefile.am): Likewise.
32587         * modules/rbtree-list-tests (Makefile.am): Likewise.
32588         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32589         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32590
32591         * NEWS: Mention the changes.
32592
32593         * lib/clean-temp.c: Include gl_xlist.h.
32594         * modules/clean-temp (Depends-on): Add xlist.
32595
32596         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32597         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32598
32599         * tests/test-array_oset.c: Include gl_xlist.h.
32600         * modules/array-oset-tests (Depends-on): Add xlist.
32601
32602         Reported by José E. Marchesi <jemarch@gnu.org>.
32603
32604 2009-12-13  Bruno Haible  <bruno@clisp.org>
32605
32606         Move the malloc checking from module 'oset' to new module 'xoset'.
32607         * modules/xoset: New file.
32608         * lib/gl_xoset.h: New file.
32609         * lib/gl_xoset.c: New file.
32610         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32611         declarations.
32612         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32613         (struct gl_oset_implementation): Rename and change methods accordingly.
32614         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32615         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32616         'int'. Mark as __warn_unused_result__.
32617         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32618         gl_oset_create_empty.
32619         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32620         'int'.
32621         * lib/gl_array_oset.c: Don't include xalloc.h.
32622         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32623         malloc, not xmalloc.
32624         (grow): Change return type to 'int'. Don't call xalloc_die.
32625         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32626         to 'int'.
32627         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32628         'int'.
32629         (gl_array_oset_implementation): Update.
32630         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32631         gl_tree_create_empty.
32632         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32633         'int'.
32634         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32635         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32636         xmalloc.
32637         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32638         not xmalloc.
32639         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32640         xmalloc.
32641         (gl_avltree_oset_implementation): Update.
32642         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32643         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32644         xmalloc.
32645         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32646         not xmalloc.
32647         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32648         xmalloc.
32649         (gl_rbtree_oset_implementation): Update.
32650         * modules/array-oset (Depends-on): Remove xalloc.
32651         * modules/avltree-oset (Depends-on): Likewise.
32652         * modules/rbtree-oset (Depends-on): Likewise.
32653         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32654         * tests/test-avltree_oset.c: Likewise.
32655         * tests/test-rbtree_oset.c: Likewise.
32656         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32657         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32658         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32659         * NEWS: Mention the change.
32660
32661 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32662
32663         maint.mk: allow a project to override release-prep commands
32664         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32665         commands into a new rule.
32666         (release-prep): New rule.
32667         (release-prep-hook): New overridable variable.
32668
32669 2009-12-13  Bruno Haible  <bruno@clisp.org>
32670
32671         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32672
32673 2009-12-13  Jim Meyering  <meyering@redhat.com>
32674
32675         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32676         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32677
32678 2009-12-12  Bruno Haible  <bruno@clisp.org>
32679
32680         duplocale: Tweak.
32681         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32682
32683 2009-12-12  Karl Berry  <karl@gnu.org>
32684
32685         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32686
32687 2009-12-12  Bruno Haible  <bruno@clisp.org>
32688
32689         * m4/po.m4: Undo incorrect untabification.
32690
32691 2009-12-12  Bruno Haible  <bruno@clisp.org>
32692
32693         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32694         * modules/c-strtod (Depends-on): Add locale.
32695         * modules/c-strtold (Depends-on): Likewise.
32696
32697 2009-12-12  Bruno Haible  <bruno@clisp.org>
32698
32699         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32700
32701 2009-12-11  Eric Blake  <ebb9@byu.net>
32702
32703         setenv: relax requirement in light of POSIX ruling
32704         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32705         not NULL.
32706         * tests/test-setenv.c (main): Relax test.
32707         * tests/test-unsetenv.c (main): Likewise.
32708         * doc/posix-functions/setenv.texi (setenv): Document this.
32709         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32710
32711 2009-12-11  Bruno Haible  <bruno@clisp.org>
32712
32713         New module 'fd-safer-flag'.
32714         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32715         * lib/dup-safer.c (dup_safer_flag): Remove function.
32716         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32717         * lib/fd-safer.c (fd_safer_flag): Remove function.
32718         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32719         * modules/cloexec (configure.ac): Drop indicator macro.
32720         * modules/fd-safer-flag: New file.
32721         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32722         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32723         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32724
32725 2009-12-11  Bruno Haible  <bruno@clisp.org>
32726
32727         Tests for module 'nl_langinfo'.
32728         * modules/nl_langinfo-tests: New file.
32729         * tests/test-nl_langinfo.sh: New file.
32730         * tests/test-nl_langinfo.c: New file.
32731
32732         New module 'nl_langinfo'.
32733         * lib/nl_langinfo.c: New file.
32734         * m4/nl_langinfo.m4: New file.
32735         * modules/nl_langinfo: New file.
32736         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32737
32738 2009-12-11  Bruno Haible  <bruno@clisp.org>
32739
32740         Tests for module 'langinfo'.
32741         * modules/langinfo-tests: New file.
32742         * tests/test-langinfo.c: New file.
32743
32744         New module 'langinfo'.
32745         * lib/langinfo.in.h: New file.
32746         * m4/langinfo_h.m4: New file.
32747         * modules/langinfo: New file.
32748         * doc/posix-headers/langinfo.texi: Mention the new module.
32749
32750 2009-12-11  Bruno Haible  <bruno@clisp.org>
32751
32752         * lib/config.charset: Untabify.
32753
32754 2009-12-11  Bruno Haible  <bruno@clisp.org>
32755
32756         * modules/unistd-safer (configure.ac): Drop indicator macro.
32757
32758 2009-12-11  Bruno Haible  <bruno@clisp.org>
32759
32760         Move pipe2-safer code to its own file.
32761         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32762         * lib/pipe-safer.c (pipe2_safer): Remove function.
32763         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32764         (Makefile.am): Add it to lib_SOURCES.
32765
32766 2009-12-10  Bruno Haible  <bruno@clisp.org>
32767
32768         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32769
32770 2009-12-10  Bruno Haible  <bruno@clisp.org>
32771
32772         Declare which arguments expect non-NULL values, for GCC and clang.
32773         * build-aux/arg-nonnull.h: New file.
32774         * modules/arg-nonnull: New file.
32775         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32776         (inet_ntop, inet_pton): Use it.
32777         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32778         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32779         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32780         (open, openat): Use it.
32781         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32782         (fnmatch): Use it.
32783         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32784         (getopt, getopt_long, getopt_long_only): Use it.
32785         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32786         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32787         Use it.
32788         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32789         (iconv_open): Use it.
32790         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32791         (strtoimax, strtoumax): Use it.
32792         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32793         (duplocale): Use it.
32794         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32795         (frexp, frexpl): Use it.
32796         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32797         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32798         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32799         (tsearch, tfind, tdelete, twalk): Use it.
32800         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32801         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32802         sigpending): Use it.
32803         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32804         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32805         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32806         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32807         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32808         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32809         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32810         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32811         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32812         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32813         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32814         Use it.
32815         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32816         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32817         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32818         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32819         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32820         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32821         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32822         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32823         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32824         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32825         strtoull, unsetenv): Use it.
32826         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32827         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32828         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32829         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32830         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32831         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32832         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32833         (strcasecmp, strncasecmp): Use it.
32834         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32835         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32836         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32837         rpl_setsockopt): Use it.
32838         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32839         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32840         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32841         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32842         (gettimeofday): Use it.
32843         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32844         (times): Use it.
32845         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32846         (uname): Use it.
32847         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32848         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32849         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32850         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32851         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32852         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32853         unlinkat, write): Use it.
32854         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32855         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32856         * lib/argv-iter.h: Include arg-nonnull.h.
32857         (_ATTRIBUTE_NONNULL_): Remove macro.
32858         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32859         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32860         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32861         optimization.
32862         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32863         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32864         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32865         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32866         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32867         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32868         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32869         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32870         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32871         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32872         * modules/dirent (Depends-on): Add arg-nonnull.
32873         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32874         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32875         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32876         * modules/fnmatch (Depends-on): Add arg-nonnull.
32877         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32878         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32879         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32880         * modules/glob (Depends-on): Add arg-nonnull.
32881         (Makefile.am): Insert arg-nonnull.h into glob.h.
32882         * modules/iconv_open (Depends-on): Add arg-nonnull.
32883         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32884         * modules/inttypes (Depends-on): Add arg-nonnull.
32885         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32886         * modules/locale (Depends-on): Add arg-nonnull.
32887         (Makefile.am): Insert arg-nonnull.h into locale.h.
32888         * modules/math (Depends-on): Add arg-nonnull.
32889         (Makefile.am): Insert arg-nonnull.h into math.h.
32890         * modules/netdb (Depends-on): Add arg-nonnull.
32891         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32892         * modules/search (Depends-on): Add arg-nonnull.
32893         (Makefile.am): Insert arg-nonnull.h into search.h.
32894         * modules/signal (Depends-on): Add arg-nonnull.
32895         (Makefile.am): Insert arg-nonnull.h into signal.h.
32896         * modules/spawn (Depends-on): Add arg-nonnull.
32897         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32898         * modules/stdio (Depends-on): Add arg-nonnull.
32899         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32900         * modules/stdlib (Depends-on): Add arg-nonnull.
32901         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32902         * modules/string (Depends-on): Add arg-nonnull.
32903         (Makefile.am): Insert arg-nonnull.h into string.h.
32904         * modules/strings (Depends-on): Add arg-nonnull.
32905         (Makefile.am): Insert arg-nonnull.h into strings.h.
32906         * modules/sys_socket (Depends-on): Add arg-nonnull.
32907         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32908         * modules/sys_stat (Depends-on): Add arg-nonnull.
32909         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32910         * modules/sys_time (Depends-on): Add arg-nonnull.
32911         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32912         * modules/sys_times (Depends-on): Add arg-nonnull.
32913         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32914         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32915         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32916         * modules/time (Depends-on): Add arg-nonnull.
32917         (Makefile.am): Insert arg-nonnull.h into time.h.
32918         * modules/unistd (Depends-on): Add arg-nonnull.
32919         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32920         * modules/wchar (Depends-on): Add arg-nonnull.
32921         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32922         * modules/argv-iter (Depends-on): Add arg-nonnull.
32923         * tests/test-canonicalize.c (null_ptr): New function.
32924         (main): Use it.
32925         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32926         (main): Use it.
32927         * tests/test-memmem.c (null_ptr): New function.
32928         (main): Use it.
32929         Reported by Jim Meyering.
32930
32931 2009-12-10  Bruno Haible  <bruno@clisp.org>
32932
32933         Use spaces for indentation, not tabs.
32934         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32935         * m4/*.m4: Untabify.
32936         * build-aux/*.h: Untabify.
32937         * tests/**/*.[hc]: Untabify.
32938         * README: New section "Indent with spaces, not TABs", based on
32939         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32940         * NEWS: Mention the change.
32941
32942 2009-12-10  Bruno Haible  <bruno@clisp.org>
32943
32944         pty test: Fix link error.
32945         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32946         test_pty_LDADD.
32947
32948 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32949
32950         * modules/pty: New file.
32951         * modules/pty-tests: New file.
32952         * m4/pty.m4: New file.
32953         * tests/test-pty.c: New file.
32954         * doc/glibc-headers/pty.texi: Modified.
32955         * doc/glibc-functions/forkpty.texi: Modified.
32956         * doc/glibc-functions/openpty.texi: Modified.
32957
32958 2009-12-10  Bruno Haible  <bruno@clisp.org>
32959
32960         Avoid syntax error in C++ mode.
32961         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32962
32963 2009-12-10  Bruno Haible  <bruno@clisp.org>
32964
32965         Use sed with option -e.
32966         * gnulib-tool (func_version, func_emit_copyright_notice,
32967         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32968         option -e to sed.
32969         * modules/link-warning (Makefile.am): Likewise.
32970
32971 2009-12-10  Jim Meyering  <meyering@redhat.com>
32972
32973         mgetgroups: do not write bytes beyond end of malloc'd buffer
32974         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32975         username, we call getgroups with a one-element-shorter buffer,
32976         but still told it the length was original, max_n_groups.
32977
32978 2009-12-09  Eric Blake  <ebb9@byu.net>
32979
32980         cloexec: relax license
32981         * modules/cloexec (Maintainer): Add myself.
32982         (License): Use LGPL, not GPL.
32983
32984         link-warning: optimize generation
32985         * modules/link-warning (Makefile.am): Reduce process usage.
32986
32987 2009-12-09  Bruno Haible  <bruno@clisp.org>
32988
32989         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32990         workaround was added on 2009-11-17.
32991
32992 2009-12-09  Jim Meyering  <meyering@redhat.com>
32993             Bruno Haible  <bruno@clisp.org>
32994
32995         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32996         * modules/link-warning (Makefile.am): Make the comment-removing sed
32997         command more robust in the face of bootstrap-prepended comment lines.
32998
32999 2009-12-09  Bruno Haible  <bruno@clisp.org>
33000
33001         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33002         most one group.
33003
33004 2009-12-09  Simon Josefsson <simon@josefsson.org>
33005             Bruno Haible  <bruno@clisp.org>
33006
33007         * build-aux/link-warning.h: Add copyright notice.
33008         * modules/link-warning (Makefile.am): Generate link-warning.h from
33009         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33010         * NEWS: Mention change in link-warning module.
33011         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33012         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33013         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33014         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33015         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33016         * modules/math (Makefile.am): Add dependency to math.h.
33017         * modules/search (Makefile.am): Add dependency to search.h.
33018         * modules/signal (Makefile.am): Add dependency to signal.h.
33019         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33020         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33021         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33022         * modules/string (Makefile.am): Add dependency to string.h.
33023         * modules/strings (Makefile.am): Add dependency to strings.h.
33024         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33025         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33026         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33027         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33028         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33029         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33030         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33031         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33032         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33033
33034 2009-12-09  Bruno Haible  <bruno@clisp.org>
33035
33036         fchdir: Optimize away rpl_fstat when possible.
33037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33038         REPLACE_OPEN_DIRECTORY.
33039         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33040
33041 2009-12-09  Bruno Haible  <bruno@clisp.org>
33042
33043         * lib/fchdir.c: Update comment.
33044
33045 2009-12-09  Bruno Haible  <bruno@clisp.org>
33046
33047         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33048
33049 2009-12-08  Eric Blake  <ebb9@byu.net>
33050
33051         fchdir: avoid memory leak on re-registration.
33052         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33053
33054 2009-12-08  Jim Meyering  <meyering@redhat.com>
33055
33056         init.sh: avoid Solaris 10 /bin/sh portability problem
33057         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33058         sourced script:
33059           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33060           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33061           bar
33062         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33063         and two tests used that idiom.
33064         * tests/init.sh: Update suggested usage comments.
33065         (path_prepend_): New function, to be used in place
33066         of the --src-path=DIR option.
33067         (setup_): Move PATH-prepending code into path_prepend_.
33068         * tests/test-pread.sh: Adapt to new usage.
33069         * tests/test-xalloc-die.sh: Likewise.
33070
33071 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33072
33073         * doc/gnulib.texi (Glibc pty.h): Add.
33074         * doc/glibc-functions/forkpty.texi: Add.
33075         * doc/glibc-functions/openpty.texi: Add.
33076         Suggested by Bruno Haible.
33077
33078 2009-12-08  Eric Blake  <ebb9@byu.net>
33079
33080         fchdir: fix logic bugs
33081         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33082         * tests/test-fchdir.c (main): Enhance test.
33083         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33084         is in use.
33085
33086         dup2: fix logic bugs
33087         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33088         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33089         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33090         exists.
33091         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33092
33093 2009-12-07  Eric Blake  <ebb9@byu.net>
33094
33095         unlink: fix m4 detection
33096         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33097
33098         unistd-safer: add unit test
33099         * modules/unistd-safer-tests: New file.
33100         * tests/test-dup-safer.c: Likewise.
33101         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33102         * tests/test-dup2.c (setmode): Likewise.
33103         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33104
33105         cloexec: preserve text vs. binary across dup_cloexec
33106         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33107         mode.
33108         * modules/dup2-tests (Depends-on): Add binary-io.
33109         * modules/cloexec-tests (Depends-on): Likewise.
33110         * tests/test-dup2.c (setmode, is_mode): New helpers.
33111         (main): Add tests that translation mode is preserved.
33112         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33113         Reported by Bruno Haible.
33114
33115         mgetgroups: reduce duplicate listings
33116         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33117         resulting array.
33118         * tests/test-chown.h (test_chown): Simplify client.
33119         * tests/test-lchown.h (test_lchown): Likewise.
33120
33121 2009-12-06  Bruno Haible  <bruno@clisp.org>
33122
33123         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33124         value.
33125
33126 2009-12-06  Bruno Haible  <bruno@clisp.org>
33127
33128         * lib/progname.c: Include stdio.h, stdlib.h.
33129         (set_program_name): Reject a NULL argument.
33130
33131 2009-12-05  Eric Blake  <ebb9@byu.net>
33132
33133         pipe2-safer: new module
33134         * modules/pipe2-safer: New file.
33135         * lib/unistd-safer.h (pipe2_safer): New prototype.
33136         * lib/unistd--.h (pipe2): New wrapper.
33137         * lib/pipe-safer.c (pipe2_safer): New function.
33138         * modules/pipe (Depends-on): Add pipe2-safer.
33139         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33140
33141         stdlib-safer: preserve cloexec flag for mkostemp[s]
33142         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33143         fd_safer_flag.
33144
33145         unistd-safer: allow preservation of cloexec status via flag
33146         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33147         prototypes.
33148         * lib/dup-safer.c (dup_safer_flag): New function.
33149         * lib/fd-safer.c (fd_safer_flag): Likewise.
33150         * modules/cloexec (configure.ac): Set witness.
33151
33152         test-dup2: enhance test
33153         * modules/dup2-tests (Depends-on): Add cloexec.
33154         * tests/test-dup2.c (main): Enhance test.
33155
33156         cloexec: add dup_cloexec
33157         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33158         header and comments.
33159         * lib/cloexec.c (set_cloexec_flag): Add comments.
33160         (dup_cloexec): New function, with mingw implementation borrowed
33161         from...
33162         * lib/w32spawn.h (dup_noinherit): ...here.
33163         * modules/execute (Depends-on): Add cloexec.
33164         * modules/pipe (Depends-on): Likewise.
33165         * modules/cloexec (Depends-on): Add dup2.
33166         * modules/cloexec-tests (Files): New file.
33167         * tests/test-cloexec.c: Likewise.
33168
33169         test-xalloc-die: fix test for mingw
33170         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33171         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33172         directory and .exe suffix off argv[0] output.
33173
33174         test-fseeko: fix test for mingw
33175         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33176         than undefining fseek, so test will pass on mingw.
33177
33178 2009-12-05  Bruno Haible  <bruno@clisp.org>
33179
33180         * lib/progname.h (set_program_name): Clarify specification.
33181         * lib/progname.c (set_program_name): Likewise.
33182         Reported by Jim Meyering.
33183
33184 2009-12-05  Jim Meyering  <meyering@redhat.com>
33185
33186         maint.mk: backslash-escape parens in default regexp
33187         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33188         backslash-escape the literal parentheses.
33189
33190         maint.mk: news-date-check: use grep -E
33191         * top/maint.mk (today): Define a Make variable, not a...
33192         (news-date-check): ...shell variable.
33193         (news-date-regexp): Use the Make variable.
33194         Use grep's -E option.  Change the failing diagnostic to mention
33195         the variable, $(news-date-regexp).
33196
33197 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33198
33199         maintainer-makefile: allow customization of NEWS entry format
33200         * top/maint.mk (news-date-regexp): New overridable variable.
33201         (news-date-check): Use it.
33202
33203 2009-12-04  Eric Blake  <ebb9@byu.net>
33204
33205         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33206         * lib/mgetgroups.h (xgetgroups): New prototype.
33207         * lib/mgetgroups.c (xgetgroups): New wrapper.
33208         (mgetgroups): Handle ENOSYS.
33209         * modules/mgetgroups (Depends-on): Add realloc.
33210         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33211
33212         mgetgroups: avoid argument promotion issues with -1
33213         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33214         for invalid gid_t.
33215         * tests/test-chown.h (getegid, test_chown): Likewise.
33216         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33217
33218 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33219
33220         exclude: Fix header file problems.
33221         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33222
33223 2009-12-01  Jim Meyering  <meyering@redhat.com>
33224
33225         fts: fts_open: do not let an empty string cause immediate failure
33226         This is required in support of GNU rm, for which the command
33227         "rm A '' B" must process and remove both A and B, in spite of
33228         the empty string argument.
33229         * lib/fts.c (fts_open): Do not let the presence of an empty string
33230         cause fts_open to fail immediately.  Most fts-using tools must be
33231         able to process all arguments, in order, and can be expected to
33232         diagnose such arguments themselves.
33233
33234 2009-11-30  Eric Blake  <ebb9@byu.net>
33235
33236         utimens: fix compilation error
33237         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33238         Declare variable at right scope.
33239
33240 2009-11-29  Jim Meyering  <meyering@redhat.com>
33241
33242         bootstrap: handle perl-5.11's changed --version output
33243         * build-aux/bootstrap (get_version): Handle perl separately,
33244         since perl-5.11's --version output is different.
33245
33246 2009-11-28  Jim Meyering  <meyering@redhat.com>
33247
33248         userspec: depend on the inttostr module, too
33249         * modules/userspec (Depends-on): Add inttostr.
33250
33251         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33252         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33253         number of MAXUID when it evaluates to (uid_t) -1.
33254         Likewise for group ID.  Reported by Matt McCutchen in
33255         <http://savannah.gnu.org/bugs/?28113>
33256
33257         userspec: reformat to use spaces, not TABs
33258         * lib/userspec.c: Expand TABs to spaces.
33259         Add Emacs' "indent-tabs-mode: nil" hint.
33260
33261 2009-11-27  Eric Blake  <ebb9@byu.net>
33262
33263         getopt-gnu: flush out another BSD bug
33264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33265         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33266         flush out BSD bug.
33267         * tests/test-getopt.h (test_getopt): End lists with NULL.
33268         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33269         (test_getopt_long_posix): Enhance test.
33270         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33271         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33272         getopt-gnu.
33273         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33274         Likewise.
33275
33276 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33277
33278         * modules/idpriv-droptemp-tests (Notice): Fix text.
33279
33280 2009-11-27  Jim Meyering  <meyering@redhat.com>
33281
33282         test-xalloc-die: avoid spurious failure due to libtool argv difference
33283         In a libtool-enabled project, this test would fail due to a difference
33284         in the emitted program name, e.g.,
33285         -test-xalloc-die: memory exhausted
33286         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33287         Use program to avoid that.
33288         * modules/xalloc-die-tests (Depends-on): Add progname.
33289         * tests/test-xalloc-die.c: Include progname.h".
33290         (program_name): Remove decl.
33291         (main): Call set_program_name.
33292         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33293
33294 2009-11-26  Richard Jones  <rjones@redhat.com>
33295
33296         w32sock: leave win32 error in place.
33297         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33298
33299 2009-11-26  Eric Blake  <ebb9@byu.net>
33300
33301         init.sh: suggest to use skip_ and fail_ functions in comments
33302         * tests/init.sh: Add a sentence.
33303
33304 2009-11-25  Bruno Haible  <bruno@clisp.org>
33305
33306         init.sh: add documentation in comments
33307         * tests/init.sh: Add some developer and user documentation.
33308
33309 2009-11-26  Jim Meyering  <meyering@redhat.com>
33310
33311         init.sh: accommodate even those who specify bogus srcdir manually
33312         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33313         configure-time tests to be sanitized, so that there is no need to
33314         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33315         (with no double quotes) suffices.  However, since tests may be
33316         invoked manually, and since you may explicitly set srcdir to the
33317         name of a directory containing spaces, do quote its uses here.
33318         * tests/test-pread.sh: Likewise.
33319         Suggested by Bruno Haible.
33320
33321         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33322         * tests/test-pread.sh: Write no data into the pipe, because
33323         test-pread actually reads none.  This avoids a diagnostic,
33324         "bash: echo: write error: Broken pipe", that arises in the unusual
33325         event something is ignoring SIGPIPE, and might be interpreted
33326         as some sort of failure.  Reported by Bruno Haible.
33327
33328 2009-11-25  Jim Meyering  <meyering@redhat.com>
33329
33330         test-pread: cover failure with ESPIPE and EINVAL
33331         * tests/test-pread.c (main): Test for failure, too.
33332         * tests/test-pread.sh: Invoke with stdin on a pipe.
33333         Suggested by Eric Blake.
33334
33335         pread: improvement and fix
33336         * modules/pread (Depends-on): Depend on lseek, for portability to
33337         e.g., mingw.  Suggested by Eric Blake.
33338         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33339
33340         unistd.in.h: correct declaration of pread
33341         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33342         Reported by Richard W.M. Jones.
33343
33344         test-pread.sh: distribute the test script
33345         * modules/pread-tests (Files): Include test-pread.sh.
33346
33347         test-pread.sh: clean up
33348         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33349         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33350         That is unnecessary, since it's always ".".
33351         Suggestion from Eric Blake.
33352
33353         test-pread.sh: make executable
33354         * tests/test-pread.sh: Set executable bit.
33355         Reported by Eric Blake.
33356
33357         correct typo in test-pread.sh
33358         * tests/test-pread.sh: Add #! line.
33359
33360         test pread
33361         * tests/test-pread.c: New file.
33362         * tests/test-pread.sh: Likewise.
33363         * modules/pread-tests: Likewise.
33364
33365         pread: new module
33366         * modules/pread: New file.
33367         * lib/unistd.in.h (pread): Define/declare.
33368         * lib/pread.c (pread): New file.
33369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33370         * modules/unistd (Makefile.am): Substitute witnesses.
33371         * doc/posix-functions/pread.texi (pread): Update.
33372         * MODULES.html.sh: Add pread.
33373
33374 2009-11-25  Jim Meyering  <meyering@redhat.com>
33375
33376         tests/init.sh: new file to be used via most *.sh tests
33377         * tests/init.sh: New file.
33378
33379 2009-11-25  Eric Blake  <ebb9@byu.net>
33380
33381         utimens: work around older Linux failure with symlinks
33382         * lib/utimens.c (lutimensat_works_really): New variable.
33383         (fdutimens, lutimens): Use it to manage kernels that support
33384         nanosecond times on files, but not on symlinks.
33385         Reported by Ondřej Vašík.
33386
33387         utimes: fix configure grammar
33388         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33389
33390 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33391
33392         regex: Fix fastmap for multibyte character ranges.
33393         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33394         characters when a multibyte character range is included.
33395
33396 2009-11-22  Andy Wingo  <wingo@pobox.com>
33397
33398         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33399         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33400
33401 2009-11-24  Bruno Haible  <bruno@clisp.org>
33402
33403         doc: Most *_l functions exist in MacOS X 10.5.
33404         * doc/posix-functions/duplocale.texi: Update platforms list.
33405         * doc/posix-functions/freelocale.texi: Likewise.
33406         * doc/posix-functions/newlocale.texi: Likewise.
33407         * doc/posix-functions/uselocale.texi: Likewise.
33408         * doc/posix-functions/isalnum_l.texi: Likewise.
33409         * doc/posix-functions/isalpha_l.texi: Likewise.
33410         * doc/posix-functions/isblank_l.texi: Likewise.
33411         * doc/posix-functions/iscntrl_l.texi: Likewise.
33412         * doc/posix-functions/isdigit_l.texi: Likewise.
33413         * doc/posix-functions/isgraph_l.texi: Likewise.
33414         * doc/posix-functions/islower_l.texi: Likewise.
33415         * doc/posix-functions/isprint_l.texi: Likewise.
33416         * doc/posix-functions/ispunct_l.texi: Likewise.
33417         * doc/posix-functions/isspace_l.texi: Likewise.
33418         * doc/posix-functions/isupper_l.texi: Likewise.
33419         * doc/posix-functions/iswalnum_l.texi: Likewise.
33420         * doc/posix-functions/iswalpha_l.texi: Likewise.
33421         * doc/posix-functions/iswblank_l.texi: Likewise.
33422         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33423         * doc/posix-functions/iswctype_l.texi: Likewise.
33424         * doc/posix-functions/iswdigit_l.texi: Likewise.
33425         * doc/posix-functions/iswgraph_l.texi: Likewise.
33426         * doc/posix-functions/iswlower_l.texi: Likewise.
33427         * doc/posix-functions/iswprint_l.texi: Likewise.
33428         * doc/posix-functions/iswpunct_l.texi: Likewise.
33429         * doc/posix-functions/iswspace_l.texi: Likewise.
33430         * doc/posix-functions/iswupper_l.texi: Likewise.
33431         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33432         * doc/posix-functions/isxdigit_l.texi: Likewise.
33433         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33434         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33435         * doc/posix-functions/strcoll_l.texi: Likewise.
33436         * doc/posix-functions/strfmon_l.texi: Likewise.
33437         * doc/posix-functions/strftime_l.texi: Likewise.
33438         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33439         * doc/posix-functions/strxfrm_l.texi: Likewise.
33440         * doc/posix-functions/tolower_l.texi: Likewise.
33441         * doc/posix-functions/toupper_l.texi: Likewise.
33442         * doc/posix-functions/towctrans_l.texi: Likewise.
33443         * doc/posix-functions/towlower_l.texi: Likewise.
33444         * doc/posix-functions/towupper_l.texi: Likewise.
33445         * doc/posix-functions/wcscoll_l.texi: Likewise.
33446         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33447         * doc/posix-functions/wctrans_l.texi: Likewise.
33448         * doc/posix-functions/wctype_l.texi: Likewise.
33449         * doc/glibc-functions/strptime_l.texi: Likewise.
33450         * doc/glibc-functions/strtod_l.texi: Likewise.
33451         * doc/glibc-functions/strtof_l.texi: Likewise.
33452         * doc/glibc-functions/strtol_l.texi: Likewise.
33453         * doc/glibc-functions/strtold_l.texi: Likewise.
33454         * doc/glibc-functions/strtoll_l.texi: Likewise.
33455         * doc/glibc-functions/strtoul_l.texi: Likewise.
33456         * doc/glibc-functions/strtoull_l.texi: Likewise.
33457         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33458         * doc/glibc-functions/wcstod_l.texi: Likewise.
33459         * doc/glibc-functions/wcstof_l.texi: Likewise.
33460         * doc/glibc-functions/wcstol_l.texi: Likewise.
33461         * doc/glibc-functions/wcstold_l.texi: Likewise.
33462         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33463         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33464         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33465
33466 2009-11-24  Bruno Haible  <bruno@clisp.org>
33467
33468         duplocale: Fix logic bug.
33469         * lib/duplocale.c: Don't include <langinfo.h>.
33470         (_NL_LOCALE_NAME): Remove macro.
33471         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33472         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33473
33474 2009-11-23  Jim Meyering  <meyering@redhat.com>
33475
33476         test-update-copyright: don't hard-code /usr/bin/perl
33477         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33478         perl to print the current year.  Gilles Espinasse reported that
33479         the replaced use of perl was hard-coded as /usr/bin/perl.
33480
33481 2009-11-23  Bruno Haible  <bruno@clisp.org>
33482
33483         duplocale: Add support for glibc 2.3.x.
33484         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33485
33486 2009-11-22  Bruno Haible  <bruno@clisp.org>
33487
33488         vasnprintf: Tiny optimization.
33489         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33490         MacOS X.
33491
33492 2009-11-22  Bruno Haible  <bruno@clisp.org>
33493
33494         Tests for module 'duplocale'.
33495         * modules/duplocale-tests: New file.
33496         * tests/test-duplocale.c: New file.
33497
33498         New module 'duplocale'.
33499         * m4/duplocale.m4: New file.
33500         * lib/locale.in.h (duplocale): New declaration.
33501         * lib/duplocale.c: New file.
33502         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33503         gl_LOCALE_H_DEFAULTS): New macros.
33504         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33505         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33506         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33507         REPLACE_DUPLOCALE.
33508         * modules/duplocale: New file.
33509         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33510
33511 2009-11-22  Bruno Haible  <bruno@clisp.org>
33512
33513         * modules/locale-tests (configure.ac): Test for newlocale function.
33514         * tests/test-locale.c: When the system has extended locale functions,
33515         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33516
33517         locale: Make locale_t available when possible.
33518         * lib/locale.in.h: Include <xlocale.h> when it exists.
33519         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33520         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33521         * modules/locale (Depends-on): Add extensions.
33522         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33523         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33524
33525 2009-11-22  Bruno Haible  <bruno@clisp.org>
33526
33527         Add comments.
33528         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33529         invocation.
33530         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33531         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33532         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33533
33534 2009-11-22  Bruno Haible  <bruno@clisp.org>
33535
33536         error: account for the possibility of freopen (stdout).
33537         * lib/error.c: Include <unistd.h>.
33538         (flush_stdout): New function, extracted from error and error_at_line.
33539         Determine stdout's fd dynamically.
33540         (error, error_at_line): Invoke flush_stdout.
33541         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33542         * modules/error (Depends-on): Add unistd.
33543
33544 2009-11-22  Bruno Haible  <bruno@clisp.org>
33545
33546         diffseq: Add comment.
33547         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33548
33549 2009-11-22  Jim Meyering  <meyering@redhat.com>
33550
33551         c-stack: avoid defining an unused static function
33552         * lib/c-stack.c (find_stack_direction): Do not define this function
33553         when it will not be used.
33554
33555         diffseq: avoid spurious gcc warnings
33556         * lib/diffseq.h (IF_LINT2): Define.
33557         (compareseq): Use it to initialize two members of "part".
33558         This avoids two used-uninitialized warnings.
33559
33560 2009-11-21  Jim Meyering  <meyering@redhat.com>
33561
33562         c-stack: avoid "ignoring return value of `write'" warning
33563         * lib/c-stack.c: Include "ignore-value.h".
33564         (die): Explicitly ignore each write return value.
33565         * modules/c-stack (Depends-on): Add ignore-value.
33566
33567 2009-11-21  Bruno Haible  <bruno@clisp.org>
33568
33569         diffseq: reduce scope of variable 'best'.
33570         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33571         variable, earlier used for two different purposes.
33572
33573 2009-11-21  Jim Meyering  <meyering@redhat.com>
33574
33575         diffseq: remove useless assignment to "best"
33576         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33577         assignment.  At that point "best" is already guaranteed to be zero.
33578
33579 2009-11-20  Eric Blake  <ebb9@byu.net>
33580
33581         build: mention ftp redirector in release announcements
33582         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33583         values that used to come from cfg.mk; mention FTP redirect URL.
33584         * build-aux/announce-gen: Mention the mirror list.
33585         Suggested by Karl Berry.
33586
33587         nanosleep: improve port to mingw
33588         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33590         LIB_NANOSLEEP, but only when needed.
33591         * modules/select (Link): Document LIBSOCKET.
33592         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33593         enough.
33594
33595         nanosleep: work around cygwin bug
33596         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33597         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33598         bug.
33599         (getnow): Delete, not needed.
33600         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33601         LIB_CLOCK_GETTIME.
33602         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33603         clock-time, gettime.
33604         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33605         bug.
33606         * modules/nanosleep-tests: New test.
33607         * tests/test-nanosleep.c: New file.
33608
33609         sleep: work around cygwin bug
33610         * lib/sleep.c (rpl_sleep): Work around the bug.
33611         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33612         (gl_PREREQ_SLEEP): Delete unused macro.
33613         * modules/sleep (Depends-on): Add verify.
33614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33615         * modules/unistd (Makefile.am): Substitute witness.
33616         * lib/unistd.in.h (sleep): Update prototype.
33617         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33618         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33619         * modules/sleep-tests (Depends-on): Check for alarm.
33620
33621 2009-11-20  Jim Meyering  <meyering@redhat.com>
33622
33623         maint.mk: improve sc_prohibit_magic_number_exit
33624         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33625         so it does not match uses like System.exit(1).
33626         Add comments showing how to correct all offenders.
33627
33628 2009-11-19  Eric Blake  <ebb9@byu.net>
33629
33630         xalloc-die-tests: add missing library
33631         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33632
33633         test-xvasprintf: silence compiler warnings
33634         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33635         empty string from gcc.
33636
33637 2009-11-19  Jim Meyering  <meyering@redhat.com>
33638
33639         xfreopen: new module, from coreutils
33640         * modules/xfreopen: New module.
33641         * lib/xfreopen.c: New file.
33642         * lib/xfreopen.h: New file.
33643         * MODULES.html.sh (File stream based Input/Output"): Add it.
33644
33645 2009-11-19  Eric Blake  <ebb9@byu.net>
33646
33647         manywarnings: depend on warnings
33648         * modules/manywarnings (Depends-on): Add warnings.
33649
33650         build: avoid compiler warnings
33651         * lib/select.c (rpl_select): Delete unused variable.
33652         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33653
33654 2009-11-18  Eric Blake  <ebb9@byu.net>
33655
33656         tests: avoid false negative with --with-packager
33657         * tests/test-version-etc.sh: Discard packager information.
33658         * tests/test-argp-version-etc-1.sh: Likewise.
33659         Reported by Mike Frysinger.
33660
33661         utimens: fix regression on Solaris
33662         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33663         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33664         can only change fd timestamps via futimesat.  Instead, use an
33665         additional witness macro to avoid BSD bug.
33666         Reported by Jim Meyering.
33667
33668 2009-11-17  Eric Blake  <ebb9@byu.net>
33669
33670         usleep: use it to simplify tests
33671         * modules/stat-time-tests (Depends-on): Add usleep.
33672         (configure.ac): Drop usleep check.
33673         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33674         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33675         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33676         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33677         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33678         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33679         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33680         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33681         Likewise.
33682         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33683         * tests/test-lchown.h (nap): Likewise.
33684         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33685         * tests/test-stat-time.c (nap): Likewise.
33686         * tests/test-utimens-common.h (nap): Update comments.
33687
33688         usleep: new module
33689         * modules/usleep: New file.
33690         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33691         * lib/usleep.c (usleep): Likewise.
33692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33693         * modules/unistd (Makefile.am): Substitute witnesses.
33694         * lib/unistd.in.h (usleep): Add declaration.
33695         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33696         * MODULES.html.sh (Date and time): Likewise.
33697         * modules/usleep-tests (Depends-on): New test.
33698         * tests/test-usleep.c: New file.
33699
33700         chown: work around OpenBSD bug
33701         * lib/chown.c (rpl_chown): Work around the bug.
33702         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33703         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33704         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33705         * modules/chown (Depends-on): Add stdbool.
33706         * modules/lchown (Depends-on): Likewise.
33707         * doc/posix-functions/chown.texi (chown): Document the bug.
33708         * doc/posix-functions/lchown.texi (lchown): Likewise.
33709         * tests/test-lchown.h (test_chown): Relax test.
33710
33711         mkstemp: avoid conflict with C++ keyword template
33712         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33713         * lib/mkostemp.c (mkostemp): Likewise.
33714         * lib/mkostemps.c (mkostemps): Likewise.
33715         * lib/mkstemp.c (mkstemp): Likewise.
33716         * lib/mkstemps.c (mkstemps): Likewise.
33717
33718         xalloc-die-tests: optimize
33719         * tests/test-xalloc-die.sh: Reduce number of processes.
33720
33721 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33722
33723         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33724         patch from ludo@gnu.org (Ludovic Courtès).
33725
33726 2009-11-17  Jim Meyering  <meyering@redhat.com>
33727
33728         version-etc: use proper license string
33729         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33730         * modules/version-etc-fsf: Likewise.
33731
33732 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33733
33734         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33735         printed to stdout.  Deal with EOL differences.
33736
33737 2009-11-17  Eric Blake  <ebb9@byu.net>
33738
33739         unsetenv: work around Solaris bug
33740         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33741         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33742         Reported by Jim Meyering.
33743
33744         vasnprintf: avoid compiler warnings
33745         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33746         variables.
33747         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33748
33749 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33750
33751         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33752         settings since xalloc-die is no longer the self test,
33753         xalloc-die.sh is.
33754
33755 2009-11-17  Jim Meyering  <meyering@redhat.com>
33756
33757         test-xalloc-die.sh: make the code agree with the commit log
33758         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33759         at the end, just in case you happen to have a test-xalloc-die
33760         program in some other PATH directory.
33761
33762         test-xalloc-die.sh: fix a portability bug
33763         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33764         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33765         Otherwise, argv[0] (as often seen in diagnostics) would be too
33766         system-dependent, sometimes with, and sometimes without the leading "./".
33767
33768         version-etc-fsf: relax license to LGPLv3+
33769         * modules/version-etc-fsf (License): Relax license.
33770
33771 2009-11-16  Eric Blake  <ebb9@byu.net>
33772
33773         xalloc-die-tests: avoid printing null pointer
33774         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33775         shell script.
33776         * tests/test-xalloc-die.c (program_name): Declare.
33777         * tests/test-xalloc-die.sh (tmpfiles): New file.
33778
33779         setenv, unsetenv: work around various bugs
33780         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33781         (setenv) [HAVE_SETENV]: Work around bugs.
33782         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33783         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33784         for bugs.
33785         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33786         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33788         * modules/stdlib (Makefile.am): Update substitutions.
33789         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33790         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33791         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33792         * modules/setenv-tests: New test.
33793         * modules/unsetenv-tests: Likewise.
33794         * tests/test-setenv.c: New file.
33795         * tests/test-unsetenv.c: Likewise.
33796
33797 2009-11-16  Jim Meyering  <meyering@redhat.com>
33798
33799         version-etc: relax license to LGPLv3+
33800         * modules/version-etc (License): Relax license.
33801
33802         better AC_REQUIRE expanded-before-required-warning avoidance
33803         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33804         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33805         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33806         which is no longer needed.
33807
33808 2009-11-16  Eric Blake  <ebb9@byu.net>
33809
33810         test-freading: clean up temporary file
33811         * tests/test-freading.c (main): Remove file on success, and use
33812         ASSERT more liberally.
33813         Reported by Jim Meyering.
33814
33815 2009-11-16  Jim Meyering  <meyering@redhat.com>
33816
33817         avoid new AC_REQUIRE expanded-before-required warnings
33818         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33819         merely using it.
33820         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33821         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33822
33823 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33824
33825         * tests/test-xalloc-die.c: New file.
33826         * modules/xalloc-die-tests: New file.
33827         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33828         XFAIL_TESTS so it can be appended by modules.
33829
33830 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33831
33832         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33833         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33834
33835 2009-11-14  Eric Blake  <ebb9@byu.net>
33836
33837         fnmatch: avoid compiler warning
33838         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33839         to silence compiler warning about mismatch signedness in ?:.
33840         Reported by Robert Millan.
33841
33842         intprops: add double-inclusion guard
33843         * lib/intprops.h: Allow idempotent includes.
33844         Suggested by Bruce Korb.
33845
33846         openat: detect Solaris fchownat bug
33847         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33848         penalizing glibc chownat when only lchownat is broken.
33849         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33850         trailing slash bugs.
33851         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33852         * modules/openat-tests (Files): Include more files.
33853         (Depends-on): Add mgetgroups, sleep, stat-time.
33854         (configure.ac): Add additional checks.
33855         (Makefile.am): Build new test.
33856         * tests/test-fchownat.c: New file.
33857
33858         lchown: detect Solaris and FreeBSD bug
33859         * lib/lchown.c (rpl_lchown): Work around bug.
33860         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33862         * modules/unistd (Makefile.am): Populate it.
33863         * lib/unistd.in.h (lchown): Update declaration.
33864         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33865         * modules/lchown-tests: New file.
33866         * tests/test-lchown.h (test_lchown): Likewise.
33867         * tests/test-lchown.c (main): Likewise.
33868
33869         chown: detect Solaris and FreeBSD bug
33870         * lib/chown.c (rpl_chown): Work around bug.
33871         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33872         (gl_PREREQ_CHOWN): Delete.
33873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33874         * modules/unistd (Makefile.am): Populate it.
33875         * lib/unistd.in.h (chown): Update declaration.
33876         * lib/lchown.c (chown): Update client.
33877         * modules/lchown (Depends-on): Add lstat.
33878         * doc/posix-functions/chown.texi (chown): Document the bug.
33879         * doc/posix-functions/getgroups.texi (getgroups): Document
33880         getgroups pitfall.
33881         * modules/chown-tests: New file.
33882         * tests/test-chown.h (test_chown): Likewise.
33883         * tests/test-chown.c (main): Likewise.
33884
33885 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33886
33887         gnulib-tool: correctly detect absence of m4 directories
33888         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33889
33890 2009-11-14  Jim Meyering  <meyering@redhat.com>
33891
33892         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33893         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33894
33895 2009-11-14  John W. Eaton  <jwe@gnu.org>
33896
33897         strftime.h: wrap funtion declaration in extern "C" block
33898         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33899
33900 2009-11-13  Eric Blake  <ebb9@byu.net>
33901
33902         getgroups: avoid compiler warning
33903         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33904
33905         getgroups: work around FreeBSD bug
33906         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33907         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33908         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33909         * tests/test-getgroups.c (main): Fix buffer overrun.
33910
33911         getgroups: avoid compilation failure
33912         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33913         * modules/getgroups (Depends-on): Add stdint.
33914
33915 2009-11-13  Jim Meyering  <meyering@redhat.com>
33916
33917         test-getgroups: avoid compilation failure
33918         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33919
33920 2009-11-13  Eric Blake  <ebb9@byu.net>
33921
33922         mgetgroups: new module, taken from coreutils
33923         * modules/mgetgroups: New file.
33924         * lib/mgetgroups.h: Likewise.
33925         * lib/mgetgroups.c (mgetgroups): Likewise.
33926         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33927         * MODULES.html.sh (Users and groups): Mention it.
33928
33929         getgroups: don't expose GETGROUPS_T to user
33930         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33931         an element at a time if GETGROUPS_T is wrong size.
33932         * lib/getugroups.h (getugroups): Change signature.
33933         * lib/unistd.in.h (getgroups): Likewise.
33934         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33935         signature needs fixing.
33936         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33937         AC_TYPE_GETGROUPS.
33938         * modules/group-member (Depends-on): Add getgroups.
33939         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33940         (group_member): Rely on getgroups replacement.
33941         * lib/getugroups.c (getugroups): Use gid_t.
33942         * tests/test-getgroups.c (main): Likewise.
33943         * NEWS: Mention the signature change.
33944         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33945         problem with signature.
33946         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33947         GETGROUPS_T is still useful for setgroups.
33948
33949         getgroups, getugroups: provide stubs for mingw
33950         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33951         * lib/getugroups.c (getugroups): Likewise.
33952         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33953         function.  Modernize replacement scheme.
33954         (gl_PREREQ_GETGROUPS): Delete.
33955         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33956         * modules/getgroups (configure.ac): Declare witness.
33957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33958         * modules/unistd (Depends-on): Substitute witness.
33959         * lib/unistd.in.h (getgroups): Declare replacement.
33960
33961         getgroups: avoid calling exit
33962         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33963         drop xalloc.
33964         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33965         dependencies.
33966         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33967         exiting, in the rare case of malloc failure.
33968
33969         getgroups: fix logic error
33970         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33971         has more than 20 groups.
33972         * modules/getgroups-tests: New test.
33973         * tests/test-getgroups.c: New file.
33974
33975 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33976
33977         * tests/test-base64.c: Improve.
33978
33979 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33980
33981         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33982         Blake <ebb9@byu.net>.
33983
33984 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33985
33986         * tests/test-xvasprintf.c: Add %s%s related checks.
33987
33988 2009-11-12  Eric Blake  <ebb9@byu.net>
33989
33990         version-etc: match standards.texi style
33991         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33992         and use <> only for URLs.
33993
33994 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33995
33996         fts: do not fail on a submount during traversal
33997         * lib/fts.c (fts_build): Read the stat info again after opening
33998         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33999         Original report at http://bugzilla.redhat.com/501848.
34000
34001 2009-11-12  Jim Meyering  <meyering@redhat.com>
34002
34003         bootstrap: sync from coreutils
34004         * build-aux/bootstrap (bootstrap_epilogue): New function.
34005         Use git_modules_config in one more place.  This make bootstrap's
34006         --gnulib-srcdir option more useful for testing.
34007
34008         bootstrap: generalize autoheader check
34009         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34010         AC_CONFIG_HEADERS.
34011
34012 2009-11-11  Eric Blake  <ebb9@byu.net>
34013
34014         mkfifoat: use new modules for Solaris and BSD bugs
34015         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34016         * lib/mkfifoat.c (mknodat): Split...
34017         * lib/mknodat.c (mknodat): ...into new file.
34018         * modules/mkfifoat (Files): Ship new file.
34019         (Depends-on): Add mkfifo, mknod.
34020         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34021         (Depends-on): Add symlink.
34022         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34023         redundant with test_mkfifo.h.
34024         (do_mkfifoat, do_mknodat): New helpers.
34025
34026         mknod: new module
34027         * modules/mknod: New file.
34028         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34029         * lib/mknod.c (mknod): Likewise.
34030         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34031         defaults.
34032         * modules/sys_stat (Makefile.am): Substitute them.
34033         * lib/sys_stat.in.h (mknod): Declare replacement.
34034         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34035         Document it.
34036         * doc/posix-functions/mknod.texi (mknod): Likewise.
34037         * modules/mknod-tests: New test.
34038         * tests/test-mknod.c: Likewise.
34039
34040         mkfifo: new module
34041         * modules/mkfifo: New file.
34042         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34043         * lib/mkfifo.c (mkfifo): Likewise.
34044         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34045         defaults.
34046         * modules/sys_stat (Makefile.am): Substitute them.
34047         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34048         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34049         Document it.
34050         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34051         * modules/mkfifo-tests: New test.
34052         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34053         from test-mkfifoat.c.
34054         * tests/test-mkfifo.c: New file.
34055
34056         readlink: detect FreeBSD bug
34057         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34058         slash on symlink.
34059         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34060         * tests/test-readlink.h (test_readlink): Enhance test.
34061
34062         symlink: detect FreeBSD bug
34063         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34064         slash on symlink.
34065         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34066         * tests/test-symlink.h (test_symlink): Enhance test.
34067
34068 2009-11-10  Eric Blake  <ebb9@byu.net>
34069
34070         link: detect FreeBSD bug
34071         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34072         symlink.
34073         * doc/posix-functions/link.texi (link): Document the bug.
34074         * tests/test-link.h (test_link): Enhance test.
34075         * tests/test-linkat.c (main): Update caller.
34076
34077         unlink, remove: detect FreeBSD bug
34078         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34079         slash on symlink.
34080         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34081         * doc/posix-functions/remove.texi (remove): Likewise.
34082         * tests/test-unlink.h (test_unlink): Enhance test.
34083         * tests/test-remove.c (main): Likewise.
34084
34085 2009-11-09  Eric Blake  <ebb9@byu.net>
34086
34087         rename: detect FreeBSD bug
34088         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34089         slash on symlink.
34090         * modules/renameat-tests (Depends-on): Add filenamecat.
34091         * tests/test-rename.h (test_rename): Allow one more errno.
34092         * tests/test-renameat.c (main): Likewise.
34093         * doc/posix-functions/rename.texi (rename): Document the bug.
34094
34095         open: detect FreeBSD bug
34096         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34097         symlink.
34098         * doc/posix-functions/open.texi (open): Document the bug.
34099         * doc/posix-functions/utimes.texi (utimes): Likewise.
34100         * tests/test-open.h (test_open): Add parameters, and test symlink
34101         handling.
34102         * tests/test-open.c (main): Adjust caller.
34103         * tests/test-fcntl-safer.c (main): Likewise.
34104         * modules/open-tests (Depends-on): Add stdbool, symlink.
34105         * modules/fcntl-safer-tests (Depends-on): Likewise.
34106         * tests/test-openat.c (main): Add test-open tests.
34107
34108         stat: detect FreeBSD bug
34109         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34110         symlink.
34111         * doc/posix-functions/stat.texi (stat): Document the bug.
34112         * tests/test-stat.h (test_stat_func): Add argument.
34113         * tests/test-stat.c (main): Adjust caller.
34114         * tests/test-fstatat.c (main): Likewise.
34115         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34116         Reported by Jim Meyering.
34117
34118 2009-11-09  James Youngman  <jay@gnu.org>
34119
34120         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34121         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34122
34123 2009-11-08  Jim Meyering  <meyering@redhat.com>
34124
34125         utimens: remove invalid futimesat call
34126         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34127         It used the file descriptor of the target file as the DIR_FD
34128         parameter and NULL as the file name.  That caused failure with
34129         errno == EFAULT on FreeBSD-8.0-rc2
34130
34131 2009-11-07  Eric Blake  <ebb9@byu.net>
34132
34133         fflush, freadseek: use fseeko, not fseek
34134         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34135         (clear_ungetc_buffer): Avoid potential problems on large files.
34136         * lib/freadseek.c (freadseek): Likewise.
34137         * modules/freadseek (Depends-on): Add fseeko.
34138         * modules/fseek (configure.ac): Set a witness.
34139         * tests/test-fflush.c (main): Use fseeko.
34140         * tests/test-fpurge.c (fseek): Disable link warning.
34141         * tests/test-freadable.c (fseek): Likewise.
34142         * tests/test-freading.c (fseek): Likewise.
34143         * tests/test-fseeko.c (fseek): Likewise.
34144         * tests/test-ftell.c (fseek): Likewise.
34145         * tests/test-ftello.c (fseek): Likewise.
34146         * tests/test-fwritable.c (fseek): Likewise.
34147         * tests/test-fwriting.c (fseek): Likewise.
34148
34149 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34150
34151         * modules/memchr (Depends-on): Drop getpagesize dependency.
34152
34153 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34154
34155         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34156         Reported by Ludovic Courtès.
34157         * build-aux/pmccabe2html: Improve example usage.
34158         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34159
34160 2009-11-06  Jim Meyering  <meyering@redhat.com>
34161
34162         do-release-commit-and-tag: New module.
34163         Automate the release-commit and tag process.
34164         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34165         * modules/do-release-commit-and-tag: New file.
34166         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34167
34168 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34169
34170         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34171         because test-select.c uses inet_pton.
34172
34173 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34174
34175         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34176         GETADDRINFO_LIB.  Bump serial number.
34177         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34178         Suggested by Eric Blake <ebb9@byu.net>.
34179
34180 2009-11-05  Eric Blake  <ebb9@byu.net>
34181
34182         strtod: detect darwin bug
34183         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34184         Reported by Leo Davis.
34185
34186         freopen-safer: new module
34187         * modules/freopen-safer: New module.
34188         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34189         * lib/freopen-safer.c (freopen_safer): New file.
34190         * lib/stdio-safer.h (freopen_safer): New declaration.
34191         * lib/stdio--.h (freopen): New override.
34192         * MODULES.html.sh (File stream based Input/Output): Mention it.
34193         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34194         freopen-safer module.
34195         * doc/posix-functions/stderr.texi (stderr): Likewise.
34196         * doc/posix-functions/stdin.texi (stdin): Likewise.
34197         * doc/posix-functions/stdout.texi (stdout): Likewise.
34198         * modules/freopen-safer-tests: New test.
34199         * tests/test-reopen-safer.c: New file.
34200
34201 2009-11-05  Jim Meyering  <meyering@redhat.com>
34202
34203         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34204         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34205
34206 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34207
34208         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34209
34210 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34211
34212         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34213
34214 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34215
34216         Fix link error.
34217         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34218         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34219
34220 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34221
34222         * tests/test-func.c: Also test value of __func__.
34223
34224 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34225
34226         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34227         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34228
34229 2009-11-05  Bruno Haible  <bruno@clisp.org>
34230
34231         Fix link error.
34232         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34233         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34234         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34235
34236 2009-11-05  Bruno Haible  <bruno@clisp.org>
34237
34238         Tests for module 'inet_pton'.
34239         * modules/inet_pton-tests: New file.
34240         * tests/test-inet_pton.c: New file.
34241
34242 2009-11-05  Bruno Haible  <bruno@clisp.org>
34243
34244         Tests for module 'inet_ntop'.
34245         * modules/inet_ntop-tests: New file.
34246         * tests/test-inet_ntop.c: New file.
34247
34248 2009-11-04  Eric Blake  <ebb9@byu.net>
34249
34250         stdlib-safer: wrap all mkstemp variants
34251         * modules/mkostemp (configure.ac): Set witness.
34252         * modules/mkostemps (configure.ac): Likewise.
34253         * modules/mkstemps (configure.ac): Likewise.
34254         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34255         (mkstemps_safer): Wrap more functions.
34256         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34257         wrapping.
34258         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34259         (mkstemps_safer): Implement the wrappers.
34260
34261         mkstemps, mkostemps: new modules
34262         * modules/mkostemps: New module.
34263         * modules/mkstemps: Likewise.
34264         * lib/mkostemps.c (mkostemps): New file.
34265         * lib/mkstemps.c (mkstemps): Likewise.
34266         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34267         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34269         * modules/stdlib (Makefile.am): Substitute them.
34270         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34271         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34272         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34273         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34274         * MODULES.html.sh (File system functions): Mention them.
34275
34276         tempname: resync from glibc
34277         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34278         same values for __GT_FILE as glibc.  Abort even when assertions
34279         are disabled.
34280         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34281         match its value otherwise.  Allow idempotent inclusion.
34282         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34283         * lib/mkostemp.c (mkostemp): Likewise.
34284         * lib/mkstemp.c (mkstemp): Likewise.
34285         * lib/tmpfile.c (tmpfile): Likewise.
34286         * NEWS: Document this.
34287
34288         utimens: fix use of futimens on older Linux
34289         * lib/utimens.c (fdutimens): Use updated, rather than original,
34290         timespec to avoid bug in older Linux kernel.
34291         Reported by Simon Josefsson.
34292
34293 2009-11-04  Bruno Haible  <bruno@clisp.org>
34294
34295         Make num_processors more flexible and consistent.
34296         * lib/nproc.h (enum nproc_query): New type.
34297         (num_processors): Add a 'query' argument.
34298         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34299         (num_processors): Add a 'query' argument. Test the value of the
34300         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34301         mingw, count the number of CPUs available for the current process.
34302         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34303         Check for sched_getaffinity and sched_getaffinity_np.
34304         * modules/nproc (Depends-on): Add c-ctype, extensions.
34305         * NEWS: Mention the change.
34306
34307 2009-11-03  Bruno Haible  <bruno@clisp.org>
34308
34309         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34310
34311 2009-11-03  Jim Meyering  <meyering@redhat.com>
34312
34313         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34314         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34315         if it is defined.
34316
34317 2009-11-02  Eric Blake  <ebb9@byu.net>
34318
34319         mktime, timegm: share common declaration
34320         * lib/mktime-internal.h: New file.
34321         * lib/mktime.c: Use it rather than open-coding a declaration.
34322         * lib/timegm.c: Likewise.
34323         * modules/mktime (Files): Ship it.
34324         * modules/timegm (Files): Likewise.
34325         Suggested by Bruno Haible.
34326
34327         test-update-copyright: update test to match script changes
34328         * tests/test-update-copyright.sh: Avoid hard-coding perl
34329         location.  Don't update *.bak created by earlier runs.
34330
34331 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34332             Simon Josefsson  <simon@josefsson.org>
34333             Bruno Haible  <bruno@clisp.org>
34334
34335         Fix link error on Solaris 8.
34336         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34337         also in libnsl. Define also INET_PTON_LIB.
34338         * modules/inet_pton (Link): New section.
34339
34340 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34341             Bruno Haible  <bruno@clisp.org>
34342
34343         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34344         * modules/inet_ntop (Link): New section.
34345         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34346
34347 2009-11-02  Eric Blake  <ebb9@byu.net>
34348
34349         maint: avoid compiler warnings in m4 macros
34350         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34351         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34352
34353 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34354
34355         * m4/pmccabe2html.m4: Remove file.
34356         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34357         function.  Change maintainer.
34358         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34359         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34360         Courtès).
34361
34362 2009-10-31  Eric Blake  <ebb9@byu.net>
34363
34364         fseeko: fix m4 regression
34365         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34366         regression from 2009-10-27.
34367         Reported by Ralf Wildenhues.
34368
34369 2009-10-31  Jim Meyering  <meyering@redhat.com>
34370
34371         inttostr: aesthetics and improved (compile-time) safety
34372         Define inttype_is_signed rather than inttype_is_unsigned,
34373         since the sole use is via "#if inttype_is_signed".
34374         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34375         inttype_is_unsigned.
34376         * lib/offtostr.c (inttype_is_signed): Likewise.
34377         * lib/uinttostr.c (inttype_is_signed): Likewise.
34378         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34379         * lib/inttostr.c (inttostr): Use verify to cross-check the
34380         inttype_is_signed value and the signedness of the actual type.
34381         * modules/inttostr (Depends-on): Add verify.
34382
34383 2009-10-30  Eric Blake  <ebb9@byu.net>
34384
34385         build: avoid compiler warnings
34386         * lib/fchmodat.c (lchmod): Mark unused variables.
34387         * lib/getopt.c (_getopt_initialize): Likewise.
34388         * lib/mktime.c (__mktime_internal): Provide prototype.
34389         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34390         older gcc that do not understand #pragma GCC diagnostic.
34391         * lib/uinttostr.c (inttype_is_unsigned): Define.
34392         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34393
34394 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34395
34396         stat: fix compilation on AIX
34397         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34398         only see struct stat64.
34399
34400 2009-10-30  Eric Blake  <ebb9@byu.net>
34401
34402         exclude: make more robust
34403         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34404         rather than masking a coding bug.
34405         Suggested by Bruno Haible.
34406
34407 2009-10-30  Jim Meyering  <meyering@redhat.com>
34408
34409         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34410         Rather than putting #!/usr/bin/perl on the first line,
34411         start with a variant of what's recommended by "man perlrun" that
34412         invokes the first "perl" program from your shell's search path.
34413         * build-aux/gitlog-to-changelog: Replace #!... as above.
34414         Add a "Local Variables" perl mode setting.
34415         Prompted by a patch from Ludovic Courtès.
34416         Improved by Eric Blake.
34417         * build-aux/useless-if-before-free: Likewise.
34418         * build-aux/announce-gen: Likewise.
34419         * build-aux/update-copyright: Likewise.
34420
34421 2009-10-29  Eric Blake  <ebb9@byu.net>
34422
34423         filenamecat-lgpl: adjust clients
34424         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34425         filenamecat.
34426         * modules/renameat (Depends-on): Likewise.
34427
34428         filenamecat: split into filenamecat-lgpl
34429         * modules/filenamecat-lgpl: New module.
34430         * modules/filenamecat (Files): Move library-safe files into
34431         filenamecat-lgpl.
34432         (Depends-on): Add filenamecat-lgpl.
34433         (configure.ac): Declare witness.
34434         * lib/filenamecat.h (file_name_concat): Only declare when using
34435         GPL module.
34436         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34437         Move...
34438         * lib/filenamecat-lgpl.c: ...into new file.
34439         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34440         (gl_FILE_NAME_CONCAT): Use it.
34441         * MODULES.html.sh (File system functions): Mention new module.
34442
34443         argp: avoid memory leak
34444         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34445         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34446         base_name, since the latter malloc()s and can call exit().
34447         Leak introduced 2006-07-03.
34448
34449         dirname-lgpl: adjust clients that don't need full dirname
34450         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34451         * modules/filenamecat (Depends-on): Likewise.
34452         * modules/linkat (Depends-on): Likewise.
34453         * modules/mkancesdirs (Depends-on): Likewise.
34454         * modules/mkdir (Depends-on): Likewise.
34455         * modules/openat (Depends-on): Likewise.
34456         * modules/savewd (Depends-on): Likewise.
34457         * modules/rename (Depends-on): Likewise.
34458         (License): Relax license.
34459         * modules/mkdir-tests (Depends-on): Drop progname.
34460         (Makefile.am): Delete unneeded LDADD.
34461         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34462
34463         dirname: split into dirname-lgpl
34464         * modules/dirname-lgpl: New module.
34465         * modules/dirname (Files): Move library-safe files into
34466         dirname-lgpl.
34467         (Depends-on): Add dirname-lgpl.
34468         (configure.ac): Declare witness.
34469         * modules/double-slash-root (License): Relax license.
34470         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34471         module.
34472         * lib/dirname.c (dir_len, mdir_name): Move...
34473         * lib/dirname-lgpl.c: ...into new file.
34474         * lib/basename.c (last_component, base_len): Move...
34475         * lib/basename-lgpl.c: ...into new file.
34476         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34477         (gl_DIRNAME): Use it.
34478         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34479         Mention new module.
34480         * modules/dirname-tests (Depends-on): Add progname.
34481         * tests/test-dirname.c (program_name): Delete.
34482
34483         mkdir: make safe for libraries
34484         * modules/mkdir (Depends-on): Drop xalloc.
34485         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34486         exit.
34487
34488         tests: avoid some compiler warnings
34489         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34490         literals.
34491         * tests/test-memchr.c (main): Avoid type mismatch.
34492         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34493         * tests/test-base64.c (main): Likewise.
34494         * tests/test-getdelim.c (main): Likewise.
34495         * tests/test-gethostname.c (main): Likewise.
34496         * tests/test-getline.c (main): Likewise.
34497         * tests/test-netinet_in.c (main): Likewise.
34498         * tests/test-select.c (open_server_socket, main): Likewise.
34499         * tests/test-select-stdin.c (main): Likewise.
34500         * tests/test-sockets.c (main): Likewise.
34501         * tests/test-strsignal.c (main): Likewise.
34502         * tests/test-sys_select.c (main): Likewise.
34503         * tests/test-sys_socket.c (main): Likewise.
34504         * tests/test-u64.c (main): Likewise.
34505         * tests/test-xfprintf-posix.c (main): Likewise.
34506         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34507
34508         sockets: avoid compiler warning
34509         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34510
34511         maint: detect usage(1) and other suspicious exits
34512         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34513
34514 2009-10-29  Jim Meyering  <meyering@redhat.com>
34515
34516         timespec: long-to-int truncation could make timespec_cmp malfunction
34517         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34518         a multiple of 2^32 nanoseconds as no difference.
34519
34520 2009-10-28  Jim Meyering  <meyering@redhat.com>
34521
34522         fprintftime: wrap macro code argument in "do {...} while(0)"
34523         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34524         cpy macro must be a statement that can be followed by a semicolon.
34525         Now that the else clause contains a comment and is hence longer
34526         than one line, I require curly braces.  That in turn requires
34527         that we wrap this code block in the standard do...while(0).
34528
34529         fprintftime: remove stray semicolon from previous change
34530         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34531
34532         fprintftime: avoid a warning about ignored fwrite return value
34533         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34534         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34535         that is unsafe.
34536         * modules/fprintftime (Depends-on): Add ignore-value.
34537
34538         exclude: avoid an unwarranted warning
34539         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34540
34541 2009-10-27  Eric Blake  <ebb9@byu.net>
34542
34543         fseek: avoid compilation failure when fflush is replaced
34544         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34545         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34546         module is in use.
34547         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34548         module is not in use; since REPLACE_FSEEK worked otherwise.
34549         (GNULIB_FTELLO): Likewise for ftell.
34550         Reported by Ian Beckwith and others.
34551
34552 2009-10-27  Bruno Haible  <bruno@clisp.org>
34553
34554         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34555         Reported by Jim Meyering.
34556
34557 2009-10-27  Jim Meyering  <jim@meyering.net>
34558             Bruno Haible  <bruno@clisp.org>
34559
34560         Avoid warning despite dropping the return value of fwrite.
34561         * lib/unicodeio.c: Include ignore-value.h.
34562         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34563         * modules/unicodeio (Depends-on): Add ignore-value.
34564
34565 2009-10-26  Eric Blake  <ebb9@byu.net>
34566
34567         areadlinkat: fix fallback path
34568         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34569         pointer and zero.
34570
34571 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34572
34573         Use a better IO block size for modern systems
34574         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34575         * lib/md2.c: Likewise.
34576         * lib/md4.c: Likewise.
34577         * lib/md5.c: Likewise.
34578         * lib/sha1.c: Likewise.
34579         * lib/sha256.c: Likewise.
34580         * lib/sha512.c: Likewise.
34581
34582 2009-10-22  Eric Blake  <ebb9@byu.net>
34583
34584         tests: avoid several compiler warnings
34585         * tests/test-getcwd.c (main): Avoid buffer underflow.
34586         * tests/test-getdate.c (main): String literals are not safe with
34587         putenv, so use setenv.  Declare unused argument.
34588         * modules/getdate-tests (Depends-on): Add setenv.
34589         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34590         problems with string literals in char *.
34591         * tests/test-hash.c (main): Avoid shadowing declaration.
34592         (insert_new): Treat string literals as char const *.
34593         * tests/test-getopt.h (test_getopt): Likewise.
34594         (getopt_loop): Alter types to minimize casting elsewhere.
34595         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34596         (test_getopt_long_posix): Likewise.
34597         (do_getopt_long): Add wrapper to minimize casting.
34598         * tests/test-atexit.c (clear_temp_file): Use void.
34599         * tests/test-areadlink-with-size.c (main): Declare unused
34600         arguments.
34601         * tests/test-areadlink.c (main): Likewise.
34602         * tests/test-areadlinkat-with-size.c (main): Likewise.
34603         * tests/test-areadlinkat.c (main): Likewise.
34604         * tests/test-canonicalize-lgpl.c (main): Likewise.
34605         * tests/test-canonicalize.c (main): Likewise.
34606         * tests/test-dirent-safer.c (main): Likewise.
34607         * tests/test-dirname.c (main): Likewise.
34608         * tests/test-dup2.c (main): Likewise.
34609         * tests/test-fchdir.c (main): Likewise.
34610         * tests/test-fcntl-h.c (main): Likewise.
34611         * tests/test-fcntl-safer.c (main): Likewise.
34612         * tests/test-fdopendir.c (main): Likewise.
34613         * tests/test-fdutimensat.c (main): Likewise.
34614         * tests/test-fflush.c (main): Likewise.
34615         * tests/test-filenamecat.c (main): Likewise.
34616         * tests/test-filevercmp.c (main): Likewise.
34617         * tests/test-fopen-safer.c (main): Likewise.
34618         * tests/test-fopen.c (main): Likewise.
34619         * tests/test-fpending.c (main): Likewise.
34620         * tests/test-fpurge.c (main): Likewise.
34621         * tests/test-freading.c (main): Likewise.
34622         * tests/test-fstatat.c (main): Likewise.
34623         * tests/test-fsync.c (main): Likewise.
34624         * tests/test-futimens.c (main): Likewise.
34625         * tests/test-getndelim2.c (main): Likewise.
34626         * tests/test-gettimeofday.c (main): Likewise.
34627         * tests/test-getopt.c (main): Likewise.
34628         * tests/test-i-ring.c (main): Likewise.
34629         * tests/test-inttypes.c (main): Likewise.
34630         * tests/test-link.c (main): Likewise.
34631         * tests/test-lstat.c (main): Likewise.
34632         * tests/test-math.c (main): Likewise.
34633         * tests/test-md5.c (main): Likewise.
34634         * tests/test-memchr2.c (main): Likewise.
34635         * tests/test-memrchr.c (main): Likewise.
34636         * tests/test-mkdir.c (main): Likewise.
34637         * tests/test-mkdirat.c (main): Likewise.
34638         * tests/test-mkfifoat.c (main): Likewise.
34639         * tests/test-open.c (main): Likewise.
34640         * tests/test-openat-safer.c (main): Likewise.
34641         * tests/test-openat.c (main): Likewise.
34642         * tests/test-quotearg.c (main): Likewise.
34643         * tests/test-rawmemchr.c (main): Likewise.
34644         * tests/test-readlink.c (main): Likewise.
34645         * tests/test-remove.c (main): Likewise.
34646         * tests/test-rename.c (main): Likewise.
34647         * tests/test-renameat.c (main): Likewise.
34648         * tests/test-rmdir.c (main): Likewise.
34649         * tests/test-sha1.c (main): Likewise.
34650         * tests/test-signal.c (main): Likewise.
34651         * tests/test-sigaction.c (main): Likewise.
34652         * tests/test-stat.c (main): Likewise.
34653         * tests/test-stat-time.c (main): Likewise.
34654         * tests/test-stddef.c (main): Likewise.
34655         * tests/test-stdint.c (main): Likewise.
34656         * tests/test-stdio.c (main): Likewise.
34657         * tests/test-stdlib.c (main): Likewise.
34658         * tests/test-strchrnul.c (main): Likewise.
34659         * tests/test-strerror.c (main): Likewise.
34660         * tests/test-string.c (main): Likewise.
34661         * tests/test-strtod.c (main): Likewise.
34662         * tests/test-strverscmp.c (main): Likewise.
34663         * tests/test-symlink.c (main): Likewise.
34664         * tests/test-symlinkat.c (main): Likewise.
34665         * tests/test-sys_stat.c (main): Likewise.
34666         * tests/test-sys_time.c (main): Likewise.
34667         * tests/test-time.c (main): Likewise.
34668         * tests/test-unistd.c (main): Likewise.
34669         * tests/test-unlink.c (main): Likewise.
34670         * tests/test-unlinkat.c (main): Likewise.
34671         * tests/test-utimens.c (main): Likewise.
34672         * tests/test-utimensat.c (main): Likewise.
34673         * tests/test-version-etc.c (main): Likewise.
34674         * tests/test-wchar.c (main): Likewise.
34675         * tests/test-wctype.c (main): Likewise.
34676         * tests/test-xprintf-posix.c (main): Likewise.
34677         * tests/test-posixtm.c (main): Likewise.
34678         (STREQ): Delete unused macro.
34679         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34680         shadowed variables.
34681         * tests/test-memchr.c (main): Likewise.
34682
34683 2009-10-21  Eric Blake  <ebb9@byu.net>
34684
34685         areadlinkat: avoid failure on older glibc
34686         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34687         rather than mis-comparing 0 against FUNC_RESULT of char*.
34688
34689 2009-10-21  Bruno Haible  <bruno@clisp.org>
34690
34691         * modules/stpncpy (License): Relicense under LGPLv2+.
34692         Reported by David Lutterkort <lutter@redhat.com>.
34693
34694 2009-10-20  Eric Blake  <ebb9@byu.net>
34695
34696         utimensat: work around Solaris 9 bug
34697         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34698         has trailing slash bugs.
34699         * tests/test-lutimens.h (test_lutimens): Enhance test.
34700         * tests/test-utimens.h (test_utimens): Likewise.
34701         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34702         * doc/posix-functions/utimes.texi (utimes): Likewise.
34703         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34704         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34705         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34706         * doc/posix-functions/futimens.texi (futimens): Likewise.
34707
34708         fdutimensat: new module
34709         * modules/fdutimensat: New file.
34710         * lib/fdutimensat.c (fdutimensat): Likewise.
34711         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34712         * MODULES.html.sh (File system functions): Mention module.
34713         * modules/fdutimensat-tests: New test.
34714         * tests/test-fdutimensat.c: Likewise.
34715
34716         doc: regenerate INSTALL
34717         * doc/INSTALL: Reflect recent autoconf update.
34718         * doc/INSTALL.ISO: Likewise.
34719         * doc/INSTALL.UTF-8: Likewise.
34720
34721 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34722
34723         acl: warn if ACL support is not detected
34724         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34725
34726 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34727
34728         * lib/nproc.h: Add extern "C" block for C++.
34729
34730 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34731             Bruno Haible  <bruno@clisp.org>
34732
34733         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34734         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34735         * doc/posix-functions/isalpha.texi: Likewise.
34736         * doc/posix-functions/isblank.texi: Likewise.
34737         * doc/posix-functions/iscntrl.texi: Likewise.
34738         * doc/posix-functions/isdigit.texi: Likewise.
34739         * doc/posix-functions/isgraph.texi: Likewise.
34740         * doc/posix-functions/islower.texi: Likewise.
34741         * doc/posix-functions/isprint.texi: Likewise.
34742         * doc/posix-functions/ispunct.texi: Likewise.
34743         * doc/posix-functions/isspace.texi: Likewise.
34744         * doc/posix-functions/isupper.texi: Likewise.
34745         * doc/posix-functions/isxdigit.texi: Likewise.
34746
34747 2009-10-18  Bruno Haible  <bruno@clisp.org>
34748
34749         Tests for module 'isblank'.
34750         * modules/isblank-tests: New file.
34751         * tests/test-isblank.c: New file.
34752
34753         New module 'isblank'.
34754         * lib/isblank.c: New file.
34755         * m4/isblank.m4: New file.
34756         * modules/isblank: New file.
34757         * doc/posix-functions/isblank.texi: Mention the new module.
34758
34759 2009-10-18  Bruno Haible  <bruno@clisp.org>
34760
34761         New module 'ctype'.
34762         * lib/ctype.in.h: New file.
34763         * m4/ctype.m4: New file.
34764         * modules/ctype: New file.
34765         * doc/posix-headers/ctype.texi: Mention the new module.
34766
34767 2009-10-18  Jim Meyering  <meyering@redhat.com>
34768
34769         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34770         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34771         right after its initialization, rather than farther down.
34772         Keeping these in close proximity makes it easier to ensure
34773         that each such variable is initialized.  E.g.,
34774
34775             LIB_CLOCK_GETTIME=
34776             AC_SUBST([LIB_CLOCK_GETTIME])
34777
34778         This change also increments these serial numbers.
34779         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34780         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34782
34783 2009-10-18  Bruno Haible  <bruno@clisp.org>
34784
34785         Don't let environment variables perturb build.
34786         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34787         (gl_PREREQ_GETHRXTIME): ... not here.
34788
34789 2009-10-18  Bruno Haible  <bruno@clisp.org>
34790
34791         Avoid symlink attack in localcharset module.
34792         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34793         (O_NOFOLLOW): Define fallback.
34794         (get_charset_aliases): Don't open the file if it is a symbolic link.
34795         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34796         gl_FCNTL_H.
34797         (gl_FCNTL_H): Require it.
34798         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34799         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34800         Reported by Fergal Glynn <fglynn@veracode.com>.
34801
34802 2009-10-18  Bruno Haible  <bruno@clisp.org>
34803
34804         Implement nproc for mingw.
34805         * lib/nproc.c: Include <windows.h>
34806         (num_processors): On native Windows platforms, try GetSystemInfo.
34807
34808 2009-10-18  Bruno Haible  <bruno@clisp.org>
34809
34810         Implement nproc for IRIX.
34811         * lib/nproc.c: Include <sys/sysmp.h>.
34812         (num_processors): On IRIX systems, try sysmp.
34813         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34814
34815 2009-10-18  Bruno Haible  <bruno@clisp.org>
34816
34817         Implement nproc for HP-UX.
34818         * lib/nproc.c: Include <sys/pstat.h>
34819         (num_processors): On HP-UX systems, try pstat_getdynamic.
34820         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34821         pstat_getdynamic.
34822
34823 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34824             Bruno Haible  <bruno@clisp.org>
34825
34826         Implement nproc for NetBSD, OpenBSD.
34827         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34828         (ARRAY_SIZE): New macro.
34829         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34830         * m4/nproc.m4: New file.
34831         * modules/nproc (Files): Add m4/nproc.m4.
34832         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34833         (Makefile.am): Instead, augment lib_SOURCES.
34834
34835 2009-10-18  Bruno Haible  <bruno@clisp.org>
34836
34837         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34838         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34839         sys/param.h.
34840
34841 2009-10-16  Eric Blake  <ebb9@byu.net>
34842
34843         utimensat: new module
34844         * modules/utimensat: New file.
34845         * lib/utimensat.c (utimensat): Likewise.
34846         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34847         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34848         so we can work around Linux bugs.
34849         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34850         * modules/sys_stat (Makefile.am): Substitute them.
34851         * lib/sys_stat.in.h (utimensat): Declare it.
34852         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34853         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34854         * modules/utimensat-tests: New test.
34855         * tests/test-utimensat.c: Likewise.
34856
34857         utimens: let lutimens work on non-symlinks
34858         * lib/utimens.c (lutimens): Fall back to utimens rather than
34859         failing with ENOSYS, when file is not a symlink.
34860         (utimens): Reduce redirection.
34861         * tests/test-lutimens.h (test_lutimens): Update test to cover
34862         non-symlinks.
34863         * tests/test-utimens.h (test_utimens): Update test to cover
34864         symlinks.
34865         * tests/test-utimens.c (main): Update caller.
34866
34867         utimens: cache whether utimensat syscall works
34868         * lib/utimens.c (utimensat_works_really): New cache variable.
34869         (fdutimens, lutimens): Use it to avoid failing syscall.
34870
34871         test-stat-time, test-utimens: improve portability
34872         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34873         ext4 on alpha, and for cygwin.
34874         * tests/test-utimens-common.h: New file.
34875         (nap): Factor delays into single function.
34876         * tests/test-lutimens.h (test_lutimens): Use new header.
34877         * tests/test-futimens.h (test_futimens): Likewise.
34878         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34879         timestamps to occur from same machine, as was done previously for
34880         test_utimens.
34881         * modules/utimens-tests (Files): Ship new file.
34882         * modules/futimens-tests (Files): Likewise.
34883         Reported in part by Jim Meyering.
34884
34885         sys_stat: sort replacement declarations
34886         * lib/sys_stat.in.h: Sort declarations.
34887         * lib/futimens.c (futimens): Fix typo.
34888
34889 2009-10-15  Jim Meyering  <meyering@redhat.com>
34890
34891         don't let environment settings perturb build
34892         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34893         could cause a configure-time and/or build-time malfunction.
34894         Typically, a configure-time function-in-library test is performed
34895         via code like this:
34896
34897           LIB_VAR=
34898           AC_SUBST([LIB_VAR])
34899           prefix_saved_LIBS=$LIBS
34900             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34901                        [test "$ac_cv_search_FUNC" = "none required" ||
34902                         LIB_VAR=$ac_cv_search_FUNC])
34903           LIBS=$prefix_saved_LIBS
34904
34905         However, in each of the files affected by this change, the LIB_VAR=
34906         initialization was omitted.  Thus, when set in the environment, its
34907         value would propagate into generated Makefiles when FUNC is not found
34908         in LIB_NAME.
34909         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34910         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34912
34913 2009-10-14  Eric Blake  <ebb9@byu.net>
34914
34915         fchdir: avoid infinite recursion in mingw
34916         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34917         recursing.
34918
34919         test-stat-time: port to mingw
34920         * tests/test-stat-time.c (force_unlink): Return a value.
34921         (test_ctime) [W32]: Fix compilation error.
34922         (nap): Don't call usleep with too large an argument.  Use
34923         force_unlink.
34924         * doc/pastposix-functions/usleep.texi (usleep): Document the
34925         portability issue.
34926
34927 2009-10-13  Jim Meyering  <meyering@redhat.com>
34928
34929         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34930         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34931         * modules/pipe-filter-ii: Likewise.
34932         * modules/sys_socket-tests: Likewise.
34933         * modules/tsearch-tests: Likewise.
34934         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34935         (check): Depend on it.
34936
34937 2009-10-12  Eric Blake  <ebb9@byu.net>
34938
34939         utimens-tests: port to NFS file systems
34940         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34941         comparisons to avoid spurious failures from timestamp drift
34942         between NFS machines.
34943
34944 2009-10-12  Eric Blake  <ebb9@byu.net>
34945
34946         stat-time-tests: minor cleanups
34947         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34948         * tests/test-stat-time.c (nap): Separate assignment from call.
34949         Suggested by Paolo Bonzini and Bruno Haible.
34950
34951         sys_stat: guarantee struct timespec
34952         * lib/sys_stat.in.h (includes): Always include <time.h>
34953         * modules/sys_stat (Depends-on): Add time.
34954         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34955         mode_t permission values.
34956         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34957         get at subsecond timestamps.
34958
34959 2009-10-10  Eric Blake  <ebb9@byu.net>
34960
34961         futimens: new module
34962         * modules/futimens: New file.
34963         * lib/futimens.c (futimens): Likewise.
34964         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34965         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34966         we can work around Linux bugs.
34967         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34968         * modules/sys_stat (Makefile.am): Substitute them.
34969         * lib/sys_stat.in.h (futimens): Declare it.
34970         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34971         * doc/posix-functions/futimens.texi (futimens): Likewise.
34972         * modules/futimens-tests: New test.
34973         * tests/test-futimens.c: Likewise.
34974
34975         utimens: introduce fdutimens
34976         * lib/utimens.h (fdutimens): New prototype.
34977         * lib/utimens.c (gl_futimens): Move guts...
34978         (fdutimens): ...to new interface.
34979         * tests/test-utimens.c (do_fdutimens): Use it.
34980
34981         utimens: add UTIME_NOW and UTIME_OMIT support
34982         * lib/utimens.c (validate_timespec, update_timespec): New helper
34983         functions.
34984         (gl_futimens, lutimens): Use them.
34985         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34986         stdbool, sys_stat.
34987         (Link): Mention resulting library dependency.
34988         * modules/utimecmp (Link): Likewise.
34989         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34990         (Makefile.am): Pick up library dependency.
34991         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34992         definition.
34993         * tests/test-sys_stat.c: Test the definitions.
34994         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34995         * NEWS: Document library dependency.
34996
34997         utimecmp: support symlink timestamps
34998         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34999         hashing when possible.  Use pathconf when available.
35000         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35001         * modules/utimecmp (Depends-on): Add lstat.
35002
35003         utimens: add lutimens interface
35004         * lib/utimens.c (lutimens): New function.
35005         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35006         * lib/utimens.h (lutimens): Declare new interface.
35007         * tests/test-utimens.c (main): Enhance test.
35008         * tests/test-lutimens.h (test_lutimens): New file.
35009         * modules/utimens-tests (Files): Distribute it.
35010         (Depends-on): Add symlink.
35011         (configure.ac): Check for usleep.
35012
35013         utimens: validate futimens usage
35014         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35015         fewer syscalls on failure later on.  Avoid compiler warning on
35016         mingw.
35017         * modules/utimens (Depends-on): Add dup2.
35018
35019         utimens: add test
35020         * modules/utimens-tests: New test.
35021         * tests/test-utimens.h: New file.
35022         * tests/test-futimens.h: Likewise.
35023         * tests/test-utimens.c: Likewise.
35024
35025         doc: mention timestamp portability issues
35026         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35027         instead.
35028         * doc/posix-functions/utime.texi (utime): Likewise.
35029         * doc/posix-functions/utimes.texi (utimes): Likewise.
35030         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35031         instead.
35032         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35033         module.
35034         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35035         Mention weakness with symlink timestamps.
35036         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35037         to utimensat/futimens instead.
35038         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35039
35040         test-dup2: enhance test
35041         * tests/test-dup2.c (main): Also check AT_FDCWD.
35042
35043         test-stat-time: avoid more spurious failures
35044         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35045         xfs; and avoid race if the two timestamps cross quantization edge.
35046
35047         relocatable: prefer 'file system' over 'filesystem'
35048         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35049         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35050         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35051         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35052         * lib/relocatable.c (compute_curr_prefix): Likewise.
35053
35054 2009-10-10  Jim Meyering  <meyering@redhat.com>
35055
35056         stat-time-tests: check for the usleep function
35057         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35058
35059 2009-10-10  Bruno Haible  <bruno@clisp.org>
35060
35061         * modules/xnanosleep: Put the Link section after the Include section.
35062
35063 2009-10-09  Eric Blake  <ebb9@byu.net>
35064
35065         dup2: work around FreeBSD 6.1 bug
35066         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35067         * doc/posix-functions/dup2.texi (dup2): Document it.
35068         Reported by Nelson H. F. Beebe and Jim Meyering.
35069
35070         test-stat-time: port to buggy NFS clients
35071         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35072         (test_ctime): Also skip test if mtime and ctime are skewed.
35073
35074         maint: prefer 'file system' over 'filesystem'
35075         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35076         * doc/posix-functions/lstat.texi (lstat): Likewise.
35077         * lib/file-has-acl.c (file_has_acl): Likewise.
35078         * lib/fwriteerror.c [TEST]: Likewise.
35079         * tests/test-areadlink.h (test_areadlink): Likewise.
35080         * tests/test-areadlinkat-with-size.c (main): Likewise.
35081         * tests/test-areadlinkat.c (main): Likewise.
35082         * tests/test-canonicalize-lgpl.c (main): Likewise.
35083         * tests/test-canonicalize.c (main): Likewise.
35084         * tests/test-fstatat.c (main): Likewise.
35085         * tests/test-linkat.c (main): Likewise.
35086         * tests/test-lstat.h (test_lstat_func): Likewise.
35087         * tests/test-mkdir.h (test_mkdir): Likewise.
35088         * tests/test-readlink.h (test_readlink): Likewise.
35089         * tests/test-remove.c (main): Likewise.
35090         * tests/test-rename.h (test_rename): Likewise.
35091         * tests/test-renameat.c (main): Likewise.
35092         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35093         * tests/test-symlink.h (test_symlink): Likewise.
35094         * tests/test-symlinkat.c (main): Likewise.
35095         * tests/test-unlink.h (test_unlink_func): Likewise.
35096         * tests/test-unlinkat.c (main): Likewise.
35097
35098         maint: make realtime library usage explicit
35099         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35100         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35101         * modules/settime (Link): Likewise.
35102         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35103
35104         test-stat-time: speed up execution
35105         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35106         warning on mingw.
35107         (nap): New helper function.
35108         (prepare_test): Use it to reduce sleep time.
35109         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35110         execution.
35111         * modules/stat-time-tests (configure.ac): Check for usleep.
35112
35113 2009-10-09  Jim Meyering  <meyering@redhat.com>
35114
35115         selinux-h: always use getfilecon wrappers
35116         * lib/getfilecon.c: New file.
35117         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35118         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35119         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35120         (fgetfilecon): Provide a stub.
35121         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35122         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35123         file unconditionally.
35124         When <selinux/selinux.h> is found, arrange to use wrappers.
35125         * modules/selinux-h (Files): Add getfilecon.c.
35126         (Makefile.am): Substitute include-next-related bits
35127         into the now-always-generated selinux/selinux.h file.
35128         * doc/glibc-functions/lgetfilecon.texi: New file.
35129         * doc/glibc-functions/fgetfilecon.texi: New file.
35130         * doc/glibc-functions/getfilecon.texi: New file.
35131         * doc/glibc-functions/getfilecon-desc.texi: New file.
35132         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35133         which to pull in the new files.
35134         * MODULES.html.sh (Misc): Add selinux-h.
35135
35136 2009-10-08  Jim Meyering  <meyering@redhat.com>
35137
35138         unistd: fix comment typo
35139         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35140
35141 2009-10-08  Eric Blake  <ebb9@byu.net>
35142
35143         areadlink: use SIZE_MAX consistently
35144         * modules/areadlink (Depends-on): Add stdint.
35145         * modules/areadlink-with-size (Depends-on): Likewise.
35146         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35147         gives NULL; drop sys/types, since unistd gives size_t; and add
35148         stdint for SIZE_MAX.
35149         (SIZE_MAX): Rely on headers.
35150         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35151         and add stdint.
35152         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35153         (SIZE_MAX): Likewise.
35154         (INITIAL_BUF_SIZE): Turn into enum.
35155         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35156
35157 2009-10-08  Jim Meyering  <meyering@redhat.com>
35158
35159         areadlinkat: avoid compilation failure
35160         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35161         Fix typo in comment.
35162
35163 2009-10-07  Eric Blake  <ebb9@byu.net>
35164
35165         areadlinkat-with-size: new module
35166         * modules/areadlinkat-with-size: New module.
35167         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35168         * lib/areadlink.h (areadlinkat): Declare it.
35169         * MODULES.html.sh (File system functions): Mention it.
35170         * modules/areadlinkat-with-size-tests: New test.
35171         * tests/test-areadlinkat-with-size.c: New file.
35172
35173         xreadlinkat: new module
35174         * modules/xreadlinkat: New module.
35175         * lib/xreadlinkat.c (xreadlinkat): New file.
35176         * lib/xreadlink.h (xreadlinkat): Declare it.
35177         * MODULES.html.sh (File system functions): Mention it.
35178
35179         areadlinkat: new module
35180         * lib/at-func.c (FUNC_FAIL): New define.
35181         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35182         * modules/areadlinkat: New module.
35183         * lib/linkat.c (areadlinkat): Move...
35184         * lib/areadlinkat.c (areadlinkat): ...to new file.
35185         * lib/areadlink.h (areadlinkat): Declare it.
35186         * modules/linkat (Depends-on): Add areadlinkat.
35187         * MODULES.html.sh (File system functions): Mention it.
35188         * modules/areadlinkat-tests: New test.
35189         * tests/test-areadlinkat.c: New file.
35190
35191         areadlink, areadlink-with-size: add tests
35192         * modules/areadlink-tests: New test.
35193         * modules/areadlink-with-size-tests: Likewise.
35194         * tests/test-areadlink.h: New file.
35195         * tests/test-areadlink.c: Likewise.
35196         * tests/test-areadlink-with-size.c: Likewise.
35197
35198         maint: minor cleanups
35199         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35200         _UNUSED_PARAMETER_ instead.
35201         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35202         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35203         * modules/linkat-tests (Files): Distribute test-link.h.
35204
35205         openat, utimens: whitespace cleanup
35206         * lib/openat.c: Prefer space throughout, rather than mix of 8
35207         spaces vs. tabs.
35208         * lib/at-func.c: Likewise.
35209         * lib/utimens.c: Likewise.
35210
35211         openat: avoid using wrong fd
35212         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35213         working directory chooses same fd.
35214         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35215
35216         mkdir, mkdirat: fix cygwin 1.5.x bug
35217         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35218         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35219         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35220         bug.
35221         (gl_PREREQ_MKDIR): Delete unused macro.
35222         * modules/mkdir (Files): Track file rename.
35223         (configure.ac): Update macro name.
35224         * modules/openat (Depends-on): Add mkdir.
35225         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35226
35227         mkdir, mkdirat: add tests
35228         * modules/mkdir-tests: New test.
35229         * tests/test-mkdir.h: New file.
35230         * tests/test-mkdir.c: Likewise.
35231         * tests/test-mkdirat.c: Likewise.
35232         * modules/openat-tests (Files): Add new files.
35233         (Makefile.am): Run new test.
35234
35235 2009-10-06  Eric Blake  <ebb9@byu.net>
35236
35237         doc: tweak *at function documentation
35238         * doc/posix-functions/faccessat.texi (faccessat): Mention
35239         known issue with replacement.
35240         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35241         * doc/posix-functions/linkat.texi (linkat): Likewise.
35242         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35243         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35244         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35245         * doc/posix-functions/renameat.texi (renameat): Likewise.
35246         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35247
35248         openat: fix GNU/Hurd bug in unlinkat
35249         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35250         broken.
35251         * doc/posix-functions/unlink.texi (unlink): Document this.
35252         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35253
35254         fdopendir: fix GNU/Hurd bug
35255         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35256         allowing non-directory fds.
35257         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35258         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35259         * modules/dirent (Makefile.am): Substitute it.
35260         * lib/dirent.in.h (fdopendir): Declare replacement.
35261         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35262         * tests/test-fdopendir.c (main): Test something other than
35263         /dev/null, since on Hurd that behaves like a directory.
35264
35265         test-symlink: port to GNU/Hurd
35266         * tests/test-symlink.h (test_symlink): Relax expected errno.
35267
35268         doc: tweak more cygwin information
35269         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35270         now compatible with glibc.
35271         * doc/posix-functions/getopt.texi (getopt): Likewise.
35272
35273         getopt-gnu: add another test
35274         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35275         guarantee behavior relied on by m4.
35276         * tests/test-getopt.c (main): Use it.
35277         * modules/getopt-posix-tests (Depends-on): Add setenv.
35278         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35279
35280         getopt: fix compilation on darwin
35281         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35282         include.
35283         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35284         Reported by Ludovic Courtès.
35285
35286 2009-10-06  Bruno Haible  <bruno@clisp.org>
35287
35288         * modules/size_max (Description): Discourage its use.
35289         Reported by Simon Josefsson.
35290
35291 2009-10-06  Jim Meyering  <meyering@redhat.com>
35292
35293         linkat: avoid compilation failure
35294         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35295
35296 2009-10-05  Eric Blake  <ebb9@byu.net>
35297
35298         linkat: support Linux 2.6.17
35299         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35300         linkat on Linux, but allow cache variable override.
35301         * lib/linkat.c (rpl_linkat): Define override.
35302         * modules/linkat (Depends-on): Add symlinkat.
35303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35304         * modules/unistd (Makefile.am): Substitute it.
35305         * lib/unistd.in.h (linkat): Declare replacement.
35306         Reported by Pádraig Brady.
35307
35308         quotearg: port test to systems with C.UTF-8 locale
35309         * tests/test-quotearg.c (struct result_strings): Add another
35310         member, differentiating between C.ASCII and C.UTF-8 handling.
35311         (compare_strings): Add parameter.
35312         (main): Adjust all callers.
35313
35314         getopt: avoid clash with FreeBSD _getopt_internal
35315         * lib/getopt.in.h (_getopt_internal): Override the name.
35316         * lib/getopt_int.h (includes): Pick up any overrides.
35317         Reported by Reuben Thomas.
35318
35319         hash: allow C89 compilation
35320         * lib/hash.c (check_tuning): Move declaration before statement.
35321         Reported by Reuben Thomas.
35322
35323 2009-10-05  Karl Berry  <karl@gnu.org>
35324
35325         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35326
35327 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35328             Bruno Haible  <bruno@clisp.org>
35329
35330         * lib/uname.c (uname): Use a table-driven algorithm to compute
35331         Windows NT versions.
35332
35333 2009-10-04  Bruno Haible  <bruno@clisp.org>
35334
35335         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35336         program_invocation_short_name.
35337         * modules/progname (configure.ac): Test for presence of
35338         program_invocation_short_name.
35339         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35340
35341 2009-10-04  Bruno Haible  <bruno@clisp.org>
35342
35343         * lib/progname.c (set_program_name): Fix comment.
35344         Reported by Jim Meyering.
35345
35346 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35347             Bruno Haible  <bruno@clisp.org>
35348
35349         * lib/uname.c: Include <string.h>.
35350         (uname): Do only one call to GetVersionEx in the common case.
35351
35352 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35353             Bruno Haible  <bruno@clisp.org>
35354
35355         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35356         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35357         (uname): Add support for Windows CE and various non-x86 CPU types.
35358
35359 2009-10-03  Bruno Haible  <bruno@clisp.org>
35360
35361         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35362         invocation to tests/configure.ac.
35363         Reported by Ian Beckwith <ianb@erislabs.net>.
35364
35365 2009-10-02  Eric Blake  <ebb9@byu.net>
35366
35367         fchdir: avoid compiler warning
35368         * lib/fchdir.c (canonicalize_file_name)
35369         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35370
35371         test-open: support mingw errno values
35372         * tests/test-open.h (test_open): Relax test.
35373         * tests/test-fopen.h (test_fopen): Likewise.
35374         * tests/test-openat-safer.c (main): Likewise.
35375
35376         open: fix opening directory on mingw
35377         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35378
35379         test-open: on GNU/Hurd, /dev/null is a directory
35380         * tests/test-fopen.h (main): Rename...
35381         (test_fopen): ...to this.  Use a guaranteed non-directory when
35382         confirming open behavior on trailing slash.
35383         * tests/test-openat-safer.c (main): Likewise.
35384         * tests/test-open.h (main): Likewise....
35385         (test_open): ...to this.
35386         * tests/test-fopen.c (main): Adjust caller.
35387         * tests/test-fopen-safer.c (main): Likewise.
35388         * tests/test-open.c (main): Likewise.
35389         * tests/test-fcntl-safer.c (main): Likewise.
35390         Reported by Samuel Thibault.
35391
35392         rename, fchdir: don't ignore chdir failure
35393         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35394         * lib/rename.c (rpl_rename) [W32]: Likewise.
35395         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35396         an empty destination directory if source cannot be renamed,
35397         although there is still possibility for failure.
35398         * doc/posix-functions/rename.texi (rename): Document the race.
35399         Reported by Jim Meyering.
35400
35401         maint: cleanup whitespace in recent commits
35402         * lib/rename.c (rpl_rename): Remove tabs.
35403         * tests/test-link.h (test_link): Likewise.
35404         * lib/fchdir.c (get_name): Likewise.
35405         Reported by Jim Meyering.
35406
35407 2009-10-02  Ben Pfaff  <blp@gnu.org>
35408
35409         relocatable-prog-wrapper: Add missing dependency on
35410         double-slash-root.
35411         * modules/relocatable-prog-wrapper: Add dependency.
35412         Reported by Ian Beckwith <ianb@erislabs.net>.
35413
35414 2009-10-02  Eric Blake  <ebb9@byu.net>
35415
35416         renameat: fix Solaris bugs
35417         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35418         needed fixing.
35419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35420         * modules/stdio (Makefile.am): Substitute it.
35421         * lib/stdio.in.h (renameat): Declare replacement.
35422         * lib/renameat.c (rpl_renameat): Implement fix.
35423
35424         renameat: new module
35425         * modules/renameat: New file.
35426         * lib/renameat.c (renameat): Likewise.
35427         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35429         * modules/stdio (Makefile.am): Substitute them.
35430         * lib/stdio.in.h (renameat): Declare it.
35431         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35432         * doc/posix-functions/renameat.texi (renameat): Likewise.
35433         * modules/renameat-tests: New test.
35434         * tests/test-renameat.c: Likewise.
35435
35436         rename: fix mingw bugs
35437         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35438         directory overwrite bugs.
35439
35440         rename: fix another cygwin 1.5 bug
35441         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35442         checks.
35443         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35444         unnecessary cygwin workarounds.  Also work around bug with moving
35445         full directory onto an empty one.
35446         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35447
35448         rename-dest-slash: merge into rename module
35449         * modules/rename-dest-slash (Status): Mark obsolete.
35450         (Depends-on): Add rename.
35451         (Files): Let rename do it all.
35452         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35453         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35454         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35455         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35456         * lib/rename.c (rpl_rename): Update comments.
35457
35458         rename: fix cygwin 1.5.x bugs
35459         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35460         * lib/rename.c (rpl_rename): Work around them.
35461         * modules/rename (Depends-on): Add same-inode.
35462
35463         rename: fix Solaris 10 bug
35464         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35465         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35466         was the only bug.
35467
35468         rename: fix Solaris 9 bug
35469         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35470         on non-directory.  Avoid calling exit.
35471         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35472         strdup.
35473         * modules/rename-tests (Depends-on): Drop lstat.
35474         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35475         (gl_PREREQ_RENAME): Delete unused macro.
35476
35477         rename-dest-slash: fix NetBSD bug
35478         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35479         links.
35480         * modules/rename-dest-slash (Depends-on): Add same-inode.
35481
35482         rename-tests: new test, exposes several platform bugs
35483         * modules/rename-tests: New file.
35484         * tests/test-rename.h: Likewise.
35485         * tests/test-rename.c: Likewise.
35486         * doc/posix-functions/rename.texi (rename): Improve documentation,
35487         including bugs that will eventually be fixed in gnulib.
35488
35489 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35490
35491         * lib/uname.c: Include <stdlib.h>
35492         (uname): Assume version info is available.
35493
35494 2009-10-02  Jim Meyering  <meyering@redhat.com>
35495
35496         gnu-web-doc-update: correct --help output
35497         * build-aux/gnu-web-doc-update: Make --help output relevant.
35498
35499         gnu-web-doc-update: add standard options
35500         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35501
35502         gnu-web-doc-update: New module.
35503         Use this script to automatically update the on-line web documentation
35504         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35505         * modules/gnu-web-doc-update: New file, from coreutils.
35506         * build-aux/gnu-web-doc-update: New script.
35507
35508 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35509
35510         link: LoadLibrary is not needed.
35511         * lib/link.c: Use GetModuleHandle.
35512
35513 2009-10-01  Eric Blake  <ebb9@byu.net>
35514
35515         getopt: bump serial number
35516         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35517         change.
35518
35519         tests: tighten link, rmdir, and remove tests
35520         * tests/test-link.h (includes): No need to use <config.h> here.
35521         Clean up if directory hard link was created, otherwise test for
35522         trailing '.'.
35523         * tests/test-linkat.c (main): Simplify.
35524         * tests/test-remove.c (main): Enhance test for trailing '.'.
35525         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35526
35527 2009-10-01  Jim Meyering  <meyering@redhat.com>
35528
35529         maint.mk: requiring "make major" was annoying, for a "minor" release.
35530         What is intended is "stable", to contrast with alpha and beta,
35531         so require "make stable", not "make major".
35532         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35533         (get_tool_versions): Likewise.
35534         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35535
35536 2009-09-30  Ben Pfaff  <blp@gnu.org>
35537
35538         Fix broken build of replacement for Windows tmpfile().
35539         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35540         flags argument added along with the 'mkostemp' module.
35541
35542 2009-09-28  Bruno Haible  <bruno@clisp.org>
35543
35544         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35545         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35546         to 'remove_elt'.
35547         (gl_list_remove): Update.
35548         * lib/gl_list.c (gl_list_remove): Update.
35549         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35550         to 'remove_elt'.
35551         (gl_oset_remove): Update.
35552         * lib/gl_list.c (gl_oset_remove): Update.
35553         Reported by Eric Blake.
35554
35555 2009-09-28  Eric Blake  <ebb9@byu.net>
35556
35557         doc: mention yet more cygwin 1.7 status
35558         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35559         cygwin.
35560         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35561         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35562
35563         argp: fix test failure
35564         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35565         that are not upper-case.  Pass correct range to tolower.
35566
35567 2009-09-27  Jim Meyering  <meyering@redhat.com>
35568
35569         test-yesno: work around sparc-dash here-document infelicity
35570         Without this change, the literal \177 byte in a here document
35571         would make dash 0.5.5.1-3 access uninitialized memory.
35572         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35573         Instead, use a marker, "@", and filter through tr to create the desired
35574         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35575
35576 2009-09-27  Bruno Haible  <bruno@clisp.org>
35577
35578         Disable untested support for new flavours of ACLs on AIX.
35579         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35580         progress.
35581         * lib/set-mode-acl.c (qset_acl): Likewise.
35582
35583 2008-12-07  Bruno Haible  <bruno@clisp.org>
35584
35585         Add support for new flavours of ACLs on AIX. (Untested.)
35586         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35587         (file_has_acl): Add support for newer AIX.
35588         * lib/set-mode-acl.c (qset_acl): Likewise.
35589         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35590         Rainer Tammer <tammer@tammer.net>.
35591
35592 2009-09-26  Eric Blake  <ebb9@byu.net>
35593
35594         argp: fix compilation of getopt
35595         * lib/getopt.in.h (includes): Use different guard than glibc.
35596         Reported by Sergey Poznyakoff.
35597
35598         doc: mention more cygwin 1.7 status
35599         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35600         bug.
35601         * doc/posix-functions/execl.texi (execl): Likewise.
35602         * doc/posix-functions/execle.texi (execle): Likewise.
35603         * doc/posix-functions/execlp.texi (execlp): Likewise.
35604         * doc/posix-functions/execv.texi (execv): Likewise.
35605         * doc/posix-functions/execve.texi (execve): Likewise.
35606         * doc/posix-functions/execvp.texi (execvp): Likewise.
35607         * doc/glibc-functions/canonicalize_file_name.texi
35608         (canonicalize_file_name): Cygwin 1.7 now provides this.
35609         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35610         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35611         on AT_SYMLINK_NOFOLLOW.
35612
35613 2009-09-24  Eric Blake  <ebb9@byu.net>
35614
35615         test-linkat: make test more robust
35616         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35617
35618         getopt: fix inclusion guards for cygwin
35619         * modules/getopt-posix (Depends-on): Add include-next.
35620         (Makefile.am): Substitute more items in replacement header.
35621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35622         <getopt.h>.
35623         * lib/getopt.in.h (includes): Use split inclusion guard, and
35624         prefer <getopt.h> over include <unistd.h> when one is present.
35625         (option): Also override name of 'struct option'.
35626
35627         same-inode: revert prior change; it is not yet ready
35628         * NEWS: Undo mention of this change.
35629         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35630         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35631         * lib/cycle-check.c (cycle_check): Likewise.
35632         * lib/same.c (same_name): Likewise.
35633         * lib/at-func2.c (at_func2): Likewise.
35634
35635 2009-09-23  Eric Blake  <ebb9@byu.net>
35636
35637         linkat: new module
35638         * modules/linkat: New file.
35639         * lib/at-func2.c (at_func2): Likewise.
35640         * lib/linkat.c (linkat): Likewise.
35641         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35642         * lib/openat-priv.h (at_func2): Add declaration.
35643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35644         * modules/unistd (Makefile.am): Substitute them.
35645         * lib/unistd.in.h (linkat): Declare it.
35646         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35647         * doc/posix-functions/linkat.texi (linkat): Likewise.
35648         * doc/posix-functions/link.texi (link): Tweak wording.
35649         * tests/test-link.c (main): Move guts...
35650         * tests/test-link.h (test_link): ...into new file.
35651         * modules/linkat-tests: New test.
35652         * tests/test-linkat.c: Likewise.
35653         * modules/link-tests (Files): Ship new file.
35654         (Depends-on): Add stdbool.
35655
35656         dirname: add library-safe mdir_name
35657         * lib/dirname.h (mdir_name): New prototype.
35658         * lib/dirname.c (dir_name): Move guts...
35659         (mdir_name): ...to new function that avoids xalloc_die.
35660
35661         fchdir: another mingw fix
35662         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35663         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35664         on mingw (where it has not yet been ported), and make it optional
35665         elsewhere.
35666         (_gl_register_fd): Use it.
35667
35668         same-inode: make SAME_INODE tri-state, to port to mingw
35669         * NEWS: Mention this change.
35670         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35671         st_ino always being 0.
35672         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35673         * lib/cycle-check.c (cycle_check): Likewise.
35674         * lib/same.c (same_name): Likewise.
35675
35676         lstat: avoid mingw compilation error
35677         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35678         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35679         lstat ourselves.
35680         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35681         was adequate.
35682         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35683         the checks for lstat.
35684         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35685
35686         link: fix test failure on Solaris 9
35687         * lib/link.c (rpl_link): Don't assume link will catch bogus
35688         trailing slash on source.
35689
35690         test-symlinkat: enhance test
35691         * tests/test-readlink.c (main): Move guts...
35692         * tests/test-readlink.h (test_readlink): ...into new file.
35693         * tests/test-symlink.c (main): Move guts...
35694         * tests/test-symlink.h (test_symlink): ...into new file.
35695         * tests/test-symlinkat.c (main): Use new files for further
35696         coverage.
35697         (do_symlink, do_readlink): New helper functions.
35698         * modules/symlink-tests (Files): Ship new file.
35699         (Depends-on): Add stdbool.
35700         * modules/readlink-tests (Files): Ship new file.
35701         (Depends-on): Add stdbool.
35702         * modules/symlinkat-tests (Files): Use new files.
35703
35704 2009-09-23  Eric Blake  <ebb9@byu.net>
35705
35706         readlink: document portability issue with symlink length
35707         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35708         systems have bogus st_size on symlinks, and mention the
35709         areadlink-with-size module.
35710         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35711         * doc/posix-functions/readlink.texi (readlink): Mention the
35712         areadlink module, and ERANGE failure.
35713         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35714         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35715
35716         readlink: fix Solaris 9 bug with trailing slash
35717         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35718         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35719         * doc/posix-functions/readlink.texi (readlink): Document this.
35720         * modules/readlink-tests: New test.
35721         * tests/test-readlink.c: Likewise.
35722
35723         readlink: fix cygwin 1.5.x bug with return type
35724         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35725         * lib/unistd.in.h (readlink): Use ssize_t.
35726         * lib/readlink.c (readlink): Likewise.
35727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35728         * modules/unistd (Makefile.am): Substitute it.
35729         * lib/unistd.in.h (readlink): Declare replacement.
35730         * doc/posix-functions/readlink.texi (readlink): Document this.
35731
35732         symlink: use throughout gnulib
35733         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35734         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35735         symlink is not used.
35736         * modules/symlinkat (Depends-on): Add symlink.
35737         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35738         * modules/canonicalize-tests (Depends-on): Likewise.
35739         * modules/lstat-tests (Depends-on): Likewise.
35740         * modules/openat-tests (Depends-on): Likewise.
35741         * modules/remove-tests (Depends-on): Likewise.
35742         * modules/rmdir-tests (Depends-on): Likewise.
35743         * modules/unlink-tests (Depends-on): Likewise.
35744         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35745         * tests/test-canonicalize.c (symlink): Likewise.
35746         * tests/test-fstatat.c (symlink): Likewise.
35747         * tests/test-lstat.c (symlink): Likewise.
35748         * tests/test-remove.c (symlink): Likewise.
35749         * tests/test-rmdir.c (symlink): Likewise.
35750         * tests/test-unlink.c (symlink): Likewise.
35751         * tests/test-unlinkat.c (symlink): Likewise.
35752
35753         symlink: new module, for Solaris 9 bug
35754         * modules/symlink: New file.
35755         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35756         * lib/symlink.c: Likewise.
35757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35758         * modules/unistd (Makefile.am): Substitute them.
35759         * lib/unistd.in.h (symlink): Declare replacement.
35760         * MODULES.html.sh (File system functions): Mention it.
35761         * doc/posix-functions/symlink.texi (symlink): Likewise.
35762         * modules/symlink-tests: New test.
35763         * tests/test-symlink.c: Likewise.
35764
35765 2009-09-23  Bruno Haible  <bruno@clisp.org>
35766
35767         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35768         when needed.
35769         Test case: gnulib-tool --import --with-tests atexit inttypes.
35770         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35771
35772 2009-09-23  Bruno Haible  <bruno@clisp.org>
35773
35774         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35775         subcommand, not in a subshell.
35776
35777 2009-09-22  Eric Blake  <ebb9@byu.net>
35778
35779         unistd: sort replacement declarations
35780         * lib/unistd.in.h: Sort declarations.
35781
35782         open, openat: minor optimization
35783         * lib/open.c (open): If open succeeded, len is non-zero.
35784         * lib/openat.c (rpl_openat): Likewise.
35785
35786         link-follow: ensure correct result
35787         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35788         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35789         distinguish between possible failures.
35790
35791 2009-09-21  Eric Blake  <ebb9@byu.net>
35792
35793         fts: avoid compiler warning
35794         * lib/fts.c (dirent_inode_sort_may_be_useful)
35795         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35796
35797 2009-09-19  Bruno Haible  <bruno@clisp.org>
35798
35799         * lib/progreloc.c (canonicalize_file_name): New declaration.
35800
35801 2009-09-19  Eric Blake  <ebb9@byu.net>
35802
35803         link: fix quoting
35804         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35805
35806         openat: fix openat bugs on Solaris 9
35807         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35808         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35809         * modules/openat (Depends-on): Add open.
35810         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35811         * modules/fcntl-h (Makefile.am): Substitute it.
35812         * lib/fcntl.in.h (openat): Declare replacement.
35813         * doc/posix-functions/openat.texi (openat): Document this.
35814
35815         openat: move fstatat and unlinkat into correct files
35816         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35817         compiled.
35818         * lib/openat.c (fstatat, unlinkat): Move...
35819         * lib/fstatat.c (fstatat): ...into correct files.
35820         * lib/unlinkat.c (unlinkat): Likewise.
35821
35822         openat: fix unlinkat bugs on Solaris 9
35823         * lib/unlinkat.c (unlinkat): New file.
35824         * modules/openat (Depends-on): Add unlink.
35825         (Files): Distribute it.
35826         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35827         trailing slash behavior is broken.
35828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35829         * modules/unistd (Makefile.am): Substitute it.
35830         * lib/unistd.in.h (unlinkat): Declare replacement.
35831         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35832
35833         openat: fix fstatat bugs on Solaris 9
35834         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35835         stat.
35836         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35837
35838         test-unlinkat: enhance test, to expose Solaris 9 bug
35839         * tests/test-unlink.c (main): Factor guts...
35840         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35841         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35842         * tests/test-rmdir.c (main): Adjust caller.
35843         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35844         (unlinker): New helper function.
35845         (rmdirat): Enhance check.
35846         * modules/rmdir-tests (Depends-on): Add stdbool.
35847         * modules/unlink-tests (Depends-on): Likewise.
35848         (Files): Add test-unlink.h.
35849         * modules/openat-tests (Files): Likewise.
35850         (Depends-on): Add unlinkdir.
35851
35852         test-fstatat: new test, to expose Solaris 9 bugs
35853         * tests/test-stat.c (main): Factor guts...
35854         * tests/test-stat.h (test_stat_func): ...into new file.
35855         * tests/test-lstat.c (main): Factor guts...
35856         * tests/test-lstat.h (test_lstat_func): ...into new file.
35857         * tests/test-fstatat.c: New file.
35858         * modules/stat-tests (Files): Add test-stat.h.
35859         * modules/lstat-tests (Files): Add test-lstat.h.
35860         (Depends-on): Add stdbool.
35861         * modules/openat-tests (Depends-on): Add pathmax.
35862         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35863         (Makefile.am): Run new test.
35864
35865         remove: new module, for mingw and Solaris 9 bugs
35866         * modules/remove: New file.
35867         * lib/remove.c: Likewise.
35868         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35870         * modules/stdio (Makefile.am): Use them.
35871         * lib/stdio.in.h (remove): Declare replacement.
35872         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35873         * doc/posix-functions/remove.texi (remove): Likewise.
35874         * modules/remove-tests: New test.
35875         * tests/test-remove.c: Likewise.
35876
35877         unlink: new module, for Solaris 9 bug
35878         * modules/unlink: New file.
35879         * lib/unlink.c: Likewise.
35880         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35882         * modules/unistd (Makefile.am): Use them.
35883         * lib/unistd.in.h (stat): Declare replacement.
35884         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35885         * doc/posix-functions/unlink.texi (unlink): Likewise.
35886         * modules/unlink-tests: New test.
35887         * tests/test-unlink.c: Likewise.
35888
35889         lstat: fix Solaris 9 bug
35890         * lib/lstat.c (lstat): Also check for trailing slash on
35891         non-symlink, non-directories.  Use stat module to simplify logic.
35892         * doc/posix-functions/lstat.texi (lstat): Document it.
35893         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35894         (configure.ac): Check for symlink.
35895         * tests/test-lstat.c (main): Add more tests.
35896
35897         stat: add as dependency to other modules
35898         * modules/chown (Depends-on): Add stat.
35899         * modules/euidaccess (Depends-on): Likewise.
35900         * modules/fchdir (Depends-on): Likewise.
35901         * modules/isdir (Depends-on): Likewise.
35902         * modules/link (Depends-on): Likewise.
35903         * modules/lstat (Depends-on): Likewise.
35904         * modules/mkdir-p (Depends-on): Likewise.
35905         * modules/modechange (Depends-on): Likewise.
35906         * modules/open (Depends-on): Likewise.
35907         * modules/readlink (Depends-on): Likewise.
35908         * modules/same (Depends-on): Likewise.
35909
35910         stat: fix Solaris 9 bug
35911         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35912         slash.
35913         * lib/stat.c (rpl_stat): Work around it.
35914         * doc/posix-functions/stat.texi (stat): Update documentation.
35915
35916         stat: new module, for mingw bug
35917         * modules/stat: New file.
35918         * lib/stat.c: Likewise.
35919         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35920         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35921         * modules/sys_stat (Makefile.am): Use them.
35922         * lib/sys_stat.in.h (stat): Declare replacement.
35923         * lib/openat.c (fstatat): Deal with lstat and stat being function
35924         macros.
35925         * modules/openat (Depends-on): Add inline.
35926         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35927         * doc/posix-functions/stat.texi (stat): Likewise.
35928         * modules/stat-tests: New test.
35929         * tests/test-stat.c: Likewise.
35930
35931 2009-09-19  Jim Meyering  <meyering@redhat.com>
35932
35933         syntax-check: detect unnecessary inclusion of canonicalize.h
35934         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35935
35936 2009-09-19  Eric Blake  <ebb9@byu.net>
35937
35938         canonicalize-lgpl: adjust clients to use correct header
35939         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35940         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35941         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35942         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35943         * lib/progreloc.c (includes): Likewise.
35944
35945 2009-09-19  Jim Meyering  <meyering@redhat.com>
35946
35947         test-posixtm.c: correct a comment
35948         * tests/test-posixtm.c: Correct first-line comment.
35949         Spotted by Eric Blake.
35950
35951 2009-09-16  Jim Meyering  <meyering@redhat.com>
35952
35953         posixtm-tests: make T const-correct; add a test case
35954         * tests/test-posixtm.c (T): Declare const.
35955         Add a test for -(2^31+1).
35956         Remove useless can-succeed-only-in-2002 test.
35957
35958         posixtm-tests: adjust the sole failing test
35959         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35960         expected output matches what mktime now produces.  Cross-checked via
35961         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35962
35963         posixtm: move #ifdef'd tests into a new module
35964         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35965         * tests/test-posixtm.c: ... this new file.
35966         * modules/posixtm-tests: New module.
35967
35968 2009-09-19  Eric Blake  <ebb9@byu.net>
35969
35970         openat: simplify use of at-func.c
35971         * lib/at-func.c (includes): Include prerequisites here, to
35972         simplify requirements on client files.
35973         * lib/openat-priv.h: Add double-inclusion guard.
35974         * lib/faccessat.c (includes): Simplify.
35975         * lib/fchmodat.c (includes): Likewise.
35976         * lib/fchownat.c (includes): Likewise.
35977         * lib/mkdirat.c (includes): Likewise.
35978         * lib/mkfifoat.c (includes): Likewise.
35979         * lib/symlinkat.c (includes): Likewise.
35980
35981         openat: allow return of fd 0
35982         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35983         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35984         unistd-safer.
35985         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35986         <fcntl.h>; this module does not leak fds.
35987         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35988         must be allowed to return 0, leaving openat_safer to add the
35989         safety.
35990         (openat_permissive): Avoid writing to just-opened fd 2 if
35991         restoring the current directory fails.
35992         * lib/openat-die.c (openat_restore_fail): Add comment.
35993         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35994         (save_cwd): Guarantee safe fd, but without use of open_safer.
35995         * tests/test-openat.c: New test.
35996         * modules/openat-tests (Files, Makefile.am): Distribute and build
35997         new file.
35998
35999         relocatable-prog-wrapper: fix build
36000         * modules/relocatable-prog-wrapper (Files): Update name of
36001         canonicalize m4 file, broken on 2009-09-17.
36002         Reported by emad hajjar <aleppos@hotmail.com>.
36003
36004 2009-09-19  Bruno Haible  <bruno@clisp.org>
36005
36006         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36007         * lib/safe-alloc.c: Likewise.
36008         Reported by Ian Beckwith <ianb@erislabs.net>.
36009
36010 2009-09-18  Bruno Haible  <bruno@clisp.org>
36011
36012         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36013         Reported by <erobles@sensacd.com.mx>.
36014
36015 2009-09-17  Eric Blake  <ebb9@byu.net>
36016
36017         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36018         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36019         slashes when checking if last component is missing.
36020         * tests/test-canonicalize.c (main): Test this.
36021
36022         canonicalize, canonicalize-lgpl: honor // if distinct from /
36023         * modules/canonicalize (Files): Add double-slash-root.m4.
36024         * modules/canonicalize-lgpl (Files): Likewise.
36025         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36026         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36027         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36028         fallback definition.
36029         (canonicalize_filename_mode): Use it to protect //.
36030         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36031         (__realpath): Likewise.
36032         * tests/test-canonicalize.c (main): Test this.
36033         * tests/test-canonicalize-lgpl.c (main): Likewise.
36034         * modules/canonicalize-tests (Depends-on): Add same-inode.
36035         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36036
36037         canonicalize-lgpl: fix glibc bug with trailing slash
36038         * m4/canonicalize-lgpl.m4: Move contents...
36039         * m4/canonicalize.m4: ...here.
36040         (gl_CANONICALIZE_LGPL): Factor realpath check...
36041         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36042         glibc 2.3.5 bug, fixed 2005-04-27.
36043         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36044         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36045         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36046         * modules/canonicalize-lgpl (Files): Manage file rename.
36047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36048         * modules/stdlib (Makefile.am): Substitute witness.
36049         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36050         is needed.
36051         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36052         replacement is required.
36053         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36054         * doc/glibc-functions/canonicalize_file_name.texi
36055         (canonicalize_file_name): Document this.
36056         * doc/posix-functions/realpath.texi (realpath): Likewise.
36057
36058         canonicalize-lgpl: reject non-directory with trailing slash
36059         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36060         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36061         catches failures in glibc 2.3.5.
36062         * tests/test-canonicalize.c (main): Likewise.
36063
36064         canonicalize-lgpl: use native realpath if it works
36065         * lib/canonicalize-lgpl.c (realpath): Guard with
36066         FUNC_REALPATH_WORKS.
36067         * lib/stdlib.in.h (realpath): Make declaration optional based on
36068         HAVE_REALPATH.
36069         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36070         native realpath works.
36071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36072         * modules/stdlib (Makefile.am): Substitute witness.
36073
36074         canonicalize, canonicalize-lgpl: use <stdlib.h>
36075         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36076         (Include): Mention <stdlib.h>.
36077         (configure.ac): Mention functions we provide.
36078         * modules/canonicalize (configure.ac): Likewise.
36079         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36080         realpath if canonicalize_file_name is missing.
36081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36082         * modules/stdlib (Makefile.am): Substitute witnesses.
36083         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36084         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36085         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36086         * NEWS: Document this.
36087         * doc/glibc-functions/canonicalize_file_name.texi
36088         (canonicalize_file_name): Likewise.
36089         * doc/posix-functions/realpath.texi (realpath): Likewise.
36090         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36091
36092         test-canonicalize: consolidate into single C program
36093         * tests/test-canonicalize.sh: Delete; move setup into...
36094         * tests/test-canonicalize.c (main): ...the program, making it
36095         easier to run in debugger.  Add some tests.
36096         * modules/canonicalize-tests (Files): Remove unused file.
36097         (Depends-on): Add progname.
36098         (configure.ac, Makefile.am): Simplify.
36099
36100         test-canonicalize-lgpl: consolidate into single C program
36101         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36102         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36103         easier to run in debugger.  Add some tests.
36104         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36105         (configure.ac, Makefile.am): Simplify.
36106
36107         canonicalize: avoid resolvepath
36108         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36109         unnecessary checks.
36110         * lib/canonicalize.c (includes): Simplify.
36111         (canonicalize_file_name): Drop resolvepath implementation.
36112         * modules/canonicalize (Depends-on): Drop filenamecat.
36113
36114         canonicalize: don't lose errno
36115         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36116         over calls to free.
36117
36118         canonicalize: simplify errno handling
36119         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36120         assignment.
36121
36122         canonicalize, canonicalize-lgpl: update module dependencies
36123         * modules/canonicalize (Depends-on): Add extensions, lstat,
36124         pathmax, stdlib.
36125         (Files): Drop pathmax.h.
36126         (configure.ac): Adjust macro name.
36127         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36128         lstat, stdlib, sys_stat.
36129         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36130         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36131         extensions.
36132         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36133         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36134         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36135         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36136         declaration, if available.
36137         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36138         we can rely on the readlink module.
36139         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36140         (includes): Use <unistd.h> unconditionally.
36141
36142 2009-09-17  Eric Blake  <ebb9@byu.net>
36143
36144         maint: make Include sections of modules consistent
36145         * modules/alloca: Use only header name; no need to list #include.
36146         * modules/alloca-opt: Likewise.
36147         * modules/arpa_inet: Likewise.
36148         * modules/canon-host: Likewise.
36149         * modules/configmake: Likewise.
36150         * modules/dirent: Likewise.
36151         * modules/eealloc: Likewise.
36152         * modules/environ: Likewise.
36153         * modules/fchdir: Likewise.
36154         * modules/fcntl: Likewise.
36155         * modules/fcntl-h: Likewise.
36156         * modules/gethrxtime: Likewise.
36157         * modules/gettime: Likewise.
36158         * modules/ignore-value: Likewise.
36159         * modules/inet_ntop: Likewise.
36160         * modules/inet_pton: Likewise.
36161         * modules/inttypes: Likewise.
36162         * modules/isnand-nolibm: Likewise.
36163         * modules/isnanf-nolibm: Likewise.
36164         * modules/mbchar: Likewise.
36165         * modules/mbfile: Likewise.
36166         * modules/mbiter: Likewise.
36167         * modules/mbuiter: Likewise.
36168         * modules/netdb: Likewise.
36169         * modules/netinet_in: Likewise.
36170         * modules/nproc: Likewise.
36171         * modules/pagealign_alloc: Likewise.
36172         * modules/poll: Likewise.
36173         * modules/printf-frexp: Likewise.
36174         * modules/pthread: Likewise.
36175         * modules/putenv: Likewise.
36176         * modules/random_r: Likewise.
36177         * modules/relocatable-prog: Likewise.
36178         * modules/search: Likewise.
36179         * modules/select: Likewise.
36180         * modules/selinux-h: Likewise.
36181         * modules/settime: Likewise.
36182         * modules/signal: Likewise.
36183         * modules/size_max: Likewise.
36184         * modules/socklen: Likewise.
36185         * modules/ssize_t: Likewise.
36186         * modules/stdarg: Likewise.
36187         * modules/stdbool: Likewise.
36188         * modules/stddef: Likewise.
36189         * modules/stdint: Likewise.
36190         * modules/stdio: Likewise.
36191         * modules/stdlib: Likewise.
36192         * modules/string: Likewise.
36193         * modules/strings: Likewise.
36194         * modules/sys_file: Likewise.
36195         * modules/sys_ioctl: Likewise.
36196         * modules/sys_select: Likewise.
36197         * modules/sys_socket: Likewise.
36198         * modules/sys_stat: Likewise.
36199         * modules/sys_time: Likewise.
36200         * modules/sys_times: Likewise.
36201         * modules/sys_utsname: Likewise.
36202         * modules/sys_wait: Likewise.
36203         * modules/sysexits: Likewise.
36204         * modules/time: Likewise.
36205         * modules/times: Likewise.
36206         * modules/tmpfile: Likewise.
36207         * modules/trim: Likewise.
36208         * modules/unistd: Likewise.
36209         * modules/wchar: Likewise.
36210         * modules/wctype: Likewise.
36211
36212 2009-09-17  Bruno Haible  <bruno@clisp.org>
36213
36214         Make getdate.y compile on QNX and NetBSD 5 / i386.
36215         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36216         TIME_T_FITS_IN_LONG_INT.
36217         * lib/getdate.y (long_time_t): New type.
36218         (relative_time): Change type of 'seconds' field to long_time_t.
36219         (get_date): Update types of local variables. Check against overflow
36220         during conversion from long_time_t to time_t.
36221         Reported by Matt Kraai <kraai@ftbfs.org>
36222         and Hasso Tepper <hasso@netbsd.org>.
36223
36224 2009-09-17  Bruno Haible  <bruno@clisp.org>
36225
36226         * modules/COPYING: Update copyright years.
36227         * modules/README: Likeiwse.
36228         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36229         Reported by Ian Beckwith <ianb@erislabs.net>.
36230
36231 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36232
36233         * users.txt: Update references for gnuit package.
36234
36235 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36236
36237         * m4/getdelim.m4: Fix typo in copyright line.
36238
36239 2009-09-17  Bruno Haible  <bruno@clisp.org>
36240
36241         * lib/atoll.c: Use the standard header with GPL copyright.
36242         * lib/argz.in.h: Likewise.
36243         * lib/glob.c: Likewise.
36244         * lib/glob-libc.h: Likewise.
36245         * lib/random_r.c: Likewise.
36246         * lib/siglist.h: Likewise.
36247         * lib/strsignal.c: Likewise.
36248         Reported by Ian Beckwith <ianb@erislabs.net>.
36249
36250 2009-09-17  Eric Blake  <ebb9@byu.net>
36251
36252         rmdir: ensure correct dependency order
36253         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36254
36255 2009-09-17  Bruno Haible  <bruno@clisp.org>
36256
36257         Disable assertion that fails on NetBSD 5 / i386.
36258         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36259         Reported by Sam Steingold <sds@gnu.org>
36260         and Hasso Tepper <hasso@netbsd.org>.
36261
36262 2009-09-16  Eric Blake  <ebb9@byu.net>
36263
36264         unlinkdir: port to mingw
36265         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36266         on which no one can unlink a directory.
36267
36268         stdlib: sort witness names
36269         * modules/stdlib (Makefile.am): Sort replacements.
36270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36271         * lib/stdlib.in.h: Likewise.
36272
36273         parse-duration-tests: avoid link failure
36274         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36275         LIBINTL.
36276         Reported by Tom G. Christensen.
36277
36278         openat-tests: ensure unlinkat behaves like rmdir
36279         * tests/test-rmdir.c (main): Factor guts...
36280         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36281         * modules/rmdir-tests (Files): Ship new file.
36282         * modules/openat-tests: New test.
36283         * tests/test-unlinkat.c: Likewise.
36284
36285         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36286         * modules/rmdir-errno (Status, Notice): Now obsolete.
36287
36288         rmdir: work around cygwin 1.5.x and mingw bugs
36289         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36290         * lib/rmdir.c (rmdir): Work around it.
36291         * modules/rmdir (Status, Notice): No longer obsolete.
36292         (Files): Add dos.m4.
36293         (Depends-on): Add unistd.
36294         (configure.ac): Set witnesses.
36295         (License): Relax to LGPLv2+.
36296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36297         * modules/unistd (Makefile.am): Substitute witnesses.
36298         * lib/unistd.in.h (rmdir): Declare replacement.
36299         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36300         * modules/rmdir-tests: New tests.
36301         * tests/test-rmdir.c: Likewise.
36302
36303 2009-09-15  Eric Blake  <ebb9@byu.net>
36304
36305         fchdir: improve use of replacement functions
36306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36308         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36309         REPLACE_CLOSEDIR.
36310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36311         * modules/sys_stat (Makefile.am): Substitute correct witness.
36312         * modules/dirent (Makefile.am): Likewise.
36313         * modules/unistd (Makefile.am): Likewise.
36314         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36315         * lib/unistd.in.h (dup): Likewise.
36316         * lib/sys_stat.in.h (fstat): Likewise.
36317
36318         maint: ignore gnulib-tool temp files
36319         * .gitignore: Ignore files created during gnulib-tool --test.
36320
36321 2009-09-13  Jim Meyering  <meyering@redhat.com>
36322
36323         posixtm: don't reject a time that specify "60" as the number of seconds
36324         * lib/posixtm.c (posixtime): The code to reject invalid dates
36325         would also reject a time specified with the .60 suffix.
36326         But POSIX allows that, in order to accommodate leap seconds.
36327         So don't reject it.
36328         (main): Adjust tests accordingly.
36329         * modules/posixtm (Depends-on): Add stpcpy.
36330
36331 2009-09-11  Jim Meyering  <meyering@redhat.com>
36332
36333         announce-gen: include [$release_type] in emitted Subject:
36334         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36335         e.g., [stable] in the emitted Subject: line.
36336
36337 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36338
36339         Remove obsolete macros from several modules.
36340         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36341         obsolete Autoconf macros with their modern counterparts.
36342         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36343         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36344         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36345         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36346         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36347         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36349         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36350         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36351         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36352         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36354         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36355         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36356         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36357         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36358         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36359         * m4/time_r.m4 (gl_TIME_R): Likewise.
36360         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36361         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36362         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36363
36364         Fix copyright header in build-aux scripts.
36365         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36366         recommendation.
36367         * build-aux/ncftpput-ftp: Likewise.
36368         * build-aux/update-copyright: Likewise.
36369
36370 2009-09-09  Eric Blake  <ebb9@byu.net>
36371
36372         test-link: allow Linux choice of errno
36373         * tests/test-link.c (main): Relax test for alternate error.
36374
36375         strndup: fix improper m4 caching
36376         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36377         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36378         (gl_PREREQ_STRNDUP): Delete.
36379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36380         * modules/string (Makefile.am): Substitute it.
36381         * lib/string.in.h (strndup): Modernize prototype.
36382
36383         getcwd: port to mingw
36384         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36385         different from the POSIX assumptions made throughout the getcwd
36386         module; fortunately, the mingw getcwd does not need replacement.
36387         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36388         * modules/getcwd-tests: New test.
36389         * tests/test-getcwd.c: Likewise.
36390
36391         link: fix platform bugs
36392         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36393         * lib/link.c (link): Work around them.  Fix related mingw bug.
36394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36395         * modules/unistd (Makefile.am): Substitute it.
36396         * lib/unistd.in.h (link): Declare replacement.
36397         * doc/posix-functions/link.texi (link): Document this.
36398         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36399
36400         test-link: consolidate into single C program, test more cases
36401         * tests/test-link.sh: Delete.
36402         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36403         at least Cygwin and Solaris.
36404         * modules/link-tests (Files): Remove unused file.
36405         (Depends-on): Add errno, sys_stat.
36406         (Makefile.am): Simplify.
36407
36408 2009-09-08  Bruno Haible  <bruno@clisp.org>
36409
36410         Work around towlower, towupper bug on mingw.
36411         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36412         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36413         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36414         * doc/posix-functions/towupper.texi: Likewise.
36415         Reported by Eric Blake.
36416
36417 2009-09-08  Jim Meyering  <meyering@redhat.com>
36418
36419         build: don't try to run autoheader if we don't use it
36420         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36421         is not used in configure.ac.
36422
36423 2009-09-08  Eric Blake  <ebb9@byu.net>
36424
36425         euidaccess: fix compilation error
36426         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36427
36428         rawmemchr: relax license
36429         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36430         okay.
36431         Reported by Jim Meyering.
36432
36433         mkfifoat: new module
36434         * modules/mkfifoat: New file.
36435         * lib/mkfifoat.c: Likewise.
36436         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36437         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36438         * modules/sys_stat (Makefile.am): Use them.
36439         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36440         * MODULES.html.sh (File system functions): Mention module.
36441         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36442         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36443         * modules/mkfifoat-tests: New test.
36444         * tests/test-mkfifoat.c: Likewise.
36445
36446         strchrnul: relax license
36447         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36448         okay.
36449         Reported by Jim Meyering.
36450
36451 2009-09-08  Eric Blake  <ebb9@byu.net>
36452
36453         fstatat: fix compilation on Solaris
36454         * lib/fstatat.c (includes): Add fcntl.h.
36455         Reported by Pádraig Brady.
36456
36457 2009-09-07  Eric Blake  <ebb9@byu.net>
36458
36459         rename: modernize replacement
36460         * modules/rename (Depends-on): Add stdio.
36461         (configure.ac): Declare witness.
36462         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36463         stdio take care of replacement.
36464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36465         * modules/stdio (Makefile.am): Substitute them.
36466         * lib/stdio.in.h (rename): Declare replacement.
36467         * lib/rename.c (includes): Allow cross-compilation to non-windows
36468         machines.
36469         * doc/posix-functions/rename.texi (rename): Improve
36470         documentation.
36471
36472         stdio: sort witness names
36473         * modules/stdio (Makefile.am): Sort replacements.
36474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36475         * lib/stdio.in.h: Likewise.
36476
36477         getcwd: minor cleanups
36478         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36479         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36480
36481         openat: provide more convenience names
36482         * modules/faccessat (configure.ac): Add C witness.
36483         * lib/unistd.in.h (readlinkat): Fix typo.
36484         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36485         convenience wrappers.
36486         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36487         wrappers in syntax checks.
36488
36489 2009-09-06  Eric Blake  <ebb9@byu.net>
36490
36491         doc: fix comments in recent patches
36492         * lib/faccessat.c: Mention correct function.
36493         * lib/fchmodat.c: Likewise.
36494         * lib/fchownat.c: Likewise.
36495         * lib/symlinkat.c: Likewise.
36496         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36497         constants.
36498
36499         faccessat, symlinkat: continue cleanup of previous patch
36500         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36501         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36502         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36504         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36505         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36506         set.
36507
36508 2009-09-06  Bruno Haible  <bruno@clisp.org>
36509
36510         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36511         (fstatat): Declare if GNULIB_FSTATAT is set.
36512         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36513         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36514         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36515         * modules/fcntl-h (Files): Remove m4/openat.m4.
36516         * modules/sys_stat (Files): Remove m4/openat.m4.
36517         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36518         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36519         * modules/unistd (Files): Remove m4/openat.m4.
36520         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36521         GNULIB_OPENAT.
36522         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36523         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36524         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36525         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36526         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36527         gl_OPENAT_DEFAULTS.
36528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36529         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36530         Don't require gl_OPENAT_DEFAULTS.
36531         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36532         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36533         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36534         (gl_OPENAT_DEFAULTS): Remove macro.
36535
36536 2009-09-06  Bruno Haible  <bruno@clisp.org>
36537
36538         * modules/openat (configure.ac): Remove unneeded witness.
36539
36540 2009-09-06  Bruno Haible  <bruno@clisp.org>
36541
36542         Set errno to ENOSYS when a function is entirely unsupported.
36543         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36544         EOPNOTSUPP.
36545         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36546         * modules/chown (Depends-on): Remove errno.
36547
36548 2009-09-06  Bruno Haible  <bruno@clisp.org>
36549
36550         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36551
36552 2009-09-06  Bruno Haible  <bruno@clisp.org>
36553
36554         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36555
36556 2009-09-06  Ben Pfaff  <blp@gnu.org>
36557             Bruno Haible  <bruno@clisp.org>
36558
36559         Work around a glibc bug in strtok_r.
36560         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36561         Undefine if UNDEFINE_STRTOK_R is set.
36562         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36564         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36565         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36566         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36567         UNDEFINE_STRTOK_R.
36568         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36569
36570 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36571
36572         exclude: minor fix
36573         * lib/exclude.c: Include wctype.h
36574
36575 2009-09-06  Akim Demaille  <demaille@gostai.com>
36576
36577         bootstrap: improve error message
36578         * build-aux/bootstrap (find_tool): Upon failure, report the list
36579         of candidates.
36580         Honor the initial value of the envvar.
36581
36582 2009-09-05  Eric Blake  <ebb9@byu.net>
36583
36584         symlinkat: new module
36585         * modules/symlinkat: New file.
36586         * lib/symlinkat.c: Likewise.
36587         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36589         * modules/unistd (Makefile.am): Use them.
36590         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36591         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36592         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36593         * MODULES.html.sh (File system functions): Mention module.
36594         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36595         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36596         * modules/symlinkat-tests: New test.
36597         * tests/test-symlinkat.c: Likewise.
36598
36599         test-openat-safer: add more checks
36600         * tests/test-openat-safer.c (main): Check more code paths.
36601
36602 2009-09-05  Jim Meyering  <meyering@redhat.com>
36603
36604         syntax-check: detect unnecessary inclusion of openat.h
36605         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36606
36607 2009-09-05  Bruno Haible  <bruno@clisp.org>
36608
36609         Support towlower, towupper.
36610         * doc/posix-functions/towlower.texi: Mention module wctype.
36611         * doc/posix-functions/towupper.texi: Likewise.
36612         * lib/wctype.in.h (towlower, towupper): New functions.
36613         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36614         (ASSERT): New macro.
36615         (e): New variable.
36616         (main): Test also towlower, towupper. Test WEOF argument.
36617         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36618
36619 2009-09-05  Bruno Haible  <bruno@clisp.org>
36620
36621         Fix conversion behaviour when the input is invalid.
36622         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36623         mark occurring in first pass of indirect conversion.
36624         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36625         input.
36626         Found by clang's static analyzer.
36627
36628 2009-09-05  Bruno Haible  <bruno@clisp.org>
36629
36630         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36631         where direct conversion is possible.
36632
36633 2009-09-04  Eric Blake  <ebb9@byu.net>
36634
36635         openat: fail with ENOENT on empty name
36636         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36637         buffer.
36638
36639         link-follow: fix logic bug in prior patch
36640         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36641         reversed sense of yes and no in prior patch.  Avoid confusing
36642         compilation failure with desired semantics.
36643
36644         link-follow: accomodate mingw and cross-compilation
36645         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36646         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36647         cross-compilation results to -1, to make linkat easier to
36648         implement when cross-compiling.  Trivially support mingw.
36649         * modules/link-follow (configure.ac): Call new name.
36650         * NEWS: Mention this.
36651
36652 2009-09-03  Eric Blake  <ebb9@byu.net>
36653
36654         faccessat: compile replacement
36655         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36656         needed.
36657
36658         fts: fix compilation error
36659         * lib/fts.c (includes): Re-add "openat.h", for
36660         openat_needs_fchdir.
36661
36662         faccessat: new module
36663         * modules/faccessat: New file.
36664         * lib/faccessat.c: Likewise.
36665         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36667         * modules/unistd (Makefile.am): Use it.
36668         * lib/unistd.in.h (faccessat): Declare it.
36669         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36670         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36671         * MODULES.html.sh (File system functions): Mention it.
36672         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36673         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36674
36675         euidaccess: prefer POSIX over non-standard implementation
36676         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36677         * lib/euidaccess.c (euidaccess): Use it if available.
36678
36679         openat: make template easier to use
36680         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36681         AT_FUNC_F2 to be undefined.
36682         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36683         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36684         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36685         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36686         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36687         Likewise.
36688         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36689         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36690         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36691         Likewise.
36692
36693         openat: declare in POSIX headers
36694         * NEWS: Mention this.
36695         * modules/openat (configure.ac): Declare witnesses.
36696         (Depends-on): Add fcntl-h, sys_stat, unistd.
36697         (Include): Mention correct headers.
36698         * modules/fcntl-h (Depends-on): Add link-warning.
36699         (Files): Add openat.m4.
36700         (Makefile.am): Substitute witnesses.
36701         * modules/sys_stat (Files, Makefile.am): Likewise.
36702         * modules/unistd (Files, Makefile.am): Likewise.
36703         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36704         (gl_OPENAT_DEFAULTS): New macro.
36705         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36707         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36708         (SYS_STAT_H): Remove unused variable.
36709         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36710         * lib/fcntl--.h (includes): Remove unneeded header.
36711         * lib/openat-safer.c (includes): Likewise.
36712         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36713         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36714         appropriate headers.
36715         (__OPENAT_PREFIX): Delete.
36716         * lib/fcntl.in.h (openat): Provide declaration.
36717         (AT_FDCWD): Fix Solaris bug.
36718         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36719         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36720         * lib/fchmodat.c (includes):  Adjust to find declaration.
36721         * lib/fchownat.c (includes): Likewise.
36722         * lib/mkdirat.c (includes): Likewise.
36723         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36724         still visible.
36725
36726 2009-09-02  Eric Blake  <ebb9@byu.net>
36727
36728         errno: use consistently
36729         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36730         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36731         * lib/canonicalize.c (ELOOP): Likewise.
36732         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36733         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36734         * lib/lchown.c (EOPNOTSUPP): Likewise.
36735         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36736         * lib/savewd.c (ESTALE): Likewise.
36737         * lib/settime.c (ENOSYS): Likewise.
36738         * lib/utimens.c (ENOSYS): Likewise.
36739         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36740         * lib/chdir-safer.c (ELOOP): Likewise.
36741         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36742         * modules/c-stack (Depends-on): Add errno.
36743         * modules/canonicalize (Depends-on): Likewise.
36744         * modules/chdir-safer (Depends-on): Likewise.
36745         * modules/fdopendir (Depends-on): Likewise.
36746         * modules/inet_ntop (Depends-on): Likewise.
36747         * modules/inet_pton (Depends-on): Likewise.
36748         * modules/lchown (Depends-on): Likewise.
36749         * modules/openat (Depends-on): Likewise.
36750         * modules/savewd (Depends-on): Likewise.
36751         * modules/settime (Depends-on): Likewise.
36752         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36753
36754         fts: avoid leaking fds
36755         * modules/fts (Depends-on): Add cloexec.
36756         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36757         flag.
36758
36759         fts: make directory fds more robust
36760         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36761         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36762
36763         backupfile, chdir-long, fts, savedir: make safer
36764         * lib/backupfile.c (includes): Use "dirent--.h", since
36765         numbered_backup can write to stderr during readdir.
36766         * lib/savedir.c (includes): Likewise.
36767         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36768         emulation can write to stderr on failure.
36769         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36770         * lib/getcwd.c: Document why opendir_safer is unused.
36771         * lib/glob.c: Likewise.
36772         * lib/scandir.c: Likewise.
36773         * lib/openat-proc.c: Likewise, for open_safer.
36774         * modules/backupfile (Depends-on): Add dirent-safer.
36775         * modules/savedir (Depends-on): Likewise.
36776         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36777         * modules/chdir-long (Depends-on): Add openat-safer.
36778
36779         openat-safer: new module
36780         * modules/openat-safer: New file.
36781         * lib/openat-safer.c: Likewise.
36782         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36783         * lib/fcntl-safer.h (openat_safer): Declare.
36784         * lib/fcntl--.h (openat): Override.
36785         * MODULES.html.sh (File descriptor based I/O): Mention it.
36786         * lib/openat.h: Add double-inclusion guards.
36787         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36788         "fcntl--.h", so we can implement openat.
36789         * modules/openat-safer-tests: New test.
36790         * tests/test-openat-safer.c: New file.
36791
36792         dirent-safer: new module
36793         * modules/dirent-safer: New file.
36794         * lib/dirent--.h: Likewise.
36795         * lib/dirent-safer.h: Likewise.
36796         * lib/opendir-safer.c: Likewise.
36797         * m4/dirent-safer.m4: Likewise.
36798         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36799         * modules/dirent-safer-tests: New test.
36800         * tests/test-dirent-safer.c: New file.
36801         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36802
36803         fdopendir: optimize on mingw
36804         * lib/unistd.in.h (_gl_directory_name): New prototype.
36805         * lib/fchdir.c (_gl_directory_name): Implement it.
36806         (fchdir): Use it to simplify implementation.
36807         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36808         fchdir, when available, to avoid calling [f]chdir().
36809
36810         fdopendir: split into its own module
36811         * lib/openat.c (fdopendir): Move...
36812         * lib/fdopendir.c: ...into new file.
36813         * modules/fdopendir: New module.
36814         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36815         * modules/openat (Depends-on): Add fdopendir.
36816         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36817         fdopendir here.
36818         * modules/savedir (Depends-on): Only need fdopendir, not full
36819         openat.
36820         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36821         * lib/openat.h (fdopendir): Drop prototype.
36822         * lib/dirent.in.h (fdopendir): Provide prototype.
36823         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36824         * modules/dirent (Makefile.am): Substitute them.
36825         * MODULES.html.sh (File system functions): Mention it.
36826         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36827         * modules/fdopendir-tests: New file.
36828         * tests/test-fdopendir.c: Likewise.
36829
36830         fchdir: use more consistent macro convention
36831         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36832         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36833         REPLACE_FCHDIR, rather than relying on config.h macros.
36834         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36835         inside a single make-time REPLACE_FCHDIR block, rather than using
36836         the config.h FCHDIR_REPLACEMENT.
36837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36838         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36839         Manage fstat replacement.
36840         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36841         REPLACE_FCHDIR.
36842         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36843         (Makefile.am): Substitute REPLACE_FCHDIR.
36844         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36845         FCHDIR_REPLACEMENT.
36846         * lib/dup-safer.c (dup_safer): Likewise.
36847         * lib/dup2.c (rpl_dup2): Likewise.
36848         * lib/dup3.c (rpl_dup3): Likewise.
36849         * lib/open.c (rpl_open): Likewise.
36850
36851         fchdir: simplify error handling, and support dup3
36852         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36853         stdbool, malloc-posix, realloc-posix.
36854         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36855         (ensure_dirs_slot): Return false on allocation failure.
36856         (rpl_dup2): Delete.
36857         (_gl_register_dup): New function.
36858         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36859         (_gl_register_fd): Close fd on allocation failure.
36860         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36861         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36862         prototype.
36863         (rpl_dup2_fchdir): Delete prototype.
36864         * lib/open.c (open): Update caller.
36865         * lib/dup2.c (dup2): Track fchdir metadata.
36866         * lib/dup3.c (dup3): Likewise.
36867         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36869
36870 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36871
36872         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36873         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36874         don't pass arguments to AC_OUTPUT.
36875
36876 2009-09-02  Bruno Haible  <bruno@clisp.org>
36877
36878         * modules/mkdtemp (License): Relicense under LGPLv2+.
36879         Reported by Paolo Bonzini.
36880
36881 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36882
36883         Replace uses of obsolete autoconf macros in Jim's modules.
36884         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36885         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36886         can evoke a warning from autoconf when run with -Wobsolete
36887         enabled.  They were declared obsolete for good reasons (see
36888         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36889         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36890         should not continue using the deprecated macros.
36891         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36892         obsolete Autoconf macros with modern counterparts.
36893         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36894         * m4/dos.m4 (gl_AC_DOS): Likewise.
36895         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36896         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36897         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36898         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36899         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36900         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36901         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36902         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36903         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36904         Likewise.
36905         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36906         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36907         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36908         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36909         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36910         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36911
36912 2009-09-01  Eric Blake  <ebb9@byu.net>
36913
36914         fchdir: fix off-by-one bug in previous patch
36915         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36916         (_gl_unregister_fd): Delete useless if.
36917
36918 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36919
36920         maint.mk: sort the list of syntax-check rules
36921         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36922         easier to get a sense of progress when the rules are run sequentially
36923         and take a long time.
36924
36925 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36926
36927         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36928         * modules/netinet_in: Likewise.
36929         * modules/sys_file: Likewise.
36930         * modules/sys_ioctl: Likewise.
36931         * modules/sys_select: Likewise.
36932         * modules/sys_socket: Likewise.
36933         * modules/sys_stat: Likewise.
36934         * modules/sys_time: Likewise.
36935         * modules/sys_times: Likewise.
36936         * modules/sys_utsname: Likewise.
36937         * modules/sys_wait: Likewise.
36938
36939 2009-09-01  Jim Meyering  <meyering@redhat.com>
36940
36941         fts: help ensure that return values are not ignored
36942         * lib/fts_.h (__GNUC_PREREQ): Define.
36943         (__attribute_warn_unused_result__): Define.
36944         (fts_children, fts_close, fts_open, fts_read): Declare with
36945         __attribute_warn_unused_result__.
36946
36947         fts: fts_close now fails also when closing a dir file descriptor fails
36948         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36949         and propagate to caller, along with errno.
36950
36951         announce-gen: correct formatting in --help output
36952         * build-aux/announce-gen (usage): Move the one-line description in
36953         --help output "up", to where it belongs, just after Usage:.
36954
36955 2009-08-31  Eric Blake  <ebb9@byu.net>
36956
36957         fchdir: port to mingw
36958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36959         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36960         opened, then use a substitute.
36961         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36962         replacement.
36963         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36964         (_gl_register_fd): No need to check stat if open already filters
36965         all directories.
36966         (fchdir): Fix error condition to match POSIX.
36967         * modules/fchdir (Depends-on): Add sys_stat.
36968         * doc/posix-functions/open.texi (open): Document the limitation.
36969         * modules/fchdir-tests: New file.
36970         * tests/test-fchdir.c: Likewise.
36971
36972         canonicalize: allow cross-testing from cygwin to mingw
36973         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36974         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36975         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36976         Likewise.
36977         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36978         target does not support symlinks.
36979         * tests/test-canonicalize-lgpl.sh: Likewise.
36980
36981         chown: avoid compilation warning on mingw
36982         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36983         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36984         mingw.
36985         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36986         * modules/chown (Depends-on): Add errno.
36987
36988 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36989
36990         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36991         command.
36992
36993 2009-08-31  Jim Meyering  <meyering@redhat.com>
36994
36995         canonicalize: remove useless initialization
36996         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36997         initialization of local, "end".
36998
36999 2009-08-30  Bruno Haible  <bruno@clisp.org>
37000
37001         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37002         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37003         ENOSYS.
37004
37005 2009-08-30  Bruno Haible  <bruno@clisp.org>
37006
37007         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37008         /usr/xpg4/bin/tr when it exists.
37009         * tests/test-pipe-filter-gi1.sh: Likewise.
37010
37011 2009-08-30  Bruno Haible  <bruno@clisp.org>
37012
37013         Work around deficient /usr/bin/id program on Solaris.
37014         * tests/test-file-has-acl.sh (ID): New variable.
37015         * tests/test-set-mode-acl.sh (ID): Likewise.
37016         * tests/test-copy-acl.sh (ID): Likewise.
37017         * tests/test-copy-file.sh (ID): Likewise.
37018
37019 2009-08-30  Bruno Haible  <bruno@clisp.org>
37020
37021         New module 'xstriconveh'.
37022         * lib/xstriconveh.h: New file.
37023         * lib/xstriconveh.c: New file.
37024         * modules/xstriconveh: New file.
37025
37026 2009-08-30  Bruno Haible  <bruno@clisp.org>
37027
37028         Make it easier to use mem_cd_iconveh.
37029         * lib/striconveh.h (iconveh_t): New type.
37030         (iconveh_open, iconveh_close): New declarations.
37031         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37032         with a single 'const iconveh_t *' argument.
37033         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37034         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37035         with a single 'const iconveh_t *' argument.
37036         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37037         * tests/test-striconveh.c (main): Update.
37038         * NEWS: Mention the change.
37039
37040 2009-08-30  Bruno Haible  <bruno@clisp.org>
37041
37042         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37043         problem.
37044
37045 2009-08-30  Bruno Haible  <bruno@clisp.org>
37046
37047         Work around iconv_open problem on Solaris.
37048         * lib/iconv_open-solaris.gperf: New file.
37049         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37050         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37051         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37052         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37053         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37054         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37055
37056 2009-08-29  Jim Meyering  <meyering@redhat.com>
37057
37058         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37059         * top/maint.mk (cvs-check): Remove target; it was just an alias
37060         to the better-named vc-diff-check.
37061         (maintainer-distcheck): Remove rule.  It was used only from
37062         the (alpha/beta/major) target, and all of its commands but one
37063         were coreutils-specific.
37064         (vc-dist): Remove rule.
37065         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37066         Run vc-diff-check, not vc-dist.
37067         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37068
37069 2009-08-27  Bruno Haible  <bruno@clisp.org>
37070
37071         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37072         of 0.
37073
37074 2009-08-27  Bruno Haible  <bruno@clisp.org>
37075
37076         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37077         compilers.
37078         * doc/func.texi: Document the SunPRO C bug.
37079
37080 2009-08-27  Bruno Haible  <bruno@clisp.org>
37081
37082         Fix link error on Solaris.
37083         * tests/test-parse-duration.c (xstrdup): Remove function.
37084
37085 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37086
37087         ignore-value: handle pointer types, too
37088         * lib/ignore-value.h (__attribute__): Remove definition.
37089         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37090         of a more concise and more-often effective "(void) i" statement.
37091         (ignore_ptr): New function to suppress warnings from functions that
37092         return pointers, and to make it explicit that one function doesn't
37093         handle all cases.
37094
37095 2009-08-25  Bruno Haible  <bruno@clisp.org>
37096
37097         dup2: work around a Linux bug.
37098         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37099         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37100         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37101         Reported by Simon Josefsson.
37102
37103 2009-08-25  Jim Meyering  <meyering@redhat.com>
37104
37105         libguestfs uses gnulib
37106         * users.txt: Add libguestfs.
37107
37108 2009-08-24  Eric Blake  <ebb9@byu.net>
37109
37110         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37111         * lib/pipe2.c (includes): Add binary-io.h.
37112         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37113
37114 2009-08-24  Bruno Haible  <bruno@clisp.org>
37115
37116         Tolerate declared but missing accept4 syscall.
37117         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37118         available.
37119         * lib/sys_socket.in.h (accept4): If the function is already present,
37120         override it.
37121         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37122         * modules/accept4 (Makefile.am): Compile accept4.c always.
37123         Reported by Paolo Bonzini and Eric Blake.
37124
37125 2009-08-23  Bruno Haible  <bruno@clisp.org>
37126
37127         New module 'accept4'.
37128         * lib/sys_socket.in.h (accept4): New declaration.
37129         * lib/accept4.c: New file.
37130         * m4/accept4.m4: New file.
37131         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37132         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37133         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37134         HAVE_ACCEPT4.
37135         * modules/accept4: New file.
37136         * doc/glibc-functions/accept4.texi: Mention the new module.
37137
37138 2009-08-24  Jim Meyering  <meyering@redhat.com>
37139
37140         progname: also set global program_invocation_name, when possible
37141         Before this change, a libtool-enabled program that calls glibc's
37142         error function would report the program name as
37143         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37144         * modules/progname (configure.ac): Check for a declaration of
37145         program_invocation_name.
37146         * lib/progname.c:  Include <errno.h>.
37147         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37148         Set program_invocation_name.
37149
37150 2009-08-23  Bruno Haible  <bruno@clisp.org>
37151
37152         * lib/dup3.c: Include <string.h>.
37153
37154 2009-08-23  Bruno Haible  <bruno@clisp.org>
37155
37156         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37157         * lib/pipe2.c (pipe2): Likewise.
37158         Suggested by Eric Blake.
37159
37160 2009-08-23  Bruno Haible  <bruno@clisp.org>
37161
37162         Tolerate declared but missing dup3 syscall.
37163         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37164         * lib/unistd.in.h (dup3): If the function is already present,
37165         override it.
37166         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37167         * modules/dup3 (Makefile.am): Compile dup3.c always.
37168         Reported by Paolo Bonzini.
37169
37170 2009-08-23  Bruno Haible  <bruno@clisp.org>
37171
37172         Tolerate declared but missing pipe2 syscall.
37173         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37174         available.
37175         * lib/unistd.in.h (pipe2): If the function is already present,
37176         override it.
37177         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37178         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37179         Reported by Paolo Bonzini.
37180
37181 2009-08-23  Bruno Haible  <bruno@clisp.org>
37182
37183         * lib/pipe2.c (pipe2): Move #ifs inside function.
37184
37185 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37186
37187         quotearg: document limitations of quote_these_too
37188         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37189         those limitations are created.
37190         * lib/quotearg.h (set_char_quoting): Document that digits and
37191         letters that are special after backslash are not permitted.
37192         (quotearg_char): Cross-reference set_char_quoting documentation.
37193
37194 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37195
37196         quotearg: implement custom_quoting_style
37197         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37198         right_quote fields.
37199         (set_custom_quoting): New public function.
37200         (quotearg_buffer_restyled): Add left_quote and right_quote
37201         arguments, handle them very much like locale quoting, and update
37202         all uses.
37203         (quotearg_n_custom): New public function.
37204         (quotearg_n_custom_mem): New public function.
37205         (quotearg_custom): New public function.
37206         (quotearg_custom_mem): New public function.
37207         * lib/quotearg.h: Prototype and document new public functions.
37208         (enum quoting_style): For escape_quoting_style and
37209         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37210         ignored even though they're otherwise like c_quoting_style.
37211         Add custom_quoting_style member and document with comparison to
37212         clocale_quoting_style.
37213         * tests/test-quotearg.c (custom_quotes): New array.
37214         (custom_results): New array.
37215         (main): Extend to test custom quoting.
37216
37217 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37218
37219         quotearg: fix right quote escaping when it's in quote_these_too
37220         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37221         quote, be sure to prepend only one backslash.
37222         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37223         (main): Test it.
37224
37225 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37226
37227         quotearg-tests: test escaping of embedded locale quotes
37228         * tests/test-quotearg.c (struct result_strings): Add member for
37229         new input.
37230         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37231         (inputs): Add new input.
37232         (results_g): Add expected results.
37233         (flag_results): Likewise.
37234         (locale_results): Likewise.
37235         (compare_strings): Check those.
37236
37237 2009-08-23  Bruno Haible  <bruno@clisp.org>
37238
37239         Tests for module 'dup3'.
37240         * modules/dup3-tests: New file.
37241         * tests/test-dup3.c: New file.
37242
37243         New module 'dup3'.
37244         * lib/unistd.in.h (dup3): New declaration.
37245         * lib/dup3.c: New file.
37246         * m4/dup3.m4: New file.
37247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37248         HAVE_DUP3.
37249         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37250         * modules/dup3: New file.
37251         * doc/glibc-functions/dup3.texi: Mention the new module.
37252
37253 2009-08-23  Bruno Haible  <bruno@clisp.org>
37254
37255         Tweak the dup2 test.
37256         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37257         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37258         the test file is still empty. Fix argument order of lseek.
37259
37260 2009-08-23  Bruno Haible  <bruno@clisp.org>
37261
37262         Avoid test link errors when the modules getopt-gnu, gettext are used.
37263         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37265
37266 2009-08-23  Bruno Haible  <bruno@clisp.org>
37267
37268         Fix getdtablesize() on mingw.
37269         * lib/getdtablesize.c (getdtablesize): Implement differently.
37270         * lib/unistd.in.h (getdtablesize): Improve comment.
37271
37272 2009-08-23  Bruno Haible  <bruno@clisp.org>
37273
37274         New module 'mkostemp'.
37275         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37276         * lib/stdlib.in.h (mksotemp): New declaration.
37277         * lib/mkostemp.c: New file, from glibc with modifications.
37278         * lib/tempname.h (GT_FILE): Remove outdated comment.
37279         (gen_tempname): Add flags argument.
37280         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37281         (__GT_FILE): Map to 1.
37282         (small_open, large_open): Remove macros.
37283         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37284         * lib/mkstemp.c (mkstemp): Update.
37285         * lib/mkdtemp.c (mkdtemp): Likewise.
37286         * m4/mkostemp.m4: New file.
37287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37288         HAVE_MKOSTEMP.
37289         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37290         HAVE_MKOSTEMP.
37291         * modules/mkostemp: New file, based on modules/mkstemp.
37292         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37293         * NEWS: Mention the change.
37294
37295 2009-08-23  Bruno Haible  <bruno@clisp.org>
37296
37297         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37298         Reported by Eric Blake.
37299
37300 2009-08-23  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37303         Reported by Eric Blake.
37304
37305 2009-08-23  Bruno Haible  <bruno@clisp.org>
37306
37307         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37308         * modules/pipe2 (Depends-on): Likewise.
37309
37310 2009-08-23  Eric Blake  <ebb9@byu.net>
37311
37312         fcntl-h: add O_TTY_INIT support
37313         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37314         * tests/test-fcntl-h.c (o): Test it.
37315         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37316
37317         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37318         * modules/fcntl: Move <fcntl.h> header replacement...
37319         * modules/fcntl-h: ...to new name, so as not to collide with
37320         like-named function.
37321         * tests/test-fcntl.c: Rename...
37322         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37323         * modules/fcntl-tests: Rename...
37324         * modules/fcntl-h-tests: ...to this.  Update test file name.
37325         * modules/chdir-long (Depends-on): Update clients.
37326         * modules/chdir-safer (Depends-on): Likewise.
37327         * modules/fcntl-safer (Depends-on): Likewise.
37328         * modules/fts (Depends-on): Likewise.
37329         * modules/mkancesdirs (Depends-on): Likewise.
37330         * modules/mkdir-p (Depends-on): Likewise.
37331         * modules/open (Depends-on): Likewise.
37332         * modules/savewd (Depends-on): Likewise.
37333         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37334         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37335
37336 2009-08-22  Bruno Haible  <bruno@clisp.org>
37337
37338         * modules/binary-io (License): Relicense under LGPL.
37339         * modules/pipe2 (License): Likewise.
37340
37341 2009-08-22  Bruno Haible  <bruno@clisp.org>
37342
37343         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37344         return value.
37345         * lib/pipe-filter-gi.c (filter_init): Likewise.
37346         Reported by Eric Blake.
37347
37348 2009-08-22  Bruno Haible  <bruno@clisp.org>
37349
37350         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37351         * modules/pipe (Depends-on): Add pipe2.
37352
37353 2009-08-22  Bruno Haible  <bruno@clisp.org>
37354
37355         Tests for module 'pipe2'.
37356         * modules/pipe2-tests: New file.
37357         * tests/test-pipe2.c: New file.
37358
37359         New module 'pipe2'.
37360         * lib/unistd.in.h (pipe2): New declaration.
37361         * lib/pipe2.c: New file.
37362         * m4/pipe2.m4: New file.
37363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37364         HAVE_PIPE2.
37365         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37366         * modules/pipe2: New file.
37367         * doc/glibc-functions/pipe2.texi: Mention the new module.
37368
37369 2009-08-22  Bruno Haible  <bruno@clisp.org>
37370
37371         Reference some new glibc functions.
37372         * doc/glibc-functions/accept4.texi: New file.
37373         * doc/glibc-functions/dup3.texi: New file.
37374         * doc/glibc-functions/mkostemp.texi: New file.
37375         * doc/glibc-functions/pipe2.texi: New file.
37376         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37377         (Glibc sys/socket.h): Refer to accept4.
37378         (Glibc unistd.h): Refer to dup3, pipe2.
37379         Reported by Eric Blake.
37380
37381 2009-08-22  Jim Meyering  <meyering@redhat.com>
37382             Bruno Haible  <bruno@clisp.org>
37383
37384         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37385         This makes it so packages using automake-1.11's silent-rules option
37386         can print e.g., a single "GEN    configmake.h" line, rather than
37387         the 30+ statements that perform the job.  If you want to see the
37388         actual commands, you can still run "make V=1".
37389         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37390         so that make output is abbreviated when those variables are defined
37391         appropriately.
37392         * modules/argz: Likewise.
37393         * modules/arpa_inet: Likewise.
37394         * modules/byteswap: Likewise.
37395         * modules/configmake: Likewise.
37396         * modules/dirent: Likewise.
37397         * modules/errno: Likewise.
37398         * modules/fcntl: Likewise.
37399         * modules/float: Likewise.
37400         * modules/fnmatch: Likewise.
37401         * modules/getopt-posix: Likewise.
37402         * modules/glob: Likewise.
37403         * modules/iconv_open: Likewise.
37404         * modules/inttypes: Likewise.
37405         * modules/localcharset: Likewise.
37406         * modules/locale: Likewise.
37407         * modules/math: Likewise.
37408         * modules/netdb: Likewise.
37409         * modules/netinet_in: Likewise.
37410         * modules/poll: Likewise.
37411         * modules/posix_spawnp-tests: Likewise.
37412         * modules/sched: Likewise.
37413         * modules/search: Likewise.
37414         * modules/selinux-h: Likewise.
37415         * modules/signal: Likewise.
37416         * modules/spawn: Likewise.
37417         * modules/stdarg: Likewise.
37418         * modules/stdbool: Likewise.
37419         * modules/stddef: Likewise.
37420         * modules/stdint: Likewise.
37421         * modules/stdio: Likewise.
37422         * modules/stdlib: Likewise.
37423         * modules/string: Likewise.
37424         * modules/strings: Likewise.
37425         * modules/sys_file: Likewise.
37426         * modules/sys_ioctl: Likewise.
37427         * modules/sys_select: Likewise.
37428         * modules/sys_socket: Likewise.
37429         * modules/sys_stat: Likewise.
37430         * modules/sys_time: Likewise.
37431         * modules/sys_times: Likewise.
37432         * modules/sys_utsname: Likewise.
37433         * modules/sys_wait: Likewise.
37434         * modules/sysexits: Likewise.
37435         * modules/time: Likewise.
37436         * modules/unistd: Likewise.
37437         * modules/wchar: Likewise.
37438         * modules/wctype: Likewise.
37439
37440 2009-08-22  Jim Meyering  <meyering@redhat.com>
37441
37442         announce-gen: detect write failure
37443         * build-aux/announce-gen: Add Coda at end.
37444         Remove equivalent-but-more-verbose block at top.
37445
37446 2009-08-19  Akim Demaille  <demaille@gostai.com>
37447
37448         bootstrap: --help to stdout.
37449         * bootstrap (usage): Don't send --help to stderr.
37450         Use a here doc instead of a long string.
37451
37452 2009-08-21  Eric Blake  <ebb9@byu.net>
37453
37454         test-popen-safer: split from test-popen
37455         * tests/test-popen.c (main): Move...
37456         * tests/test-popen.h: ...into new file.
37457         * tests/test-popen-safer2.c: New file.
37458         * modules/popen-tests (Files): Add test-popen.h.
37459         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37460         Suggested by Bruno Haible.
37461
37462         test-fcntl-safer: split from test-open
37463         * tests/test-open.c (main): Move...
37464         * tests/test-open.h: ...into new file.
37465         * tests/test-fcntl-safer.c: New file.
37466         * modules/open-tests (Files): Add test-open.h.
37467         * modules/fcntl-safer-tests: New file.
37468         Suggested by Bruno Haible.
37469
37470         test-fopen-safer: split from test-fopen
37471         * tests/test-fopen.c (main): Move...
37472         * tests/test-fopen.h: ...into new file.
37473         * tests/test-fopen-safer.c: New file.
37474         * modules/fopen-tests (Files): Add test-fopen.h.
37475         * modules/fopen-safer-tests: New file.
37476         Suggested by Bruno Haible.
37477
37478 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37479
37480         popen-safer: test O_CLOEXEC at run-time.
37481         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37482
37483 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37484
37485         fcntl: move more flags to the header
37486         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37487         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37488         * lib/fcntl.in.h: Do both things here.
37489
37490 2009-08-21  Jim Meyering  <meyering@redhat.com>
37491
37492         consistently remove $@-t before redirecting to it
37493         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37494         * modules/alloca-opt: Likewise.
37495         * modules/byteswap: Likewise.
37496         * modules/fnmatch: Likewise.
37497         * modules/getopt-posix: Likewise.
37498         * modules/glob: Likewise.
37499         * modules/poll: Likewise.
37500         * modules/posix_spawnp-tests: Likewise.
37501         * modules/sys_socket: Likewise.
37502         * modules/sysexits: Likewise.
37503
37504 2009-08-21  Eric Blake  <ebb9@byu.net>
37505
37506         popen: simplify access to original popen
37507         * lib/popen.c (rpl_popen): No need to worry about popen being a
37508         macro.
37509         Reported by Bruno Haible.
37510
37511 2009-08-20  Eric Blake  <ebb9@byu.net>
37512
37513         build: avoid some compiler warnings
37514         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37515         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37516         type.
37517         (new_exclude_segment, excluded_file_pattern_p)
37518         (excluded_file_name_p): Reduce scope.
37519         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37520         old-style declaration.
37521
37522 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37523
37524         * tests/test-exclude1.sh: Handle Windows EOL.
37525         * tests/test-exclude2.sh: Likewise.
37526         * tests/test-exclude3.sh: Likewise.
37527         * tests/test-exclude4.sh: Likewise.
37528         * tests/test-exclude5.sh: Likewise.
37529         * tests/test-exclude6.sh: Likewise.
37530         * tests/test-exclude7.sh: Likewise.
37531
37532 2009-08-19  Akim Demaille  <demaille@gostai.com>
37533
37534         bootstrap: find sha1sum when named gsha1sum.
37535         * bootstrap (find_tool): New.
37536         ($SHA1SUM): New.
37537         Use it.
37538
37539 2009-08-20  Jim Meyering  <meyering@redhat.com>
37540
37541         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37542         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37543         expression that converts "." in a file name to "\." in the resulting
37544         regexp.  Start with a dummy statement, so that prior shell variable
37545         definitions are expanded portably.  Reported by Simon Josefsson.
37546
37547 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37548
37549         Fix polling for writeability of a screen buffer.
37550         * lib/poll.c: Distinguish input and screen buffers for the
37551         Win32 implementation.
37552         * lib/select.c: Likewise.
37553
37554 2009-08-19  Eric Blake  <ebb9@byu.net>
37555
37556         popen-safer: prevent popen from clobbering std descriptors
37557         * modules/popen-safer: New file.
37558         * lib/popen-safer.c: Likewise.
37559         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37560         * lib/stdio--.h (popen): Provide override.
37561         * lib/stdio-safer.h (popen_safer): Provide declaration.
37562         * tests/test-popen.c (includes): Partially test this.
37563         * modules/popen-safer-tests: New file, for more tests.
37564         * tests/test-popen-safer.c: Likewise.
37565         * MODULES.html.sh (file stream based Input/Output): Mention it.
37566
37567         tests: test some of the *-safer modules
37568         * modules/fopen-safer (Depends-on): Add fopen.
37569         * modules/fcntl-safer (Depends-on): Add fcntl.
37570         * modules/stdlib-safer (Depends-on): Add stdlib.
37571         (configure.ac): Set indicator.
37572         * modules/unistd-safer (configure.ac): Likewise.
37573         * modules/tmpfile-safer (configure.ac): Likewise.
37574         (Depends-on): Add tmpfile.
37575         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37576         active.
37577         * tests/test-fopen.c (includes): Test safer versions when they are
37578         in use.
37579         * tests/test-open.c (includes): Likewise.
37580
37581         popen: fix cygwin 1.5 bug when stdin closed
37582         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37583         * modules/popen: New file.
37584         * modules/popen-tests: Likewise.
37585         * tests/test-popen.c: Likewise.
37586         * m4/popen.m4: Likewise.
37587         * lib/popen.c: Likewise.
37588         * lib/stdio.in.h (popen): New declaration.
37589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37590         * modules/stdio (Makefile.am): Likewise.
37591         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37592
37593 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37594
37595         maint.mk: give full control over update-copyright exclusions
37596         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37597         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37598         (update-copyright): Don't force inclusion of top-level
37599         ChangeLog.  Don't force exclusion of all COPYING files, but make
37600         them the default exclusion instead.
37601
37602 2009-08-16  Bruno Haible  <bruno@clisp.org>
37603
37604         Fix test failures on Solaris 10.
37605         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37606         tests when Solaris iconv() is used.
37607         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37608         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37609         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37610         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37611         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37612
37613 2009-08-16  Bruno Haible  <bruno@clisp.org>
37614
37615         Fix test failures on Solaris 10.
37616         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37617         'tr' program and pass it as first argument.
37618         * tests/test-pipe-filter-gi1.sh: Likewise.
37619         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37620         program as first argument.
37621         * tests/test-pipe-filter-gi1.c (main): Likewise.
37622
37623 2009-08-16  Eric Blake  <ebb9@byu.net>
37624
37625         fpurge: fix previous commits
37626         * modules/fpurge (Makefile.am): Make replacement conditional,
37627         partially reverting 2007-04-29 change; missed in previous
37628         attempt.
37629         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37630         is missing.
37631
37632 2009-08-16  Bruno Haible  <bruno@clisp.org>
37633
37634         Clarify fpurge's effect on the file position.
37635         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37636         * tests/test-fpurge.c (main): Make a second pass for checking the file
37637         position.
37638
37639 2009-08-16  Bruno Haible  <bruno@clisp.org>
37640
37641         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37642         declaration of fpurge is missing.
37643         * tests/test-fpurge.c (main): Check that the file has not more contents
37644         than expected. Close the file before removing it.
37645
37646 2009-08-15  Eric Blake  <ebb9@byu.net>
37647
37648         fpurge: don't wrap working cygwin implementation
37649         * lib/fpurge.c (fpurge): Fix comment typo.
37650         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37651         1.7 to avoid replacement.
37652         * tests/test-fpurge.c (main): Enhance test.
37653
37654 2009-08-15  Eric Blake  <ebb9@byu.net>
37655         and Jim Meyering  <meyering@redhat.com>
37656
37657         test-update-copyright: skip if perl is insufficient
37658         * tests/test-update-copyright.sh: Failure to run maintainer tool
37659         should not cause testsuite failure on cygwin 1.5.
37660
37661 2009-08-14  Eric Blake  <ebb9@byu.net>
37662
37663         doc: mention more functions added in cygwin 1.7.0
37664         * doc/posix-headers/limits.texi (limits.h): Update for recent
37665         cygwin additions.
37666         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37667         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37668         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37669         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37670         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37671
37672 2009-08-14  Eric Blake  <ebb9@byu.net>
37673
37674         maint.mk: simplify update-copyright rule
37675         * top/maint.mk (update-copyright-local): Delete, and document how
37676         to do it in cfg.mk instead.
37677         (update-copyright-exclude-regexp): Delete, and document how to do
37678         it in .x-update-copyright instead.
37679         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37680         exclude ChangeLog.
37681
37682 2009-08-14  Bruno Haible  <bruno@clisp.org>
37683
37684         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37685
37686 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37687
37688         maint.mk: support update-copyright-env
37689         * top/maint.mk (update-copyright-env): Define place-holder.
37690         (update-copyright): Expand $(update-copyright-env) before
37691         invoking update-copyright.
37692
37693 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37694
37695         update-copyright: implement forced reformatting
37696         * build-aux/update-copyright: Implement and document
37697         UPDATE_COPYRIGHT_FORCE.
37698         * tests/test-update-copyright.sh: Test it.
37699
37700 2009-08-14  Eric Blake  <ebb9@byu.net>
37701         and Bruno Haible  <bruno@clisp.org>
37702
37703         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37704         * tests/test-locale.c: Revert previous patch related to NULL.
37705         * tests/test-stdio.c: Likewise.
37706         * tests/test-stdlib.c: Likewise.
37707         * tests/test-string.c: Likewise.
37708         * tests/test-unistd.c: Likewise.
37709         * modules/time-tests (Depends-on): Add verify.
37710         * modules/wchar-tests (Depends-on): Likewise.
37711         * tests/test-time.c: Test for NULL compliance.
37712         * tests/test-wchar.c: Likewise.
37713         * modules/locale (Depends-on): Add stddef.
37714         * modules/stdio (Depends-on): Likewise.
37715         * modules/stdlib (Depends-on): Likewise.
37716         * modules/string (Depends-on): Likewise.
37717         * modules/time (Depends-on): Likewise.
37718         * modules/unistd (Depends-on): Likewise.
37719         * modules/wchar (Depends-on): Likewise.
37720         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37721         * lib/stdlib.in.h (includes): Likewise.
37722         * lib/string.in.h (includes): Likewise.
37723         * lib/time.in.h (includes): Likewise.
37724         * lib/unistd.in.h (includes): Likewise.
37725         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37726         replaced.
37727         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37728         * m4/stddef_h.m4: New file.
37729         * modules/stddef: Likewise.
37730         * lib/stddef.in.h: Likewise.
37731         * modules/stddef-tests: Likewise.
37732         * tests/test-stddef.c: Likewise.
37733         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37734         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37735         * doc/posix-headers/locale.texi (locale.h): Likewise.
37736         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37737         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37738         * doc/posix-headers/string.texi (string.h): Likewise.
37739         * doc/posix-headers/time.texi (time.h): Likewise.
37740         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37741         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37742
37743 2009-08-14  Eric Blake  <ebb9@byu.net>
37744
37745         doc: improve git diff of texinfo files
37746         * .gitattributes: Add rule for *.texi files, with hint on how to
37747         use it.
37748         Copied from m4, and based on a report by Bruno Haible.
37749
37750 2009-08-14  Bruno Haible  <bruno@clisp.org>
37751
37752         Disable multithread support by default on Cygwin 1.5.x for real.
37753         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37754
37755 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37756
37757         update-copyright: much ado about intervals
37758         * build-aux/update-copyright: Implement and document
37759         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37760         of copyright year intervals.
37761         Also, document UPDATE_COPYRIGHT_YEAR.
37762         * tests/test-update-copyright.sh: Test it.
37763
37764         update-copyright: convert 2-digit to 4-digit years
37765         * build-aux/update-copyright: Implement and document.
37766         * tests/test-update-copyright.sh: Update.
37767
37768 2009-08-14  Jim Meyering  <meyering@redhat.com>
37769
37770         test-exclude: avoid coreutils "make check" failure
37771         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37772         just as in test-argmatch.c.
37773
37774 2009-08-13  Eric Blake  <ebb9@byu.net>
37775
37776         test-dup2: fix bad assumption
37777         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37778         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37779
37780         test-version-etc: fix CRLF portability issue
37781         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37782         recognize \r.
37783         * tests/test-argp-version-etc-1.sh: Likewise.
37784
37785         getopt: update client modules
37786         * modules/argp (Depends-on): Use getopt-gnu.
37787         * modules/git-merge-changelog (Depends-on): Likewise.
37788         * modules/long-options (Depends-on): Likewise.
37789         * modules/xstrtol (Depends-on): Likewise.
37790
37791 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37792
37793         * tests/test-version-etc.sh: Don't fail on different
37794         project/version.  Don't fail on CRLF differences.  Rewrite to use
37795         multiple -e instead of multiple sed forks, suggested by Eric Blake
37796         <ebb9@byu.net>.
37797         * tests/test-argp-version-etc-1.sh: Likewise.
37798
37799 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37800
37801         * tests/test-version-etc.sh: Don't fail on different
37802         project/version.
37803
37804 2009-08-12  Bruno Haible  <bruno@clisp.org>
37805
37806         Tests for modules 'getopt-posix', 'getopt-gnu'.
37807         * modules/getopt-posix-tests: New file.
37808         * tests/test-getopt.c: New file.
37809         * tests/test-getopt.h: New file.
37810         * tests/test-getopt_long.h: New file.
37811
37812         New modules 'getopt-posix', 'getopt-gnu'.
37813         * modules/getopt-gnu: New file, renamed from modules/getopt.
37814         * modules/getopt-posix: New file.
37815         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37816         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37817         (gl_GETOPT): Remove macro.
37818         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37819         Disable the test against BSD systems that declare optreset. Test
37820         against mingw bug. Test against lack of support of optional arguments
37821         on many platforms.
37822         * doc/glibc-headers/getopt.texi: Update module name and list of
37823         relevant platforms.
37824         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37825         'getopt-gnu' and more portability problems.
37826         * NEWS: Mention the changes.
37827
37828 2009-08-12  Bruno Haible  <bruno@clisp.org>
37829
37830         Ensure that optarg etc. get declared by <unistd.h>.
37831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37832         AC_USE_SYSTEM_EXTENSIONS.
37833         * modules/getopt (Depends-on): Add 'extensions'.
37834
37835 2009-08-12  Bruno Haible  <bruno@clisp.org>
37836
37837         Avoid test link errors.
37838         * modules/pipe-filter-ii-tests (Makefile.am): Define
37839         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37840         * modules/pipe-filter-gi-tests (Makefile.am): Define
37841         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37843
37844 2009-08-12  Bruno Haible  <bruno@clisp.org>
37845
37846         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37847         gl_GETOPT_SUBSTITUTE before.
37848         (gl_GETOPT): Use it.
37849         * m4/argp.m4 (gl_ARGP): Update.
37850         Reported by Sergey Poznyakoff.
37851
37852         * m4/getopt.m4: Reorder macros.
37853         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37854         (gl_GETOPT_SUBSTITUTE): Remove macro.
37855
37856 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37857
37858         Minor improvement in gitlog-to-changelog
37859
37860         * build-aux/gitlog-to-changelog: New option `--format' makes
37861         output format string configurable.
37862
37863 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37864
37865         Optimize exclude: use hash tables for non-wildcard patterns.
37866
37867         * lib/exclude.c: Include hash.h and mbuiter.h
37868         (struct exclude_pattern, exclude_segment): New data types.
37869         (struct exclude): Rewrite.
37870         (fnmatch_pattern_has_wildcards): New function.
37871         (new_exclude_segment, free_exclude_segment): New functions.
37872         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37873         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37874         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37875         * modules/exclude: Depend on hash and mbuiter.
37876
37877         * modules/exclude-tests: New file.
37878         * tests/test-exclude.c: New file.
37879         * tests/test-exclude1.sh: New file.
37880         * tests/test-exclude2.sh: New file.
37881         * tests/test-exclude3.sh: New file.
37882         * tests/test-exclude4.sh: New file.
37883         * tests/test-exclude5.sh: New file.
37884         * tests/test-exclude6.sh: New file.
37885         * tests/test-exclude7.sh: New file.
37886
37887 2009-08-12  Bruno Haible  <bruno@clisp.org>
37888
37889         Ensure that getopt() gets declared by <unistd.h>.
37890         * lib/unistd.in.h: Conditionally include getopt.h.
37891         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37892         Set GNULIB_UNISTD_H_GETOPT.
37893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37894         GNULIB_UNISTD_H_GETOPT.
37895         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37896
37897 2009-08-12  Bruno Haible  <bruno@clisp.org>
37898
37899         Clarify logic.
37900         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37901         gl_replace_getopt instead of GETOPT_H.
37902
37903 2009-08-12  Bruno Haible  <bruno@clisp.org>
37904
37905         * m4/getopt.m4: Add comments.
37906
37907 2009-08-12  Bruno Haible  <bruno@clisp.org>
37908
37909         Disable multithread support by default on Cygwin 1.5.x.
37910         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37911         set gl_use_threads=no if not specified otherwise.
37912
37913 2009-08-11  Bruno Haible  <bruno@clisp.org>
37914
37915         Avoid compilation error on NetBSD 5.0.
37916         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37917         * tests/test-stdio.c: Likewise.
37918         * tests/test-stdlib.c: Likewise.
37919         * tests/test-string.c: Likewise.
37920         * tests/test-unistd.c: Likewise.
37921         Reported by Greg Troxel <gdt@ir.bbn.com>
37922         at <https://savannah.gnu.org/support/?106973>.
37923
37924 2009-08-11  Bruno Haible  <bruno@clisp.org>
37925
37926         * modules/dup2-tests (Depends-on): Remove close.
37927
37928         Undo 2009-07-19 commit.
37929         * modules/acl-tests (Depends-on): Remove close.
37930         * modules/binary-io-tests (Depends-on): Likewise.
37931         * modules/closein-tests (Depends-on): Likewise.
37932         * modules/flock-tests (Depends-on): Likewise.
37933         * modules/fsync-tests (Depends-on): Likewise.
37934         * modules/lseek-tests (Depends-on): Likewise.
37935         * modules/pipe-tests (Depends-on): Likewise.
37936         * modules/posix_spawn-tests (Depends-on): Likewise.
37937         * modules/posix_spawnp-tests (Depends-on): Likewise.
37938         * modules/stat-time-tests (Depends-on): Likewise.
37939         * modules/yesno-tests (Depends-on): Likewise.
37940
37941 2009-08-10  Bruno Haible  <bruno@clisp.org>
37942
37943         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37944
37945 2009-08-10  Bruno Haible  <bruno@clisp.org>
37946
37947         Fix a gcc warning.
37948         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37949
37950 2009-08-10  Bruno Haible  <bruno@clisp.org>
37951
37952         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37953         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37954         not only the first time.
37955         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37956         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37957         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37958         is 1, not only the the first time.
37959
37960 2009-08-10  Bruno Haible  <bruno@clisp.org>
37961
37962         Make it possible to use module 'gethostname' without module 'close'.
37963         * lib/unistd.in.h (close): Evoke a link error only if
37964         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37966         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37967         * modules/unistd (Makefile.am): Substitute
37968         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37969         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37970         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37971         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37972         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37973         * modules/sys_ioctl (Makefile.am): Substitute
37974         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37975         * modules/socket (configure.ac): On native Windows, set
37976         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37977         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37978         Reported by Sam Steingold <sds@gnu.org>.
37979
37980 2009-08-10  Bruno Haible  <bruno@clisp.org>
37981
37982         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37983         * modules/ioctl (configure.ac): Likewise.
37984
37985 2009-08-10  Bruno Haible  <bruno@clisp.org>
37986
37987         Avoid collision between gnulib wrapper and libintl wrapper.
37988         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37989         already defined in intl/printf.c.
37990         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37991         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37992
37993 2009-08-09  Bruno Haible  <bruno@clisp.org>
37994
37995         Make <sys/select.h> really self-contained, also on Solaris 10.
37996         * lib/sys_select.in.h: Include <string.h>.
37997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37998         Solaris 10 problem.
37999         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38000         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38001         Reported by Jim Meyering.
38002
38003 2009-08-09  Bruno Haible  <bruno@clisp.org>
38004
38005         Avoid warnings from 'aclocal' that are due to a use of macro name
38006         AM_XGETTEXT_OPTION that is not defined in automake.
38007         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38008         automake.
38009         * modules/error (configure.ac): Likewise.
38010         * modules/propername (configure.ac): Likewise.
38011         * modules/vasprintf (configure.ac): Likewise.
38012         * modules/verror (configure.ac): Likewise.
38013         * modules/xprintf (configure.ac): Likewise.
38014         * modules/xvasprintf (configure.ac): Likewise.
38015
38016 2009-08-08  Bruno Haible  <bruno@clisp.org>
38017
38018         Avoid compilation error in C++ mode.
38019         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38020         Reported by Sam Steingold <sds@gnu.org>.
38021
38022 2009-08-08  Bruno Haible  <bruno@clisp.org>
38023
38024         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38025         for the various Unix platforms.
38026         * doc/posix-headers/limits.texi: Update platforms list regarding
38027         HOST_NAME_MAX.
38028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38029
38030 2009-08-07  Jim Meyering  <meyering@redhat.com>
38031
38032         selinux-at: fix typo in a comment
38033         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38034         Spotted by Paolo Bonzini.
38035
38036         selinux-at: remove redundant m4 code, add documentation
38037         * modules/selinux-at (configure.ac): Remove redundant code.
38038         LIB_SELINUX is already set via the dependent module, selinux-h.
38039         (Include): Add quotes around selinux-at.h.
38040         * lib/selinux-at.h: Add documentation.
38041         Reported by Bruno Haible in
38042         http://marc.info/?l=gnulib-bug&m=124958988300749
38043
38044 2009-08-07  Bruno Haible  <bruno@clisp.org>
38045
38046         Avoid link error on MacOS X 10.3 and 10.4.
38047         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38048         on non-ELF systems.
38049         * lib/argp-pv.c (argp_program_version): Likewise.
38050         Reported by Simon Josefsson.
38051
38052 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38053
38054         * tests/test-version-etc.sh: Use $EXEEXT.
38055
38056 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38057
38058         update-copyright: update documentation to point to maint.mk
38059         * build-aux/update-copyright: Here.
38060
38061 2009-08-06  Jim Meyering  <meyering@redhat.com>
38062
38063         maint.mk: support update-copyright-local
38064         * top/maint.mk (update-copyright-local): Define place-holder.
38065         (update-copyright): Depend on $(update-copyright-local).
38066
38067 2009-08-06  Jim Meyering  <meyering@redhat.com>
38068
38069         selinux-at: new module
38070         Initially written for coreutils, this module will soon be
38071         used by findutils, too.
38072         * MODULES.html.sh [Misc]: Add selinux-at.
38073         * lib/selinux-at.h: New file, from coreutils.
38074         * lib/selinux-at.c: Likewise.
38075         * modules/selinux-at: Likewise.
38076         (License): Change from LGPL to GPL, since it depends
38077         on the GPL'd openat module.
38078
38079         doc: update README
38080         * README: Remove references to cogito.
38081         Remove cvs-repo-updating instructions from 2007.
38082         Don't imply that CVS is better if you have limited disk space.
38083
38084 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38085
38086         update-copyright: support C-style comments
38087         * build-aux/update-copyright: Implement and document.
38088         * tests/test-update-copyright.sh: Test.
38089
38090 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38091
38092         update-copyright: support omitted "(C)"
38093         * build-aux/update-copyright: Implement and document.  Also,
38094         allow variable whitespace before "(C)".
38095         * tests/test-update-copyright.sh: Test.
38096
38097 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38098
38099         update-copyright: don't trip on non-FSF copyright statements
38100         * build-aux/update-copyright: Fix so that the first correctly
38101         formatted FSF copyright statement is recognized no matter what
38102         appears before it.  Update documentation.
38103         * tests/test-update-copyright.sh: Test that.
38104
38105 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38106
38107         update-copyright: clean up code a little
38108         * build-aux/update-copyright: Append "_re" to the name of any
38109         variable holding a regular expression.
38110         Replace "old" and "new" with "stmt" in variable names.
38111         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38112         handled correctly.
38113         Format code more consistently.
38114
38115 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38116
38117         update-copyright-tests: improve portability
38118         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38119         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38120
38121 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38122
38123         update-copyright: support @copyright{} and &copy;
38124         * build-aux/update-copyright: Implement and document.
38125         * tests/test-update-copyright.sh: Test.
38126
38127 2009-08-04  Jim Meyering  <meyering@redhat.com>
38128
38129         update-copyright-tests: correctly test EOL=\r\n handling
38130         * tests/test-update-copyright.sh: Put \r at the end of some lines
38131         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38132
38133         maint.mk: make update-copyright exclusion list more configurable
38134         * top/maint.mk (update-copyright): Default to excluding COPYING,
38135         but allow an override, in case someone does want to update that file.
38136
38137         maint.mk: don't update copyright date in COPYING
38138         * top/maint.mk (update-copyright): Exclude COPYING.
38139
38140         maint.mk: add a copyright-updating rule
38141         * top/maint.mk (update-copyright): New rule.
38142         Derived from coreutils/Makefile.am.
38143
38144         update-copyright: rename some variables
38145         * build-aux/update-copyright: Rename a few variables for clarity.
38146         Tweak syntax.  List Joel E. Denny as coauthor.
38147
38148 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38149
38150         update-copyright: fix bug for 2-digit last year and add tests
38151         * build-aux/update-copyright: Fix bug.
38152         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38153         specified.
38154         * modules/update-copyright-tests: New
38155         * tests/test-update-copyright.sh: New.
38156
38157 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38158
38159         update-copyright: handle leading tabs in line prefix
38160         * build-aux/update-copyright: Count leading tabs as 8 spaces
38161         when computing margin.  This helps with the formatting of
38162         ChangeLogs, for example.
38163         Fix documentation a little.
38164
38165 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38166
38167         update-copyright: support EOL=\r\n
38168         * build-aux/update-copyright: Implement that.
38169
38170 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38171
38172         update-copyright: automatically format copyright statements
38173         * build-aux/update-copyright: Implement that.
38174         Also, be a little more predictable and safer by always failing
38175         when the full copyright format is not perfectly recognized as an
38176         unbroken whole.  Discussed at
38177         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38178         Rewrite documentation.
38179
38180 2009-08-03  Bruno Haible  <bruno@clisp.org>
38181
38182         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38183
38184 2009-08-02  Bruno Haible  <bruno@clisp.org>
38185
38186         Tests for module 'uname'.
38187         * modules/uname-tests: New file.
38188         * tests/test-uname.c: New file.
38189
38190         New module 'uname'.
38191         * lib/uname.c: New file.
38192         * m4/uname.m4: New file.
38193         * modules/uname: New file.
38194         * doc/posix-functions/uname.texi: Mention the new module.
38195
38196 2009-08-02  Bruno Haible  <bruno@clisp.org>
38197
38198         Tests for module 'sys_utsname'.
38199         * modules/sys_utsname-tests: New file.
38200         * tests/test-sys_utsname.c: New file.
38201
38202         New module 'sys_utsname'.
38203         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38204         * m4/sys_utsname_h.m4: New file.
38205         * modules/sys_utsname: New file.
38206         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38207
38208 2009-08-02  Bruno Haible  <bruno@clisp.org>
38209
38210         Implicitly initialize the sockets library.
38211         * lib/gethostname.c: Include sockets.h.
38212         (rpl_gethostname): Invoke gl_sockets_startup.
38213         * lib/socket.c: Include sockets.h.
38214         (rpl_socket): Invoke gl_sockets_startup.
38215         * modules/gethostname (Depends-on): Add sockets.
38216         * modules/socket (Depends-on): Likewise.
38217         * tests/test-poll.c: Don't include sockets.h.
38218         (main): Don't invoke gl_sockets_startup.
38219         * tests/test-select.c: Don't include sockets.h.
38220         (main): Don't invoke gl_sockets_startup.
38221
38222 2009-08-02  Bruno Haible  <bruno@clisp.org>
38223
38224         Allow multiple calls to gl_sockets_startup.
38225         * lib/sockets.c (initialized_sockets_version): New variable.
38226         (gl_sockets_startup): Do nothing if already called for this or a higher
38227         version.
38228         (gl_sockets_cleanup): Reset initialized_sockets_version.
38229
38230 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38231
38232         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38233         different project/version.
38234
38235 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38236             Bruno Haible  <bruno@clisp.org>
38237
38238         Tests for module 'pipe-filter-gi'.
38239         * modules/pipe-filter-gi-tests: New file.
38240         * tests/test-pipe-filter-gi1.sh: New file.
38241         * tests/test-pipe-filter-gi1.c: New file.
38242         * tests/test-pipe-filter-gi2.sh: New file.
38243         * tests/test-pipe-filter-gi2-main.c: New file.
38244         * tests/test-pipe-filter-gi2-child.c: New file.
38245
38246         New module 'pipe-filter-gi'.
38247         * lib/pipe-filter-gi.c: New file.
38248         * modules/pipe-filter-gi: New file.
38249
38250 2009-08-02  Bruno Haible  <bruno@clisp.org>
38251             Paolo Bonzini  <bonzini@gnu.org>
38252
38253         Tests for module 'pipe-filter-ii'.
38254         * modules/pipe-filter-ii-tests: New file.
38255         * tests/test-pipe-filter-ii1.sh: New file.
38256         * tests/test-pipe-filter-ii1.c: New file.
38257         * tests/test-pipe-filter-ii2.sh: New file.
38258         * tests/test-pipe-filter-ii2-main.c: New file.
38259         * tests/test-pipe-filter-ii2-child.c: New file.
38260
38261         New module 'pipe-filter-ii'.
38262         * lib/pipe-filter.h: New file.
38263         * lib/pipe-filter-ii.c: New file.
38264         * lib/pipe-filter-aux.h: New file.
38265         * modules/pipe-filter-ii: New file.
38266
38267 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38268
38269         * lib/gc-libgcrypt.c: Change copyright to FSF.
38270         * lib/gc-gnulib.c: Likewise.
38271
38272 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38273
38274         * lib/gethostname.c: Include limits.h.
38275
38276 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38277             Bruno Haible  <bruno@clisp.org>
38278
38279         Ensure HOST_NAME_MAX as part of the gethostname module.
38280         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38281         define also HOST_NAME_MAX.
38282         * tests/test-gethostname.c: Include <limits.h>.
38283         (main): Check also HOST_NAME_MAX.
38284         * doc/posix-headers/limits.texi: Document the mingw problem.
38285
38286 2009-08-02  Bruno Haible  <bruno@clisp.org>
38287
38288         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38289         Add comments.
38290
38291 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38292
38293         * lib/gethostname.c: Add Windows wrapper.
38294         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38295         * modules/gethostname: Depend on sys_socket & errno, for also
38296         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38297         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38298
38299 2009-07-31  Jim Meyering  <meyering@redhat.com>
38300
38301         getloadavg: fix symbol name in comment
38302         * lib/getloadavg.c: Correct a typo I introduced when adding
38303         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38304         Matt Kraai spotted the problem.
38305
38306 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38307
38308         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38309         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38310         code also if ! defined N_NAME_POINTER.
38311         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38312         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38313         but the n_name member is a 12-byte array.
38314
38315 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38316
38317         update-copyright: generalize comment handling
38318         * build-aux/update-copyright: Handle copyright statements
38319         within more comment styles.
38320         Document usage.
38321         Report any file with an external copyright holder or parse failure.
38322
38323 2009-07-29  Jim Meyering  <meyering@redhat.com>
38324
38325         mktime: correct setting of REPLACE_MKTIME
38326         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38327
38328         update-copyright: new module
38329         * modules/update-copyright: New file.
38330         * build-aux/update-copyright: New file.
38331         * MODULES.html.sh (maint+release support): Add update-copyright.
38332
38333 2009-07-27  Bruno Haible  <bruno@clisp.org>
38334
38335         Fix compilation error when <ctime> is used and mktime is replaced.
38336         * lib/time.in.h (mktime): New declaration.
38337         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38338         REPLACE_MKTIME instead of defining mktime in config.h.
38339         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38340         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38341         Reported by Ross McFarland <rwmcfa1@neces.com>.
38342
38343 2009-07-27  Bruno Haible  <bruno@clisp.org>
38344
38345         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38346         Reported by Matt Kraai <mkraai@beckman.com>.
38347
38348 2009-07-25  Jim Meyering  <meyering@redhat.com>
38349
38350         maint.mk: avoid warnings about missing files
38351         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38352         diagnostic when .prev-version does not exist.
38353         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38354         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38355         nonexistent cfg.mk.
38356         Suggestions from Simon Josefsson.
38357
38358 2009-07-25  Bruno Haible  <bruno@clisp.org>
38359
38360         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38361         defined as macros. Needed on QNX 6.4.1.
38362         Reported by Matt Kraai <mkraai@beckman.com>.
38363
38364 2009-07-23  Jim Meyering  <meyering@redhat.com>
38365
38366         maint.mk: invoke "make dist" with a working value of XZ_OPT
38367         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38368
38369 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38370
38371         Make fseeko.c compile on QNX.
38372         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38373
38374 2009-07-22  Peter Simons  <simons@cryp.to>
38375
38376         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38377         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38378         * lib/md4.h: Likewise.
38379         * lib/md5.h: Likewise.
38380         * lib/sha1.h: Likewise.
38381         * lib/sha256.h: Likewise.
38382         * lib/sha512.h: Likewise.
38383
38384         tests-sha1: don't assign literal string to 'char *' variable
38385         * tests/test-sha1.c (main): Declare locals with "const" to match
38386         attributes of the right hand side.
38387
38388 2009-07-21  Eric Blake  <ebb9@byu.net>
38389
38390         dup2: fix more mingw problems
38391         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38392         fd to itself.
38393         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38394         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38395         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38396         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38397         care of mingw bugs.
38398
38399 2009-07-21  Jim Meyering  <meyering@redhat.com>
38400
38401         vc-list-files: avoid failure when /bin/sh is dash
38402         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38403         On some Debian based systems, /bin/sh is a symlink to dash, and running
38404         this command would omit the "/" following each 'tests' prefix:
38405           dash -x build-aux/vc-list-files -C . tests
38406         That is because bash and dash work differently:
38407           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38408           bash ok
38409           dash odd
38410
38411 2009-07-21  Eric Blake  <ebb9@byu.net>
38412
38413         dup2-tests: test previous patch
38414         * modules/dup2-tests: New file.
38415         * tests/test-dup2.c: Likewise.
38416         * tests/test-open.c (main): Avoid unspecified behavior.
38417         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38418         test.
38419
38420         dup2: work around mingw and cygwin 1.5 bug
38421         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38423         * modules/unistd (Makefile.am): Substitute it.
38424         * lib/unistd.in.h (dup2): Declare the replacement.
38425         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38426         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38427         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38428         * modules/execute (Depends-on): Add dup2.
38429         * modules/fseterr (Depends-on): Likewise.
38430         * modules/pipe (Depends-on): Likewise.
38431         * modules/posix_spawn-internal (Depends-on): Likewise.
38432
38433 2009-07-21  Bruno Haible  <bruno@clisp.org>
38434
38435         * modules/.gitattributes: New file.
38436
38437 2009-07-20  Bruno Haible  <bruno@clisp.org>
38438
38439         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38440         (main): Use it.
38441
38442 2009-07-20  Eric Blake  <ebb9@byu.net>
38443
38444         test-pipe: make a bit more robust.
38445         * tests/test-pipe.c (myerr): Allow error messages regardless of
38446         what we do to stderr.
38447         (test_pipe): Rearrange to avoid deadlock.
38448         (child_main): Try a larger read, to ensure we avoided deadlock.
38449         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38450         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38451         if misused.
38452
38453 2009-07-19  Jim Meyering  <meyering@redhat.com>
38454
38455         fts: avoid false-positive cycle-detection
38456         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38457         for each new command line argument.
38458
38459 2009-07-19  Bruno Haible  <bruno@clisp.org>
38460
38461         Fix build error on mingw with the modules sys_select and unistd.
38462         * modules/acl-tests (Depends-on): Add close.
38463         * modules/binary-io-tests (Depends-on): Likewise.
38464         * modules/closein-tests (Depends-on): Likewise.
38465         * modules/flock-tests (Depends-on): Likewise.
38466         * modules/fsync-tests (Depends-on): Likewise.
38467         * modules/lseek-tests (Depends-on): Likewise.
38468         * modules/pipe-tests (Depends-on): Likewise.
38469         * modules/posix_spawn-tests (Depends-on): Likewise.
38470         * modules/posix_spawnp-tests (Depends-on): Likewise.
38471         * modules/stat-time-tests (Depends-on): Likewise.
38472         * modules/yesno-tests (Depends-on): Likewise.
38473
38474 2009-07-19  Bruno Haible  <bruno@clisp.org>
38475
38476         Unify conditionals.
38477         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38478         macros, not at the compiler macros.
38479         * lib/pipe.c: Likewise.
38480         * lib/execute.c: Likewise.
38481         * lib/spawni.c: Likewise.
38482
38483 2009-07-19  Bruno Haible  <bruno@clisp.org>
38484
38485         Fix handling of closed stdin/stdout/stderr on mingw.
38486         * lib/w32spawn.h: Include unistd.h.
38487         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38488         file descriptor with O_NOINHERIT flag.
38489         (fd_safer_noinherit): New function, based on fd-safer.c.
38490         (dup_safer_noinherit): New function, based on dup-safer.c.
38491         (undup_safer_noinherit): New function.
38492         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38493         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38494         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38495         instead of fd_safer.
38496         * tests/test-pipe.c: Include <windows.h>.
38497         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38498         result.
38499
38500         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38501         from main.
38502         (test_pipe): Pass an extra argument for disambiguation.
38503         (main): Invoke parent_main or child_main.
38504
38505         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38506         consistently.
38507
38508 2009-07-18  Eric Blake  <ebb9@byu.net>
38509
38510         test-pipe: fix mingw build
38511         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38512
38513 2009-07-18  Bruno Haible  <bruno@clisp.org>
38514
38515         * modules/pipe-tests (Makefile.am): Fix typo.
38516
38517 2009-07-18  Eric Blake  <ebb9@byu.net>
38518
38519         error: fix mingw build
38520         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38521         Reported by Bruno Haible.
38522
38523         error: avoid undefined use of stdout
38524         * lib/error.c (error, error_at_line): Check that fd 1 is open
38525         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38526         is handling faults and the close_stdout module wants to report the
38527         detection of closed stdout as an error.
38528
38529 2009-07-17  Eric Blake  <ebb9@byu.net>
38530
38531         pipe: be robust in face of closed fds
38532         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38533         should cause child to misbehave.
38534         * modules/pipe-tests: New module.
38535         * tests/test-pipe.c: New file.
38536         * tests/test-pipe.sh: New file.
38537         Reported by Akim Demaille.
38538
38539 2009-07-14  Bruno Haible  <bruno@clisp.org>
38540
38541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38542         Reported by anonymous kc.
38543
38544 2009-07-07  Jim Meyering  <meyering@redhat.com>
38545
38546         maint.mk: don't look for translatable strings in *.m4 or *.mk
38547         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38548         when searching for translatable strings.
38549
38550 2009-07-05  Jim Meyering  <meyering@redhat.com>
38551
38552         remove superfluous parentheses in STREQ definition
38553         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38554         * lib/getugroups.c (STREQ): Likewise.
38555         * lib/fnmatch.c (STREQ): Likewise.
38556         Spotted by Bruno Haible.
38557
38558 2009-07-04  Jim Meyering  <meyering@redhat.com>
38559
38560         argv-iter: new module
38561         * MODULES.html.sh: Add argv-iter.
38562         * lib/argv-iter.c, lib/argv-iter.h: New files.
38563         * modules/argv-iter: New file.
38564         * modules/argv-iter-tests: New file.
38565         * tests/test-argv-iter.c: Test it.
38566
38567 2009-07-04  Bruno Haible  <bruno@clisp.org>
38568
38569         Fix assertion.
38570         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38571         contains more exact copies of a given entry than file2, leave the extra
38572         copies unpaired rather than aborting.
38573         Reported by Eric Blake.
38574
38575 2009-07-02  Bruno Haible  <bruno@clisp.org>
38576
38577         Speedup git-merge-changelog for git cherry-pick.
38578         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38579         (entries_mapping_get): New function, extracted from compute_mapping.
38580         (entries_mapping_reverse_get): New function.
38581         (compute_mapping): Add a 'full' argument. Return the result in a
38582         'struct entries_mapping'.
38583         (main): Update. Access the mappings through entries_mapping_get.
38584         Reported by Eric Blake.
38585
38586 2009-07-02  Bruno Haible  <bruno@clisp.org>
38587
38588         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38589         best_i.
38590
38591 2009-07-02  Bruno Haible  <bruno@clisp.org>
38592
38593         Speed up approximate search for matching ChangeLog entries.
38594         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38595         argument. Call fstrcmp_bounded instead of fstrcmp.
38596         (compute_mapping, try_split_merged_entry, main): Update callers.
38597
38598 2009-07-02  Bruno Haible  <bruno@clisp.org>
38599
38600         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38601
38602 2009-06-30  Bruno Haible  <bruno@clisp.org>
38603
38604         Reduce the number of uc_is_cased calls.
38605         * lib/unicase.h (casing_suffix_context_t): Add
38606         'first_char_except_ignorable' field.
38607         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38608         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38609         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38610         Update initializer.
38611         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38612         case-ignorable characters.
38613         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38614         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38615         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38616         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38617         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38618
38619 2009-06-30  Bruno Haible  <bruno@clisp.org>
38620
38621         Tests for module 'unicase/ignorable'.
38622         * modules/unicase/ignorable-tests: New file.
38623         * tests/unicase/test-ignorable.c: New file, generated by
38624         gen-uni-tables.
38625
38626         Tests for module 'unicase/cased'.
38627         * modules/unicase/cased-tests: New file.
38628         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38629         * tests/unicase/test-predicate-part1.h: New file, derived from
38630         tests/unictype/test-predicate-part1.h.
38631         * tests/unicase/test-predicate-part2.h: New file, same as
38632         tests/unictype/test-predicate-part2.h.
38633
38634         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38635         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38636         (output_casing_properties): New function.
38637         (main): Call it.
38638         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38639         * lib/unicase/cased.c: Include unictype/bitmap.h.
38640         (uc_is_cased): Define through a bitmap lookup.
38641         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38642         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38643         (uc_is_case_ignorable): Define through a bitmap lookup.
38644         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38645         lib/unictype/bitmap.h.
38646         (Depends-on): Add inline. Clean up.
38647         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38648         lib/unictype/bitmap.h.
38649         (Depends-on): Add inline. Clean up.
38650         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38651         recognition.
38652         * tests/unicase/test-u16-tolower.c (main): Likewise.
38653         * tests/unicase/test-u32-tolower.c (main): Likewise.
38654
38655 2009-06-30  Bruno Haible  <bruno@clisp.org>
38656
38657         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38658         * lib/unicase/u16-casemap.c: Likewise.
38659         * lib/unicase/u32-casemap.c: Likewise.
38660
38661 2009-06-29  Bruno Haible  <bruno@clisp.org>
38662
38663         Define u32_casefold as a wrapper around u32_ct_casefold.
38664         * lib/unicase/u32-casefold.c: Update.
38665         * modules/unicase/u32-casefold (Depends-on): Add
38666         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38667         unicase/empty-suffix-context. Clean up.
38668
38669         Define u16_casefold as a wrapper around u16_ct_casefold.
38670         * lib/unicase/u16-casefold.c: Update.
38671         * modules/unicase/u16-casefold (Depends-on): Add
38672         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38673         unicase/empty-suffix-context. Clean up.
38674
38675         Define u8_casefold as a wrapper around u8_ct_casefold.
38676         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38677         * lib/unicase/u8-casefold.c: Update.
38678         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38679         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38680
38681         Define u32_totitle as a wrapper around u32_ct_totitle.
38682         * lib/unicase/u32-totitle.c: Update.
38683         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38684         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38685
38686         Define u16_totitle as a wrapper around u16_ct_totitle.
38687         * lib/unicase/u16-totitle.c: Update.
38688         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38689         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38690
38691         Define u8_totitle as a wrapper around u8_ct_totitle.
38692         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38693         functions.
38694         (FUNC): Delegate to U_CT_TOTITLE.
38695         * lib/unicase/u8-totitle.c: Update.
38696         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38697         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38698
38699         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38700         invocation.
38701         * modules/unicase/u32-tolower (Depends-on): Add
38702         unicase/empty-prefix-context, unicase/empty-suffix-context.
38703
38704         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38705         invocation.
38706         * modules/unicase/u16-tolower (Depends-on): Add
38707         unicase/empty-prefix-context, unicase/empty-suffix-context.
38708
38709         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38710         * modules/unicase/u8-tolower (Depends-on): Add
38711         unicase/empty-prefix-context, unicase/empty-suffix-context.
38712
38713         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38714         invocation.
38715         * modules/unicase/u32-toupper (Depends-on): Add
38716         unicase/empty-prefix-context, unicase/empty-suffix-context.
38717
38718         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38719         invocation.
38720         * modules/unicase/u16-toupper (Depends-on): Add
38721         unicase/empty-prefix-context, unicase/empty-suffix-context.
38722
38723         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38724         * modules/unicase/u8-toupper (Depends-on): Add
38725         unicase/empty-prefix-context, unicase/empty-suffix-context.
38726
38727         New module 'unicase/u32-ct-casefold'.
38728         * lib/unicase/u32-ct-casefold.c: New file.
38729         * modules/unicase/u32-ct-casefold: New file.
38730
38731         New module 'unicase/u16-ct-casefold'.
38732         * lib/unicase/u16-ct-casefold.c: New file.
38733         * modules/unicase/u16-ct-casefold: New file.
38734
38735         New module 'unicase/u8-ct-casefold'.
38736         * lib/unicase/u8-ct-casefold.c: New file.
38737         * lib/unicase/u-ct-casefold.h: New file, derived from
38738         lib/unicase/u-casefold.h.
38739         * modules/unicase/u8-ct-casefold: New file.
38740
38741         New module 'unicase/u32-ct-totitle'.
38742         * lib/unicase/u32-ct-totitle.c: New file.
38743         * modules/unicase/u32-ct-totitle: New file.
38744
38745         New module 'unicase/u16-ct-totitle'.
38746         * lib/unicase/u16-ct-totitle.c: New file.
38747         * modules/unicase/u16-ct-totitle: New file.
38748
38749         New module 'unicase/u8-ct-totitle'.
38750         * lib/unicase/u8-ct-totitle.c: New file.
38751         * lib/unicase/u-ct-totitle.h: New file, derived from
38752         lib/unicase/u-totitle.h.
38753         * modules/unicase/u8-ct-totitle: New file.
38754
38755         New module 'unicase/u32-ct-tolower'.
38756         * lib/unicase/u32-ct-tolower.c: New file.
38757         * modules/unicase/u32-ct-tolower: New file.
38758
38759         New module 'unicase/u16-ct-tolower'.
38760         * lib/unicase/u16-ct-tolower.c: New file.
38761         * modules/unicase/u16-ct-tolower: New file.
38762
38763         New module 'unicase/u8-ct-tolower'.
38764         * lib/unicase/u8-ct-tolower.c: New file.
38765         * modules/unicase/u8-ct-tolower: New file.
38766
38767         New module 'unicase/u32-ct-toupper'.
38768         * lib/unicase/u32-ct-toupper.c: New file.
38769         * modules/unicase/u32-ct-toupper: New file.
38770
38771         New module 'unicase/u16-ct-toupper'.
38772         * lib/unicase/u16-ct-toupper.c: New file.
38773         * modules/unicase/u16-ct-toupper: New file.
38774
38775         New module 'unicase/u8-ct-toupper'.
38776         * lib/unicase/u8-ct-toupper.c: New file.
38777         * modules/unicase/u8-ct-toupper: New file.
38778
38779         Add context arguments to u*_casemap functions.
38780         * lib/unicase/unicasemap.h: Include unicase.h.
38781         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38782         suffix_context arguments.
38783         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38784         functions.
38785         (FUNC): Add prefix_context and suffix_context arguments. Use
38786         uc_is_cased and uc_is_case_ignorable.
38787         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38788         * lib/unicase/u16-casemap.c: Likewise.
38789         * lib/unicase/u32-casemap.c: Likewise.
38790         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38791         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38792         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38793         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38794         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38795         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38796
38797         New module 'unicase/u32-suffix-context'.
38798         * lib/unicase/u32-suffix-context.c: New file.
38799         * modules/unicase/u32-suffix-context: New file.
38800
38801         New module 'unicase/u16-suffix-context'.
38802         * lib/unicase/u16-suffix-context.c: New file.
38803         * modules/unicase/u16-suffix-context: New file.
38804
38805         New module 'unicase/u8-suffix-context'.
38806         * lib/unicase/u8-suffix-context.c: New file.
38807         * lib/unicase/u-suffix-context.h: New file.
38808         * modules/unicase/u8-suffix-context: New file.
38809
38810         New module 'unicase/empty-suffix-context'.
38811         * lib/unicase/empty-suffix-context.c: New file.
38812         * modules/unicase/empty-suffix-context: New file.
38813
38814         New module 'unicase/u32-prefix-context'.
38815         * lib/unicase/u32-prefix-context.c: New file.
38816         * modules/unicase/u32-prefix-context: New file.
38817
38818         New module 'unicase/u16-prefix-context'.
38819         * lib/unicase/u16-prefix-context.c: New file.
38820         * modules/unicase/u16-prefix-context: New file.
38821
38822         New module 'unicase/u8-prefix-context'.
38823         * lib/unicase/u8-prefix-context.c: New file.
38824         * lib/unicase/u-prefix-context.h: New file.
38825         * lib/unicase/context.h: New file.
38826         * modules/unicase/u8-prefix-context: New file.
38827
38828         New module 'unicase/empty-prefix-context'.
38829         * lib/unicase/empty-prefix-context.c: New file.
38830         * modules/unicase/empty-prefix-context: New file.
38831
38832         New module 'unicase/ignorable'.
38833         * lib/unicase/ignorable.c: New file.
38834         * modules/unicase/ignorable: New file.
38835
38836         New module 'unicase/cased'.
38837         * lib/unicase/caseprop.h: New file.
38838         * lib/unicase/cased.c: New file.
38839         * modules/unicase/cased: New file.
38840
38841         New functions for case mapping of substrings.
38842         * lib/unicase.h (casing_prefix_context_t): New type.
38843         (unicase_empty_prefix_context): New variable.
38844         (u8_casing_prefix_context, u16_casing_prefix_context,
38845         u32_casing_prefix_context, u8_casing_prefixes_context,
38846         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38847         declarations.
38848         (casing_suffix_context_t): New type.
38849         (unicase_empty_suffix_context): New variable.
38850         (u8_casing_suffix_context, u16_casing_suffix_context,
38851         u32_casing_suffix_context, u8_casing_suffixes_context,
38852         u16_casing_suffixes_context, u32_casing_suffixes_context,
38853         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38854         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38855         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38856         declarations.
38857
38858 2009-06-28  Jim Meyering  <meyering@redhat.com>
38859
38860         boostrap: indent only with spaces
38861         * build-aux/bootstrap: Indent only with spaces, never TABs.
38862
38863         bootstrap: split long lines
38864         * build-aux/bootstrap: Keep line length < 80.
38865
38866         bootstrap: sync from coreutils
38867         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38868         just as autoreconf does.  Verify a list of prerequisite
38869         package-name,version-number pairs if defined in bootstrap.conf.
38870         Refer to README-prereq, if prerequisites are not satisfied.
38871
38872 2009-06-27  Eric Blake  <ebb9@byu.net>
38873
38874         tests: add test for bogus NULL definition
38875         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38876         * tests/test-stdlib.c: Likewise.
38877         * tests/test-string.c: Likewise.
38878         * tests/test-locale.c: Likewise.
38879         * tests/test-unistd.c: Likewise.
38880         * modules/stdio-tests (Depends-on): Add verify.
38881         * modules/stdlib-tests (Depends-on): Likewise.
38882         * modules/string-tests (Depends-on): Likewise.
38883         * modules/locale-tests (Depends-on): Likewise.
38884         * modules/unistd-tests (Depends-on): Likewise.
38885
38886 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38887
38888         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38889         self-explaining comment.
38890         * m4/selinux-selinux-h: Update serial.
38891         (gl_LIBSELINUX): New macro, adding a warning for missing development
38892         packages to code extracted from...
38893         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38894         Add warning for missing development packages here, too.
38895
38896 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38897
38898         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38899
38900 2009-06-25  Eric Blake  <ebb9@byu.net>
38901
38902         version-etc: fix regression
38903         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38904         gcc.
38905         (version_etc): Use it, to catch bugs with trailing NULL.
38906         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38907         (version_etc_va): Fix logic bug.
38908         * modules/version-etc-tests: Add test.
38909         * tests/test-version-etc.c: New file.
38910         * tests/test-version-etc.sh: Likewise.
38911
38912 2009-06-25  Sam Steingold  <sds@gnu.org>
38913
38914         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38915         mbtowc declaration.
38916
38917 2009-06-25  Eric Blake  <ebb9@byu.net>
38918
38919         fpurge: migrate into <stdio.h>
38920         * lib/fpurge.h: Delete...
38921         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38922         * lib/fpurge.c (fpurge): Change declaring header.
38923         * modules/fpurge (Files): Drop deleted file.
38924         (Depends-on): Add stdio.
38925         (configure.ac): Set witness.
38926         * modules/stdio (Makefile.am): Support fpurge macros.
38927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38928         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38929         * lib/fflush.c: Update client.
38930         * tests/test-fpurge.c: Likewise.
38931         * NEWS: Mention the change.
38932
38933 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38934
38935         * lib/argp-version-etc.c (program_authors): Add const
38936         qualifier.
38937         * lib/version-etc.c: Fix typos in the comments.
38938         * modules/argp-version-etc: Depends on version-etc.
38939
38940 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38941
38942         argp-version-etc: new module.
38943
38944         * lib/argp-version-etc.c: New file.
38945         * lib/argp-version-etc.h: New file.
38946         * modules/argp-version-etc: New file.
38947         * modules/argp-version-etc-tests: New file.
38948         * tests/test-argp-version-etc.c: New test.
38949         * tests/test-argp-version-etc-1.sh: New test.
38950
38951 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38952
38953         Provide additional interfaces and documentation for version-etc
38954         module.
38955
38956         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38957         interfaces.
38958         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38959         prototypes.
38960
38961 2009-06-24  Bruno Haible  <bruno@clisp.org>
38962
38963         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38964         HAVE_LIB${NAME} macro.
38965         Reported by Sam Steingold <sds@gnu.org>.
38966
38967 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38968
38969         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38970         needed.
38971
38972 2009-06-21  Bruno Haible  <bruno@clisp.org>
38973
38974         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38975         work.
38976         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38977         together with LIB${NAME}, LTLIB${NAME}.
38978         Reported by Sam Steingold <sds@gnu.org>.
38979
38980 2009-06-20  Jim Meyering  <meyering@redhat.com>
38981
38982         tests: make sc_require_test_exit_idiom more generic
38983         * top/maint.mk (Exit_witness_file): New overridable variable.
38984         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38985         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38986
38987 2009-06-19  Jim Meyering  <meyering@redhat.com>
38988
38989         hash: reverse order of src/dst parameters in an internal interface
38990         * lib/hash.c (transfer_entries): Reverse order of parameters to
38991         put DST before SRC.  Adjust callers.
38992
38993         tests: test-hash: avoid wholesale duplication
38994         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38995         Instead, use a loop and add a single conditional.
38996
38997         tests: test-hash: allow seed selection via a command line argument
38998         * tests/test-hash.c (get_seed): New function.
38999         (main): Use it.
39000
39001 2009-06-19  Eric Blake  <ebb9@byu.net>
39002
39003         hash: avoid memory leak on allocation failure
39004         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39005         failure.  Factor repeated algorithm...
39006         (transfer_entries): ...into new helper routine.
39007         (hash_delete): React to hash_rehash return value.
39008
39009         hash: reduce memory pressure in hash_rehash no-op case
39010         * lib/hash.c (next_prime): Avoid overflow.
39011         (hash_initialize): Factor bucket size computation...
39012         (compute_bucket_size): ...into new helper function.
39013         (hash_rehash): Use new function and open coding to reduce memory
39014         pressure, and avoid a memory leak in USE_OBSTACK code.
39015         Reported by Jim Meyering.
39016
39017 2009-06-18  Eric Blake  <ebb9@byu.net>
39018
39019         hash: make rotation more obvious
39020         * modules/hash (Depends-on): Add bitrotate and stdint.
39021         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39022         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39023         (SIZE_MAX): Rely on headers for definition.
39024         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39025         (raw_hasher): Use rotr_sz.
39026         Suggested by Jim Meyering.
39027
39028         hash: fix memory leak in last patch
39029         * lib/hash.c (hash_rehash): Avoid memory leak.
39030
39031         hash: avoid no-op rehashing
39032         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39033
39034         hash: provide default callback functions
39035         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39036         (hash_initialize): Use them as defaults.
39037         * tests/test-hash.c (main): Test this.
39038
39039         hash: minor optimization
39040         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39041         when possible.
39042         (hash_initialize): Document this promise.
39043         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39044         * tests/test-hash.c (hash_compare_strings): Test this.
39045
39046 2009-06-18  Bruno Haible  <bruno@clisp.org>
39047
39048         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39049         going to be replaced anyway.
39050
39051 2009-06-18  Bruno Haible  <bruno@clisp.org>
39052
39053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39054         in one place.
39055         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39056         be replaced anyway.
39057
39058 2009-06-18  Eric Blake  <ebb9@byu.net>
39059
39060         hash: check for resize before insertion
39061         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39062         threshold before insertion, so that a pathological hash_rehash
39063         that fills every bucket can still trigger another rehash.
39064
39065 2009-06-18  Jim Meyering  <meyering@redhat.com>
39066
39067         hash-tests: add a loop around the small tests
39068         * tests/test-hash.c (main): Repeat small tests with selected
39069         small initial table sizes.
39070
39071 2009-06-17  Eric Blake  <ebb9@byu.net>
39072
39073         hash: minor cleanups
39074         * lib/hash.h (hash_entry): Make opaque, by moving...
39075         * lib/hash.c (hash_entry): ...here.
39076         (hash_insert): Clarify restrictions on what can be inserted.
39077         (hash_get_next): Clarify when it is safe to remove an element
39078         during traversal.
39079         (check_tuning): Skip verification when tuning is known safe.
39080         (hash_initialize): Clarify restrictions on tuning.
39081
39082 2009-06-17  Jim Meyering  <jim@meyering.net>
39083         and Eric Blake  <ebb9@byu.net>
39084
39085         hash-tests: new module
39086         * modules/hash-tests: New file.
39087         * tests/test-hash.c: New file.
39088
39089 2009-06-17  Eric Blake  <ebb9@byu.net>
39090
39091         strstr-simple: document new module
39092         * MODULES.html.sh: Document new module.
39093
39094         strstr, strcasestr: replace on platforms with broken memchr
39095         * modules/strstr: Split into...
39096         * modules/strstr-simple: ...new module that does not care about
39097         performance, but does care about glibc bug.
39098         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39099         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39100         if platform memchr is broken, per Debian bug 521737.
39101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39102         memchr.
39103         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39104         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39105         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39106         * modules/mountlist (Depends-on): Add strstr-simple.
39107         * modules/gen-uni-tables (Depends-on): Likewise.
39108         * modules/argz (Depends-on): Add strstr.
39109
39110 2009-06-17  Bruno Haible  <bruno@clisp.org>
39111
39112         * modules/posix_spawn-internal (Depends-on): Add errno.
39113
39114 2009-06-17  Bruno Haible  <bruno@clisp.org>
39115
39116         Define missing ESTALE on Interix 3.5.
39117         * lib/errno.in.h (ESTALE): Assign a value if missing.
39118         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39119         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39120         missing.
39121         * doc/posix-headers/errno.texi: Mention the Interix bug.
39122         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39123
39124 2009-06-15  Eric Blake  <ebb9@byu.net>
39125
39126         memchr, memchr2: add valgrind exception
39127         * lib/memchr.valgrind: New file.
39128         * lib/memchr2.valgrind: New file.
39129         * modules/memchr (Files): Distribute valgrind file.
39130         * modules/memchr2 (Files): Likewise.
39131
39132         docs: memchr is no longer obsolete
39133         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39134         * lib/string.in.h (memchr): Simplify logic.
39135
39136 2009-06-14  Jim Meyering  <meyering@redhat.com>
39137
39138         link-follow: fix the "checking..." message to not mention trailing slash
39139         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39140         never considered trailing slashes.
39141
39142 2009-06-14  Bruno Haible  <bruno@clisp.org>
39143
39144         * m4/memchr.m4: Mention also the bug on IA-64.
39145         * doc/posix-functions/memchr.texi: Likewise.
39146
39147 2009-06-12  Eric Blake  <ebb9@byu.net>
39148
39149         memchr: detect broken x86_64 and alpha implementations
39150         * modules/memchr-tests (Depends-on): Move mmap detection...
39151         * modules/memchr (Depends-on): ...here.
39152         (configure.ac): Set indicator.
39153         * lib/string.in.h (memchr): Declare replacement.
39154         * modules/string (Makefile.am): Trigger replacement.
39155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39156         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39157         bugs.
39158         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39159         * modules/getpagesize (License): Relax license.
39160
39161 2009-06-11  Bruno Haible  <bruno@clisp.org>
39162
39163         * lib/idpriv.h: Add more references.
39164
39165 2009-06-08  Bruno Haible  <bruno@clisp.org>
39166
39167         Tests for module 'idpriv-droptemp'.
39168         * modules/idpriv-droptemp-tests: New file.
39169         * tests/test-idpriv-droptemp.sh: New file.
39170         * tests/test-idpriv-droptemp.su.sh: New file.
39171         * tests/test-idpriv-droptemp.c: New file.
39172
39173         New module 'idpriv-droptemp'.
39174         * lib/idpriv-droptemp.c: New file.
39175         * modules/idpriv-droptemp: New file.
39176
39177 2009-06-08  Bruno Haible  <bruno@clisp.org>
39178
39179         Tests for module 'idpriv-drop'.
39180         * modules/idpriv-drop-tests: New file.
39181         * tests/test-idpriv-drop.sh: New file.
39182         * tests/test-idpriv-drop.su.sh: New file.
39183         * tests/test-idpriv-drop.c: New file.
39184
39185         New module 'idpriv-drop'.
39186         * lib/idpriv.h: New file.
39187         * lib-idpriv-drop.c: New file.
39188         * m4/idpriv.m4: New file.
39189         * modules/idpriv-drop: New file.
39190
39191 2009-06-08  Bruno Haible  <bruno@clisp.org>
39192
39193         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39194         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39195         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39196         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39197         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39198         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39199         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39200
39201 2009-06-08  Eric Blake  <ebb9@byu.net>
39202
39203         test-strstr: use memory fence, when possible
39204         * tests/test-strstr.c (main): Use memory fence, in order to be
39205         more likely to trigger Debian bug 521737.
39206         * modules/strstr-tests (Files): Pull in additional files.
39207
39208         memchr: no longer obsolete, for wider field testing
39209         * modules/memchr (Status, Notice): Delete, this module is no
39210         longer obsolete.
39211         * modules/vasnprintf (Depends-on): Add memchr.
39212
39213 2009-06-07  Jim Meyering  <meyering@redhat.com>
39214
39215         hash: declare some functions with the warn_unused_result attribute
39216         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39217
39218 2009-06-07  Bruno Haible  <bruno@clisp.org>
39219
39220         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39221         Reported by Eric Blake.
39222
39223 2009-06-06  Eric Blake  <ebb9@byu.net>
39224
39225         test-alignof: fix typo with long double
39226         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39227         compiler error.
39228
39229 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39230
39231         Escape non-texinfo { and }s.
39232         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39233         markup error.
39234
39235 2009-06-04  Jim Meyering  <meyering@redhat.com>
39236
39237         gitlog-to-changelog: don't infloop on an empty commit log
39238         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39239         Reported by Boris Petersen <transacid@centerim.org>.
39240
39241 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39242
39243         version-etc: extend for packagers
39244         Add three new configure options, intended for packagers:
39245           --with-packager="packager name"
39246           --with-packager-version="packager-specific version"
39247           --with-packager-bug-reports="packager bug reporting"
39248         An example with coreutils:
39249           $ ./configure \
39250             --with-packager=Gentoo \
39251             --with-packager-bug-report=http://bugs.gentoo.org/ \
39252             --with-packager-version="patchset 1.6"
39253           $ ./src/ls --version | head -n2
39254           ls (GNU coreutils) 7.1-dirty
39255           Packaged by Gentoo (patchset 1.6)
39256         Note that the bug reporting info via --help doesn't show up because
39257         coreutils uses its own custom emit_bug_reporting_address() implementation
39258         in src/system.h.  If it didn't, it'd look like:
39259           $ ./src/ls --help | tail -n4
39260           Report bugs to <bug-coreutils@gnu.org>.
39261           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39262           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39263           General help using GNU software: <http://www.gnu.org/gethelp/>.
39264         * lib/version-etc.c: Print new information, if provided.
39265         * m4/version-etc.m4: New file.
39266         * modules/version-etc (Files): Add m4/version-etc.m4.
39267         (configure.ac): Add gl_VERSION_ETC.
39268
39269 2009-05-31  Bruno Haible  <bruno@clisp.org>
39270
39271         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39272         and 'int64_t'.
39273         * modules/alignof-tests (Dependencies): Add stdint.
39274         Reported by Eric Blake.
39275
39276 2009-05-31  Bruno Haible  <bruno@clisp.org>
39277
39278         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39279         restriction due to compiler bugs.
39280         Reported by Eric Blake.
39281
39282 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39283             Bruno Haible  <bruno@clisp.org>
39284
39285         Fix test-alignof failure.
39286         * lib/alignof.h (alignof_slot): New macro.
39287         (alignof_type): New macro, with the same semantics as the previous
39288         'alignof'.
39289         (alignof): Alias to alignof_slot.
39290         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39291         check that the results are usable as constant expressions.
39292
39293 2009-05-31  Bruno Haible  <bruno@clisp.org>
39294
39295         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39296         * tests/test-memchr.c (main): Check that memchr does not read past the
39297         first occurrence of the byte.
39298         * tests/test-strstr.c (main): Update comment.
39299         Suggested by Eric Blake.
39300
39301 2009-05-30  Bruno Haible  <bruno@clisp.org>
39302
39303         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39304         detail how to use dumpbin.
39305         Reported by David Byron <dbyron@dbyron.com>.
39306
39307 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39308
39309         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39310
39311 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39312
39313         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39314
39315 2009-05-28  Bruno Haible  <bruno@clisp.org>
39316
39317         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39318         build-aux/ files.
39319
39320 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39321
39322         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39323
39324 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39325
39326         * gnulib-tool (sed_transform_main_lib_file)
39327         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39328         regexps.
39329
39330 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39331
39332         * tests/test-strstr.c: Add another self-test.
39333         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39334         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39335
39336 2009-05-23  Bruno Haible  <bruno@clisp.org>
39337
39338         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39339         change.
39340
39341 2009-05-21  Bruno Haible  <bruno@clisp.org>
39342
39343         Simplify use of mode_t varargs.
39344         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39345         uses 'mode_t' or 'int'.
39346         * lib/openat.c (openat): Likewise.
39347         * lib/open-safer.c (open_safer): Likewise.
39348         * m4/mode_t.m4: New file.
39349         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39350         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39351         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39352         * modules/open (Files): Add m4/mode_t.m4.
39353         * modules/openat (Files): Likewise.
39354         * modules/fcntl-safer (Files): Likewise.
39355         Suggested by Eric Blake.
39356
39357 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39358
39359         * doc/glibc-functions/fallocate.texi: New file.
39360         * doc/gnulib.texi: Include it.
39361
39362 2009-05-21  Eric Blake  <ebb9@byu.net>
39363             Bruno Haible  <bruno@clisp.org>
39364
39365         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39366         invocations.
39367         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39368
39369 2009-05-21  Eric Blake  <ebb9@byu.net>
39370             Bruno Haible  <bruno@clisp.org>
39371
39372         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39373         include_next. Fix of 2008-11-20 commit.
39374         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39375         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39376         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39377         NEXT_MATH_H.
39378         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39379         instead of NEXT_MATH_H.
39380
39381 2009-05-21  Bruno Haible  <bruno@clisp.org>
39382
39383         Avoid redefinition warnings for SIZE_MAX.
39384         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39385         Reported by Simon Josefsson.
39386
39387 2009-05-21  Bruno Haible  <bruno@clisp.org>
39388
39389         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39390         AC_CACHE_VAL.
39391
39392 2009-05-20  Bruno Haible  <bruno@clisp.org>
39393
39394         Make zeroptr.h work on mingw.
39395         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39396         mprotect.
39397         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39398         * modules/memchr2-tests (configure.ac): Likewise.
39399         * modules/memcmp-tests (configure.ac): Likewise.
39400         * modules/memmem-tests (configure.ac): Likewise.
39401         * modules/memrchr-tests (configure.ac): Likewise.
39402         Reported by Simon Josefsson.
39403
39404 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39405
39406         * tests/test-glob.c: Include string.h for strcmp prototype.
39407
39408 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39409
39410         * modules/getdelim (Depends-on): Add explicit stdint, although it
39411         was implicitly already pulled in via realloc-posix.
39412         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39413
39414 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39415
39416         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39417         G. Christensen" <tgc@jupiterrise.com>.
39418         * m4/sys_socket_h.m4: Check for sa_family_t.
39419         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39420         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39421         * tests/test-sys_socket.c: Check that sa_family_t works.
39422
39423 2009-05-18  Eric Blake  <ebb9@byu.net>
39424
39425         maint.mk: allow gnulib_dir in VPATH build
39426         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39427
39428 2009-05-15  Jim Meyering  <meyering@redhat.com>
39429
39430         maint.mk: Give gnulib_dir a default definition.
39431         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39432         Thus, most packages no longer need to specify this variable in cfg.mk
39433
39434 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39435
39436         rename.m4: fix typos that would make non-mingw cross-configure fail
39437         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39438
39439 2009-05-13  Eric Blake  <ebb9@byu.net>
39440
39441         mmap-anon: avoid out-of-order autoconf expansion
39442         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39443         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39444         * modules/memchr-tests (Depends-on): Add extensions.
39445         * modules/memchr2-tests (Depends-on): Add extensions.
39446         * modules/memcmp-tests (Depends-on): Add extensions.
39447         * modules/memmem-tests (Depends-on): Add extensions.
39448         * modules/memrchr-tests (Depends-on): Add extensions.
39449
39450 2009-05-13  Bruno Haible  <bruno@clisp.org>
39451
39452         Make some tests ISO C 99 compliant.
39453         * tests/zerosize-ptr.h: New file.
39454         * tests/test-memchr.c: Include zerosize-ptr.h.
39455         (main): Use a zero-size object pointer instead of NULL.
39456         * tests/test-memchr2.c: Include zerosize-ptr.h.
39457         (main): Use a zero-size object pointer instead of NULL.
39458         * tests/test-memcmp.c: Include zerosize-ptr.h.
39459         (main): Use a zero-size object pointer instead of NULL.
39460         * tests/test-memmem.c: Include zerosize-ptr.h.
39461         (main): Use a zero-size object pointer instead of NULL.
39462         * tests/test-memrchr.c: Include zerosize-ptr.h.
39463         (main): Use a zero-size object pointer instead of NULL.
39464         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39465         m4/mmap-anon.m4.
39466         (Depends-on): Add getpagesize.
39467         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39468         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39469         m4/mmap-anon.m4.
39470         (Depends-on): Add getpagesize.
39471         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39472         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39473         m4/mmap-anon.m4.
39474         (Depends-on): Add getpagesize.
39475         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39476         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39477         m4/mmap-anon.m4.
39478         (Depends-on): Add getpagesize.
39479         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39480         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39481         m4/mmap-anon.m4.
39482         (Depends-on): Add getpagesize.
39483         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39484
39485 2009-05-12  Bruno Haible  <bruno@clisp.org>
39486
39487         Tests for module 'alignof'.
39488         * modules/alignof-tests: New file.
39489         * tests/test-alignof.c: New file.
39490
39491 2009-05-12  Bruno Haible  <bruno@clisp.org>
39492
39493         Fix alignof macro.
39494         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39495         vendor compilers that are always correct.
39496
39497 2009-05-12  Bruno Haible  <bruno@clisp.org>
39498
39499         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39500         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39501         not whether its fully works.
39502
39503 2009-05-12  Bruno Haible  <bruno@clisp.org>
39504
39505         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39506
39507 2009-05-12  Jim Meyering  <meyering@redhat.com>
39508
39509         * top/maint.mk: Adjust backslash alignment.
39510
39511 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39512
39513         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39514
39515 2009-05-11  Eric Blake  <ebb9@byu.net>
39516
39517         argp: avoid undefined behavior
39518         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39519         macros.
39520
39521 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39522
39523         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39524         user.name to prevent git commit from complaining.
39525
39526 2009-05-10  Bruno Haible  <bruno@clisp.org>
39527
39528         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39529         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39530         it rewrites every file name only once.
39531         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39532
39533 2009-05-08  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39536         instead of 'max'.
39537
39538 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39539
39540         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39541         sockaddr_storage test.
39542
39543 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39544
39545         * modules/sys_socket (Makefile.am): Substitute
39546         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39547         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39548         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39549         * tests/test-sys_socket.c: Check sockaddr_storage.
39550
39551 2009-05-08  Bruno Haible  <bruno@clisp.org>
39552
39553         New module 'alignof'.
39554         * lib/alignof.h: New file.
39555         * modules/alignof: New file.
39556
39557 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39558             Bruno Haible  <bruno@clisp.org>
39559
39560         Fix test-file-has-acl on FreeBSD.
39561         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39562         mask is implicitly added.
39563         * tests/test-file-has-acl.c: Include <signal.h>.
39564         (main): Terminate the test after 5 seconds.
39565         * modules/acl-tests (configure.ac): Check for alarm function.
39566
39567 2009-05-04  Bruno Haible  <bruno@clisp.org>
39568
39569         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39570         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39571         * modules/errno (configure.ac): Drop AC_REQUIRE.
39572         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39573         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39574
39575 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39576
39577         * modules/glob-tests: New module.
39578         * tests/test-glob.c: Add.
39579
39580 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39581
39582         * modules/fnmatch-tests: New module.
39583         * tests/test-fnmatch.c: Add.
39584
39585 2009-05-04  Eric Blake  <ebb9@byu.net>
39586
39587         maint: make the new no-submodule-changes rule VPATH-safe
39588         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39589
39590 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39591             Bruno Haible  <bruno@clisp.org>
39592
39593         acl: Fix infinite loop on FreeBSD.
39594         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39595         of return value from acl_get_entry.
39596         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39597         Likewise.
39598
39599 2009-05-03  Bruno Haible  <bruno@clisp.org>
39600
39601         * lib/acl-internal.h (acl_entries): Clarify return value.
39602         * lib/acl_entries.c (acl_entries): Likewise.
39603
39604 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39605
39606         Bug fix in acl module.
39607         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39608
39609 2009-05-03  Bruno Haible  <bruno@clisp.org>
39610
39611         Create gperf-generated file in the source dir, not in the build dir.
39612         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39613         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39614         * modules/unicase/locale-language (unicase/locale-languages.h):
39615         Likewise.
39616         * modules/unicase/special-casing (unicase/special-casing-table.h):
39617         Likewise.
39618         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39619         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39620         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39621         Reported by Ralf Wildenhues.
39622
39623 2009-05-03  Bruno Haible  <bruno@clisp.org>
39624
39625         * modules/fnmatch (Description, configure.ac): Taken from
39626         fnmatch-posix.
39627         * modules/fnmatch-posix: Turn into a symbolic reference to the
39628         'fnmatch' module, and deprecate.
39629         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39630
39631 2009-05-03  Bruno Haible  <bruno@clisp.org>
39632
39633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39634         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39635         Reported by Ralf Wildenhues.
39636
39637 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39638
39639         * m4/fnmatch.m4: Fix fnmatch re-define.
39640
39641 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39642
39643         priv-set: new module and tests; adapt write-any-file
39644         * lib/priv-set.c: New file.
39645         * lib/priv-set.h: New file.
39646         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39647         * lib/write-any-file.c: Simplify by using priv-set module.
39648         * m4/priv-set.m4: New file.
39649         * modules/priv-set: New file.
39650         * modules/unlinkdir: Add dependency on priv-set module.
39651         * modules/write-any-file: Likewise.
39652
39653         Tests for module 'priv-set'.
39654         * modules/priv-set-tests: New file.
39655         * tests/test-priv-set.c: New file.
39656
39657 2009-05-03  Jim Meyering  <meyering@redhat.com>
39658             Bruno Haible  <bruno@clisp.org>
39659
39660         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39661         use the converted UTF-8 variant of the name instead.
39662
39663 2009-05-03  Jim Meyering  <meyering@redhat.com>
39664
39665         tests: tighten some getdate tests
39666         * tests/test-getdate.c (main): Tighten tests: require equality,
39667         not just greater than.  Set TZ envvar to UTC0.
39668
39669 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39670
39671         getdate: correctly interpret "next monday" when run on a Monday
39672         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39673         that e.g., "next tues" (when run on a tuesday) results in a date
39674         that is one week in the future, and not today's date.
39675         I.e., add a week when the wday is the same as the current one.
39676         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39677         and earlier by Martin Bernreuther and Jan Minář.
39678         * tests/test-getdate.c (main): Check that "next DAY" is always in
39679         the future and that "last DAY" is always in the past.
39680
39681 2009-05-02  Jim Meyering  <meyering@redhat.com>
39682
39683         build: ensure that a release build fails when a submodule is unclean
39684         * top/maint.mk (no-submodule-changes): New rule.
39685         (alpha beta major): Depend on it.
39686
39687 2009-05-02  Bruno Haible  <bruno@clisp.org>
39688
39689         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39690         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39691         shell variable gl_fnmatch_required to detect which variant is
39692         requested.
39693         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39694         gl_FUNC_FNMATCH_POSIX.
39695         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39696         exclude fnmatch-posix.
39697
39698 2009-05-02  Bruno Haible  <bruno@clisp.org>
39699
39700         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39701         * modules/mbsrtowcs (License): Change to LGPLv2+.
39702         * modules/strnlen1 (License): Likewise.
39703         Reported by Simon Josefsson.
39704
39705 2009-05-02  Bruno Haible  <bruno@clisp.org>
39706
39707         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39708         "cross".
39709         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39710         gnulib-tool was called with option --source-base=lib.
39711
39712 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39713
39714         Use automake *-local hooks without commands, for extensibility.
39715         * modules/localcharset (Makefile.am): Rename install-exec-local
39716         rule to install-exec-localcharset, and make it a prerequisite of
39717         install-exec-local.  Likewise, rename the uninstall-local rule to
39718         uninstall-localcharset, and make it a prerequisite of the former.
39719
39720 2009-05-01  Bruno Haible  <bruno@clisp.org>
39721
39722         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39723         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39724         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39725         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39726         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39727         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39728         m4/locale-zh.m4, m4/codeset.m4.
39729
39730         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39731         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39732         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39733         m4/locale-zh.m4.
39734
39735         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39736         REPLACE_WCRTOMB if mbstate_t must be replaced.
39737         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39738         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39739
39740 2009-05-01  Bruno Haible  <bruno@clisp.org>
39741
39742         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39743         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39744         dngettext, dcngettext, textdomain, bindtextdomain,
39745         bind_textdomain_codeset): Undefine before redefining.
39746
39747 2009-04-30  Bruno Haible  <bruno@clisp.org>
39748
39749         Fix bug introduced on 2009-04-25.
39750         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39751         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39752         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39753         is defined.
39754         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39755         is defined.
39756         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39757         is defined.
39758         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39759
39760 2009-04-28  Bruno Haible  <bruno@clisp.org>
39761
39762         Comment tweaks.
39763         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39764         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39765         * lib/unicase.h (u*_casexfrm): Likewise.
39766         Reported by Paolo Bonzini.
39767
39768 2009-04-28  Bruno Haible  <bruno@clisp.org>
39769
39770         Fix a compilation error.
39771         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39772         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39773         Reported by Jim Meyering.
39774
39775 2009-04-27  Bruno Haible  <bruno@clisp.org>
39776
39777         New module 'libunistring'.
39778         * modules/libunistring: New file.
39779         * m4/libunistring.m4: New file.
39780         * MODULES.html.sh (Unicode string functions): Add it.
39781
39782 2009-04-27  Eric Blake  <ebb9@byu.net>
39783
39784         maint.mk: allow package-specific header to provide <config.h>
39785         * top/maint.mk (sc_require_config_h): New variable.
39786         (sc_require_config_h, sc_require_config_h_first): Use it.
39787
39788 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39789
39790         * top/maint.mk (sc_avoid_if_before_free): Except
39791         useless-if-before-free script.
39792
39793 2009-04-27  Eric Blake  <ebb9@byu.net>
39794
39795         maintainer-makefile: depend on all required helper scripts
39796         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39797         useless-if-before-free.
39798         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39799         version, rather than assuming gnulib checkout is available.
39800         Reported by Simen Josefsson.
39801
39802 2009-04-26  Bruno Haible  <bruno@clisp.org>
39803
39804         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39805         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39806         "../" or "..".
39807
39808 2009-04-26  Bruno Haible  <bruno@clisp.org>
39809
39810         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39811         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39812         AC_LIB_HAVE_LINKFLAGS.
39813
39814 2009-04-26  Bruno Haible  <bruno@clisp.org>
39815
39816         Simplify calling convention of u*_conv_from_encoding.
39817         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39818         u32_conv_from_encoding): Expect a resultbuf argument and return the
39819         result directly as a pointer.
39820         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39821         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39822         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39823         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39824         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39825         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39826         Update.
39827         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39828         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39829         * lib/vasnprintf.c (VASNPRINTF): Update.
39830         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39831         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39832         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39833         * NEWS: Mention the change.
39834
39835 2009-04-26  Bruno Haible  <bruno@clisp.org>
39836
39837         Simplify calling convention of u*_conv_to_encoding.
39838         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39839         u32_conv_to_encoding): Expect a resultbuf argument and return the
39840         result directly as a pointer.
39841         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39842         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39843         freeing scaled_offsets if mem_iconveha failed.
39844         * lib/unicase/u-casexfrm.h (FUNC): Update.
39845         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39846         * lib/vasnprintf.c (VASNPRINTF): Update.
39847         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39848         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39849         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39850         * NEWS: Mention the change.
39851
39852 2009-04-26  Bruno Haible  <bruno@clisp.org>
39853
39854         Avoid test failures on AIX and OSF/1.
39855         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39856         malloc(0).
39857         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39858         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39859         Likewise.
39860         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39861         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39862         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39863         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39864         * doc/posix-functions/malloc.texi: Document the portability problem
39865         related to malloc(0).
39866
39867 2009-04-26  Bruno Haible  <bruno@clisp.org>
39868
39869         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39870         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39871         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39872
39873 2009-04-25  Bruno Haible  <bruno@clisp.org>
39874
39875         Avoid link error when creating a namespace clean library.
39876         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39877         as macro with arguments if already defined as an alias.
39878         * lib/signbitf.c (gl_signbitf): Don't undefine.
39879         * lib/signbitd.c (gl_signbitd): Don't undefine.
39880         * lib/signbitl.c (gl_signbitl): Don't undefine.
39881
39882 2009-04-25  Jim Meyering  <meyering@redhat.com>
39883
39884         vc-list-files: fix another quoting bug
39885         * build-aux/vc-list-files: Avoid sed backslash expansion
39886         of pathological directory names.
39887
39888 2009-04-25  Eric Blake  <ebb9@byu.net>
39889
39890         vc-list-files: fix shell quoting error
39891         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39892         timestamp.
39893
39894 2009-04-25  Jim Meyering  <meyering@redhat.com>
39895
39896         vc-list-files: restore lost functionality with subdir argument
39897         * build-aux/vc-list-files: When given a non-"." sub-directory
39898         argument, substitute the $dir/ prefix back onto each resulting name.
39899         Otherwise, coreutils' root_tests check would fail.
39900
39901 2009-04-24  Eric Blake  <ebb9@byu.net>
39902
39903         vc-list-files: ignore git symlinks
39904         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39905         than ls-files, to ignore git symlinks.
39906
39907         maint.mk: import improvements from m4
39908         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39909         (move_if_change): Delete unused macro.
39910         (news-date-check, vc-diff-check): Support VPATH builds.
39911         (announcement): Likewise.  Split --bootstrap-tools list...
39912         (boostrap-tools): ...into separate list, which can be overridden
39913         in cfg.mk.
39914         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39915         requiring dependency on useless-if-before-free module.
39916         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39917         Support VPATH builds.
39918
39919 2009-04-24  Jim Meyering  <meyering@redhat.com>
39920
39921         maint.mk: remove coreutils-specific rules and variables
39922         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39923         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39924         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39925
39926         maint.mk: remove obsolete rule
39927         * top/maint.mk (rel-check): Remove rule.
39928         (WGET, WGETFLAGS): Remove now-unused variables.
39929
39930 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39931
39932         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39933         consistency.
39934
39935         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39936         '$(PATH_SEPARATOR)' instead of ':'.
39937
39938 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39939
39940         * lib/getopt1.c (main): Use 'const' for static array.
39941
39942 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39943
39944         * top/maint.mk: Sync with coreutils.
39945         * NEWS: Explain incompatibilities.
39946
39947 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39948             Bruno Haible  <bruno@clisp.org>
39949
39950         Fix cross-compilation results.
39951         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39952         statement, as third argument of AC_TRY_RUN.
39953         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39954         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39955         Likewise.
39956         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39957         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39958         Likewise.
39959         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39960         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39961         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39962
39963 2009-04-20  Bruno Haible  <bruno@clisp.org>
39964
39965         Avoid test failure on mingw.
39966         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39967
39968 2009-04-20  Bruno Haible  <bruno@clisp.org>
39969
39970         Avoid compilation error on mingw.
39971         * modules/localename-tests (Depends-on): Add locale.
39972
39973 2009-04-19  Bruno Haible  <bruno@clisp.org>
39974
39975         Support for building a shared library on Windows platforms.
39976         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39977         (main): Test the presence of UNINORM_NFC here.
39978         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39979         (main): Test the presence of UNINORM_NFD here.
39980         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39981         (main): Test the presence of UNINORM_NFKC here.
39982         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39983         (main): Test the presence of UNINORM_NFKD here.
39984
39985 2009-04-19  Bruno Haible  <bruno@clisp.org>
39986
39987         Avoid a compiler warning.
39988         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39989         Change type of variable 'sequence'.
39990
39991 2009-04-19  Bruno Haible  <bruno@clisp.org>
39992
39993         * modules/configmake (Makefile.am): When the contents of configmake.h
39994         does not change, arrange to preserve its modification time.
39995
39996 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39997
39998         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39999         gettext domain.
40000
40001 2009-04-16  Jim Meyering  <meyering@redhat.com>
40002
40003         useless-if-before-free: improve conversion code
40004         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40005         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40006
40007 2009-04-14  Bruno Haible  <bruno@clisp.org>
40008
40009         * modules/fcntl (Depends-on): Add extensions.
40010         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40011
40012 2009-04-12  Ben Pfaff  <blp@gnu.org>
40013
40014         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40015         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40016
40017 2009-03-20  Ben Pfaff  <blp@gnu.org>
40018
40019         Make rename replace existing destinations on Windows.
40020         * m4/rename.m4: Add test for Mingw.
40021         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40022         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40023         * doc/posix-functions/rename.texi: Document.
40024
40025 2009-04-10  Bruno Haible  <bruno@clisp.org>
40026
40027         New include file "iconveh.h".
40028         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40029         * lib/striconveh.h: Include it.
40030         (enum iconv_ilseq_handler): Remove definition.
40031         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40032         striconveh.h.
40033         * lib/striconveha.c: Include striconveh.h.
40034         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40035         * modules/striconveh (Files): Add lib/iconveh.h.
40036         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40037         lib/striconveh.h.
40038
40039 2009-04-10  Bruno Haible  <bruno@clisp.org>
40040
40041         * lib/uniconv.h: Update comment.
40042
40043 2009-04-10  Bruno Haible  <bruno@clisp.org>
40044
40045         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40046         always.
40047         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40048         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40049         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40050         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40051         "unistring-notinline.h", so that the function gets defined always.
40052         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40053         * lib/unistr/u8-uctomb.c: Likewise.
40054         * lib/unistr/u16-mbtouc.c: Likewise.
40055         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40056         * lib/unistr/u16-uctomb.c: Likewise.
40057         * lib/unistr/u32-mbtouc.c: Likewise.
40058         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40059         * lib/unistr/u32-uctomb.c: Likewise.
40060
40061 2009-04-10  Bruno Haible  <bruno@clisp.org>
40062
40063         Mark 'utime' obsolete.
40064         * modules/utime (Status, Notice): New sections.
40065         Suggested by Jim Meyering.
40066
40067         Fix cross-compile guess for utime test.
40068         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40069         autoconf.
40070         * doc/posix-functions/utime.texi: Give more precisions.
40071         Reported by Jan <ipif@ymail.com>.
40072
40073 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40074
40075         filevercmp: correct today's change
40076         * lib/filevercmp.c: Also handle coreutils' test inputs.
40077         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40078
40079         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40080         for reporting it.
40081         * lib/filevercmp.c: Special handle for "", "." and "..".
40082         * tests/test-filevercmp.c: Enlarge the set suite.
40083
40084 2009-04-07  Jim Meyering  <meyering@redhat.com>
40085
40086         useless-if-before-free: show how to remove braced useless free, too
40087         * build-aux/useless-if-before-free: still only in a comment, though.
40088
40089 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40090
40091         maint.mk: import changes to syntax-check macros from coreutils
40092         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40093         Use them in the relevant macros.
40094
40095 2009-04-06  Bruno Haible  <bruno@clisp.org>
40096
40097         Fix unportable use of bit-fields.
40098         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40099         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40100         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40101
40102 2009-04-06  Bruno Haible  <bruno@clisp.org>
40103
40104         Avoid test failures on AIX and OSF/1.
40105         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40106         that malloc(0) = NULL.
40107         * tests/unicase/test-u8-tolower.c (check): Likewise.
40108         * tests/unicase/test-u8-totitle.c (check): Likewise.
40109         * tests/unicase/test-u8-toupper.c (check): Likewise.
40110         * tests/unicase/test-u16-casefold.c (check): Likewise.
40111         * tests/unicase/test-u16-tolower.c (check): Likewise.
40112         * tests/unicase/test-u16-totitle.c (check): Likewise.
40113         * tests/unicase/test-u16-toupper.c (check): Likewise.
40114         * tests/unicase/test-u32-casefold.c (check): Likewise.
40115         * tests/unicase/test-u32-tolower.c (check): Likewise.
40116         * tests/unicase/test-u32-totitle.c (check): Likewise.
40117         * tests/unicase/test-u32-toupper.c (check): Likewise.
40118         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40119         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40120         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40121         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40122         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40123         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40124         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40125         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40126         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40127         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40128         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40129         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40130
40131 2009-04-05  Bruno Haible  <bruno@clisp.org>
40132
40133         Work around an autoconf limitation.
40134         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40135         comment line if it would be longer than 3 KB.
40136
40137 2009-04-05  Bruno Haible  <bruno@clisp.org>
40138
40139         Avoid test failure with libiconv-1.13.
40140         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40141         of the expected test results.
40142
40143 2009-04-05  Bruno Haible  <bruno@clisp.org>
40144
40145         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40146         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40147         that it should be installed.
40148
40149 2009-04-05  Bruno Haible  <bruno@clisp.org>
40150
40151         * gnulib-tool: New option --copy-file.
40152         (func_usage): Document it.
40153         (func_dest_tmpfilename): Moved out of func_import.
40154         (func_add_file, func_update_file): New functions, extracted from
40155         func_import.
40156         (func_import): Update.
40157
40158 2009-04-05  Karl Berry  <karl@gnu.org>
40159
40160         * README: prominently mention gnulib-tool.
40161         Rearrange sections so getting the code is near the top.
40162
40163 2009-04-05  Bruno Haible  <bruno@clisp.org>
40164
40165         * lib/unicase.h: Mention u*_cmp2.
40166         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40167         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40168         * lib/unicase/ulc-casecmp.c: Likewise.
40169         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40170         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40171         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40172         unistr/u8-cmp.
40173         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40174         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40175         unistr/u16-cmp.
40176         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40177         unistr/u32-cmp.
40178
40179         * lib/uninorm.h: Mention u*_cmp2.
40180         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40181         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40182         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40183         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40184         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40185         unistr/u8-cmp.
40186         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40187         unistr/u16-cmp.
40188         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40189         unistr/u32-cmp.
40190
40191         New module 'unistr/u32-cmp2'.
40192         * lib/unistr/u32-cmp2.c: New file.
40193         * modules/unistr/u32-cmp2: New file.
40194
40195         New module 'unistr/u16-cmp2'.
40196         * lib/unistr/u16-cmp2.c: New file.
40197         * modules/unistr/u16-cmp2: New file.
40198
40199         New module 'unistr/u8-cmp2'.
40200         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40201         * lib/unistr/u8-cmp2.c: New file.
40202         * lib/unistr/u-cmp2.h: New file.
40203         * modules/unistr/u8-cmp2: New file.
40204
40205 2009-04-05  Bruno Haible  <bruno@clisp.org>
40206
40207         * lib/unictype.h (uc_property_is_valid): New macro.
40208         * tests/unictype/test-pr_byname.c (main): Use it.
40209
40210         * lib/unistr.h: Doc fixes.
40211         * lib/uniconv.h: Doc fixes.
40212         * lib/unictype.h: Doc fixes.
40213
40214 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40215
40216         Port coreutils 7.2 to Solaris 8.
40217
40218         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40219         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40220         for Solaris 8.  This is a bit of a hack, as it means it's the
40221         caller's responsibility to add -lnsl if needed, but most likely it
40222         won't be needed since only getaddrinfo uses this and getaddrinfo
40223         isn't needed on Solaris 8.
40224
40225         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40226         problem to Solaris 8 encountered with coreutils 7.2, which
40227         resulted in a message "fnmatch.c:292: warning: passing argument 4
40228         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40229         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40230
40231 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40232
40233         * m4/ld-version-script.m4: Add FIXME comment.
40234
40235 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40236
40237         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40238         SOVERSION variable.
40239
40240 2009-04-02  Bruno Haible  <bruno@clisp.org>
40241
40242         * Makefile (info, html, dvi, pdf): Combine the rules.
40243         Suggested by Jim Meyering.
40244
40245 2009-04-01  Bruno Haible  <bruno@clisp.org>
40246
40247         * Makefile (info, html, dvi, pdf): New targets.
40248         Reported by Reuben Thomas <rrt@sc3d.org>.
40249
40250 2009-04-01  Bruno Haible  <bruno@clisp.org>
40251
40252         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40253         can be put into PATH.
40254         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40255
40256 2009-04-01  Bruno Haible  <bruno@clisp.org>
40257
40258         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40259
40260 2009-04-01  Bruno Haible  <bruno@clisp.org>
40261
40262         Rename module 'visibility'.
40263         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40264         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40265         * doc/gnulib.texi: Update.
40266         * MODULES.html.sh (Misc): Update.
40267         * NEWS: Mention the change.
40268
40269 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40270
40271         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40272         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40273         Eric Blake <ebb9@byu.net> for review.
40274         * MODULES.html.sh: Add lib-msvc-compat.
40275         * doc/gnulib.texi: Link to new section.
40276         * m4/ld-output-def.m4: New file.
40277         * doc/ld-output-def.texi: New file.
40278
40279 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40280
40281         Rename ld-version-script to lib-symbol-versions.  Suggested by
40282         Bruno Haible <bruno@clisp.org>.
40283         * modules/ld-version-script: Renamed to lib-symbol-versions.
40284         * doc/ld-version-script.texi: Fix module name.
40285         * MODULES.html.sh: Add lib-symbol-versions.
40286
40287 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40288
40289         * modules/u64-tests: New file.
40290         * tests/test-u64.c: New file.
40291
40292 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40293
40294         * MODULES.html.sh: Mention u64.
40295         * modules/u64: New module.
40296         * modules/crypto/sha512: Depend on u64 module instead of providing
40297         u64.h.
40298
40299 2009-03-27  Eric Blake  <ebb9@byu.net>
40300
40301         test-strerror: make debugging EAI_SYSTEM easier
40302         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40303         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40304         failure was EAI_SYSTEM.
40305
40306 2009-03-25  Bruno Haible  <bruno@clisp.org>
40307
40308         Fix a problem with --enable-relocatable on Solaris 7.
40309         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40310         since 2008-02-24.
40311
40312 2009-03-25  Eric Blake  <ebb9@byu.net>
40313
40314         test-sockets: avoid gcc warning
40315         * tests/test-sockets.c (main): Silence compiler warning.
40316
40317 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40318
40319         New modules nproc, pthread, contributed by Glen Lenker.
40320
40321         * MODULES.html.sh: Add pthread, nproc.
40322         * lib/nproc.c: New file.
40323         * lib/nproc.h: New file.
40324         * lib/pthread.in.h: New file.
40325         * m4/pthread.m4: New file.
40326         * modules/nproc: New file.
40327         * modules/pthread: New file.
40328
40329 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40330
40331         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40332         New variable.
40333
40334 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40335
40336         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40337         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40338         * tests/test-filevercmp.c: Add tests for backup suffixes.
40339
40340 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40341
40342         * modules/stdlib (Depends-on): Add stdint, needed when defining
40343         struct random_data on, for example, HP-UX 10.20.  Reported by
40344         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40345
40346 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40347
40348         * lib/readline.c (readline): Call fflush on stdout after printing
40349         prompt.
40350
40351 2009-03-20  Bruno Haible  <bruno@clisp.org>
40352
40353         Remove dependency from 'close' module to -lws2_32 on native Windows.
40354         * lib/close-hook.h: New file.
40355         * lib/close-hook.c: New file.
40356         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40357         w32sock.h.
40358         (_gl_close_fd_maybe_socket): Remove function.
40359         (rpl_close): Invoke execute_all_close_hooks instead of
40360         _gl_close_fd_maybe_socket.
40361         * lib/sockets.c: Include close-hook.h, w32sock.h.
40362         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40363         (close_sockets_hook): New variable.
40364         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40365         (gl_sockets_cleanup): Unregister it.
40366         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40367         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40368         * modules/close-hook: New file.
40369         * modules/close (Files): Remove lib/w32sock.h.
40370         (Depends-on): Add close-hook.
40371         (Link): Remove section.
40372         * modules/sockets (Files): Add lib/w32sock.h.
40373         (Depends-on): Add close-hook.
40374         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40375         invocation.
40376         * NEWS: Mention that LIB_CLOSE is gone.
40377
40378 2009-03-23  Eric Blake  <ebb9@byu.net>
40379
40380         signal-tests: test previous patch
40381         * tests/test-signal.c: New file.
40382         * modules/signal-tests: Likewise.
40383
40384         signal.h: always support 'volatile sig_atomic_t'
40385         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40386         (gl_SIGNAL_H_DEFAULTS): Add a default.
40387         * modules/signal (Makefile.am): Substitute if needed.
40388         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40389         users can blindly add volatile.
40390         * doc/posix-headers/signal.texi (signal.h): Document it.
40391         Reported by Matthew Woehlke.
40392
40393 2009-03-23  Jim Meyering  <meyering@redhat.com>
40394
40395         pathmax: PATH_MAX: use pathconf only when available
40396         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40397         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40398         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40399         This avoids a link failure in a PSP cross-compilation environment
40400         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40401
40402         * lib/vasnprintf.c (divide): Fix typo in comment.
40403
40404 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40405
40406         * gnulib-tool (func_filter_filelist): Fix comment.
40407
40408 2009-03-20  Bruno Haible  <bruno@clisp.org>
40409
40410         Make sockets.h self-contained.
40411         * lib/sockets.c: Include sockets.h first.
40412         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40413
40414 2009-03-19  Eric Blake  <ebb9@byu.net>
40415
40416         doc: mention more functions added in cygwin 1.7.0
40417         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40418         addition.
40419         * doc/posix-functions/log2f.texi: Likewise.
40420
40421 2009-03-19  Jim Meyering  <meyering@redhat.com>
40422
40423         fsusage: avoid syntax error due to statement-before-declaration
40424         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40425         after all declarations.  Reported by Matthew Woehlke in
40426         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40427
40428 2009-03-18  Eric Blake  <ebb9@byu.net>
40429
40430         build-aux/compile: sync from automake
40431         * build-aux/compile: New file, from automake.
40432         * config/srclist.txt: Mention build-aux/compile.
40433
40434 2009-03-17  Bruno Haible  <bruno@clisp.org>
40435
40436         * lib/git-merge-changelog.c: Fix typo in comment.
40437         Reported by Reuben Thomas <rrt@sc3d.org>.
40438
40439 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40440
40441         * m4/regex.m4: update and improve help for
40442         --without-included-regex.
40443
40444 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40445
40446         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40447         failure on missing include files.
40448
40449 2009-03-17  Eric Blake  <ebb9@byu.net>
40450
40451         doc: mention more functions added in cygwin 1.7.0
40452         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40453         addition.
40454         * doc/posix-functions/fwscanf.texi: Likewise.
40455         * doc/posix-functions/swprintf.texi: Likewise.
40456         * doc/posix-functions/swscanf.texi: Likewise.
40457         * doc/posix-functions/vfwprintf.texi: Likewise.
40458         * doc/posix-functions/vfwscanf.texi: Likewise.
40459         * doc/posix-functions/vswprintf.texi: Likewise.
40460         * doc/posix-functions/vswscanf.texi: Likewise.
40461         * doc/posix-functions/vwprintf.texi: Likewise.
40462         * doc/posix-functions/vwscanf.texi: Likewise.
40463         * doc/posix-functions/wcscasecmp.texi: Likewise.
40464         * doc/posix-functions/wcsdup.texi: Likewise.
40465         * doc/posix-functions/wcsftime.texi: Likewise.
40466         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40467         * doc/posix-functions/wprintf.texi: Likewise.
40468         * doc/posix-functions/wscanf.texi: Likewise.
40469         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40470
40471 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40472
40473         maint.mk: really add $(AM_MAKEFLAGS)
40474         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40475         was inadvertently omitted in the last commit.
40476         Spotted by Bruno Haible.
40477
40478         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40479         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40480         $(AM_MAKEFLAGS)' rather than plain `make'.
40481
40482         gnulib-tool: execute $MAKE not make
40483         * gnulib-tool: Default $MAKE to 'make'.
40484         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40485         than make.  Initialize $MAKE in the do-autobuild script.
40486
40487         gnulib-tool: use $MAKE not make in generated files
40488         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40489         make, in generated files.  Initialize $MAKE in the do-autobuild
40490         script.
40491
40492         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40493
40494         GNUmakefile: disable parallelism only for multiple, recursive targets
40495         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40496         additions in the Makefile.
40497         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40498         by Automake.
40499         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40500         are listed on the command line and at least one of them is
40501         listed in $(ALL_RECURSIVE_TARGETS).
40502
40503 2009-03-14  Bruno Haible  <bruno@clisp.org>
40504
40505         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40506         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40507         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40508         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40509         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40510         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40511         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40512         unistr/u8-uctomb.
40513         * modules/unistr/u8-strchr (Depends-on): Likewise.
40514         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40515         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40516         unistr/u16-uctomb.
40517         * modules/unistr/u16-strchr (Depends-on): Likewise.
40518         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40519
40520 2009-03-12  Bruno Haible  <bruno@clisp.org>
40521
40522         Work around select() bug on Interix 3.5.
40523         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40524         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40525         * m4/select.m4: New file.
40526         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40527         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40528         * modules/select (Files): Add m4/select.m4.
40529         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40530         * modules/nanosleep (Depends-on): Add select.
40531         * modules/poll (Depends-on): Likewise.
40532         * doc/posix-functions/select.texi: Mention the Interix bug.
40533         Reported by Markus Duft <mduft@gentoo.org>.
40534
40535         * lib/select.c: Renamed from lib/winsock-select.c.
40536         * modules/select (Files): Add lib/select.c, remove
40537         lib/winsock-select.c.
40538         (configure.ac): Update.
40539
40540 2009-03-12  Jim Meyering  <meyering@redhat.com>
40541
40542         avoid gcc warnings about unused macro definitions
40543         * lib/readtokens.c (STREQ): Remove unused definition.
40544         * lib/xmalloc.c (SIZE_MAX): Likewise.
40545         * lib/openat-die.c (N_): Likewise.
40546         * lib/mountlist.c (SIZE_MAX): Remove definition.
40547         Instead, include <stdint.h>.
40548         * lib/readutmp.c: Likewise.
40549         * modules/readutmp (Depends-on): Add stdint.
40550         * modules/mountlist (Depends-on): Add stdint.
40551         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40552
40553 2009-03-10  Bruno Haible  <bruno@clisp.org>
40554
40555         Tests for module 'mbmemcasecoll'.
40556         * modules/mbmemcasecoll-tests: New file.
40557         * tests/test-mbmemcasecoll1.sh: New file.
40558         * tests/test-mbmemcasecoll2.sh: New file.
40559         * tests/test-mbmemcasecoll3.sh: New file.
40560         * tests/test-mbmemcasecoll.c: New file.
40561
40562         New module 'mbmemcasecoll'.
40563         * lib/mbmemcasecoll.h: New file.
40564         * lib/mbmemcasecoll.c: New file.
40565         * modules/mbmemcasecoll: New file.
40566
40567         * tests/test-mbmemcasecmp.h: New file, extracted from
40568         tests/test-mbmemcasecmp.c.
40569         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40570         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40571         (main): Update.
40572         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40573
40574 2009-03-09  Bruno Haible  <bruno@clisp.org>
40575
40576         Tests for module 'mbmemcasecmp'.
40577         * modules/mbmemcasecmp-tests: New file.
40578         * tests/test-mbmemcasecmp1.sh: New file.
40579         * tests/test-mbmemcasecmp2.sh: New file.
40580         * tests/test-mbmemcasecmp3.sh: New file.
40581         * tests/test-mbmemcasecmp.c: New file.
40582
40583         New module 'mbmemcasecmp'.
40584         * lib/mbmemcasecmp.h: New file.
40585         * lib/mbmemcasecmp.c: New file.
40586         * modules/mbmemcasecmp: New file.
40587
40588 2009-03-09  Bruno Haible  <bruno@clisp.org>
40589
40590         Tests for module 'unicase/ulc-casecoll'.
40591         * modules/unicase/ulc-casecoll-tests: New file.
40592         * tests/unicase/test-ulc-casecoll1.sh: New file.
40593         * tests/unicase/test-ulc-casecoll2.sh: New file.
40594         * tests/unicase/test-ulc-casecoll.c: New file.
40595
40596         New module 'unicase/ulc-casecoll'.
40597         * lib/unicase.h (ulc_casecoll): New declaration.
40598         * lib/unicase/ulc-casecoll.c: New file.
40599         * modules/unicase/ulc-casecoll: New file.
40600
40601         New module 'unicase/ulc-casexfrm'.
40602         * lib/unicase.h (ulc_casexfrm): New declaration.
40603         * lib/unicase/ulc-casexfrm.c: New file.
40604         * modules/unicase/ulc-casexfrm: New file.
40605
40606 2009-03-09  Bruno Haible  <bruno@clisp.org>
40607
40608         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40609         invocations.
40610
40611         * m4/mbscasecmp.m4: Remove file.
40612         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40613         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40614
40615         * m4/mbscasestr.m4: Remove file.
40616         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40617         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40618
40619         * m4/mbschr.m4: Remove file.
40620         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40621         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40622
40623         * m4/mbscspn.m4: Remove file.
40624         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40625         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40626
40627         * m4/mbslen.m4: Remove file.
40628         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40629         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40630
40631         * m4/mbsncasecmp.m4: Remove file.
40632         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40633         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40634
40635         * m4/mbsnlen.m4: Remove file.
40636         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40637         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40638
40639         * m4/mbspbrk.m4: Remove file.
40640         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40641         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40642
40643         * m4/mbspcasecmp.m4: Remove file.
40644         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40645         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40646
40647         * m4/mbsrchr.m4: Remove file.
40648         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40649         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40650
40651         * m4/mbssep.m4: Remove file.
40652         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40653         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40654
40655         * m4/mbsspn.m4: Remove file.
40656         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40657         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40658
40659         * m4/mbsstr.m4: Remove file.
40660         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40661         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40662
40663         * m4/mbstok_r.m4: Remove file.
40664         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40665         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40666
40667         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40668
40669         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40670         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40671
40672         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40673
40674 2009-03-08  Bruno Haible  <bruno@clisp.org>
40675
40676         Tests for module 'unicase/ulc-casecmp'.
40677         * modules/unicase/ulc-casecmp-tests: New file.
40678         * tests/unicase/test-ulc-casecmp1.sh: New file.
40679         * tests/unicase/test-ulc-casecmp2.sh: New file.
40680         * tests/unicase/test-ulc-casecmp.c: New file.
40681
40682         New module 'unicase/ulc-casecmp'.
40683         * lib/unicase.h (ulc_casecmp): New declaration.
40684         * lib/unicase/ulc-casecmp.c: New file.
40685         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40686         'const SRC_UNIT *'.
40687         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40688         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40689         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40690         * modules/unicase/ulc-casecmp: New file.
40691
40692         Tests for module 'unicase/u32-is-cased'.
40693         * modules/unicase/u32-is-cased-tests: New file.
40694         * tests/unicase/test-u32-is-cased.c: New file.
40695
40696         Tests for module 'unicase/u16-is-cased'.
40697         * modules/unicase/u16-is-cased-tests: New file.
40698         * tests/unicase/test-u16-is-cased.c: New file.
40699
40700         Tests for module 'unicase/u8-is-cased'.
40701         * modules/unicase/u8-is-cased-tests: New file.
40702         * tests/unicase/test-u8-is-cased.c: New file.
40703         * tests/unicase/test-is-cased.h: New file.
40704
40705         New module 'unicase/u32-is-cased'.
40706         * lib/unicase/u32-is-cased.c: New file.
40707         * modules/unicase/u32-is-cased: New file.
40708
40709         New module 'unicase/u16-is-cased'.
40710         * lib/unicase/u16-is-cased.c: New file.
40711         * modules/unicase/u16-is-cased: New file.
40712
40713         New module 'unicase/u8-is-cased'.
40714         * lib/unicase/u8-is-cased.c: New file.
40715         * lib/unicase/u-is-cased.h: New file.
40716         * modules/unicase/u8-is-cased: New file.
40717
40718         Tests for module 'unicase/u32-is-casefolded'.
40719         * modules/unicase/u32-is-casefolded-tests: New file.
40720         * tests/unicase/test-u32-is-casefolded.c: New file.
40721
40722         Tests for module 'unicase/u16-is-casefolded'.
40723         * modules/unicase/u16-is-casefolded-tests: New file.
40724         * tests/unicase/test-u16-is-casefolded.c: New file.
40725
40726         Tests for module 'unicase/u8-is-casefolded'.
40727         * modules/unicase/u8-is-casefolded-tests: New file.
40728         * tests/unicase/test-u8-is-casefolded.c: New file.
40729         * tests/unicase/test-is-casefolded.h: New file.
40730
40731         New module 'unicase/u32-is-casefolded'.
40732         * lib/unicase/u32-is-casefolded.c: New file.
40733         * modules/unicase/u32-is-casefolded: New file.
40734
40735         New module 'unicase/u16-is-casefolded'.
40736         * lib/unicase/u16-is-casefolded.c: New file.
40737         * modules/unicase/u16-is-casefolded: New file.
40738
40739         New module 'unicase/u8-is-casefolded'.
40740         * lib/unicase/u8-is-casefolded.c: New file.
40741         * modules/unicase/u8-is-casefolded: New file.
40742
40743         Tests for module 'unicase/u32-is-titlecase'.
40744         * modules/unicase/u32-is-titlecase-tests: New file.
40745         * tests/unicase/test-u32-is-titlecase.c: New file.
40746
40747         Tests for module 'unicase/u16-is-titlecase'.
40748         * modules/unicase/u16-is-titlecase-tests: New file.
40749         * tests/unicase/test-u16-is-titlecase.c: New file.
40750
40751         Tests for module 'unicase/u8-is-titlecase'.
40752         * modules/unicase/u8-is-titlecase-tests: New file.
40753         * tests/unicase/test-u8-is-titlecase.c: New file.
40754         * tests/unicase/test-is-titlecase.h: New file.
40755
40756         New module 'unicase/u32-is-titlecase'.
40757         * lib/unicase/u32-is-titlecase.c: New file.
40758         * modules/unicase/u32-is-titlecase: New file.
40759
40760         New module 'unicase/u16-is-titlecase'.
40761         * lib/unicase/u16-is-titlecase.c: New file.
40762         * modules/unicase/u16-is-titlecase: New file.
40763
40764         New module 'unicase/u8-is-titlecase'.
40765         * lib/unicase/u8-is-titlecase.c: New file.
40766         * modules/unicase/u8-is-titlecase: New file.
40767
40768         Tests for module 'unicase/u32-is-lowercase'.
40769         * modules/unicase/u32-is-lowercase-tests: New file.
40770         * tests/unicase/test-u32-is-lowercase.c: New file.
40771
40772         Tests for module 'unicase/u16-is-lowercase'.
40773         * modules/unicase/u16-is-lowercase-tests: New file.
40774         * tests/unicase/test-u16-is-lowercase.c: New file.
40775
40776         Tests for module 'unicase/u8-is-lowercase'.
40777         * modules/unicase/u8-is-lowercase-tests: New file.
40778         * tests/unicase/test-u8-is-lowercase.c: New file.
40779         * tests/unicase/test-is-lowercase.h: New file.
40780
40781         New module 'unicase/u32-is-lowercase'.
40782         * lib/unicase/u32-is-lowercase.c: New file.
40783         * modules/unicase/u32-is-lowercase: New file.
40784
40785         New module 'unicase/u16-is-lowercase'.
40786         * lib/unicase/u16-is-lowercase.c: New file.
40787         * modules/unicase/u16-is-lowercase: New file.
40788
40789         New module 'unicase/u8-is-lowercase'.
40790         * lib/unicase/u8-is-lowercase.c: New file.
40791         * modules/unicase/u8-is-lowercase: New file.
40792
40793         Tests for module 'unicase/u32-is-uppercase'.
40794         * modules/unicase/u32-is-uppercase-tests: New file.
40795         * tests/unicase/test-u32-is-uppercase.c: New file.
40796
40797         Tests for module 'unicase/u16-is-uppercase'.
40798         * modules/unicase/u16-is-uppercase-tests: New file.
40799         * tests/unicase/test-u16-is-uppercase.c: New file.
40800
40801         Tests for module 'unicase/u8-is-uppercase'.
40802         * modules/unicase/u8-is-uppercase-tests: New file.
40803         * tests/unicase/test-u8-is-uppercase.c: New file.
40804         * tests/unicase/test-is-uppercase.h: New file.
40805
40806         New module 'unicase/u32-is-uppercase'.
40807         * lib/unicase/u32-is-uppercase.c: New file.
40808         * modules/unicase/u32-is-uppercase: New file.
40809
40810         New module 'unicase/u16-is-uppercase'.
40811         * lib/unicase/u16-is-uppercase.c: New file.
40812         * modules/unicase/u16-is-uppercase: New file.
40813
40814         New module 'unicase/u8-is-uppercase'.
40815         * lib/unicase/u8-is-uppercase.c: New file.
40816         * modules/unicase/u8-is-uppercase: New file.
40817
40818         New module 'unicase/u32-is-invariant'.
40819         * lib/unicase/u32-is-invariant.c: New file.
40820         * modules/unicase/u32-is-invariant: New file.
40821
40822         New module 'unicase/u16-is-invariant'.
40823         * lib/unicase/u16-is-invariant.c: New file.
40824         * modules/unicase/u16-is-invariant: New file.
40825
40826         New module 'unicase/u8-is-invariant'.
40827         * lib/unicase/u8-is-invariant.c: New file.
40828         * lib/unicase/invariant.h: New file.
40829         * lib/unicase/u-is-invariant.h: New file.
40830         * modules/unicase/u8-is-invariant: New file.
40831
40832         Tests for module 'unicase/u32-casecoll'.
40833         * modules/unicase/u32-casecoll-tests: New file.
40834         * tests/unicase/test-u32-casecoll.c: New file.
40835
40836         Tests for module 'unicase/u16-casecoll'.
40837         * modules/unicase/u16-casecoll-tests: New file.
40838         * tests/unicase/test-u16-casecoll.c: New file.
40839
40840         Tests for module 'unicase/u8-casecoll'.
40841         * modules/unicase/u8-casecoll-tests: New file.
40842         * tests/unicase/test-u8-casecoll.c: New file.
40843
40844         New module 'unicase/u32-casecoll'.
40845         * lib/unicase/u32-casecoll.c: New file.
40846         * modules/unicase/u32-casecoll: New file.
40847
40848         New module 'unicase/u16-casecoll'.
40849         * lib/unicase/u16-casecoll.c: New file.
40850         * modules/unicase/u16-casecoll: New file.
40851
40852         New module 'unicase/u8-casecoll'.
40853         * lib/unicase/u8-casecoll.c: New file.
40854         * lib/unicase/u-casecoll.h: New file.
40855         * modules/unicase/u8-casecoll: New file.
40856
40857         New module 'unicase/u32-casexfrm'.
40858         * lib/unicase/u32-casexfrm.c: New file.
40859         * modules/unicase/u32-casexfrm: New file.
40860
40861         New module 'unicase/u16-casexfrm'.
40862         * lib/unicase/u16-casexfrm.c: New file.
40863         * modules/unicase/u16-casexfrm: New file.
40864
40865         New module 'unicase/u8-casexfrm'.
40866         * lib/unicase/u8-casexfrm.c: New file.
40867         * lib/unicase/u-casexfrm.h: New file.
40868         * modules/unicase/u8-casexfrm: New file.
40869
40870         Tests for module 'unicase/u32-casecmp'.
40871         * modules/unicase/u32-casecmp-tests: New file.
40872         * tests/unicase/test-u32-casecmp.c: New file.
40873
40874         Tests for module 'unicase/u16-casecmp'.
40875         * modules/unicase/u16-casecmp-tests: New file.
40876         * tests/unicase/test-u16-casecmp.c: New file.
40877
40878         Tests for module 'unicase/u8-casecmp'.
40879         * modules/unicase/u8-casecmp-tests: New file.
40880         * tests/unicase/test-u8-casecmp.c: New file.
40881         * tests/unicase/test-casecmp.h: New file.
40882
40883         New module 'unicase/u32-casecmp'.
40884         * lib/unicase/u32-casecmp.c: New file.
40885         * modules/unicase/u32-casecmp: New file.
40886
40887         New module 'unicase/u16-casecmp'.
40888         * lib/unicase/u16-casecmp.c: New file.
40889         * modules/unicase/u16-casecmp: New file.
40890
40891         New module 'unicase/u8-casecmp'.
40892         * lib/unicase/u8-casecmp.c: New file.
40893         * lib/unicase/u-casecmp.h: New file.
40894         * modules/unicase/u8-casecmp: New file.
40895
40896         Tests for module 'unicase/u32-casefold'.
40897         * modules/unicase/u32-casefold-tests: New file.
40898         * tests/unicase/test-u32-casefold.c: New file.
40899
40900         Tests for module 'unicase/u16-casefold'.
40901         * modules/unicase/u16-casefold-tests: New file.
40902         * tests/unicase/test-u16-casefold.c: New file.
40903
40904         Tests for module 'unicase/u8-casefold'.
40905         * modules/unicase/u8-casefold-tests: New file.
40906         * tests/unicase/test-u8-casefold.c: New file.
40907
40908         New module 'unicase/u32-casefold'.
40909         * lib/unicase/u32-casefold.c: New file.
40910         * modules/unicase/u32-casefold: New file.
40911
40912         New module 'unicase/u16-casefold'.
40913         * lib/unicase/u16-casefold.c: New file.
40914         * modules/unicase/u16-casefold: New file.
40915
40916         New module 'unicase/u8-casefold'.
40917         * lib/unicase/u8-casefold.c: New file.
40918         * lib/unicase/u-casefold.h: New file.
40919         * modules/unicase/u8-casefold: New file.
40920
40921         New module 'unicase/tocasefold'.
40922         * lib/unicase/casefold.h: New file.
40923         * lib/unicase/tocasefold.c: New file.
40924         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40925         * modules/unicase/tocasefold: New file.
40926
40927         Tests for module 'unicase/u32-totitle'.
40928         * modules/unicase/u32-totitle-tests: New file.
40929         * tests/unicase/test-u32-totitle.c: New file.
40930
40931         Tests for module 'unicase/u16-totitle'.
40932         * modules/unicase/u16-totitle-tests: New file.
40933         * tests/unicase/test-u16-totitle.c: New file.
40934
40935         Tests for module 'unicase/u8-totitle'.
40936         * modules/unicase/u8-totitle-tests: New file.
40937         * tests/unicase/test-u8-totitle.c: New file.
40938
40939         New module 'unicase/u32-totitle'.
40940         * lib/unicase/u32-totitle.c: New file.
40941         * modules/unicase/u32-totitle: New file.
40942
40943         New module 'unicase/u16-totitle'.
40944         * lib/unicase/u16-totitle.c: New file.
40945         * modules/unicase/u16-totitle: New file.
40946
40947         New module 'unicase/u8-totitle'.
40948         * lib/unicase/u8-totitle.c: New file.
40949         * lib/unicase/u-totitle.h: New file.
40950         * modules/unicase/u8-totitle: New file.
40951
40952         Tests for module 'unicase/u32-tolower'.
40953         * modules/unicase/u32-tolower-tests: New file.
40954         * tests/unicase/test-u32-tolower.c: New file.
40955
40956         Tests for module 'unicase/u16-tolower'.
40957         * modules/unicase/u16-tolower-tests: New file.
40958         * tests/unicase/test-u16-tolower.c: New file.
40959
40960         Tests for module 'unicase/u8-tolower'.
40961         * modules/unicase/u8-tolower-tests: New file.
40962         * tests/unicase/test-u8-tolower.c: New file.
40963
40964         New module 'unicase/u32-tolower'.
40965         * lib/unicase/u32-tolower.c: New file.
40966         * modules/unicase/u32-tolower: New file.
40967
40968         New module 'unicase/u16-tolower'.
40969         * lib/unicase/u16-tolower.c: New file.
40970         * modules/unicase/u16-tolower: New file.
40971
40972         New module 'unicase/u8-tolower'.
40973         * lib/unicase/u8-tolower.c: New file.
40974         * modules/unicase/u8-tolower: New file.
40975
40976         Tests for module 'unicase/u32-toupper'.
40977         * modules/unicase/u32-toupper-tests: New file.
40978         * tests/unicase/test-u32-toupper.c: New file.
40979
40980         Tests for module 'unicase/u16-toupper'.
40981         * modules/unicase/u16-toupper-tests: New file.
40982         * tests/unicase/test-u16-toupper.c: New file.
40983
40984         Tests for module 'unicase/u8-toupper'.
40985         * modules/unicase/u8-toupper-tests: New file.
40986         * tests/unicase/test-u8-toupper.c: New file.
40987
40988         New module 'unicase/u32-toupper'.
40989         * lib/unicase/u32-toupper.c: New file.
40990         * modules/unicase/u32-toupper: New file.
40991
40992         New module 'unicase/u16-toupper'.
40993         * lib/unicase/u16-toupper.c: New file.
40994         * modules/unicase/u16-toupper: New file.
40995
40996         New module 'unicase/u8-toupper'.
40997         * lib/unicase/u8-toupper.c: New file.
40998         * modules/unicase/u8-toupper: New file.
40999
41000         New module 'unicase/u32-casemap'.
41001         * lib/unicase/u32-casemap.c: New file.
41002         * modules/unicase/u32-casemap: New file.
41003
41004         New module 'unicase/u16-casemap'.
41005         * lib/unicase/u16-casemap.c: New file.
41006         * modules/unicase/u16-casemap: New file.
41007
41008         New module 'unicase/u8-casemap'.
41009         * lib/unicase/unicasemap.h: New file.
41010         * lib/unicase/u8-casemap.c: New file.
41011         * lib/unicase/u-casemap.h: New file.
41012         * modules/unicase/u8-casemap: New file.
41013
41014         New module 'unicase/special-casing'.
41015         * lib/unicase/special-casing.h: New file.
41016         * lib/unicase/special-casing.c: New file.
41017         * lib/unicase/special-casing-table.gperf: New file, generated by
41018         gen-uni-tables.c.
41019         * modules/unicase/special-casing: New file.
41020
41021         Tests for module 'unicase/locale-language'.
41022         * modules/unicase/locale-language-tests: New file.
41023         * tests/unicase/test-locale-language.sh: New file.
41024         * tests/unicase/test-locale-language.c: New file.
41025
41026         New module 'unicase/locale-language'.
41027         * lib/unicase/locale-language.c: New file.
41028         * lib/unicase/locale-languages.gperf: New file.
41029         * modules/unicase/locale-language: New file.
41030
41031         Generate more tables for case conversion and case folding.
41032         * lib/gen-uni-tables.c (SCC_*): New enum items.
41033         (struct special_casing_rule): New type.
41034         (casing_rules, num_casing_rules, allocated_casing_rules): New
41035         variables.
41036         (add_casing_rule, fill_casing_rules): New functions.
41037         (struct casefold_rule): New type.
41038         (casefolding_rules, num_casefolding_rules,
41039         allocated_casefolding_rules): New variables.
41040         (fill_casefolding_rules): New function.
41041         (unicode_casefold): New variable.
41042         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41043         sort_casing_rules, output_casing_rules): New functions.
41044         (main): Accept to more arguments: SpecialCasing.txt and
41045         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41046         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41047         Output mapping for casefolding.
41048
41049         * lib/unicase.h: Include stdbool.h, uninorm.h.
41050         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41051         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41052         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41053         arguments.
41054         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41055         resultp arguments.
41056         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41057         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41058         resultp arguments.
41059         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41060         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41061         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41062         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41063         declarations.
41064         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41065
41066 2009-03-08  Bruno Haible  <bruno@clisp.org>
41067
41068         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41069         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41070         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41071         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41072
41073 2009-03-07  Bruno Haible  <bruno@clisp.org>
41074
41075         Adjust u*_normcmp, u*_normcoll API.
41076         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41077         u16_normcoll, u32_normcoll): Change failure conventions.
41078         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41079         errno and return -1.
41080         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41081
41082 2009-03-07  Bruno Haible  <bruno@clisp.org>
41083
41084         Tests for module 'uninorm/u32-normcoll'.
41085         * modules/uninorm/u32-normcoll-tests: New file.
41086         * tests/uninorm/test-u32-normcoll.c: New file.
41087
41088         Tests for module 'uninorm/u16-normcoll'.
41089         * modules/uninorm/u16-normcoll-tests: New file.
41090         * tests/uninorm/test-u16-normcoll.c: New file.
41091
41092         Tests for module 'uninorm/u8-normcoll'.
41093         * modules/uninorm/u8-normcoll-tests: New file.
41094         * tests/uninorm/test-u8-normcoll.c: New file.
41095
41096 2009-03-07  Bruno Haible  <bruno@clisp.org>
41097
41098         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41099         tests/uninorm/test-u32-normcmp.c.
41100         * tests/uninorm/test-u32-normcmp.c: Include it.
41101         (test_nonascii): New function, extracted from main. Add some more
41102         tests.
41103         (main): Invoke test_ascii and test_nonascii.
41104         * modules/uninorm/u32-normcmp-tests (Files): Add
41105         tests/uninorm/test-u32-normcmp.h.
41106         (Depends-on): Remove uninorm/u32-normcmp.
41107
41108         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41109         tests/uninorm/test-u16-normcmp.c.
41110         * tests/uninorm/test-u16-normcmp.c: Include it.
41111         (test_nonascii): New function, extracted from main. Add some more
41112         tests.
41113         (main): Invoke test_ascii and test_nonascii.
41114         * modules/uninorm/u16-normcmp-tests (Files): Add
41115         tests/uninorm/test-u16-normcmp.h.
41116         (Depends-on): Remove uninorm/u16-normcmp.
41117
41118         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41119         tests/uninorm/test-u8-normcmp.c.
41120         * tests/uninorm/test-u8-normcmp.c: Include it.
41121         (test_nonascii): New function, extracted from main. Add some more
41122         tests.
41123         (main): Invoke test_ascii and test_nonascii.
41124         * modules/uninorm/u8-normcmp-tests (Files): Add
41125         tests/uninorm/test-u8-normcmp.h.
41126         (Depends-on): Remove uninorm/u8-normcmp.
41127
41128 2009-03-07  Bruno Haible  <bruno@clisp.org>
41129
41130         New module 'uninorm/u32-normcoll'.
41131         * lib/uninorm/u32-normcoll.c: New file.
41132         * modules/uninorm/u32-normcoll: New file.
41133
41134         New module 'uninorm/u16-normcoll'.
41135         * lib/uninorm/u16-normcoll.c: New file.
41136         * modules/uninorm/u16-normcoll: New file.
41137
41138         New module 'uninorm/u8-normcoll'.
41139         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41140         declarations.
41141         * lib/uninorm/u8-normcoll.c: New file.
41142         * lib/uninorm/u-normcoll.h: New file.
41143         * modules/uninorm/u8-normcoll: New file.
41144
41145         New module 'uninorm/u32-normxfrm'.
41146         * lib/uninorm/u32-normxfrm.c: New file.
41147         * modules/uninorm/u32-normxfrm: New file.
41148
41149         New module 'uninorm/u16-normxfrm'.
41150         * lib/uninorm/u16-normxfrm.c: New file.
41151         * modules/uninorm/u16-normxfrm: New file.
41152
41153         New module 'uninorm/u8-normxfrm'.
41154         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41155         declarations.
41156         * lib/uninorm/u8-normxfrm.c: New file.
41157         * lib/uninorm/u-normxfrm.h: New file.
41158         * modules/uninorm/u8-normxfrm: New file.
41159
41160 2009-03-07  Bruno Haible  <bruno@clisp.org>
41161
41162         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41163         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41164         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41165
41166 2009-03-07  Bruno Haible  <bruno@clisp.org>
41167
41168         New module 'memxfrm'.
41169         * lib/memxfrm.h: New file.
41170         * lib/memxfrm.c: New file.
41171         * modules/memxfrm: New file.
41172
41173 2009-03-07  Bruno Haible  <bruno@clisp.org>
41174
41175         New module 'memcmp2'.
41176         * lib/memcmp2.h: New file.
41177         * lib/memcmp2.c: New file.
41178         * modules/memcmp2: New file.
41179
41180 2009-03-07  Bruno Haible  <bruno@clisp.org>
41181
41182         Tests for module 'uninorm/decomposing-form'.
41183         * modules/uninorm/decomposing-form-tests: New file.
41184         * tests/uninorm/test-decomposing-form.c: New file.
41185
41186         New module 'uninorm/decomposing-form'.
41187         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41188         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41189         Add 'decomposing_variant' field.
41190         * lib/uninorm/decomposing-form.c: New file.
41191         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41192         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41193         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41194         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41195         * modules/uninorm/decomposing-form: New file.
41196         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41197         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41198
41199 2009-03-07  Bruno Haible  <bruno@clisp.org>
41200
41201         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41202         strings.
41203
41204 2009-03-06  Bruno Haible  <bruno@clisp.org>
41205
41206         Tests for module 'uninorm/u32-normcmp'.
41207         * tests/uninorm/test-u32-normcmp.c: New file.
41208         * modules/uninorm/u32-normcmp-tests: New file.
41209
41210         Tests for module 'uninorm/u16-normcmp'.
41211         * tests/uninorm/test-u16-normcmp.c: New file.
41212         * modules/uninorm/u16-normcmp-tests: New file.
41213
41214         Tests for module 'uninorm/u8-normcmp'.
41215         * tests/uninorm/test-u8-normcmp.c: New file.
41216         * modules/uninorm/u8-normcmp-tests: New file.
41217
41218         New module 'uninorm/u32-normcmp'.
41219         * lib/uninorm/u32-normcmp.c: New file.
41220         * modules/uninorm/u32-normcmp: New file.
41221
41222         New module 'uninorm/u16-normcmp'.
41223         * lib/uninorm/u16-normcmp.c: New file.
41224         * modules/uninorm/u16-normcmp: New file.
41225
41226         New module 'uninorm/u8-normcmp'.
41227         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41228         declarations.
41229         * lib/uninorm/u8-normcmp.c: New file.
41230         * lib/uninorm/u-normcmp.h: New file.
41231         * modules/uninorm/u8-normcmp: New file.
41232
41233 2009-03-06  Bruno Haible  <bruno@clisp.org>
41234
41235         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41236         Reported by Eric Blake.
41237
41238 2009-03-06  Eric Blake  <ebb9@byu.net>
41239             Bruno Haible  <bruno@clisp.org>
41240
41241         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41242         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41243         condition.
41244         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41245         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41246         condition.
41247         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41248
41249 2009-03-06  Eric Blake  <ebb9@byu.net>
41250
41251         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41252         to avoid compiler warnings.
41253         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41254
41255 2009-03-05  Bruno Haible  <bruno@clisp.org>
41256
41257         * tests/test-ftell.c (main): Disable test beyond end of file on
41258         FreeMiNT.
41259         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41260
41261 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41262
41263         * lib/filevercmp.c: Move hidden files up in ordering.
41264         * tests/test-filevercmp.c: Add tests for hidden files.
41265
41266 2009-03-04  Bruno Haible  <bruno@clisp.org>
41267
41268         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41269         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41270         AM_CFLAGS.
41271         Reported by Simon Josefsson.
41272
41273 2009-03-03  Bruno Haible  <bruno@clisp.org>
41274
41275         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41276         Reported by Simon Josefsson.
41277
41278         * doc/ld-version-script.texi: Update node reference.
41279
41280 2009-03-03  Bruno Haible  <bruno@clisp.org>
41281
41282         * modules/visibility (License): Change to 'unlimited'.
41283         Suggested by Simon Josefsson.
41284
41285 2009-03-03  Jim Meyering  <meyering@redhat.com>
41286
41287         unlinkdir: cannot_unlink_dir may modify process state
41288         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41289         it's neither thread-safe nor appropriate for use in a library.
41290
41291 2009-03-03  Eric Blake  <ebb9@byu.net>
41292
41293         test-closein: silence test under Darwin
41294         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41295         care if it dies from EPIPE or EBADF.
41296
41297 2009-03-03  Bruno Haible  <bruno@clisp.org>
41298
41299         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41300         earlier.
41301         * doc/visibility.texi: Fix @node and @section.
41302
41303 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41304
41305         * doc/gnulib.texi: Link to sections for ld version script and
41306         visibility.
41307         * doc/visibility.texi: Add @node and @section.
41308         * modules/ld-version-script: New module.
41309         * m4/ld-version-script.m4: New file.
41310         * doc/ld-version-script.texi: New file.
41311
41312 2009-03-02  David Lutterkort  <lutter@redhat.com>
41313
41314         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41315         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41316
41317 2009-03-02  Bruno Haible  <bruno@clisp.org>
41318
41319         * doc/visibility.texi: Mention libtool's -export-symbols option.
41320
41321 2009-03-02  Jim Meyering  <meyering@redhat.com>
41322
41323         announce-gen: new option: --no-print-checksums
41324         * build-aux/announce-gen (usage): Describe it.
41325         (print_checksums): Print a newline here, not in the [*] footnote.
41326         (main): Honor it.
41327
41328 2009-03-01  Bruno Haible  <bruno@clisp.org>
41329
41330         Use socklen_t in the native Windows replacements prototypes.
41331         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41332         instead of 'int'.
41333         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41334         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41335         * modules/getsockopt (Depends-on): Add socklen.
41336         * modules/setsockopt (Depends-on): Add socklen.
41337
41338 2009-03-01  Bruno Haible  <bruno@clisp.org>
41339
41340         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41341         least 4.2.
41342
41343 2009-03-01  Eric Blake  <ebb9@byu.net>
41344             Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41347         error messages.
41348         * lib/wait-process.c (wait_subprocess): Omit error message about
41349         deadly signal sent to the child of termsigp != NULL.
41350
41351 2009-03-01  Eric Blake  <ebb9@byu.net>
41352
41353         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41354
41355 2009-03-01  Bruno Haible  <bruno@clisp.org>
41356
41357         Avoid a gcc warning.
41358         * tests/test-sched.c (b): Make global.
41359         Reported by Eric Blake.
41360
41361 2009-01-19  Martin Lambers  <marlam@marlam.de>
41362
41363         Provide POSIX semantics for socket timeout options on W32.
41364         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41365         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41366         * modules/setsockopt: Depend on sys_time module for struct timeval.
41367         * modules/getsockopt: Depend on sys_time module for struct timeval.
41368
41369 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41370
41371         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41372         __USE_GNU, for consistency with netdb.in.h.
41373         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41374
41375 2009-03-01  Bruno Haible  <bruno@clisp.org>
41376
41377         More support for FreeMiNT.
41378         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41379         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41380
41381 2009-03-01  Bruno Haible  <bruno@clisp.org>
41382
41383         More support for FreeMiNT.
41384         * lib/fpurge.c (fpurge): Correct last commit.
41385         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41386
41387 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41388
41389         Fix unportable awk script in vc-list-files.
41390         * build-aux/vc-list-files: In the replacement awk script, use
41391         substr with a second argument of 1, not zero.
41392         Report by Simon Josefsson.
41393
41394 2009-02-28  Bruno Haible  <bruno@clisp.org>
41395
41396         More support for FreeMiNT.
41397         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41398         to FreeMiNT today.
41399         * lib/fwriting.c (fwriting): Likewise.
41400         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41401
41402 2009-02-28  Bruno Haible  <bruno@clisp.org>
41403
41404         * tests/test-freadseek.c (main): Disable test beyond end of file on
41405         FreeMiNT.
41406         * tests/test-ftello.c (main): Likewise.
41407         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41408
41409 2009-02-28  Bruno Haible  <bruno@clisp.org>
41410
41411         Add tentative support for FreeMiNT.
41412         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41413         * lib/fpurge.c (fpurge): Likewise.
41414         * lib/freadable.c (freadable): Likewise.
41415         * lib/freading.c (freading): Likewise.
41416         * lib/freadptr.c (freadptr): Likewise.
41417         * lib/freadseek.c (freadptrinc): Likewise.
41418         * lib/fseeko.c (rpl_fseeko): Likewise.
41419         * lib/fseterr.c (fseterr): Likewise.
41420         * lib/fwritable.c (fwritable): Likewise.
41421         * lib/fwriting.c (fwriting): Likewise.
41422         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41423         Hourihane.
41424         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41425
41426 2009-02-28  Bruno Haible  <bruno@clisp.org>
41427
41428         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41429         SIGCHLD.
41430         Reported by Jim Meyering.
41431
41432 2009-02-28  Bruno Haible  <bruno@clisp.org>
41433
41434         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41435         Mention the results of these tests on various platforms.
41436         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41437         order.
41438         * doc/posix-functions/printf.texi: Likewise.
41439         * doc/posix-functions/snprintf.texi: Likewise.
41440         * doc/posix-functions/sprintf.texi: Likewise.
41441         * doc/posix-functions/vfprintf.texi: Likewise.
41442         * doc/posix-functions/vprintf.texi: Likewise.
41443         * doc/posix-functions/vsnprintf.texi: Likewise.
41444         * doc/posix-functions/vsprintf.texi: Likewise.
41445         * doc/glibc-functions/obstack_printf.texi: Likewise.
41446         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41447
41448 2009-02-28  Bruno Haible  <bruno@clisp.org>
41449
41450         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41451         Reported by Loïc Minier <lool@dooz.org>.
41452
41453 2009-02-27  Bruno Haible  <bruno@clisp.org>
41454
41455         * gnulib-tool (func_import): Make the sed expression used to create the
41456         sed script for updating the .gitignore file POSIX compliant.
41457         Reported by Eric Blake.
41458
41459 2009-02-27  Bruno Haible  <bruno@clisp.org>
41460
41461         * gnulib-tool (sed): Don't alias as "sed --posix".
41462         Reported by Eric Blake.
41463
41464 2009-02-27  Bruno Haible  <bruno@clisp.org>
41465
41466         Avoid test link errors.
41467         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41468         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41469         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41470         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41472
41473 2009-02-27  Bruno Haible  <bruno@clisp.org>
41474
41475         Avoid spurious "(cached)" in configure output.
41476         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41477         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41478         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41479         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41480         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41481         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41482         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41483         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41484         Reported by Eric Blake.
41485
41486 2009-02-27  Eric Blake  <ebb9@byu.net>
41487
41488         printf: fix regression in previous patch
41489         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41490
41491 2009-02-27  Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41494         value.
41495         * lib/stdint.in.h: Likewise.
41496         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41497
41498 2009-02-27  Eric Blake  <ebb9@byu.net>
41499
41500         doc: mention more functions added in cygwin 1.7.0
41501         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41502         addition.
41503         * doc/posix-functions/open_wmemstream.texi: Likewise.
41504         * doc/posix-functions/wcsnlen.texi: Likewise.
41505         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41506         * doc/posix-functions/wcstod.texi: Likewise.
41507         * doc/posix-functions/wcstof.texi: Likewise.
41508         * doc/posix-functions/wcstoimax.texi: Likewise.
41509         * doc/posix-functions/wcstok.texi: Likewise.
41510         * doc/posix-functions/wcstoumax.texi: Likewise.
41511
41512         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41513         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41514         * doc/posix-functions/fprintf.texi: Update.
41515         * doc/posix-functions/printf.texi: Update.
41516         * doc/posix-functions/snprintf.texi: Update.
41517         * doc/posix-functions/sprintf.texi: Update.
41518         * doc/posix-functions/vfprintf.texi: Update.
41519         * doc/posix-functions/vprintf.texi: Update.
41520         * doc/posix-functions/vsnprintf.texi: Update.
41521         * doc/posix-functions/vsprintf.texi: Update.
41522         * doc/glibc-functions/obstack_printf.texi: Update.
41523         * doc/glibc-functions/obstack_vprintf.texi: Update.
41524
41525 2009-02-26  Eric Blake  <ebb9@byu.net>
41526
41527         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41528         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41529         compilation bug by using runtime conversion.
41530         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41531         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41532         * modules/ceill-tests (Files): Use nan.h.
41533         * modules/floorl-tests (Files): Likewise.
41534         * modules/frexpl-tests (Files): Likewise.
41535         * modules/isnanl-tests (Files): Likewise.
41536         * modules/ldexpl-tests (Files): Likewise.
41537         * modules/roundl-tests (Files): Likewise.
41538         * modules/truncl-tests (Files): Likewise.
41539         * tests/test-ceill.c (main): Use a working NaN.
41540         * tests/test-floorl.c (main): Likewise.
41541         * tests/test-frexpl.c (main): Likewise.
41542         * tests/test-isnan.c (test_long_double): Likewise.
41543         * tests/test-isnanl.h (main): Likewise.
41544         * tests/test-ldexpl.h (main): Likewise.
41545         * tests/test-roundl.h (main): Likewise.
41546         * tests/test-truncl.h (main): Likewise.
41547         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41548
41549 2009-02-26  Eric Blake  <ebb9@byu.net>
41550             Bruno Haible  <bruno@clisp.org>
41551
41552         Work around a *printf bug with %ls on Solaris.
41553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41554         precision is specified, sprintf stops converting the wide string
41555         argument when the number of bytes that have been produced by this
41556         conversion equals or exceeds the precision.
41557         * doc/posix-functions/fprintf.texi: Update.
41558         * doc/posix-functions/printf.texi: Update.
41559         * doc/posix-functions/snprintf.texi: Update.
41560         * doc/posix-functions/sprintf.texi: Update.
41561         * doc/posix-functions/vfprintf.texi: Update.
41562         * doc/posix-functions/vprintf.texi: Update.
41563         * doc/posix-functions/vsnprintf.texi: Update.
41564         * doc/posix-functions/vsprintf.texi: Update.
41565         * doc/glibc-functions/obstack_printf.texi: Update.
41566         * doc/glibc-functions/obstack_vprintf.texi: Update.
41567
41568 2009-02-26  Eric Blake  <ebb9@byu.net>
41569
41570         stdlib: favor compiler check of random.h
41571         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41572         to avoid an ObjC random.h installed by Swarm.
41573
41574 2009-02-26  Bruno Haible  <bruno@clisp.org>
41575
41576         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41577         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41578         Reported by Gary V. Vaughan <gary@gnu.org>.
41579
41580 2009-02-26  Bruno Haible  <bruno@clisp.org>
41581
41582         Fix *printf behaviour regarding the %ls directive.
41583         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41584         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41585         NEED_PRINTF_DIRECTIVE_LS.
41586         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41587         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41588         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41589         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41590         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41591         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41592         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41593         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41594         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41595         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41597         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41598         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41599         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41600         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41601         * doc/posix-functions/fprintf.texi: Update.
41602         * doc/posix-functions/printf.texi: Update.
41603         * doc/posix-functions/snprintf.texi: Update.
41604         * doc/posix-functions/sprintf.texi: Update.
41605         * doc/posix-functions/vfprintf.texi: Update.
41606         * doc/posix-functions/vprintf.texi: Update.
41607         * doc/posix-functions/vsnprintf.texi: Update.
41608         * doc/posix-functions/vsprintf.texi: Update.
41609         * doc/glibc-functions/obstack_printf.texi: Update.
41610         * doc/glibc-functions/obstack_vprintf.texi: Update.
41611         Reported by Eric Blake.
41612
41613 2009-02-25  Bruno Haible  <bruno@clisp.org>
41614
41615         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41616         with known value.
41617         Reported by Gary V. Vaughan <gary@gnu.org>.
41618
41619 2009-02-25  Bruno Haible  <bruno@clisp.org>
41620
41621         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41622         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41623         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41624         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41625         Reported by Gary V. Vaughan <gary@gnu.org>.
41626
41627 2009-02-25  Bruno Haible  <bruno@clisp.org>
41628
41629         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41630         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41631         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41632         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41633         Reported by Gary V. Vaughan <gary@gnu.org>.
41634
41635 2009-02-25  Eric Blake  <ebb9@byu.net>
41636
41637         tests: skip fseek/ftell tests if ungetc is broken
41638         * m4/ungetc.m4: New file.
41639         * modules/fseek-tests: Split test, so ungetc dependency is
41640         separate from rest of test.
41641         * modules/fseeko-tests: Likewise.
41642         * modules/ftell-tests: Likewise.
41643         * modules/ftello-tests: Likewise.
41644         * tests/test-fseek.c (main): Isolate ungetc dependency.
41645         * tests/test-fseeko.c (main): Likewise.
41646         * tests/test-ftell.c (main): Likewise.
41647         * tests/test-ftello.c (main): Likewise.
41648         * tests/test-fseek2.sh: New file.
41649         * tests/test-fseeko2.sh: Likewise.
41650         * tests/test-ftell2.sh: Likewise.
41651         * tests/test-ftello2.sh: Likewise.
41652
41653 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41654
41655         test-getaddrinfo: fix usage of skip return code 77
41656         * tests/test-gettaddrinfo.c: Return skip code 77 only
41657         for first occurance of skip (4x77 is not 77)
41658
41659 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41660
41661         strtod: avoid C99 decl-after-statement
41662         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41663
41664 2009-02-24  Eric Blake  <ebb9@byu.net>
41665
41666         strtod: detect HP-UX 11.31 bug
41667         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41668         Reported by Gary V. Vaughan.
41669
41670 2009-02-23  Bruno Haible  <bruno@clisp.org>
41671
41672         Fix invalid read past end of memory block.
41673         * lib/vasnprintf.c (DCHAR_SET): Define.
41674         (local_wcslen): Define only when needed.
41675         (local_strnlen, local_wcsnlen): New functions.
41676         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41677         directives that involve a conversion ourselves.
41678         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41679         wcsnlen, mbrtowc, wcrtomb.
41680         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41681         * tests/test-vasprintf-posix.c (test_function): Likewise.
41682         * tests/test-snprintf-posix.h (test_function): Likewise.
41683         * tests/test-sprintf-posix.h (test_function): Likewise.
41684         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41685
41686 2009-02-22  Bruno Haible  <bruno@clisp.org>
41687
41688         Implement new clarified decomposition of Hangul syllables.
41689         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41690         of type LTV, return only a pairwise decomposition.
41691         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41692         Likewise.
41693         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41694         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41695         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41696
41697 2009-02-22  Bruno Haible  <bruno@clisp.org>
41698
41699         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41700         zero-length results and shrink excess allocated memory.
41701         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41702         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41703         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41704         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41705         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41706         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41707         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41708         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41709         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41710         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41711         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41712         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41713
41714 2009-02-21  Bruno Haible  <bruno@clisp.org>
41715
41716         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41717         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41718         spaces after a period. Put a space between a macro name and its
41719         argument list. Trivial rewordings.
41720         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41721         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41722         (main): Return 0 explicitly.
41723
41724 2009-02-21  Bruno Haible  <bruno@clisp.org>
41725
41726         Tests for module 'uninorm/filter'.
41727         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41728         * modules/uninorm/filter-tests: New file.
41729
41730         New module 'uninorm/filter'.
41731         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41732         uninorm_filter_flush, uninorm_filter_free): New declarations.
41733         * lib/uninorm/uninorm-filter.c: New file.
41734         * modules/uninorm/filter: New file.
41735
41736 2009-02-21  Bruno Haible  <bruno@clisp.org>
41737
41738         Tests for module 'uninorm/nfkc'.
41739         * tests/uninorm/test-nfkc.c: New file.
41740         * tests/uninorm/test-u8-nfkc.c: New file.
41741         * tests/uninorm/test-u16-nfkc.c: New file.
41742         * tests/uninorm/test-u32-nfkc.c: New file.
41743         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41744         * tests/uninorm/test-u32-nfkc-big.c: New file.
41745         * modules/uninorm/nfkc-tests: New file.
41746
41747         New module 'uninorm/nfkc'.
41748         * lib/uninorm/nfkc.c: New file.
41749         * modules/uninorm/nfkc: New file.
41750
41751         Tests for module 'uninorm/nfkd'.
41752         * tests/uninorm/test-nfkd.c: New file.
41753         * tests/uninorm/test-u8-nfkd.c: New file.
41754         * tests/uninorm/test-u16-nfkd.c: New file.
41755         * tests/uninorm/test-u32-nfkd.c: New file.
41756         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41757         * tests/uninorm/test-u32-nfkd-big.c: New file.
41758         * modules/uninorm/nfkd-tests: New file.
41759
41760         New module 'uninorm/nfkd'.
41761         * lib/uninorm/nfkd.c: New file.
41762         * modules/uninorm/nfkd: New file.
41763
41764         Tests for module 'uninorm/nfc'.
41765         * tests/uninorm/test-nfc.c: New file.
41766         * tests/uninorm/test-u8-nfc.c: New file.
41767         * tests/uninorm/test-u16-nfc.c: New file.
41768         * tests/uninorm/test-u32-nfc.c: New file.
41769         * tests/uninorm/test-u32-nfc-big.sh: New file.
41770         * tests/uninorm/test-u32-nfc-big.c: New file.
41771         * modules/uninorm/nfc-tests: New file.
41772
41773         New module 'uninorm/nfc'.
41774         * lib/uninorm/nfc.c: New file.
41775         * modules/uninorm/nfc: New file.
41776
41777         Tests for module 'uninorm/nfd'.
41778         * tests/uninorm/test-nfd.c: New file.
41779         * tests/uninorm/test-u8-nfd.c: New file.
41780         * tests/uninorm/test-u16-nfd.c: New file.
41781         * tests/uninorm/test-u32-nfd.c: New file.
41782         * tests/uninorm/test-u32-nfd-big.sh: New file.
41783         * tests/uninorm/test-u32-nfd-big.c: New file.
41784         * tests/uninorm/test-u32-normalize-big.h: New file.
41785         * tests/uninorm/test-u32-normalize-big.c: New file.
41786         * tests/uninorm/NormalizationTest.txt: New file, created from
41787         Unicode 5.1.0 NormalizationTest.txt.
41788         * modules/uninorm/nfd-tests: New file.
41789
41790         New module 'uninorm/nfd'.
41791         * lib/uninorm/nfd.c: New file.
41792         * modules/uninorm/nfd: New file.
41793
41794         New module 'uninorm/u32-normalize'.
41795         * lib/uninorm/u32-normalize.c: New file.
41796         * modules/uninorm/u32-normalize: New file.
41797
41798         New module 'uninorm/u16-normalize'.
41799         * lib/uninorm/u16-normalize.c: New file.
41800         * modules/uninorm/u16-normalize: New file.
41801
41802         New module 'uninorm/u8-normalize'.
41803         * lib/uninorm/u8-normalize.c: New file.
41804         * lib/uninorm/normalize-internal.h: New file.
41805         * lib/uninorm/u-normalize-internal.h: New file.
41806         * modules/uninorm/u8-normalize: New file.
41807
41808         New module 'uninorm/decompose-internal'.
41809         * lib/uninorm/decompose-internal.c: New file.
41810         * modules/uninorm/decompose-internal: New file.
41811
41812         Tests for module 'uninorm/composition'.
41813         * tests/uninorm/test-composition.c: New file.
41814         * modules/uninorm/composition-tests: New file.
41815
41816         New module 'uninorm/composition'.
41817         * lib/uninorm/composition.c: New file.
41818         * lib/uninorm/composition-table.gperf: New file, generated by
41819         gen-uni-tables.
41820         * modules/uninorm/composition: New file.
41821
41822         Tests for module 'uninorm/compat-decomposition'.
41823         * tests/uninorm/test-compat-decomposition.c: New file.
41824         * modules/uninorm/compat-decomposition-tests: New file.
41825
41826         New module 'uninorm/compat-decomposition'.
41827         * lib/uninorm/decompose-internal.h: New file.
41828         * lib/uninorm/compat-decomposition.c: New file.
41829         * modules/uninorm/compat-decomposition: New file.
41830
41831         Tests for module 'uninorm/canonical-decomposition'.
41832         * tests/uninorm/test-canonical-decomposition.c: New file.
41833         * modules/uninorm/canonical-decomposition-tests: New file.
41834
41835         New module 'uninorm/canonical-decomposition'.
41836         * lib/uninorm/canonical-decomposition.c: New file.
41837         * modules/uninorm/canonical-decomposition: New file.
41838
41839         Tests for module 'uninorm/decomposition'.
41840         * tests/uninorm/test-decomposition.c: New file.
41841         * modules/uninorm/decomposition-tests: New file.
41842
41843         New module 'uninorm/decomposition'.
41844         * lib/uninorm/decomposition.c: New file.
41845         * modules/uninorm/decomposition: New file.
41846
41847         New module 'uninorm/decomposition-table'.
41848         * lib/uninorm/decomposition-table.h: New file.
41849         * lib/uninorm/decomposition-table.c: New file.
41850         * lib/uninorm/decomposition-table1.h: New file, generated by
41851         gen-uni-tables.
41852         * lib/uninorm/decomposition-table2.h: New file, generated by
41853         gen-uni-tables.
41854         * modules/uninorm/decomposition-table: New file.
41855
41856         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41857         (UC_DECOMP_*): New enumeration items.
41858         (get_decomposition): New function.
41859         (struct decomp_table): New type.
41860         (output_decomposition, output_decomposition_tables): New functions.
41861         (unicode_composition_exclusions): New variable.
41862         (fill_composition_exclusions, debug_output_composition_tables): New
41863         functions.
41864         (main): Accept one more argument. Invoke fill_composition_exclusions.
41865         Output decomposition and composition tables.
41866
41867         New module 'uninorm/base'.
41868         * lib/uninorm.h: New file.
41869         * lib/unictype.h: Update comment.
41870         * modules/uninorm/base: New file.
41871
41872 2009-02-21  David Lutterkort  <lutter@redhat.com>
41873
41874         Tests for module 'safe-alloc'.
41875         * tests/test-safe-alloc.c: New file.
41876         * modules/safe-alloc-tests: New file.
41877
41878         New module 'safe-alloc'.
41879         * lib/safe-alloc.h: New file.
41880         * lib/safe-alloc.c: New file.
41881         * m4/safe-alloc.m4: New file.
41882         * modules/safe-alloc: New file.
41883         * doc/safe-alloc.texi: New file.
41884         * doc/gnulib.texi: Include it.
41885         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41886         safe-alloc.
41887
41888 2009-02-18  Bruno Haible  <bruno@clisp.org>
41889
41890         Fix link error on non-glibc systems.
41891         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41892         variable.
41893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41894
41895 2009-02-18  Jim Meyering  <meyering@redhat.com>
41896
41897         fts: avoid used-uninitialized error due to recent change
41898         * lib/fts.c (fts_read): Guard uses of the new member,
41899         parent->fts_n_dirs_remaining, since it's not relevant for
41900         the parent of a directory specified on the command-line.
41901
41902 2009-02-17  James Youngman  <jay@gnu.org>
41903             Bruno Haible  <bruno@clisp.org>
41904
41905         * m4/include_next.m4: Reformulate comment.
41906
41907 2009-02-16  Jim Meyering  <meyering@redhat.com>
41908
41909         fts: add #if guards so that the fts_lgpl module still builds
41910         * lib/fts.c: Guard just-added hash-table-using parts with
41911         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41912         Reported by Simon Josefsson.
41913
41914 2009-02-15  Bruno Haible  <bruno@clisp.org>
41915
41916         * modules/array-mergesort-tests: New file.
41917         * tests/test-array-mergesort.c: New file.
41918
41919         New module 'array-mergesort'.
41920         * modules/array-mergesort: New file.
41921         * lib/array-mergesort.h: New file.
41922
41923 2009-02-15  Bruno Haible  <bruno@clisp.org>
41924
41925         Fix 2009-02-07 commit.
41926         * lib/gen-uni-tables.c (output_predicate, output_category,
41927         output_combclass, output_bidi_category, output_decimal_digit,
41928         output_digit, output_numeric, output_mirror, output_scripts,
41929         output_ident_category, output_simple_mapping): Fix format directives.
41930         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41931
41932 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41933
41934         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41935         fixes are available from IBM.
41936
41937 2009-02-13  Jim Meyering  <meyering@redhat.com>
41938
41939         fts: arrange not to stat non-directories in more cases
41940         This makes GNU find (when it doesn't need to stat each file)
41941         *much* more efficient at traversing reiserfs file systems.
41942         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41943         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41944         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41945         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41946         (leaf_optimization_applies): New function.
41947         (LCO_hash, LCO_compare): New helper functions.
41948         (link_count_optimize_ok): New function.
41949         (fts_stat): Initialize new member (if dir).
41950         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41951         we've just stat'ed a directory.  Skip the stat call when possible.
41952         ---
41953         Note this AFS-related exchange:
41954         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41955         and note find's pioctl call in find/fstype.c.
41956         But that is necessary only if you want to enable the
41957         optimization for AFS, and for now, I don't.
41958
41959         fts: move a function definition "up" (no semantic change)
41960         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41961         "up" to precede upcoming use of a related function.
41962
41963 2009-02-11  Jim Meyering  <meyering@redhat.com>
41964
41965         fts: correct internal computation of nlinks (optimization-related)
41966         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41967         whether the current entry is a directory, so don't test it.
41968
41969 2009-02-10  Bruno Haible  <bruno@clisp.org>
41970
41971         Tests for module 'uniwbrk/ulc-wordbreaks'.
41972         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41973         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41974         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41975
41976         Tests for module 'uniwbrk/u32-wordbreaks'.
41977         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41978         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41979
41980         Tests for module 'uniwbrk/u16-wordbreaks'.
41981         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41982         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41983
41984         Tests for module 'uniwbrk/u8-wordbreaks'.
41985         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41986         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41987
41988 2009-02-10  Bruno Haible  <bruno@clisp.org>
41989
41990         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41991         property.
41992         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41993         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41994         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41995
41996 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41997
41998         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41999         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42000
42001 2009-02-10  Bruno Haible  <bruno@clisp.org>
42002
42003         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42004         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42005         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42006         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42007         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42008         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42009
42010 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42011
42012         * lib/sockets.h (gl_fd_to_handle): New function.
42013
42014         * tests/test-sockets.c: Call gl_fd_to_handle.
42015
42016 2009-02-09  Bruno Haible  <bruno@clisp.org>
42017
42018         * doc/havelib.texi: Document the conventions on bi-arch systems.
42019
42020 2009-02-08  Bruno Haible  <bruno@clisp.org>
42021
42022         Document the AC_LIB_LINKFLAGS macro.
42023         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42024         * doc/gnulib.texi: Include it.
42025
42026 2009-02-08  Bruno Haible  <bruno@clisp.org>
42027
42028         Fix wrong order of sections, compared to TOC.
42029         * doc/gnulib.texi: Include relocatable-maint.texi after the
42030         "Regular expressions" node, not before.
42031
42032 2009-02-08  Bruno Haible  <bruno@clisp.org>
42033
42034         Tests for module 'unicase/totitle'.
42035         * modules/unicase/totitle-tests: New file.
42036
42037         Tests for module 'unicase/tolower'.
42038         * modules/unicase/tolower-tests: New file.
42039
42040         Tests for module 'unicase/toupper'.
42041         * modules/unicase/toupper-tests: New file.
42042         * tests/unicase/test-mapping-part1.h: New file.
42043         * tests/unicase/test-mapping-part2.h: New file.
42044
42045         New module 'unicase/totitle'.
42046         * modules/unicase/totitle: New file.
42047         * lib/unicase/totitle.c: New file.
42048
42049         New module 'unicase/tolower'.
42050         * modules/unicase/tolower: New file.
42051         * lib/unicase/tolower.c: New file.
42052
42053         New module 'unicase/toupper'.
42054         * modules/unicase/toupper: New file.
42055         * lib/unicase/toupper.c: New file.
42056         * lib/unicase/simple-mapping.h: New file.
42057
42058         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42059         (mapping_table): New structure.
42060         (output_simple_mapping): New function.
42061         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42062         * modules/gen-uni-tables (Description): Update.
42063         * lib/unicase/toupper.h: New file, automatically generated by
42064         gen-uni-tables.
42065         * lib/unicase/tolower.h: New file, automatically generated by
42066         gen-uni-tables.
42067         * lib/unicase/totitle.h: New file, automatically generated by
42068         gen-uni-tables.
42069         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42070         gen-uni-tables.
42071         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42072         gen-uni-tables.
42073         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42074         gen-uni-tables.
42075
42076         New module 'unicase/base'.
42077         * modules/unicase/base: New file.
42078         * lib/unicase.h: New file.
42079
42080 2009-02-08  Bruno Haible  <bruno@clisp.org>
42081
42082         New module 'uniwbrk/ulc-wordbreaks'.
42083         * modules/uniwbrk/ulc-wordbreaks: New file.
42084         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42085
42086         New module 'uniwbrk/u32-wordbreaks'.
42087         * modules/uniwbrk/u32-wordbreaks: New file.
42088         * lib/uniwbrk/u32-wordbreaks.c: New file.
42089
42090         New module 'uniwbrk/u16-wordbreaks'.
42091         * modules/uniwbrk/u16-wordbreaks: New file.
42092         * lib/uniwbrk/u16-wordbreaks.c: New file.
42093
42094         New module 'uniwbrk/u8-wordbreaks'.
42095         * modules/uniwbrk/u8-wordbreaks: New file.
42096         * lib/uniwbrk/u8-wordbreaks.c: New file.
42097         * lib/uniwbrk/u-wordbreaks.h: New file.
42098
42099         New module 'uniwbrk/table'.
42100         * modules/uniwbrk/table: New file.
42101         * lib/uniwbrk/wbrktable.h: New file.
42102         * lib/uniwbrk/wbrktable.c: New file.
42103
42104         New module 'uniwbrk/wordbreak-property'.
42105         * modules/uniwbrk/wordbreak-property: New file.
42106         * lib/uniwbrk/wordbreak-property.c: New file.
42107
42108         * lib/gen-uni-tables.c (WBP_*): New enum items.
42109         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42110         (unicode_org_wbp): New variable.
42111         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42112         New functions.
42113         (wbp_table): New structure.
42114         (output_wbp, output_wbrk_tables): New functions.
42115         (main): Accept additional argument. Invoke fill_org_wbp,
42116         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42117         output_wbrk_tables.
42118         * modules/gen-uni-tables (Description): Update.
42119         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42120         gen-uni-tables.
42121
42122         New module 'uniwbrk/base'.
42123         * modules/uniwbrk/base: New file.
42124         * lib/uniwbrk.h: New file.
42125
42126 2009-02-08  Bruno Haible  <bruno@clisp.org>
42127
42128         Update to Unicode 5.1.0.
42129         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42130         U+2185..U+2188.
42131         (is_property_default_ignorable_code_point): Don't include characters
42132         of category Cc or Cs and not-a-characters.
42133         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42134         U+0D79, U+109E, U+109F, U+A60C.
42135         * lib/unictype/bidi_of.h: Regenerated.
42136         * lib/unictype/blocks.h: Regenerated.
42137         * lib/unictype/categ_C.h: Regenerated.
42138         * lib/unictype/categ_Cf.h: Regenerated.
42139         * lib/unictype/categ_Cn.h: Regenerated.
42140         * lib/unictype/categ_L.h: Regenerated.
42141         * lib/unictype/categ_Ll.h: Regenerated.
42142         * lib/unictype/categ_Lm.h: Regenerated.
42143         * lib/unictype/categ_Lo.h: Regenerated.
42144         * lib/unictype/categ_Lu.h: Regenerated.
42145         * lib/unictype/categ_M.h: Regenerated.
42146         * lib/unictype/categ_Mc.h: Regenerated.
42147         * lib/unictype/categ_Me.h: Regenerated.
42148         * lib/unictype/categ_Mn.h: Regenerated.
42149         * lib/unictype/categ_N.h: Regenerated.
42150         * lib/unictype/categ_Nd.h: Regenerated.
42151         * lib/unictype/categ_Nl.h: Regenerated.
42152         * lib/unictype/categ_No.h: Regenerated.
42153         * lib/unictype/categ_P.h: Regenerated.
42154         * lib/unictype/categ_Pd.h: Regenerated.
42155         * lib/unictype/categ_Pe.h: Regenerated.
42156         * lib/unictype/categ_Pf.h: Regenerated.
42157         * lib/unictype/categ_Pi.h: Regenerated.
42158         * lib/unictype/categ_Po.h: Regenerated.
42159         * lib/unictype/categ_Ps.h: Regenerated.
42160         * lib/unictype/categ_S.h: Regenerated.
42161         * lib/unictype/categ_Sk.h: Regenerated.
42162         * lib/unictype/categ_Sm.h: Regenerated.
42163         * lib/unictype/categ_So.h: Regenerated.
42164         * lib/unictype/categ_of.h: Regenerated.
42165         * lib/unictype/combining.h: Regenerated.
42166         * lib/unictype/ctype_alnum.h: Regenerated.
42167         * lib/unictype/ctype_alpha.h: Regenerated.
42168         * lib/unictype/ctype_graph.h: Regenerated.
42169         * lib/unictype/ctype_lower.h: Regenerated.
42170         * lib/unictype/ctype_print.h: Regenerated.
42171         * lib/unictype/ctype_punct.h: Regenerated.
42172         * lib/unictype/ctype_upper.h: Regenerated.
42173         * lib/unictype/decdigit.h: Regenerated.
42174         * lib/unictype/digit.h: Regenerated.
42175         * lib/unictype/mirror.h: Regenerated.
42176         * lib/unictype/numeric.h: Regenerated.
42177         * lib/unictype/pr_alphabetic.h: Regenerated.
42178         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42179         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42180         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42181         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42182         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42183         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42184         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42185         * lib/unictype/pr_combining.h: Regenerated.
42186         * lib/unictype/pr_dash.h: Regenerated.
42187         * lib/unictype/pr_decimal_digit.h: Regenerated.
42188         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42189         * lib/unictype/pr_deprecated.h: Regenerated.
42190         * lib/unictype/pr_diacritic.h: Regenerated.
42191         * lib/unictype/pr_extender.h: Regenerated.
42192         * lib/unictype/pr_format_control.h: Regenerated.
42193         * lib/unictype/pr_grapheme_base.h: Regenerated.
42194         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42195         * lib/unictype/pr_grapheme_link.h: Regenerated.
42196         * lib/unictype/pr_id_continue.h: Regenerated.
42197         * lib/unictype/pr_id_start.h: Regenerated.
42198         * lib/unictype/pr_ideographic.h: Regenerated.
42199         * lib/unictype/pr_ignorable_control.h: Regenerated.
42200         * lib/unictype/pr_lowercase.h: Regenerated.
42201         * lib/unictype/pr_math.h: Regenerated.
42202         * lib/unictype/pr_numeric.h: Regenerated.
42203         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42204         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42205         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42206         * lib/unictype/pr_other_id_continue.h: Regenerated.
42207         * lib/unictype/pr_other_lowercase.h: Regenerated.
42208         * lib/unictype/pr_other_math.h: Regenerated.
42209         * lib/unictype/pr_punctuation.h: Regenerated.
42210         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42211         * lib/unictype/pr_soft_dotted.h: Regenerated.
42212         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42213         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42214         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42215         * lib/unictype/pr_uppercase.h: Regenerated.
42216         * lib/unictype/pr_xid_continue.h: Regenerated.
42217         * lib/unictype/pr_xid_start.h: Regenerated.
42218         * lib/unictype/pr_zero_width.h: Regenerated.
42219         * lib/unictype/scripts.h: Regenerated.
42220         * lib/unictype/scripts_byname.gperf: Regenerated.
42221         * lib/unictype/sy_java_ident.h: Regenerated.
42222         * lib/unilbrk/lbrkprop1.h: Regenerated.
42223         * lib/unilbrk/lbrkprop2.h: Regenerated.
42224         * tests/unictype/test-categ_C.c: Regenerated.
42225         * tests/unictype/test-categ_Cf.c: Regenerated.
42226         * tests/unictype/test-categ_Cn.c: Regenerated.
42227         * tests/unictype/test-categ_L.c: Regenerated.
42228         * tests/unictype/test-categ_Ll.c: Regenerated.
42229         * tests/unictype/test-categ_Lm.c: Regenerated.
42230         * tests/unictype/test-categ_Lo.c: Regenerated.
42231         * tests/unictype/test-categ_Lu.c: Regenerated.
42232         * tests/unictype/test-categ_M.c: Regenerated.
42233         * tests/unictype/test-categ_Mc.c: Regenerated.
42234         * tests/unictype/test-categ_Me.c: Regenerated.
42235         * tests/unictype/test-categ_Mn.c: Regenerated.
42236         * tests/unictype/test-categ_N.c: Regenerated.
42237         * tests/unictype/test-categ_Nd.c: Regenerated.
42238         * tests/unictype/test-categ_Nl.c: Regenerated.
42239         * tests/unictype/test-categ_No.c: Regenerated.
42240         * tests/unictype/test-categ_P.c: Regenerated.
42241         * tests/unictype/test-categ_Pd.c: Regenerated.
42242         * tests/unictype/test-categ_Pe.c: Regenerated.
42243         * tests/unictype/test-categ_Pf.c: Regenerated.
42244         * tests/unictype/test-categ_Pi.c: Regenerated.
42245         * tests/unictype/test-categ_Po.c: Regenerated.
42246         * tests/unictype/test-categ_Ps.c: Regenerated.
42247         * tests/unictype/test-categ_S.c: Regenerated.
42248         * tests/unictype/test-categ_Sk.c: Regenerated.
42249         * tests/unictype/test-categ_Sm.c: Regenerated.
42250         * tests/unictype/test-categ_So.c: Regenerated.
42251         * tests/unictype/test-ctype_alnum.c: Regenerated.
42252         * tests/unictype/test-ctype_alpha.c: Regenerated.
42253         * tests/unictype/test-ctype_graph.c: Regenerated.
42254         * tests/unictype/test-ctype_lower.c: Regenerated.
42255         * tests/unictype/test-ctype_print.c: Regenerated.
42256         * tests/unictype/test-ctype_punct.c: Regenerated.
42257         * tests/unictype/test-ctype_upper.c: Regenerated.
42258         * tests/unictype/test-decdigit.h: Regenerated.
42259         * tests/unictype/test-digit.h: Regenerated.
42260         * tests/unictype/test-numeric.h: Regenerated.
42261         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42262         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42263         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42264         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42265         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42266         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42267         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42268         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42269         * tests/unictype/test-pr_combining.c: Regenerated.
42270         * tests/unictype/test-pr_dash.c: Regenerated.
42271         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42272         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42273         * tests/unictype/test-pr_deprecated.c: Regenerated.
42274         * tests/unictype/test-pr_diacritic.c: Regenerated.
42275         * tests/unictype/test-pr_extender.c: Regenerated.
42276         * tests/unictype/test-pr_format_control.c: Regenerated.
42277         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42278         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42279         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42280         * tests/unictype/test-pr_id_continue.c: Regenerated.
42281         * tests/unictype/test-pr_id_start.c: Regenerated.
42282         * tests/unictype/test-pr_ideographic.c: Regenerated.
42283         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42284         * tests/unictype/test-pr_lowercase.c: Regenerated.
42285         * tests/unictype/test-pr_math.c: Regenerated.
42286         * tests/unictype/test-pr_numeric.c: Regenerated.
42287         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42288         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42289         Regenerated.
42290         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42291         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42292         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42293         * tests/unictype/test-pr_other_math.c: Regenerated.
42294         * tests/unictype/test-pr_punctuation.c: Regenerated.
42295         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42296         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42297         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42298         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42299         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42300         * tests/unictype/test-pr_uppercase.c: Regenerated.
42301         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42302         * tests/unictype/test-pr_xid_start.c: Regenerated.
42303         * tests/unictype/test-pr_zero_width.c: Regenerated.
42304
42305         Update to Unicode 5.1.0.
42306         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42307         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42308         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42309         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42310         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42311         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42312         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42313         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42314         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42315         (nonspacing_table_ind): Update.
42316         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42317
42318         Update to Unicode 5.1.0.
42319         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42320         code transform.
42321         * lib/uniname/uniname.c (unicode_character_name,
42322         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42323         * lib/uniname/uninames.h: Regenerated.
42324         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42325
42326 2009-02-07  Bruno Haible  <bruno@clisp.org>
42327
42328         Merge gen-ctype and gen-lbrk into a single program.
42329         * lib/gen-uni-tables.c: New file, incorporating
42330         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42331         Add directory prefixes to the names of the generated files.
42332         * lib/unictype/gen-ctype.c: Remove file.
42333         * lib/unilbrk/gen-lbrk.c: Remove file.
42334         * modules/gen-uni-tables: New file.
42335         * modules/unictype/gen-ctype: Remove file.
42336         * modules/unilbrk/gen-lbrk: Remove file.
42337
42338 2009-02-07  Bruno Haible  <bruno@clisp.org>
42339
42340         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42341
42342         New module 'unistr/u32-strcoll'.
42343         * modules/unistr/u32-strcoll: New file.
42344         * lib/unistr/u32-strcoll.c: New file.
42345
42346         New module 'unistr/u16-strcoll'.
42347         * modules/unistr/u16-strcoll: New file.
42348         * lib/unistr/u16-strcoll.c: New file.
42349
42350         New module 'unistr/u8-strcoll'.
42351         * modules/unistr/u8-strcoll: New file.
42352         * lib/unistr/u8-strcoll.c: New file.
42353         * lib/unistr/u-strcoll.h: New file.
42354
42355 2009-02-07  Bruno Haible  <bruno@clisp.org>
42356
42357         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42358         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42359         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42360         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42361         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42362         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42363
42364 2009-02-07  Bruno Haible  <bruno@clisp.org>
42365
42366         Make 64-bit clean.
42367         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42368         output_combclass, output_bidi_category, output_decimal_digit,
42369         output_digit, output_numeric, output_mirror, output_scripts,
42370         output_ident_category): Use proper width specifier in format strings.
42371
42372 2009-02-07  Bruno Haible  <bruno@clisp.org>
42373
42374         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42375         failure behaviour.
42376
42377 2009-02-07  Jim Meyering  <meyering@redhat.com>
42378
42379         regex: avoid compilation failure with upcoming gcc-4.4
42380         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42381         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42382         "... error: integer overflow in preprocessor expression".
42383
42384 2009-02-05  Ben Pfaff  <blp@gnu.org>
42385
42386         Fix link errors on Windows when close module is used.
42387         * modules/close: Add $(LIB_CLOSE) to Link section.
42388         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42389         $(LIB_CLOSE) on Windows.
42390
42391 2009-02-05  Jim Meyering  <meyering@redhat.com>
42392
42393         still avoid unused-parameter warnings, but do it cleanly
42394         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42395         (get_fs_usage): Cast to void instead.
42396         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42397         (dev_from_mount_options, read_file_system_list): Cast to void.
42398         Prompted by Bruno Haible.
42399
42400 2009-02-04  Jim Meyering  <meyering@redhat.com>
42401
42402         fsusage.c: correct copyright year
42403         * lib/fsusage.c: Reflect year in which the change is pushed into
42404
42405         avoid misc. warnings
42406         * lib/fsusage.c (UNUSED_PARAM): Define.
42407         (get_fs_usage): Mark parameter "disk" as unused.
42408         * lib/getugroups.c (getgrent): Use "void" in prototype.
42409         * lib/mountlist.c: Mark unused parameters.
42410         (read_file_system_list): Declare a local with "const".
42411         * lib/nanosleep.c (getnow): Declare static.
42412         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42413
42414         dirfd: set errno upon failure
42415         * lib/dirfd.c: Include <errno.h>.
42416         Set errno to ENOTSUP when returning -1.
42417         * modules/dirfd (Depends-on): Add errno.
42418         Suggested by John Kodis <kodis@comcast.net>.
42419
42420 2009-02-01  Bruno Haible  <bruno@clisp.org>
42421
42422         Don't assume sizeof (long) >= sizeof (void *).
42423         * lib/memcmp.c: Include stdint.h.
42424         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42425         srcp2 to 'const byte *'.
42426         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42427         types to uintptr_t.
42428         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42429         * modules/memcmp (Depends-on): Add stdint.
42430         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42431
42432 2009-01-30  Eric Blake  <ebb9@byu.net>
42433
42434         fix more require-before-expand issues
42435         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42436         expand, AC_PROG_AWK.
42437         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42438
42439 2009-01-28  Eric Blake  <ebb9@byu.net>
42440
42441         version-etc: use consistent URL formatting
42442         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42443         Improve formatting.  Use fputs for string without %.
42444
42445 2009-01-28  Jim Meyering  <meyering@redhat.com>
42446
42447         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42448         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42449         "underquoted definition of NAME" from autoconf-2.59.
42450
42451 2009-01-28  Bruno Haible  <bruno@clisp.org>
42452
42453         * doc/gnulib.texi: Add "Obsolete modules" to index.
42454
42455 2009-01-28  Jim Meyering  <meyering@redhat.com>
42456
42457         useless-if-before-free: recognize more variants
42458         * build-aux/useless-if-before-free: Also recognize e.g.,
42459         if (NULL != p) free (p);
42460
42461 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42462
42463         test-getaddrinfo: skip (don't fail) this test when there's no network
42464         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42465         on the presumption that it means you lack network access.
42466
42467 2009-01-26  Jim Meyering  <meyering@redhat.com>
42468
42469         fflush: avoid warnings on modern systems
42470         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42471         pos and result, into scopes where they're used.
42472
42473 2009-01-26  Eric Blake  <ebb9@byu.net>
42474
42475         Silence warning reintroduced by recent extensions patch.
42476         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42477         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42478         autoconf.
42479
42480         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42481         * m4/00gnulib.m4: New file.
42482         * gnulib-tool (func_get_filelist): Always use it.
42483         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42484         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42485
42486 2009-01-25  Bruno Haible  <bruno@clisp.org>
42487
42488         Make test-quotearg work on MacOS X and AIX.
42489         * tests/test-quotearg.sh: New file.
42490         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42491         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42492         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42493         include <libintl.h>.
42494         (fake_locale): Remove variable.
42495         (gettext, dgettext, dcgettext): Remove functions.
42496         (main): Instead of setting a fake locale, set a real locale. Call
42497         textdomain and bindtextdomain.
42498         * modules/quotearg-tests (Files): Add the new files.
42499         (Depends-on): Add gettext, setenv, unsetenv.
42500         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42501         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42502         Augment TESTS_ENVIRONMENT.
42503
42504 2009-01-25  Bruno Haible  <bruno@clisp.org>
42505
42506         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42507         fr_FR.ISO8859-1 locale on MacOS X.
42508         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42509         ja_JP.eucJP locale on MacOS X.
42510         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42511         zh_CN.GB18030 locale on MacOS X.
42512
42513 2009-01-25  Bruno Haible  <bruno@clisp.org>
42514
42515         Avoid link errors on MacOS X 10.3.
42516         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42517         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42518
42519 2009-01-25  Bruno Haible  <bruno@clisp.org>
42520
42521         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42522         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42523         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42524         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42525         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42526         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42527         posix_spawnattr_init, posix_spawnattr_setsigmask,
42528         posix_spawnattr_setflags, posix_spawnattr_destroy.
42529
42530         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42531         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42532         * modules/execute (Files): Remove m4/posix_spawn.m4.
42533         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42534         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42535         posix_spawnattr_init, posix_spawnattr_setsigmask,
42536         posix_spawnattr_setflags, posix_spawnattr_destroy.
42537
42538 2009-01-25  Bruno Haible  <bruno@clisp.org>
42539
42540         * lib/glthread/threadlib.c: Include <stdlib.h>.
42541
42542 2009-01-25  Bruno Haible  <bruno@clisp.org>
42543
42544         * lib/glthread/threadlib.c (dummy): New declaration.
42545
42546 2009-01-25  Bruno Haible  <bruno@clisp.org>
42547
42548         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42549         multibyte characters also for the GB18030 encoding. Don't crash when
42550         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42551
42552 2009-01-25  Bruno Haible  <bruno@clisp.org>
42553
42554         Avoid redefining 'struct random_data' on OSF/1 5.1.
42555         * lib/stdlib.in.h: Include <random.h> if it exists.
42556         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42557         HAVE_RANDOM_H. Include <random.h> when testing whether
42558         'struct random_data' exists.
42559         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42560
42561 2009-01-25  Bruno Haible  <bruno@clisp.org>
42562
42563         Don't install charset.alias on MacOS X >= 10.3.
42564         * lib/localcharset.c (DARWIN7): New macro.
42565         (get_charset_aliases): Hardcode the result for Darwin7.
42566         * modules/localcharset (install-exec-local): Don't install
42567         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42568
42569 2009-01-25  Bruno Haible  <bruno@clisp.org>
42570
42571         Don't install charset.alias on mingw and Cygwin.
42572         * modules/localcharset (install-exec-local): Don't install
42573         charset.alias on mingw and Cygwin, if the file does not yet exist.
42574         The result for these platforms is hardcoded in localcharset.c.
42575
42576 2009-01-25  Bruno Haible  <bruno@clisp.org>
42577
42578         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42579         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42580         before requiring AC_USE_SYSTEM_EXTENSIONS.
42581
42582 2009-01-25  Jim Meyering  <meyering@redhat.com>
42583
42584         c-strtod: avoid warnings
42585         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42586         "assignment discards qualifiers from pointer target type" warnings.
42587
42588 2009-01-24  Bruno Haible  <bruno@clisp.org>
42589
42590         Add support for non-UTF-8 locales on MacOS X.
42591         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42592         canonical encodings. For Darwin 7 and newer, don't map traditional
42593         encodings to UTF-8.
42594         Reported by Vincent Lefevre <vincent@vinc17.org>
42595         at <http://savannah.gnu.org/bugs/?25235>.
42596
42597 2009-01-24  Bruno Haible  <bruno@clisp.org>
42598
42599         * doc/gnulib.texi (Obsolete modules): New section.
42600         Reported by Mike Frysinger <vapier@gentoo.org>.
42601
42602 2009-01-24  Bruno Haible  <bruno@clisp.org>
42603
42604         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42605         (%.dvi): New rule.
42606
42607 2009-01-24  Bruno Haible  <bruno@clisp.org>
42608
42609         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42610         Reported by Eric Blake.
42611
42612 2009-01-24  Bruno Haible  <bruno@clisp.org>
42613
42614         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42615         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42616         Reported by Gary V. Vaughan <gary@gnu.org>.
42617
42618 2009-01-24  Bruno Haible  <bruno@clisp.org>
42619
42620         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42621
42622 2009-01-23  Bruno Haible  <bruno@clisp.org>
42623
42624         Make c-strtod, c-strtold usable in libraries.
42625         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42626         (C_STRTOD): Call strdup instead of xstrdup.
42627         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42628         * modules/c-strtold (Depends-on): Likewise.
42629         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42630         * NEWS: Mention the change.
42631         Reported by Michael Gold <mgold@ncf.ca>.
42632
42633 2009-01-23  Jim Meyering  <meyering@redhat.com>
42634
42635         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42636         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42637         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42638
42639 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42640
42641         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42642         GNU CoreUtils.
42643         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42644         * modules/version-etc (Description): Update.
42645
42646 2009-01-22  Bruno Haible  <bruno@clisp.org>
42647
42648         Cache the C locale object.
42649         * lib/c-strtod.c (c_locale_cache): New variable.
42650         (c_locale): New function.
42651         (C_STRTOD): Use it, and don't call freelocale.
42652         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42653         Suggested by Paolo Bonzini.
42654
42655 2009-01-21  Bruno Haible  <bruno@clisp.org>
42656
42657         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42658         conditions other than overflow.
42659
42660 2009-01-21  Bruno Haible  <bruno@clisp.org>
42661
42662         * lib/c-strtod.c: Include errno.h.
42663         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42664         value from STRTOD_L and STRTOD.
42665
42666 2009-01-21  Bruno Haible  <bruno@clisp.org>
42667         and Jim Meyering  <meyering@redhat.com>
42668
42669         nanosleep: skip configure test (fail it) for apple universal builds
42670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42671         universal builds, assume that nanosleep does not work.
42672         * modules/nanosleep (Depends-on): Add multiarch.
42673
42674         mktime: skip configure test (fail it) for apple universal builds
42675         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42676         universal builds, assume that mktime does not work.
42677         * modules/mktime (Depends-on): Add multiarch.
42678
42679 2009-01-21  Eric Blake  <ebb9@byu.net>
42680
42681         multiarch: avoid expand-before-require warning
42682         * modules/multiarch (configure.ac): Require, rather than expand,
42683         gl_MULTIARCH.
42684         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42685         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42686         enforce that all clients require it.  Partial reversion of
42687         2008-12-29 patch.
42688
42689         error: avoid expand-before-require warning
42690         * modules/errno (configure.ac): Require, rather than expand,
42691         gl_HEADER_ERRNO_H.
42692         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42693         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42694         enforce that all clients require it.
42695
42696         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42697         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42698         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42699         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42700
42701 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42702
42703         Revert:
42704         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42705
42706         regex: do not depend on obsolete modules.
42707         * modules/regex: Remove memcmp and memmove.
42708
42709 2009-01-20  Bruno Haible  <bruno@clisp.org>
42710
42711         Make the 'link' module link on Windows NT 4.
42712         * lib/link.c (_WIN32_WINNT): Don't define.
42713         (CreateHardLinkFuncType): New type.
42714         (CreateHardLinkFunc, initialized): New variables.
42715         (initialize): New function.
42716         (link): Invoke CreateHardLink indirectly through the function pointer.
42717
42718 2009-01-20  Bruno Haible  <bruno@clisp.org>
42719
42720         Fix compilation failure on mingw.
42721         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42722
42723 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42724
42725         * doc/c-strtod.texi: Mention a couple of restrictions.
42726
42727 2009-01-20  Jim Meyering  <meyering@redhat.com>
42728
42729         gettimeofday: move more declarations out of functions
42730         * lib/gettimeofday.c: Move extern declarations of tzset and
42731         gmtime out of containing functions.  Prompted by Bruno Haible.
42732
42733 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42734
42735         regex: do not depend on obsolete modules.
42736         * modules/regex: Remove memcmp and memmove.
42737
42738 2009-01-19  Bruno Haible  <bruno@clisp.org>
42739
42740         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42741         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42742         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42743         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42744         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42745
42746 2009-01-19  Bruno Haible  <bruno@clisp.org>
42747
42748         * tests/test-link.c: Include <errno.h>.
42749         (main): Exit with code 77 when a hard link cannot be created due to
42750         the file system.
42751         * tests/test-link.sh: Skip test when a hard link cannot be created due
42752         to the file system.
42753         Suggested by Eric Blake.
42754
42755 2009-01-19  Martin Lambers  <marlam@marlam.de>
42756
42757         * modules/link-tests: New file.
42758         * tests/test-link.sh: New file.
42759         * tests/test-link.c: New file.
42760
42761 2009-01-19  Eric Blake  <ebb9@byu.net>
42762
42763         doc: mention another function added in cygwin 1.7.0
42764         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42765         Another new function in cygwin 1.7.
42766
42767 2009-01-19  Bruno Haible  <bruno@clisp.org>
42768
42769         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42770         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42771         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42772         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42773         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42774         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42775         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42776         * m4/md4.m4 (gl_MD4): Likewise.
42777         * m4/md5.m4 (gl_MD5): Likewise.
42778         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42779         * m4/sha1.m4 (gl_SHA1): Likewise.
42780         * m4/sha256.m4 (gl_SHA256): Likewise.
42781         * m4/sha512.m4 (gl_SHA512): Likewise.
42782
42783 2009-01-19  Bruno Haible  <bruno@clisp.org>
42784
42785         * modules/uniname/uniname-tests (Depends-on): Add progname.
42786         * tests/uniname/test-uninames.c: Include progname.h.
42787         (main): Call set_program_name.
42788
42789         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42790         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42791         (main): Call set_program_name.
42792
42793         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42794         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42795         (main): Call set_program_name.
42796
42797         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42798         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42799         (main): Call set_program_name.
42800
42801         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42802         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42803         (main): Call set_program_name.
42804
42805         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42806         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42807         (main): Call set_program_name.
42808
42809         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42810         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42811         (main): Call set_program_name.
42812
42813         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42814         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42815         (main): Call set_program_name.
42816
42817         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42818         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42819         (main): Call set_program_name.
42820
42821 2009-01-19  Eric Blake  <ebb9@byu.net>
42822
42823         test-unistd: test previous patch
42824         * tests/test-unistd.c: Test *_FILENO macros.
42825
42826         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42827         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42828         Guarantee a definition.
42829         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42830         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42831         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42832         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42833         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42834         Likewise.
42835         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42836         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42837         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42838         Likewise.
42839         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42840         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42841         (STDERR_FILENO): Likewise.
42842         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42843         (STDERR_FILENO): Likewise.
42844         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42845         (STDERR_FILENO): Likewise.
42846         Reported by Elbert Pol.
42847
42848 2009-01-19  Eric Blake  <ebb9@byu.net>
42849
42850         doc: mention more functions added in cygwin 1.7.0
42851         * doc/posix-functions/abort.texi (abort): Update wording related
42852         to cygwin.
42853         * doc/posix-functions/daylight.texi (daylight): Likewise.
42854         * doc/posix-functions/optarg.texi (optarg): Likewise.
42855         * doc/posix-functions/optarg.texi (opterr): Likewise.
42856         * doc/posix-functions/optarg.texi (optind): Likewise.
42857         * doc/posix-functions/optarg.texi (optopt): Likewise.
42858         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42859         worked in 1.5.x, and was withdrawn in 1.7.
42860         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42861         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42862         cygwin versions.
42863         * doc/posix-functions/perror.texi (perror): Likewise.
42864         * doc/posix-functions/printf.texi (printf): Likewise.
42865         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42866         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42867         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42868         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42869         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42870         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42871         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42872         Likewise.
42873         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42874         Likewise.
42875         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42876         this function.
42877         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42878         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42879         Likewise.
42880         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42881         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42882         * doc/posix-functions/confstr.texi (confstr): Likewise.
42883         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42884         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42885         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42886         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42887         * doc/posix-functions/fputws.texi (fputws): Likewise.
42888         * doc/posix-functions/fwide.texi (fwide): Likewise.
42889         * doc/posix-functions/getwc.texi (getwc): Likewise.
42890         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42891         * doc/posix-functions/putwc.texi (putwc): Likewise.
42892         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42893         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42894         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42895         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42896         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42897         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42898         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42899         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42900         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42901         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42902         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42903
42904 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42905
42906         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42907         * lib/ioctl.c: Include <sys/ioctl.h>.
42908
42909 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42910
42911         * modules/getdate-tests (Depends-on): Add progname.
42912         * tests/test-getdate.c: Use progname module, to avoid link errors
42913         on non-glibc systems.
42914
42915 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42916
42917         * modules/filenamecat-tests (Depends-on): Add progname.
42918         * modules/fstrcmp-tests (Depends-on): Likewise.
42919
42920         * tests/test-filenamecat.c: Use progname module, to avoid link
42921         errors on non-glibc systems.
42922         * tests/test-fstrcmp.c: Likewise.
42923
42924 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42925
42926         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42927         * lib/gettimeofday.c: Move extern declaration out of function.
42928
42929 2009-01-18  Bruno Haible  <bruno@clisp.org>
42930
42931         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42932         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42933         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42934
42935 2009-01-18  Bruno Haible  <bruno@clisp.org>
42936
42937         * lib/strftime.c (MEMPCPY): Remove unused macro.
42938         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42939
42940 2009-01-18  Martin Lambers  <marlam@marlam.de>
42941
42942         New module 'link'.
42943         * lib/unistd.in.h (link): New declaration.
42944         * lib/link.c: New file.
42945         * m4/link.m4: New file.
42946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42947         HAVE_LINK.
42948         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42949         * modules/link: New file.
42950         * doc/posix-functions/link.texi: Mention the new module.
42951
42952 2009-01-18  Bruno Haible  <bruno@clisp.org>
42953
42954         * tests/test-avltree_list.c (main): Call set_program_name.
42955         * tests/test-avltree_oset.c (main): Likewise.
42956         * tests/test-obstack-printf.c: Include progname.h.
42957         (main): Call set_program_name.
42958         * tests/test-quotearg.c: Include progname.h.
42959         (main): Call set_program_name.
42960         * tests/test-xmemdup0.c: Include progname.h.
42961         (main): Call set_program_name.
42962
42963 2009-01-18  Bruno Haible  <bruno@clisp.org>
42964
42965         New module 'alphasort'.
42966         * lib/dirent.in.h (alphasort): New declaration.
42967         * lib/alphasort.c: New file, from glibc with modifications.
42968         * m4/alphasort.m4: New file.
42969         * modules/alphasort: New file.
42970         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42971         HAVE_ALPHASORT.
42972         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42973         HAVE_ALPHASORT.
42974         * doc/posix-functions/alphasort.texi: Mention the new module and the
42975         portability problems.
42976
42977 2009-01-18  Bruno Haible  <bruno@clisp.org>
42978
42979         New module 'scandir'.
42980         * lib/dirent.in.h (scandir): New declaration.
42981         * lib/scandir.c: New file, from glibc with modifications.
42982         * m4/scandir.m4: New file.
42983         * modules/scandir: New file.
42984         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42985         HAVE_SCANDIR.
42986         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42987         HAVE_SCANDIR.
42988         * doc/posix-functions/scandir.texi: Mention the new module and the
42989         portability problems.
42990
42991 2009-01-17  Bruno Haible  <bruno@clisp.org>
42992
42993         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42994         Update documentation.
42995         (func_remove_suffix): Escape all dots in the suffix. Update
42996         documentation.
42997         (func_filter_filelist): Update documentation.
42998         Reported by Ralf Wildenhues.
42999
43000 2009-01-17  Bruno Haible  <bruno@clisp.org>
43001
43002         * modules/dprintf-posix-tests: New file.
43003         * tests/test-dprintf-posix.sh: New file.
43004         * tests/test-dprintf-posix.c: New file.
43005
43006         New modules 'dprintf', 'dprintf-posix'.
43007         * lib/stdio.in.h (dprintf): New declaration.
43008         * lib/dprintf.c: New file.
43009         * m4/dprintf.m4: New file.
43010         * m4/dprintf-posix.m4: New file.
43011         * modules/dprintf: New file.
43012         * modules/dprintf-posix: New file.
43013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43014         HAVE_DPRINTF, REPLACE_DPRINTF.
43015         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43016         HAVE_DPRINTF, REPLACE_DPRINTF.
43017         * doc/posix-functions/dprintf.texi: Mention the new modules.
43018
43019 2009-01-17  Bruno Haible  <bruno@clisp.org>
43020
43021         * modules/vdprintf-posix-tests: New file.
43022         * tests/test-vdprintf-posix.sh: New file.
43023         * tests/test-vdprintf-posix.c: New file.
43024
43025         New modules 'vdprintf', 'vdprintf-posix'.
43026         * lib/stdio.in.h (vdprintf): New declaration.
43027         * lib/vdprintf.c: New file.
43028         * m4/vdprintf.m4: New file.
43029         * m4/vdprintf-posix.m4: New file.
43030         * modules/vdprintf: New file.
43031         * modules/vdprintf-posix: New file.
43032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43033         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43034         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43035         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43036         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43037
43038 2009-01-17  Bruno Haible  <bruno@clisp.org>
43039
43040         Fix replacement of fopen on mingw.
43041         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43042         mingw.
43043
43044 2009-01-17  Bruno Haible  <bruno@clisp.org>
43045
43046         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43047         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43048
43049 2009-01-17  Bruno Haible  <bruno@clisp.org>
43050
43051         Avoid test-fflush2.sh failure on mingw.
43052         * tests/test-fflush2.c: Include binary-io.h.
43053         (main): Put standard input into binary mode.
43054         * modules/fflush-tests (Depends-on): Add binary-io.
43055
43056 2009-01-17  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/wchar.in.h: In another particular situation, include only the
43059         system's <wchar.h> file.
43060         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43061         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43062         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43063
43064 2009-01-17  Bruno Haible  <bruno@clisp.org>
43065
43066         Support for stripping executables in --enable-relocatable.
43067         * build-aux/install-reloc: Expect one more argument, or an environment
43068         variable RELOC_STRIP_PROG. If set, strip the destination program and
43069         its wrapper.
43070         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43071         RELOC_STRIP_PROG.
43072         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43073         to set RELOCATABLE_STRIP.
43074         * NEWS: Mention the new Makefile requirement.
43075
43076 2009-01-17  Bruno Haible  <bruno@clisp.org>
43077
43078         * build-aux/install-reloc: Remove debugging information left over by
43079         C compiler on MacOS X.
43080
43081 2009-01-17  Bruno Haible  <bruno@clisp.org>
43082
43083         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43084         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43085         _NSGetExecutablePath.
43086
43087 2009-01-16  Jim Meyering  <meyering@redhat.com>
43088
43089         strerror: avoid warnings about discarding "const"
43090         * lib/strerror.c (rpl_strerror): Instead of returning a const
43091         string from each and every "case", use a variable, and add a single
43092         cast after the switch.
43093
43094 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43095
43096         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43097
43098 2009-01-16  Bruno Haible  <bruno@clisp.org>
43099
43100         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43101         array initializer syntax that also works in C++ mode.
43102         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43103
43104 2009-01-16  Jim Meyering  <meyering@redhat.com>
43105
43106         poll: suppress a warning
43107         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43108         to ignore "...unsigned expression < 0 is always false" warnings.
43109
43110 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43111
43112         poll: remove declarations of unused variables
43113         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43114         sockbuf and optlen.
43115
43116 2009-01-15  Bruno Haible  <bruno@clisp.org>
43117
43118         Make fflush-after-ungetc POSIX compliant on BSD systems.
43119         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43120         (clear_ungetc_buffer): Implement also for other systems.
43121         (rpl_fflush): On glibc systems, invoke
43122         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43123         clear_ungetc_buffer after fetching the stream's position, not before.
43124
43125 2009-01-15  Bruno Haible  <bruno@clisp.org>
43126
43127         Make fflush-after-ungetc POSIX compliant on glibc systems.
43128         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43129         after ungetc.
43130         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43131         (rpl_fflush): On glibc systems, simply call the system's fflush
43132         function after clearing the ungetc buffer.
43133         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43134         Instead, lseek only to the end of file, then use the system's fseeko
43135         for the rest. On glibc systems, reset the EOF indicator bit.
43136
43137 2009-01-15  Jim Meyering  <meyering@redhat.com>
43138
43139         openmp.m4: revert quote-adding change, for portability to older autoconf
43140         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43141         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43142         Simon Josefsson noticed the problem when using autoconf-2.61.
43143
43144 2009-01-15  Bruno Haible  <bruno@clisp.org>
43145
43146         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43147         * tests/test-fflush2.c (ASSERT): Always fail.
43148         (main): Add two tests for fflush() after ungetc(), taking into account
43149         the Austin Group's clarification.
43150         Suggested by Eric Blake.
43151
43152 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43153
43154         mktime.m4: remove K&R-style function prototypes
43155         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43156         for the Sun C++ compiler.
43157
43158 2009-01-14  Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43161         while including <wchar.h>.
43162         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43163         the system's <wchar.h> file.
43164         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43165
43166 2009-01-14  Bruno Haible  <bruno@clisp.org>
43167
43168         * m4/csharp.m4: Don't mention gettext on the serial number line.
43169         * m4/csharpexec.m4: Likewise.
43170         * m4/eaccess.m4: Likewise.
43171         * m4/javaexec.m4: Likewise.
43172         * m4/sig_atomic_t.m4: Likewise.
43173         * m4/tmpdir.m4: Likewise.
43174         * m4/intldir.m4: Bump gettext version.
43175         * m4/lib-ld.m4: Likewise.
43176
43177 2009-01-14  Bruno Haible  <bruno@clisp.org>
43178
43179         * lib/progname.c (set_program_name): Add more comments.
43180         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43181
43182 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43183
43184         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43185         were sys/stat.h does not define it.
43186
43187 2009-01-14  Jim Meyering  <meyering@redhat.com>
43188
43189         many *.m4 files: improve m4 quoting
43190         99% of this change was performed by running the following commands:
43191         git ls-files | grep '\.m4$' | xargs perl -pi \
43192           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43193           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43194           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43195           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43196         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43197         The remainder were to add Copyright dates, increment serial numbers,
43198         undo some changes in comments, exclude m4/intl.m4, and add quotes
43199         around the "1" in ",1" where the unusual spacing prohibited the
43200         above regexps from doing the job.  For more details, see
43201         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43202         * m4/acl.m4: Modified.
43203         * m4/afs.m4: Likewise.
43204         * m4/alloca.m4: Likewise.
43205         * m4/argp.m4: Likewise.
43206         * m4/argz.m4: Likewise.
43207         * m4/atexit.m4: Likewise.
43208         * m4/bison-i18n.m4: Likewise.
43209         * m4/bison.m4: Likewise.
43210         * m4/byteswap.m4: Likewise.
43211         * m4/c-stack.m4: Likewise.
43212         * m4/c-strtod.m4: Likewise.
43213         * m4/calloc.m4: Likewise.
43214         * m4/canonicalize-lgpl.m4: Likewise.
43215         * m4/chown.m4: Likewise.
43216         * m4/clock_time.m4: Likewise.
43217         * m4/codeset.m4: Likewise.
43218         * m4/copy-file.m4: Likewise.
43219         * m4/csharp.m4: Likewise.
43220         * m4/csharpcomp.m4: Likewise.
43221         * m4/csharpexec.m4: Likewise.
43222         * m4/d-ino.m4: Likewise.
43223         * m4/d-type.m4: Likewise.
43224         * m4/dirfd.m4: Likewise.
43225         * m4/double-slash-root.m4: Likewise.
43226         * m4/eaccess.m4: Likewise.
43227         * m4/eealloc.m4: Likewise.
43228         * m4/environ.m4: Likewise.
43229         * m4/errno_h.m4: Likewise.
43230         * m4/euidaccess.m4: Likewise.
43231         * m4/execute.m4: Likewise.
43232         * m4/fatal-signal.m4: Likewise.
43233         * m4/fchdir.m4: Likewise.
43234         * m4/fcntl_h.m4: Likewise.
43235         * m4/fileblocks.m4: Likewise.
43236         * m4/filenamecat.m4: Likewise.
43237         * m4/findprog.m4: Likewise.
43238         * m4/flexmember.m4: Likewise.
43239         * m4/fnmatch.m4: Likewise.
43240         * m4/fopen.m4: Likewise.
43241         * m4/fpending.m4: Likewise.
43242         * m4/fprintf-posix.m4: Likewise.
43243         * m4/free.m4: Likewise.
43244         * m4/frexp.m4: Likewise.
43245         * m4/frexpl.m4: Likewise.
43246         * m4/fsusage.m4: Likewise.
43247         * m4/ftruncate.m4: Likewise.
43248         * m4/gc-camellia.m4: Likewise.
43249         * m4/gc-random.m4: Likewise.
43250         * m4/gc.m4: Likewise.
43251         * m4/getaddrinfo.m4: Likewise.
43252         * m4/getcwd-abort-bug.m4: Likewise.
43253         * m4/getcwd-path-max.m4: Likewise.
43254         * m4/getdate.m4: Likewise.
43255         * m4/getdomainname.m4: Likewise.
43256         * m4/getgroups.m4: Likewise.
43257         * m4/gethostname.m4: Likewise.
43258         * m4/gethrxtime.m4: Likewise.
43259         * m4/getline.m4: Likewise.
43260         * m4/getloadavg.m4: Likewise.
43261         * m4/getndelim2.m4: Likewise.
43262         * m4/getpass.m4: Likewise.
43263         * m4/gettext.m4: Likewise.
43264         * m4/gettime.m4: Likewise.
43265         * m4/gettimeofday.m4: Likewise.
43266         * m4/gnulib-common.m4: Likewise.
43267         * m4/group-member.m4: Likewise.
43268         * m4/host-os.m4: Likewise.
43269         * m4/iconv.m4: Likewise.
43270         * m4/iconv_open.m4: Likewise.
43271         * m4/inet_ntop.m4: Likewise.
43272         * m4/inet_pton.m4: Likewise.
43273         * m4/inline.m4: Likewise.
43274         * m4/intldir.m4: Likewise.
43275         * m4/intlmacosx.m4: Likewise.
43276         * m4/intmax.m4: Likewise.
43277         * m4/intmax_t.m4: Likewise.
43278         * m4/inttypes.m4: Likewise.
43279         * m4/inttypes_h.m4: Likewise.
43280         * m4/inttypes-pri.m4: Likewise.
43281         * m4/isapipe.m4: Likewise.
43282         * m4/isnand.m4: Likewise.
43283         * m4/isnanf.m4: Likewise.
43284         * m4/isnanl.m4: Likewise.
43285         * m4/javacomp.m4: Likewise.
43286         * m4/javaexec.m4: Likewise.
43287         * m4/jm-winsz1.m4: Likewise.
43288         * m4/jm-winsz2.m4: Likewise.
43289         * m4/lchown.m4: Likewise.
43290         * m4/lcmessage.m4: Likewise.
43291         * m4/ldexpl.m4: Likewise.
43292         * m4/lib-ld.m4: Likewise.
43293         * m4/lib-link.m4: Likewise.
43294         * m4/libsigsegv.m4: Likewise.
43295         * m4/link-follow.m4: Likewise.
43296         * m4/localcharset.m4: Likewise.
43297         * m4/locale-fr.m4: Likewise.
43298         * m4/locale-ja.m4: Likewise.
43299         * m4/locale-tr.m4: Likewise.
43300         * m4/locale-zh.m4: Likewise.
43301         * m4/lock.m4: Likewise.
43302         * m4/longlong.m4: Likewise.
43303         * m4/ls-mntd-fs.m4: Likewise.
43304         * m4/lstat.m4: Likewise.
43305         * m4/malloc.m4: Likewise.
43306         * m4/mathl.m4: Likewise.
43307         * m4/mbrtowc.m4: Likewise.
43308         * m4/mbstate_t.m4: Likewise.
43309         * m4/mbswidth.m4: Likewise.
43310         * m4/memchr.m4: Likewise.
43311         * m4/memcmp.m4: Likewise.
43312         * m4/memcpy.m4: Likewise.
43313         * m4/memmem.m4: Likewise.
43314         * m4/memmove.m4: Likewise.
43315         * m4/mempcpy.m4: Likewise.
43316         * m4/memrchr.m4: Likewise.
43317         * m4/memset.m4: Likewise.
43318         * m4/minmax.m4: Likewise.
43319         * m4/mkdir-slash.m4: Likewise.
43320         * m4/mkdtemp.m4: Likewise.
43321         * m4/mktime.m4: Likewise.
43322         * m4/mmap-anon.m4: Likewise.
43323         * m4/mountlist.m4: Likewise.
43324         * m4/nanosleep.m4: Likewise.
43325         * m4/nls.m4: Likewise.
43326         * m4/nocrash.m4: Likewise.
43327         * m4/open.m4: Likewise.
43328         * m4/openat.m4: Likewise.
43329         * m4/openmp.m4: Likewise.
43330         * m4/pathmax.m4: Likewise.
43331         * m4/perl.m4: Likewise.
43332         * m4/physmem.m4: Likewise.
43333         * m4/pipe.m4: Likewise.
43334         * m4/po.m4: Likewise.
43335         * m4/poll.m4: Likewise.
43336         * m4/posixtm.m4: Likewise.
43337         * m4/posixver.m4: Likewise.
43338         * m4/printf-frexp.m4: Likewise.
43339         * m4/printf-frexpl.m4: Likewise.
43340         * m4/printf-posix.m4: Likewise.
43341         * m4/printf-posix-rpl.m4: Likewise.
43342         * m4/printf.m4: Likewise.
43343         * m4/progtest.m4: Likewise.
43344         * m4/putenv.m4: Likewise.
43345         * m4/readline.m4: Likewise.
43346         * m4/readlink.m4: Likewise.
43347         * m4/readutmp.m4: Likewise.
43348         * m4/realloc.m4: Likewise.
43349         * m4/regex.m4: Likewise.
43350         * m4/relocatable.m4: Likewise.
43351         * m4/relocatable-lib.m4: Likewise.
43352         * m4/rename-dest-slash.m4: Likewise.
43353         * m4/rename.m4: Likewise.
43354         * m4/rmdir-errno.m4: Likewise.
43355         * m4/rmdir.m4: Likewise.
43356         * m4/roundf.m4: Likewise.
43357         * m4/roundl.m4: Likewise.
43358         * m4/rpmatch.m4: Likewise.
43359         * m4/save-cwd.m4: Likewise.
43360         * m4/selinux-selinux-h.m4: Likewise.
43361         * m4/setenv.m4: Likewise.
43362         * m4/settime.m4: Likewise.
43363         * m4/sig2str.m4: Likewise.
43364         * m4/sig_atomic_t.m4: Likewise.
43365         * m4/signalblocking.m4: Likewise.
43366         * m4/signbit.m4: Likewise.
43367         * m4/sigpipe.m4: Likewise.
43368         * m4/sockets.m4: Likewise.
43369         * m4/sockpfaf.m4: Likewise.
43370         * m4/st_dm_mode.m4: Likewise.
43371         * m4/stat-time.m4: Likewise.
43372         * m4/stdbool.m4: Likewise.
43373         * m4/stdint.m4: Likewise.
43374         * m4/stdint_h.m4: Likewise.
43375         * m4/stpcpy.m4: Likewise.
43376         * m4/stpncpy.m4: Likewise.
43377         * m4/strcase.m4: Likewise.
43378         * m4/strchrnul.m4: Likewise.
43379         * m4/strcspn.m4: Likewise.
43380         * m4/strdup.m4: Likewise.
43381         * m4/strftime.m4: Likewise.
43382         * m4/strndup.m4: Likewise.
43383         * m4/strnlen.m4: Likewise.
43384         * m4/strpbrk.m4: Likewise.
43385         * m4/strptime.m4: Likewise.
43386         * m4/strsep.m4: Likewise.
43387         * m4/strtod.m4: Likewise.
43388         * m4/strtoimax.m4: Likewise.
43389         * m4/strtok_r.m4: Likewise.
43390         * m4/strtol.m4: Likewise.
43391         * m4/strtoll.m4: Likewise.
43392         * m4/strtoul.m4: Likewise.
43393         * m4/strtoull.m4: Likewise.
43394         * m4/strtoumax.m4: Likewise.
43395         * m4/strverscmp.m4: Likewise.
43396         * m4/threadlib.m4: Likewise.
43397         * m4/timegm.m4: Likewise.
43398         * m4/tm_gmtoff.m4: Likewise.
43399         * m4/tmpdir.m4: Likewise.
43400         * m4/tmpfile.m4: Likewise.
43401         * m4/tzset.m4: Likewise.
43402         * m4/uintmax_t.m4: Likewise.
43403         * m4/unlinkdir.m4: Likewise.
43404         * m4/unlocked-io.m4: Likewise.
43405         * m4/uptime.m4: Likewise.
43406         * m4/userspec.m4: Likewise.
43407         * m4/utimbuf.m4: Likewise.
43408         * m4/utime.m4: Likewise.
43409         * m4/utimes-null.m4: Likewise.
43410         * m4/utimes.m4: Likewise.
43411         * m4/vararrays.m4: Likewise.
43412         * m4/vasnprintf.m4: Likewise.
43413         * m4/vfprintf-posix.m4: Likewise.
43414         * m4/vprintf-posix.m4: Likewise.
43415         * m4/wait-process.m4: Likewise.
43416         * m4/wchar_t.m4: Likewise.
43417         * m4/wint_t.m4: Likewise.
43418         * m4/write-any-file.m4: Likewise.
43419         * m4/yield.m4: Likewise.
43420
43421 2009-01-13  Bruno Haible  <bruno@clisp.org>
43422
43423         Avoid test-copy-file.sh failures when ACL support insufficient.
43424         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43425         TESTS_ENVIRONMENT.
43426         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43427         Reported by Jim Meyering.
43428
43429 2009-01-13  Bruno Haible  <bruno@clisp.org>
43430
43431         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43432         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43433         * modules/unistdio/u8-printf-parse (Files): Likewise.
43434         * modules/unistdio/u32-printf-parse (Files): Likewise.
43435         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43436
43437 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43438
43439         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43440         and m4/inttypes_h.m4 too.
43441
43442 2009-01-12  Eric Blake  <ebb9@byu.net>
43443
43444         tests: IRIX 6.2 cc can't compile -0.0 into .data
43445         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43446         rather than at compile-time.
43447         * tests/test-floorl.c (minus_zero): Likewise.
43448         * tests/test-frexpl.c (minus_zero): Likewise.
43449         * tests/test-isnan.c (minus_zerol): Likewise.
43450         * tests/test-isnanl.h (minus_zero): Likewise.
43451         * tests/test-ldexpl.c (minus_zero): Likewise.
43452         * tests/test-roundl.c (minus_zero): Likewise.
43453         * tests/test-signbit.c (minus_zerol): Likewise.
43454         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43455         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43456         * tests/test-truncl.c (minus_zero): Likewise.
43457         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43458         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43459         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43460
43461 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43462
43463         regex: fix glibc bug 9697
43464         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43465         handling.
43466
43467 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43468
43469         regex: fix glibc bug 697
43470         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43471         being NULL also if there are no backreferences.
43472
43473 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43474
43475         regex: merge glibc changes
43476         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43477         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43478         re_string_skip_chars, re_string_reconstruct): Likewise.
43479         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43480
43481 2009-01-07  Jim Meyering  <meyering@redhat.com>
43482
43483         poll: filter through cppi
43484         * lib/poll.c: Indent cpp directives to reflect nesting.
43485
43486 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43487
43488         poll: don't return uninitialized
43489         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43490
43491 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43492
43493         avoid compile failure on AIX 6.1
43494         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43495         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43496
43497 2009-01-04  Jim Meyering  <meyering@redhat.com>
43498
43499         remove duplicate inclusion of <stdio.h>
43500         * tests/test-fprintf-posix.c: Likewise.
43501         * tests/test-printf-posix.c: Likewise.
43502         * tests/test-snprintf-posix.c: Likewise.
43503         * tests/test-sprintf-posix.c: Likewise.
43504         * tests/test-vasprintf-posix.c: Likewise.
43505         * tests/test-vfprintf-posix.c: Likewise.
43506         * tests/test-vprintf-posix.c: Likewise.
43507         * tests/test-vsnprintf-posix.c: Likewise.
43508         * tests/test-vsprintf-posix.c: Likewise.
43509
43510 2009-01-03  Jim Meyering  <meyering@redhat.com>
43511
43512         gnulib-tool: fix sed-based filtering
43513         * gnulib-tool (func_filter_filelist): Remove extra backslash
43514         in sed_fff_filter definition.
43515
43516 2009-01-02  Jim Meyering  <meyering@redhat.com>
43517
43518         strftime: avoid compilation failure on Solaris 2.6
43519         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43520         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43521         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43522         be available.  Reported by Tom G. Christensen.  Details in
43523         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43524
43525 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43526             Bruno Haible  <bruno@clisp.org>
43527
43528         Speed up gnulib-tool by doing more string processing through shell
43529         built-ins.
43530         * gnulib-tool (fast_func_append): New variable.
43531         (func_remove_prefix, func_remove_suffix): New functions.
43532         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43533         (func_filter_filelist): New function.
43534         (func_get_dependencies): Use func_remove_suffix instead of sed.
43535         (func_get_automake_snippet): Use func_filter_filelist instead of a
43536         subshell and sed invocation.
43537
43538 2009-01-01  Bruno Haible  <bruno@clisp.org>
43539
43540         Fix a security bug.
43541         * gnulib-tool (func_import, import, update): Don't allow the characters
43542         '"', '$', '`', '\' in macro arguments that become part of commands that
43543         are evaluated.
43544
43545 2009-01-01  Bruno Haible  <bruno@clisp.org>
43546
43547         * gnulib-tool (func_reset_sigpipe): Add more comments.
43548
43549 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43550
43551         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43552         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43553         already know the answer.
43554
43555 2009-01-01  Jim Meyering  <meyering@redhat.com>
43556
43557         * lib/version-etc.c (version_etc_va): Update copyright year.
43558
43559 2008-12-30  Bruno Haible  <bruno@clisp.org>
43560
43561         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43562         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43563         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43564
43565 2008-12-29  Eric Blake  <ebb9@byu.net>
43566
43567         multiarch: avoid autoconf AC_REQUIRE bug
43568         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43569         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43570         2.63 and older.
43571         Reported by Bruno Haible, and analyzed in
43572         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43573
43574 2008-12-29  Bruno Haible  <bruno@clisp.org>
43575
43576         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43577         files in subdirectories correctly.
43578         Reported by Ralf Wildenhues.
43579
43580 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43581
43582         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43583         rather than 'join FILE -', for Solaris join.
43584
43585 2008-12-29  Bruno Haible  <bruno@clisp.org>
43586
43587         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43588         quoting.
43589         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43590         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43591         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43592         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43593         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43594         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43595         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43596         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43597         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43598         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43599         * m4/nls.m4 (AM_NLS): Likewise.
43600         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43601         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43602         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43603         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43604         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43605         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43606         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43607         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43608         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43609         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43610         * m4/xsize.m4 (gl_XSIZE): Likewise.
43611         Suggested by Jim Meyering.
43612
43613 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43614
43615         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43616         * lib/parse-duration.c: use a switch instead of cascading if's.
43617
43618 2008-12-29  Eric Blake  <ebb9@byu.net>
43619
43620         wchar.h: supply WEOF on Irix 5.3
43621         * lib/wchar.in.h (wint_t): Also supply WEOF.
43622         * lib/wctype.in.h (wint_t): Likewise.
43623         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43624         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43625         Reported by Tom G. Christensen.
43626
43627 2008-12-26  Bruno Haible  <bruno@clisp.org>
43628
43629         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43630         i486, i586, i686.
43631
43632 2008-12-26  Bruno Haible  <bruno@clisp.org>
43633
43634         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43635
43636 2008-12-26  Bruno Haible  <bruno@clisp.org>
43637
43638         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43639         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43640         not __STDC_CONSTANT_MACROS.
43641         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43642
43643 2008-12-25  Bruno Haible  <bruno@clisp.org>
43644
43645         Add support for universal builds to vasnprintf.
43646         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43647         universal builds, guess no.
43648         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43649         * modules/vasprintf-posix (Depends-on): Likewise.
43650         * modules/fprintf-posix (Depends-on): Likewise.
43651         * modules/vfprintf-posix (Depends-on): Likewise.
43652         * modules/snprintf-posix (Depends-on): Likewise.
43653         * modules/vsnprintf-posix (Depends-on): Likewise.
43654         * modules/sprintf-posix (Depends-on): Likewise.
43655         * modules/vsprintf-posix (Depends-on): Likewise.
43656         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43657         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43658         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43659         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43660         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43661         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43662         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43663
43664         Add support for universal builds to <inttypes.h>.
43665         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43666         _SCNu64_PREFIX): In Apple
43667         universal builds, define directly, using _LP64.
43668         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43669         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43670         * modules/inttypes (Depends-on): Add multiarch.
43671         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43672
43673         Add support for universal builds to <stdint.h>.
43674         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43675         universal builds, define directly, using _LP64.
43676         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43677         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43678         and size_t.
43679         * modules/stdint (Depends-on): Add multiarch.
43680         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43681
43682         New module 'multiarch'.
43683         * modules/multiarch: New file.
43684         * m4/multiarch.m4: New file.
43685
43686 2008-12-25  Bruno Haible  <bruno@clisp.org>
43687
43688         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43689
43690 2008-12-25  Bruno Haible  <bruno@clisp.org>
43691
43692         * modules/btowc (License): Relicense under LGPLv2+.
43693         * modules/mbsinit (License): Likewise.
43694         * modules/mbrtowc (License): Likewise.
43695         * modules/wcrtomb (License): Likewise.
43696         * modules/streq (License): Likewise.
43697         Reported by David Lutterkort <lutter@redhat.com>.
43698
43699 2008-12-23  Bruno Haible  <bruno@clisp.org>
43700
43701         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43702
43703 2008-12-23  Bruno Haible  <bruno@clisp.org>
43704
43705         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43706         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43707         GETADDRINFO_LIB, not in LIBS.
43708         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43709         * modules/canon-host (Link): Likewise.
43710         * NEWS: Mention the change.
43711         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43712         GETADDRINFO_LIB.
43713
43714 2008-12-22  Bruno Haible  <bruno@clisp.org>
43715
43716         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43717         * doc/posix-functions/iswalpha_l.texi: Likewise.
43718         * doc/posix-functions/iswblank_l.texi: Likewise.
43719         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43720         * doc/posix-functions/iswctype_l.texi: Likewise.
43721         * doc/posix-functions/iswdigit_l.texi: Likewise.
43722         * doc/posix-functions/iswgraph_l.texi: Likewise.
43723         * doc/posix-functions/iswlower_l.texi: Likewise.
43724         * doc/posix-functions/iswprint_l.texi: Likewise.
43725         * doc/posix-functions/iswpunct_l.texi: Likewise.
43726         * doc/posix-functions/iswspace_l.texi: Likewise.
43727         * doc/posix-functions/iswupper_l.texi: Likewise.
43728         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43729         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43730         * doc/posix-functions/open_wmemstream.texi: Likewise.
43731         * doc/posix-functions/swscanf.texi: Likewise.
43732         * doc/posix-functions/towctrans_l.texi: Likewise.
43733         * doc/posix-functions/towlower.texi: Likewise.
43734         * doc/posix-functions/towlower_l.texi: Likewise.
43735         * doc/posix-functions/towupper.texi: Likewise.
43736         * doc/posix-functions/towupper_l.texi: Likewise.
43737         * doc/posix-functions/vfwprintf.texi: Likewise.
43738         * doc/posix-functions/vfwscanf.texi: Likewise.
43739         * doc/posix-functions/vswscanf.texi: Likewise.
43740         * doc/posix-functions/vwprintf.texi: Likewise.
43741         * doc/posix-functions/vwscanf.texi: Likewise.
43742         * doc/posix-functions/wcpcpy.texi: Likewise.
43743         * doc/posix-functions/wcpncpy.texi: Likewise.
43744         * doc/posix-functions/wcscasecmp.texi: Likewise.
43745         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43746         * doc/posix-functions/wcscoll_l.texi: Likewise.
43747         * doc/posix-functions/wcsdup.texi: Likewise.
43748         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43749         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43750         * doc/posix-functions/wcsnlen.texi: Likewise.
43751         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43752         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43753         * doc/posix-functions/wctrans_l.texi: Likewise.
43754         * doc/posix-functions/wctype_l.texi: Likewise.
43755         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43756         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43757         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43758         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43759         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43760         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43761         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43762         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43763         * doc/glibc-functions/wcschrnul.texi: Likewise.
43764         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43765         * doc/glibc-functions/wcstod_l.texi: Likewise.
43766         * doc/glibc-functions/wcstof_l.texi: Likewise.
43767         * doc/glibc-functions/wcstol_l.texi: Likewise.
43768         * doc/glibc-functions/wcstold_l.texi: Likewise.
43769         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43770         * doc/glibc-functions/wcstoq.texi: Likewise.
43771         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43772         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43773         * doc/glibc-functions/wcstouq.texi: Likewise.
43774         * doc/glibc-functions/wmempcpy.texi: Likewise.
43775
43776 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43777             Eric Blake  <ebb9@byu.net>
43778             Paolo Bonzini  <bonzini@gnu.org>
43779             Bruno Haible  <bruno@clisp.org>
43780
43781         Make c-stack work on Haiku.
43782         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43783         (c_stack_action): Use SA_ONSTACK flag.
43784
43785 2008-12-22  Bruno Haible  <bruno@clisp.org>
43786
43787         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43788
43789 2008-12-22  Bruno Haible  <bruno@clisp.org>
43790
43791         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43792         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43793         being overridden.
43794         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43795         New macros.
43796         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43798         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43799         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43800
43801 2008-12-22  Bruno Haible  <bruno@clisp.org>
43802
43803         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43804         from test code.
43805
43806 2008-12-22  Eric Blake  <ebb9@byu.net>
43807
43808         Avoid gcc warnings on cygwin.
43809         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43810         Avoid unused variable.
43811         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43812         Likewise.
43813
43814 2008-12-22  Bruno Haible  <bruno@clisp.org>
43815
43816         Remove HAVE_MBRTOWC conditionals.
43817         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43818         (mbscasecmp): Assume mbrtowc function.
43819         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43820         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43821         * lib/mbschr.c: Include mbuiter.h unconditionally.
43822         (mbschr): Assume mbrtowc function.
43823         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43824         (mbscspn): Assume mbrtowc function.
43825         * lib/mbslen.c: Include mbuiter.h unconditionally.
43826         (mbslen): Assume mbrtowc function.
43827         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43828         (mbsncasecmp): Assume mbrtowc function.
43829         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43830         (mbsnlen): Assume mbrtowc function.
43831         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43832         (mbspbrk): Assume mbrtowc function.
43833         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43834         (mbspcasecmp): Assume mbrtowc function.
43835         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43836         (mbsrchr): Assume mbrtowc function.
43837         * lib/mbssep.c: Include mbuiter.h unconditionally.
43838         (mbssep): Assume mbrtowc function.
43839         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43840         (mbsspn): Assume mbrtowc function.
43841         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43842         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43843         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43844         (mbstok_r): Assume mbrtowc function.
43845         * lib/propername.c: Include mbuiter.h unconditionally.
43846         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43847         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43848         (trim2): Assume mbrtowc function.
43849         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43850         (mbsnwidth): Assume mbrtowc function.
43851         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43852         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43853         fallback definitions.
43854         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43855
43856 2008-12-22  Bruno Haible  <bruno@clisp.org>
43857
43858         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43859
43860 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43861
43862         * modules/regex: Request emulations for the mb*/wc* functions we need.
43863         * m4/regex.m4: Don't look for those functions here.
43864         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43865
43866 2008-12-22  Bruno Haible  <bruno@clisp.org>
43867
43868         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43869
43870 2008-12-21  Bruno Haible  <bruno@clisp.org>
43871
43872         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43873         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43874         (Include): Remove conditionalization.
43875         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43876         (Include): Remove conditionalization.
43877         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43878         (Include): Remove conditionalization.
43879         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43880         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43881         * NEWS: Mention the change.
43882         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43883         via Sergey Poznyakoff <gray@gnu.org.ua>.
43884
43885 2008-12-21  Bruno Haible  <bruno@clisp.org>
43886
43887         * MODULES.html.sh (Extended multibyte and wide character utilities
43888         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43889         wcrtomb, wcsrtombs.
43890         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43891         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43892         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43893         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43894
43895 2008-12-21  Bruno Haible  <bruno@clisp.org>
43896
43897         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43898
43899 2008-12-21  Bruno Haible  <bruno@clisp.org>
43900
43901         * modules/wcsnrtombs-tests: New file.
43902         * tests/test-wcsnrtombs1.sh: New file.
43903         * tests/test-wcsnrtombs2.sh: New file.
43904         * tests/test-wcsnrtombs3.sh: New file.
43905         * tests/test-wcsnrtombs4.sh: New file.
43906         * tests/test-wcsnrtombs.c: New file.
43907
43908         New module 'wcsnrtombs'.
43909         * lib/wchar.in.h (wcsnrtombs): New declaration.
43910         * lib/wcsnrtombs.c: New file.
43911         * lib/wcsrtombs-state.c: New file.
43912         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43913         (internal_state): Remove variable.
43914         * m4/wcsnrtombs.m4: New file.
43915         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43916         compilation units.
43917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43918         HAVE_WCSNRTOMBS.
43919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43920         HAVE_WCSNRTOMBS.
43921         * modules/wcsnrtombs: New file.
43922         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43923         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43924
43925 2008-12-21  Bruno Haible  <bruno@clisp.org>
43926
43927         * modules/wcsrtombs-tests: New file.
43928         * tests/test-wcsrtombs1.sh: New file.
43929         * tests/test-wcsrtombs2.sh: New file.
43930         * tests/test-wcsrtombs3.sh: New file.
43931         * tests/test-wcsrtombs4.sh: New file.
43932         * tests/test-wcsrtombs.c: New file.
43933
43934         New module 'wcsrtombs'.
43935         * lib/wchar.in.h (wcsrtombs): New declaration.
43936         * lib/wcsrtombs.c: New file.
43937         * m4/wcsrtombs.m4: New file.
43938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43939         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43940         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43941         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43942         * modules/wcsrtombs: New file.
43943         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43944         bugs.
43945
43946 2008-12-21  Bruno Haible  <bruno@clisp.org>
43947
43948         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43949         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43950         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43951         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43952         if not correct.
43953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43954         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43955         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43956         m4/locale-zh.m4, m4/codeset.m4.
43957         * doc/posix-functions/wcrtomb.texi: Document the bug.
43958
43959 2008-12-21  Bruno Haible  <bruno@clisp.org>
43960
43961         Work around a btowc() bug on IRIX 6.5.
43962         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43963         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43964         REPLACE_WTOBC if not.
43965         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43966         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43967         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43968
43969 2008-12-21  Bruno Haible  <bruno@clisp.org>
43970
43971         * modules/wcrtomb-tests: New file.
43972         * tests/test-wcrtomb.sh: New file.
43973         * tests/test-wcrtomb.c: New file.
43974
43975         New module 'wcrtomb'.
43976         * lib/wchar.in.h (wcrtomb): New declaration.
43977         * lib/wcrtomb.c: New file.
43978         * m4/wcrtomb.m4: New file.
43979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43980         HAVE_WCRTOMB.
43981         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43982         HAVE_WCRTOMB.
43983         * modules/wcrtomb: New file.
43984         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43985
43986 2008-12-21  Bruno Haible  <bruno@clisp.org>
43987
43988         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43989         * modules/mbsrtowcs (Files): Likewise.
43990         * modules/wctob (Files): Likewise.
43991         * modules/c-strcase-tests (Files): Likewise.
43992         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43993         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43994         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43995         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43996         * modules/vasnprintf-posix-tests (Files): Likewise.
43997
43998 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43999
44000         gitlog-to-changelog: pass all command-line arguments to git-log
44001         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44002         it is sometimes convenient to filter the commits in various ways.
44003         gitlog-to-changelog only allows --since to specify a start date,
44004         but git-log itself supports many other filtering mechanisms.
44005         At the moment, I want to filter by branch name.  Rather than
44006         adding a --branch option to gitlog-to-changelog, it seems more
44007         flexible to simply pass all options directly to git-log and let
44008         git do the work.  Notice that this effectively makes --since a
44009         redundant option for gitlog-to-changelog, but removing it would
44010         require current usage to change since calls would then require
44011         an additional '--'.
44012
44013 2008-12-21  Bruno Haible  <bruno@clisp.org>
44014
44015         * modules/mbsnrtowcs-tests: New file.
44016         * tests/test-mbsnrtowcs1.sh: New file.
44017         * tests/test-mbsnrtowcs2.sh: New file.
44018         * tests/test-mbsnrtowcs3.sh: New file.
44019         * tests/test-mbsnrtowcs4.sh: New file.
44020         * tests/test-mbsnrtowcs.c: New file.
44021
44022         New module 'mbsnrtowcs'.
44023         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44024         * lib/mbsnrtowcs.c: New file.
44025         * lib/mbsrtowcs-state.c: New file.
44026         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44027         (internal_state): Remove variable.
44028         * m4/mbsnrtowcs.m4: New file.
44029         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44030         compilation units.
44031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44032         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44033         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44034         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44035         * modules/mbsnrtowcs: New file.
44036         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44037         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44038         portability problem.
44039
44040 2008-12-21  Bruno Haible  <bruno@clisp.org>
44041
44042         Work around mbsrtowcs bug.
44043         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44044         (gl_FUNC_MBSRTOWCS): Invoke it.
44045         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44046         m4/locale-zh.m4.
44047         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44048
44049 2008-12-21  Bruno Haible  <bruno@clisp.org>
44050
44051         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44052
44053 2008-12-21  Bruno Haible  <bruno@clisp.org>
44054
44055         Update doc for AIX.
44056         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44057         16-bit wchar_t type.
44058         * doc/posix-functions/btowc.texi: Likewise.
44059         * doc/posix-functions/fgetwc.texi: Likewise.
44060         * doc/posix-functions/fgetws.texi: Likewise.
44061         * doc/posix-functions/fputwc.texi: Likewise.
44062         * doc/posix-functions/fputws.texi: Likewise.
44063         * doc/posix-functions/fwide.texi: Likewise.
44064         * doc/posix-functions/fwprintf.texi: Likewise.
44065         * doc/posix-functions/fwscanf.texi: Likewise.
44066         * doc/posix-functions/getwchar.texi: Likewise.
44067         * doc/posix-functions/getwc.texi: Likewise.
44068         * doc/posix-functions/iswalnum.texi: Likewise.
44069         * doc/posix-functions/iswalpha.texi: Likewise.
44070         * doc/posix-functions/iswblank.texi: Likewise.
44071         * doc/posix-functions/iswcntrl.texi: Likewise.
44072         * doc/posix-functions/iswctype.texi: Likewise.
44073         * doc/posix-functions/iswdigit.texi: Likewise.
44074         * doc/posix-functions/iswgraph.texi: Likewise.
44075         * doc/posix-functions/iswlower.texi: Likewise.
44076         * doc/posix-functions/iswprint.texi: Likewise.
44077         * doc/posix-functions/iswpunct.texi: Likewise.
44078         * doc/posix-functions/iswspace.texi: Likewise.
44079         * doc/posix-functions/iswupper.texi: Likewise.
44080         * doc/posix-functions/iswxdigit.texi: Likewise.
44081         * doc/posix-functions/mbrtowc.texi: Likewise.
44082         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44083         * doc/posix-functions/mbstowcs.texi: Likewise.
44084         * doc/posix-functions/mbtowc.texi: Likewise.
44085         * doc/posix-functions/putwchar.texi: Likewise.
44086         * doc/posix-functions/putwc.texi: Likewise.
44087         * doc/posix-functions/swprintf.texi: Likewise.
44088         * doc/posix-functions/tolower.texi: Likewise.
44089         * doc/posix-functions/toupper.texi: Likewise.
44090         * doc/posix-functions/towctrans.texi: Likewise.
44091         * doc/posix-functions/ungetwc.texi: Likewise.
44092         * doc/posix-functions/vswprintf.texi: Likewise.
44093         * doc/posix-functions/wcrtomb.texi: Likewise.
44094         * doc/posix-functions/wcscat.texi: Likewise.
44095         * doc/posix-functions/wcschr.texi: Likewise.
44096         * doc/posix-functions/wcscmp.texi: Likewise.
44097         * doc/posix-functions/wcscoll.texi: Likewise.
44098         * doc/posix-functions/wcscpy.texi: Likewise.
44099         * doc/posix-functions/wcscspn.texi: Likewise.
44100         * doc/posix-functions/wcsftime.texi: Likewise.
44101         * doc/posix-functions/wcslen.texi: Likewise.
44102         * doc/posix-functions/wcsncat.texi: Likewise.
44103         * doc/posix-functions/wcsncmp.texi: Likewise.
44104         * doc/posix-functions/wcsncpy.texi: Likewise.
44105         * doc/posix-functions/wcspbrk.texi: Likewise.
44106         * doc/posix-functions/wcsrchr.texi: Likewise.
44107         * doc/posix-functions/wcsrtombs.texi: Likewise.
44108         * doc/posix-functions/wcsspn.texi: Likewise.
44109         * doc/posix-functions/wcsstr.texi: Likewise.
44110         * doc/posix-functions/wcstod.texi: Likewise.
44111         * doc/posix-functions/wcstof.texi: Likewise.
44112         * doc/posix-functions/wcstoimax.texi: Likewise.
44113         * doc/posix-functions/wcstok.texi: Likewise.
44114         * doc/posix-functions/wcstold.texi: Likewise.
44115         * doc/posix-functions/wcstoll.texi: Likewise.
44116         * doc/posix-functions/wcstol.texi: Likewise.
44117         * doc/posix-functions/wcstombs.texi: Likewise.
44118         * doc/posix-functions/wcstoull.texi: Likewise.
44119         * doc/posix-functions/wcstoul.texi: Likewise.
44120         * doc/posix-functions/wcstoumax.texi: Likewise.
44121         * doc/posix-functions/wcswidth.texi: Likewise.
44122         * doc/posix-functions/wcsxfrm.texi: Likewise.
44123         * doc/posix-functions/wctob.texi: Likewise.
44124         * doc/posix-functions/wctomb.texi: Likewise.
44125         * doc/posix-functions/wctrans.texi: Likewise.
44126         * doc/posix-functions/wctype.texi: Likewise.
44127         * doc/posix-functions/wcwidth.texi: Likewise.
44128         * doc/posix-functions/wmemchr.texi: Likewise.
44129         * doc/posix-functions/wmemcmp.texi: Likewise.
44130         * doc/posix-functions/wmemcpy.texi: Likewise.
44131         * doc/posix-functions/wmemmove.texi: Likewise.
44132         * doc/posix-functions/wmemset.texi: Likewise.
44133         * doc/posix-functions/wprintf.texi: Likewise.
44134         * doc/posix-functions/wscanf.texi: Likewise.
44135
44136 2008-12-21  Bruno Haible  <bruno@clisp.org>
44137
44138         Update doc for HP-UX 11.11.
44139         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44140         in HP-UX version 11.00, not in all versions of HP-UX 11.
44141         * doc/posix-functions/fwide.texi: Likewise.
44142         * doc/posix-functions/fwprintf.texi: Likewise.
44143         * doc/posix-functions/fwscanf.texi: Likewise.
44144         * doc/posix-functions/inet_ntop.texi: Likewise.
44145         * doc/posix-functions/inet_pton.texi: Likewise.
44146         * doc/posix-functions/mbrlen.texi: Likewise.
44147         * doc/posix-functions/mbrtowc.texi: Likewise.
44148         * doc/posix-functions/mbsinit.texi: Likewise.
44149         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44150         * doc/posix-functions/swprintf.texi: Likewise.
44151         * doc/posix-functions/swscanf.texi: Likewise.
44152         * doc/posix-functions/towctrans.texi: Likewise.
44153         * doc/posix-functions/vfwprintf.texi: Likewise.
44154         * doc/posix-functions/vswprintf.texi: Likewise.
44155         * doc/posix-functions/vwprintf.texi: Likewise.
44156         * doc/posix-functions/wcrtomb.texi: Likewise.
44157         * doc/posix-functions/wcsrtombs.texi: Likewise.
44158         * doc/posix-functions/wcsstr.texi: Likewise.
44159         * doc/posix-functions/wctob.texi: Likewise.
44160         * doc/posix-functions/wctrans.texi: Likewise.
44161         * doc/posix-functions/wmemchr.texi: Likewise.
44162         * doc/posix-functions/wmemcmp.texi: Likewise.
44163         * doc/posix-functions/wmemcpy.texi: Likewise.
44164         * doc/posix-functions/wmemmove.texi: Likewise.
44165         * doc/posix-functions/wmemset.texi: Likewise.
44166         * doc/posix-functions/wprintf.texi: Likewise.
44167         * doc/posix-functions/wscanf.texi: Likewise.
44168
44169 2008-12-21  Bruno Haible  <bruno@clisp.org>
44170
44171         Work around a portability problem.
44172         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44173         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44174
44175 2008-12-20  Bruno Haible  <bruno@clisp.org>
44176
44177         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44178         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44179         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44181         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44182
44183         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44184         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44185         set.
44186         (GNULIB_defined_mbstate_t): New macro.
44187         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44188         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44189         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44190         reuses the system's mbrtowc function but works around the bugs.
44191         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44192         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44193         macros.
44194         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44195         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44196         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44197         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44198         REPLACE_MBSINIT if mbsinit needs to be overridden.
44199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44200         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44201         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44202         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44203         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44204         m4/locale-zh.m4.
44205         (Depends): Add mbsinit.
44206         * modules/mbsinit (Depends): Add mbrtowc.
44207         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44208
44209 2008-12-20  Bruno Haible  <bruno@clisp.org>
44210
44211         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44212         so that there are no conversion errors on AIX.
44213         * tests/test-mbsrtowcs.c (main): LIkewise.
44214
44215 2008-12-20  Bruno Haible  <bruno@clisp.org>
44216
44217         Work around wctob bug on Solaris <= 9.
44218         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44219         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44220         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44221         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44222         * modules/wctob (Files): Add m4/locale-fr.m4.
44223         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44224
44225 2008-12-20  Bruno Haible  <bruno@clisp.org>
44226
44227         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44228         /dev/null.
44229         * tests/test-select-in.sh: Likewise.
44230         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44231
44232 2008-12-20  Bruno Haible  <bruno@clisp.org>
44233
44234         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44235         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44236         Cygwin 1.5.x.
44237
44238 2008-12-20  Bruno Haible  <bruno@clisp.org>
44239
44240         Ensure mbstate_t is defined on HP-UX 11.11.
44241         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44242         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44243         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44244         AC_USE_SYSTEM_EXTENSIONS.
44245         * modules/fnmatch (Depends-on): Add extensions.
44246         * modules/mbrlen (Depends-on): Likewise.
44247         * modules/mbrtowc (Depends-on): Likewise.
44248         * modules/mbsinit (Depends-on): Likewise.
44249         * modules/mbsrtowcs (Depends-on): Likewise.
44250         * modules/mbswidth (Depends-on): Likewise.
44251         * modules/quotearg (Depends-on): Likewise.
44252         * modules/strftime (Depends-on): Likewise.
44253
44254 2008-12-20  Bruno Haible  <bruno@clisp.org>
44255
44256         Ensure wctob is declared on IRIX 6.5.
44257         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44258         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44259         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44261         of HAVE_WCTOB.
44262         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44263         HAVE_WCTOB.
44264         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44265
44266 2008-12-19  Bruno Haible  <bruno@clisp.org>
44267
44268         * modules/mbsrtowcs-tests: New file.
44269         * tests/test-mbsrtowcs1.sh: New file.
44270         * tests/test-mbsrtowcs2.sh: New file.
44271         * tests/test-mbsrtowcs3.sh: New file.
44272         * tests/test-mbsrtowcs4.sh: New file.
44273         * tests/test-mbsrtowcs.c: New file.
44274
44275         New module 'mbsrtowcs'.
44276         * lib/wchar.in.h (mbsrtowcs): New declaration.
44277         * lib/mbsrtowcs.c: New file.
44278         * m4/mbsrtowcs.m4: New file.
44279         * modules/mbsrtowcs: New file.
44280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44281         HAVE_MBSRTOWCS.
44282         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44283         HAVE_MBSRTOWCS.
44284         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44285
44286 2008-12-19  Bruno Haible  <bruno@clisp.org>
44287
44288         New module 'mbrlen'.
44289         * lib/wchar.in.h (mbrlen): New declaration.
44290         * lib/mbrlen.c: New file.
44291         * m4/mbrlen.m4: New file.
44292         * modules/mbrlen: New file.
44293         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44294         HAVE_MBRLEN.
44295         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44296         HAVE_MBRLEN.
44297         * doc/posix-functions/mbrlen.texi: Document the new module.
44298
44299 2008-12-19  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44302         * modules/mbrtowc (Depends-on): Add verify.
44303         Suggested by Paul Eggert.
44304
44305 2008-12-18  Bruno Haible  <bruno@clisp.org>
44306
44307         * modules/mbsinit-tests: New file.
44308         * tests/test-mbsinit.sh: New file.
44309         * tests/test-mbsinit.c: New file.
44310
44311 2008-12-18  Bruno Haible  <bruno@clisp.org>
44312
44313         * modules/mbrtowc-tests: New file.
44314         * tests/test-mbrtowc1.sh: New file.
44315         * tests/test-mbrtowc2.sh: New file.
44316         * tests/test-mbrtowc3.sh: New file.
44317         * tests/test-mbrtowc4.sh: New file.
44318         * tests/test-mbrtowc.c: New file.
44319
44320         New module 'mbrtowc'.
44321         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44322         mbsinit and mbrtowc.
44323         (mbrtowc): New declaration.
44324         * lib/mbrtowc.c: New file.
44325         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44326         * modules/mbrtowc: New file.
44327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44328         HAVE_MBRTOWC.
44329         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44330         HAVE_MBRTOWC.
44331         * doc/posix-functions/mbrtowc.texi: Document the new module.
44332
44333 2008-12-18  Bruno Haible  <bruno@clisp.org>
44334
44335         New module 'wctob'.
44336         * lib/wchar.in.h (wctob): New declaration.
44337         * lib/wctob.c: New file.
44338         * m4/wctob.m4: New file.
44339         * modules/wctob: New file.
44340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44341         HAVE_WCTOB.
44342         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44343         * doc/posix-functions/wctob.texi: Document the new module.
44344
44345 2008-12-18  Bruno Haible  <bruno@clisp.org>
44346
44347         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44348         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44349
44350 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44351
44352         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44353         G. Christensen" <tgc@jupiterrise.com>.
44354
44355         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44356         G. Christensen" <tgc@jupiterrise.com>.
44357
44358         * lib/flock.c: Need to include string.h.  Reported by "Tom
44359         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44360         <ebb9@byu.net>.
44361
44362 2008-12-18  Bruno Haible  <bruno@clisp.org>
44363
44364         * m4/locale-ja.m4: New file, from GNU gettext.
44365
44366 2008-12-17  Bruno Haible  <bruno@clisp.org>
44367
44368         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44369         Suggested by Eric Blake.
44370
44371 2008-12-17  Bruno Haible  <bruno@clisp.org>
44372
44373         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44374
44375 2008-12-17  Bruno Haible  <bruno@clisp.org>
44376
44377         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44378         * modules/mbsinit (Depends-on): Add verify.
44379         Suggested by Paul Eggert.
44380
44381 2008-12-17  Bruno Haible  <bruno@clisp.org>
44382
44383         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44384         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44385         gl_FUNC_MBRTOWC.
44386         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44387         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44388         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44389         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44390         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44391         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44392         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44393         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44394         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44395         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44396         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44397         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44398         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44399         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44400         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44401         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44402         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44403         * modules/trim (configure.ac): Likewise.
44404
44405 2008-12-17  Bruno Haible  <bruno@clisp.org>
44406
44407         * modules/btowc-tests: New file.
44408         * tests/test-btowc1.sh: New file.
44409         * tests/test-btowc2.sh: New file.
44410         * tests/test-btowc.c: New file.
44411
44412         New module 'btowc'.
44413         * lib/wchar.in.h (btowc): New declaration.
44414         * lib/btowc.c: New file.
44415         * m4/btowc.m4: New file.
44416         * modules/btowc: New file.
44417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44418         HAVE_BTOWC.
44419         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44420         * doc/posix-functions/btowc.texi: Document the new module.
44421
44422 2008-12-17  Bruno Haible  <bruno@clisp.org>
44423
44424         New module 'mbsinit'.
44425         * lib/wchar.in.h (mbsinit): New declaration.
44426         * lib/mbsinit.c: New file.
44427         * m4/mbsinit.m4: New file.
44428         * modules/mbsinit: New file.
44429         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44430         HAVE_MBSINIT.
44431         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44432         HAVE_MBSINIT.
44433         * doc/posix-functions/mbsinit.texi: Document the new module.
44434
44435 2008-12-16  Bruno Haible  <bruno@clisp.org>
44436
44437         * lib/unistd.in.h: Add comment.
44438         * tests/test-environ.c: Don't include <stdlib.h>.
44439
44440 2008-12-16  Bruno Haible  <bruno@clisp.org>
44441
44442         * lib/parse-duration.h (parse_duration): Document return value
44443         convention.
44444         * lib/parse-duration.c: Include specification header first. Add
44445         comments.
44446         (_): Remove macro.
44447         (parse_year_month_day, parse_hour_minute_second): Move side effects
44448         outside of strchr call.
44449         (parse_non_iso8601): Move side effects outside of isspace call.
44450         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44451         call.
44452
44453 2008-12-16  Bruno Haible  <bruno@clisp.org>
44454
44455         * tests/test-parse-duration.sh: Produce no output when the test
44456         succeeds.
44457
44458 2008-12-16  Bruno Haible  <bruno@clisp.org>
44459
44460         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44461         expressions.
44462
44463 2008-12-15  Bruno Haible  <bruno@clisp.org>
44464
44465         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44466         * doc/glibc-functions/flistxattr.texi: Likewise.
44467         * doc/glibc-functions/fopencookie.texi: Likewise.
44468         * doc/glibc-functions/fremovexattr.texi: Likewise.
44469         * doc/glibc-functions/fsetxattr.texi: Likewise.
44470         * doc/glibc-functions/getxattr.texi: Likewise.
44471         * doc/glibc-functions/lgetxattr.texi: Likewise.
44472         * doc/glibc-functions/listxattr.texi: Likewise.
44473         * doc/glibc-functions/llistxattr.texi: Likewise.
44474         * doc/glibc-functions/lremovexattr.texi: Likewise.
44475         * doc/glibc-functions/lsetxattr.texi: Likewise.
44476         * doc/glibc-functions/removexattr.texi: Likewise.
44477         * doc/glibc-functions/setxattr.texi: Likewise.
44478         * doc/posix-functions/open_memstream.texi: Likewise.
44479
44480 2008-12-15  Eric Blake  <ebb9@byu.net>
44481
44482         Update doc for cygwin 1.7.
44483         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44484         functions.
44485         * doc/posix-functions/fchmodat.texi: Likewise.
44486         * doc/posix-functions/fchownat.texi: Likewise.
44487         * doc/posix-functions/fdopendir.texi: Likewise.
44488         * doc/posix-functions/fmemopen.texi: Likewise.
44489         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44490         * doc/posix-functions/fstatat.texi: Likewise.
44491         * doc/posix-functions/futimens.texi: Likewise.
44492         * doc/posix-functions/gai_strerror.texi: Likewise.
44493         * doc/posix-functions/getaddrinfo.texi: Likewise.
44494         * doc/posix-functions/getnameinfo.texi: Likewise.
44495         * doc/posix-functions/if_freenameindex.texi: Likewise.
44496         * doc/posix-functions/if_indextoname.texi: Likewise.
44497         * doc/posix-functions/if_nameindex.texi: Likewise.
44498         * doc/posix-functions/if_nametoindex.texi: Likewise.
44499         * doc/posix-functions/insque.texi: Likewise.
44500         * doc/posix-functions/linkat.texi: Likewise.
44501         * doc/posix-functions/llrint.texi: Likewise.
44502         * doc/posix-functions/llrintf.texi: Likewise.
44503         * doc/posix-functions/llrintl.texi: Likewise.
44504         * doc/posix-functions/lockf.texi: Likewise.
44505         * doc/posix-functions/lrintl.texi: Likewise.
44506         * doc/posix-functions/mkdirat.texi: Likewise.
44507         * doc/posix-functions/mkfifoat.texi: Likewise.
44508         * doc/posix-functions/mknodat.texi: Likewise.
44509         * doc/posix-functions/mq_close.texi: Likewise.
44510         * doc/posix-functions/mq_getattr.texi: Likewise.
44511         * doc/posix-functions/mq_notify.texi: Likewise.
44512         * doc/posix-functions/mq_open.texi: Likewise.
44513         * doc/posix-functions/mq_receive.texi: Likewise.
44514         * doc/posix-functions/mq_send.texi: Likewise.
44515         * doc/posix-functions/mq_setattr.texi: Likewise.
44516         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44517         * doc/posix-functions/mq_timedsend.texi: Likewise.
44518         * doc/posix-functions/mq_unlink.texi: Likewise.
44519         * doc/posix-functions/open_memstream.texi: Likewise.
44520         * doc/posix-functions/openat.texi: Likewise.
44521         * doc/posix-functions/posix_fadvise.texi: Likewise.
44522         * doc/posix-functions/posix_fallocate.texi: Likewise.
44523         * doc/posix-functions/posix_madvise.texi: Likewise.
44524         * doc/posix-functions/posix_memalign.texi: Likewise.
44525         * doc/posix-functions/posix_openpt.texi: Likewise.
44526         * doc/posix-functions/readlinkat.texi: Likewise.
44527         * doc/posix-functions/remque.texi: Likewise.
44528         * doc/posix-functions/renameat.texi: Likewise.
44529         * doc/posix-functions/rintl.texi: Likewise.
44530         * doc/posix-functions/sem_unlink.texi: Likewise.
44531         * doc/posix-functions/shm_open.texi: Likewise.
44532         * doc/posix-functions/shm_unlink.texi: Likewise.
44533         * doc/posix-functions/signgam.texi: Likewise.
44534         * doc/posix-functions/sigset.texi: Likewise.
44535         * doc/posix-functions/stpcpy.texi: Likewise.
44536         * doc/posix-functions/stpncpy.texi: Likewise.
44537         * doc/posix-functions/strerror.texi: Likewise.
44538         * doc/posix-functions/strtod.texi: Likewise.
44539         * doc/posix-functions/symlinkat.texi: Likewise.
44540         * doc/posix-functions/unlinkat.texi: Likewise.
44541         * doc/posix-functions/utimensat.texi: Likewise.
44542         * doc/glibc-functions/bindresvport.texi: Likewise.
44543         * doc/glibc-functions/dn_expand.texi: Likewise.
44544         * doc/glibc-functions/exp10.texi: Likewise.
44545         * doc/glibc-functions/exp10f.texi: Likewise.
44546         * doc/glibc-functions/fgetxattr.texi: Likewise.
44547         * doc/glibc-functions/flistxattr.texi: Likewise.
44548         * doc/glibc-functions/fopencookie.texi: Likewise.
44549         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44550         * doc/glibc-functions/fremovexattr.texi: Likewise.
44551         * doc/glibc-functions/fsetxattr.texi: Likewise.
44552         * doc/glibc-functions/getifaddrs.texi: Likewise.
44553         * doc/glibc-functions/getxattr.texi: Likewise.
44554         * doc/glibc-functions/lgetxattr.texi: Likewise.
44555         * doc/glibc-functions/listxattr.texi: Likewise.
44556         * doc/glibc-functions/llistxattr.texi: Likewise.
44557         * doc/glibc-functions/lremovexattr.texi: Likewise.
44558         * doc/glibc-functions/lsetxattr.texi: Likewise.
44559         * doc/glibc-functions/pow10.texi: Likewise.
44560         * doc/glibc-functions/pow10f.texi: Likewise.
44561         * doc/glibc-functions/rcmd_af.texi: Likewise.
44562         * doc/glibc-functions/removexattr.texi: Likewise.
44563         * doc/glibc-functions/res_init.texi: Likewise.
44564         * doc/glibc-functions/res_mkquery.texi: Likewise.
44565         * doc/glibc-functions/res_query.texi: Likewise.
44566         * doc/glibc-functions/res_querydomain.texi: Likewise.
44567         * doc/glibc-functions/res_send.texi: Likewise.
44568         * doc/glibc-functions/rresvport_af.texi: Likewise.
44569         * doc/glibc-functions/setxattr.texi: Likewise.
44570         * doc/glibc-functions/strcasestr.texi: Likewise.
44571
44572 2008-12-15  Bruno Haible  <bruno@clisp.org>
44573
44574         Fix compilation error on OSF/1 4.0.
44575         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44576         <sys/time.h>, simply delegate to the system header.
44577         Reported by Daniel Richard G. <oss@teragram.com>.
44578
44579 2008-12-15  Bruno Haible  <bruno@clisp.org>
44580
44581         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44582         * doc/posix-functions/fchmodat.texi: Likewise.
44583         * doc/posix-functions/fchownat.texi: Likewise.
44584         * doc/posix-functions/fdopendir.texi: Likewise.
44585         * doc/posix-functions/fstatat.texi: Likewise.
44586         * doc/posix-functions/mkdirat.texi: Likewise.
44587         * doc/posix-functions/unlinkat.texi: Likewise.
44588
44589 2008-12-14  Bruno Haible  <bruno@clisp.org>
44590
44591         Update doc for POSIX:2008.
44592         * doc/posix-functions/faccessat.texi: New file.
44593         * doc/posix-functions/fchmodat.texi: New file.
44594         * doc/posix-functions/fchownat.texi: New file.
44595         * doc/posix-functions/fdopendir.texi: New file.
44596         * doc/posix-functions/fstatat.texi: New file.
44597         * doc/posix-functions/futimens.texi: New file.
44598         * doc/posix-functions/linkat.texi: New file.
44599         * doc/posix-functions/mkdirat.texi: New file.
44600         * doc/posix-functions/mkfifoat.texi: New file.
44601         * doc/posix-functions/mknodat.texi: New file.
44602         * doc/posix-functions/open_wmemstream.texi: New file.
44603         * doc/posix-functions/openat.texi: New file.
44604         * doc/posix-functions/psiginfo.texi: New file.
44605         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44606         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44607         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44608         * doc/posix-functions/readlinkat.texi: New file.
44609         * doc/posix-functions/renameat.texi: New file.
44610         * doc/posix-functions/strerror_l.texi: New file.
44611         * doc/posix-functions/symlinkat.texi: New file.
44612         * doc/posix-functions/unlinkat.texi: New file.
44613         * doc/posix-functions/utimensat.texi: New file.
44614         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44615
44616 2008-12-14  Bruno Haible  <bruno@clisp.org>
44617
44618         Update doc for POSIX:2008.
44619         * doc/posix-functions/alphasort.texi: Renamed from
44620         doc/glibc-functions/alphasort.texi.
44621         * doc/posix-functions/dirfd.texi: Renamed from
44622         doc/glibc-functions/dirfd.texi.
44623         * doc/posix-functions/dprintf.texi: Renamed from
44624         doc/glibc-functions/dprintf.texi.
44625         * doc/posix-functions/duplocale.texi: Renamed from
44626         doc/glibc-functions/duplocale.texi.
44627         * doc/posix-functions/fexecve.texi: Renamed from
44628         doc/glibc-functions/fexecve.texi.
44629         * doc/posix-functions/fmemopen.texi: Renamed from
44630         doc/glibc-functions/fmemopen.texi.
44631         * doc/posix-functions/freelocale.texi: Renamed from
44632         doc/glibc-functions/freelocale.texi.
44633         * doc/posix-functions/getdate_err.texi: Renamed from
44634         doc/glibc-functions/getdate_err.texi.
44635         * doc/posix-functions/isalnum_l.texi: Renamed from
44636         doc/glibc-functions/isalnum_l.texi.
44637         * doc/posix-functions/isalpha_l.texi: Renamed from
44638         doc/glibc-functions/isalpha_l.texi.
44639         * doc/posix-functions/isblank_l.texi: Renamed from
44640         doc/glibc-functions/isblank_l.texi.
44641         * doc/posix-functions/iscntrl_l.texi: Renamed from
44642         doc/glibc-functions/iscntrl_l.texi.
44643         * doc/posix-functions/isdigit_l.texi: Renamed from
44644         doc/glibc-functions/isdigit_l.texi.
44645         * doc/posix-functions/isgraph_l.texi: Renamed from
44646         doc/glibc-functions/isgraph_l.texi.
44647         * doc/posix-functions/islower_l.texi: Renamed from
44648         doc/glibc-functions/islower_l.texi.
44649         * doc/posix-functions/isprint_l.texi: Renamed from
44650         doc/glibc-functions/isprint_l.texi.
44651         * doc/posix-functions/ispunct_l.texi: Renamed from
44652         doc/glibc-functions/ispunct_l.texi.
44653         * doc/posix-functions/isspace_l.texi: Renamed from
44654         doc/glibc-functions/isspace_l.texi.
44655         * doc/posix-functions/isupper_l.texi: Renamed from
44656         doc/glibc-functions/isupper_l.texi.
44657         * doc/posix-functions/iswalnum_l.texi: Renamed from
44658         doc/glibc-functions/iswalnum_l.texi.
44659         * doc/posix-functions/iswalpha_l.texi: Renamed from
44660         doc/glibc-functions/iswalpha_l.texi.
44661         * doc/posix-functions/iswblank_l.texi: Renamed from
44662         doc/glibc-functions/iswblank_l.texi.
44663         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44664         doc/glibc-functions/iswcntrl_l.texi.
44665         * doc/posix-functions/iswctype_l.texi: Renamed from
44666         doc/glibc-functions/iswctype_l.texi.
44667         * doc/posix-functions/iswdigit_l.texi: Renamed from
44668         doc/glibc-functions/iswdigit_l.texi.
44669         * doc/posix-functions/iswgraph_l.texi: Renamed from
44670         doc/glibc-functions/iswgraph_l.texi.
44671         * doc/posix-functions/iswlower_l.texi: Renamed from
44672         doc/glibc-functions/iswlower_l.texi.
44673         * doc/posix-functions/iswprint_l.texi: Renamed from
44674         doc/glibc-functions/iswprint_l.texi.
44675         * doc/posix-functions/iswpunct_l.texi: Renamed from
44676         doc/glibc-functions/iswpunct_l.texi.
44677         * doc/posix-functions/iswspace_l.texi: Renamed from
44678         doc/glibc-functions/iswspace_l.texi.
44679         * doc/posix-functions/iswupper_l.texi: Renamed from
44680         doc/glibc-functions/iswupper_l.texi.
44681         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44682         doc/glibc-functions/iswxdigit_l.texi.
44683         * doc/posix-functions/isxdigit_l.texi: Renamed from
44684         doc/glibc-functions/isxdigit_l.texi.
44685         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44686         doc/glibc-functions/mbsnrtowcs.texi.
44687         * doc/posix-functions/mkdtemp.texi: Renamed from
44688         doc/glibc-functions/mkdtemp.texi.
44689         * doc/posix-functions/newlocale.texi: Renamed from
44690         doc/glibc-functions/newlocale.texi.
44691         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44692         doc/glibc-functions/nl_langinfo_l.texi.
44693         * doc/posix-functions/open_memstream.texi: Renamed from
44694         doc/glibc-functions/open_memstream.texi.
44695         * doc/posix-functions/opterr.texi: Renamed from
44696         doc/glibc-functions/opterr.texi.
44697         * doc/posix-functions/optind.texi: Renamed from
44698         doc/glibc-functions/optind.texi.
44699         * doc/posix-functions/optopt.texi: Renamed from
44700         doc/glibc-functions/optopt.texi.
44701         * doc/posix-functions/psignal.texi: Renamed from
44702         doc/glibc-functions/psignal.texi.
44703         * doc/posix-functions/scandir.texi: Renamed from
44704         doc/glibc-functions/scandir.texi.
44705         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44706         doc/glibc-functions/sched_get_priority_min.texi.
44707         * doc/posix-functions/signgam.texi: Renamed from
44708         doc/glibc-functions/signgam.texi.
44709         * doc/posix-functions/stpcpy.texi: Renamed from
44710         doc/glibc-functions/stpcpy.texi.
44711         * doc/posix-functions/stpncpy.texi: Renamed from
44712         doc/glibc-functions/stpncpy.texi.
44713         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44714         doc/glibc-functions/strcasecmp_l.texi.
44715         * doc/posix-functions/strcoll_l.texi: Renamed from
44716         doc/glibc-functions/strcoll_l.texi.
44717         * doc/posix-functions/strfmon_l.texi: Renamed from
44718         doc/glibc-functions/strfmon_l.texi.
44719         * doc/posix-functions/strftime_l.texi: Renamed from
44720         doc/glibc-functions/strftime_l.texi.
44721         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44722         doc/glibc-functions/strncasecmp_l.texi.
44723         * doc/posix-functions/strndup.texi: Renamed from
44724         doc/glibc-functions/strndup.texi.
44725         * doc/posix-functions/strnlen.texi: Renamed from
44726         doc/glibc-functions/strnlen.texi.
44727         * doc/posix-functions/strsignal.texi: Renamed from
44728         doc/glibc-functions/strsignal.texi.
44729         * doc/posix-functions/strxfrm_l.texi: Renamed from
44730         doc/glibc-functions/strxfrm_l.texi.
44731         * doc/posix-functions/timer_gettime.texi: Renamed from
44732         doc/glibc-functions/timer_gettime.texi.
44733         * doc/posix-functions/tolower_l.texi: Renamed from
44734         doc/glibc-functions/tolower_l.texi.
44735         * doc/posix-functions/toupper_l.texi: Renamed from
44736         doc/glibc-functions/toupper_l.texi.
44737         * doc/posix-functions/towctrans_l.texi: Renamed from
44738         doc/glibc-functions/towctrans_l.texi.
44739         * doc/posix-functions/towlower_l.texi: Renamed from
44740         doc/glibc-functions/towlower_l.texi.
44741         * doc/posix-functions/towupper_l.texi: Renamed from
44742         doc/glibc-functions/towupper_l.texi.
44743         * doc/posix-functions/uselocale.texi: Renamed from
44744         doc/glibc-functions/uselocale.texi.
44745         * doc/posix-functions/vdprintf.texi: Renamed from
44746         doc/glibc-functions/vdprintf.texi.
44747         * doc/posix-functions/wcpcpy.texi:
44748         Renamed from doc/glibc-functions/wcpcpy.texi.
44749         * doc/posix-functions/wcpncpy.texi: Renamed from
44750         doc/glibc-functions/wcpncpy.texi.
44751         * doc/posix-functions/wcscasecmp.texi: Renamed from
44752         doc/glibc-functions/wcscasecmp.texi.
44753         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44754         doc/glibc-functions/wcscasecmp_l.texi.
44755         * doc/posix-functions/wcscoll_l.texi: Renamed from
44756         doc/glibc-functions/wcscoll_l.texi.
44757         * doc/posix-functions/wcsdup.texi: Renamed from
44758         doc/glibc-functions/wcsdup.texi.
44759         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44760         doc/glibc-functions/wcsncasecmp.texi.
44761         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44762         doc/glibc-functions/wcsncasecmp_l.texi.
44763         * doc/posix-functions/wcsnlen.texi: Renamed from
44764         doc/glibc-functions/wcsnlen.texi.
44765         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44766         doc/glibc-functions/wcsnrtombs.texi.
44767         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44768         doc/glibc-functions/wcsxfrm_l.texi.
44769         * doc/posix-functions/wctrans_l.texi: Renamed from
44770         doc/glibc-functions/wctrans_l.texi.
44771         * doc/posix-functions/wctype_l.texi: Renamed from
44772         doc/glibc-functions/wctype_l.texi.
44773         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44774         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44775         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44776         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44777         these subsections.
44778         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44779         Remove sections.
44780
44781 2008-12-14  Bruno Haible  <bruno@clisp.org>
44782
44783         Update doc for POSIX:2008.
44784         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44785
44786 2008-12-14  Bruno Haible  <bruno@clisp.org>
44787
44788         Update doc for POSIX:2008.
44789         * doc/pastposix-functions/bcmp.texi: Renamed from
44790         doc/posix-functions/bcmp.texi.
44791         * doc/pastposix-functions/bcopy.texi: Renamed from
44792         doc/posix-functions/bcopy.texi.
44793         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44794         doc/posix-functions/bsd_signal.texi.
44795         * doc/pastposix-functions/bzero.texi: Renamed from
44796         doc/posix-functions/bzero.texi.
44797         * doc/pastposix-functions/ecvt.texi: Renamed from
44798         doc/posix-functions/ecvt.texi.
44799         * doc/pastposix-functions/fcvt.texi: Renamed from
44800         doc/posix-functions/fcvt.texi.
44801         * doc/pastposix-functions/ftime.texi: Renamed from
44802         doc/posix-functions/ftime.texi.
44803         * doc/pastposix-functions/gcvt.texi: Renamed from
44804         doc/posix-functions/gcvt.texi.
44805         * doc/pastposix-functions/getcontext.texi: Renamed from
44806         doc/posix-functions/getcontext.texi.
44807         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44808         doc/posix-functions/gethostbyaddr.texi.
44809         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44810         doc/posix-functions/gethostbyname.texi.
44811         * doc/pastposix-functions/getwd.texi: Renamed from
44812         doc/posix-functions/getwd.texi.
44813         * doc/pastposix-functions/h_errno.texi: Renamed from
44814         doc/posix-functions/h_errno.texi.
44815         * doc/pastposix-functions/index.texi: Renamed from
44816         doc/posix-functions/index.texi.
44817         * doc/pastposix-functions/makecontext.texi: Renamed from
44818         doc/posix-functions/makecontext.texi.
44819         * doc/pastposix-functions/mktemp.texi: Renamed from
44820         doc/posix-functions/mktemp.texi.
44821         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44822         doc/posix-functions/pthread_attr_getstackaddr.texi.
44823         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44824         doc/posix-functions/pthread_attr_setstackaddr.texi.
44825         * doc/pastposix-functions/rindex.texi: Renamed from
44826         doc/posix-functions/rindex.texi.
44827         * doc/pastposix-functions/scalb.texi: Renamed from
44828         doc/posix-functions/scalb.texi.
44829         * doc/pastposix-functions/setcontext.texi: Renamed from
44830         doc/posix-functions/setcontext.texi.
44831         * doc/pastposix-functions/swapcontext.texi: Renamed from
44832         doc/posix-functions/swapcontext.texi.
44833         * doc/pastposix-functions/ualarm.texi: Renamed from
44834         doc/posix-functions/ualarm.texi.
44835         * doc/pastposix-functions/usleep.texi: Renamed from
44836         doc/posix-functions/usleep.texi.
44837         * doc/pastposix-functions/vfork.texi: Renamed from
44838         doc/posix-functions/vfork.texi.
44839         * doc/pastposix-functions/wcswcs.texi: Renamed from
44840         doc/posix-functions/wcswcs.texi.
44841         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44842         (Function Substitutes): Update.
44843
44844 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44845
44846         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44847         m4/strerror.m4.
44848
44849 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44850             Bruno Haible  <bruno@clisp.org>
44851
44852         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44853
44854 2008-12-13  Bruno Haible  <bruno@clisp.org>
44855
44856         * modules/strtoull (Depends-on): Remove unistd.
44857
44858 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44859
44860         * modules/strtoull (Depends-on): Add stdlib.
44861
44862 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44863
44864         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44865
44866 2008-12-10  Jim Meyering  <meyering@redhat.com>
44867
44868         gl_ASSERT: don't say assertions are disabled when they're not
44869         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44870         "checking whether to enable assertions... no", when they are in
44871         fact enabled.  This is solely a bug in the output of configure.
44872         In spite of saying "no", NDEBUG was not defined in that case.
44873         Also, as noted by Eric Blake, leave assertions enabled upon
44874         --enable-assert=INVALID.
44875
44876 2008-12-10  Bruno Haible  <bruno@clisp.org>
44877
44878         Change MODULES.html to refer to POSIX:2008 where possible.
44879         * MODULES.html.sh (POSIX2008_URL): New variable.
44880         (posix_headers): Remove sys/timeb, ucontext.
44881         (posix2001_headers): New variable.
44882         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44883         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44884         index, makecontext, mktemp, pthread_attr_getstackaddr,
44885         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44886         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44887         (posix2001_functions): New variable.
44888         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44889         otherwise.
44890
44891 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44892
44893         add missing include to parse-duration.c
44894         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44895         * modules/parse-duration (Depends-on): Add xalloc.
44896
44897         fix sed script reading maint.mk
44898         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44899         (syntax-check-rules): Use it.
44900
44901 2008-12-09  Bruno Haible  <bruno@clisp.org>
44902
44903         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44904         MacOS X 10.4/PowerPC.
44905         Reported by Simon Josefsson.
44906
44907 2008-12-08  Jim Meyering  <meyering@redhat.com>
44908
44909         work around mingw's lack of some S_IF definitions
44910         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44911         Reported by Simon Josefsson.
44912
44913 2008-12-08  Bruno Haible  <bruno@clisp.org>
44914
44915         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44916         applied to variables. Needed on MacOS X 10.4/PowerPC.
44917         Reported by Simon Josefsson.
44918
44919 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44920         and Eric Blake  <ebb9@byu.net>
44921
44922         assert: honor --enable-assert
44923         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44924         order to honor --enable-assert, rather than treating it as a
44925         synonym for --disable-assert.
44926
44927 2008-12-08  Jim Meyering  <meyering@redhat.com>
44928
44929         * lib/posixtm.c: Remove now-useless declaration of mktime.
44930
44931         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44932
44933 2008-12-07  Bruno Haible  <bruno@clisp.org>
44934
44935         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44936         test_once): Mark functions as static.
44937         * tests/test-tls.c (test_tls): Likewise.
44938
44939 2008-12-07  Bruno Haible  <bruno@clisp.org>
44940
44941         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44942         iconv_register_autodetect.
44943
44944 2008-12-07  Jim Meyering  <meyering@redhat.com>
44945
44946         posixtm.c: avoid a warning
44947         * lib/posixtm.c (posixtime): Don't initialize tm0.
44948         It's no longer needed to placate gcc4's -Wuninitialized,
44949         and the attempt to placate would elicit a new warning.
44950
44951         unicodeio.c: mark unused parameters
44952         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44953         (fallback_failure_callback): Likewise.
44954
44955 2008-12-07  Bruno Haible  <bruno@clisp.org>
44956
44957         * gnulib-tool (func_create_testdir): When building the tests
44958         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44959         Reported by Simon Josefsson.
44960
44961 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44962
44963         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44964
44965 2008-12-06  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44968         Suggested by Eric Blake.
44969
44970 2008-12-06  Bruno Haible  <bruno@clisp.org>
44971
44972         Fix a c-stack test failure on MacOS X.
44973         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44974         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44975         handler for SIGBUS as well.
44976         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44977         install a signal handler for SIGBUS as well.
44978         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44979
44980 2008-12-06  Bruno Haible  <bruno@clisp.org>
44981
44982         Advocacy documentation.
44983         * doc/gnulib-intro.texi (Benefits): New section.
44984         * doc/gnulib.texi: Update.
44985
44986 2008-12-06  Bruno Haible  <bruno@clisp.org>
44987
44988         Document the 'manywarnings' module.
44989         * doc/manywarnings.texi: New file.
44990         * doc/gnulib.texi: Include it.
44991
44992 2008-12-05  Eric Blake  <ebb9@byu.net>
44993
44994         tests: silence some gcc warnings
44995         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44996         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44997         type mismatches.
44998
44999 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45000             Bruno Haible  <bruno@clisp.org>
45001
45002         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45003
45004 2008-11-29  Jim Meyering  <meyering@redhat.com>
45005
45006         unicodeio.c: mark unused parameters
45007         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45008         (fallback_failure_callback): Likewise.
45009
45010         fts: fix a thinko
45011         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45012         (set_stat_type): Return S_IF*-valued "type" directly.
45013         Prompted by James Youngman's spotting a related bug.
45014         Confirmed by further testing through find.
45015
45016         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45017         * lib/fts.c (D_TYPE): Define.
45018         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45019         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45020         (s_ifmt_shift_bits): New function.
45021         (set_stat_type): New function.
45022         (fts_build): When not calling fts_stat, call set_stat_type
45023         to propagate dirent.d_type info to fts_read caller.
45024         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45025         fts_statp->st_mode type information may be valid.
45026
45027 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45028
45029         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45030         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45031         <sds@gnu.org>.
45032
45033 2008-11-20  Bruno Haible  <bruno@clisp.org>
45034
45035         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45036         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45037         INCLUDE_NEXT.
45038         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45039         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45040         * modules/math (Makefile.am): Substitute
45041         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45042         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45043
45044 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45045             Bruno Haible  <bruno@clisp.org>
45046
45047         * lib/stdint.in.h: Define all type macros so that their expansion is
45048         a single typedef'ed token. Fixes a compilation failure in Boost which
45049         does "using ::int8_t;".
45050
45051 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45052
45053         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45054         gl_MANYWARN_ALL_GCC.
45055         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45056         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45057         * modules/manywarnings: New file.
45058         * MODULES.html.sh: Mention manywarnings module.
45059
45060 2008-11-18  Bruno Haible  <bruno@clisp.org>
45061
45062         * doc/gnulib-tool.texi (Unit tests): New section.
45063
45064 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45065
45066         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45067         paths like 'lib/po/foo.po'.
45068
45069 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45070
45071         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45072         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45073
45074 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45075
45076         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45077         parameter works.
45078
45079 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45080
45081         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45082
45083 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45084
45085         * modules/parse-duration-tests: New file.
45086         * tests/test-parse-duration.sh: New file.
45087         * tests/test-parse-duration.c: New file.
45088
45089         New module 'parse-duration'.
45090         * lib/parse-duration.h: New file.
45091         * lib/parse-duration.c: New file.
45092         * modules/parse-duration: New file.
45093
45094 2008-11-17  Bruno Haible  <bruno@clisp.org>
45095
45096         * tests/test-select-out.sh: Comment out the first pipe test.
45097         Reported by Simon Josefsson.
45098
45099 2008-11-17  Bruno Haible  <bruno@clisp.org>
45100
45101         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45102         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45103         gl_HOSTENT.
45104
45105 2008-11-17  Bruno Haible  <bruno@clisp.org>
45106
45107         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45108         -lnetwork and -lnet. Needed for Haiku and BeOS.
45109
45110 2008-11-16  Bruno Haible  <bruno@clisp.org>
45111
45112         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45113
45114 2008-11-16  Bruno Haible  <bruno@clisp.org>
45115
45116         Avoid test failure on Haiku.
45117         * tests/test-fsync.c: Include <errno.h>.
45118         (main): Don't require that fsync (0) fails.
45119
45120 2008-11-15  Bruno Haible  <bruno@clisp.org>
45121
45122         New module 'hostent'.
45123         * modules/hostent: New file.
45124         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45125
45126 2008-11-15  Bruno Haible  <bruno@clisp.org>
45127
45128         New module 'servent'.
45129         * modules/servent: New file.
45130         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45131
45132 2008-11-15  Bruno Haible  <bruno@clisp.org>
45133
45134         Avoid generating same test program with two different rules.
45135         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45136         test-frexp to test-frexp-nolibm.
45137         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45138         test-frexpl to test-frexpl-nolibm.
45139
45140 2008-11-15  Bruno Haible  <bruno@clisp.org>
45141
45142         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45143         $(FREXPL_LIBM).
45144
45145 2008-11-15  Bruno Haible  <bruno@clisp.org>
45146
45147         * lib/netdb.in.h: Activate the definitions also when the system's
45148         <netdb.h> has 'struct addrinfo'.
45149         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45150         EAI_OVERFLOW or AI_NUMERICSERV.
45151         * doc/posix-headers/netdb.texi: Document the problem.
45152
45153 2008-11-15  Bruno Haible  <bruno@clisp.org>
45154
45155         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45156
45157         Make the 'sched' module work on platforms where <sched.h> exists but
45158         is incomplete (such as Haiku).
45159         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45160         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45161         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45162         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45163         HAVE_STRUCT_SCHED_PARAM.
45164         * modules/sched (Depends-on): Add include_next.
45165         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45166         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45167         * doc/posix-headers/sched.texi: Document the issue.
45168
45169 2008-11-13  Jim Meyering  <meyering@redhat.com>
45170
45171         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45172         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45173         test would fail due to the difference in the Report bugs to ...
45174         line.  The expected address is empty, "<>", while the actual
45175         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45176
45177 2008-11-12  Bruno Haible  <bruno@clisp.org>
45178
45179         lstat: don't compile lstat.c on systems lacking lstat
45180         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45181         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45182         Reported by Daniel P. Berrange via Jim Meyering.
45183
45184 2008-11-12  Jim Meyering  <meyering@redhat.com>
45185
45186         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45187
45188 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45189
45190         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45191         instead.
45192
45193 2008-11-12  Bruno Haible  <bruno@clisp.org>
45194
45195         * lib/unicodeio.c: Include unistr.h.
45196         (utf8_wctomb): Remove function.
45197         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45198
45199 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45200
45201         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45202         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45203         <bruno@clisp.org>.
45204         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45205
45206 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45207
45208         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45209         * doc/gnulib.texi: Add section for warnings.
45210
45211 2008-11-11  Bruno Haible  <bruno@clisp.org>
45212
45213         * lib/sockets.h: Add a comment.
45214
45215 2008-11-11  Karl Berry  <karl@gnu.org>
45216
45217         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45218
45219 2008-11-11  Eric Blake  <ebb9@byu.net>
45220
45221         fdl.texi: avoid git symlinks
45222         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45223
45224 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45225
45226         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45227
45228 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45229
45230         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45231         (gl_WARN_ADD): Substitute $2 if literal.
45232
45233 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45234
45235         * m4/warning.m4: Remove.
45236
45237 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45238
45239         * m4/warnings.m4: Almost complete rewrite. :-)
45240
45241 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45242
45243         * modules/warnings: New module.
45244         * m4/warnings.m4: New file.
45245         * MODULES.html.sh: Mention warnings module.
45246         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45247         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45248
45249 2008-11-10  Eric Blake  <ebb9@byu.net>
45250
45251         fdl.texi: make a symlink to the latest version
45252         * doc/standards.texi: Revert today's earlier change.
45253         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45254         * doc/fdl.texi: ...and replace this with a symlink to the newer
45255         fdl-1.3.texi.
45256
45257 2008-11-10  Bruno Haible  <bruno@clisp.org>
45258
45259         * tests/test-select-fd.c (main): Accept the result file name as fourth
45260         argument.
45261         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45262         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45263
45264 2008-11-10  Bruno Haible  <bruno@clisp.org>
45265
45266         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45267         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45268         as autoconf-substituted macros.
45269         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45270         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45271         gl_NETDB_H_DEFAULTS. Set these variables.
45272         * modules/netdb (Makefile.am): Substitute these variables.
45273
45274 2008-11-10  Eric Blake  <ebb9@byu.net>
45275
45276         standards.texi: include correct file for FDL 1.3
45277         * doc/standards.texi (GNU Free Documentation License): Change
45278         include file to pull in FDL 1.3, not 1.2.
45279
45280         fdl.texi: revert accidental change to license
45281         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45282
45283 2008-11-10  Bruno Haible  <bruno@clisp.org>
45284
45285         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45286         cross-compiling guesses also when the native compile gives no result.
45287
45288 2008-11-10  Bruno Haible  <bruno@clisp.org>
45289
45290         * lib/spawni.c (__spawni): Force variable into the stack.
45291
45292 2008-11-10  Bruno Haible  <bruno@clisp.org>
45293
45294         Add support for Haiku.
45295         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45296         glibc and BeOS, but also on Haiku.
45297         * lib/fpurge.c (fpurge): Likewise.
45298         * lib/freadable.c (freadable): Likewise.
45299         * lib/freadahead.c (freadahead): Likewise.
45300         * lib/freading.c (freading): Likewise.
45301         * lib/freadptr.c (freadptr): Likewise.
45302         * lib/freadseek.c (freadptrinc): Likewise.
45303         * lib/fseeko.c (rpl_fseeko): Likewise.
45304         * lib/fseterr.c (fseterr): Likewise.
45305         * lib/fwritable.c (fwritable): Likewise.
45306         * lib/fwriting.c (fwriting): Likewise.
45307         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45308
45309 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45310
45311         * lib/config.charset: Treat Haiku like BeOS.
45312
45313 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45314
45315         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45316         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45317
45318 2008-11-08  Bruno Haible  <bruno@clisp.org>
45319
45320         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45321         AC_CACHE_CHECK.
45322
45323 2008-11-08  Bruno Haible  <bruno@clisp.org>
45324
45325         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45326
45327 2008-11-08  Bruno Haible  <bruno@clisp.org>
45328
45329         * tests/test-select-fd.c: New file.
45330         * tests/test-select-in.sh: New file.
45331         * tests/test-select-out.sh: New file.
45332         * tests/test-select-stdin.c: New file.
45333         * modules/select-tests (Files): Add the new files.
45334         (Depends-on): Add gettimeofday.
45335         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45336         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45337         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45338
45339 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45340             Bruno Haible  <bruno@clisp.org>
45341
45342         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45343
45344 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45345
45346         * build-aux/pmccabe2html: Added support for C++ source files.
45347
45348 2008-11-05  Ben Pfaff  <blp@gnu.org>
45349
45350         Fix lib/close.c build on Windows.
45351         * modules/close (Files): Add lib/w32sock.h.
45352
45353 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45354
45355         Accept Bison's NEWS format.
45356         * build-aux/announce-gen (print_news_deltas): Tweak
45357         $re_prefix.
45358
45359 2008-11-04  Bruno Haible  <bruno@clisp.org>
45360
45361         * modules/random_r (Maintainer): Add glibc.
45362
45363 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45364
45365         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45366         by karl@freefriends.org (Karl Berry).
45367         * doc/alloca.texi: Likewise.
45368         * doc/c-ctype.texi: Likewise.
45369         * doc/c-strcase.texi: Likewise.
45370         * doc/c-strcaseeq.texi: Likewise.
45371         * doc/c-strcasestr.texi: Likewise.
45372         * doc/c-strstr.texi: Likewise.
45373         * doc/c-strtod.texi: Likewise.
45374         * doc/c-strtold.texi: Likewise.
45375         * doc/ctime.texi: Likewise.
45376         * doc/error.texi: Likewise.
45377         * doc/fdl.texi: Likewise.
45378         * doc/gcd.texi: Likewise.
45379         * doc/getdate.texi: Likewise.
45380         * doc/gnulib-intro.texi: Likewise.
45381         * doc/gnulib-tool.texi: Likewise.
45382         * doc/gnulib.texi: Likewise.
45383         * doc/inet_ntoa.texi: Likewise.
45384         * doc/maintain.texi: Likewise.
45385         * doc/make-stds.texi: Likewise.
45386         * doc/quote.texi: Likewise.
45387         * doc/regexprops-generic.texi: Likewise.
45388         * doc/standards.texi: Likewise.
45389         * doc/verify.texi: Likewise.
45390         * doc/visibility.texi: Likewise.
45391         * doc/gnulib.texi (GNU Free Documentation License): Include
45392         fdl-1.3.texi instead of fdl.texi.
45393
45394 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45395
45396         * doc/fdl-1.3.texi: New file, from
45397         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45398         * modules/fdl-1.3: Add.
45399         * MODULES.html.sh: Add fdl-1.3.
45400
45401 2008-11-03  Bruno Haible  <bruno@clisp.org>
45402
45403         Make determination of absolute name of header file work with AIX xlc.
45404         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45405         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45406         preprocessing.
45407         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45408         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45409
45410 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45411
45412         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45413         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45414         <ludo@gnu.org>.
45415
45416 2008-11-02  Bruno Haible  <bruno@clisp.org>
45417
45418         Mark 'strpbrk' obsolete.
45419         * modules/strpbrk (Status, Notice): New sections.
45420         * modules/strtok_r (Depends-on): Add strpbrk.
45421
45422 2008-11-02  Bruno Haible  <bruno@clisp.org>
45423
45424         Mark 'strdup' obsolete.
45425         * modules/strdup (Status, Notice): New sections.
45426         * modules/findprog (Depends-on): Add strdup.
45427         * modules/getaddrinfo (Depends-on): Likewise.
45428         * modules/localename (Depends-on): Likewise.
45429         * modules/relocatable-lib (Depends-on): Likewise.
45430         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45431         * modules/relocatable-prog (Depends-on): Likewise.
45432         * modules/trim (Depends-on): Likewise.
45433         * modules/unictype/gen-ctype (Depends-on): Likewise.
45434         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45435
45436 2008-11-02  Bruno Haible  <bruno@clisp.org>
45437
45438         Mark 'strcspn' obsolete.
45439         * modules/strcspn (Status, Notice): New sections.
45440
45441 2008-11-02  Bruno Haible  <bruno@clisp.org>
45442
45443         Mark 'rmdir' obsolete.
45444         * modules/rmdir (Status, Notice): New sections.
45445         * modules/clean-temp (Depends-on): Add rmdir.
45446         * modules/openat (Depends-on): Likewise.
45447
45448 2008-11-02  Bruno Haible  <bruno@clisp.org>
45449
45450         Mark 'raise' obsolete.
45451         * modules/raise (Status, Notice): New sections.
45452         (Include): Specify <signal.h>.
45453         * modules/stdio (Depends-on): Add raise.
45454         * modules/write (Depends-on): Likewise.
45455
45456 2008-11-02  Bruno Haible  <bruno@clisp.org>
45457
45458         Mark 'memset' obsolete.
45459         * modules/memset (Status, Notice): New sections.
45460
45461 2008-11-02  Bruno Haible  <bruno@clisp.org>
45462
45463         Mark 'memmove' obsolete.
45464         * modules/memmove (Status, Notice): New sections.
45465         * modules/argp (Depends-on): Add memmove.
45466         * modules/argz (Depends-on): Likewise.
45467         * modules/canonicalize (Depends-on): Likewise.
45468         * modules/canonicalize-lgpl (Depends-on): Likewise.
45469         * modules/fts (Depends-on): Likewise.
45470         * modules/getcwd (Depends-on): Likewise.
45471         * modules/human (Depends-on): Likewise.
45472         * modules/regex (Depends-on): Likewise.
45473         * modules/striconveh (Depends-on): Likewise.
45474         * modules/trim (Depends-on): Likewise.
45475         * modules/unistr/u8-move (Depends-on): Likewise.
45476         * modules/unistr/u16-move (Depends-on): Likewise.
45477         * modules/unistr/u32-move (Depends-on): Likewise.
45478
45479 2008-11-02  Bruno Haible  <bruno@clisp.org>
45480
45481         Mark 'memcpy' obsolete.
45482         * modules/memcpy (Status, Notice): New sections.
45483
45484 2008-11-02  Bruno Haible  <bruno@clisp.org>
45485
45486         Mark 'memcmp' obsolete.
45487         * modules/memcmp (Status, Notice): New sections.
45488         * modules/argmatch (Depends-on): Add memchr.
45489         * modules/backupfile (Depends-on): Likewise.
45490         * modules/c-strcasestr (Depends-on): Likewise.
45491         * modules/crypto/des (Depends-on): Likewise.
45492         * modules/csharpcomp (Depends-on): Likewise.
45493         * modules/fnmatch (Depends-on): Likewise.
45494         * modules/git-merge-changelog (Depends-on): Likewise.
45495         * modules/isnand (Depends-on): Likewise.
45496         * modules/isnand-nolibm (Depends-on): Likewise.
45497         * modules/isnanf (Depends-on): Likewise.
45498         * modules/isnanf-nolibm (Depends-on): Likewise.
45499         * modules/isnanl (Depends-on): Likewise.
45500         * modules/isnanl-nolibm (Depends-on): Likewise.
45501         * modules/mbchar (Depends-on): Likewise.
45502         * modules/memcoll (Depends-on): Likewise.
45503         * modules/quotearg (Depends-on): Likewise.
45504         * modules/regex (Depends-on): Likewise.
45505         * modules/relocatable-prog (Depends-on): Likewise.
45506         * modules/same (Depends-on): Likewise.
45507         * modules/signbit (Depends-on): Likewise.
45508         * modules/strcasestr-simple (Depends-on): Likewise.
45509         * modules/unictype/gen-ctype (Depends-on): Likewise.
45510         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45511         * modules/uniname/uniname (Depends-on): Likewise.
45512         * modules/unistr/u8-cmp (Depends-on): Likewise.
45513
45514 2008-11-02  Bruno Haible  <bruno@clisp.org>
45515
45516         Mark 'memchr' obsolete.
45517         * modules/memchr (Status, Notice): New sections.
45518         * modules/argp (Depends-on): Add memchr.
45519         * modules/base64 (Depends-on): Likewise.
45520         * modules/c-strcasestr (Depends-on): Likewise.
45521         * modules/chdir-long (Depends-on): Likewise.
45522         * modules/fnmatch (Depends-on): Likewise.
45523         * modules/getsubopt (Depends-on): Likewise.
45524         * modules/git-merge-changelog (Depends-on): Likewise.
45525         * modules/glob (Depends-on): Likewise.
45526         * modules/strcasestr-simple (Depends-on): Likewise.
45527         * modules/strnlen (Depends-on): Likewise.
45528
45529 2008-11-02  Bruno Haible  <bruno@clisp.org>
45530
45531         Mark 'atexit' obsolete.
45532         * modules/atexit (Status, Notice): New sections.
45533         * modules/chdir-long (Depends-on): Add atexit.
45534         * modules/wait-process (Depends-on): Likewise.
45535
45536 2008-11-02  Bruno Haible  <bruno@clisp.org>
45537
45538         * gnulib-tool: New option --with-obsolete.
45539         (func_usage): Document it.
45540         (func_modules_transitive_closure): Drop obsolete dependencies if
45541         incobsolete is not true.
45542         (func_import): Read and save the incobsolete variable to the cache.
45543
45544 2008-11-02  Bruno Haible  <bruno@clisp.org>
45545
45546         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45547         * gnulib-tool: New option --extract-status.
45548         (func_usage): Document it.
45549         (sed_extract_prog): Recognize it.
45550         (func_get_status): New function.
45551
45552 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45553
45554         * modules/sockets (License): Change from LGPL to LGPLv2+.
45555
45556 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45557
45558         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45559
45560 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45561
45562         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45563         Mention times and sys_times.
45564         * modules/sys_times, modules/sys_times-tests: New modules.
45565         * modules/times, modules/times-tests: Likewise
45566         * m4/sys_times_h.m4: New file.
45567         * lib/sys_times.in.h: Likewise
45568         * lib/times.c: Likewise.
45569         * tests/test-sys_times.c: Likewise.
45570         * tests/test-times.c: Likewise.
45571         * doc/posix-headers/sys_times.texi: Update.
45572         * doc/posix-functions/times.texi: Update.
45573
45574 2008-10-28  Jim Meyering  <meyering@redhat.com>
45575
45576         * modules/tempname (Depends-on): Add lstat.
45577
45578         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45579
45580 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45581
45582         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45583         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45584         using idiom used elsewhere in gnulib.
45585
45586 2008-10-27  Jim Meyering  <meyering@redhat.com>
45587
45588         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45589
45590 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45591
45592         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45593         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45594         programs.
45595         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45596
45597 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45598
45599         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45600
45601 2008-10-27  Bruno Haible  <bruno@clisp.org>
45602
45603         * tests/test-lstat.c: Include <stdio.h>.
45604
45605 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45606
45607         * modules/lstat-tests: New module.
45608         * tests/test-lstat.c: New file.
45609
45610 2008-10-26  Jim Meyering  <meyering@redhat.com>
45611
45612         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45613
45614 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45615             Bruno Haible  <bruno@clisp.org>
45616
45617         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45618         * modules/configmake (Include): Add a note that the include must come
45619         after all system headers.
45620         * lib/javaversion.c: Include configmake.h after all other includes.
45621
45622 2008-10-26  Bruno Haible  <bruno@clisp.org>
45623
45624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45625         HAVE_STRUCT_RANDOM_DATA to 1.
45626         (gl_STDLIB_H): Simplify.
45627
45628 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45629
45630         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45631         substitute HAVE_STRUCT_RANDOM_DATA.
45632         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45633         random_data.
45634         * modules/stdlib (Makefile.am): Substitute
45635         HAVE_STRUCT_RANDOM_DATA.
45636
45637 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45638
45639         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45640         * doc/gnulib-intro.texi (Copyright): Likewise.
45641
45642 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45643
45644         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45645         findings.
45646
45647 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45648             Bruno Haible  <bruno@clisp.org>
45649
45650         * lib/unistd.in.h: Include <winsock2.h>.
45651         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45652         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45653         Provide dummy declarations.
45654         (gethostname): Override.
45655         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45656         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45657         gl_PREREQ_SYS_H_WINSOCK2.
45658         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45659         * doc/posix-functions/gethostname.texi: More details.
45660
45661 2008-10-25  Bruno Haible  <bruno@clisp.org>
45662
45663         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45664         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45665         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45666
45667         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45668         here ...
45669         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45670         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45671         gl_UNISTD_H_DEFAULTS.
45672
45673 2008-10-25  Eric Blake  <ebb9@byu.net>
45674
45675         signbit: avoid spurious compiler failure
45676         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45677         declarations inside function.
45678
45679 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45680             Bruno Haible  <bruno@clisp.org>
45681
45682         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45683         * modules/random_r (Depends-on): Add stdint.
45684
45685 2008-10-24  Bruno Haible  <bruno@clisp.org>
45686
45687         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45688         Eggert.
45689         * modules/strerror (License): Likewise.
45690
45691 2008-10-24  Jim Meyering  <meyering@redhat.com>
45692
45693         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45694         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45695
45696 2008-10-24  Eric Blake  <ebb9@byu.net>
45697
45698         getgroups: fix compilation when getgroups is available
45699         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45700         but with <config.h> override of getgroups disabled.
45701
45702 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45703
45704         * doc/gnulib.texi (Header files): Add note about C++ problems.
45705         Explained by Bruno Haible <bruno@clisp.org>.
45706
45707 2008-10-23  Bruno Haible  <bruno@clisp.org>
45708
45709         Define a dummy SA_NODEFER macro on Interix.
45710         * lib/signal.in.h (SA_NODEFER): Define fallback.
45711         Reported by Aleksey Cheusov <cheusov@tut.by> via
45712         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45713
45714 2008-10-23  Bruno Haible  <bruno@clisp.org>
45715
45716         * modules/freadahead (License): Change to LGPLv2+.
45717         Suggested by Simon Josefsson.
45718
45719 2008-10-23  Jim Meyering  <meyering@redhat.com>
45720
45721         random_r: new module
45722         * modules/random_r: New file.
45723         * m4/random_r.m4: New file.
45724         * lib/random_r.c: New file, from glibc.
45725         * modules/random_r-tests: New file.
45726         * tests/test-random_r.c: New file.
45727         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45728          Declare.
45729         (RAND_MAX): Define.
45730         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45731         * modules/stdlib: Substitute them, too.
45732         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45733         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45734         * doc/glibc-functions/random_r.texi: Likewise.
45735         * doc/glibc-functions/setstate_r.texi: Likewise.
45736         * doc/glibc-functions/srandom_r.texi: Likewise.
45737         * config/srclist.txt: Mention it.
45738
45739 2008-10-23  David Lutterkort  <lutter@redhat.com>
45740
45741         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45742         link requirement
45743
45744 2008-10-23  Jim Meyering  <meyering@redhat.com>
45745
45746         selinux-h: mark parameters of stub functions as intentionally unused
45747         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45748         * lib/se-context.in.h: Likewise.
45749
45750 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45751
45752         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45753
45754 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45755
45756         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45757
45758 2008-10-22  Eric Blake  <ebb9@byu.net>
45759
45760         glthread/thread: avoid compiler warning
45761         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45762         Add unreachable abort to silence compiler.
45763
45764 2008-10-22  Eric Blake  <ebb9@byu.net>
45765
45766         netdb: also supply struct addrinfo for cygwin 1.5.x
45767         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45768         older cygwin.
45769         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45770         cygwin.
45771         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45772
45773 2008-10-22  Bruno Haible  <bruno@clisp.org>
45774
45775         * users.txt: Update entry about pspp.
45776
45777 2008-10-21  Bruno Haible  <bruno@clisp.org>
45778
45779         Simplification.
45780         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45781         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45782
45783         Simplification.
45784         * lib/ioctl.c (ioctl): Don't undefine.
45785         * lib/socket.c (socket): Don't undefine.
45786
45787         Remove unused module indicator macros.
45788         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45789         GNULIB_$1 as a C macro.
45790
45791         * doc/posix-functions/close.texi: Undo last change.
45792         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45793         Windows platforms.
45794
45795 2008-10-21  Bruno Haible  <bruno@clisp.org>
45796
45797         Add gethostname() declaration to <unistd.h>.
45798         * lib/unistd.in.h (gethostname): New declaration.
45799         * lib/gethostname.c: Include <unistd.h>.
45800         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45801         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45803         and HAVE_GETHOSTNAME.
45804         * modules/gethostname (Depends-on): Add unistd.
45805         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45806         (Include): Specify <unistd.h>.
45807         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45808         HAVE_GETHOSTNAME.
45809         * tests/test-gethostname.c: Include <unistd.h> first.
45810
45811 2008-10-21  Bruno Haible  <bruno@clisp.org>
45812
45813         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45814         * modules/select-tests (Depends-on): Likewise.
45815         Reported by Simon Josefsson.
45816
45817 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45818
45819         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45820         * lib/accept.c: New file, based on winsock.c.
45821         * lib/bind.c: New file, based on winsock.c.
45822         * lib/connect.c: New file, based on winsock.c.
45823         * lib/getpeername.c: New file, based on winsock.c.
45824         * lib/getsockname.c: New file, based on winsock.c.
45825         * lib/getsockopt.c: New file, based on winsock.c.
45826         * lib/ioctl.c: New file, based on winsock.c.
45827         * lib/listen.c: New file, based on winsock.c.
45828         * lib/recv.c: New file, based on winsock.c.
45829         * lib/recvfrom.c: New file, based on winsock.c.
45830         * lib/send.c: New file, based on winsock.c.
45831         * lib/sendto.c: New file, based on winsock.c.
45832         * lib/setsockopt.c: New file, based on winsock.c.
45833         * lib/shutdown.c: New file, based on winsock.c.
45834         * lib/socket.c: New file, based on winsock.c.
45835         * lib/w32sock.h: New file, based on winsock.c.
45836         * lib/winsock.c: Remove file.
45837         * modules/accept: Likewise.
45838         * modules/bind: Likewise.
45839         * modules/connect: Likewise.
45840         * modules/getpeername: Likewise.
45841         * modules/getsockname: Likewise.
45842         * modules/getsockopt: Likewise.
45843         * modules/ioctl: Likewise.
45844         * modules/listen: Likewise.
45845         * modules/recv: Likewise.
45846         * modules/recvfrom: Likewise.
45847         * modules/send: Likewise.
45848         * modules/sendto: Likewise.
45849         * modules/setsockopt: Likewise.
45850         * modules/shutdown: Likewise.
45851         * modules/socket: Use socket.c instead of winsock.c.
45852         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45853         * doc/posix-functions/accept.texi: Doc fix.
45854         * doc/posix-functions/bind.texi: Doc fix.
45855         * doc/posix-functions/close.texi: Doc fix.
45856         * doc/posix-functions/connect.texi: Doc fix.
45857         * doc/posix-functions/getpeername.texi: Doc fix.
45858         * doc/posix-functions/getsockname.texi: Doc fix.
45859         * doc/posix-functions/getsockopt.texi: Doc fix.
45860         * doc/posix-functions/ioctl.texi: Doc fix.
45861         * doc/posix-functions/listen.texi: Doc fix.
45862         * doc/posix-functions/recv.texi: Doc fix.
45863         * doc/posix-functions/recvfrom.texi: Doc fix.
45864         * doc/posix-functions/send.texi: Doc fix.
45865         * doc/posix-functions/sendto.texi: Doc fix.
45866         * doc/posix-functions/setsockopt.texi: Doc fix.
45867         * doc/posix-functions/shutdown.texi: Doc fix.
45868         * doc/posix-functions/socket.texi: Doc fix.
45869
45870 2008-10-20  Bruno Haible  <bruno@clisp.org>
45871
45872         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45873         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45874         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45875         as an alias for SIGABRT.
45876         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45877         (sigaction): Map it to SIGABRT.
45878         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45879
45880 2008-10-20  Bruno Haible  <bruno@clisp.org>
45881
45882         * lib/fts.c: Don't include lstat.h.
45883         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45884
45885         Move the lstat() declaration to <sys/stat.h>.
45886         * lib/lstat.h: Remove file.
45887         * lib/sys_stat.in.h: Add special invocation convention.
45888         (lstat): New declaration.
45889         * lib/lstat.c (orig_lstat): New function.
45890         (rpl_lstat): Use orig_lstat instead of lstat.
45891         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45892         AC_C_INLINE. Set REPLACE_LSTAT.
45893         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45894         and REPLACE_LSTAT.
45895         * modules/lstat (Files): Remove lib/lstat.h.
45896         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45897         (Include): Specify <sys/stat.h> instead of lstat.h.
45898         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45899         REPLACE_LSTAT.
45900         * NEWS: Mention the change.
45901
45902 2008-10-20  Bruno Haible  <bruno@clisp.org>
45903
45904         * modules/posix_spawn-tests: New file.
45905         * tests/test-posix_spawn3.c: New file.
45906
45907 2008-10-20  Bruno Haible  <bruno@clisp.org>
45908
45909         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45910         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45911         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45912         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45913         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45914
45915 2008-10-20  Bruno Haible  <bruno@clisp.org>
45916
45917         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45918         of posix_spawn on AIX 5.3.
45919
45920 2008-10-20  Bruno Haible  <bruno@clisp.org>
45921
45922         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45923
45924 2008-10-20  Bruno Haible  <bruno@clisp.org>
45925
45926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45927         of AC_LANG_PROGRAM.
45928
45929 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45930
45931         * lib/netdb.in.h: Don't define GNU specific constants until they
45932         are supported or needed.  Reported by Bruno Haible
45933         <bruno@clisp.org>.
45934
45935 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45936
45937         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45938
45939 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45940
45941         * lib/getaddrinfo.h: Remove file.
45942         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45943         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45944         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45945         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45946         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45947         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45948         * tests/test-getaddrinfo.c: Likewise.
45949         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45950         * NEWS: Mention change.
45951
45952 2008-10-19  Bruno Haible  <bruno@clisp.org>
45953
45954         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45955
45956 2008-10-19  Bruno Haible  <bruno@clisp.org>
45957
45958         * lib/wait-process.c: Include simply <sys/wait.h>.
45959         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45960         WIFSTOPPED): Remove fallback definitions.
45961         * modules/wait-process (Depends-on): Add sys_wait.
45962
45963         New module 'sys_wait'.
45964         * modules/sys_wait: New file.
45965         * lib/sys_wait.in.h: New file, partially copied from
45966         lib/wait-process.c.
45967         * m4/sys_wait_h.m4: New file.
45968         * doc/posix-headers/sys_wait.texi: Mention the new module.
45969
45970 2008-10-19  Bruno Haible  <bruno@clisp.org>
45971
45972         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45973
45974 2008-10-19  Bruno Haible  <bruno@clisp.org>
45975
45976         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45977         * lib/wait-process.c (WAIT_T): Remove type.
45978         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45979         (wait_subprocess): Update.
45980
45981 2008-10-19  Bruno Haible  <bruno@clisp.org>
45982
45983         New module 'atoll'.
45984         * modules/atoll: New file.
45985         * lib/stdlib.in.h (atoll): New declaration.
45986         * lib/atoll.c: New file, from glibc with modifications.
45987         * m4/atoll.m4: New file.
45988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45989         HAVE_ATOLL.
45990         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45991         * doc/posix-functions/atoll.texi: Mention the new module.
45992
45993 2008-10-19  Bruno Haible  <bruno@clisp.org>
45994
45995         Add strtoull() declaration to <stdlib.h>.
45996         * lib/stdlib.in.h (strtoull): New declaration.
45997         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45998         Set HAVE_STRTOULL.
45999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46000         HAVE_STRTOULL.
46001         * modules/strtoull (Depends-on): Add stdlib.
46002         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46003         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46004         HAVE_STRTOULL.
46005
46006 2008-10-19  Bruno Haible  <bruno@clisp.org>
46007
46008         Add strtoll() declaration to <stdlib.h>.
46009         * lib/stdlib.in.h (strtoll): New declaration.
46010         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46011         Set HAVE_STRTOLL.
46012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46013         HAVE_STRTOLL.
46014         * modules/strtoll (Depends-on): Add stdlib.
46015         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46016         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46017
46018 2008-10-19  Bruno Haible  <bruno@clisp.org>
46019
46020         * modules/bcopy (Depends-on): Add strings.
46021         (Include): Specify <strings.h>.
46022
46023 2008-10-19  Bruno Haible  <bruno@clisp.org>
46024
46025         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46026
46027 2008-10-19  Bruno Haible  <bruno@clisp.org>
46028
46029         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46030         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46031         mingw.
46032
46033 2008-10-19  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/atanl.c: Don't include isnanl.h.
46036         * lib/cosl.c: Likewise.
46037         * lib/ldexpl.c: Likewise.
46038         * lib/logl.c: Likewise.
46039         * lib/sinl.c: Likewise.
46040         * lib/sqrtl.c: Likewise.
46041         * lib/tanl.c: Likewise.
46042
46043         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46044         * lib/isnanf.h: Remove file.
46045         * lib/isnand.h: Remove file.
46046         * lib/isnanl.h: Remove file.
46047         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46048         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46049         macros.
46050         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46051         HAVE_ISNANF, don't define it as a C macro.
46052         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46053         HAVE_ISNAND, don't define it as a C macro.
46054         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46055         HAVE_ISNANL, don't define it as a C macro.
46056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46057         HAVE_ISNAN[FDL].
46058         * modules/isnanf (Files): Remove lib/isnanf.h.
46059         (Depends-on): Add math.
46060         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46061         (Include): Specify <math.h> instead of isnanf.h.
46062         * modules/isnand (Files): Remove lib/isnand.h.
46063         (Depends-on): Add math.
46064         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46065         (Include): Specify <math.h> instead of isnand.h.
46066         * modules/isnanl (Files): Remove lib/isnanl.h.
46067         (Depends-on): Add math.
46068         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46069         (Include): Specify <math.h> instead of isnanl.h.
46070         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46071         HAVE_ISNAN[FDL].
46072         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46073         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46074         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46075         * NEWS: Mention the change.
46076
46077 2008-10-18  Bruno Haible  <bruno@clisp.org>
46078
46079         Add getusershell(), setusershell(), endusershell() declarations to
46080         <unistd.h>.
46081         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46082         declarations.
46083         * lib/getusershell.c: Include unistd.h.
46084         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46085         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46086         HAVE_GETUSERSHELL.
46087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46088         and HAVE_GETUSERSHELL.
46089         * modules/getusershell (Depends-on): Add unistd, extensions.
46090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46091         (Include): Specify <unistd.h>.
46092         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46093         HAVE_GETUSERSHELL.
46094
46095 2008-10-18  Bruno Haible  <bruno@clisp.org>
46096
46097         Add a getloadavg() declaration to <stdlib.h>.
46098         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46099         getloadavg declaration.
46100         (getloadavg): New declaration.
46101         * lib/getloadavg.c: Include <stdlib.h> first.
46102         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46103         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46104         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46106         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46107         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46108         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46109         (Include): Specify <stdlib.h>.
46110         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46111         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46112
46113 2008-10-18  Bruno Haible  <bruno@clisp.org>
46114
46115         * lib/dirchownmod.c: Don't include lchmod.h.
46116
46117         Move the lchmod() declaration to <sys/stat.h>.
46118         * lib/lchmod.h: Remove file.
46119         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46120         (lchmod): New declaration, moved here from lib/lchown.h.
46121         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46122         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46123         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46124         and HAVE_LCHMOD.
46125         * modules/lchmod (Files): Remove lib/lchmod.h.
46126         (Depends-on): Add sys_stat, extensions.
46127         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46128         (Include): Specify <sys/stat.h> instead of lchmod.h.
46129         * modules/sys_stat (Depends-on): Add link-warning.
46130         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46131         definition of GL_LINK_WARNING.
46132         * NEWS: Mention the change.
46133
46134 2008-10-18  Bruno Haible  <bruno@clisp.org>
46135
46136         * lib/fchdir.c: Don't include dirfd.h.
46137         * lib/fts.c: Likewise.
46138         * lib/getcwd.c: Likewise.
46139         * lib/glob.c: Likewise.
46140
46141         Move the dirfd() declaration to <dirent.h>.
46142         * lib/dirfd.h: Remove file.
46143         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46144         (dirfd): New declaration.
46145         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46147         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46148         HAVE_DECL_DIRFD.
46149         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46150         HAVE_DECL_DIRFD.
46151         * modules/dirfd (Files): Remove lib/dirfd.h.
46152         (Depends-on): Add dirent, extensions.
46153         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46154         (Include): Specify <dirent.h> instead of dirfd.h.
46155         * modules/dirent (Depends-on): Add link-warning.
46156         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46157         definition of GL_LINK_WARNING.
46158         * NEWS: Mention the change.
46159
46160 2008-10-18  Bruno Haible  <bruno@clisp.org>
46161
46162         Move the euidaccess() declaration to <unistd.h>.
46163         * lib/euidaccess.h: Remove file.
46164         * lib/unistd.in.h (euidaccess): New declaration.
46165         * lib/euidaccess.c: Don't include euidaccess.h.
46166         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46167         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46169         and HAVE_EUIDACCESS.
46170         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46171         (Depends-on): Add unistd.
46172         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46173         (Include): Specify <unistd.h> instead of euidaccess.h.
46174         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46175         HAVE_EUIDACCESS.
46176         * NEWS: Mention the change.
46177
46178 2008-10-18  Bruno Haible  <bruno@clisp.org>
46179
46180         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46181
46182         Move the getdomainname() declaration to <unistd.h>.
46183         * lib/getdomainname.h: Remove file.
46184         * lib/unistd.in.h (getdomainname): New declaration.
46185         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46186         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46187         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46188         HAVE_GETDOMAINNAME.
46189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46190         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46191         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46192         (Depends-on): Add unistd, extensions.
46193         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46194         (Includes): Specify <unistd.h> instead of getdomainname.h.
46195         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46196         HAVE_GETDOMAINNAME.
46197         * NEWS: Mention the change.
46198
46199 2008-10-18  Bruno Haible  <bruno@clisp.org>
46200
46201         * modules/dirent: New file.
46202         * m4/dirent_h.m4: New file.
46203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46204         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46205         * modules/fchdir (Files): Remove lib/dirent.in.h.
46206         (Depends-on): Add dirent.
46207         (Makefile.am): Move rules to modules/dirent.
46208         * doc/posix-headers/dirent.texi: Mention the new module.
46209
46210 2008-10-18  Bruno Haible  <bruno@clisp.org>
46211
46212         Avoid -Wunused-parameter warnings in public gnulib header files.
46213         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46214         macro.
46215         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46216
46217 2008-10-18  Bruno Haible  <bruno@clisp.org>
46218
46219         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46220         * doc/glibc-functions/error.texi: Mention the module 'error'.
46221         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46222         * doc/glibc-functions/getdomainname.texi: Mention the module
46223         'getdomainname'.
46224         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46225         * doc/glibc-functions/getpagesize.texi: Mention the module
46226         'getpagesize'.
46227         * doc/glibc-functions/getusershell.texi: Mention the module
46228         'getusershell'.
46229         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46230         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46231         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46232         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46233         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46234         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46235         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46236         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46237         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46238         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46239         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46240         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46241         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46242         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46243
46244 2008-10-17  Bruno Haible  <bruno@clisp.org>
46245
46246         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46247         HP-UX and IRIX, use -0.0L.
46248         * tests/test-ceill.c (minus_zero): Likewise.
46249         * tests/test-floorl.c (minus_zero): Likewise.
46250         * tests/test-frexpl.c (minus_zero): Likewise.
46251         * tests/test-isnan.c (minus_zerol): Likewise.
46252         * tests/test-isnanl.h (minus_zero): Likewise.
46253         * tests/test-ldexpl.c (minus_zero): Likewise.
46254         * tests/test-roundl.c (minus_zero): Likewise.
46255         * tests/test-signbit.c (minus_zerol): Likewise.
46256         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46257         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46258         * tests/test-truncl.c (minus_zero): Likewise.
46259         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46260         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46261         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46262         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46263
46264 2008-10-17  Bruno Haible  <bruno@clisp.org>
46265
46266         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46267         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46268         that it gets activated only for gcc >= 3.0.
46269         * lib/dirent.in.h: Likewise.
46270         * lib/errno.in.h: Likewise.
46271         * lib/fcntl.in.h: Likewise.
46272         * lib/float.in.h: Likewise.
46273         * lib/iconv.in.h: Likewise.
46274         * lib/inttypes.in.h: Likewise.
46275         * lib/locale.in.h: Likewise.
46276         * lib/math.in.h: Likewise.
46277         * lib/netdb.in.h: Likewise.
46278         * lib/netinet_in.in.h: Likewise.
46279         * lib/search.in.h: Likewise.
46280         * lib/signal.in.h: Likewise.
46281         * lib/spawn.in.h: Likewise.
46282         * lib/stdarg.in.h: Likewise.
46283         * lib/stdint.in.h: Likewise.
46284         * lib/stdio.in.h: Likewise.
46285         * lib/stdlib.in.h: Likewise.
46286         * lib/string.in.h: Likewise.
46287         * lib/strings.in.h: Likewise.
46288         * lib/sys_file.in.h: Likewise.
46289         * lib/sys_ioctl.in.h: Likewise.
46290         * lib/sys_select.in.h: Likewise.
46291         * lib/sys_socket.in.h: Likewise.
46292         * lib/sys_stat.in.h: Likewise.
46293         * lib/sys_time.in.h: Likewise.
46294         * lib/sysexits.in.h: Likewise.
46295         * lib/time.in.h: Likewise.
46296         * lib/unistd.in.h: Likewise.
46297         * lib/wchar.in.h: Likewise.
46298         * lib/wctype.in.h: Likewise.
46299         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46300
46301 2008-10-17  Jim Meyering  <meyering@redhat.com>
46302
46303         ignore-value: don't depend on inline module
46304         * modules/ignore-value (Depends-on): Remove 'inline'.
46305         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46306         Suggestion from Bruno Haible.
46307
46308 2008-10-17  Bruno Haible  <bruno@clisp.org>
46309
46310         New implementation of condition variables for Win32.
46311         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46312         (gl_linked_waitqueue_t): New type.
46313         (gl_cond_t): Use it.
46314         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46315         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46316         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46317         (glthread_cond_init_func, glthread_cond_wait_func,
46318         glthread_cond_timedwait_func, glthread_cond_signal_func,
46319         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46320         Reimplemented on the basis of gl_linked_waitqueue_t.
46321         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46322         gl_waitqueue_t.
46323         (gl_rwlock_t): Update.
46324         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46325
46326 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46327
46328         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46329         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46330
46331 2008-10-17  Jim Meyering  <meyering@redhat.com>
46332
46333         ignore-value: new module
46334         * modules/ignore-value: New file.
46335         * lib/ignore-value.h: New file.
46336         * MODULES.html.sh (Compiler warning management): New section,
46337         just for this module.  More to come.
46338
46339 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46340
46341         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46342         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46343         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46344
46345 2008-10-16  Jim Meyering  <meyering@redhat.com>
46346
46347         openat-die.c: avoid 'no previous prototype' warning
46348         * lib/openat-die.c: Include "openat.h".
46349         Reported by Reuben Thomas <rrt@sc3d.org>.
46350
46351 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46352
46353         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46354         * lib/netdb.in.h: Fix typo.
46355         Reported by Bruno Haible  <bruno@clisp.org>
46356
46357         * lib/netdb.in.h: Include sys/socket.h for platforms without
46358         netdb.h, to get structures like hostent on MinGW.
46359         * modules/netdb (Depends-on): Add sys_socket.
46360
46361 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46362
46363         * modules/netdb, modules/netdb-tests: New file.
46364         * m4/netdb_h.m4: New file.
46365         * lib/netdb.in.h: Add, currently just an empty file pending
46366         definitions.
46367         * tests/test-netdb.c: New file.
46368         * doc/posix-headers/netdb.texi: Mention that we replace it if
46369         needed.
46370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46371         netdb.
46372
46373 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46374
46375         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46376         with code.
46377
46378 2008-10-13  Bruno Haible  <bruno@clisp.org>
46379
46380         * lib/glthread/cond.c (glthread_cond_wait_func,
46381         glthread_cond_timedwait_func): Add a comment.
46382
46383 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46384
46385         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46386         * tests/test-select.c: Likewise,
46387
46388 2008-10-13  Bruno Haible  <bruno@clisp.org>
46389
46390         * lib/glthread/cond.c (glthread_cond_wait_func,
46391         glthread_cond_timedwait_func): Fix variable name.
46392         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46393
46394 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46395
46396         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46397         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46398         struct sockaddr.sa_len.
46399         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46400
46401 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46402
46403         * build-aux/pmccabe2html: Add css and css_url parameters.
46404
46405 2008-10-12  Bruno Haible  <bruno@clisp.org>
46406
46407         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46408         calling aclx_get.
46409         Reported by Rainer Tammer <tammer@tammer.net>.
46410
46411 2008-10-12  Bruno Haible  <bruno@clisp.org>
46412
46413         Use msvcrt aware primitives for creation/termination of Win32 threads.
46414         * lib/glthread/thread.c: Include <process.h>.
46415         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46416         (wrapper_func): Update signature.
46417         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46418
46419 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46420             Bruno Haible  <bruno@clisp.org>
46421
46422         Provide a Win32 implementation of the 'cond' module.
46423         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46424         * lib/glthread/cond.c (glthread_cond_init_func,
46425         glthread_cond_wait_func, glthread_cond_timedwait_func,
46426         glthread_cond_signal_func, glthread_cond_broadcast_func,
46427         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46428         * modules/cond (Dependencies): Add gettimeofday.
46429
46430 2008-10-11  Bruno Haible  <bruno@clisp.org>
46431
46432         Make sleep work on older versions of mingw.
46433         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46434         only whether it exists.
46435         * doc/posix-functions/sleep.texi: Mention the problem with older
46436         versions of mingw.
46437
46438 2008-10-11  Bruno Haible  <bruno@clisp.org>
46439
46440         New module 'shutdown'.
46441         * modules/shutdown: New file.
46442         * lib/sys_socket.in.h (shutdown): New declaration.
46443         * lib/winsock.c (shutdown): New function.
46444         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46445         GNULIB_SHUTDOWN.
46446         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46447         * doc/posix-functions/shutdown.texi: Document the new module.
46448
46449 2008-10-11  Jim Meyering  <meyering@redhat.com>
46450
46451         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46452
46453 2008-10-11  Bruno Haible  <bruno@clisp.org>
46454
46455         New module 'fclose'.
46456         * modules/fclose: New file.
46457         * lib/stdio.in.h (fclose): New declaration.
46458         * lib/fclose.c: New file.
46459         * m4/fclose.m4: New file.
46460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46461         REPLACE_FCLOSE.
46462         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46463         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46464         REPLACE_FCLOSE.
46465         * modules/close (Depends-on): fclose.
46466         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46467
46468 2008-10-11  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46471         set errno and don't call _close.
46472
46473 2008-10-10  Bruno Haible  <bruno@clisp.org>
46474
46475         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46476         ACL, not afterwards. Fixes test failure on Cygwin.
46477
46478 2008-10-09  Ben Pfaff  <blp@gnu.org>
46479
46480         * build-aux/announce-gen: Fix gnulib version related part of usage
46481         message.  Die with a useful error message if no tarballs are
46482         found.
46483
46484 2008-10-10  Jim Meyering  <meyering@redhat.com>
46485
46486         bootstrap: use git's --depth=N option only if it's supported
46487         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46488         recognize the --depth option.  Reported by Pádraig Brady.
46489
46490 2008-10-09  Bruno Haible  <bruno@clisp.org>
46491
46492         New module 'ioctl'.
46493         * modules/ioctl: New file.
46494         * lib/sys_socket.in.h (ioctl): Remove declaration.
46495         * lib/winsock.c: Include <sys/ioctl.h>.
46496         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46497         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46498         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46499         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46500         * doc/posix-functions/ioctl.texi: Mention the new module.
46501
46502 2008-10-09  Bruno Haible  <bruno@clisp.org>
46503
46504         New module 'sys_ioctl'.
46505         * lib/sys_ioctl.in.h: New file.
46506         * m4/sys_ioctl_h.m4: New file.
46507         * modules/sys_ioctl: New file.
46508         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46509
46510 2008-10-09  Bruno Haible  <bruno@clisp.org>
46511
46512         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46513         * lib/winsock.c: Include <stdarg.h>.
46514         (rpl_ioctl): Change to second argument 'int' and then varargs.
46515
46516 2008-10-09  Bruno Haible  <bruno@clisp.org>
46517
46518         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46519         when the sys_socket module is present and the system has <winsock2.h>.
46520
46521 2008-10-09  Bruno Haible  <bruno@clisp.org>
46522
46523         * doc/posix-functions/close.texi: Mention module 'close' instead of
46524         module 'sys_socket'.
46525
46526 2008-10-09  Bruno Haible  <bruno@clisp.org>
46527
46528         * doc/glibc-headers/sys_ioctl.texi: New file.
46529         * doc/gnulib.texi: Include it.
46530
46531 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46532             Bruno Haible  <bruno@clisp.org>
46533
46534         Combine the two replacements of 'close'.
46535         * lib/sys_socket.in.h (close): Define to a reminder to include
46536         <unistd.h>.
46537         (_gl_close_fd_maybe_socket): New declaration.
46538         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46539         * lib/winsock.c (close): Remove undefinition.
46540         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46541         needed for the gnulib module 'close'.
46542         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46543         define to an error symbol or to a warning, if suitable.
46544         * lib/close.c: Include <sys/socket.h>.
46545         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46546         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46547         UNISTD_H_HAVE_WINSOCK2_H.
46548         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46550         UNISTD_H_HAVE_WINSOCK2_H.
46551         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46552         (configure.ac): Set a module indicator.
46553         (Makefile.am): Substitute GNULIB_CLOSE.
46554         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46555         * modules/poll-tests (Depends-on): Add close.
46556         * modules/select-tests (Depends-on): Likewise.
46557
46558 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46559             Bruno Haible  <bruno@clisp.org>
46560
46561         New module 'close'.
46562         * modules/close: New file.
46563         * lib/unistd.in.h (close): Move declaration out of the
46564         FCHDIR_REPLACEMENT scope.
46565         (_gl_unregister_fd): New declaration.
46566         * lib/close.c: New file.
46567         * lib/fchdir.c (rpl_close): Remove function.
46568         * m4/close.m4: New file.
46569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46570         close.
46571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46572         REPLACE_CLOSE.
46573         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46574         REPLACE_CLOSE.
46575         * modules/fchdir (Depends-on): Add close.
46576
46577 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46578             Bruno Haible  <bruno@clisp.org>
46579
46580         * lib/fcntl.in.h (open): Simplify conditionals.
46581         (_gl_register_fd): New declaration.
46582         * lib/fchdir.c (rpl_open): Remove function.
46583         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46584         also.
46585         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46586         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46587         open.
46588
46589 2008-10-09  Jim Meyering  <meyering@redhat.com>
46590
46591         GNUmakefile: use the more name-space-friendly "_version"
46592         * top/GNUmakefile (_dummy): Update.
46593         (_version): Rename from "version".
46594
46595 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46596             Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46599         rpl_close.
46600         (_gl_register_fd): New function, extracted from rpl_open.
46601         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46602         (rpl_open, rpl_opendir): Use _gl_register_fd.
46603
46604 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46605
46606         Fix organization of 'open' replacement.
46607         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46608         (gl_FUNC_OPEN): Use it.
46609         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46610
46611 2008-10-08  Bruno Haible  <bruno@clisp.org>
46612
46613         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46614
46615 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46616
46617         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46618         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46619         listen).
46620
46621 2008-10-08  Eric Blake  <ebb9@byu.net>
46622
46623         GNUmakefile: add 'make version' target
46624         * top/GNUmakefile (_curr-ver): Split version update rules...
46625         (version): ...into a target.
46626
46627 2008-10-07  Bruno Haible  <bruno@clisp.org>
46628
46629         Use a more portable replacement expression for -0.0L.
46630         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46631         instead of -0.0L. Fix m4 quotation.
46632
46633         * tests/test-signbit.c: Include <float.h>.
46634         (minus_zero): New variable.
46635         (test_signbitl): Use minus_zero instead of -zero.
46636         * modules/signbit-tests (Depends-on): Add float.
46637
46638         * tests/test-ceill.c: Include <float.h>.
46639         (zero): Remove variable.
46640         (minus_zero): New variable.
46641         (main): Use minus_zero instead of -zero.
46642         * modules/ceill-tests (Depends-on): Add float.
46643
46644         * tests/test-floorl.c: Include <float.h>.
46645         (zero): Remove variable.
46646         (minus_zero): New variable.
46647         (main): Use minus_zero instead of -zero.
46648         * modules/floorl-tests (Depends-on): Add float.
46649
46650         * tests/test-roundl.c: Include <float.h>.
46651         (zero): Remove variable.
46652         (minus_zero): New variable.
46653         (main): Use minus_zero instead of -zero.
46654         * modules/roundl-tests (Depends-on): Add float.
46655
46656         * tests/test-truncl.c: Include <float.h>.
46657         (zero): Remove variable.
46658         (minus_zero): New variable.
46659         (main): Use minus_zero instead of -zero.
46660         * modules/truncl-tests (Depends-on): Add float.
46661
46662         * tests/test-frexpl.c (zero): Remove variable.
46663         (minus_zero): New variable.
46664         (main): Use minus_zero instead of -zero.
46665         * modules/frexpl-tests (Depends-on): Add float.
46666
46667         * tests/test-isnan.c (zerol): Remove variable.
46668         (minus_zerol): New variable.
46669         (test_long_double): Use minus_zerol instead of -zerol.
46670         * modules/isnan-tests (Depends-on): Add float.
46671
46672         * tests/test-isnanl.h (zero): Remove variable.
46673         (minus_zero): New variable.
46674         (main): Use minus_zero instead of -zero.
46675         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46676         * modules/isnanl-tests (Depends-on): Add float.
46677
46678         * tests/test-ldexpl.c (zero): Remove variable.
46679         (minus_zero): New variable.
46680         (main): Use minus_zero instead of -zero.
46681         * modules/ldexpl-tests (Depends-on): Add float.
46682
46683         * tests/test-snprintf-posix.h (zerol): Remove variable.
46684         (minus_zerol): New variable.
46685         (test_function): Use minus_zerol instead of -zerol.
46686         * modules/snprintf-posix-tests (Depends-on): Add float.
46687         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46688
46689         * tests/test-sprintf-posix.h (zerol): Remove variable.
46690         (minus_zerol): New variable.
46691         (test_function): Use minus_zerol instead of -zerol.
46692         * modules/sprintf-posix-tests (Depends-on): Add float.
46693         * modules/vsprintf-posix-tests (Depends-on): Add float.
46694
46695         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46696         (minus_zerol): New variable.
46697         (test_function): Use minus_zerol instead of -zerol.
46698         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46699
46700         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46701         (minus_zerol): New variable.
46702         (test_function): Use minus_zerol instead of -zerol.
46703         * modules/vasprintf-posix-tests (Depends-on): Add float.
46704
46705 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46706
46707         * MODULES.html.sh (Support for building documentation): Mention
46708         pmccabe2html.  Sort entries.
46709
46710         Add pmccabe2html module, from gnupdf.
46711         * build-aux/pmccabe.css: New file.
46712         * build-aux/pmccabe2html: New file.
46713         * m4/pmccabe2html.m4: New file.
46714         * modules/pmccabe2html: New file.
46715
46716 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46717
46718         flock: new module
46719         * MODULES.html.sh: Add to list of modules.
46720         * lib/flock.c: flock implementation for Windows and Unix systems
46721         which have fcntl.
46722         * doc/glibc-functions/flock.texi: Update documentation.
46723         * lib/sys_file.in.h: <sys/file.h> header file.
46724         * m4/flock.m4: M4 macros.
46725         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46726         * modules/flock: flock module.
46727         * modules/flock-tests: flock tests module.
46728         * modules/sys_file: sys/file.h module.
46729         * tests/test-flock.c: test suite for flock.
46730
46731 2008-10-06  Jim Meyering  <meyering@redhat.com>
46732
46733         bootstrap: check for LT_INIT more portably still ;-)
46734         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46735         Spotted by Bruno Haible.
46736
46737 2008-10-06  Eric Blake  <ebb9@byu.net>
46738
46739         test-signbit: avoid tripping Irix cc bug on -0.0L
46740         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46741         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46742         entire testsuite consistent and avoids an Irix 6.2 bug.
46743
46744 2008-10-05  Bruno Haible  <bruno@clisp.org>
46745             Jim Meyering  <jim@meyering.net>
46746
46747         Add an option for ignoring EPIPE during close_stdout.
46748         * lib/closeout.h: Include <stdbool.h>.
46749         (close_stdout_set_ignore_EPIPE): New declaration.
46750         * lib/closeout.c: Include <stdbool.h>.
46751         (ignore_EPIPE): New variable.
46752         (close_stdout_set_ignore_EPIPE): New function.
46753         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46754         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46755         failure.
46756         * modules/closeout (Depends-on): Add stdbool.
46757
46758 2008-10-05  Bruno Haible  <bruno@clisp.org>
46759
46760         * modules/accept: New file.
46761         * modules/bind: New file.
46762         * modules/connect: New file.
46763         * modules/getpeername: New file.
46764         * modules/getsockname: New file.
46765         * modules/getsockopt: New file.
46766         * modules/listen: New file.
46767         * modules/recv: New file.
46768         * modules/recvfrom: New file.
46769         * modules/send: New file.
46770         * modules/sendto: New file.
46771         * modules/setsockopt: New file.
46772         * modules/socket: New file.
46773         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46774         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46775         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46776         the particular module is requested. Add a link warning when the
46777         particular module is not requested.
46778         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46779         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46780         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46781         the particular module is requested.
46782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46783         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46784         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46785         * modules/sys_socket (Depends-on): Add link-warning.
46786         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46787         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46788         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46789         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46790         GL_LINK_WARNING.
46791         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46792         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46793         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46794         * doc/posix-functions/getpeername.texi: Mention the new module
46795         'getpeername'.
46796         * doc/posix-functions/getsockname.texi: Mention the new module
46797         'getsockname'.
46798         * doc/posix-functions/getsockopt.texi: Mention the new module
46799         'getsockopt'.
46800         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46801         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46802         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46803         * doc/posix-functions/send.texi: Mention the new module 'send'.
46804         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46805         * doc/posix-functions/setsockopt.texi: Mention the new module
46806         'setsockopt'.
46807         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46808         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46809         listen, connect, accept.
46810         * modules/select-tests (Depends-on): Likewise.
46811
46812 2008-10-05  Bruno Haible  <bruno@clisp.org>
46813
46814         * lib/winsock.c (strerror): Remove unused #undef.
46815         (rpl_close): Remove unused local variable.
46816
46817         * modules/sys_socket (Depends-on); Add errno.
46818
46819 2008-10-05  Bruno Haible  <bruno@clisp.org>
46820
46821         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46822         (select): Add a link warning when the 'select' module is not used.
46823         * modules/sys_select (Depends-on): Add link-warning.
46824         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46825         Suggested by Paolo Bonzini.
46826
46827 2008-10-05  Jim Meyering  <meyering@redhat.com>
46828
46829         bootstrap: check for LT_INIT more portably
46830         * build-aux/bootstrap: Avoid using grep -E, since it's not
46831         portable enough.  Suggestion from Bruno Haible.
46832
46833 2008-10-05  Bruno Haible  <bruno@clisp.org>
46834
46835         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46836         as being fixed by gnulib.
46837
46838 2008-10-05  Bruno Haible  <bruno@clisp.org>
46839
46840         * modules/select-tests: New file, mostly copied from
46841         modules/sys_select-tests.
46842         * tests/test-select.c: New file, mostly copied from
46843         tests/test-sys_select.c.
46844         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46845         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46846         (Makefile.am): Remove test_sys_select_LDADD.
46847
46848         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46849         to an undefined symbol, for an error message.
46850         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46851         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46852         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46853         winsock-select.c here.
46854         * modules/sys_select (Files): Remove lib/winsock-select.c.
46855         (Depends-on): Remove alloca.
46856         (Makefile.am): Substitute GNULIB_SELECT.
46857         * modules/select: New file.
46858         * doc/posix-functions/select.texi: Update.
46859
46860 2008-10-05  Bruno Haible  <bruno@clisp.org>
46861
46862         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46863         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46864         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46865         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46866         getdtablesize.
46867         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46868         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46869
46870 2008-10-05  Bruno Haible  <bruno@clisp.org>
46871
46872         * modules/getdtablesize-tests: New file.
46873         * tests/test-getdtablesize.c: New file.
46874
46875         New module 'getdtablesize'.
46876         * lib/unistd.in.h (getdtablesize): New declaration.
46877         * lib/getdtablesize.c: New file.
46878         * m4/getdtablesize.m4: New file.
46879         * modules/getdtablesize: New file.
46880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46881         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46882         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46883         HAVE_GETDTABLESIZE.
46884         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46885
46886 2008-10-05  Bruno Haible  <bruno@clisp.org>
46887
46888         * modules/sched (Makefile.am): Fix typo.
46889         Reported by Simon Josefsson.
46890
46891 2008-10-05  Jim Meyering  <meyering@redhat.com>
46892
46893         bootstrap: check for LT_INIT, too
46894         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46895         are deprecated.  Suggestion from Ralf Wildenhues.
46896
46897 2008-10-05  Bruno Haible  <bruno@clisp.org>
46898
46899         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46900         overriding them by ours.
46901         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46902
46903 2008-10-05  Jim Meyering  <meyering@redhat.com>
46904
46905         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46906         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46907         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46908
46909 2008-10-04  Bruno Haible  <bruno@clisp.org>
46910
46911         * modules/dup2 (License): Change to LGPLv2+.
46912         * modules/sleep (License): Likewise.
46913         * modules/perror (License): Likewise.
46914         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46915         Blake.
46916         * modules/signal (License): Likewise.
46917         * modules/sigprocmask (License): Likewise.
46918         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46919         Meyering.
46920
46921 2008-10-04  Bruno Haible  <bruno@clisp.org>
46922
46923         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46924         Reported by Rainer Tammer <tammer@tammer.net>.
46925
46926 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46927             Bruno Haible  <bruno@clisp.org>
46928
46929         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46930         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46931         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46932
46933 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46934
46935         filevercmp: new module
46936         * lib/filevercmp.h: New function filevercmp comparing version strings.
46937         * lib/filevercmp.c: Implementation of filevercmp function.
46938         * modules/filevercmp: Module metadata.
46939         * tests/test-filevercmp.c: Unit test for new module.
46940         * modules/filevercmp-tests: Unit test metadata.
46941         * MODULES.html.sh: Add filevercmp module.
46942
46943 2008-10-03  Bruno Haible  <bruno@clisp.org>
46944
46945         * lib/c-ctype.h: Add comment.
46946         Reported by Jim Meyering.
46947
46948 2008-10-02  Bruno Haible  <bruno@clisp.org>
46949
46950         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46951
46952 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46953
46954         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46955         name of bootstrap.conf accordingly.
46956
46957 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46958
46959         * build-aux/bootstrap: Install git-merge-changelog configuration
46960         items into .gitconfig if needed.
46961
46962 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46963
46964         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46965         git repository, and initialize/update it accordingly.
46966
46967 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46968
46969         * modules/fsync-tests: New file.
46970         * tests/test-fsync.c: New file.
46971
46972         New module 'fsync'.
46973         * lib/fsync.c: New file.
46974         * m4/fsync.m4: New file.
46975         * modules/fsync: New file.
46976         * lib/unistd.in.h (fsync): New declaration.
46977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46978         GNULIB_FSYNC and HAVE_FSYNC.
46979         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46980         * MODULES.html.sh (posix_functions): Add fsync.
46981         * doc/posix-functions/fsync.texi: Mention the new module.
46982
46983 2008-10-02  Jim Meyering  <meyering@redhat.com>
46984
46985         fts.c: sync with similar code from coreutils' remove.c
46986         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46987         Guard also with "#if defined __linux__", since for now at least,
46988         this code is Linux-kernel-specific.
46989
46990 2008-10-02  Jim Meyering  <meyering@redhat.com>
46991
46992         fts: bug fixes
46993         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46994         Include <sys/vfs.h>, not <sys/statfs.h>.
46995
46996         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46997         Include <sys/vfs.h>, not <sys/statfs.h>.
46998
46999 2008-10-01  Bruno Haible  <bruno@clisp.org>
47000
47001         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47003         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47004         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47005         * doc/posix-functions/posix_spawnp.texi: Likewise.
47006         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47007         whether posix_spawn actually works.
47008         * m4/pipe.m4 (gl_PIPE): Likewise.
47009         * modules/execute (Files): Add m4/posix_spawn.m4.
47010         * modules/pipe (Files): Add m4/posix_spawn.m4.
47011         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47012
47013 2008-10-01  Jim Meyering  <meyering@redhat.com>
47014
47015         remove trailing spaces
47016         * NEWS: Likewise.
47017         * lib/poll.c (poll): Likewise.
47018         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47019         * lib/winsock.c (rpl_close): Likewise.
47020         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47021         * modules/yield: Likewise.
47022         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47023         * tests/test-sys_select.c (connect_to_socket): Likewise.
47024
47025         fts.c: adjust a new interface to be more generally useful
47026         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47027         (fts_build): Adjust caller.
47028
47029 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47030
47031         * modules/cond-tests: New file.
47032         * tests/test-cond.c: New file.
47033
47034 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47035             Bruno Haible  <bruno@clisp.org>
47036
47037         * modules/cond (Dependencies): Add errno, time.
47038         * lib/glthread/cond.h: Include <time.h>.
47039         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47040         across platforms.
47041
47042 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47043             Bruno Haible  <bruno@clisp.org>
47044
47045         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47046
47047 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47048             Bruno Haible  <bruno@clisp.org>
47049
47050         * modules/tls-tests (Depends-on): Add thread, yield.
47051         (configure.ac): Remove all checks.
47052         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47053         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47054         gl_thread_self): Remove definitions. Include glthread/thread.h and
47055         glthread/yield.h instead.
47056         (test_tls): Pass an additional NULL argument to gl_thread_join.
47057
47058 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47059             Bruno Haible  <bruno@clisp.org>
47060
47061         * modules/lock-tests (Depends-on): Add thread, yield.
47062         (configure.ac): Remove all checks.
47063         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47064         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47065         gl_thread_self): Remove definitions. Include glthread/thread.h and
47066         glthread/yield.h instead.
47067         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47068         additional NULL argument to gl_thread_join.
47069
47070 2008-09-30  Bruno Haible  <bruno@clisp.org>
47071
47072         Fix the Win32 implementation of the 'thread' module.
47073         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47074         pointer type.
47075         (gl_thread_self): Invoke gl_thread_self_func.
47076         (gl_thread_self_func): New declaration.
47077         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47078         (do_init_self_key, init_self_key): New functions.
47079         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47080         Remove some fields.
47081         (running_threads, running_lock): Remove variables.
47082         (get_current_thread_handle): New function.
47083         (gl_thread_self_func, wrapper_func, glthread_create_func,
47084         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47085         simplified.
47086
47087 2008-09-30  Bruno Haible  <bruno@clisp.org>
47088
47089         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47090         files.
47091
47092 2008-09-30  Jim Meyering  <meyering@redhat.com>
47093
47094         fts.m4: correct the test for statfs.f_type
47095         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47096         when checking for statfs.f_type.
47097
47098 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47099
47100         tests: avoid some compiler warnings
47101         * tests/test-memchr.c (main): Pass NULL indirectly.
47102         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47103
47104 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
47105
47106         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47107         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47108         exactly specified dayshifts.
47109         (dayshift): New rule.
47110         (rel): Add dayshift.
47111         (relative_time_table) [tomorrow, yesterday, today, now]:
47112         Use tDAY_SHIFT in place of tDAY_UNIT.
47113         * tests/test-getdate.c: Add tests for now-disallowed countable
47114         dayshifts, e.g., "4 yesterday ago".
47115
47116 2008-09-29  Bruno Haible  <bruno@clisp.org>
47117
47118         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47119         * tests/test-posix_spawn1.in.sh: Renamed from
47120         tests/test-posix_spawn.in.sh.
47121         * tests/test-posix_spawn2.c: New file.
47122         * tests/test-posix_spawn2.in.sh: New file.
47123         * modules/posix_spawnp-tests (Files): Update.
47124         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47125
47126 2008-09-29  Bruno Haible  <bruno@clisp.org>
47127
47128         Propagate effects of putenv/setenv/unsetenv to child processes.
47129         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47130         * lib/pipe.c (create_pipe): Likewise.
47131
47132 2008-09-29  Bruno Haible  <bruno@clisp.org>
47133
47134         Enable use of shell scripts as executables in mingw.
47135         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47136         run the program as a shell script.
47137         * lib/pipe.c (create_pipe): Likewise.
47138         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47139         resulting array.
47140
47141 2008-09-29  Eric Blake  <ebb9@byu.net>
47142
47143         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47144
47145 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47146
47147         * doc/posix-functions/accept.texi: Update mingw problems.
47148         * doc/posix-functions/bind.texi: Update mingw problems.
47149         * doc/posix-functions/close.texi: Update mingw problems.
47150         * doc/posix-functions/connect.texi: Update mingw problems.
47151         * doc/posix-functions/getpeername.texi: Update mingw problems.
47152         * doc/posix-functions/getsockname.texi: Update mingw problems.
47153         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47154         * doc/posix-functions/ioctl.texi: Update mingw problems.
47155         * doc/posix-functions/listen.texi: Update mingw problems.
47156         * doc/posix-functions/recv.texi: Update mingw problems.
47157         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47158         * doc/posix-functions/select.texi: Update mingw problems.
47159         * doc/posix-functions/send.texi: Update mingw problems.
47160         * doc/posix-functions/sendto.texi: Update mingw problems.
47161         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47162         * doc/posix-functions/socket.texi: Update mingw problems.
47163
47164 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47165             Bruno Haible  <bruno@clisp.org>
47166
47167         * lib/sys_select.in.h: Include sys/time.h.
47168         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47169         * modules/sys_select: Depend on sys_time.
47170         * tests/test-sys_select.c: Test that sys/select.h defines struct
47171         timeval fully.
47172
47173 2008-09-29  Bruno Haible  <bruno@clisp.org>
47174
47175         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47176         * lib/sys_select.in.h: Likewise.
47177
47178 2008-09-29  Bruno Haible  <bruno@clisp.org>
47179
47180         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47181
47182 2008-09-29  Bruno Haible  <bruno@clisp.org>
47183
47184         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47185         Set LIBSOCKET instead of augmenting LIBS.
47186         * modules/sockets (Link): New section.
47187         * modules/sockets-tests (test_sockets_LDADD): New variable.
47188         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47189         * modules/poll-tests (test_poll_LDADD): New variable.
47190         * NEWS: Document the change.
47191
47192 2008-09-29  Bruno Haible  <bruno@clisp.org>
47193
47194         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47195         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47196         ARPA_INET_H directly.
47197         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47198
47199 2008-09-28  Bruno Haible  <bruno@clisp.org>
47200
47201         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47202         from gl_HEADER_SYS_SOCKET.
47203         (gl_HEADER_SYS_SOCKET): Invoke it.
47204         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47205
47206 2008-09-28  Bruno Haible  <bruno@clisp.org>
47207
47208         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47209         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47210         Needed on OSF/1 4.0.
47211
47212 2008-09-28  Bruno Haible  <bruno@clisp.org>
47213
47214         Override open more carefully.
47215         * lib/open.c (orig_open): New function.
47216         (rpl_open): Use orig_open instead of open.
47217         * lib/fcntl.in.h: Add special invocation convention.
47218         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47219         (gl_FUNC_OPEN): Invoke it.
47220
47221         Override freopen more carefully.
47222         * lib/freopen.c (orig_freopen): New function.
47223         (rpl_freopen): Use orig_freopen instead of freopen.
47224         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47225         (gl_FUNC_FREOPEN): Invoke it.
47226
47227         Override fopen more carefully.
47228         * lib/fopen.c (orig_fopen): New function.
47229         (rpl_fopen): Use orig_fopen instead of fopen.
47230         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47231         (gl_FUNC_FOPEN): Invoke it.
47232         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47233
47234 2008-09-28  Bruno Haible  <bruno@clisp.org>
47235
47236         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47237         SIGPIPE.
47238
47239 2008-09-28  Bruno Haible  <bruno@clisp.org>
47240
47241         * tests/test-sigaction.c (handler, main): Disable the check whether
47242         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47243         glibc systems with LinuxThreads.
47244
47245 2008-09-28  Bruno Haible  <bruno@clisp.org>
47246
47247         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47248
47249         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47250         with AIX xlc.
47251         * lib/fcntl.in.h (open): Likewise.
47252         Reported by Rainer Tammer <tammer@tammer.net>.
47253
47254 2008-09-28  Bruno Haible  <bruno@clisp.org>
47255
47256         * modules/posix_spawnp-tests: New file.
47257         * tests/test-posix_spawn.c: New file.
47258         * tests/test-posix_spawn.in.sh: New file.
47259
47260         New module 'posix_spawnp'.
47261         * modules/posix_spawnp: New file.
47262         * lib/spawnp.c: New file, from GNU libc with modifications.
47263         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47264
47265         New module 'posix_spawn'.
47266         * modules/posix_spawn: New file.
47267         * lib/spawn.c: New file, from GNU libc with modifications.
47268         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47269
47270         New module 'posix_spawnattr_destroy'.
47271         * modules/posix_spawnattr_destroy: New file.
47272         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47273         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47274         module.
47275
47276         New module 'posix_spawnattr_setsigmask'.
47277         * modules/posix_spawnattr_setsigmask: New file.
47278         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47279         modifications.
47280         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47281         new module.
47282
47283         New module 'posix_spawnattr_getsigmask'.
47284         * modules/posix_spawnattr_getsigmask: New file.
47285         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47286         modifications.
47287         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47288         new module.
47289
47290         New module 'posix_spawnattr_setsigdefault'.
47291         * modules/posix_spawnattr_setsigdefault: New file.
47292         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47293         modifications.
47294         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47295         new module.
47296
47297         New module 'posix_spawnattr_getsigdefault'.
47298         * modules/posix_spawnattr_getsigdefault: New file.
47299         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47300         modifications.
47301         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47302         new module.
47303
47304         New module 'posix_spawnattr_setschedpolicy'.
47305         * modules/posix_spawnattr_setschedpolicy: New file.
47306         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47307         modifications.
47308         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47309         new module.
47310
47311         New module 'posix_spawnattr_getschedpolicy'.
47312         * modules/posix_spawnattr_getschedpolicy: New file.
47313         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47314         modifications.
47315         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47316         new module.
47317
47318         New module 'posix_spawnattr_setschedparam'.
47319         * modules/posix_spawnattr_setschedparam: New file.
47320         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47321         modifications.
47322         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47323         new module.
47324
47325         New module 'posix_spawnattr_getschedparam'.
47326         * modules/posix_spawnattr_getschedparam: New file.
47327         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47328         modifications.
47329         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47330         new module.
47331
47332         New module 'posix_spawnattr_setpgroup'.
47333         * modules/posix_spawnattr_setpgroup: New file.
47334         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47335         modifications.
47336         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47337         module.
47338
47339         New module 'posix_spawnattr_getpgroup'.
47340         * modules/posix_spawnattr_getpgroup: New file.
47341         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47342         modifications.
47343         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47344         module.
47345
47346         New module 'posix_spawnattr_setflags'.
47347         * modules/posix_spawnattr_setflags: New file.
47348         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47349         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47350         module.
47351
47352         New module 'posix_spawnattr_getflags'.
47353         * modules/posix_spawnattr_getflags: New file.
47354         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47355         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47356         module.
47357
47358         New module 'posix_spawnattr_init'.
47359         * modules/posix_spawnattr_init: New file.
47360         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47361         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47362         module.
47363
47364         New module 'posix_spawn_file_actions_destroy'.
47365         * modules/posix_spawn_file_actions_destroy: New file.
47366         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47367         modifications.
47368         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47369         the new module.
47370
47371         New module 'posix_spawn_file_actions_addopen'.
47372         * modules/posix_spawn_file_actions_addopen: New file.
47373         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47374         modifications.
47375         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47376         the new module.
47377
47378         New module 'posix_spawn_file_actions_adddup2'.
47379         * modules/posix_spawn_file_actions_adddup2: New file.
47380         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47381         modifications.
47382         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47383         the new module.
47384
47385         New module 'posix_spawn_file_actions_addclose'.
47386         * modules/posix_spawn_file_actions_addclose: New file.
47387         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47388         modifications.
47389         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47390         the new module.
47391
47392         New module 'posix_spawn_file_actions_init'.
47393         * modules/posix_spawn_file_actions_init: New file.
47394         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47395         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47396         new module.
47397
47398         New module 'posix_spawn-internal'.
47399         * modules/posix_spawn-internal: New file.
47400         * lib/spawn_int.h: New file, from GNU libc with modifications.
47401         * lib/spawni.c: New file, from GNU libc with modifications.
47402         * m4/posix_spawn.m4: New file.
47403
47404         New module 'spawn'.
47405         * modules/spawn: New file.
47406         * lib/spawn.in.h: New file, from GNU libc with modifications.
47407         * m4/spawn_h.m4: New file.
47408         * doc/posix-headers/spawn.texi: Mention the new module.
47409
47410 2008-09-28  Bruno Haible  <bruno@clisp.org>
47411
47412         * modules/sched-tests: New file.
47413         * tests/test-sched.c: New file.
47414
47415         New module 'sched'.
47416         * modules/sched: New file.
47417         * lib/sched.in.h: New file.
47418         * m4/sched_h.m4: New file.
47419         * doc/posix-headers/sched.texi: Mention the new module.
47420
47421 2008-09-27  Eric Blake  <ebb9@byu.net>
47422
47423         Fix previous patch, and tweak references to $0.
47424         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47425         (func_version, func_gnulib_dir): Don't call this program
47426         gnulib-tool.
47427         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47428         with using $0 in function.
47429         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47430         (func_fatal_error): Reuse the name the user invoked us with.
47431
47432 2008-09-27  Bruno Haible  <bruno@clisp.org>
47433
47434         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47435         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47436         (gl_ICONV_H): Not here.
47437         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47438         instead of assigning ICONV_H directly.
47439
47440         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47442         WCHAR_H directly.
47443
47444 2008-09-27  Bruno Haible  <bruno@clisp.org>
47445
47446         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47447         * modules/arpa_inet (Depends-on): Add link-warning.
47448         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47449         * modules/unistd (Makefile.am): Likewise.
47450
47451 2008-09-26  Bruno Haible  <bruno@clisp.org>
47452
47453         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47454         variables.
47455         (func_version): Essentially copied from gnulib-tool.
47456         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47457         func_readlink): Copied from gnulib-tool.
47458
47459 2008-09-26  Bruno Haible  <bruno@clisp.org>
47460
47461         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47462         invoking git-version-gen.
47463
47464 2008-09-26  Bruno Haible  <bruno@clisp.org>
47465
47466         * posix-modules: Update to directory names changed on 2008-01-19.
47467         Remove commas in output before splitting into words. No more need to
47468         avoid 'ftruncate' since 2007-02-19.
47469
47470 2008-09-26  Bruno Haible  <bruno@clisp.org>
47471
47472         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47473
47474 2008-09-26  Bruno Haible  <bruno@clisp.org>
47475
47476         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47477         * modules/fwriteerror (Depends-on): Add errno.
47478
47479 2008-09-26  Bruno Haible  <bruno@clisp.org>
47480
47481         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47482         * tests/test-vc-list-files-cvs.sh: Likewise.
47483
47484 2008-09-26  Bruno Haible  <bruno@clisp.org>
47485
47486         * doc/posix-headers/sys_resource.texi: Reorder items.
47487
47488 2008-09-26  Jim Meyering  <meyering@redhat.com>
47489
47490         fts: tweak inode comparison function
47491         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47492         inode numbers, as documented.
47493
47494         fts: sort dirent entries on inode number before traversing
47495         This avoids a quadratic, seek-related performance penalty when
47496         operating on a directory containing many entries (measurable at 10k;
47497         3.5 hours at 2 million entries with a cold cache) on certain types
47498         of file systems, including ext3 and ext4, but not tmpfs.
47499         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47500         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47501         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47502         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47503         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47504         (fts_build): Set the stat.st_ino member from D_INO.
47505         If it is likely to be useful, sort dirent entries on inode number.
47506
47507         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47508         and the struct statfs.f_type member.
47509         * modules/fts (Depends-on): Add d-ino.
47510
47511 2008-09-26  Bruno Haible  <bruno@clisp.org>
47512
47513         * modules/sigpipe-die (Depends-on): Add sigpipe.
47514
47515         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47516         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47517         and GNULIB_STDIO_H_SIGPIPE are set.
47518         * lib/stdio-write.c: New file.
47519         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47520         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47521         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47522         REPLACE_STDIO_WRITE_FUNCS.
47523         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47524         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47525         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47526         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47527         * modules/stdio (Files): Add lib/stdio-write.c.
47528         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47529         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47530         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47531         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47532         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47533         REPLACE_FPRINTF_POSIX.
47534         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47535         REPLACE_PRINTF_POSIX.
47536         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47537         REPLACE_VFPRINTF_POSIX.
47538         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47539         REPLACE_VPRINTF_POSIX.
47540         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47541         SIGPIPE issue.
47542         * doc/posix-functions/fputc.texi: Likewise.
47543         * doc/posix-functions/fputs.texi: Likewise.
47544         * doc/posix-functions/fwrite.texi: Likewise.
47545         * doc/posix-functions/printf.texi: Likewise.
47546         * doc/posix-functions/putc.texi: Likewise.
47547         * doc/posix-functions/putchar.texi: Likewise.
47548         * doc/posix-functions/puts.texi: Likewise.
47549         * doc/posix-functions/vfprintf.texi: Likewise.
47550         * doc/posix-functions/vprintf.texi: Likewise.
47551
47552         * modules/safe-write (Depends-on): Add write.
47553
47554         * modules/sigpipe-tests: New file.
47555         * tests/test-sigpipe.c: New file.
47556         * tests/test-sigpipe.sh: New file.
47557
47558         * modules/write: New file.
47559         * lib/unistd.in.h: Include <sys/types.h>.
47560         (write): New declaration.
47561         * lib/write.c: New file.
47562         * m4/write.m4: New file.
47563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47564         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47565         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47566         GNULIB_WRITE, REPLACE_WRITE.
47567         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47568         and the SIGPIPE issue.
47569
47570         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47571         (raise): New declaration.
47572         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47573         (ext_signal): New function.
47574         (rpl_raise): New function.
47575         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47576         GNULIB_SIGNAL_H_SIGPIPE.
47577         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47578         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47579
47580         * modules/sigpipe: New file.
47581         * m4/sigpipe.m4: New file.
47582
47583 2008-09-25  Derek Price  <derek@ximbiot.com>
47584             Bruno Haible  <bruno@clisp.org>
47585
47586         * gnulib-tool (func_import): Report all license incompatibilities, not
47587         just the first one.
47588
47589 2008-09-25  Bruno Haible  <bruno@clisp.org>
47590
47591         * gnulib-tool (func_import): When computing the edits, consider not
47592         only the Makefile.ams that exist but also those that will be generated.
47593
47594 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47595
47596         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47597         fixes gnulib-tool --test warning about duplicate dependency.
47598
47599 2008-09-25  Bruno Haible  <bruno@clisp.org>
47600
47601         * gnulib-tool: Don't ask the user to perform edits in the generated
47602         Makefile.ams.
47603         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47604         apply to the Makefile.am being generated.
47605         (func_emit_tests_Makefile_am): Execute edits that apply to the
47606         Makefile.am being generated.
47607         (func_import): Setup list of Makefile.am edits before emitting the
47608         Makefile.ams, not at the end.
47609         (func_create_testdir): Update.
47610         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47611
47612 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47613
47614         * gnulib-tool (func_import): Store the --tests-base option in the
47615         comment in gnulib-cache.m4.
47616
47617 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47618
47619         * NEWS: Document increased portability that sys_select now provides.
47620
47621         * lib/sys_select.in.h: Install select wrapper.
47622         * lib/sys_socket.in.h: Use more descriptive name when there is no
47623         select wrapper.
47624         * lib/winsock-select.c: New.
47625         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47626         Require gl_HEADER_SYS_SOCKET.
47627         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47628         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47629         * tests/test-sys_select.c: Add functional tests.
47630
47631 2008-09-24  Eric Blake  <ebb9@byu.net>
47632
47633         open, fopen: close fd leak in last patch
47634         * lib/open.c (rpl_open): Close fd before returning error.
47635         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47636         * doc/posix-functions/open.texi (open): Document that Irix also
47637         has the bug.
47638         * doc/posix-functions/fopen.texi (fopen): Likewise.
47639         Reported by Paolo Bonzini.
47640
47641 2008-09-24  Bruno Haible  <bruno@clisp.org>
47642
47643         Ensure that a filename ending in a slash cannot be used to access a
47644         non-directory.
47645         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47646         to check whether it's really a directory.
47647         * lib/fopen.c: Include fcntl.h, unistd.h.
47648         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47649         and fdopen().
47650         * modules/fopen (Depends-on): Add unistd.
47651         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47652         * tests/test-fopen.c (main): Likewise.
47653         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47654         * doc/posix-functions/fopen.texi: Likewise.
47655         Reported by Eric Blake.
47656
47657 2008-09-23  Eric Blake  <ebb9@byu.net>
47658
47659         c-stack: avoid compiler optimizations when provoking overflow
47660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47661         recursion harder to optimize, to ensure a stack overflow occurs.
47662         * tests/test-c-stack.c (recurse): Likewise.
47663         Borrowed from libsigsegv.
47664
47665         c-stack: work around Irix sigaltstack bug
47666         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47667         whether sigaltstack uses wrong end of stack_t (copied in part from
47668         libsigsegv).
47669         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47670         Irix bug, without requiring an over-allocation.
47671         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47672         bug.
47673
47674         fopen: document mingw bug on directories
47675         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47676         not allowing a stream visiting a directory, even though reading
47677         from such a stream is not portable.
47678
47679 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47680
47681         * lib/poll.c: Rewrite.
47682         * modules/poll: Depend on alloca.
47683
47684 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47685
47686         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47687         instead define prototypes for a full set of wrappers.  Ensure
47688         that Cygwin does not use the compatibility code, which is only
47689         for MinGW.
47690         * lib/winsock.c: New.
47691         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47692         * modules/sys_socket: Add lib/winsock.c.
47693
47694         * modules/poll-tests: Add errno and perror.
47695         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47696
47697 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47698
47699         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47700
47701 2008-09-23  Bruno Haible  <bruno@clisp.org>
47702
47703         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47704         * doc/glibc-functions/*: Likewise.
47705
47706 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47707
47708         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47709         success.
47710
47711 2008-09-22  Eric Blake  <ebb9@byu.net>
47712             Bruno Haible  <bruno@clisp.org>
47713
47714         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47715         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47716         supply %A but mishandle pseudo-NaN.
47717         Reported by Simon Josefsson.
47718
47719 2008-09-21  Bruno Haible  <bruno@clisp.org>
47720
47721         * tests/test-lock.c (main): Tweak skip message.
47722         * tests/test-tls.c (main): Likewise.
47723
47724 2008-09-21  Bruno Haible  <bruno@clisp.org>
47725
47726         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47727         whether 'struct sigaction' has sa_sigaction here...
47728         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47729         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47730
47731 2008-09-21  Bruno Haible  <bruno@clisp.org>
47732
47733         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47734         section.
47735         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47736         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47737         the new section.
47738         (Support for obsolete systems lacking POSIX:2001): New section.
47739         (String handling <string.h>): Move strdup to the new section.
47740         Suggested by Simon Josefsson and Paolo Bonzini.
47741
47742 2008-09-21  Bruno Haible  <bruno@clisp.org>
47743
47744         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47745         exponents in %e and %g results on 'long double'. Needed for mingw's
47746         improved *printf functions.
47747         * tests/test-vasprintf-posix.c (test_function): Likewise.
47748         * tests/test-snprintf-posix.h (test_function): Likewise.
47749         * tests/test-sprintf-posix.h (test_function): Likewise.
47750         Reported by Eric Blake.
47751
47752 2008-09-21  Bruno Haible  <bruno@clisp.org>
47753
47754         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47755         * tests/test-sprintf-posix.h (test_function): Likewise.
47756
47757 2008-09-21  Bruno Haible  <bruno@clisp.org>
47758
47759         * modules/getpass (Depends-on): Add strdup-posix.
47760
47761         New module 'strdup-posix'.
47762         * modules/strdup-posix: New file.
47763         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47764         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47766         REPLACE_STRDUP.
47767         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47768         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47770         strdup-posix.
47771
47772         * modules/strdup (Depends-on): Remove malloc-posix.
47773
47774 2008-09-20  Bruno Haible  <bruno@clisp.org>
47775
47776         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47777         Wildenhues.
47778
47779 2008-09-20  Bruno Haible  <bruno@clisp.org>
47780
47781         Ensure that wint_t gets defined on IRIX 5.3.
47782         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47783         * lib/wctype.in.h (wint_t): Likewise.
47784         (__wctype_wint_t): Remove type.
47785         (isw*): Use wint_t instead of __wctype_wint_t.
47786         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47787         * modules/wchar (Files): Add m4/wint_t.m4.
47788         (Makefile.am): Substitute HAVE_WINT_T.
47789         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47790         * tests/test-wctype.c: Check that wint_t is defined.
47791         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47792         * doc/posix-headers/wctype.texi: Likewise.
47793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47794
47795 2008-09-18  Bruno Haible  <bruno@clisp.org>
47796
47797         * gnulib-tool (func_exit): Update comment.
47798
47799 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47800
47801         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47802         assumes strdup exists and does not depend on strdup to return
47803         ENOMEM on out of memory conditions.
47804
47805 2008-09-18  Bruno Haible  <bruno@clisp.org>
47806
47807         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47808         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47809         digits for the exponent.
47810
47811 2008-09-18  Jim Meyering  <meyering@redhat.com>
47812             Bruno Haible  <bruno@clisp.org>
47813
47814         * lib/vasnprintf.c (decimal_point_char): Define also if
47815         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47816
47817 2008-09-16  Bruno Haible  <bruno@clisp.org>
47818         and Eric Blake  <ebb9@byu.net>
47819
47820         vasnprintf: support Irix 5.3
47821         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47822         that mishandle long double infinity.
47823         Reported by Tom G. Christensen.
47824
47825 2008-09-16  Bruno Haible  <bruno@clisp.org>
47826
47827         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47828         Solaris 9.
47829         * doc/glibc-functions/alphasort.texi: Likewise.
47830         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47831
47832 2008-09-16  Jim Meyering  <meyering@redhat.com>
47833
47834         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47835         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47836         a umask modification leak out of a subshell.  Otherwise, the
47837         opensolaris /bin/sh would be accepted and thus cause unwarranted
47838         failures in the coreutils test suite.
47839
47840 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47841
47842         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47843         to succeed.
47844
47845 2008-09-16  Jim Meyering  <meyering@redhat.com>
47846
47847         avoid spurious test failure when library is built without ACL support
47848         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47849         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47850         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47851         * tests/test-copy-acl.sh: Likewise.
47852
47853 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47854
47855         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47856         based on character occurrence counts.
47857
47858 2008-09-15  Eric Blake  <ebb9@byu.net>
47859
47860         tests: avoid some compiler warnings
47861         * tests/test-memchr.c (main): Pass NULL indirectly.
47862         * tests/test-closein.c (main): Avoid unused variable.
47863
47864 2008-09-15  Bruno Haible  <bruno@clisp.org>
47865
47866         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47867         are missing on OpenBSD 4.0 individually.
47868         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47869
47870 2008-09-15  Bruno Haible  <bruno@clisp.org>
47871
47872         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47873         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47874         * doc/posix-functions/perror.texi: Likewise.
47875         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47876         is missing.
47877         Reported by Eric Blake.
47878
47879         * lib/errno.in.h: Use replacement values >= 2000.
47880         Reported by Eric Blake.
47881
47882 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47883
47884         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47885         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47886         limit.
47887         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47888         compareseq was aborted.
47889
47890 2008-09-14  Bruno Haible  <bruno@clisp.org>
47891
47892         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47893         yvec_edit_count.
47894         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47895         (fstrcmp_bounded): Simplify result computation accordingly.
47896
47897 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47898
47899         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47900         (fstrcmp): Define in terms of fstrcmp_bounded.
47901         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47902         lower_bound argument.
47903         Return quickly if the result is certainly < lower_bound.
47904         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47905
47906 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47907
47908         * lib/diffseq.h (EARLY_ABORT): New macro.
47909         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47910         evaluates to true.
47911
47912 2008-09-14  Bruno Haible  <bruno@clisp.org>
47913
47914         * modules/perror-tests: New file.
47915         * tests/test-perror.sh: New file.
47916         * tests/test-perror.c: New file.
47917
47918         New module 'perror'.
47919         * lib/stdio.in.h (perror): New declaration.
47920         * lib/perror.c: New file.
47921         * m4/perror.m4: New file.
47922         * modules/perror: New file.
47923         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47924         * doc/posix-functions/perror.texi: Mention the perror module.
47925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47926         REPLACE_PERROR.
47927         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47928         REPLACE_PERROR.
47929
47930 2008-09-14  Bruno Haible  <bruno@clisp.org>
47931
47932         * modules/stdio (Makefile.am): Reorder to match the order in
47933         lib/stdio.in.h.
47934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47935
47936 2008-09-13  Bruno Haible  <bruno@clisp.org>
47937
47938         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47939
47940 2008-09-13  Bruno Haible  <bruno@clisp.org>
47941
47942         Extend strerror to cover the added errno values.
47943         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47944         (rpl_strerror): Provide error messages for the added errno values and
47945         for the WSA* values.
47946         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47947         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47948         strerror.
47949         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47950         * modules/strerror (Depends-on): Add errno.
47951         * doc/posix-functions/strerror.texi: Document the change.
47952         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47953         and EOVERFLOW.
47954
47955 2008-09-13  Bruno Haible  <bruno@clisp.org>
47956
47957         * modules/EOVERFLOW: Remove file.
47958         * m4/eoverflow.m4: Remove file.
47959         * modules/EOVERFLOW-tests: Remove file.
47960         * tests/test-EOVERFLOW.c: Remove file.
47961         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47962         * modules/ftell (Depends-on): Likewise.
47963         * modules/getdelim (Depends-on): Likewise.
47964         * modules/getugroups (Depends-on): Likewise.
47965         * modules/poll (Depends-on): Likewise.
47966         * modules/snprintf (Depends-on): Likewise.
47967         * modules/sprintf-posix (Depends-on): Likewise.
47968         * modules/vasnprintf (Depends-on): Likewise.
47969         * modules/vasprintf (Depends-on): Likewise.
47970         * modules/vfprintf-posix (Depends-on): Likewise.
47971         * modules/vsnprintf (Depends-on): Likewise.
47972         * modules/vsprintf-posix (Depends-on): Likewise.
47973         * modules/xvasprintf (Depends-on): Likewise.
47974         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47975         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47976         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47977         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47978         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47979         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47980         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47981         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47982         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47983         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47984         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47985         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47986         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47987         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47988         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47989         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47990         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47991         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47992         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47993         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47994         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47995         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47996         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47997         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47998         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47999         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48000         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48001         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48002         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48003         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48004         * MODULES.html.sh: Remove EOVERFLOW.
48005         * NEWS: Mention the change.
48006
48007 2008-09-13  Bruno Haible  <bruno@clisp.org>
48008
48009         * modules/errno-tests: New file.
48010         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48011
48012         * lib/errno.in.h: New file.
48013         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48014         * modules/errno: New file.
48015         * doc/posix-headers/errno.texi: Update documentation.
48016         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48017
48018 2008-09-13  Bruno Haible  <bruno@clisp.org>
48019
48020         * tests/test-poll.c: Use #if for native Windows, rather than testing
48021         __MSVCRT__.
48022
48023 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48024             Bruno Haible  <bruno@clisp.org>
48025
48026         * lib/glob.c: Don't include <pwd.h> on native Windows.
48027         (WINDOWS32): New macro.
48028         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48029
48030 2008-09-13  Bruno Haible  <bruno@clisp.org>
48031
48032         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48033         (ETIMEDOUT): Remove macro.
48034         (glthread_cond_timedwait_multithreaded): New declaration.
48035         (glthread_cond_timedwait): Use it.
48036         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48037         (glthread_cond_timedwait_multithreaded): New function.
48038
48039 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48040
48041         * modules/poll-tests: Do not check for io.h.
48042         * tests/test-poll.c: Check for __MSVCRT__ instead.
48043
48044 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48045
48046         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48047         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48048         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48049
48050 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48051
48052         * modules/poll-tests: New.
48053         * tests/test-poll.c: New.
48054
48055 2008-09-12  Eric Blake  <ebb9@byu.net>
48056
48057         frexp: test for NetBSD failure on -0.0
48058         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48059         not all, bugs from NetBSD 3.0 have been fixed.
48060         * doc/posix-functions/frexp.texi (frexp): Document bug.
48061         Reported by Thomas Klausner.
48062
48063         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48064         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48065         literal -0.0.
48066         Reported by Jonathan C. Patschke <jp@centtech.com>.
48067
48068 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48069
48070         * lib/glthread/cond.h: Use dummy implementation also if
48071         USE_WIN32_THREADS.
48072
48073 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48074
48075         * modules/fnmatch-posix (License): Change to LGPLv2+.
48076         * modules/fnmatch-gnu (License): Likewise.
48077
48078 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48079
48080         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48081
48082 2008-09-11  Jim Meyering  <meyering@redhat.com>
48083
48084         * users.txt: Add gtk-vnc.
48085
48086 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48087
48088         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48089         rotate amounts.
48090
48091         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48092         required for 16-bit and 8-bit rotates.
48093         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48094         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48095         UINT8_MAX instead of hard-coded constants.
48096         Suggested by Paul Eggert.
48097
48098 2008-09-07  Bruno Haible  <bruno@clisp.org>
48099
48100         * tests/test-striconveh.c (main): Check behaviour when converting from
48101         UTF-7.
48102
48103         Make striconveh work better with stateful encodings.
48104         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48105         that iconv does not increment the inptr when returning -1/EINVAL.
48106
48107 2008-09-07  Bruno Haible  <bruno@clisp.org>
48108
48109         * build-aux/config.rpath: Update according to libtool-2.2.6.
48110         * build-aux/config.libpath: Likewise.
48111
48112 2008-09-06  Bruno Haible  <bruno@clisp.org>
48113
48114         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48115         * lib/freadptr.c (freadptr): Likewise.
48116         * lib/freadseek.c (freadptrinc): Likewise.
48117         Reported by Simon Josefsson.
48118
48119 2008-09-06  Bruno Haible  <bruno@clisp.org>
48120
48121         * modules/freadptr (License): Change to LGPLv2+.
48122         * modules/freadseek (License): Likewise.
48123         Suggested by Eric Blake.
48124
48125         * modules/memchr2 (License): Change to LGPLv2+.
48126         Approved by Eric Blake.
48127
48128 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48129             Bruno Haible  <bruno@clisp.org>
48130
48131         Make gnulib-tool work with native 'sed' on AIX.
48132         * gnulib-tool (sed_noop): New variable.
48133         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48134         func_add_or_update, func_create_testdir): Use it to initialize sed
48135         script variables.
48136         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48137
48138 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48139             Bruno Haible  <bruno@clisp.org>
48140
48141         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48142         also works after #include directives.
48143
48144 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
48145
48146         getdate.y: reject an out-of-range timezone value
48147         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48148         the range [-24...+24].  When specified with only one or two digits,
48149         * tests/test-getdate.c: Tests for the fix.
48150         * doc/getdate.texi: Document this change.
48151
48152 2008-09-03  Bruno Haible  <bruno@clisp.org>
48153
48154         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48155
48156 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48157
48158         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48159         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48160         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48161         Blake <ebb9@byu.net>.
48162
48163         * tests/test-bitrotate.c: Add more test vectors.
48164
48165 2008-09-02  Eric Blake  <ebb9@byu.net>
48166
48167         vasnprintf-posix: handle large precision via %.*d
48168         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48169         when handling it ourselves.
48170         * tests/test-vasnprintf-posix.c (test_function): Add test.
48171         * tests/test-snprintf-posix.h (test_function): Likewise.
48172         * tests/test-sprintf-posix.h (test_function): Likewise.
48173         * tests/test-vasprintf-posix.c (test_function): Likewise.
48174         Reported by Alain Guibert.
48175
48176 2008-09-01  Eric Blake  <ebb9@byu.net>
48177
48178         c-stack: make configure-time check more robust
48179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48180         successful sigaction call.
48181         Reported by Tom G. Christensen.
48182
48183 2008-09-01  Bruno Haible  <bruno@clisp.org>
48184
48185         New module 'findprog-lgpl'.
48186         * modules/findprog-lgpl: New file.
48187         * lib/findprog-lgpl.c: New file.
48188         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48189         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48190         to decide whether to use strdup or xstrdup, concatenated_filename or
48191         xconcatenated_filename.
48192
48193 2008-09-01  Bruno Haible  <bruno@clisp.org>
48194
48195         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48196         'xconcat-filename' (GPL).
48197         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48198         (License): Change to LGPLv2+.
48199         * modules/xconcat-filename: New file.
48200         * lib/concat-filename.h (concatenated_filename): Change specification.
48201         (xconcatenated_filename): New declaration.
48202         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48203         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48204         memory situations.
48205         * lib/xconcat-filename.c: New file.
48206         * NEWS: Mention the change.
48207         * lib/findprog.c: Include concat-filename.h, not filename.h.
48208         (find_in_path): Use xconcatenated_filename instead of
48209         concatenated_filename.
48210         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48211         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48212         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48213         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48214         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48215         instead of concatenated_filename.
48216         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48217         (execute_java_class): Use xconcatenated_filename instead of
48218         concatenated_filename.
48219         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48220         * modules/javacomp (Depends-on): Likewise.
48221         * modules/javaexec (Depends-on): Likewise.
48222
48223 2008-09-01  Bruno Haible  <bruno@clisp.org>
48224
48225         Split module 'filename' into 'filename' and 'concat-filename'.
48226         * modules/filename: Keep only lib/filename.h.
48227         (License): Change to LGPLv2+.
48228         * modules/concat-filename: New file, extracted from modules/filename.
48229         * lib/filename.h (concatenated_filename): Remove declaration.
48230         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48231         * lib/concat-filename.c: Include concat-filename.h.
48232         * NEWS: Mention the change.
48233
48234 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48235
48236         * lib/bitrotate.h (rotl8, rotr8): Add.
48237
48238         * modules/bitrotate (configure.ac): Need
48239         AC_REQUIRE([AC_C_INLINE]).
48240         (Description): Mention stdint.h.  Reported by Bruno Haible
48241         <bruno@clisp.org>.
48242
48243         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48244         Paolo Bonzini <bonzini@gnu.org>.
48245
48246 2008-08-31  Bruno Haible  <bruno@clisp.org>
48247
48248         Assume Solaris specific bi-arch conventions on Solaris systems.
48249         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48250         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48251         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48252         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48253         like acl_libdirstem.
48254         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48255         acl_libdirstem.
48256         * NEWS: Mention the change.
48257         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48258
48259 2008-08-31  Jim Meyering  <meyering@redhat.com>
48260
48261         * lib/strftime.h: Add comments describing the two added arguments.
48262
48263         remove duplicate #include directives
48264         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48265         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48266
48267 2008-08-31  Bruno Haible  <bruno@clisp.org>
48268
48269         New module 'sigpipe-die'.
48270         * modules/sigpipe-die: New file.
48271         * lib/sigpipe-die.h: New file.
48272         * lib/sigpipe-die.c: New file.
48273         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48274
48275 2008-08-31  Bruno Haible  <bruno@clisp.org>
48276
48277         Don't override previously installed signal handlers.
48278         * lib/fatal-signal.c (saved_sigactions): New variable.
48279         (uninstall_handlers): Reset the signal to the saved handler, not
48280         to SIG_DFL (except when ignored).
48281         (install_handlers): Save the previous handlers.
48282
48283 2008-08-30  Bruno Haible  <bruno@clisp.org>
48284
48285         * gnulib-tool (func_reset_sigpipe): New function.
48286         (func_get_automake_snippet, func_modules_transitive_closure,
48287         func_import): Invoke it before a join command that reads from stdin,
48288         to avoid "echo: write error: Broken pipe" error messages on stderr.
48289         Reported by Sam Steingold <sds@gnu.org>.
48290
48291 2008-08-30  Bruno Haible  <bruno@clisp.org>
48292
48293         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48294         Code copied from m4/open.m4.
48295         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48296         access and the filename ends in a slash. Code copied from lib/open.c.
48297         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48298         * tests/test-fopen.c (main): Check against bug with trailing slash.
48299
48300 2008-08-29  Bruno Haible  <bruno@clisp.org>
48301
48302         Avoid some "gcc -pedantic" warnings.
48303         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48304         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48305         * lib/dirent.in.h: Likewise.
48306         * lib/fcntl.in.h: Likewise.
48307         * lib/float.in.h: Likewise.
48308         * lib/iconv.in.h: Likewise.
48309         * lib/inttypes.in.h: Likewise.
48310         * lib/locale.in.h: Likewise.
48311         * lib/math.in.h: Likewise.
48312         * lib/netinet_in.in.h: Likewise.
48313         * lib/search.in.h: Likewise.
48314         * lib/signal.in.h: Likewise.
48315         * lib/stdarg.in.h: Likewise.
48316         * lib/stdint.in.h: Likewise.
48317         * lib/stdio.in.h: Likewise.
48318         * lib/stdlib.in.h: Likewise.
48319         * lib/string.in.h: Likewise.
48320         * lib/strings.in.h: Likewise.
48321         * lib/sys_select.in.h: Likewise.
48322         * lib/sys_socket.in.h: Likewise.
48323         * lib/sys_stat.in.h: Likewise.
48324         * lib/sys_time.in.h: Likewise.
48325         * lib/sysexits.in.h: Likewise.
48326         * lib/time.in.h: Likewise.
48327         * lib/unistd.in.h: Likewise.
48328         * lib/wchar.in.h: Likewise.
48329         * lib/wctype.in.h: Likewise.
48330         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48331         * modules/fchdir (Makefile.am): Likewise.
48332         * modules/fcntl (Makefile.am): Likewise.
48333         * modules/float (Makefile.am): Likewise.
48334         * modules/iconv_open (Makefile.am): Likewise.
48335         * modules/inttypes (Makefile.am): Likewise.
48336         * modules/locale (Makefile.am): Likewise.
48337         * modules/math (Makefile.am): Likewise.
48338         * modules/netinet_in (Makefile.am): Likewise.
48339         * modules/search (Makefile.am): Likewise.
48340         * modules/signal (Makefile.am): Likewise.
48341         * modules/stdarg (Makefile.am): Likewise.
48342         * modules/stdint (Makefile.am): Likewise.
48343         * modules/stdio (Makefile.am): Likewise.
48344         * modules/stdlib (Makefile.am): Likewise.
48345         * modules/string (Makefile.am): Likewise.
48346         * modules/strings (Makefile.am): Likewise.
48347         * modules/sys_select (Makefile.am): Likewise.
48348         * modules/sys_socket (Makefile.am): Likewise.
48349         * modules/sys_stat (Makefile.am): Likewise.
48350         * modules/sys_time (Makefile.am): Likewise.
48351         * modules/sysexits (Makefile.am): Likewise.
48352         * modules/time (Makefile.am): Likewise.
48353         * modules/unistd (Makefile.am): Likewise.
48354         * modules/wchar (Makefile.am): Likewise.
48355         * modules/wctype (Makefile.am): Likewise.
48356         Reported by Reuben Thomas <rrt@sc3d.org>.
48357
48358 2008-08-29  Bruno Haible  <bruno@clisp.org>
48359
48360         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48361         any more.
48362
48363 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48364
48365         * MODULES.html.sh (Misc): Add bitrotate.
48366
48367         * modules/bitrotate: New file.
48368
48369         * lib/bitrotate.h: New file.
48370
48371         * modules/bitrotate-tests: New file.
48372
48373         * tests/test-bitrotate.c: New file.
48374
48375         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48376         on the bitrotate module.
48377
48378         * lib/arctwo.c: Use new bitrotate module.
48379
48380 2008-08-29  Jim Meyering  <meyering@redhat.com>
48381
48382         bootstrap: merge changes from coreutils
48383         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48384         of copied files.  Remove a kludge, now that this is fixed.
48385         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48386         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48387         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48388
48389 2008-08-29  Bruno Haible  <bruno@clisp.org>
48390
48391         * MODULES.html.sh: Remove --cvs-urls option.
48392
48393 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48394
48395         maint.mk: adjust to file name change
48396         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48397
48398 2008-08-28  Jim Meyering  <meyering@redhat.com>
48399
48400         * modules/getndelim2 (License): Relicense to LGPLv2+.
48401         Approved by Richard Stallman for the version of 1995, and by
48402         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48403
48404 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48405
48406         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48407         dummy if one is not available.  Do not touch them if
48408         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48409         (getc_maybe_unlocked): New.
48410         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48411
48412 2008-08-26  Eric Blake  <ebb9@byu.net>
48413
48414         doc/INSTALL: resync from autoconf
48415         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48416         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48417         moving...
48418         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48419         * INSTALL: Regenerate.
48420         * INSTALL.ISO: New file.
48421         * INSTALL.UTF-8: Likewise.
48422
48423 2008-08-26  Jim Meyering  <meyering@redhat.com>
48424
48425         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48426         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48427         these definitions conditional, so that they may be overridden, too.
48428
48429 2008-08-26  Bruno Haible  <bruno@clisp.org>
48430
48431         Generate INSTALL file variants with prettier quotes.
48432         * doc/Makefile (INSTALL_PRELUDE): New macro.
48433         (INSTALL): Use it.
48434         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48435
48436 2008-08-26  Bruno Haible  <bruno@clisp.org>
48437
48438         Run makeinfo in an English locale.
48439         * doc/Makefile (MAKEINFO): New variable.
48440
48441 2008-08-26  Bruno Haible  <bruno@clisp.org>
48442
48443         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48444         Suggested by Eric Blake.
48445
48446 2008-08-25  Bruno Haible  <bruno@clisp.org>
48447
48448         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48449
48450 2008-08-25  Eric Blake  <ebb9@byu.net>
48451
48452         c-stack: test that stack overflow can be caught
48453         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48454         that platform allows handling stack overflow; at least OS/2 EMX
48455         has sigaltstack, but crashes before transferring control to
48456         handler on stack overflow.
48457         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48458         check for HAVE_STACK_OVERFLOW_HANDLING.
48459         Reported by Elbert Pol.
48460
48461 2008-08-25  Bruno Haible  <bruno@clisp.org>
48462
48463         * doc/posix-functions/strftime.texi: Fix description of strftime
48464         module.
48465
48466 2008-08-24  Bruno Haible  <bruno@clisp.org>
48467
48468         * tests/uniwidth/test-uc_width2.c: New file.
48469         * tests/uniwidth/test-uc_width2.sh: New file.
48470         * modules/uniwidth/width-tests (Files): Add the new files.
48471         (TESTS): Add uniwidth/test-uc_width2.sh.
48472         (TESTS_ENVIRONMENT): New variable.
48473         (check_PROGRAMS): Add test-uc_width2.
48474         (test_uc_width2_SOURCES): New variable.
48475
48476         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48477         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48478         not 0x00AB.
48479         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48480
48481 2008-08-22  Eric Blake  <ebb9@byu.net>
48482
48483         test-lock, test-tls: mention why a test is skipped
48484         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48485         skipped.
48486         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48487
48488         count-one-bits: relax license
48489         * modules/count-one-bits (License): Relicense to LGPLv2+.
48490         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48491
48492 2008-08-22  Andreas Schwab  <schwab@suse.de>
48493
48494         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48495         Remove spurious space in assignment.
48496
48497 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48498
48499         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48500         Paul Eggert <eggert@CS.UCLA.EDU>.
48501
48502 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48503
48504         * modules/gettext: Add m4/threadlib.m4.
48505
48506 2008-08-19  Eric Blake  <ebb9@byu.net>
48507
48508         test-c-stack: fix compilation failure on FreeBSD 5.0
48509         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48510         headers before <sys/resource.h>.
48511         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48512         the bug.
48513         Reported by Nelson H. F. Beebe.
48514
48515         strverscmp: migrate from "strverscmp.h" to <string.h>
48516         * modules/string (Makefile.am): Add new hooks.
48517         * modules/strverscmp (Files): Remove strverscmp.h.
48518         (Depends-on): Add string.
48519         (configure.ac): Add indicator.
48520         (Include): Mention new header.
48521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48522         defaults.
48523         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48524         results.
48525         * lib/strverscmp.h: Delete.
48526         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48527         * tests/test-strverscmp.c (includes): Adjust client.
48528         * lib/check-version.c (includes): Likewise.
48529         * NEWS: Document the change.
48530
48531         strverscmp: add unit test
48532         * modules/strverscmp-tests: New file.
48533         * tests/test-strverscmp.c: Likewise.
48534
48535 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48536
48537         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48538         regarding Windows crypto stuff, from Mono.
48539
48540 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48541
48542         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48543         if present, for intel RND.  Return error on failures.
48544
48545 2008-08-18  Ben Pfaff  <blp@gnu.org>
48546
48547         gitlog-to-changelog: give better diagnostic for failed pipe-open
48548         * build-aux/gitlog-to-changelog: Improve error message: suggest
48549         that the version of Git may be too old.
48550
48551 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48552
48553         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48554         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48555
48556 2008-08-18  Bruno Haible  <bruno@clisp.org>
48557
48558         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48559         pthread_in_use().
48560
48561 2008-08-18  Bruno Haible  <bruno@clisp.org>
48562
48563         * lib/glthread/threadlib.c: Include <pthread.h>.
48564
48565 2008-08-18  Bruno Haible  <bruno@clisp.org>
48566
48567         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48568         glthread_recursive_lock_* macros.
48569         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48570         Fix syntax error.
48571
48572 2008-08-18  Bruno Haible  <bruno@clisp.org>
48573
48574         * lib/glthread/thread.c: Avoid forcing a context switch right after
48575         thread creation.
48576
48577 2008-08-17  Bruno Haible  <bruno@clisp.org>
48578
48579         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48580         * lib/glthread/thread.h: Provide Win32 specific implementation.
48581         * modules/thread (Files): Add lib/glthread/thread.c.
48582         (Depends-on): Add lock.
48583         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48584
48585 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48586
48587         New module 'yield'.
48588         * modules/yield: New file.
48589         * lib/glthread/yield.h: New file.
48590         * m4/yield.m4: New file.
48591         * MODULES.html.sh (Multithreading): Add yield.
48592
48593 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48594
48595         New module 'thread'.
48596         * modules/thread: New file.
48597         * lib/glthread/thread.h: New file.
48598         * m4/thread.m4: New file.
48599         * MODULES.html.sh (Multithreading): Add thread.
48600
48601 2008-08-17  Bruno Haible  <bruno@clisp.org>
48602
48603         * lib/glthread/lock.h: Include <stdlib.h> always.
48604         * lib/glthread/tls.h: Likewise.
48605         * lib/glthread/cond.h: Likewise.
48606
48607 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48608
48609         New module 'cond'.
48610         * modules/cond: New file.
48611         * lib/glthread/cond.h: New file.
48612         * lib/glthread/cond.c: New file.
48613         * m4/cond.m4: New file.
48614         * MODULES.html.sh (Multithreading): Add cond.
48615
48616 2008-08-16  Eric Blake  <ebb9@byu.net>
48617
48618         c-stack: fix regression on Irix 5.3 from 2008-06-21
48619         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48620         sa_sigaction...
48621         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48622         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48623         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48624         * modules/signal (Makefile.am): Use the value.
48625         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48626         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48627         * doc/posix-headers/signal.texi (signal.h): Document this
48628         portability issue.
48629         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48630         Reported by Tom G. Christensen.
48631
48632 2008-08-17  Bruno Haible  <bruno@clisp.org>
48633
48634         New module 'threadlib'.
48635         * modules/threadlib: New file.
48636         * lib/glthread/threadlib.c: New file, extracted from
48637         lib/glthread/lock.c.
48638         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48639         functions.
48640         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48641         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48642         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48643         macros.
48644         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48645         (gl_DISABLE_THREADS): Remove macro.
48646         * modules/lock (Files): Remove build-aux/config.rpath.
48647         (Depends-on): Remove havelib. Add threadlib.
48648         (configure.ac-early): Remove section.
48649         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48650         * modules/tls (Depends-on): Remove lock. Add threadlib.
48651         (Link): New section, copied from threadlib.
48652         * MODULES.html.sh (Multithreading): Add threadlib.
48653
48654 2008-08-14  Bruno Haible  <bruno@clisp.org>
48655
48656         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48657         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48658         glthread_rwlock_unlock, glthread_rwlock_destroy,
48659         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48660         glthread_recursive_lock_destroy): Define as macros always.
48661         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48662         glthread_lock_lock.
48663         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48664         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48665         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48666         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48667         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48668         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48669         (glthread_recursive_lock_lock_func): Renamed from
48670         glthread_recursive_lock_lock.
48671         (glthread_recursive_lock_unlock_func): Renamed from
48672         glthread_recursive_lock_unlock.
48673         (glthread_recursive_lock_destroy_func): Renamed from
48674         glthread_recursive_lock_destroy.
48675
48676 2008-08-14  Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/glthread/lock.h: Renamed from lib/lock.h.
48679         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48680         * lib/glthread/tls.h: Renamed from lib/tls.h.
48681         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48682         * lib/fstrcmp.c: Update includes.
48683         * lib/strsignal.c: Update includes.
48684         * modules/lock (Files, Makefile.am): Update.
48685         (Include): Change to "glthread/lock.h".
48686         * modules/tls (Files, Makefile.am): Update.
48687         (Include): Change to "glthread/tls.h".
48688         * tests/test-lock.c: Update includes.
48689         * tests/test-tls.c: Update includes.
48690         * NEWS: Mention the renamed header files.
48691
48692 2008-08-11  Jim Meyering  <meyering@redhat.com>
48693
48694         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48695
48696 2008-08-11  Eric Blake  <ebb9@byu.net>
48697
48698         test-c-stack: avoid C99-ism
48699         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48700         before statement.
48701         Reported by Alain Guibert.
48702
48703 2008-08-10  Jim Meyering  <meyering@redhat.com>
48704
48705         ensure that return value of uinttostr et al are not ignored
48706         * lib/inttostr.h (__GNUC_PREREQ): Define.
48707         (__attribute_warn_unused_result__): Define.
48708         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48709
48710 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48711
48712         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48713         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48714
48715 2008-08-07  Jim Meyering  <meyering@redhat.com>
48716
48717         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48718
48719         * modules/mkstemp (License): Relicense under LGPLv2+.
48720         * modules/tempname (License): Likewise.
48721
48722 2008-08-06  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/poll.c (poll): Further micro-optimization.
48725
48726 2008-08-06  Jim Meyering  <meyering@redhat.com>
48727
48728         inet_pton.c: use locale-independent tolower
48729         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48730         (inet_pton6): Use c_tolower rather than tolower.
48731         * modules/inet_pton (Depends-on): Add c-ctype.
48732
48733 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48734
48735         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48736         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48737
48738 2008-08-06  Jim Meyering  <meyering@redhat.com>
48739
48740         * modules/inet_pton (License): Relicense under LGPLv2+.
48741
48742 2008-08-03  Bruno Haible  <bruno@clisp.org>
48743
48744         Additional non-aborting API for lock and tls.
48745         * lib/lock.h: Include <errno.h>.
48746         (glthread_lock_init): New macro/function.
48747         (gl_lock_init): Define as wrapper around glthread_lock_init.
48748         (glthread_lock_lock): New macro/function.
48749         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48750         (glthread_lock_unlock): New macro/function.
48751         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48752         (glthread_lock_destroy): New macro/function.
48753         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48754         (glthread_rwlock_init): New macro/function.
48755         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48756         (glthread_rwlock_rdlock): New macro/function.
48757         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48758         (glthread_rwlock_wrlock): New macro/function.
48759         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48760         (glthread_rwlock_unlock): New macro/function.
48761         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48762         (glthread_rwlock_destroy): New macro/function.
48763         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48764         (glthread_recursive_lock_init): New macro/function.
48765         (gl_recursive_lock_init): Define as wrapper around
48766         glthread_recursive_lock_init.
48767         (glthread_recursive_lock_lock): New macro/function.
48768         (gl_recursive_lock_lock): Define as wrapper around
48769         glthread_recursive_lock_lock.
48770         (glthread_recursive_lock_unlock): New macro/function.
48771         (gl_recursive_lock_unlock): Define as wrapper around
48772         glthread_recursive_lock_unlock.
48773         (glthread_recursive_lock_destroy): New macro/function.
48774         (gl_recursive_lock_destroy): Define as wrapper around
48775         glthread_recursive_lock_destroy.
48776         (glthread_once): New macro/function.
48777         (gl_once): Define as wrapper around glthread_once.
48778         Update function declarations.
48779         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48780         glthread_rwlock_init. Return error code.
48781         (glthread_rwlock_rdlock_multithreaded): Renamed from
48782         glthread_rwlock_rdlock. Return error code.
48783         (glthread_rwlock_wrlock_multithreaded): Renamed from
48784         glthread_rwlock_wrlock. Return error code.
48785         (glthread_rwlock_unlock_multithreaded): Renamed from
48786         glthread_rwlock_unlock. Return error code.
48787         (glthread_rwlock_destroy_multithreaded): Renamed from
48788         glthread_rwlock_destroy. Return error code.
48789         (glthread_recursive_lock_init_multithreaded): Renamed from
48790         glthread_recursive_lock_init. Return error code.
48791         (glthread_recursive_lock_lock_multithreaded): Renamed from
48792         glthread_recursive_lock_lock. Return error code.
48793         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48794         glthread_recursive_lock_unlock. Return error code.
48795         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48796         glthread_recursive_lock_destroy. Return error code.
48797         (glthread_once_call): Make static.
48798         (glthread_once_multithreaded): Renamed from glthread_once.
48799         * lib/tls.h: Include <errno.h>.
48800         (glthread_tls_key_init): New macro/function.
48801         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48802         (glthread_tls_set): New macro/function.
48803         (gl_tls_set): Define as wrapper around glthread_tls_set.
48804         (glthread_tls_key_destroy): New macro/function.
48805         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48806         Update function declarations.
48807         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48808         glthread_tls_get.
48809         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48810
48811 2008-08-04  Eric Blake  <ebb9@byu.net>
48812
48813         gnumakefile: use space, not TAB, outside of targets
48814         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48815
48816 2008-08-02  Jim Meyering  <meyering@redhat.com>
48817
48818         getdate.y: avoid locale-dependent date parsing failure
48819         In Turkish locales, getdate would fail to recognize keywords
48820         containing a lowercase "i".  The solution is not to rely on
48821         locale-sensitive case-conversion.
48822         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48823         (lookup_word): Use c_toupper in place of toupper.
48824         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48825         Reported by Vefa Bicakci <bicave@superonline.com> in
48826         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48827         * modules/getdate (Depends-on): Add c-ctype.
48828
48829 2008-08-02  Bruno Haible  <bruno@clisp.org>
48830
48831         * gnulib-tool (func_import): When updating or creating a .gitignore
48832         file, prepend each added line with a slash, and ignore leading slashes
48833         from the existing lines.
48834         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48835
48836 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48837
48838         Portability fix for GNU make 3.79.1.
48839         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48840         versions do not understand.
48841
48842 2008-08-01  Bruno Haible  <bruno@clisp.org>
48843
48844         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48845         * tests/test-isnanf.h (zero): New variable.
48846         (main): Avoid literal -0.0f.
48847         * tests/test-isnand.h (zero): New variable.
48848         (main): Avoid literal -0.0.
48849         * tests/test-isnanl.h (zero): New variable.
48850         (main): Avoid literal -0.0L.
48851         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48852         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48853         -0.0, -0.0L.
48854         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48855         (test_signbitd): Avoid literal -0.0.
48856         (test_signbitl): Avoid literal -0.0L.
48857         * tests/test-ceilf1.c (zero): New variable.
48858         (main): Avoid literal -0.0f.
48859         * tests/test-ceill.c (zero): New variable.
48860         (main): Avoid literal -0.0L.
48861         * tests/test-floorf1.c (zero): New variable.
48862         (main): Avoid literal -0.0f.
48863         * tests/test-floorl.c (zero): New variable.
48864         (main): Avoid literal -0.0L.
48865         * tests/test-roundf1.c (zero): New variable.
48866         (main): Avoid literal -0.0f.
48867         * tests/test-round1.c (zero): New variable.
48868         (main): Avoid literal -0.0.
48869         * tests/test-roundl.c (zero): New variable.
48870         (main): Avoid literal -0.0L.
48871         * tests/test-truncf1.c (zero): New variable.
48872         (main): Avoid literal -0.0f.
48873         * tests/test-trunc1.c (zero): New variable.
48874         (main): Avoid literal -0.0.
48875         * tests/test-truncl.c (zero): New variable.
48876         (main): Avoid literal -0.0L.
48877         * tests/test-frexp.c (zero): New variable.
48878         (main): Avoid literal -0.0.
48879         * tests/test-frexpl.c (zero): New variable.
48880         (main): Avoid literal -0.0L.
48881         * tests/test-ldexpl.c (zero): New variable.
48882         (main): Avoid literal -0.0L.
48883         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48884         (zerod, zerol): New variables.
48885         (test_function): Avoid literals -0.0, -0.0L.
48886         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48887         (zerod, zerol): New variables.
48888         (test_function): Avoid literals -0.0, -0.0L.
48889         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48890         (zerod, zerol): New variables.
48891         (test_function): Avoid literals -0.0, -0.0L.
48892         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48893         (zerod, zerol): New variables.
48894         (test_function): Avoid literals -0.0, -0.0L.
48895         * tests/test-strtod.c (zero): New variable.
48896         (main): Avoid literal -0.0.
48897         Reported by Jonathan C. Patschke <jp@centtech.com>.
48898
48899 2008-07-31  Jim Meyering  <meyering@redhat.com>
48900
48901         sha256.h: correct definition of SHA224_DIGEST_SIZE
48902         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48903         Reported by Paulie Pena IV <paulie4@gmail.com>.
48904         Define as 224 / 8, rather than as a literal.
48905         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48906         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48907         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48908
48909 2008-07-31  Bruno Haible  <bruno@clisp.org>
48910
48911         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48912         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48913         Reported by Jonathan Patschke <jp@centtech.com>.
48914
48915 2008-07-31  Bruno Haible  <bruno@clisp.org>
48916
48917         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48918         Reported by Paolo Bonzini <bonzini@gnu.org>.
48919
48920 2008-07-30  Eric Blake  <ebb9@byu.net>
48921
48922         test-strtod: allow compilation without -lm
48923         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48924         Reported by Dennis Clarke <blastwave@gmail.com>.
48925
48926 2008-07-28  Jim Meyering  <meyering@redhat.com>
48927
48928         bootstrap: work also when there are no .po files in po/
48929         * build-aux/bootstrap (update_po_files): Complete the change
48930         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48931
48932 2008-07-27  Jim Meyering  <meyering@redhat.com>
48933
48934         * users.txt: Add zile.
48935
48936 2008-07-26  Ben Pfaff  <blp@gnu.org>
48937
48938         Add missing dependencies on new m4/exponent[fdl].m4 files.
48939         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48940         * modules/isnand-nolibm: Add m4/exponentd.m4.
48941         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48942         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48943         m4/isnan[fdl].m4, because the macros actually used moved.
48944         Reported by Jim Meyering.
48945
48946 2008-07-14  Ben Pfaff  <blp@gnu.org>
48947
48948         Add isinf module.
48949         * lib/isinf.c: New file.
48950         * lib/math.in.h: Define isinf macro if we have decided to replace
48951         it.
48952         * m4/isinf.m4: New file.
48953         * m4/math_h.m4: Initialize and substitute variables for isinf
48954         module.
48955         * modules/isinf: New file.
48956         * modules/isinf-tests: New file.
48957         * modules/math: Add substitutions for new module.
48958         * tests/test-isinf.c: New file.
48959         * doc/posix-functions/isinf.texi: Mention new module.
48960         * MODULES.html.sh: Mention new module.
48961
48962 2008-07-14  Ben Pfaff  <blp@gnu.org>
48963
48964         Factor out some macros for use by additional modules.
48965         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48966         exponentf.m4.
48967         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48968         exponentd.m4.
48969         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48970         file exponentl.m4.
48971         * m4/exponentf.m4: New file.
48972         * m4/exponentd.m4: New file.
48973         * m4/exponentl.m4: New file.
48974         * modules/isnanf: Use new file m4/exponentf.m4.
48975         * modules/isnand: Use new file m4/exponentd.m4.
48976         * modules/isnanl: Use new file m4/exponentl.m4.
48977
48978 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48979
48980         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48981         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48982         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48983         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48984
48985         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48986         readlink on platforms without PATH_MAX.
48987
48988 2008-07-21  Eric Blake  <ebb9@byu.net>
48989
48990         Warn, not fail, on stale version.
48991         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48992
48993         Don't allow installation with stale devel version number.
48994         * top/GNUmakefile (_is-install-target): New macro.
48995         (_curr-ver): Forbid installation with stale version number.
48996
48997 2008-07-20  Bruno Haible  <bruno@clisp.org>
48998
48999         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49000         TESTS_ENVIRONMENT.
49001         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49002
49003 2008-07-20  Bruno Haible  <bruno@clisp.org>
49004
49005         * lib/c-stack.h (c_stack_action): Add documentation.
49006         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49007
49008 2008-07-20  Bruno Haible  <bruno@clisp.org>
49009
49010         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49011         * modules/readlink (License): Likewise.
49012
49013 2008-07-17  Eric Blake  <ebb9@byu.net>
49014
49015         * modules/c-stack (Link): Fix typo.
49016
49017         Make c-stack use libsigsegv, when available.
49018         * modules/c-stack (Depends-on): Add libsigsegv.
49019         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49020         needed.
49021         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49022         (segv_handler, overflow_handler, c_stack_action)
49023         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49024         implementation when libsigsegv is available, but only when using
49025         the library is necessary.
49026         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49027         comment, explaining why XSI check fails on Linux.
49028         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49029         * tests/test-c-stack2.sh: Tweak skip message.
49030         * NEWS: Document new link-time requirements.
49031
49032 2008-07-16  Eric Blake  <ebb9@byu.net>
49033
49034         c-stack: Expose false positives when not using libsigsegv.
49035         * modules/c-stack-tests (Files): Expand test.
49036         * tests/test-c-stack.c (main): Add means to conditionally trigger
49037         non-overflow SIGSEGV.
49038         * tests/test-c-stack2.sh: New file.
49039
49040 2008-07-14  Bruno Haible  <bruno@clisp.org>
49041
49042         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49043         Reported by Eric Blake.
49044
49045 2008-07-14  Sam Steingold  <sds@gnu.org>
49046             Bruno Haible  <bruno@clisp.org>
49047
49048         New module libsigsegv.
49049         * modules/libsigsegv: New file.
49050         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49051         modifications.
49052         * MODULES.html.sh (Signal handling): New section.
49053
49054 2008-07-14  Bruno Haible  <bruno@clisp.org>
49055
49056         * modules/unictype/ctype-* (Description): Add the word "function".
49057         Improves the resulting doc in MODULES.html.
49058
49059 2008-07-12  Ben Pfaff  <blp@gnu.org>
49060
49061         Add longlong module.
49062         * modules/longlong: New file.
49063
49064 2008-07-12  Bruno Haible  <bruno@clisp.org>
49065
49066         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49067         to empty.
49068
49069 2008-07-10  Ben Pfaff  <blp@gnu.org>
49070
49071         Add isnan module.
49072         * doc/posix-functions/isnan.texi: Mention new module.
49073         * lib/math.in.h: Define isnan macro if we have decided to replace
49074         it.
49075         * m4/isnan.m4: New file.
49076         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49077         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49078         also.
49079         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49080         redundancy.
49081         * m4/math_h.m4: Initialize and substitute variables for isnan
49082         module.
49083         * modules/isnan: New file.
49084         * modules/isnan-tests: New file.
49085         * modules/math: Add substitutions for new module.
49086         * tests/test-isnan.c: New file.
49087         * MODULES.html.sh: Mention new module.
49088
49089 2008-07-10  Ben Pfaff  <blp@gnu.org>
49090
49091         Add isnanf module.
49092         * lib/isnanf.m4: New file.
49093         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49094         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49095         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49096         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49097         * modules/isnanf: New file.
49098         * modules/isnanf-tests: New file.
49099         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49100         files.
49101         * tests/test-isnanf-nolibm.c: factored most of its contents into
49102         new file tests/test-isnanf.h.
49103         * tests/test-isnanf.h: New file.
49104         * tests/test-isnanf.c: New file.
49105         * MODULES.html.sh: Mention new module.
49106         * doc/glibc-functions/isnanf.texi: Mention new module.
49107
49108 2008-07-10  Ben Pfaff  <blp@gnu.org>
49109
49110         Add isnand module.
49111         * lib/isnand.h: New file.
49112         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49113         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49114         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49115         functionality also.
49116         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49117         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49118         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49119         * modules/isnand: New file.
49120         * modules/isnand-tests: New file.
49121         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49122         files.
49123         * tests/test-isnand-nolibm.c: factored most of its contents into
49124         new file tests/test-isnand.h.
49125         * tests/test-isnand.h: New file.
49126         * tests/test-isnand.c: New file.
49127         * MODULES.html.sh: Mention new module.
49128
49129 2008-07-10  Ben Pfaff  <blp@gnu.org>
49130
49131         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49132         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49133         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49134         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49135         * modules/isnanf-nolibm: Update references to renamed files.
49136         * modules/isnand-nolibm: Likewise.
49137         * modules/isnanf-nolibm-tests: Likewise.
49138         * modules/isnand-nolibm-tests: Likewise.
49139         * lib/frexp.c: Likewise.
49140         * lib/isfinite.c: Likewise.
49141         * lib/signbitd.c: Likewise.
49142         * lib/signbitf.c: Likewise.
49143         * lib/vasnprintf.c: Likewise.
49144         * tests/test-ceilf1.c: Likewise.
49145         * tests/test-ceilf2.c: Likewise.
49146         * tests/test-floorf1.c: Likewise.
49147         * tests/test-floorf2.c: Likewise.
49148         * tests/test-frexp.c: Likewise.
49149         * tests/test-round1.c: Likewise.
49150         * tests/test-round2.c: Likewise.
49151         * tests/test-roundf1.c: Likewise.
49152         * tests/test-strtod.c: Likewise.
49153         * tests/test-trunc1.c: Likewise.
49154         * tests/test-trunc2.c: Likewise.
49155         * tests/test-truncf1.c: Likewise.
49156         * tests/test-truncf2.c: Likewise.
49157         * NEWS: Mention the renamed header files.
49158
49159 2008-07-11  Jim Meyering  <meyering@redhat.com>
49160
49161         vc-list-files: make the last-resort awk code more portable
49162         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49163         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49164         does not support it.
49165
49166 2008-07-10  Eric Blake  <ebb9@byu.net>
49167
49168         Work with tar's bootstrap.
49169         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49170         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49171         an m4 comment.
49172
49173 2008-07-09  Jim Meyering  <meyering@redhat.com>
49174
49175         posix-shell.m4: fix typo that made this test malfunction
49176         * m4/posix-shell.m4: Remove capitalization in variable name.
49177
49178 2008-07-08  Bruno Haible  <bruno@clisp.org>
49179
49180         * m4/onceonly.m4: Update comments.
49181         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49182
49183 2008-07-04  Jim Meyering  <meyering@redhat.com>
49184
49185         * users.txt: Add vc-dwim.
49186         (bison, coreutils): Use the gitweb URL.
49187
49188 2008-07-03  Jim Meyering  <meyering@redhat.com>
49189
49190         * users.txt: Add libffcall.  From Sam Steingold.
49191
49192 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
49193
49194         getdate.y: do not ignore TZ with relative day, month or year offset
49195         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49196         relative-date-handling, since otherwise, the latter would clobber the
49197         sole output (an updated Start value) of the tz-handling block.
49198         * tests/test-getdate.c: Tests for the fix
49199
49200 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49201
49202         Recognize 'foo_LIBRARIES += libgnu.a'.
49203         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49204         makefile snippet has already specified an installation location,
49205         also using '+='.
49206
49207 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
49208
49209         getdate.y: factor out common actions
49210         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49211         Use them in place of open-coded actions.
49212
49213 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49214
49215         Add self-test for getdate module.
49216         * modules/getdate-tests: New file.
49217         * tests/test-getdate.c: New file.
49218
49219 2008-06-29  Bruno Haible  <bruno@clisp.org>
49220
49221         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49222         .gitignore.
49223         Reported by Sylvain Beucler <beuc@beuc.net>.
49224
49225 2008-06-29  Bruno Haible  <bruno@clisp.org>
49226
49227         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49228         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49229
49230 2008-06-29  Bruno Haible  <bruno@clisp.org>
49231
49232         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49233         EXTRA_DIST.
49234         Reported by Sylvain Beucler <beuc@beuc.net>.
49235
49236 2008-06-26  Jim Meyering  <meyering@redhat.com>
49237
49238         make several modules depend on the "open" module
49239         This provides slightly increased consistency when opening-for-write
49240         the name of a non-directory spelled with a trailing slash.
49241         * modules/chdir-safer: Likewise.
49242         * modules/chown: Likewise.
49243         * modules/clean-temp: Likewise.
49244         * modules/copy-file: Likewise.
49245         * modules/fchdir: Likewise.
49246         * modules/fcntl-safer: Likewise.
49247         * modules/pipe: Likewise.
49248         * modules/utime: Likewise.
49249         Prompted by Eric Blake and Bruno Haible.
49250
49251 2008-06-24  Andreas Schwab  <schwab@suse.de>
49252
49253         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49254         literals can be used as initializers for global variables.
49255
49256 2008-06-23  Eric Blake  <ebb9@byu.net>
49257
49258         Make gnulib-cache.m4 easier to diff.
49259         * gnulib-tool (func_import): Allow newlines when reading cached
49260         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49261
49262 2008-06-23  Bruno Haible  <bruno@clisp.org>
49263
49264         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49265         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49266         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49267         m4/signalblocking.m4.
49268         (gl_PREREQ_SIGACTION): Don't invoke it.
49269         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49270         gl_PREREQ_SIG_HANDLER_H.
49271         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49272         Don't check for sigaction here.
49273
49274 2008-06-23  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49277         (install_handlers): Don't set the SA_RESETHAND flag.
49278
49279 2008-06-23  Bruno Haible  <bruno@clisp.org>
49280
49281         * m4/sigaction.m4: Comment fixes.
49282         * lib/signal.in.h: Likewise.
49283
49284 2008-06-23  Eric Blake  <ebb9@byu.net>
49285
49286         Fix typo.
49287         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49288
49289         Avoid SA_ namespace.
49290         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49291         Reported by Ralf Wildenhues.
49292
49293         Avoid test failure due to SA_RESTORER.
49294         * tests/test-sigaction.c (SA_MASK): New macro.
49295         (main): Avoid failing due to extension flags being set.
49296         Reported by Jim Meyering.
49297
49298         Revert use of sig-handler.h in sigprocmask.c.
49299         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49300         it requires the existence of struct sigaction.
49301         * lib/sigprocmask.c (handler_t): Restore typedef.
49302         (rpl_signal, old_handlers): Use local type.
49303
49304 2008-06-22  Bruno Haible  <bruno@clisp.org>
49305
49306         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49307         conditionally.
49308         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49309
49310 2008-06-22  Bruno Haible  <bruno@clisp.org>
49311
49312         * doc/posix-functions/siginterrupt.texi: Move note.
49313
49314         * lib/signal.in.h (SA_RESTART): New macro.
49315         * lib/sigaction.c: Update comment.
49316
49317         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49318
49319         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49320         (gl_PREREQ_SIGPROCMASK): Invoke it.
49321         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49322
49323         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49324
49325         * lib/sigprocmask.c: Update a comment.
49326
49327 2008-06-21  Eric Blake  <ebb9@byu.net>
49328
49329         Use sigaction module rather than signal().
49330         * modules/c-stack (Depends-on): Add sigaction.
49331         * modules/fatal-signal (Depends-on): Likewise.
49332         * modules/nanosleep (Depends-on): Likewise.
49333         * modules/sigprocmask (Files): Add sig-handler.h.
49334         * modules/sigaction (Files): Likewise.
49335         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49336         Eggert.
49337         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49338         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49339         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49340         (init_fatal_signals): Likewise.
49341         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49342         (siginterrupt): Delete fallback.
49343         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49344         instead.
49345         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49346         siginterrupt.
49347
49348         New module sigaction, for mingw.
49349         * modules/sigaction: New module...
49350         * modules/sigaction-tests: ...and its test.
49351         * m4/sigaction.m4: New file.
49352         * lib/sigaction.c: Likewise.
49353         * tests/test-sigaction.c: Likewise.
49354         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49355         * modules/signal (Makefile.am): Likewise.
49356         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49357         needed.
49358         * doc/posix-headers/signal.texi (signal.h): Mention provided
49359         types.
49360         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49361         that sigaction is preferable.
49362         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49363         module.
49364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49365         sigaction.
49366
49367         Improve robustness of sigprocmask by overriding signal.
49368         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49369         is in use.
49370         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49371         (SIGKILL, SIGSTOP): Provide fallbacks.
49372         (rpl_signal): Implement.
49373         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49374         signal can be called inside handlers.
49375
49376         Fix nanosleep module on mingw.
49377         * modules/nanosleep (Depends-on): Add sys_select.
49378         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49379
49380         Fix licensing of sigprocmask.
49381         * modules/raise (License): Relicense as LGPL.
49382
49383 2008-06-21  Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49386         result if it contains question marks.
49387         Reported by Michael Geng <linux@michaelgeng.de>.
49388
49389 2008-06-19  Bruno Haible  <bruno@clisp.org>
49390
49391         Fix CVS-ism.
49392         * doc/gnulib.texi: Include updated-stamp.texi.
49393         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49394         (updated-stamp.texi): New rule.
49395         (gnulib.info): Depend on it.
49396         * doc/.gitignore: Add updated-stamp.texi.
49397         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49398
49399 2008-06-19  Bruno Haible  <bruno@clisp.org>
49400
49401         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49402         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49403
49404 2008-06-19  Eric Blake  <ebb9@byu.net>
49405
49406         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49407         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49408         Reported by Stepan Kasal.
49409
49410 2008-06-18  Bruno Haible  <bruno@clisp.org>
49411
49412         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49413         Reported by Eric Blake.
49414
49415 2008-06-18  Eric Blake  <ebb9@byu.net>
49416
49417         Work around cygwin 1.5.25 strsignal bug.
49418         * tests/test-strsignal.c: Allow for const char *.
49419         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49420
49421 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49422
49423         * users.txt: Update URL to article and add author/date
49424         information.
49425
49426 2008-06-17  Bruno Haible  <bruno@clisp.org>
49427
49428         New macro gl_DISABLE_THREADS.
49429         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49430         if the user did not pass --enable-threads or --disable-threads option.
49431         (gl_DISABLE_THREADS): New macro.
49432         Reported by Eric Blake <ebb9@byu.net>.
49433
49434 2008-06-17  Bruno Haible  <bruno@clisp.org>
49435
49436         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49437         when the macro ignores it.
49438         Based on a patch by Eric Blake <ebb9@byu.net>.
49439
49440 2008-06-17  Bruno Haible  <bruno@clisp.org>
49441
49442         * modules/tls (License): Change to LGPLv2+.
49443         Reported by Eric Blake.
49444
49445 2008-06-17  Eric Blake  <ebb9@byu.net>
49446
49447         Simplify c-stack prerequisites.
49448         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49449         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49450         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49451         check.
49452         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49453         <sys/resource.h>.
49454
49455         Move c-stack test into testsuite.
49456         * modules/c-stack-tests: New file.
49457         * lib/c-stack.c [DEBUG]: Move test program...
49458         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49459         fail test if sigaltstack is lacking.
49460         * tests/test-c-stack.sh: New driver file.
49461
49462 2008-06-16  Eric Blake  <ebb9@byu.net>
49463
49464         Use raise module consistently.
49465         * modules/fatal-signal (Depends-on): Add raise.
49466         * modules/sigprocmask (Depends-on): Likewise.
49467         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49468         * lib/sigprocmask.c (sigprocmask): Likewise.
49469         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49470         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49471
49472         Fix compliance bug in sigpending.
49473         * lib/sigprocmask.c (sigpending): Return pending array via
49474         parameter, not return value.
49475
49476 2008-06-14  Eric Blake  <ebb9@byu.net>
49477
49478         Improve obstack-printf test code.
49479         * tests/test-obstack-printf.c (test_function): Fix comment, and
49480         simplify usage of obstack_* in macros.  Add a test for coverage.
49481         Reported by Bruno Haible.
49482
49483 2008-06-14  Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49486         array size as a constant, not as a const variable.
49487         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49488         AC_USE_SYSTEM_EXTENSIONS.
49489         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49490         Test whether the obstack_printf function actually exists.
49491         * modules/obstack-printf (Depends-on): Add extensions.
49492         (Include): Remove obstack.h.
49493         * modules/obstack-printf-posix (Depends-on): Add extensions.
49494         (Include): Remove obstack.h.
49495
49496 2008-06-13  Eric Blake  <ebb9@byu.net>
49497
49498         Add obstack-printf and obstack-printf-posix modules.
49499         * modules/obstack-printf: New file.
49500         * modules/obstack-printf-posix: Likewise.
49501         * MODULES.html.sh (Misc): Mention them.
49502         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49503         Likewise.
49504         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49505         Likewise.
49506         * modules/stdio (Makefile.am): Accomodate new modules.
49507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49508         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49509         Declare.
49510         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49511         functions.
49512         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49513         (gl_REPLACE_OBSTACK_PRINTF): New macros
49514         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49515         * tests/test-obstack-printf.c: New file.
49516         * modules/obstack-printf-tests: Likewise.
49517         * modules/obstack-printf-posix-tests: Likewise.
49518
49519 2008-06-11  Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49522         * lib/open.c: Include errno.h.
49523         (open): Fail when attempting to write to a file that has a trailing
49524         slash.
49525         * tests/test-open.c (main): Test against trailing slash bug.
49526         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49527
49528 2008-06-10  Bruno Haible  <bruno@clisp.org>
49529
49530         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49531         for $? to work inside the trap command, with various /bin/sh-s.
49532         * tests/test-vc-list-files-cvs.sh: Likewise.
49533
49534 2008-06-10  Bruno Haible  <bruno@clisp.org>
49535
49536         * lib/acl-internal.h: Don't include gettext.h here.
49537         * lib/set-mode-acl.c: Include gettext.h here.
49538         * lib/copy-acl.c: Likewise.
49539
49540 2008-06-10  Bruno Haible  <bruno@clisp.org>
49541
49542         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49543         * lib/wait-process.c (wait_subprocess): Likewise.
49544         * lib/execute.h (execute): Add termsigp argument.
49545         * lib/execute.c (execute): Likewise.
49546         * lib/csharpcomp.c (compile_csharp_using_pnet,
49547         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49548         * lib/csharpexec.c (execute_csharp_using_pnet,
49549         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49550         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49551         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49552         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49553         is_jikes_present): Update.
49554         * lib/javaexec.c (execute_java_class): Update.
49555         * lib/javaversion.c (execute_and_read_line): Update.
49556         * NEWS: Document the changes.
49557         Reported by Eric Blake.
49558
49559 2008-06-10  Eric Blake  <ebb9@byu.net>
49560
49561         Add missing include.
49562         * tests/test-strstr.c (includes): Add <signal.h>.
49563         * tests/test-strcasestr.c (includes): Likewise.
49564         * tests/test-memmem.c (includes): Likewise.
49565
49566 2008-06-10  Bruno Haible  <bruno@clisp.org>
49567
49568         * lib/wait-process.c (wait_subprocess): Add an assertion.
49569
49570 2008-06-10  Bruno Haible  <bruno@clisp.org>
49571
49572         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49573
49574 2008-06-10  Bruno Haible  <bruno@clisp.org>
49575
49576         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49577         using alarm().
49578         * tests/test-strcasestr.c (main): Likewise.
49579         * tests/test-strstr.c (main): Likewise.
49580
49581 2008-06-09  Bruno Haible  <bruno@clisp.org>
49582
49583         Work around the Solaris 10 ACE ACLs ABI change.
49584         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49585         declare if ACL_NO_TRIVIAL is present.
49586         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49587         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49588         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49589         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49590         define if ACL_NO_TRIVIAL is present.
49591         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49592         and use the current ABI.
49593         (file_has_acl): Use same #if condition as elsewhere.
49594         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49595         in use, and use the current ABI.
49596         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49597         Reported by Jim Meyering.
49598
49599 2008-06-09  Eric Blake  <ebb9@byu.net>
49600
49601         Work around environments that (stupidly) ignore SIGALRM.
49602         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49603         before using alarm().
49604         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49605         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49606         Reported by Ian Beckwith <ianb@erislabs.net>.
49607
49608         Produce autobuild blurb earlier in log.
49609         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49610
49611 2008-06-09  Jim Meyering  <meyering@redhat.com>
49612         and Ondřej Vašík  <ovasik@redhat.com>
49613
49614         utimens.c: correct kernel bug work-around
49615         Ondřej Vašík found that the invalid return value of 280 indicates
49616         failure, not success, and the kernel bug we're trying to work
49617         around affects not just the utimensat call, but also the fallback
49618         futimens call.
49619         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49620         not success.
49621         [HAVE_FUTIMENS]: Use the same work-around, here.
49622
49623 2008-06-09  Jim Meyering  <meyering@redhat.com>
49624
49625         add more guards around definition of ACE_-related code
49626         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49627         ALLOW and ACE_OWNER are also defined.
49628
49629 2008-06-08  Bruno Haible  <bruno@clisp.org>
49630
49631         * lib/acl-internal.h: Add me as co-author.
49632         * lib/file-has-acl.c: Likewise.
49633         * lib/set-mode-acl.c: Likewise.
49634         * lib/copy-acl.c: Likewise.
49635
49636 2008-06-08  Bruno Haible  <bruno@clisp.org>
49637
49638         Add support for AIX ACLs.
49639         * lib/acl-internal.h (acl_nontrivial): New declaration.
49640         * lib/file-has-acl.c (acl_nontrivial): New function.
49641         (file_has_acl): Add implementation using AIX 4 ACL API.
49642         * lib/set-mode-acl.c (qset_acl): Likewise.
49643         * lib/copy-acl.c (qcopy_acl): Likewise.
49644
49645 2008-06-08  Bruno Haible  <bruno@clisp.org>
49646
49647         Add support for HP-UX ACLs.
49648         * lib/acl-internal.h (acl_nontrivial): New declaration.
49649         * lib/file-has-acl.c (acl_nontrivial): New function.
49650         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49651         * lib/set-mode-acl.c (qset_acl): Likewise.
49652         * lib/copy-acl.c (qcopy_acl): Likewise.
49653
49654 2008-06-08  Bruno Haible  <bruno@clisp.org>
49655
49656         Add support for Cygwin ACLs.
49657         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49658         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49659         the chmod_or_fchmod call.
49660         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49661
49662 2008-06-08  Bruno Haible  <bruno@clisp.org>
49663
49664         Fix bug with setuid modes in Solaris 10+ code.
49665         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49666         succeeded, when the mode contains some special bits.
49667
49668 2008-06-08  Bruno Haible  <bruno@clisp.org>
49669
49670         Add support for Solaris 7..10 ACLs.
49671         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49672         declarations.
49673         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49674         functions.
49675         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49676         * lib/set-mode-acl.c (qset_acl): Likewise.
49677         * lib/copy-acl.c (qcopy_acl): Likewise.
49678
49679 2008-06-08  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49682         declaration.
49683         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49684         (acl_access_nontrivial): Remove MacOS X case.
49685         (file_has_acl): Use acl_extended_nontrivial.
49686         * lib/copy-acl.c (qcopy_acl): Likewise.
49687
49688 2008-06-08  Bruno Haible  <bruno@clisp.org>
49689
49690         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49691
49692 2008-06-08  Jim Meyering  <meyering@redhat.com>
49693
49694         * modules/acl (Maintainer): Add Bruno Haible.
49695
49696 2008-06-07  Bruno Haible  <bruno@clisp.org>
49697
49698         Improve support for Tru64 ACLs.
49699         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49700         ACL on OSF/1.
49701
49702 2008-06-07  Bruno Haible  <bruno@clisp.org>
49703
49704         Add support for MacOS X ACLs.
49705         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49706         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49707         * lib/set-mode-acl.c (qset_acl): Likewise.
49708         * lib/copy-acl.c (qcopy_acl): Likewise.
49709
49710 2008-06-07  Bruno Haible  <bruno@clisp.org>
49711
49712         Fix memory leak introduced on 2008-05-22.
49713         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49714         use.
49715
49716 2008-06-07  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49719         to construct an empty ACL.
49720
49721 2008-06-07  Bruno Haible  <bruno@clisp.org>
49722
49723         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49724         precisely.
49725         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49726
49727 2008-06-07  Bruno Haible  <bruno@clisp.org>
49728
49729         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49730         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49731
49732 2008-06-07  Bruno Haible  <bruno@clisp.org>
49733
49734         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49735         regardless of POSIX.
49736         * doc/posix-functions/_longjmp.texi: Likewise.
49737         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49738         SystemV platform in this case.
49739
49740 2008-06-06  Eric Blake  <ebb9@byu.net>
49741
49742         Document abort() bugs.
49743         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49744
49745         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49746         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49747         sigsetjmp.
49748         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49749         siglongjmp, but only as a macro.
49750         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49751         is obsolete.
49752         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49753
49754         Tweak documentation to cover cygwin argz bugs.
49755         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49756         argz bug fix; no code change needed since no cygwin releases
49757         occurred between the last fix and the bug being tested.
49758         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49759         module and recently fixed cygwin bugs.
49760         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49761         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49762         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49763         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49764         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49765         Likewise.
49766         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49767         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49768         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49769         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49770         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49771         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49772         Likewise.
49773
49774         Avoid gcc warning on cygwin.
49775         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49776         !ACL_NO_TRIVIAL]: Avoid unused variable.
49777
49778 2008-06-05  Eric Blake  <ebb9@byu.net>
49779
49780         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49781         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49782         git-version-gen fails to come up with a version.
49783         Reported by Simon Josefsson.
49784
49785 2008-06-05  Jim Meyering  <meyering@redhat.com>
49786             Paul Eggert  <eggert@cs.ucla.edu>
49787
49788         utimens.c: work around a probable Linux kernel bug
49789         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49790         appears to be a kernel bug that causes utimensat to return 280
49791         instead of 0, indicating success.
49792
49793 2008-06-04  Bruno Haible  <bruno@clisp.org>
49794
49795         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49796         2008-06-01 commit.
49797
49798 2008-06-04  Bruno Haible  <bruno@clisp.org>
49799
49800         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49801         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49802         (file_has_acl): Use it. Save errno afterwards.
49803         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49804
49805 2008-06-03  Bruno Haible  <bruno@clisp.org>
49806
49807         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49808         draft code. Simplify #ifs.
49809         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49810         Put Solaris code after POSIX-draft code. Fix comments regarding
49811         Solaris 10, HP-UX. Mention Cygwin.
49812         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49813
49814 2008-06-03  Eric Blake  <ebb9@byu.net>
49815
49816         Provide fallback for older kernels.
49817         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49818         Provide runtime fallback if kernel lacks support.
49819         Reported by Mike Frysinger.
49820
49821 2008-06-02  Bruno Haible  <bruno@clisp.org>
49822
49823         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49824         it exists.
49825
49826 2008-06-02  Bruno Haible  <bruno@clisp.org>
49827
49828         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49829         * lib/copy-acl.c (qcopy_acl): Update comment.
49830
49831 2008-06-02  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49834         like ACL APIs.
49835
49836 2008-06-02  Bruno Haible  <bruno@clisp.org>
49837
49838         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49839         * tests/test-set-mode-acl.sh: Likewise.
49840         * tests/test-copy-acl.sh: Likewise.
49841         * tests/test-copy-file.sh: Likewise.
49842
49843 2008-06-02  Bruno Haible  <bruno@clisp.org>
49844
49845         * tests/test-file-has-acl.sh: Remove unused code.
49846
49847 2008-06-01  Bruno Haible  <bruno@clisp.org>
49848
49849         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49850         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49851         messages.
49852         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49853
49854 2008-06-01  Bruno Haible  <bruno@clisp.org>
49855
49856         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49857         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49858         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49859         APIs.
49860         * modules/acl-tests (configure.ac): Remove tests now contained in
49861         m4/acl.m4.
49862
49863 2008-06-02  Jim Meyering  <meyering@redhat.com>
49864
49865         announce-gen: use a better key-server host name
49866         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49867         it may be more consistently reliable.  Suggested by Werner Koch
49868         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49869
49870 2008-06-01  Bruno Haible  <bruno@clisp.org>
49871
49872         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49873         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49874
49875 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49876
49877         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49878
49879 2008-06-01  Bruno Haible  <bruno@clisp.org>
49880
49881         New ACL tests.
49882         * tests/test-file-has-acl.sh: New file.
49883         * tests/test-file-has-acl.c: New file.
49884         * tests/test-set-mode-acl.sh: New file.
49885         * tests/test-set-mode-acl.c: New file.
49886         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49887         * tests/test-copy-acl.c: New file.
49888         * modules/acl-tests: New file, based on modules/copy-file-tests.
49889         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49890         (Depends-on): Add acl-tests.
49891         (configure.ac): Remove checks.
49892         (Makefile.am): Don't create test-sameacls program here any more.
49893
49894 2008-06-01  Bruno Haible  <bruno@clisp.org>
49895
49896         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49897         * tests/test-sameacls.c: Include progname.h.
49898         (main): Invoke set_program_name. Portability fixes for MacOS X,
49899         Solaris, HP-UX.
49900
49901 2008-06-01  Bruno Haible  <bruno@clisp.org>
49902
49903         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49904         function.
49905         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49906
49907 2008-06-01  Bruno Haible  <bruno@clisp.org>
49908
49909         * modules/rpmatch (Depends-on): Add strdup.
49910
49911 2008-06-01  Bruno Haible  <bruno@clisp.org>
49912
49913         * lib/pipe.c: Include unistd-safer.h.
49914         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49915         * modules/pipe (Depends-on): Add unistd-safer.
49916
49917 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49918
49919         * modules/autobuild (configure.ac): Call AB_INIT.
49920
49921 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49922
49923         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49924         Suggested by Bruno Haible <bruno@clisp.org>.
49925
49926 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49927
49928         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49929         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49930         <bruno@clisp.org>.
49931
49932 2008-05-29  Eric Blake  <ebb9@byu.net>
49933
49934         Prefer new POSIX 200x interfaces over futimesat.
49935         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49936         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49937         when available.
49938         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49939
49940 2008-05-28  Bruno Haible  <bruno@clisp.org>
49941
49942         * modules/stpcpy (License): Change to LGPLv2+.
49943         Requested by David Lutterkort <dlutter@redhat.com>.
49944
49945 2008-05-27  Bruno Haible  <bruno@clisp.org>
49946
49947         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49948         current mingw.
49949         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49950
49951 2008-05-27  Bruno Haible  <bruno@clisp.org>
49952
49953         * modules/iconv_open (Link): New section, from module 'iconv'.
49954         * modules/striconv (Link): Likewise.
49955         * modules/striconveh (Link): Likewise.
49956         * modules/xstriconv (Link): Likewise.
49957         * modules/unicodeio (Link): Likewise.
49958         * modules/propername (Link): Likewise.
49959         Reported by Jim Meyering.
49960
49961 2008-05-26  Jim Meyering  <meyering@redhat.com>
49962
49963         sha256: do not artificially restrict buffer length to be < 2^32
49964         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49965         uint32_t to size_t.
49966         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49967         to match.
49968
49969         avoid unaligned access errors, e.g., on sparc
49970         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49971         direct access through a possibly-unaligned uint64* pointer.
49972         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49973         direct access through a possibly-unaligned uint32* pointer.
49974         Prompted by this patch from Tom "spot" Callaway:
49975         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49976
49977         sha512.c: fix typo in comment
49978         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49979
49980 2008-05-25  Bruno Haible  <bruno@clisp.org>
49981
49982         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49983         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49984         (Makefile.am): Update lib_SOURCES.
49985
49986 2008-05-25  Bruno Haible  <bruno@clisp.org>
49987
49988         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49989
49990 2008-05-25  Jim Meyering  <meyering@redhat.com>
49991
49992         useless-if-before-free: freed expr may have white-space differences
49993         * build-aux/useless-if-before-free: Recognize cases in which the
49994         freed expression differs from the tested one in embedded white
49995         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49996         $1 was used, so we can't make any regexp shy.  Improved tests now
49997         detect this.
49998
49999         useless-if-before-free: accept white space in the expression.
50000         * build-aux/useless-if-before-free: For now, any white space
50001         in the expression must be identical in the free argument.
50002
50003         useless-if-before-free: efficiency tweak
50004         * build-aux/useless-if-before-free: Make the expression-matching
50005         regexp "shy".
50006         Make the *outer* regexp shy, not the expr-matching one.
50007
50008         update code-in-comment to accept cast of free arg
50009         * build-aux/useless-if-before-free: Update regexp.
50010
50011 2008-05-25  Bruno Haible  <bruno@clisp.org>
50012
50013         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50014         * modules/copy-file-tests (Files, Makefile.am): Update.
50015         * tests/test-copy-file.c (func_test_copy): Update.
50016
50017 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50018
50019         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50020
50021 2008-05-23  Bruno Haible  <bruno@clisp.org>
50022
50023         Improve support for ACLs on OSF/1.
50024         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50025         Remove fallback for unknown flavors of ACLs.
50026
50027 2008-05-22  Bruno Haible  <bruno@clisp.org>
50028
50029         Add support for ACLs on OSF/1.
50030         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50031         replacements.
50032         (acl_free_text): New macro fallback.
50033         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50034         acl_free.
50035         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50036         acl_free_text function. Require AC_C_INLINE.
50037
50038 2008-05-22  Bruno Haible  <bruno@clisp.org>
50039
50040         Make copy_acl work on MacOS X 10.5.
50041         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50042         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50043         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50044         If MODE_INSIDE_ACL, don't assume that every system has the same text
50045         representation for ACLs as FreeBSD.
50046         * lib/copy-acl.c (copy_acl): Add support for platforms with
50047         !MODE_INSIDE_ACL.
50048         * lib/file-has-acl.c (file_has_acl): Likewise.
50049         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50050         FreeBSD, MacOS X, or IRIX, respectively.
50051
50052 2008-05-22  Bruno Haible  <bruno@clisp.org>
50053
50054         * lib/acl.h: Don't include <sys/acl.h>.
50055         (GETACLCNT): Move fallback to lib/acl-internal.h.
50056         * lib/acl-internal.h: Include <sys/acl.h> here.
50057         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50058
50059 2008-05-22  Bruno Haible  <bruno@clisp.org>
50060
50061         Split off copy_acl function to separate file.
50062         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50063         * lib/acl.c (copy_acl): Moved function to separate file.
50064         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50065         * modules/acl (Files): Add lib/copy-acl.c.
50066         (Makefiles.am): Augment lib_SOURCES.
50067
50068 2008-05-22  Bruno Haible  <bruno@clisp.org>
50069
50070         * modules/copy-file-tests: New file.
50071         * tests/test-copy-file.sh: New file.
50072         * tests/test-copy-file.c: New file.
50073         * tests/test-copy-file-sameacls.c: New file.
50074
50075 2008-05-22  Eric Blake  <ebb9@byu.net>
50076
50077         Avoid gcc warning.
50078         * tests/test-memcmp.c (main): Pass NULL indirectly.
50079
50080 2008-05-21  Bruno Haible  <bruno@clisp.org>
50081
50082         Add reference doc about ACLs.
50083         * doc/acl-resources.txt: New file.
50084         * doc/acl-cygwin.txt: New file.
50085
50086 2008-05-21  Bruno Haible  <bruno@clisp.org>
50087
50088         Avoid one more warning from gcc.
50089         * lib/vasnprintf.c (IF_LINT): Update comments.
50090         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50091
50092 2008-05-21  Jim Meyering  <meyering@redhat.com>
50093
50094         avoid a warning from gcc
50095         * lib/vasnprintf.c (IF_LINT): Define.
50096         (scale10_round_decimal_long_double):
50097         Use it to avoid a "may be used uninitialized" warning.
50098         (scale10_round_decimal_double): Likewise.
50099
50100 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50101
50102         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50103         declared.
50104
50105 2008-05-20  Bruno Haible  <bruno@clisp.org>
50106
50107         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50108         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50109
50110 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50111
50112         * modules/memcmp-tests: New file.
50113         * tests/test-memcmp.c: New file.
50114
50115 2008-05-19  Bruno Haible  <bruno@clisp.org>
50116
50117         * modules/propername (Notice, configure.ac): Put quoted "..." into
50118         --keyword option.
50119         * lib/propername.h: Update comments accordingly.
50120         Reported by Eric Blake.
50121
50122 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50123
50124         * modules/getpass-gnu (Depends-on): Add fseeko.
50125
50126 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50127
50128         * modules/base64-tests: New file.
50129
50130 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50131
50132         * lib/base64.c (base64_decode_ctx): If a decode context structure
50133         was passed in use it to ignore newlines.  If a context structure
50134         was _not_ passed in, continue to treat newlines as garbage (this
50135         is the historical behavior).  Formerly base64_decode.
50136         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50137         takes a decode context structure.
50138         * lib/base64.h (base64_decode): Macro for four-argument calls.
50139         (base64_decode_alloc): Likewise.
50140         * lib/base64.c (base64_decode_ctx): If a decode context structure
50141         was passed in use it to ignore newlines.  If a context structure
50142         was _not_ passed in, continue to treat newlines as garbage (this
50143         is the historical behavior).  Formerly base64_decode.
50144         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50145         takes a decode context structure.
50146         * lib/base64.h (base64_decode): Macro for four-argument calls.
50147         (base64_decode_alloc): Likewise.
50148
50149 2008-05-19  Jim Meyering  <meyering@redhat.com>
50150
50151         avoid a warning from gcc
50152         * lib/trim.c (IF_LINT): Define.
50153         (trim2): Use it to avoid a "may be used uninitialized" warning.
50154
50155         Fix doc typo.
50156         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50157
50158 2008-05-19  Bruno Haible  <bruno@clisp.org>
50159
50160         * doc/glibc-functions/getpass.texi: Document limits of other
50161         implementations.
50162
50163 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50164             Bruno Haible <bruno@clisp.org>
50165
50166         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50167
50168 2008-05-18  Bruno Haible  <bruno@clisp.org>
50169
50170         * modules/propername: New file, from GNU gettext.
50171         * lib/propername.h: New file, from GNU gettext.
50172         * lib/propername.c: New file, from GNU gettext.
50173         * MODULES.html.sh (Internationalization functions): Add propername.
50174
50175 2008-05-16  Jim Meyering  <meyering@redhat.com>
50176             Bruno Haible  <bruno@clisp.org>
50177
50178         Avoid some warnings from "gcc -Wshadow".
50179         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50180
50181 2008-05-15  Eric Blake  <ebb9@byu.net>
50182
50183         Extend previous patch to cygwin 1.7.0.
50184         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50185         fast implementation in cygwin >= 1.7.0.
50186         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50188
50189 2008-05-15  Bruno Haible  <bruno@clisp.org>
50190
50191         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50192         implementation in glibc >= 2.9.
50193         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50195
50196 2008-05-15  Bruno Haible  <bruno@clisp.org>
50197
50198         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50199         (Unicode string functions): Add unilbrk/*.
50200         Reported by Karl Berry.
50201
50202 2008-05-15  Eric Blake  <ebb9@byu.net>
50203
50204         Fix violation of <stdbool.h> replacement in regex.
50205         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50206         * lib/regexec.c (re_search_internal): Likewise.
50207         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50208
50209 2008-05-15  Jim Meyering  <meyering@redhat.com>
50210
50211         avoid distracting test output when git or cvs is not found
50212         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50213         * tests/test-vc-list-files-git.sh: Likewise.
50214
50215 2008-05-15  Eric Blake  <ebb9@byu.net>
50216
50217         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50218         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50219         glibc version.
50220         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50221         * doc/posix-functions/strstr.texi (strstr): Likewise.
50222         * lib/str-two-way.h (MAX): Sychronize with glibc.
50223
50224 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50225
50226         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50227         opr.ctx_type.
50228         (calc_first): Initialize constraint field.
50229         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50230         Fix grammar.
50231         (duplicate_node): Merge constraint field for all node types.
50232         (calc_eclosure_iter): Look at constraint field for all node types.
50233         * lib/regex_internal.c (create_cd_newstate): Don't look at
50234         opr.ctx_type.
50235
50236 2008-05-14  Bruno Haible  <bruno@clisp.org>
50237
50238         Help GCC to do better code generation.
50239         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50240         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50241         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50242         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50243         Declare with attribute 'malloc' if supported.
50244
50245 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50246
50247         use "echo STR|wc -c" rather than unportable "expr length STR"
50248         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50249         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50250
50251 2008-05-14  Jim Meyering  <meyering@redhat.com>
50252
50253         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50254         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50255         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50256         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50257         via Collin Lasse.
50258
50259 2008-05-14  Eric Blake  <ebb9@byu.net>
50260
50261         Avoid quadratic growth in gl_LIBSOURCES.
50262         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50263         Suggested by Bruno Haible.
50264
50265         Test xmemdup0.
50266         * modules/xmemdup0-tests: New file.
50267         * tests/test-xmemdup0.c: Likewise.
50268
50269 2008-05-13  Eric Blake  <ebb9@byu.net>
50270
50271         Split xmemdup0 into its own module.
50272         * modules/xmemdup0: New file.
50273         * lib/xmemdup0.h: Likewise.
50274         * lib/xmemdup0.c: Likewise.
50275         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50276         * lib/xalloc.h (xmemdup0): Remove.
50277         * lib/xmalloc.c (xmemdup0): Likewise.
50278
50279 2008-05-13  Eric Blake  <ebb9@byu.net>
50280             Bruno Haible  <bruno@clisp.org>
50281
50282         Reduce number of forks required during autoconf.
50283         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50284         and gl_LIBSOURCES_DIR.
50285         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50286         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50287         m4_syscmd per file.
50288         <m4_foreach_w>: Move...
50289         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50290
50291 2008-05-13  Eric Blake  <ebb9@byu.net>
50292
50293         * gnulib-tool: Fix various comment typos.
50294
50295 2008-05-12  Bruno Haible  <bruno@clisp.org>
50296
50297         Tailor the linebreaking algorithm.
50298         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50299
50300 2008-05-12  Bruno Haible  <bruno@clisp.org>
50301
50302         Update to Unicode 5.0.0.
50303         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50304         LBP_JV, LBP_JT. Redistribute values.
50305         (unilbrk_table): Change size.
50306         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50307         Unicode TR#14 rev. 22.
50308         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50309         LBP_JV, LBP_JT. Redistribute values.
50310         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50311         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50312         Update.
50313         * lib/unilbrk/lbrkprop1.h: Regenerated.
50314         * lib/unilbrk/lbrkprop2.h: Regenerated.
50315         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50316         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50317         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50318         Likewise.
50319         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50320         Likewise.
50321         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50322         result.
50323         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50324         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50325         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50326         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50327         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50328         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50329
50330 2008-05-11  Bruno Haible  <bruno@clisp.org>
50331
50332         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50333
50334 2008-05-11  Bruno Haible  <bruno@clisp.org>
50335
50336         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50337         * modules/unilbrk/gen-lbrk: New file.
50338
50339 2008-05-11  Bruno Haible  <bruno@clisp.org>
50340
50341         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50342         * m4/sha512.m4 (gl_SHA512): Likewise.
50343
50344 2008-05-11  Jim Meyering  <meyering@redhat.com>
50345
50346         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50347         * modules/crypto/sha256: New file.
50348         * modules/crypto/sha512: Likewise.
50349         * lib/sha256.c: Likewise.
50350         * lib/sha256.h: Likewise.
50351         * lib/sha512.c: Likewise.
50352         * lib/sha512.h: Likewise.
50353         * lib/u64.h: Likewise.
50354         * m4/sha256.m4: Likewise.
50355         * m4/sha512.m4: Likewise.
50356         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50357
50358 2008-05-10  Bruno Haible  <bruno@clisp.org>
50359
50360         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50361         (Input/Output <stdio.h>): Add xprintf.
50362         (Signal handling <signal.h>): Add strsignal.
50363         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50364         (Core language properties): Add func.
50365         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50366         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50367         strings.
50368         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50369         (Input/output): New section.
50370         (File system functions): Add openat-die, stat-macros.
50371         (Networking functions): Add sockets.
50372         (Unicode string functions): Add unictype/*.
50373         (Support for building libraries and executables): Add gperf.
50374         (Support for building documentation): Add agpl-3.0.
50375         (Misc): Add nocrash.
50376
50377 2008-05-10  Bruno Haible  <bruno@clisp.org>
50378
50379         * modules/unictype/gen-ctype: New file.
50380
50381 2008-05-10  Jim Meyering  <meyering@redhat.com>
50382
50383         Make chdir-safer.c more efficient on a system with no symlinks.
50384         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50385         also if ELOOP is zero.  Suggested by Bruno Haible.
50386
50387         Make chdir-safer.c slightly safer.
50388         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50389         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50390
50391         Avoid compile failure on systems without ELOOP (like mingw).
50392         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50393         Reported by Bruno Haible.
50394
50395 2008-05-10  Bruno Haible  <bruno@clisp.org>
50396
50397         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50398         (is_utf8_encoding): Use a case-insensitive comparison.
50399         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50400         streq.
50401
50402 2008-05-10  Bruno Haible  <bruno@clisp.org>
50403
50404         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50405         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50406         * lib/unilbrk/ulc-common.h (iconv_string_length,
50407         iconv_string_keeping_offsets): Remove declarations.
50408         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50409         Don't include <iconv.h>, streq.h, xsize.h.
50410         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50411         conversion.
50412         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50413         <iconv.h>, streq.h, xsize.h.
50414         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50415         conversion.
50416         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50417         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50418         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50419         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50420
50421 2008-05-10  Bruno Haible  <bruno@clisp.org>
50422
50423         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50424         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50425
50426         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50427         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50428
50429         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50430         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50431
50432         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50433         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50434
50435         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50436         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50437
50438         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50439         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50440
50441         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50442         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50443
50444         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50445         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50446
50447 2008-05-10  Bruno Haible  <bruno@clisp.org>
50448
50449         Split up 'linebreak' module.
50450         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50451         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50452         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50453         modifications.
50454         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50455         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50456         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50457         lib/linebreak.c.
50458         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50459         lib/linebreak.c.
50460         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50461         lib/linebreak.c.
50462         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50463         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50464         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50465         lib/linebreak.c.
50466         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50467         lib/linebreak.c.
50468         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50469         lib/linebreak.c.
50470         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50471         lib/linebreak.c.
50472         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50473         lib/linebreak.c.
50474         * modules/unilbrk/base: New file.
50475         * modules/unilbrk/tables: New file.
50476         * modules/unilbrk/u8-possible-linebreaks: New file.
50477         * modules/unilbrk/u16-possible-linebreaks: New file.
50478         * modules/unilbrk/u32-possible-linebreaks: New file.
50479         * modules/unilbrk/ulc-common: New file.
50480         * modules/unilbrk/ulc-possible-linebreaks: New file.
50481         * modules/unilbrk/u8-width-linebreaks: New file.
50482         * modules/unilbrk/u16-width-linebreaks: New file.
50483         * modules/unilbrk/u32-width-linebreaks: New file.
50484         * modules/unilbrk/ulc-width-linebreaks: New file.
50485         * lib/linebreak.h: Remove file.
50486         * lib/linebreak.c: Remove file.
50487         * m4/linebreak.m4: Remove file.
50488         * modules/linebreak: Remove file.
50489         * NEWS: Mention the changes.
50490
50491 2008-05-09  Eric Blake  <ebb9@byu.net>
50492
50493         Add xmemdup0.
50494         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50495         implementation.
50496         * lib/xmalloc.c (xmemdup0): New C implementation.
50497
50498 2008-05-08  Bruno Haible  <bruno@clisp.org>
50499
50500         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50501
50502 2008-05-07  Eric Blake  <ebb9@byu.net>
50503
50504         Support cross-compilation of <wctype.h>.
50505         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50506         AC_CACHE_CHECK.
50507
50508 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50509
50510         * build-aux/vc-list-files: Add support for bzr.
50511
50512 2008-05-03  Jim Meyering  <meyering@redhat.com>
50513
50514         avoid failed assertion with tight malloc
50515         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50516
50517 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50518
50519         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50520         are needed from arpa/inet.h.
50521         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50522         Reported by Bruno Haible.
50523
50524 2008-05-02  Jim Meyering  <meyering@redhat.com>
50525
50526         avoid compilation error on FreeBSD 6
50527         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50528
50529 2008-05-01  Jim Meyering  <meyering@redhat.com>
50530
50531         useless-if-before-free: correct --help's exit status description
50532         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50533         for one or more matches, etc.  Reported by Bruno Haible.
50534
50535         vc-list-files: make the stand-alone gnulib test work
50536         * modules/vc-list-files-tests (configure.ac):
50537         Define and AC_SUBST abs_aux_dir.
50538         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50539         $(abs_top_srcdir) to each script and having each of them
50540         duplicate the work of setting PATH, set PATH here, using
50541         the new variable, abs_aux_dir instead.
50542         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50543         * tests/test-vc-list-files-git.sh: Likewise.
50544         Reported by Bruno Haible.
50545
50546 2008-05-01  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50549         reallocation. Rename 'done' to 'found_delimiter'.
50550
50551 2008-05-01  Jim Meyering  <meyering@redhat.com>
50552
50553         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50554         * build-aux/vc-list-files: Use `...`, not $(...).
50555
50556 2008-04-30  Jim Meyering  <meyering@redhat.com>
50557
50558         add tests for vc-list-files
50559         * modules/vc-list-files-tests: New module.
50560         * tests/test-vc-list-files-cvs.sh: New file.
50561         * tests/test-vc-list-files-git.sh: New file.
50562
50563         avoid a warning from gcc
50564         * lib/getndelim2.c (IF_LINT): Define.
50565         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50566
50567         vc-list-files: work properly with build-aux/cvsu, too
50568         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50569         to all cvs-based clauses.
50570
50571         vc-list-files: work properly in the CVS+awk case, too
50572         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50573
50574         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50575         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50576         take more than one file argument, so .  Add quotes, just in case $dir
50577         ever contains a shell meta-character.  Prompted by Soren Hansen in
50578         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50579
50580 2008-04-29  Eric Blake  <ebb9@byu.net>
50581
50582         Optimize getndelim2 to use block operations when possible.
50583         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50584         freadseek, and memchr2.
50585         * lib/getndelim2.c (getndelim2): Use them for block reads.
50586
50587 2008-04-29  Bruno Haible  <bruno@clisp.org>
50588
50589         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50590         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50591         * modules/inet_ntop (Depends-on): Add extensions.
50592         * modules/inet_pton (Depends-on): Likewise.
50593         Reported by Simon Josefsson.
50594
50595 2008-04-29  Jim Meyering  <meyering@redhat.com>
50596
50597         When the is more than one match in a block, match all of them.
50598         * build-aux/useless-if-before-free: Iterate through each block
50599         until there are no more matches.
50600
50601         Fix broken useless-if-before-free script.
50602         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50603         the expression to match cast of argument to free-like function.
50604
50605 2008-04-29  Eric Blake  <ebb9@byu.net>
50606
50607         Use new header.
50608         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50609
50610 2008-04-29  Jim Meyering  <meyering@redhat.com>
50611
50612         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50613         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50614         by gnulib to exist and to declare e.g., inet_ntop.
50615         Don't include "inet_ntop.h", now removed.
50616
50617         * m4/arpa_inet_h.m4: Remove trailing blanks.
50618
50619 2008-04-29  Eric Blake  <ebb9@byu.net>
50620
50621         Silence valgrind on safe reads beyond potential array bounds.
50622         * lib/rawmemchr.valgrind: New file.
50623         * lib/strchrnul.valgrind: Likewise.
50624         * modules/rawmemchr (Files): Distribute new file.
50625         * modules/strchrnul (Files): Likewise.
50626         Suggested by Bruno Haible.
50627
50628 2008-04-29  Bruno Haible  <bruno@clisp.org>
50629
50630         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50631         (inet_ntop, inet_pton): Change portability warning's wording.
50632         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50633         Invoke gl_CHECK_NEXT_HEADERS.
50634         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50635         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50636         set ARPA_INET_H.
50637         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50638         * modules/arpa_inet (Description): No longer only for systems that
50639         lack it.
50640         (Depends-on): Add include_next.
50641         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50642         HAVE_ARPA_INET_H.
50643
50644 2008-04-29  Jim Meyering  <meyering@redhat.com>
50645
50646         * modules/mkdir (License): Re-license as LGPLv2+.
50647
50648 2008-04-29  Bruno Haible  <bruno@clisp.org>
50649
50650         * modules/rawmemchr (Maintainer): Set to Eric.
50651         * modules/strchrnul (Maintainer): Likewise.
50652
50653 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50654
50655         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50656         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50657
50658         * modules/arpa_inet (arpa/inet.h): Use them.
50659
50660 2008-04-28  Eric Blake  <ebb9@byu.net>
50661
50662         Test getndelim2.
50663         * modules/getndelim2-tests: New file.
50664         * tests/test-getndelim2.c: Likewise.
50665         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50666         stream.
50667         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50668
50669         * MODULES.html.sh: Document new module.
50670
50671 2008-04-20  Bruno Haible  <bruno@clisp.org>
50672
50673         * lib/c-stack.c (die): Use raise.
50674         * modules/c-stack (Depends-on): Add raise.
50675
50676 2008-04-28  Bruno Haible  <bruno@clisp.org>
50677
50678         Expect rpmatch to be declared.
50679         * lib/yesno.c (rpmatch): Remove declaration.
50680
50681         Declare rpmatch.
50682         * lib/stdlib.in.h (rpmatch): New declaration.
50683         * lib/rpmatch.c: Include <stdlib.h> first.
50684         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50685         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50687         HAVE_RPMATCH.
50688         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50689         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50690         (Include): Set to <stdlib.h>.
50691         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50692         HAVE_RPMATCH.
50693         * NEWS: Document the change.
50694
50695 2008-04-28  Bruno Haible  <bruno@clisp.org>
50696
50697         Change rpmatch to use nl_langinfo when appropriate.
50698         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50699         (N_): New macro.
50700         (localized_pattern): New function/macro.
50701         (try): Remove match, nomatch arguments. Copy the pattern into safe
50702         memory before caching it.
50703         (rpmatch): Use localized_pattern. Add translator comments.
50704         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50705         Suggested by Eric Blake.
50706         * modules/rpmatch (Depends-on): Add stdbool.
50707
50708 2008-04-28  Eric Blake  <ebb9@byu.net>
50709
50710         Add rawmemchr module, matching glibc.
50711         * modules/string (Makefile.am): New indicator.
50712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50713         * lib/string.in.h (rawmemchr): Declare when appropriate.
50714         * modules/rawmemchr: New file.
50715         * m4/rawmemchr.m4: Likewise.
50716         * lib/rawmemchr.c: Likewise.
50717         * modules/rawmemchr-tests: Likewise.
50718         * tests/test-rawmemchr.c: Likewise.
50719         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50720         module.
50721         * modules/strchrnul (Depends-on): Add rawmemchr.
50722         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50723
50724         Whitespace cleanup.
50725         * tests/test-strchrnul.c: Reindent.
50726         * lib/strchrnul.c: Likewise.
50727
50728         Optimize and test strchrnul.
50729         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50730         * modules/strchrnul-tests: New file.
50731         * tests/test-strchrnul.c: Likewise.
50732
50733         Remove intprops dependency.
50734         * modules/memchr (Depends-on): Remove intprops.
50735         * modules/memrchr (Depends-on): Likewise.
50736         * modules/memchr2 (Depends-on): Likewise.
50737         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50738         * lib/memrchr.c (__memrchr): Likewise.
50739         * lib/memrchr2.c (memchr2): Likewise.
50740         Reported by Simon Josefsson.
50741
50742 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50743
50744         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50745         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50746
50747 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50748
50749         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50750
50751         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50752
50753         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50754
50755         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50756         declarations.
50757         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50758
50759         * m4/inet_pton.m4: Don't check for header files.
50760
50761         * m4/inet_ntop.m4: Don't check for header files.
50762
50763 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50764
50765         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50766         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50767         trigger for cygwin).
50768         Reported by Bruno Haible  <bruno@clisp.org>.
50769
50770 2008-04-28  Bruno Haible  <bruno@clisp.org>
50771
50772         * doc/posix-functions/strdup.texi: Mention mingw problem.
50773
50774 2008-04-27  Bruno Haible  <bruno@clisp.org>
50775
50776         * modules/stat-time-tests (Depends-on): Add sleep.
50777         * tests/test-stat-time.c (force_unlink): New function.
50778         (cleanup): Use it.
50779         (test_mtime): Remove the ctime related tests.
50780         (test_ctime): New function, containing the ctime related tests.
50781         (main): Call test_ctime, except on native Windows platforms.
50782
50783 2008-04-27  Bruno Haible  <bruno@clisp.org>
50784
50785         * lib/rpmatch.c (rpmatch): Add some comments.
50786         Reported by James Youngman <jay@gnu.org>.
50787
50788 2008-04-27  Bruno Haible  <bruno@clisp.org>
50789
50790         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50791         quiet NaNs.
50792
50793 2008-04-27  Bruno Haible  <bruno@clisp.org>
50794
50795         Make test-yesno.sh work on mingw.
50796         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50797         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50798         (main): Set stdin to binary mode.
50799         * modules/yesno-tests (Depends-on): Add binary-io.
50800
50801 2008-04-27  Bruno Haible  <bruno@clisp.org>
50802
50803         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50804         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50805         argument that lie outside the IEEE 854 domain.
50806         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50807         (gl_ISFINITE): Use it.
50808         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50809
50810 2008-04-27  Bruno Haible  <bruno@clisp.org>
50811
50812         Allow local renaming in config.h.
50813         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50814
50815 2008-04-27  Bruno Haible  <bruno@clisp.org>
50816
50817         * lib/memchr.c (__memchr): Change type of 'i'.
50818         * lib/memchr2.c (memchr2): Likewise.
50819
50820 2008-04-26  Eric Blake  <ebb9@byu.net>
50821         and Bruno Haible  <bruno@clisp.org>
50822
50823         Optimize and test memrchr.
50824         * modules/memrchr (Depends-on): Add intprops.
50825         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50826         * modules/memrchr-tests: New file.
50827         * tests/test-memrchr.c: New file.
50828
50829 2008-04-26  Bruno Haible  <bruno@clisp.org>
50830
50831         Add tentative support for DragonFly BSD.
50832         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50833         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50834         fp.
50835         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50836         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50837         * lib/fpurge.c (fpurge): Likewise.
50838         * lib/freadable.c (freaadable): Likewise.
50839         * lib/freadahead.c (freadahead): Likewise.
50840         * lib/freading.c (freading): Likewise.
50841         * lib/freadptr.c (freadptr): Likewise.
50842         * lib/freadseek.c (freadptrinc): Likewise.
50843         * lib/fseeko.c (fseeko): Likewise.
50844         * lib/fseterr.c (fseterr): Likewise.
50845         * lib/fwritable.c (fwritable): Likewise.
50846         * lib/fwriting.c (fwriting): Likewise.
50847
50848 2008-04-26  Bruno Haible  <bruno@clisp.org>
50849
50850         * lib/stdio-impl.h: New file.
50851         * lib/fbufmode.c: Include stdio-impl.h.
50852         (fbufmode): Use fp_, remove redundant #defines.
50853         * lib/fflush.c: Include stdio-impl.h.
50854         (clear_ungetc_buffer): Remove redundant #defines.
50855         * lib/fpurge.c: Include stdio-impl.h.
50856         (fpurge): Remove redundant #defines.
50857         * lib/freadable.c: Include stdio-impl.h.
50858         (freadable): Remove redundant #defines.
50859         * lib/freadahead.c: Include stdio-impl.h.
50860         (freadahead): Remove redundant #defines.
50861         * lib/freading.c: Include stdio-impl.h.
50862         (freading): Remove redundant #defines.
50863         * lib/freadptr.c: Include stdio-impl.h.
50864         (freadptr): Remove redundant #defines.
50865         * lib/freadseek.c: Include stdio-impl.h.
50866         (freadptrinc): Remove redundant #defines.
50867         * lib/fseeko.c: Include stdio-impl.h.
50868         (rpl_fseeko): Remove redundant #defines.
50869         * lib/fseterr.c: Include stdio-impl.h.
50870         (fseterr): Remove redundant #defines.
50871         * lib/fwritable.c: Include stdio-impl.h.
50872         (fwritable: Remove redundant #defines.
50873         * lib/fwriting.c: Include stdio-impl.h.
50874         (fwriting): Remove redundant #defines.
50875         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50876         * modules/fflush (Files): Likewise.
50877         * modules/fpurge (Files): Likewise.
50878         * modules/freadable (Files): Likewise.
50879         * modules/freadahead (Files): Likewise.
50880         * modules/freading (Files): Likewise.
50881         * modules/freadptr (Files): Likewise.
50882         * modules/freadseek (Files): Likewise.
50883         * modules/fseeko (Files): Likewise.
50884         * modules/fseterr (Files): Likewise.
50885         * modules/fwritable (Files): Likewise.
50886         * modules/fwriting (Files): Likewise.
50887
50888 2008-04-26  Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50891         restore_seek_optimization, update_fpos_cache): New functions, extracted
50892         from rpl_fflush.
50893         (rpl_fflush): Use them.
50894         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50895         (gl_REPLACE_FFLUSH): Use it.
50896
50897 2008-04-26  Bruno Haible  <bruno@clisp.org>
50898
50899         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50900         on Solaris.
50901         * tests/test-xstrtoimax.sh: Likewise.
50902         * tests/test-xstrtoumax.sh: Likewise.
50903         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50904
50905 2008-04-26  Bruno Haible  <bruno@clisp.org>
50906
50907         * modules/memchr-tests: New file.
50908         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50909
50910 2008-04-26  Eric Blake  <ebb9@byu.net>
50911             Bruno Haible  <bruno@clisp.org>
50912
50913         * lib/memchr.c: Include intprops.h.
50914         (__memchr): Optimize parallel detection of matching bytes. Rename local
50915         variables. Add explanatory comments.
50916
50917 2008-04-26  Bruno Haible  <bruno@clisp.org>
50918
50919         Fix module 'memchr', broken since 2000-10-28.
50920         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50921
50922 2008-04-26  Bruno Haible  <bruno@clisp.org>
50923
50924         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50925         comments.
50926
50927 2008-04-25  Eric Blake  <ebb9@byu.net>
50928
50929         Use native fstatat on cygwin 1.7.0.
50930         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50931         first.
50932
50933 2008-04-23  Eric Blake  <ebb9@byu.net>
50934
50935         Improve memchr2 performance.
50936         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50937         NUL bytes.
50938         * modules/memchr2 (Depends-on): Use intprops.h.
50939
50940 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50941
50942         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50943         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50944         <blp@cs.stanford.edu>.
50945
50946 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50947
50948         * lib/arpa_inet.in.h: New file.
50949
50950         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50951         (Makefile.am): Sed in substitute header file.
50952
50953         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50954         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50955
50956         * modules/inet_ntop (configure.ac): Use
50957         gl_ARPA_INET_MODULE_INDICATOR.
50958
50959         * modules/inet_pton (configure.ac): Use
50960         gl_ARPA_INET_MODULE_INDICATOR.
50961
50962 2008-04-22  Jim Meyering  <meyering@redhat.com>
50963
50964         * modules/verify (License): Re-license as LGPLv2+.
50965
50966 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50967
50968         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50969         parameter to void* as per POSIX standard (MinGW uses char*).
50970
50971 2008-04-21  Bruno Haible  <bruno@clisp.org>
50972
50973         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50974         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50975         Define to replacements if REPLACE_ISWCNTRL is 1.
50976         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50977         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50978         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50979         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50980         what it fixes.
50981         * doc/posix-functions/iswalpha.texi: Likewise.
50982         * doc/posix-functions/iswblank.texi: Likewise.
50983         * doc/posix-functions/iswcntrl.texi: Likewise.
50984         * doc/posix-functions/iswdigit.texi: Likewise.
50985         * doc/posix-functions/iswgraph.texi: Likewise.
50986         * doc/posix-functions/iswlower.texi: Likewise.
50987         * doc/posix-functions/iswprint.texi: Likewise.
50988         * doc/posix-functions/iswpunct.texi: Likewise.
50989         * doc/posix-functions/iswspace.texi: Likewise.
50990         * doc/posix-functions/iswupper.texi: Likewise.
50991         * doc/posix-functions/iswxdigit.texi: Likewise.
50992         Reported by Alain Guibert.
50993
50994 2008-04-21  Bruno Haible  <bruno@clisp.org>
50995
50996         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50997         Patch by Alain Guibert.
50998
50999 2008-04-21  Bruno Haible  <bruno@clisp.org>
51000
51001         Fix test failures on mingw.
51002         * tests/test-xstrtol.c (print_no_progname): New function.
51003         (main): Install it in error_print_progname hook.
51004         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51005         * tests/test-xstrtoimax.sh: Likewise.
51006         * tests/test-xstrtoumax.sh: Likewise.
51007
51008 2008-04-21  Bruno Haible  <bruno@clisp.org>
51009
51010         Fix test failure on mingw.
51011         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51012
51013 2008-04-21  Bruno Haible  <bruno@clisp.org>
51014
51015         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51016         Actually assign a value.
51017
51018 2008-04-20  Bruno Haible  <bruno@clisp.org>
51019
51020         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51021         take 2.
51022         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51023         'canonicalize-lgpl' module is also used.
51024         * lib/canonicalize-lgpl.c: Undo last change.
51025         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51026
51027 2008-04-20  Bruno Haible  <bruno@clisp.org>
51028
51029         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51030         config.h. Provide _mkdir based fallback for mingw.
51031         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51032         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51033         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51034         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51035         rather than defining mkdir in config.h.
51036         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51037         (gl_SYS_STAT_H_DEFAULTS): New macro.
51038         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51039         HAVE_IO_H any more.
51040         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51041         HAVE_DECL_MKDIR and HAVE_IO_H.
51042
51043 2008-04-20  Bruno Haible  <bruno@clisp.org>
51044
51045         * lib/isapipe.c: Port to native Windows platforms.
51046
51047 2008-04-20  Bruno Haible  <bruno@clisp.org>
51048
51049         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51050
51051 2008-04-21  Eric Blake  <ebb9@byu.net>
51052
51053         Work around preprocessors that don't handle UINTMAX_MAX.
51054         * lib/memchr2.c (memchr2): Avoid embedded #if.
51055         Reported by Alain Guibert, fix suggested by Bruno Haible.
51056
51057 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51058
51059         * doc/posix-functions/strftime.texi (strftime): Explain better
51060         Windows incompatibility.  Suggested by Micah Cowan
51061         <micah@cowan.name>.
51062
51063 2008-04-20  Bruno Haible  <bruno@clisp.org>
51064
51065         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51066         unistr/u8-mblen.
51067
51068 2008-04-20  Bruno Haible  <bruno@clisp.org>
51069
51070         Fix test failure on platforms with non-GNU iconv.
51071         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51072         (U_TO_U8): Use it, rather than u16_to_u8.
51073         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51074         units at the end of the input string.
51075         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51076
51077 2008-04-20  Bruno Haible  <bruno@clisp.org>
51078
51079         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51080         when the resulting length is 0.
51081         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51082
51083 2008-04-20  Bruno Haible  <bruno@clisp.org>
51084
51085         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51086         works.
51087         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51088
51089 2008-04-20  Bruno Haible  <bruno@clisp.org>
51090
51091         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51092         * modules/tsearch-tests (configure.ac): Test for initstate function.
51093
51094 2008-04-20  Bruno Haible  <bruno@clisp.org>
51095
51096         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51097         for nlink_t if missing.
51098         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51099
51100 2008-04-19  Bruno Haible  <bruno@clisp.org>
51101
51102         Work around snprintf bug on Linux libc5.
51103         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51105         gl_SNPRINTF_SIZE1.
51106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51107         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51108         that test failed.
51109         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51110         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51111         * modules/snprintf (Files): Add m4/printf.m4.
51112         * modules/vsnprintf (Files): Likewise.
51113         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51114         * doc/posix-functions/vsnprintf.texi: Likewise.
51115
51116 2008-04-19  Bruno Haible  <bruno@clisp.org>
51117
51118         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51119         from 0.0058 to less than 10^-7.
51120
51121 2008-04-19  Bruno Haible  <bruno@clisp.org>
51122
51123         Fix rounding when a precision is given.
51124         * lib/vasnprintf.c (is_borderline): New function.
51125         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51126         9...9x.
51127         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51128         %e, %g.
51129         * tests/test-vasprintf-posix.c (test_function): Likewise.
51130         * tests/test-snprintf-posix.h (test_function): Likewise.
51131         * tests/test-sprintf-posix.h (test_function): Likewise.
51132         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51133         * tests/test-printf-posix.h (test_function): Likewise.
51134         * tests/test-printf-posix.output: Update.
51135         Reported by John Darrington <john@darrington.wattle.id.au> via
51136         Ben Pfaff <blp@cs.stanford.edu>.
51137
51138 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51139
51140         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51141         Suggested by Bruno Haible <bruno@clisp.org>.
51142
51143 2008-04-17  Bruno Haible  <bruno@clisp.org>
51144
51145         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51146         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51147         implementation.
51148         Patch by Bruce Merry <bmerry@gmail.com>.
51149
51150 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51151
51152         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51153         doesn't work under Windows.
51154
51155 2008-04-16  Bruno Haible  <bruno@clisp.org>
51156
51157         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51158         New macros.
51159         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51160         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51161         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51162         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51163         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51164         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51165         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51166         macros.
51167         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51168         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51169         Northern Sotho, Uighur.
51170
51171 2008-04-16  Bruno Haible  <bruno@clisp.org>
51172
51173         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51174         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51175         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51176         Reported by Daniel Bergström <daniel@octocode.com>.
51177
51178 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51179             Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51182         function.
51183         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51184         New functions, mostly extracted from gl_locale_name_default.
51185         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51186
51187 2008-04-16  Eric Blake  <ebb9@byu.net>
51188
51189         Adjust strtod detection to catch glibc 2.7 bug.
51190         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51191         Reported by John Gatewood Ham.
51192
51193 2008-04-16  Bruno Haible  <bruno@clisp.org>
51194
51195         Add tentative support for Linux libc5.
51196         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51197         * lib/fpurge.c (fpurge): Likewise.
51198         * lib/freadable.c (freadable): Likewise.
51199         * lib/freadahead.c (freadahead): Likewise.
51200         * lib/freading.c (freading): Likewise.
51201         * lib/freadptr.c (freadptr): Likewise.
51202         * lib/freadseek.c (freadptrinc): Likewise.
51203         * lib/fseeko.c (rpl_fseeko): Likewise.
51204         * lib/fseterr.c (fseterr): Likewise.
51205         * lib/fwritable.c (fwritable): Likewise.
51206         * lib/fwriting.c (fwriting): Likewise.
51207         Reported by Alain Guibert <alguibert+bts@free.fr>.
51208
51209 2008-04-15  Bruno Haible  <bruno@clisp.org>
51210
51211         * modules/mathl (configure.ac): Define module indicator.
51212
51213 2008-04-15  Bruno Haible  <bruno@clisp.org>
51214
51215         * lib/logl.c (logl): Remove unused variables.
51216
51217 2008-04-15  Bruno Haible  <bruno@clisp.org>
51218
51219         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51220         fails.
51221
51222 2008-04-15  Bruno Haible  <bruno@clisp.org>
51223
51224         * lib/trim.c (trim2): Fix argument of isspace() macro.
51225
51226 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51227
51228         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51229         to 0.
51230         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51231
51232 2008-04-14  Bruno Haible  <bruno@clisp.org>
51233
51234         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51235         AC_LANG_PROGRAM argument.
51236         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51237         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51239         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51240         * m4/math_h.m4 (gl_MATH_H): Likewise.
51241         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51242         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51243         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51244         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51245         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51246         * m4/regex.m4 (gl_REGEX): Likewise.
51247         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51248         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51250         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51251         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51252         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51253         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51254         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51255
51256 2008-04-14  Jim Meyering  <meyering@redhat.com>
51257
51258         test-strtod: fix typos: s/abs/fabs/
51259         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51260
51261 2008-04-13  Bruno Haible  <bruno@clisp.org>
51262
51263         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51264         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51265         module is also used and while not building the reloc-wrapper.
51266
51267 2008-04-13  Bruno Haible  <bruno@clisp.org>
51268
51269         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51270
51271 2008-04-13  Bruno Haible  <bruno@clisp.org>
51272
51273         Fix AIX compilation failure introduced on 2008-04-02.
51274         * tests/test-frexp.c (exp): Undefine before redefining.
51275         * tests/test-frexpl.c (exp): Likewise.
51276
51277 2008-04-13  Bruno Haible  <bruno@clisp.org>
51278
51279         Work around a HP-UX stdio bug.
51280         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51281         * tests/test-ftello.c (main): Likewise.
51282         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51283         * doc/posix-functions/ftello.texi: Likewise.
51284
51285 2008-04-13  Bruno Haible  <bruno@clisp.org>
51286
51287         Make test-signbit pass on HP-UX/hppa.
51288         * tests/test-signbit.c (minus_zerol): New variable.
51289         (test_signbitl): Use it.
51290
51291 2008-04-13  Bruno Haible  <bruno@clisp.org>
51292
51293         Make truncl work on OSF/1 4.0.
51294         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51295         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51296         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51298         HAVE_DECL_TRUNCL.
51299         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51300         HAVE_DECL_TRUNCL.
51301         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51302
51303 2008-04-13  Bruno Haible  <bruno@clisp.org>
51304
51305         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51306
51307 2008-04-13  Bruno Haible  <bruno@clisp.org>
51308
51309         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51310         expression, so as to avoid HP-UX 11 cc compiler bug.
51311
51312 2008-04-13  Bruno Haible  <bruno@clisp.org>
51313
51314         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51315
51316 2008-04-13  Bruno Haible  <bruno@clisp.org>
51317
51318         * lib/git-merge-changelog.c: Remove empty declaration outside of
51319         functions.
51320
51321 2008-04-13  Bruno Haible  <bruno@clisp.org>
51322
51323         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51324
51325 2008-04-13  Bruno Haible  <bruno@clisp.org>
51326
51327         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51328         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51329         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51330         also if it exists but lacks definitions of the SHUT_* macros.
51331         * modules/sys_socket (Description): Update.
51332         Reported by Elbert Pol <e.pol@chello.nl>.
51333
51334 2008-04-13  Bruno Haible  <bruno@clisp.org>
51335
51336         * lib/localcharset.c (OS2): Don't redefine if already defined.
51337         Reported by Elbert Pol <e.pol@chello.nl>.
51338
51339 2008-04-13  Bruno Haible  <bruno@clisp.org>
51340
51341         * lib/binary-io.h [__EMX__]: Include <io.h>.
51342         Reported by Elbert Pol <e.pol@chello.nl>.
51343
51344 2008-04-12  Bruno Haible  <bruno@clisp.org>
51345
51346         * lib/fpucw.h: Enable the definitions also for x86_64.
51347         Needed for NetBSD/x86_64.
51348         Reported by Thomas Klausner <tk@giga.or.at>.
51349
51350 2008-04-12  Bruno Haible  <bruno@clisp.org>
51351
51352         * tests/test-strtod.c: Include isnand.h.
51353         (main): Use isnand instead of isnan.
51354         Reported by Jim Meyering.
51355
51356 2008-04-12  Bruno Haible  <bruno@clisp.org>
51357
51358         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51359         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51360
51361 2008-04-12  Jim Meyering  <meyering@redhat.com>
51362
51363         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51364
51365 2008-04-12  Bruno Haible  <bruno@clisp.org>
51366
51367         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51368         Reported by Elbert Pol <e.pol@chello.nl>.
51369
51370 2008-04-12  Eric Blake  <ebb9@byu.net>
51371
51372         Work around Solaris 10 math.h bug.
51373         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51374         (gl_MATH_H_DEFAULTS): Set up default.
51375         * modules/math (Makefile.am): Replace new indicators.
51376         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51377         * tests/test-math.c (main): Test this.
51378         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51379         * doc/posix-headers/math.texi (math.h): Mention bug.
51380         Reported by Nelson H. F. Beebe and Jim Meyering.
51381
51382 2008-04-11  Bruno Haible  <bruno@clisp.org>
51383
51384         Adapt to future versions of Apple GCC.
51385         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51386         Reported by Peter O'Gorman <peter@pogma.com>.
51387
51388 2008-04-11  Bruno Haible  <bruno@clisp.org>
51389
51390         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51391
51392 2008-04-11  Bruno Haible  <bruno@clisp.org>
51393
51394         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51395
51396         * modules/getaddrinfo-tests (Makefile.am): Define
51397         test_getaddrinfo_LDADD.
51398
51399 2008-04-11  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51402         (init): Fix syntax error.
51403         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51404         is declared.
51405
51406 2008-04-11  Bruno Haible  <bruno@clisp.org>
51407
51408         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51409         * modules/glob (Depends-on): Add stdbool.
51410
51411 2008-04-11  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/trim.c: Include <string.h>.
51414
51415 2008-04-11  Eric Blake  <ebb9@byu.net>
51416
51417         Avoid compile failure on OS/2.
51418         * lib/regex_internal.h (internal_function): Disable optimization
51419         on OS/2 (__EMX__), where it caused compiler error.
51420         Reported by Elbert Pol.
51421
51422 2008-04-11  Bruno Haible  <bruno@clisp.org>
51423
51424         Flush the standard error stream before aborting. Needed on mingw.
51425         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51426         * tests/test-array_list.c (ASSERT): Likewise.
51427         * tests/test-array_oset.c (ASSERT): Likewise.
51428         * tests/test-avltree_list.c (ASSERT): Likewise.
51429         * tests/test-avltree_oset.c (ASSERT): Likewise.
51430         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51431         * tests/test-binary-io.c (ASSERT): Likewise.
51432         * tests/test-byteswap.c (ASSERT): Likewise.
51433         * tests/test-c-ctype.c (ASSERT): Likewise.
51434         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51435         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51436         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51437         * tests/test-c-strstr.c (ASSERT): Likewise.
51438         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51439         * tests/test-canonicalize.c (ASSERT): Likewise.
51440         * tests/test-carray_list.c (ASSERT): Likewise.
51441         * tests/test-ceilf1.c (ASSERT): Likewise.
51442         * tests/test-ceilf2.c (ASSERT): Likewise.
51443         * tests/test-ceill.c (ASSERT): Likewise.
51444         * tests/test-count-one-bits.c (ASSERT): Likewise.
51445         * tests/test-fbufmode.c (ASSERT): Likewise.
51446         * tests/test-fflush2.c (ASSERT): Likewise.
51447         * tests/test-floorf1.c (ASSERT): Likewise.
51448         * tests/test-floorf2.c (ASSERT): Likewise.
51449         * tests/test-floorl.c (ASSERT): Likewise.
51450         * tests/test-fopen.c (ASSERT): Likewise.
51451         * tests/test-fpending.c (ASSERT): Likewise.
51452         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51453         * tests/test-fpurge.c (ASSERT): Likewise.
51454         * tests/test-freadable.c (ASSERT): Likewise.
51455         * tests/test-freadahead.c (ASSERT): Likewise.
51456         * tests/test-freading.c (ASSERT): Likewise.
51457         * tests/test-freadptr.c (ASSERT): Likewise.
51458         * tests/test-freadptr2.c (ASSERT): Likewise.
51459         * tests/test-freadseek.c (ASSERT): Likewise.
51460         * tests/test-freopen.c (ASSERT): Likewise.
51461         * tests/test-frexp.c (ASSERT): Likewise.
51462         * tests/test-frexpl.c (ASSERT): Likewise.
51463         * tests/test-fseek.c (ASSERT): Likewise.
51464         * tests/test-fseeko.c (ASSERT): Likewise.
51465         * tests/test-fstrcmp.c (ASSERT): Likewise.
51466         * tests/test-ftell.c (ASSERT): Likewise.
51467         * tests/test-ftello.c (ASSERT): Likewise.
51468         * tests/test-func.c (ASSERT): Likewise.
51469         * tests/test-fwritable.c (ASSERT): Likewise.
51470         * tests/test-fwriting.c (ASSERT): Likewise.
51471         * tests/test-getdelim.c (ASSERT): Likewise.
51472         * tests/test-getline.c (ASSERT): Likewise.
51473         * tests/test-i-ring.c (ASSERT): Likewise.
51474         * tests/test-iconv-utf.c (ASSERT): Likewise.
51475         * tests/test-iconv.c (ASSERT): Likewise.
51476         * tests/test-isfinite.c (ASSERT): Likewise.
51477         * tests/test-isnand.c (ASSERT): Likewise.
51478         * tests/test-isnanf.c (ASSERT): Likewise.
51479         * tests/test-isnanl.h (ASSERT): Likewise.
51480         * tests/test-ldexpl.c (ASSERT): Likewise.
51481         * tests/test-linked_list.c (ASSERT): Likewise.
51482         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51483         * tests/test-localename.c (ASSERT): Likewise.
51484         * tests/test-lseek.c (ASSERT): Likewise.
51485         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51486         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51487         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51488         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51489         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51490         * tests/test-mbschr.c (ASSERT): Likewise.
51491         * tests/test-mbscspn.c (ASSERT): Likewise.
51492         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51493         * tests/test-mbspbrk.c (ASSERT): Likewise.
51494         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51495         * tests/test-mbsrchr.c (ASSERT): Likewise.
51496         * tests/test-mbsspn.c (ASSERT): Likewise.
51497         * tests/test-mbsstr1.c (ASSERT): Likewise.
51498         * tests/test-mbsstr2.c (ASSERT): Likewise.
51499         * tests/test-mbsstr3.c (ASSERT): Likewise.
51500         * tests/test-memchr2.c (ASSERT): Likewise.
51501         * tests/test-memmem.c (ASSERT): Likewise.
51502         * tests/test-open.c (ASSERT): Likewise.
51503         * tests/test-printf-frexp.c (ASSERT): Likewise.
51504         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51505         * tests/test-printf-posix.c (ASSERT): Likewise.
51506         * tests/test-quotearg.c (ASSERT): Likewise.
51507         * tests/test-rbtree_list.c (ASSERT): Likewise.
51508         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51509         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51510         * tests/test-round1.c (ASSERT): Likewise.
51511         * tests/test-roundf1.c (ASSERT): Likewise.
51512         * tests/test-roundl.c (ASSERT): Likewise.
51513         * tests/test-signbit.c (ASSERT): Likewise.
51514         * tests/test-sleep.c (ASSERT): Likewise.
51515         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51516         * tests/test-snprintf.c (ASSERT): Likewise.
51517         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51518         * tests/test-stat-time.c (ASSERT): Likewise.
51519         * tests/test-strcasestr.c (ASSERT): Likewise.
51520         * tests/test-strerror.c (ASSERT): Likewise.
51521         * tests/test-striconv.c (ASSERT): Likewise.
51522         * tests/test-striconveh.c (ASSERT): Likewise.
51523         * tests/test-striconveha.c (ASSERT): Likewise.
51524         * tests/test-strsignal.c (ASSERT): Likewise.
51525         * tests/test-strstr.c (ASSERT): Likewise.
51526         * tests/test-strtod.c (ASSERT): Likewise.
51527         * tests/test-trunc1.c (ASSERT): Likewise.
51528         * tests/test-trunc2.c (ASSERT): Likewise.
51529         * tests/test-truncf1.c (ASSERT): Likewise.
51530         * tests/test-truncf2.c (ASSERT): Likewise.
51531         * tests/test-truncl.c (ASSERT): Likewise.
51532         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51533         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51534         * tests/test-vasnprintf.c (ASSERT): Likewise.
51535         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51536         * tests/test-vasprintf.c (ASSERT): Likewise.
51537         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51538         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51539         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51540         * tests/test-vsnprintf.c (ASSERT): Likewise.
51541         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51542         * tests/test-wcwidth.c (ASSERT): Likewise.
51543         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51544         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51545         * tests/test-xvasprintf.c (ASSERT): Likewise.
51546         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51547         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51548         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51549         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51550         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51551         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51552         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51553         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51554         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51555         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51556         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51557         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51558         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51559         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51560         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51561         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51562         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51563         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51564         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51565         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51566         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51567         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51568         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51569         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51570         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51571         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51572         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51573         * tests/unictype/test-combining.c (ASSERT): Likewise.
51574         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51575         * tests/unictype/test-digit.c (ASSERT): Likewise.
51576         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51577         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51578         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51579         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51580         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51581         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51582         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51583         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51584         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51585         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51586         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51587         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51588         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51589         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51590         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51591         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51592         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51593         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51594         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51595         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51596         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51597         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51598         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51599         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51600         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51601         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51602         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51603         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51604         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51605         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51606         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51607         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51608         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51609         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51610         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51611         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51612         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51613         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51614         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51615         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51616         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51617         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51618         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51619         Reported by Eric Blake.
51620
51621 2008-04-11  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/wchar.in.h: Tweak comment.
51624
51625 2008-04-11  Bruno Haible  <bruno@clisp.org>
51626
51627         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51628         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51629         gl_COMMON.
51630         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51631
51632 2008-04-11  Bruno Haible  <bruno@clisp.org>
51633
51634         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51635
51636 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51637
51638         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51639         of attempting to use non-existing /dev/*random.  Based on patch
51640         from Adam Strzelecki <ono@java.pl> in
51641         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51642
51643 2008-04-08  Bruno Haible  <bruno@clisp.org>
51644
51645         Add tentative support for emx+gcc.
51646         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51647         * lib/fpurge.c (fpurge): Likewise.
51648         * lib/freadable.c (freadable): Likewise.
51649         * lib/freadahead.c (freadahead): Likewise.
51650         * lib/freading.c (freading): Likewise.
51651         * lib/freadptr.c (freadptr): Likewise.
51652         * lib/freadseek.c (freadptrinc): Likewise.
51653         * lib/fseeko.c (rpl_fseeko): Likewise.
51654         * lib/fseterr.c (fseterr): Likewise.
51655         * lib/fwritable.c (fwritable): Likewise.
51656         * lib/fwriting.c (fwriting): Likewise.
51657         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51658
51659 2008-04-09  Eric Blake  <ebb9@byu.net>
51660
51661         Avoid some autoconf warnings.
51662         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51663         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51664         * m4/afs.m4 (gl_AFS): Likewise.
51665         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51666         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51667         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51668         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51669         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51670         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51671         (AC_CHECK_DECLS_ONCE): Likewise.
51672         Rename file...
51673         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51674         gnulib-tool requires autoconf 2.59 or better.
51675         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51676
51677 2008-04-08  Eric Blake  <ebb9@byu.net>
51678
51679         Use 'git describe --match' if present (added in git 1.5.5).
51680         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51681         if possible.
51682
51683 2008-04-08  Bruno Haible  <bruno@clisp.org>
51684
51685         Add tentative support for OpenServer.
51686         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51687         _ptr, _cnt.
51688         * lib/fpurge.c (fpurge): Likewise.
51689         * lib/freadable.c (freadable): Likewise.
51690         * lib/freadahead.c (freadahead): Likewise.
51691         * lib/freading.c (freading): Likewise.
51692         * lib/freadptr.c (freadptr): Likewise.
51693         * lib/freadseek.c (freadptrinc): Likewise.
51694         * lib/fseeko.c (rpl_fseeko): Likewise.
51695         * lib/fseterr.c (fseterr): Likewise.
51696         * lib/fwritable.c (fwritable): Likewise.
51697         * lib/fwriting.c (fwriting): Likewise.
51698         Reported by Roger Cornelius <rac@tenzing.org> and
51699         Brian K. White <brian@aljex.com>.
51700
51701 2008-04-06  Jim Meyering  <meyering@redhat.com>
51702
51703         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51704
51705 2008-04-06  Bruno Haible  <bruno@clisp.org>
51706
51707         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51708         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51709         * tests/test-printf-posix.sh: Likewise.
51710         * tests/test-vfprintf-posix.sh: Likewise.
51711         * tests/test-vprintf-posix.sh: Likewise.
51712         * tests/test-xprintf-posix.sh: Likewise.
51713
51714 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51715
51716         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51717         hide error from 'ls', needed on OS/2.
51718         Report by Elbert Pol <elbert.pol@gmail.com>.
51719
51720 2008-04-04  Eric Blake  <ebb9@byu.net>
51721
51722         Make test-fseeko.c failures meaningful.
51723         * tests/test-fseeko.c: Print line number on failure.
51724         * tests/test-fseek.c: Likewise.
51725         Reported by Nelson H. F. Beebe.
51726
51727         Improve strtod bug detection check.
51728         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51729         required for Solaris 10.
51730         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51731
51732 2008-04-04  Bruno Haible  <bruno@clisp.org>
51733
51734         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51735         by m4/setenv.m4.
51736
51737 2008-04-03  Eric Blake  <ebb9@byu.net>
51738
51739         Ensure sane .version contents.
51740         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51741         version string.
51742         * build-aux/git-version-gen: Improve documentation.
51743
51744         Make GNU make output nicer.
51745         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51746         MAKECMDGOALS to enforce message for all command line targets.  Set
51747         srcdir for use in maint.mk.
51748
51749         Another maintainer tweak.
51750         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51751         a target that regenerates version.
51752
51753 2008-04-03  Jim Meyering  <meyering@redhat.com>
51754
51755         vc-list-files: don't cause coreutils "make po-check" failure
51756         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51757
51758 2008-04-03  Eric Blake  <ebb9@byu.net>
51759
51760         Allow VPATH usage of vc-list-files.
51761         * build-aux/vc-list-files (scriptversion): Add timestamp.
51762         (options): Add --help, --version, -C.
51763         (CVS): Support installed cvsu.
51764
51765 2008-04-02  Bruno Haible  <bruno@clisp.org>
51766
51767         Avoid some "statement with no effect" warnings from gcc.
51768         * tests/test-wctype.c (main): Explicitly ignore unused values.
51769         Reported by Jim Meyering.
51770
51771 2008-04-02  Jim Meyering  <meyering@redhat.com>
51772
51773         Avoid some warnings from "gcc -Wshadow".
51774         * tests/test-frexp.c (exp): Define to a different identifier.
51775         * tests/test-frexpl.c (exp): Likewise.
51776
51777 2008-04-03  Jim Meyering  <meyering@redhat.com>
51778
51779         bootstrap: remove dangling *.[ch] symlinks from lib
51780         * build-aux/bootstrap [dangling symlink removal]: Move find's
51781         -depth option to precede all others, to avoid a warning.
51782         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51783
51784 2008-04-02  Bruno Haible  <bruno@clisp.org>
51785
51786         Avoid some warnings from "gcc -Wshadow".
51787         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51788         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51789         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51790         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51791         Reported by Jim Meyering.
51792
51793 2008-04-01  Bruno Haible  <bruno@clisp.org>
51794
51795         Fix test to work on IRIX 6.5 with cc.
51796         * tests/test-math.c (numeric_equal): New function.
51797         (main): Use it.
51798
51799 2008-04-01  Bruno Haible  <bruno@clisp.org>
51800
51801         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51802
51803 2008-04-01  Bruno Haible  <bruno@clisp.org>
51804
51805         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51806         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51807         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51808         (Depends-on): Remove math.
51809
51810         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51811         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51812         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51813         (Depends-on): Remove math.
51814
51815         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51816         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51817         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51818         (Depends-on): Remove math.
51819         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51820         (Depends-on): Remove math.
51821
51822         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51823         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51824         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51825         (Depends-on): Remove math.
51826         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51827         (Depends-on): Remove math.
51828
51829         * tests/test-round1.c: Include nan.h.
51830         (main): Use NaNd instead of NAN.
51831         * modules/round-tests (Files): Add tests/nan.h.
51832
51833         * tests/test-trunc1.c: Include nan.h.
51834         (main): Use NaNd instead of NAN.
51835         * modules/trunc-tests (Files): Add tests/nan.h.
51836
51837         * tests/test-roundf1.c: Include nan.h.
51838         (main): Use NaNf instead of NAN.
51839         * modules/roundf-tests (Files): Add tests/nan.h.
51840
51841         * tests/test-truncf1.c: Include nan.h.
51842         (main): Use NaNf instead of NAN.
51843         * modules/truncf-tests (Files): Add tests/nan.h.
51844
51845         * tests/test-ceilf1.c: Include nan.h.
51846         (main): Use NaNf instead of NAN.
51847         * modules/ceilf-tests (Files): Add tests/nan.h.
51848
51849         * tests/test-floorf1.c: Include nan.h.
51850         (main): Use NaNf instead of NAN.
51851         * modules/floorf-tests (Files): Add tests/nan.h.
51852
51853         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51854         (main): Use NaNf instead of NAN.
51855         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51856
51857         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51858         (main): Use NaNd instead of NAN.
51859         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51860
51861         * tests/test-frexp.c: Include nan.h.
51862         (main): Use NaNd instead of NAN.
51863         * modules/frexp-tests (Files): Add tests/nan.h.
51864
51865         * lib/isnan.c: Don't include <math.h>.
51866         (FUNC): Don't use NAN macro.
51867         * modules/isnand-nolibm (Depends-on): Remove math.
51868         * modules/isnanf-nolibm (Depends-on): Remove math.
51869         * modules/isnanl (Depends-on): Remove math.
51870         * modules/isnanl-nolibm (Depends-on): Remove math.
51871
51872         * tests/nan.h: New file.
51873
51874 2008-04-01  Eric Blake  <ebb9@byu.net>
51875
51876         Fix typos.
51877         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51878         values to be the right type.
51879
51880         For now, cater to gnulib strtod inaccuracies.
51881         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51882         fractional results.  While not as nice from a QoI perspective, it
51883         is a quicker patch than correctly implementing decimal to binary
51884         rounding.
51885
51886 2008-03-31  Eric Blake  <ebb9@byu.net>
51887
51888         Guarantee a definition of NAN.
51889         * lib/math.in.h (NAN): Define if missing.
51890         * tests/test-math.c (main): Test it.
51891         * doc/posix-headers/math.texi (math.h): Document this.
51892         * lib/isnan.c (rpl_isnand): Use it.
51893         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51894         * tests/test-floorf1.c (NaN): Likewise.
51895         * tests/test-frexp.c (NaN): Likewise.
51896         * tests/test-isnand.c (NaN): Likewise.
51897         * tests/test-isnanf.c (NaN): Likewise.
51898         * tests/test-round1.c (NaN): Likewise.
51899         * tests/test-roundf1.c (NaN): Likewise.
51900         * tests/test-snprintf-posix.h (NaN): Likewise.
51901         * tests/test-sprintf-posix.h (NaN): Likewise.
51902         * tests/test-trunc1.c (NaN): Likewise.
51903         * tests/test-truncf1.c (NaN): Likewise.
51904         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51905         * tests/test-vasprintf-posix.c (NaN): Likewise.
51906         * modules/isnand-nolibm (Depends-on): Add math.
51907         * modules/isnanf-nolibm (Depends-on): Likewise.
51908         * modules/isnanl (Depends-on): Likewise.
51909         * modules/isnanl-nolibm (Depends-on): Likewise.
51910         * modules/snprintf-posix-tests (Depends-on): Likewise.
51911         * modules/sprintf-posix-tests (Depends-on): Likewise.
51912         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51913         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51914         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51915         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51916
51917 2008-03-31  Bruno Haible  <bruno@clisp.org>
51918
51919         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51920         * doc/posix-functions/strtod.texi: Likewise.
51921
51922 2008-03-31  Bruno Haible  <bruno@clisp.org>
51923
51924         * tests/test-strtod.c (main): Don't use C99 syntax.
51925
51926 2008-03-31  Bruno Haible  <bruno@clisp.org>
51927
51928         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51929         Reported by Eric Blake.
51930
51931 2008-03-31  Jim Meyering  <meyering@redhat.com>
51932
51933         Don't compare actual signbit return values.
51934         * tests/test-strtod.c (main): Rather, compare only their
51935         zero/non-zero nature.
51936
51937 2008-03-31  Eric Blake  <ebb9@byu.net>
51938
51939         More strtod documentation.
51940         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51941         failures as distinct bugs.
51942
51943 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51944
51945         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51946         Problem reported by Erik Benada in
51947         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51948
51949 2008-03-30  Bruno Haible  <bruno@clisp.org>
51950
51951         * tests/test-strtod.c: Add comments about which assertion fails on which
51952         platform.
51953         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51954
51955 2008-03-30  Eric Blake  <ebb9@byu.net>
51956
51957         Test signbit behavior on zeros.
51958         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51959         (test_signbitd, test_signbitl): Likewise.
51960
51961         More strtod touchups.
51962         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51963         sign of negative underflow, for now.  Use .5, not .1.
51964         * doc/posix-functions/strtod.texi (strtod): Mention these
51965         limitations.
51966         Reported by Jim Meyering.
51967
51968 2008-03-30  Bruno Haible  <bruno@clisp.org>
51969
51970         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51971         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51972
51973 2008-03-30  Bruno Haible  <bruno@clisp.org>
51974
51975         Avoid failure when attempting to return empty iconv results on some
51976         platforms.
51977         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51978         allocation, don't report ENOMEM when the resulting string is empty.
51979
51980 2008-03-30  Bruno Haible  <bruno@clisp.org>
51981
51982         Fix buffer overrun.
51983         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51984         Don't consider the width for tmp_length. Check count against tmp_length
51985         before doing the padding. Ensure enough allocation during padding.
51986
51987 2008-03-30  Eric Blake  <ebb9@byu.net>
51988
51989         strtod touchups.
51990         * lib/strtod.c (strtod): Avoid compiler warnings.
51991         Reported by Jim Meyering.
51992
51993 2008-03-30  Bruno Haible  <bruno@clisp.org>
51994
51995         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51996         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51997         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51998         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51999         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52000         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52001         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52002         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52003
52004         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52005         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52006         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52007         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52008         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52009         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52010         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52011         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52012
52013         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52014         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52015         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52016         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52017         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52018         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52019         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52020         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52021
52022         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52023         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52024
52025         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52026         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52027
52028         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52029         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52030
52031         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52032         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52033         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52034
52035         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52037         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52038
52039         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52040         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52041         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52042
52043         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52044         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52045         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52046
52047         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52048         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52049         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52050         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52051         (Depends-on): Add EOVERFLOW.
52052         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52053         (Depends-on): Add EOVERFLOW.
52054         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52055         (Depends-on): Add EOVERFLOW.
52056         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52057         (Depends-on): Add EOVERFLOW.
52058         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52059         (Depends-on): Add EOVERFLOW.
52060         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52061         (Depends-on): Add EOVERFLOW.
52062         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52063         (Depends-on): Add EOVERFLOW.
52064         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52065         (Depends-on): Add EOVERFLOW.
52066
52067         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52068         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52069         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52070
52071         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52072         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52073         * modules/snprintf (Depends-on): Add EOVERFLOW.
52074
52075         * lib/poll.c (EOVERFLOW): Remove fallback.
52076         * modules/poll (Depends-on): Add EOVERFLOW.
52077
52078         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52079         * modules/getugroups (Depends-on): Add EOVERFLOW.
52080
52081         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52082         * modules/getdelim (Depends-on): Add EOVERFLOW.
52083
52084         * lib/ftell.c (EOVERFLOW): Remove fallback.
52085         * modules/ftell (Depends-on): Add EOVERFLOW.
52086
52087         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52088         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52089         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52090
52091         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52092
52093         * modules/EOVERFLOW-tests: New file.
52094         * tests/test-EOVERFLOW.c: New file.
52095
52096         * modules/EOVERFLOW: New file.
52097         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52098
52099 2008-03-30  Bruno Haible  <bruno@clisp.org>
52100
52101         Fix bug introduced on 2007-06-10.
52102         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52103         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52104
52105 2008-03-30  Bruno Haible  <bruno@clisp.org>
52106
52107         Improve freadseek's efficiency after ungetc.
52108         * lib/freadseek.c: Include freadahead.h.
52109         (freadptrinc): New function, extracted from freadseek.
52110         (freadseek): Use it in a loop. Use freadahead to determine the number
52111         of loop iterations.
52112         * modules/freadseek (Depends-on): Add freadahead.
52113         (configure.ac): Require AC_C_INLINE.
52114
52115 2008-03-30  Bruno Haible  <bruno@clisp.org>
52116
52117         * lib/freadseek.c (freadseek): Don't ignore the return value of
52118         freadptr.
52119
52120 2008-03-29  Eric Blake  <ebb9@byu.net>
52121
52122         Add hex float support.
52123         * modules/strtod (Depends-on): Add c-ctype.
52124         (Link): Mention POW_LIB.
52125         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52126         whitespace between 'e' and exponent.
52127         * tests/test-strtod.c (main): Enable hex float tests.
52128         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52129         now provides.
52130
52131         Document various strtod bugs, with some fixes.
52132         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52133         "-0x", "inf", "nan", and hex constants.
52134         * doc/posix-functions/atof.texi (atof): Likewise.
52135         * modules/stdlib (Makefile.am): Support strtod.
52136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52137         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52138         detect additional strtod bugs.
52139         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52140         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52141         bool where appropriate.  Parse 'inf' and 'nan'.
52142         * tests/test-strtod.c: New file.
52143         * modules/strtod (Depends-on): Add stdbool, stdlib.
52144         (configure.ac): Turn on module indicator.
52145         * modules/strtod-tests: New module.
52146
52147 2008-03-29  Eric Blake  <ebb9@byu.net>
52148
52149         Fix ftell on mingw.
52150         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52151         * modules/ftell-tests (Depends-on): Add binary-io.
52152         * modules/ftello-tests (Depends-on): Likewise.
52153         * tests/test-ftell.c (main): Enhance test to cover behavior after
52154         ungetc.  Enforce binary mode.
52155         * tests/test-ftello.c (main): Likewise.
52156
52157         Pass test-freadseek on cygwin.
52158         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52159         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52160         ungetc buffer.
52161
52162         * tests/test-fflush2.c (main): Fix typo.
52163
52164 2008-03-29  Bruno Haible  <bruno@clisp.org>
52165
52166         * tests/test-fflush2.c (main): Temporarily disable the contents of
52167         this test.
52168         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52169         Reported by Eric Blake.
52170
52171 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52172
52173         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52174         (GC_SHA224_DIGEST_SIZE): Add.
52175
52176         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52177         (gc_hash_digest_length): Likewise.
52178         (gc_hash_buffer): Likewise.
52179
52180 2008-03-25  Bruno Haible  <bruno@clisp.org>
52181
52182         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52183         detail which gettext release to use.
52184         Reported by Simon Josefsson.
52185
52186 2008-03-26  Jim Meyering  <meyering@redhat.com>
52187
52188         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52189         * modules/gnumakefile (clean-GNUmakefile): Also, use
52190         test ... && ... || : syntax rather than if-then ... fi.
52191
52192         gnumakefile: Don't double-quote-expand $(VPATH) value.
52193         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52194
52195 2008-03-24  Eric Blake  <ebb9@byu.net>
52196
52197         Alter GNUmakefile to install into top directory.
52198         * modules/maintainer-makefile: Split, and add dependency...
52199         * modules/gnumakefile: to this new module.
52200         * build-aux/GNUmakefile: Move...
52201         * top/GNUmakefile: ...here.
52202         * build-aux/maint.mk: Move...
52203         * top/maint.mk: ...here.
52204         * MODULES.html.sh (Support for maintaining...): Document new
52205         module.
52206
52207 2008-03-23  Bruno Haible  <bruno@clisp.org>
52208
52209         * gnulib-tool: New options --vc-files, --no-vc-files.
52210         (func_usage): Document them.
52211         (vc_files): New variable.
52212         (func_import): Consider vc_files.
52213         (func_create_testdir): Set vc_files to empty.
52214         Suggested by Jim Meyering and Karl Berry.
52215
52216 2008-03-23  Bruno Haible  <bruno@clisp.org>
52217
52218         Fix regex compilation error on HP-UX 11.
52219         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52220         * modules/regex (Files): Add m4/mbstate_t.m4.
52221         Reported by Ton Voon <ton.voon@altinity.com>.
52222
52223 2008-03-23  Bruno Haible  <bruno@clisp.org>
52224
52225         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52226
52227 2008-03-23  Eric Blake  <ebb9@byu.net>
52228             Bruno Haible  <bruno@clisp.org>
52229
52230         Install files from top/ in the destination directory.
52231         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52232         augmentation also for the files from top/.
52233         (func_import, func_create_testdir): Rewrite file names:
52234         top/filename -> filename.
52235
52236 2008-03-23  Bruno Haible  <bruno@clisp.org>
52237
52238         Tweak "gnulib --version" output.
52239         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52240
52241 2008-03-23  Bruno Haible  <bruno@clisp.org>
52242
52243         Tweak "gnulib --version" output.
52244         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52245         rather than contents of ChangeLog, when possible.
52246
52247 2008-03-21  Eric Blake  <ebb9@byu.net>
52248
52249         More --version tweaks.
52250         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52251         date of last ChangeLog entry.
52252
52253 2008-03-21  Jim Meyering  <meyering@redhat.com>
52254
52255         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52256
52257 2008-03-20  Eric Blake  <ebb9@byu.net>
52258
52259         VPATH fix.
52260         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52261
52262 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52263
52264         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52265         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52266
52267 2008-03-20  Eric Blake  <ebb9@byu.net>
52268
52269         Sync GNUmakefile with coreutils.
52270         * build-aux/GNUmakefile (have-Makefile): Rename...
52271         (_have-Makefile): ...to this, for namespace consideration.
52272         (GNUmakefile.cfg): Include, if present.
52273         (_autoreconf): Define a default.
52274         (_is-dist-target): New rule for rebuilds to pick up intra-release
52275         version.
52276         (maint-cfg.mk): Rename...
52277         (cfg.mk): ...to this.
52278
52279 2008-03-18  Jim Meyering  <meyering@redhat.com>
52280
52281         New script and module: mktempd
52282         * MODULES.html.sh (maint+release support): Add mktempd.
52283         * build-aux/mktempd: New file.
52284         * modules/mktempd: New file.
52285
52286 2008-03-15  Jim Meyering  <meyering@redhat.com>
52287
52288         Undo last change.
52289         * lib/sha1.c, lib/md5.c: 63 != ~63.
52290         Reported by Andreas Schwab.
52291
52292         sha1.c, md5.c: Hoist a redundant expression.
52293         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52294         "ctx->buflen" only once, before calling *_process_block.
52295         * lib/md5.c (md5_process_bytes): Likewise.
52296
52297 2008-03-14  Eric Blake  <ebb9@byu.net>
52298
52299         Bump copyright year in files generated by gnulib-tool.
52300         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52301         gnulib-tool, rather than hard-coding it.
52302
52303         Fix 'gnulib-tool --version' output to work with git.
52304         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52305         (startup): ...here.
52306         (func_version): Use it to invoke git-version-gen, rather than
52307         relying on CVS keyword expansion.  Modernize wording.
52308         (cvsdatestamp, last_checkin_date, version): Kill unused
52309         variables.
52310
52311 2008-03-12  Jim Meyering  <meyering@redhat.com>
52312
52313         Recognize optional cast of the argument to free.
52314         * build-aux/useless-if-before-free: Update regexps.
52315
52316         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52317
52318 2008-03-11  Bruno Haible  <bruno@clisp.org>
52319
52320         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52321         by a single package.
52322         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52323         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52324         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52325         Reported by Sam Steingold <sds@gnu.org>.
52326
52327 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52328
52329         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52330         repositories.
52331
52332 2008-03-11  Bruno Haible  <bruno@clisp.org>
52333
52334         Avoid conflicts between local macro definitions.
52335         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52336         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52337
52338 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52339             Bruno Haible  <bruno@clisp.org>
52340
52341         Make va_copy work with some version of xlc on AIX 5.1.
52342         * lib/stdarg.in.h: New file.
52343         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52344         On AIX, use a <stdarg.h> file substitute.
52345         * modules/stdarg (Files): Add lib/stdarg.in.h.
52346         (Depends-on): Add include_next.
52347         (Makefile.am): Build a stdarg.h substitute if requested.
52348         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52349
52350 2008-03-10  Bruno Haible  <bruno@clisp.org>
52351
52352         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52353         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52354         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52355
52356 2008-03-10  Bruno Haible  <bruno@clisp.org>
52357
52358         * modules/stdlib (Depends-on): Add include_next, remove
52359         absolute-header.
52360
52361 2008-03-09  Bruno Haible  <bruno@clisp.org>
52362
52363         * lib/freadahead.h (freadahead): Document more precisely.
52364         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52365         the sum of both buffer sizes.
52366         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52367         * NEWS: Document the change.
52368
52369 2008-03-09  Bruno Haible  <bruno@clisp.org>
52370
52371         Extend freadptr to return also the buffer size.
52372         * lib/freadptr.h (freadptr): Add sizep argument.
52373         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52374         (freadptr): Add sizep argument. Determine buffer size like freadahead
52375         does.
52376         * tests/test-freadptr.c: Don't include freadahead.h.
52377         (main): Adapt for new calling convention of freadptr.
52378         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52379         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52380         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52381         tests/test-freadptr2.sh.
52382         (Depends): Remove freadahead.
52383         (TESTS): Add test-freadptr2.sh.
52384         (check_PROGRAMS): Add test-freadptr2.
52385
52386 2008-03-09  Bruno Haible  <bruno@clisp.org>
52387
52388         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52389         Report and solution by Simon Josefsson.
52390
52391 2008-03-06  Bruno Haible  <bruno@clisp.org>
52392
52393         Make fflush after ungetc work on BSD platforms.
52394         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52395         * tests/test-fflush2.c: New file.
52396         * tests/test-fflush2.sh: New file.
52397         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52398         tests/test-fflush2.c.
52399         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52400         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52401
52402 2008-03-06  Eric Blake  <ebb9@byu.net>
52403
52404         Likewise for ftello.
52405         * modules/ftello (Dependencies): Add extensions.
52406         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52407
52408 2008-03-06  Bruno Haible  <bruno@clisp.org>
52409
52410         * modules/fseeko (Dependencies): Add extensions.
52411         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52412         Needed on glibc systems.
52413
52414 2008-03-06  Bruno Haible  <bruno@clisp.org>
52415
52416         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52417         email address.
52418         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52419
52420 2008-03-06  Bruno Haible  <bruno@clisp.org>
52421
52422         * users.txt: Add libgnupdf.
52423
52424 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52425
52426         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52427         (Header File Substitutes, Function Substitutes,
52428         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52429         (Build robot for gnulib): Fix typo.
52430
52431 2008-03-06  Bruno Haible  <bruno@clisp.org>
52432
52433         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52434         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52435
52436 2008-03-06  Bruno Haible  <bruno@clisp.org>
52437
52438         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52439         * doc/gnulib.texi: Include it.
52440
52441 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52442
52443         * modules/func (License): Change license to unlimited; there was
52444         no LGPL parts in the module anyway.
52445
52446 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52447
52448         * modules/__func__: Renamed to modules/func.
52449         * modules/__func__-tests: Renamed to modules/func-tests.
52450         * tests/test-__func__.c: Renamed to tests/test-func.c.
52451         * m4/__func__.m4: Renamed to m4/func.m4.
52452         * doc/gnulib.texi (__func__): Section renamed to func.
52453         Suggested by Eric Blake <ebb9@byu.net>.
52454
52455 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52456
52457         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52458         about __func__.  Make example self-contained.  Suggested by Eric
52459         Blake <ebb9@byu.net>.
52460
52461         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52462         Suggested by Eric Blake <ebb9@byu.net>.
52463
52464 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52465
52466         * modules/__func__: New file.
52467         * modules/__func__-tests: New file.
52468         * tests/test-__func__.c: New file.
52469         * m4/__func__.m4: New file.
52470         * doc/gnulib.texi (__func__): Document __func__ module.
52471
52472 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52473
52474         * modules/byteswap (License): Re-license as LGPLv2+.
52475
52476 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52477
52478         * doc/Makefile: Add pdf target.
52479
52480 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52481
52482         * modules/inline (License): Use 'unlimited', since there are only
52483         *.m4 files in this module.
52484
52485 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52486             Bruno Haible  <bruno@clisp.org>
52487
52488         Add support for HP C 7.1 on OpenVMS 8.3.
52489         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52490
52491 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52492
52493         Update VMS specifics.
52494         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52495
52496 2008-03-02  Jim Meyering  <meyering@redhat.com>
52497
52498         Remove the last dependency on the "free" module.
52499         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52500         Reported by Bob Proulx.
52501
52502         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52503
52504         Remove useless "if" tests before free.  Deprecate "free" module.
52505         * doc/posix-functions/free.texi: Mention that this
52506         module is no longer useful.
52507         * modules/free (Notice): Say this module is obsolete.
52508         * modules/readutmp (Depends-on): Remove free.
52509         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52510         * lib/putenv.c (putenv): Likewise.
52511         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52512         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52513         * tests/test-c-strcasestr.c (main): Likewise.
52514         * tests/test-c-strstr.c (main): Likewise.
52515         * tests/test-mbscasestr1.c (main): Likewise.
52516         * tests/test-mbscasestr2.c (main): Likewise.
52517         * tests/test-mbsstr1.c (main): Likewise.
52518         * tests/test-mbsstr2.c (main): Likewise.
52519         * tests/test-memmem.c (main): Likewise.
52520         * tests/test-strcasestr.c (main): Likewise.
52521         * tests/test-striconv.c (main): Likewise.
52522         * tests/test-striconveh.c (main): Likewise.
52523         * tests/test-striconveha.c (main): Likewise.
52524         * tests/test-strstr.c (main): Likewise.
52525
52526         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52527
52528         bootstrap: sync from coreutils again
52529         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52530
52531 2008-03-01  Jim Meyering  <meyering@redhat.com>
52532
52533         bootstrap: sync from coreutils
52534         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52535         also when the target doesn't exist.
52536
52537 2008-03-01  Eric Blake  <ebb9@byu.net>
52538
52539         Fix bugs in last patch.
52540         * lib/memchr2.c (memchr2): Fix typo.
52541         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52542         extension.
52543         Reported by Bruce Korb.
52544
52545         New module 'memchr2'.
52546         * modules/memchr2: New file.
52547         * modules/memchr2-tests: Likewise.
52548         * lib/memchr2.h: Likewise.
52549         * lib/memchr2.c: Likewise, based on memchr.c.
52550         * tests/test-memchr2.c: New test.
52551         * MODULES.html.sh (String handling): Add memchr2.
52552
52553 2008-02-29  Bruno Haible  <bruno@clisp.org>
52554
52555         * modules/freadseek-tests: New file.
52556         * tests/test-freadseek.sh: New file.
52557         * tests/test-freadseek.c: New file.
52558
52559         New module 'freadseek'.
52560         * modules/freadseek: New file.
52561         * lib/freadseek.h: New file.
52562         * lib/freadseek.c: New file.
52563         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52564
52565 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52566
52567         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52568         wydawca.
52569
52570         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52571         program_invocation_name and program_invocation_short_name are
52572         present.
52573
52574 2008-02-28  Bruno Haible  <bruno@clisp.org>
52575
52576         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52577         * tests/test-freadptr.sh: Also test non-seekable stdin.
52578
52579 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52580
52581         * build-aux/bootstrap (source_base, m4_base)
52582         (doc_base, tests_base): New variables.
52583         (gnulib_tool_options): Do not hardcode base directories, use
52584         the above variables instead.
52585
52586 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52587
52588         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52589
52590 2008-02-28  Bruno Haible  <bruno@clisp.org>
52591
52592         * modules/freadptr-tests: New file.
52593         * tests/test-freadptr.sh: New file.
52594         * tests/test-freadptr.c: New file.
52595
52596         New module 'freadptr'.
52597         * modules/freadptr: New file.
52598         * lib/freadptr.h: New file.
52599         * lib/freadptr.c: New file.
52600         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52601
52602 2008-02-26  Karl Berry  <karl@freefriends.org>
52603
52604         Sync from Libtool:
52605         * libltdl/argz.c (argz_add, argz_count): New functions.
52606         * libltdl/argz.in.h: Declare them.
52607         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52608
52609 2008-02-22  Bruno Haible  <bruno@clisp.org>
52610
52611         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52612         is a pointer type.  Needed for HP-UX 10.
52613         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52614         * doc/posix-functions/gmtime_r.texi: Likewise.
52615         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52616
52617 2008-02-24  Bruno Haible  <bruno@clisp.org>
52618
52619         * modules/environ-tests: New file.
52620         * tests/test-environ.c: New file.
52621
52622         New module 'environ'.
52623         * modules/environ: New file.
52624         * lib/unistd.in.h (environ): New declaration.
52625         * m4/environ.m4: New file.
52626         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52627         after use.
52628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52629         HAVE_DECL_ENVIRON.
52630         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52631         HAVE_DECL_ENVIRON.
52632         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52633         wrong claim that 'environ' is missing on some systems.
52634         * modules/execute (Depends-on): Add environ.
52635         * lib/execute.c (environ): Remove fallback declaration.
52636         * modules/pipe (Depends-on): Add environ.
52637         * lib/pipe.c (environ): Remove fallback declaration.
52638         * modules/setenv (Depends-on): Add environ.
52639         * lib/setenv.c (environ): Remove fallback declaration.
52640         * modules/unsetenv (Depends-on): Add environ.
52641         * lib/unsetenv.c (environ): Remove fallback declaration.
52642         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52643         m4/environ.m4.
52644         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52645         (gl_PREREQ_UNSETENV): Likewise.
52646
52647 2008-02-24  Bruno Haible  <bruno@clisp.org>
52648
52649         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52650
52651 2008-02-20  Bob Proulx  <bob@proulx.com>
52652
52653         Enable use of older two part flavor 'git describe'.
52654         * build-aux/git-version-gen: If using the older two part flavor of
52655         git version then recreate the third part now present in the
52656         newer three part flavor of git describe.
52657
52658 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52659
52660         * lib/fts.c (fts_build): Typo correction to comment.
52661
52662 2008-02-17  Bruno Haible  <bruno@clisp.org>
52663
52664         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52665         generating no-op conflicts.
52666
52667 2008-02-17  Bruno Haible  <bruno@clisp.org>
52668
52669         Speed up by 10%.
52670         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52671         result_entries, rather than an index-based loop.
52672
52673 2008-02-17  Bruno Haible  <bruno@clisp.org>
52674
52675         Speed up by 25%.
52676         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52677         'hashcode_cached'.
52678         (entry_create): New function.
52679         (entry_hashcode): Use the cached hashcode if possible.
52680         (read_changelog_file, try_split_merged_entry): Use entry_create.
52681
52682 2008-02-17  Bruno Haible  <bruno@clisp.org>
52683
52684         Speed up from O(n^2) to O(n) for long ChangeLog files.
52685         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52686         (read_changelog_file): Change implementation of entries_reversed list
52687         to rbtreehash.
52688         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52689
52690 2008-02-17  Bruno Haible  <bruno@clisp.org>
52691
52692         New option --split-merged-entry.
52693         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52694         (find_paragraph_end, try_split_merged_entry): New functions.
52695         (long_options): Add option --split-merged-entry.
52696         (usage): Document option --split-merged-entry.
52697         (main): Implement option --split-merged-entry.
52698         Reported by Eric Blake.
52699
52700 2008-02-17  Bruno Haible  <bruno@clisp.org>
52701
52702         * lib/git-merge-changelog.c: Include c-strstr.h.
52703         (main): Support the "git pull --rebase" situation.
52704         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52705         Reported by Eric Blake.
52706
52707 2008-02-16  Eric Blake  <ebb9@byu.net>
52708
52709         Avoid doubling \ in common case of "c-maybe" quoting style.
52710         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52711         eliding outer quotes.
52712         * lib/quotearg.h: Document this.
52713         * tests/test-quotearg.c (result_strings, inputs, results_g)
52714         (flag_results, locale_results): Test it by adding a new string to
52715         each test group.
52716         (compare_strings): Test new string.
52717
52718 2008-02-13  Eric Blake  <ebb9@byu.net>
52719
52720         Avoid trigraph quoting in default output.
52721         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52722         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52723         unless explicitly requested.
52724         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52725
52726 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52727
52728         Don't rely on signed integer overflowing to negative value.
52729         * lib/getugroups.c (getugroups): Include <limits.h>.
52730         Instead, compare against INT_MAX, and increment only if the test passes.
52731
52732 2008-02-13  Jim Meyering  <meyering@redhat.com>
52733         and Eric Blake  <ebb9@byu.net>
52734
52735         Avoid shadowing warning and compile errors on Linux.
52736         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52737         forwarding macros on Linux.
52738         (dcgettext): Define a stub, for Linux.
52739         (results_g, main): Avoid warnings.
52740
52741 2008-02-12  Eric Blake  <ebb9@byu.net>
52742
52743         Silence warning in last patch.
52744         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52745
52746         Quotearg part 4: add tests, fix c-maybe colon quoting.
52747         * lib/quotearg.h: Improve documentation.
52748         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52749         escapes when adding outer quotes.  When quoting trigraphs, use
52750         valid C notation.  When quoting NUL, omit extra characters if next
52751         character is not digit.  Alter prototype.
52752         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52753         callers.
52754         * modules/quotearg-tests: New module.
52755         * tests/test-quotearg.c: New test.
52756
52757 2008-02-07  Eric Blake  <ebb9@byu.net>
52758
52759         Quotearg part 3: add flag to control outer quote elision.
52760         * lib/quotearg.h (c_maybe_quoting_style): New style.
52761         (enum quoting_flags): Better documentation of flags.
52762         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52763         c-maybe style.
52764         (quotearg_buffer_restyled): Handle new flag to elide outer
52765         quotes.
52766
52767         Quotearg part 2: add flag that can control NUL elision.
52768         * lib/quotearg.h (set_quoting_flags): New prototype.
52769         * lib/quotearg.c (struct quoting_options): Add flag field.
52770         (set_quoting_flags): New function.
52771         (quotearg_buffer_restyled): Add flags parameter.
52772         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52773         (quotearg_n_options): Set the flag, since length cannot be
52774         returned.
52775         (quoting_options_from_style): Default flags correctly.
52776
52777         Quotearg part 1: more wrappers, restore quotearg_char state.
52778         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52779         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52780         (quotearg_colon_mem): New wrappers.
52781         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52782         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52783         functions.
52784         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52785         (quotearg_colon_mem): New functions.
52786
52787 2008-02-11  Bruno Haible  <bruno@clisp.org>
52788
52789         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52790         library in the current directory: it does not work with parallel make.
52791         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52792
52793 2008-02-11  Bruno Haible  <bruno@clisp.org>
52794
52795         * .gitattributes: New file.
52796
52797 2008-02-11  Jim Meyering  <meyering@redhat.com>
52798
52799         useless-if-before-free: Fix reversed exit values.
52800         * build-aux/useless-if-before-free: Use correct values
52801         for EXIT_MATCH and EXIT_NO_MATCH.
52802
52803         * build-aux/useless-if-before-free: Close stdout carefully.
52804
52805 2008-02-10  Bruno Haible  <bruno@clisp.org>
52806
52807         New module 'git-merge-changelog'.
52808         * modules/git-merge-changelog: New file.
52809         * lib/git-merge-changelog.c: New file.
52810
52811 2008-02-10  Jim Meyering  <meyering@redhat.com>
52812
52813         useless-if-before-free: New option: --list (-l).
52814
52815         useless-if-before-free: Don't exit immediately upon open failure.
52816         * build-aux/useless-if-before-free: Exit 2 for errors.
52817         Upon failure to open a file, don't exit immediately.
52818         Rather, just warn and continue with any remaining files.
52819
52820 2008-02-10  Bruno Haible  <bruno@clisp.org>
52821
52822         New abstract list operation 'node_set_value'.
52823         * lib/gl_list.h (gl_list_node_set_value): New function.
52824         (struct gl_list_implementation): New field node_set_value.
52825         * lib/gl_list.c (gl_list_node_set_value): New function.
52826         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52827         (gl_array_list_implementation): Update.
52828         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52829         (gl_carray_list_implementation): Update.
52830         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52831         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52832         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52833         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52834         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52835         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52836         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52837         Update.
52838         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52839         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52840         (gl_sublist_list_implementation): Update.
52841
52842 2008-02-10  Bruno Haible  <bruno@clisp.org>
52843
52844         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52845         Needed when ELEMENT is #defined to 'some_type *'.
52846
52847 2008-02-10  Jim Meyering  <meyering@redhat.com>
52848
52849         New script and module: useless-if-before-free
52850         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52851         * build-aux/useless-if-before-free: New file.
52852         * modules/useless-if-before-free: New file.
52853
52854         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52855
52856         xstrtol_error: Fix typo.
52857         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52858         s/exit_failure/exit_status/.
52859
52860 2008-02-09  Jim Meyering  <meyering@redhat.com>
52861
52862         New script and module: gitlog-to-changelog
52863         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52864         * modules/gitlog-to-changelog: New file.
52865         * build-aux/gitlog-to-changelog: New file.
52866
52867 2008-02-08  Jim Meyering  <meyering@redhat.com>
52868
52869         Avoid two "parameter unused" warnings.
52870         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52871         Mark "st" as used.
52872
52873         Use "git COMMAND", not "git-COMMAND".
52874         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52875         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52876         * build-aux/git-version-gen: Use "git status", not "git-status".
52877
52878 2008-02-07  Bruno Haible  <bruno@clisp.org>
52879
52880         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52881         Avoids a crash on Windows Vista.
52882         Reported by Adam Strzelecki <ono@java.pl> via
52883         Simon Josefsson <simon@josefsson.org>.
52884
52885 2008-02-06  Bruno Haible  <bruno@clisp.org>
52886
52887         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52888         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52889         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52891         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52892         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52893         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52894         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52895         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52896         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52897         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52898         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52899         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52900         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52901         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52902         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52903         left-adjust flag.
52904         * tests/test-snprintf-posix.h (test_function): Likewise.
52905         * tests/test-sprintf-posix.h (test_function): Likewise.
52906         * tests/test-vasprintf-posix.c (test_function): Likewise.
52907         * doc/posix-functions/fprintf.texi: Update.
52908         * doc/posix-functions/printf.texi: Update.
52909         * doc/posix-functions/snprintf.texi: Update.
52910         * doc/posix-functions/sprintf.texi: Update.
52911         * doc/posix-functions/vfprintf.texi: Update.
52912         * doc/posix-functions/vprintf.texi: Update.
52913         * doc/posix-functions/vsnprintf.texi: Update.
52914         * doc/posix-functions/vsprintf.texi: Update.
52915         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52916
52917 2008-02-06  Bruno Haible  <bruno@clisp.org>
52918
52919         Fix bug introduced on 2008-01-26.
52920         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52921
52922 2008-02-06  Bruno Haible  <bruno@clisp.org>
52923
52924         Fix bug introduced on 2007-06-10.
52925         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52926         !NEED_PRINTF_FLAG_ZERO.
52927
52928 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52929
52930         getloadavg: use libperfstat on AIX5
52931         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52932
52933 2008-02-03  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/diffseq.h: Add comments about required #includes.
52936         Reported by Michael Biggs <gnulib@doubleplum.net>.
52937
52938 2008-02-01  Bruno Haible  <bruno@clisp.org>
52939
52940         * users.txt: Add gnuit.
52941
52942 2008-01-31  Bruno Haible  <bruno@clisp.org>
52943
52944         * lib/md4.c (set_uint32): Mark as inline.
52945         * lib/md5.c (set_uint32): Likewise.
52946         * lib/sha1.c (set_uint32): Likewise.
52947         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52948         * m4/md5.m4 (gl_MD5): Likewise.
52949         * m4/sha1.m4 (gl_SHA1): Likewise.
52950
52951 2008-01-31  Jim Meyering  <meyering@redhat.com>
52952
52953         Use "sizeof VAR", rather than a literal "4".
52954         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52955         * lib/md4.c (md4_read_ctx): Likewise.
52956         * lib/sha1.c (sha1_read_ctx): Likewise.
52957
52958 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52959
52960         * tests/test-sha1.c: New file, based on test-md5.c.
52961
52962         * modules/crypto/sha1-tests: New file.
52963
52964 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52965
52966         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52967
52968 2008-01-31  Jim Meyering  <meyering@redhat.com>
52969
52970         Prefer "sizeof v" over the equivalent "4".
52971         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52972         * lib/md5.c (set_uint32): Likewise.
52973         * lib/sha1.c (set_uint32): Likewise.
52974
52975 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52976
52977         * lib/sha1.c (set_uint32): Mark function as static.
52978
52979 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52980
52981         md2: clarify comments to say that alignment is not required.
52982         * lib/md2.h: Remove warning about alignment in comment.
52983         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52984         never been required.
52985
52986 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52987
52988         md4: adapt alignment constraint fix from sha1.
52989         * lib/md4.c (set_uint32): New function, from sha1.c
52990         (md4_read_ctx): Use it.
52991         (md4_finish_ctx): Doc fix.
52992         * lib/md4.h: Doc fix.
52993
52994 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52995
52996         md5: adapt alignment constraint fix from sha1.
52997         * lib/md5.c (set_uint32): New function, from sha1.c
52998         (md5_read_ctx): Use it.
52999         (md5_finish_ctx): Doc fix.
53000         * lib/md5.h: Doc fix.
53001
53002 2008-01-30  Peter Palfrader  <weasel@debian.org>
53003
53004         sha1: remove the result buffer alignment constraint
53005         * lib/sha1.c (set_uint32): New function.
53006         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53007         constraint.
53008         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53009         * lib/sha1.h: Likewise.
53010
53011 2008-01-30  Andreas Schwab  <schwab@suse.de>
53012             Bruno Haible  <bruno@clisp.org>
53013
53014         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53015         correct definition of LDBL_MIN_EXP.
53016
53017 2008-01-30  Karl Berry  <karl@gnu.org>
53018
53019         * config/srclist-update: try to preserve x bit on updates.
53020         * config/srclistvars.sh: update for karl.
53021
53022 2008-01-29  Jim Meyering  <meyering@redhat.com>
53023
53024         vasnprintf.c: Avoid warning about unused label
53025         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53026         "overflow" label definition and associated code with the
53027         same cpp condition that guards the sole use of that label.
53028
53029 2008-01-26  Bruno Haible  <bruno@clisp.org>
53030
53031         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53032         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53033         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53034         * lib/isnanl-nolibm.h (isnanl): Likewise.
53035         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53036
53037 2008-01-26  Bruno Haible  <bruno@clisp.org>
53038
53039         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53040         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53041
53042 2008-01-26  Bruno Haible  <bruno@clisp.org>
53043
53044         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53045         GCC >= 4.0 built-in.
53046         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53047
53048 2008-01-26  Bruno Haible  <bruno@clisp.org>
53049
53050         Rename isnan, applicable to 'double' only, to isnand.
53051         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53052         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53053         (configure.ac): Update.
53054         (Include): Replace "isnan.h" with "isnand.h".
53055         * m4/isnand.m4: Renamed from m4/isnan.m4.
53056         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53057         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53058         instead of isnan.c.
53059         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53060         instead of HAVE_ISNAN_IN_LIBC.
53061         (isnand): Renamed from isnan.
53062         * lib/isnand.c: New file.
53063         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53064         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53065         (Makefile.am): Update.
53066         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53067         Include isnand.h instead of isnan.h.
53068         (main): Test isnand instead of isnan.
53069         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53070         isnan-nolibm.
53071         * modules/frexp (Depends-on): Likewise.
53072         * modules/frexp-tests (Depends-on): Likewise.
53073         * modules/frexp-nolibm (Depends-on): Likewise.
53074         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53075         * modules/isfinite (Depends-on): Likewise.
53076         * modules/round-tests (Depends-on): Likewise.
53077         * modules/signbit (Depends-on): Likewise.
53078         * modules/signbit-tests (Depends-on): Likewise.
53079         * modules/snprintf-posix (Depends-on): Likewise.
53080         * modules/sprintf-posix (Depends-on): Likewise.
53081         * modules/trunc-tests (Depends-on): Likewise.
53082         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53083         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53084         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53085         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53086         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53087         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53088         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53089         * modules/vasnprintf-posix (Depends-on): Likewise.
53090         * modules/vasprintf-posix (Depends-on): Likewise.
53091         * modules/vfprintf-posix (Depends-on): Likewise.
53092         * modules/vsnprintf-posix (Depends-on): Likewise.
53093         * modules/vsprintf-posix (Depends-on): Likewise.
53094         * lib/frexp.c: Include isnand.h instead of isnan.h.
53095         (ISNAN): Set to isnand instead of isnan.
53096         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53097         (gl_isfinited): Use isnand instead of isnan.
53098         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53099         (gl_signbitd): Use isnand instead of isnan.
53100         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53101         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53102         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53103         (main): Use isnand instead of isnan.
53104         * tests/test-round1.c: Include isnand.h.
53105         (main): Use isnand instead of isnan.
53106         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53107         (ISNAN): Set to isnand instead of isnan.
53108         * tests/test-trunc1.c: Include isnand.h.
53109         (main): Use isnand instead of isnan.
53110         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53111         (equal): Use isnand instead of isnan.
53112         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53113         isnand-nolibm.
53114         * NEWS: Mention the change.
53115
53116 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53117             Bruno Haible  <bruno@clisp.org>
53118
53119         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53120         the GCC builtins for signbits are present and set
53121         REPLACE_SIGNBIT_USING_GCC if so.
53122         * lib/math.in.h (signbit): Define using GCC builtins if
53123         REPLACE_SIGNBIT_USING_GCC is set.
53124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53125         REPLACE_SIGNBIT_USING_GCC.
53126         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53127
53128 2008-01-25  Jim Meyering  <meyering@redhat.com>
53129
53130         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53131         * lib/poll.c: Include <config.h>, not "config.h".
53132         * tests/test-getaddrinfo.c: Likewise.
53133
53134 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53135
53136         * modules/sockets-tests: New file.
53137
53138 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53139
53140         * modules/sockets: New module, can be used to call WSA_Startup and
53141         WSA_Cleanup when needed.
53142
53143         * lib/sockets.h, lib/sockets.c: New files.
53144
53145         * m4/sockets.m4: New file.
53146
53147         * tests/test-sockets.c: New file.
53148
53149 2008-01-19  Bruno Haible  <bruno@clisp.org>
53150
53151         * doc/posix-headers: Renamed from doc/headers.
53152         * doc/posix-functions: Renamed from doc/functions.
53153         * doc/gnulib.texi: Update.
53154
53155 2008-01-19  Bruno Haible  <bruno@clisp.org>
53156
53157         * doc/glibc-functions/strcasestr.texi: Include contents of
53158         doc/functions/strcasestr.texi, fixing the list of platforms.
53159         * doc/functions/strcasestr.texi: Remove file.
53160
53161 2008-01-19  Bruno Haible  <bruno@clisp.org>
53162
53163         * doc/glibc-functions/memmem.texi: Include contents of
53164         doc/functions/memmem.texi.
53165         * doc/functions/memmem.texi: Remove file.
53166
53167 2008-01-18  Bruno Haible  <bruno@clisp.org>
53168
53169         * doc/glibc-functions/*.texi: New files.
53170         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53171         to use the new files.
53172
53173 2008-01-17  Bruno Haible  <bruno@clisp.org>
53174
53175         * tests/test-gethostname.c (main): Fix printf statement.
53176
53177 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53178
53179         * modules/gethostname-tests: New file.
53180
53181         * tests/test-gethostname.c: New file.
53182
53183 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53184
53185         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53186         used by the UNAME case.  Reported by Bruno Haible
53187         <bruno@clisp.org>.
53188
53189 2008-01-17  Eric Blake  <ebb9@byu.net>
53190
53191         Convert c-strcasestr to be more efficient.
53192         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53193         (Depends-on): Add c-strcase, remove malloca, strnlen.
53194         * tests/test-c-strcasestr.c (main): Enhance test.
53195         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53196
53197 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53198
53199         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53200         Use it in creating po/Makevars.
53201
53202 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53203
53204         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53205         Applications that requires it should initialize libgcrypt
53206         manually.
53207
53208 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53209
53210         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53211
53212 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53213
53214         Fix problem with getdate on mingw32 reported by Simon Josefsson
53215         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53216         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53217         tzname", when deciding whether to declare tzname.
53218         * lib/strftime.c (tzname): Likewise.
53219
53220 2008-01-15  Bruno Haible  <bruno@clisp.org>
53221
53222         Work around a MacOS X 10.5 bug in frexpl().
53223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53224         * doc/functions/frexpl.texi: Document the bug.
53225         Reported by Elias Pipping <pipping@gentoo.org>.
53226
53227 2008-01-14  Eric Blake  <ebb9@byu.net>
53228
53229         Touch up previous patch.
53230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53231         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53232
53233         Convert strcasestr module to use Two-Way algorithm.
53234         * modules/strcasestr-simple: New module, based on the old
53235         strcasestr, but with Two-Way rather than KMP.
53236         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53237         * lib/string.in.h (rpl_strcasestr): Declare.
53238         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53239         performance.
53240         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53241         * modules/string (Makefile.am): Support strcasestr.
53242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53243         * modules/strcasestr-tests (Depends-on): Check for alarm.
53244         * tests/test-strcasestr.c: Augment test.
53245         * lib/str-two-way.h: Clean up stray macro.
53246         * NEWS: Document new module.
53247         * MODULES.html.sh (string handling): Likewise.
53248         * doc/functions/strcasestr.texi: New file.
53249         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53250         here, since it is not a POSIX function.
53251
53252 2008-01-14  Colin Watson  <cjwatson@debian.org>
53253             Bruno Haible  <bruno@clisp.org>
53254
53255         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53256         works fine; if not, set REPLACE_STRSIGNAL.
53257         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53259         REPLACE_STRSIGNAL.
53260         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53261         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53262         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53263
53264 2008-01-14  Bruno Haible  <bruno@clisp.org>
53265
53266         * modules/strsignal (Include): Change to <string.h>.
53267
53268 2008-01-14  Colin Watson  <cjwatson@debian.org>
53269
53270         * modules/argp (Notice): Add a notice recommending to change
53271         XGETTEXT_OPTIONS.
53272         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53273
53274 2008-01-13  Colin Watson  <cjwatson@debian.org>
53275
53276         * modules/strsignal-tests: New file.
53277         * tests/test-strsignal.c: New file.
53278
53279         * lib/strsignal.c: New file, from glibc with modifications.
53280         * lib/siglist.h: New file, from glibc with modifications.
53281         * lib/string.in.h (strsignal): New declaration.
53282         * m4/strsignal.m4: New file.
53283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53284         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53285         * modules/strsignal: New file.
53286         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53287         HAVE_DECL_STRSIGNAL.
53288
53289 2008-01-13  Bruno Haible  <bruno@clisp.org>
53290
53291         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53292         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53293         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53294         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53295
53296 2008-01-13  Bruno Haible  <bruno@clisp.org>
53297
53298         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53299         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53300         * lib/argp.h (__attribute__): Likewise.
53301         * lib/c-stack.c (__attribute__): Likewise.
53302         * lib/error.h (__attribute__): Likewise.
53303         * lib/fts.c (__attribute__): Likewise.
53304         * lib/openat.h (__attribute__): Likewise.
53305         * lib/stdio.in.h (__attribute__): Likewise.
53306         * lib/string.in.h (__attribute__): Likewise.
53307         * lib/utimens.c (__attribute__): Likewise.
53308         * lib/vasnprintf.h (__attribute__): Likewise.
53309         * lib/xalloc.h (__attribute__): Likewise.
53310         * lib/xprintf.h (__attribute__): Likewise.
53311         * lib/xstrtol.h (__attribute__): Likewise.
53312         * lib/xvasprintf.h (__attribute__): Likewise.
53313
53314 2008-01-12  Bruno Haible  <bruno@clisp.org>
53315
53316         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53317         * doc/glibc-headers/a.out.texi: New file.
53318         * doc/glibc-headers/aliases.texi: New file.
53319         * doc/glibc-headers/alloca.texi: New file.
53320         * doc/glibc-headers/ar.texi: New file.
53321         * doc/glibc-headers/argp.texi: New file.
53322         * doc/glibc-headers/argz.texi: New file.
53323         * doc/glibc-headers/byteswap.texi: New file.
53324         * doc/glibc-headers/crypt.texi: New file.
53325         * doc/glibc-headers/endian.texi: New file.
53326         * doc/glibc-headers/envz.texi: New file.
53327         * doc/glibc-headers/err.texi: New file.
53328         * doc/glibc-headers/error.texi: New file.
53329         * doc/glibc-headers/execinfo.texi: New file.
53330         * doc/glibc-headers/fpu_control.texi: New file.
53331         * doc/glibc-headers/fstab.texi: New file.
53332         * doc/glibc-headers/fts.texi: New file.
53333         * doc/glibc-headers/getopt.texi: New file.
53334         * doc/glibc-headers/ieee754.texi: New file.
53335         * doc/glibc-headers/ifaddrs.texi: New file.
53336         * doc/glibc-headers/libintl.texi: New file.
53337         * doc/glibc-headers/mcheck.texi: New file.
53338         * doc/glibc-headers/mntent.texi: New file.
53339         * doc/glibc-headers/obstack.texi: New file.
53340         * doc/glibc-headers/paths.texi: New file.
53341         * doc/glibc-headers/printf.texi: New file.
53342         * doc/glibc-headers/pty.texi: New file.
53343         * doc/glibc-headers/resolv.texi: New file.
53344         * doc/glibc-headers/shadow.texi: New file.
53345         * doc/glibc-headers/sysexits.texi: New file.
53346         * doc/glibc-headers/ttyent.texi: New file.
53347
53348 2008-01-12  Jim Meyering  <meyering@redhat.com>
53349
53350         announce-gen: emit Gnulib's git-based version string.
53351         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53352         New option --gnulib-version=V, where V is expected to be
53353         the output of running git describe in the gnulib directory.
53354         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53355         not useful, and plan to stop publishing an xdelta file with each
53356         coreutils release.
53357
53358         * build-aux/announce-gen: Also check for lzma-compressed files.
53359
53360 2008-01-11  Bruno Haible  <bruno@clisp.org>
53361
53362         * tests/test-memmem.c (main): Increase maximum allowed time.
53363         * tests/test-strstr.c (main): Likewise.
53364
53365 2008-01-11  Bruno Haible  <bruno@clisp.org>
53366
53367         * doc/functions/memmem.texi: Add more precisions about platforms.
53368         * doc/functions/strstr.texi: Likewise.
53369
53370 2008-01-10  Eric Blake  <ebb9@byu.net>
53371
53372         * m4/strstr.m4: Delete cruft from copy-n-paste.
53373         Reported by Bruno Haible.
53374
53375 2008-01-10  Bruno Haible  <bruno@clisp.org>
53376
53377         Make c-strstr rely on strstr.
53378         * lib/c-strstr.c: Don't include str-kmp.h.
53379         (c_strstr): Define in terms of strstr.
53380         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53381         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53382
53383 2008-01-10  Bruno Haible  <bruno@clisp.org>
53384
53385         * doc/gnulib.texi (String Functions in C Locale): New section.
53386         * doc/c-ctype.texi: New file.
53387         * doc/c-strcase.texi: New file.
53388         * doc/c-strcaseeq.texi: New file.
53389         * doc/c-strcasestr.texi: New file.
53390         * doc/c-strstr.texi: New file.
53391         * doc/c-strtod.texi: New file.
53392         * doc/c-strtold.texi: New file.
53393
53394 2008-01-10  Eric Blake  <ebb9@byu.net>
53395
53396         * lib/relocatable.h: Fix a comment.
53397
53398 2008-01-10  Eric Blake  <ebb9@byu.net>
53399
53400         Share two-way algorithm.
53401         * lib/str-two-way.h: New file, merged from...
53402         * lib/memmem.c: ...here...
53403         * lib/strstr.c: ...and here.
53404         * modules/memmem (Files): Use it.
53405         * modules/strstr (Files): Likewise.
53406
53407         Avoid quadratic strstr implementations.
53408         * lib/strstr.c: New file.
53409         * m4/strstr.m4: Likewise.
53410         * modules/strstr: Likewise.
53411         * modules/strstr-tests: Likewise.
53412         * tests/test-strstr.c: Likewise.
53413         * lib/string.in.h (rpl_strstr): Declare.
53414         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53416         * modules/string (Makefile.am): Likewise.
53417         * MODULES.html.sh (string handling): Mention new module.
53418         * doc/functions/strstr.texi (strstr): Document the bug.
53419
53420 2008-01-10  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/relocatable.h (relocate): State whether result is freshly
53423         allocated or not.
53424         * lib/relocatable.c (relocate): Return a freshly allocated string
53425         instead of a pointer to a privately held string.
53426         Reported by Sylvain Beucler <beuc@gnu.org>.
53427
53428 2008-01-10  Colin Watson  <cjwatson@debian.org>
53429
53430         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53431         s/S_ISNLK/S_ISLNK/.
53432
53433 2008-01-09  Bruno Haible  <bruno@clisp.org>
53434
53435         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53436         and other files.
53437         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53438         if it's only a guess.
53439         * modules/memmem: Simplify by depending on memmem-simple.
53440
53441 2008-01-09  Bruno Haible  <bruno@clisp.org>
53442
53443         Work around OpenBSD 4.0 tdelete() bug.
53444         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53445         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53446         macros and don't redefine the enum values.
53447         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53448         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53449         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53450
53451 2008-01-09  Bruno Haible  <bruno@clisp.org>
53452
53453         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53454         (main): Don't perform the tests if setlocale did not install a UTF-8
53455         locale. Needed on OpenBSD 4.0.
53456         * modules/wcwidth-tests (Depends-on): Add localcharset.
53457
53458 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53459
53460         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53461         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53462         * NEWS: announce this.
53463         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53464
53465 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53466         and Eric Blake  <ebb9@byu.net>
53467
53468         Add memmem-simple module.
53469         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53470         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53471         * modules/memmem-simple: New file.
53472         * modules/memmem (Description): Tweak.
53473         * MODULES.html.sh (string handling): Mention new module.
53474         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53475         addressed by memmem-simple.
53476         * NEWS: Document the difference.
53477
53478 2008-01-09  Eric Blake  <ebb9@byu.net>
53479
53480         Give gcc some memmem optimization hints.
53481         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53482         (strcasestr): Declare as pure.
53483         * modules/memmem (Maintainer): Claim my implementation.
53484
53485 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53486
53487         Support AIX 6.1 and higher.
53488         * build-aux/config.libpath: Likewise.
53489         * build-aux/config.rpath: Likewise.
53490
53491 2008-01-08  Jim Meyering  <meyering@redhat.com>
53492             Bruno Haible  <bruno@clisp.org>
53493
53494         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53495         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53496         Reported by Peter Fales in
53497         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53498
53499 2008-01-08  Bruno Haible  <bruno@clisp.org>
53500
53501         * modules/unictype/category-of (Depends-on): Add
53502         unictype/category-none.
53503         * modules/unictype/category-and-tests (Depends-on): Add
53504         unictype/category-{L,N,Lu,Nd}.
53505         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53506         * modules/unictype/category-or-tests (Depends-on): Add
53507         unictype/category-{L,N}.
53508         * modules/unictype/category-name-tests (Depends-on): Add
53509         unictype/category-{Z,Nl}.
53510         Reported by Simon Josefsson.
53511
53512 2008-01-08  Bruno Haible  <bruno@clisp.org>
53513
53514         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53515         convention better.
53516         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53517         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53518         Reported by Peter Miller <millerp@canb.auug.org.au>.
53519
53520 2008-01-08  Eric Blake  <ebb9@byu.net>
53521
53522         Rewrite memmem to guarantee linear complexity without malloc.
53523         * lib/memmem.c (memmem): Use Two-Way rather than
53524         Knuth-Morris-Pratt, to allow O(1) space usage.
53525         (critical_factorization, two_way_short_needle)
53526         (two_way_long_needle): New functions.
53527         (knuth_morris_pratt): Delete.
53528         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53529         Add stdint.
53530         * tests/test-memmem.c (main): Add tests for periodic needle and
53531         sublinear performance.
53532         * doc/functions/memmem.texi (memmem): Document other deficiencies
53533         in cygwin and older glibc.
53534
53535 2008-01-08  Bruno Haible  <bruno@clisp.org>
53536
53537         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53538         augmentation.
53539
53540 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53541
53542         Add a configure time option: --disable-acl.
53543         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53544         AC_ARG_ENABLE(acl).
53545
53546 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53547
53548         * tests/test-localename.c: Don't include obsolete "setenv.h".
53549
53550         * modules/localename-tests (Depends-on): Need unsetenv.
53551
53552 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53553
53554         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53555
53556 2008-01-06  Colin Watson  <cjwatson@debian.org>
53557
53558         * users.txt: Add man-db.
53559
53560 2008-01-07  Bruno Haible  <bruno@clisp.org>
53561
53562         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53563         previous section name.
53564
53565 2008-01-07  Bruno Haible  <bruno@clisp.org>
53566
53567         * lib/progname.c (set_program_name): Don't strip off a leading
53568         "lt-" prefix outside a .libs directory.
53569         Suggested by Paul Eggert.
53570
53571 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53572             Bruno Haible  <bruno@clisp.org>
53573
53574         Improve memory cleanup in 'relocatable' module.
53575         * lib/relocatable.h (compute_curr_prefix): Change return type to
53576         'char *'.
53577         * lib/relocatable.c (compute_curr_prefix): Change return type to
53578         'char *'. Free curr_installdir after use.
53579         (relocate): Free curr_prefix_better after use.
53580         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53581
53582 2008-01-01  Bruno Haible  <bruno@clisp.org>
53583
53584         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53585         failure on older glibc systems.
53586         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53587
53588 2008-01-05  Eric Blake  <ebb9@byu.net>
53589
53590         Avoid quadratic system memmem.
53591         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53592         Reported by Ralf Wildenhues.
53593
53594         Fix memmem test for mingw.
53595         * modules/memmem-tests (configure.ac): Check for alarm.
53596         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53597         it.
53598         * doc/functions/memmem.texi: New file.
53599         * doc/gnulib.texi (Function Substitutes): Add memmem.
53600         Reported by Bruno Haible.
53601
53602 2008-01-04  Bruno Haible  <bruno@clisp.org>
53603
53604         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53605         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53606         gl_HEADER_STRING_H_DEFAULTS.
53607
53608 2008-01-04  Eric Blake  <ebb9@byu.net>
53609
53610         Shorten duration of memmem test.
53611         * tests/test-memmem.c (main): Use alarm to declare failure if test
53612         is taking too long.
53613         Reported by Ralf Wildenhues.
53614
53615 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53616
53617         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53618         string, needed by strerror.
53619
53620 2008-01-03  Colin Watson  <cjwatson@debian.org>
53621             Bruno Haible  <bruno@clisp.org>
53622
53623         * doc/gnulib-tool.texi (Localization): New section.
53624
53625 2008-01-02  Bruno Haible  <bruno@clisp.org>
53626
53627         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53628         variables to 'unsigned char *' type.
53629         Reported by Paul Eggert.
53630
53631 2008-01-02  Jim Meyering  <jim@meyering.net>
53632
53633         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53634
53635 2007-12-31  Jim Meyering  <jim@meyering.net>
53636
53637         Avoid use of private FTS type name.
53638         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53639
53640 2007-12-30  Karl Berry  <karl@gnu.org>
53641
53642         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53643         work around defect in Texinfo and/or the standalone Info browser.
53644
53645 2007-12-30  Bruno Haible  <bruno@clisp.org>
53646
53647         Unify 5 copies of the KMP code.
53648         * lib/str-kmp.h: New file.
53649         * lib/c-strcasestr.c: Include str-kmp.h.
53650         (knuth_morris_pratt): Remove function.
53651         (c_strcasestr): Update.
53652         * lib/c-strstr.c: Include str-kmp.h.
53653         (knuth_morris_pratt): Remove function.
53654         (c_strcasestr): Update.
53655         * lib/mbscasestr.c: Include str-kmp.h.
53656         (knuth_morris_pratt_unibyte): Remove function.
53657         * lib/mbsstr.c: Include str-kmp.h.
53658         (knuth_morris_pratt_unibyte): Remove function.
53659         * lib/strcasestr.c: Include str-kmp.h.
53660         (knuth_morris_pratt): Remove function.
53661         (strcasestr): Update.
53662         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53663         * modules/c-strstr (Files): Likewise.
53664         * modules/mbscasestr (Files): Likewise.
53665         * modules/mbsstr (Files): Likewise.
53666         * modules/strcasestr (Files): Likewise.
53667         Suggested by Paul Eggert.
53668
53669 2007-12-30  Bruno Haible  <bruno@clisp.org>
53670
53671         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53672         defined.
53673
53674 2007-12-30  Bruno Haible  <bruno@clisp.org>
53675
53676         * lib/xmalloca.h: Include xalloc.h.
53677         (xnmalloca): New macro.
53678
53679 2007-12-30  Bruno Haible  <bruno@clisp.org>
53680
53681         * lib/malloca.h (nmalloca): New macro.
53682         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53683         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53684         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53685         knuth_morris_pratt_multibyte): Likewise.
53686         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53687         knuth_morris_pratt_multibyte): Likewise.
53688         * lib/memmem.c (knuth_morris_pratt): Likewise.
53689         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53690
53691 2007-12-25  Bruno Haible  <bruno@clisp.org>
53692
53693         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53694         * lib/glob.c: Don't include openat.h.
53695         (link_exists2_p): Add back the code that deals with the
53696         !GLOB_ALTDIRFUNC case.
53697         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53698         let it do the filename concatenation.
53699         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53700         * modules/glob (Depends-on): Remove openat.
53701
53702 2007-12-31  Bruno Haible  <bruno@clisp.org>
53703
53704         * modules/dirfd (License): Change to LGPLv2+.
53705         Approved by Jim Meyering.
53706
53707 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53708
53709         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53710         when multiplying M by sizeof (size_t).
53711
53712 2007-12-10  Martin Lambers  <marlam@marlam.de>
53713
53714         Override getpagesize on mingw.
53715         * lib/getpagesize.c: New file.
53716         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53717         * modules/getpagesize (Files): Add lib/getpagesize.c.
53718         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53720         REPLACE_GETPAGESIZE.
53721         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53722
53723 2007-12-25  Bruno Haible  <bruno@clisp.org>
53724
53725         * modules/localcharset (Notice): New field.
53726         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53727         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53728
53729 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53730             Bruno Haible  <bruno@clisp.org>
53731
53732         Avoid using the syntax symbol() in formatted documentation.
53733         * MODULES.html.sh (func_module): When replacing symbol() with a
53734         hyperlink, remove the parentheses. Show an error if some remain.
53735         Recognize and render the '...' syntax.
53736         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53737         Rework. Add paragraph about GCC's inlining.
53738         * doc/alloca.texi: Likewise.
53739         * doc/error.texi: Remove parentheses from symbol reference.
53740         * doc/gnulib-intro.texi: Likewise.
53741         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53742         * modules/fnmatch (Description): Reword to say "the ... function".
53743         * modules/full-read (Description): Likewise.
53744         * modules/full-write (Description): Likewise.
53745         * modules/safe-read (Description): Likewise.
53746         * modules/safe-write (Description): Likewise.
53747         * modules/strchrnul (Description): Likewise.
53748         * modules/trim (Description): Likewise.
53749         * modules/error (Description): Remove parentheses from symbol
53750         references.
53751         * modules/verror (Description): Likewise.
53752         Reported by Karl Berry.
53753
53754 2007-12-25  Bruno Haible  <bruno@clisp.org>
53755
53756         Fixup after 2007-10-16 commit.
53757         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53758
53759 2007-12-24  Bruno Haible  <bruno@clisp.org>
53760
53761         Make --enable-relocatable work with DESTDIR.
53762         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53763         to compute installdir from destprog.
53764         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53765         also set the RELOC_DESTDIR variable.
53766         Reported by Левашев Иван <octagram@bluebottle.com>.
53767
53768 2007-12-24  Bruno Haible  <bruno@clisp.org>
53769
53770         Fix link error due to xalloc_die().
53771         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53772         of xreadlink.
53773         * lib/relocwrapper.c: Update comments.
53774         * build-aux/install-reloc: Remove xreadlink.c from file list.
53775         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53776         xreadlink.c.
53777         Reported by Левашев Иван <octagram@bluebottle.com>.
53778
53779 2007-12-24  Bruno Haible  <bruno@clisp.org>
53780
53781         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53782         * lib/setenv.h: Remove file.
53783         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53784         lib/setenv.h.
53785         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53786         (Depends-on): Add stdlib.
53787         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53788         gl_FUNC_UNSETENV.
53789         (Include): Replace setenv.h with <stdlib.h>.
53790         * modules/unsetenv: New file.
53791         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53792         * lib/unsetenv.c: Include <stdlib.h> first.
53793         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53794         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53795         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53796         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53797         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53798         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53800         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53801         * doc/functions/unsetenv.texi: Update.
53802         * modules/xsetenv (Depends-on): Add unsetenv.
53803         * modules/getdate (Depends-on): Likewise.
53804         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53805         * lib/xsetenv.c: Don't include setenv.h.
53806         * lib/getdate.y: Likewise.
53807         * lib/relocwrapper.c: Likewise.
53808         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53809         (Depends-on): Add stdlib.
53810         * NEWS: Mention the changes.
53811         Reported by Левашев Иван <octagram@bluebottle.com>.
53812
53813 2007-12-23  Bruno Haible  <bruno@clisp.org>
53814
53815         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53816         indentation.
53817
53818 2007-12-23  Bruno Haible  <bruno@clisp.org>
53819
53820         * lib/c-strcasestr.c: Add more comments.
53821         * lib/c-strstr.c: Likewise.
53822         * lib/mbscasestr.c: Likewise.
53823         * lib/mbsstr.c: Likewise.
53824         * lib/strcasestr.c: Likewise.
53825         * lib/memmem.c: Likewise.
53826
53827 2007-12-23  Bruno Haible  <bruno@clisp.org>
53828
53829         * tests/test-memmem.c: Include <string.h> first.
53830
53831 2007-12-22  Bruno Haible  <bruno@clisp.org>
53832
53833         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53834         the contents of $testsbase.
53835         Reported by Ralf Wildenhues.
53836
53837 2007-12-22  Bruno Haible  <bruno@clisp.org>
53838
53839         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53840         two variables local_ldadd_before, local_ldadd_last.
53841
53842 2007-12-20  Eric Blake  <ebb9@byu.net>
53843
53844         Work around circular library issue when cross-compiling.
53845         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53846         that progname.o does not need to pull in rpl_memcmp.
53847
53848 2007-12-19  Eric Blake  <ebb9@byu.net>
53849
53850         Fix memmem to avoid O(n^2) worst-case complexity.
53851         * lib/memmem.c (knuth_morris_pratt): New function.
53852         (memmem): Use it if first few naive iterations fail.
53853         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53854         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53855         * modules/memchr (License): Likewise.
53856         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53857         malloca.
53858         * tests/test-memmem.c: Rewrite, borrowing ideas from
53859         test-mbsstr1.c; the old version wouldn't even compile!
53860         * modules/memmem-tests: New file.
53861         * lib/string.in.h (rpl_memmem): Add declaration.
53862         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53864         REPLACE_MEMMEM.
53865
53866 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53867
53868         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53869         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53870         before any system include files, and undef after them all.  This
53871         should fix a problem on VMS reported by John E. Malmberg in
53872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53873
53874 2007-12-17  Eric Blake  <ebb9@byu.net>
53875
53876         Revert addition of verify, for BSD/OS.
53877         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53878         can't handle large files, for the sake of obsolete platforms.
53879         * modules/fseeko (Depends-on): Remove verify.
53880         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53881         * doc/functions/ftello.texi (ftello): Likewise.
53882         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53883         Reported by Larry Jones.
53884
53885 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53886
53887         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53888         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53889
53890 2007-12-17  Jim Meyering  <meyering@redhat.com>
53891
53892         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53893         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53894         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53895         * modules/getcwd (Depends-on): Add openat.
53896         Reported by Petr Salinger.
53897
53898 2007-12-17  Bruno Haible  <bruno@clisp.org>
53899
53900         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53901         avoid a segmentation fault of the configure test on x86_64 systems.
53902
53903 2007-12-15  Jim Meyering  <meyering@redhat.com>
53904
53905         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53906
53907 2007-12-13  Eric Blake  <ebb9@byu.net>
53908
53909         Another fseek test.
53910         * tests/test-fseek.c (main): Also test ungetc handling.
53911         * tests/test-fseeko.c (main): Likewise.
53912         * modules/fseeko (Depends-on): Add verify.
53913         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53914         large.
53915         Reported by Larry Jones.
53916
53917         Fix fseeko on mingw.
53918         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53919         seek.
53920
53921         Beef up fseek tests.
53922         * tests/test-fseek.c (main): Also test eof handling.
53923         * tests/test-fseeko.c (main): Likewise.
53924         Reported by Larry Jones.
53925
53926 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53927
53928         Fix fseeko on BSD-based platforms.
53929         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53930         successful seek.
53931
53932 2007-12-12  Eric Blake  <ebb9@byu.net>
53933
53934         Allow circular dependency of separate libtests.a
53935         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53936         when use_libtests.
53937
53938 2007-12-11  Eric Blake  <ebb9@byu.net>
53939
53940         Fix bug with -0.0L in previous patch.
53941         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53942         * tests/test-isnan.c (main): Also test on zeroes.
53943         * tests/test-isnanf.c (main): Likewise.
53944         * tests/test-isnanl.h (main): Likewise.
53945
53946         Detect pseudo-denormals on x86 even when cross-compiling.
53947         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53948         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53949         invalid bit patterns that happen to satisfy ==.
53950
53951         Avoid link failures with separate libtests.a.
53952         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53953         last, to satisfy circular dependencies.
53954
53955 2007-12-11  Eric Blake  <ebb9@byu.net>
53956         and Bruno Haible  <bruno@clisp.org>
53957
53958         Fix OpenBSD 4.0 <float.h> handling of long double.
53959         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53960         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53961         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53962
53963 2007-12-11  Jim Meyering  <meyering@redhat.com>
53964
53965         * users.txt: Add libvirt.
53966
53967         Support versions of autoconf prior to 2.59c.
53968         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53969         if it is not already defined.
53970
53971 2007-12-09  Bruno Haible  <bruno@clisp.org>
53972
53973         Let 'gnulib-tool --import' collect sources needed for the tests in
53974         tests/ rather than in lib/.
53975         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53976         argument. If true, add rules to generate libtests.a, and put libtests.a
53977         into $(LDADD). Consider source files in subdirectories and set
53978         uses_subdirs.
53979         (func_emit_initmacro_start, func_emit_initmacro_end,
53980         func_emit_initmacro_done): Pass all arguments explicitly.
53981         (func_import): Determine two module lists main_modules,
53982         testsrelated_modules. Determine use_libtests. Determine two variables
53983         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53984         instead of just sed_transform_lib_file. Determine two variables
53985         main_files and testsrelated_files. Compute 'files' as the union of
53986         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53987         func_add_or_update. In the generated gnulib-comp.m4, collect the
53988         object files for tests/ in different variables than those for lib/.
53989         Substitute LIBTESTS_LIBDEPS.
53990         (func_create_testdir): Combine the uses_subdirs results from
53991         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53992
53993 2007-12-09  Bruno Haible  <bruno@clisp.org>
53994
53995         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53996         the build-aux directory.
53997
53998 2007-12-09  Bruno Haible  <bruno@clisp.org>
53999
54000         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54001         introduced on 2006-09-09.
54002
54003 2007-12-07  Jim Meyering  <meyering@redhat.com>
54004
54005         Let these macros work also with autoconf-2.59.
54006         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54007         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54008         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54009
54010 2007-12-06  Jim Meyering  <meyering@redhat.com>
54011
54012         Avoid a configure-time syntax error in gl_FUNC_ACL.
54013         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54014         function in each branch, before testing the cache variable.
54015
54016 2007-12-04  Eric Blake  <ebb9@byu.net>
54017
54018         Make scripts executable.
54019         * build-aux/config.guess: Add execute permissions.
54020         * build-aux/config.sub: Likewise.
54021         * build-aux/gendocs.sh: Likewise.
54022
54023         Fix frexp on mingw.
54024         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54025         cross-compiling.
54026         * doc/functions/frexp.texi (frexp): Document the bug.
54027
54028         Make cygwin fseeko check more reliable.
54029         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54030         version numbers, rather than unrelated feature check.
54031         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54032         * doc/functions/ftello.texi (ftello): Likewise.
54033         Reported by Bruno Haible.
54034
54035         * m4/strerror.m4: Bump version number.
54036
54037 2007-12-03  Bruno Haible  <bruno@clisp.org>
54038
54039         * doc/functions/mprotect.texi: Mention the mingw problem.
54040
54041 2007-12-03  Eric Blake  <ebb9@byu.net>
54042
54043         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54044         REPLACE_STRERROR is initialized before this macro.
54045
54046 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54047
54048         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54049         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54050         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54051         put -lsec in even for programs other than 'ls'.  This fixes a problem
54052         for gettext reported by Bruno Haible in
54053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54054         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54055         Add support for Solaris 10.  This isn't efficient, but should get the
54056         job done for now.
54057
54058 2007-12-03  James Youngman  <jay@gnu.org>
54059
54060         * doc/regexprops-generic.texi: change "an close-group" to "a
54061         close-group" and "illegal" to "not allowed".
54062
54063 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54064
54065         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54066         pr_byname.h. Needed for the rare case when the maintainer has done
54067         "make maintainer-clean" in the source directory and then attempts a
54068         build outside the source directory.
54069         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54070         scripts_byname.h.
54071
54072 2007-12-02  Martin Lambers <marlam@marlam.de>
54073             Bruno Haible  <bruno@clisp.org>
54074
54075         * lib/getpagesize.h: Remove file.
54076         * lib/unistd.in.h: Include declaration of getpagesize here.
54077         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54078         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54079         HAVE_SYS_PARAM_H.
54080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54081         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54082         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54083         (Depends-on): Add unistd.
54084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54085         (Include): Use <unistd.h> instead of getpagesize.h.
54086         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54087         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54088         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54089         gl_GETPAGESIZE invocation, already handled by module dependency.
54090         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54091
54092 2007-12-02  Bruno Haible  <bruno@clisp.org>
54093
54094         * modules/strings-tests: New file.
54095         * tests/test-strings.c: New file.
54096
54097         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54098         * lib/strings.in.h: New file.
54099         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54100         * m4/strings_h.m4: New file.
54101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54102         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54103         * modules/strings: New file.
54104         * modules/string (Makefile.am): Update.
54105         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54106         Reported by Karl Berry.
54107
54108 2007-12-01  Eric Blake  <ebb9@byu.net>
54109
54110         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54111         accomodate fix in cygwin 1.5.25.
54112
54113 2007-12-01  Jim Meyering  <meyering@redhat.com>
54114
54115         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54116         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54117         that would inhibit utf8-optimization of a regexp containing line-
54118         or buffer-anchors, e.g., `^', `$'.
54119
54120 2007-11-30  Bruno Haible  <bruno@clisp.org>
54121
54122         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54123         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54124         glthread_recursive_lock_init.
54125         * lib/lock.c (glthread_recursive_lock_init)
54126         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54127         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54128
54129 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54130
54131         New function qset_acl, like set_acl but with syscall semantics.
54132         * lib/acl.h (qset_acl): New decl.
54133         * lib/acl.c (qset_acl): New function.
54134         (set_acl): Use new function.  Use more-consistent diagnostics.
54135
54136 2007-11-28  Jim Meyering  <meyering@redhat.com>
54137
54138         * modules/physmem (License): Change from GPL to LGPLv2+.
54139
54140 2007-11-26  Bruno Haible  <bruno@clisp.org>
54141
54142         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54143         'long double' type has excess precision.
54144         Reported by Jim Meyering in
54145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54146
54147 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54148
54149         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54150         Sync from <http://gnu.org/licenses>.
54151         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54152         with license text from same location.
54153         * doc/maintain.texi, doc/standards.texi:  Sync from
54154         <http://savannah.gnu.org/projects/gnustandards>.
54155
54156 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
54157         and Jim Meyering  <meyering@redhat.com>
54158
54159         Adjust getdate' grammar to accept a slightly more regular language.
54160         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54161         Before, the former was rejected.
54162         * lib/getdate.y (digits_to_date_time): New function, factored
54163         out of ...
54164         (number): ...here.  Just call digits_to_date_time.
54165         (hybrid): New non-terminal to handle an <unsigned number,
54166         signed relative offset> sequence consistently.
54167
54168 2007-11-18  Jim Meyering  <meyering@redhat.com>
54169
54170         Pull my changes from coreutils:
54171         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54172         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54173         use of $gnulib_tool_option_extras, so that it's separated from the
54174         preceding argument.
54175
54176         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54177         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54178         parent destination directories before copying a file into place.
54179
54180 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54181
54182         bootstrap: work also with 4-argument variant of AC_INIT
54183         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54184
54185 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54186
54187         Port test-getaddrinfo to Solaris.
54188         Problem reported by Bruno Haible in
54189         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54190         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54191         explanation of setting 'hints'.
54192         Don't reject an implementation merely because it returns EAI_SERVICE.
54193         (EAI_SERVICE): Define to 0 if not defined.
54194
54195 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54196
54197         The license of gnu-make and posix-shell is now "GPLed build tool".
54198         * modules/gnu-make (License): Likewise.
54199         * modules/posix-shell (License): Likewise.
54200
54201         New module posix-shell, for determining a POSIX shell
54202         or perhaps something that is close enough to a POSIX shell.
54203         * m4/posix-shell.m4: New file.
54204         * modules/posix-shell: New file.
54205
54206         * MODULES.html.sh: Mention new module.
54207
54208         New module gnu-make, for determining whether we're using GNU Make.
54209         * m4/gnu-make.m4: New file.
54210         * modules/gnu-make: New file.
54211         * MODULES.html.sh: Mention new module.
54212
54213 2007-11-14  Jim Meyering  <meyering@redhat.com>
54214
54215         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54216         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54217         use this macro to create a function _definition_.
54218         Remove useless "#undef ARGMATCH_DIE".
54219
54220 2007-11-14  Bruno Haible  <bruno@clisp.org>
54221
54222         * lib/config.charset: Update for OpenBSD 4.1.
54223         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54224
54225 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54226
54227         Document 64-bit #if problems in stdint.texi.
54228         * doc/headers/stdint.texi (stdint.h): Mention problems with
54229         64-bit-#if, and how to work around them.
54230
54231         Don't insist on 'long long int' support in the preprocessor.  It
54232         breaks too many things.  For example, PRIdMAX still uses a 'long
54233         long int' format with the latest Sun compiler, even though
54234         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54235         preprocessor problem.  This causes the latest coreutils to dump
54236         core on Solaris 10 sparc with the Sun C compiler.
54237         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54238         the troublesome expressions at configure-time, not at #if-time.
54239         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54240         preprocessor.
54241         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54242         compile-time C checks, done at 'configure'-time.
54243         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54244         * modules/inttypes (Makefile): Substitute the new symbols that
54245         gl_INTTYPES_H now generates.
54246         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54247
54248 2007-11-12  Bruno Haible  <bruno@clisp.org>
54249
54250         Tests for Unicode character classification functions.
54251
54252         * modules/unictype/bidicategory-byname-tests: New file.
54253         * modules/unictype/bidicategory-name-tests: New file.
54254         * modules/unictype/bidicategory-of-tests: New file.
54255         * modules/unictype/bidicategory-test-tests: New file.
54256         * modules/unictype/block-list-tests: New file.
54257         * modules/unictype/block-of-tests: New file.
54258         * modules/unictype/block-test-tests: New file.
54259         * modules/unictype/category-C-tests: New file.
54260         * modules/unictype/category-Cc-tests: New file.
54261         * modules/unictype/category-Cf-tests: New file.
54262         * modules/unictype/category-Cn-tests: New file.
54263         * modules/unictype/category-Co-tests: New file.
54264         * modules/unictype/category-Cs-tests: New file.
54265         * modules/unictype/category-L-tests: New file.
54266         * modules/unictype/category-Ll-tests: New file.
54267         * modules/unictype/category-Lm-tests: New file.
54268         * modules/unictype/category-Lo-tests: New file.
54269         * modules/unictype/category-Lt-tests: New file.
54270         * modules/unictype/category-Lu-tests: New file.
54271         * modules/unictype/category-M-tests: New file.
54272         * modules/unictype/category-Mc-tests: New file.
54273         * modules/unictype/category-Me-tests: New file.
54274         * modules/unictype/category-Mn-tests: New file.
54275         * modules/unictype/category-N-tests: New file.
54276         * modules/unictype/category-Nd-tests: New file.
54277         * modules/unictype/category-Nl-tests: New file.
54278         * modules/unictype/category-No-tests: New file.
54279         * modules/unictype/category-P-tests: New file.
54280         * modules/unictype/category-Pc-tests: New file.
54281         * modules/unictype/category-Pd-tests: New file.
54282         * modules/unictype/category-Pe-tests: New file.
54283         * modules/unictype/category-Pf-tests: New file.
54284         * modules/unictype/category-Pi-tests: New file.
54285         * modules/unictype/category-Po-tests: New file.
54286         * modules/unictype/category-Ps-tests: New file.
54287         * modules/unictype/category-S-tests: New file.
54288         * modules/unictype/category-Sc-tests: New file.
54289         * modules/unictype/category-Sk-tests: New file.
54290         * modules/unictype/category-Sm-tests: New file.
54291         * modules/unictype/category-So-tests: New file.
54292         * modules/unictype/category-Z-tests: New file.
54293         * modules/unictype/category-Zl-tests: New file.
54294         * modules/unictype/category-Zp-tests: New file.
54295         * modules/unictype/category-Zs-tests: New file.
54296         * modules/unictype/category-and-not-tests: New file.
54297         * modules/unictype/category-and-tests: New file.
54298         * modules/unictype/category-byname-tests: New file.
54299         * modules/unictype/category-name-tests: New file.
54300         * modules/unictype/category-none-tests: New file.
54301         * modules/unictype/category-of-tests: New file.
54302         * modules/unictype/category-or-tests: New file.
54303         * modules/unictype/category-test-withtable-tests: New file.
54304         * modules/unictype/combining-class-tests: New file.
54305         * modules/unictype/ctype-alnum-tests: New file.
54306         * modules/unictype/ctype-alpha-tests: New file.
54307         * modules/unictype/ctype-blank-tests: New file.
54308         * modules/unictype/ctype-cntrl-tests: New file.
54309         * modules/unictype/ctype-digit-tests: New file.
54310         * modules/unictype/ctype-graph-tests: New file.
54311         * modules/unictype/ctype-lower-tests: New file.
54312         * modules/unictype/ctype-print-tests: New file.
54313         * modules/unictype/ctype-punct-tests: New file.
54314         * modules/unictype/ctype-space-tests: New file.
54315         * modules/unictype/ctype-upper-tests: New file.
54316         * modules/unictype/ctype-xdigit-tests: New file.
54317         * modules/unictype/decimal-digit-tests: New file.
54318         * modules/unictype/digit-tests: New file.
54319         * modules/unictype/mirror-tests: New file.
54320         * modules/unictype/numeric-tests: New file.
54321         * modules/unictype/property-alphabetic-tests: New file.
54322         * modules/unictype/property-ascii-hex-digit-tests: New file.
54323         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54324         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54325         * modules/unictype/property-bidi-block-separator-tests: New file.
54326         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54327         * modules/unictype/property-bidi-common-separator-tests: New file.
54328         * modules/unictype/property-bidi-control-tests: New file.
54329         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54330         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54331         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54332         * modules/unictype/property-bidi-european-digit-tests: New file.
54333         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54334         * modules/unictype/property-bidi-left-to-right-tests: New file.
54335         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54336         * modules/unictype/property-bidi-other-neutral-tests: New file.
54337         * modules/unictype/property-bidi-pdf-tests: New file.
54338         * modules/unictype/property-bidi-segment-separator-tests: New file.
54339         * modules/unictype/property-bidi-whitespace-tests: New file.
54340         * modules/unictype/property-byname-tests: New file.
54341         * modules/unictype/property-combining-tests: New file.
54342         * modules/unictype/property-composite-tests: New file.
54343         * modules/unictype/property-currency-symbol-tests: New file.
54344         * modules/unictype/property-dash-tests: New file.
54345         * modules/unictype/property-decimal-digit-tests: New file.
54346         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54347         * modules/unictype/property-deprecated-tests: New file.
54348         * modules/unictype/property-diacritic-tests: New file.
54349         * modules/unictype/property-extender-tests: New file.
54350         * modules/unictype/property-format-control-tests: New file.
54351         * modules/unictype/property-grapheme-base-tests: New file.
54352         * modules/unictype/property-grapheme-extend-tests: New file.
54353         * modules/unictype/property-grapheme-link-tests: New file.
54354         * modules/unictype/property-hex-digit-tests: New file.
54355         * modules/unictype/property-hyphen-tests: New file.
54356         * modules/unictype/property-id-continue-tests: New file.
54357         * modules/unictype/property-id-start-tests: New file.
54358         * modules/unictype/property-ideographic-tests: New file.
54359         * modules/unictype/property-ids-binary-operator-tests: New file.
54360         * modules/unictype/property-ids-trinary-operator-tests: New file.
54361         * modules/unictype/property-ignorable-control-tests: New file.
54362         * modules/unictype/property-iso-control-tests: New file.
54363         * modules/unictype/property-join-control-tests: New file.
54364         * modules/unictype/property-left-of-pair-tests: New file.
54365         * modules/unictype/property-line-separator-tests: New file.
54366         * modules/unictype/property-logical-order-exception-tests: New file.
54367         * modules/unictype/property-lowercase-tests: New file.
54368         * modules/unictype/property-math-tests: New file.
54369         * modules/unictype/property-non-break-tests: New file.
54370         * modules/unictype/property-not-a-character-tests: New file.
54371         * modules/unictype/property-numeric-tests: New file.
54372         * modules/unictype/property-other-alphabetic-tests: New file.
54373         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54374         * modules/unictype/property-other-grapheme-extend-tests: New file.
54375         * modules/unictype/property-other-id-continue-tests: New file.
54376         * modules/unictype/property-other-id-start-tests: New file.
54377         * modules/unictype/property-other-lowercase-tests: New file.
54378         * modules/unictype/property-other-math-tests: New file.
54379         * modules/unictype/property-other-uppercase-tests: New file.
54380         * modules/unictype/property-paired-punctuation-tests: New file.
54381         * modules/unictype/property-paragraph-separator-tests: New file.
54382         * modules/unictype/property-pattern-syntax-tests: New file.
54383         * modules/unictype/property-pattern-white-space-tests: New file.
54384         * modules/unictype/property-private-use-tests: New file.
54385         * modules/unictype/property-punctuation-tests: New file.
54386         * modules/unictype/property-quotation-mark-tests: New file.
54387         * modules/unictype/property-radical-tests: New file.
54388         * modules/unictype/property-sentence-terminal-tests: New file.
54389         * modules/unictype/property-soft-dotted-tests: New file.
54390         * modules/unictype/property-space-tests: New file.
54391         * modules/unictype/property-terminal-punctuation-tests: New file.
54392         * modules/unictype/property-test-tests: New file.
54393         * modules/unictype/property-titlecase-tests: New file.
54394         * modules/unictype/property-unassigned-code-value-tests: New file.
54395         * modules/unictype/property-unified-ideograph-tests: New file.
54396         * modules/unictype/property-uppercase-tests: New file.
54397         * modules/unictype/property-variation-selector-tests: New file.
54398         * modules/unictype/property-white-space-tests: New file.
54399         * modules/unictype/property-xid-continue-tests: New file.
54400         * modules/unictype/property-xid-start-tests: New file.
54401         * modules/unictype/property-zero-width-tests: New file.
54402         * modules/unictype/scripts-tests: New file.
54403         * modules/unictype/syntax-c-ident-tests: New file.
54404         * modules/unictype/syntax-c-whitespace-tests: New file.
54405         * modules/unictype/syntax-java-ident-tests: New file.
54406         * modules/unictype/syntax-java-whitespace-tests: New file.
54407         * tests/unictype/test-bidi_byname.c: New file.
54408         * tests/unictype/test-bidi_name.c: New file.
54409         * tests/unictype/test-bidi_of.c: New file.
54410         * tests/unictype/test-bidi_test.c: New file.
54411         * tests/unictype/test-block_list.c: New file.
54412         * tests/unictype/test-block_of.c: New file.
54413         * tests/unictype/test-block_test.c: New file.
54414         * tests/unictype/test-categ_and.c: New file.
54415         * tests/unictype/test-categ_and_not.c: New file.
54416         * tests/unictype/test-categ_byname.c: New file.
54417         * tests/unictype/test-categ_name.c: New file.
54418         * tests/unictype/test-categ_none.c: New file.
54419         * tests/unictype/test-categ_of.c: New file.
54420         * tests/unictype/test-categ_or.c: New file.
54421         * tests/unictype/test-categ_test_withtable.c: New file.
54422         * tests/unictype/test-combining.c: New file.
54423         * tests/unictype/test-decdigit.c: New file.
54424         * tests/unictype/test-digit.c: New file.
54425         * tests/unictype/test-mirror.c: New file.
54426         * tests/unictype/test-numeric.c: New file.
54427         * tests/unictype/test-pr_byname.c: New file.
54428         * tests/unictype/test-pr_test.c: New file.
54429         * tests/unictype/test-predicate-part1.h: New file.
54430         * tests/unictype/test-predicate-part2.h: New file.
54431         * tests/unictype/test-scripts.c: New file.
54432         * tests/unictype/test-sy_c_ident.c: New file.
54433         * tests/unictype/test-sy_java_ident.c: New file.
54434
54435         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54436         for Unicode 5.0.0.
54437         * tests/unictype/test-categ_Cc.c: Likewise.
54438         * tests/unictype/test-categ_Cf.c: Likewise.
54439         * tests/unictype/test-categ_Cn.c: Likewise.
54440         * tests/unictype/test-categ_Co.c: Likewise.
54441         * tests/unictype/test-categ_Cs.c: Likewise.
54442         * tests/unictype/test-categ_L.c: Likewise.
54443         * tests/unictype/test-categ_Ll.c: Likewise.
54444         * tests/unictype/test-categ_Lm.c: Likewise.
54445         * tests/unictype/test-categ_Lo.c: Likewise.
54446         * tests/unictype/test-categ_Lt.c: Likewise.
54447         * tests/unictype/test-categ_Lu.c: Likewise.
54448         * tests/unictype/test-categ_M.c: Likewise.
54449         * tests/unictype/test-categ_Mc.c: Likewise.
54450         * tests/unictype/test-categ_Me.c: Likewise.
54451         * tests/unictype/test-categ_Mn.c: Likewise.
54452         * tests/unictype/test-categ_N.c: Likewise.
54453         * tests/unictype/test-categ_Nd.c: Likewise.
54454         * tests/unictype/test-categ_Nl.c: Likewise.
54455         * tests/unictype/test-categ_No.c: Likewise.
54456         * tests/unictype/test-categ_P.c: Likewise.
54457         * tests/unictype/test-categ_Pc.c: Likewise.
54458         * tests/unictype/test-categ_Pd.c: Likewise.
54459         * tests/unictype/test-categ_Pe.c: Likewise.
54460         * tests/unictype/test-categ_Pf.c: Likewise.
54461         * tests/unictype/test-categ_Pi.c: Likewise.
54462         * tests/unictype/test-categ_Po.c: Likewise.
54463         * tests/unictype/test-categ_Ps.c: Likewise.
54464         * tests/unictype/test-categ_S.c: Likewise.
54465         * tests/unictype/test-categ_Sc.c: Likewise.
54466         * tests/unictype/test-categ_Sk.c: Likewise.
54467         * tests/unictype/test-categ_Sm.c: Likewise.
54468         * tests/unictype/test-categ_So.c: Likewise.
54469         * tests/unictype/test-categ_Z.c: Likewise.
54470         * tests/unictype/test-categ_Zl.c: Likewise.
54471         * tests/unictype/test-categ_Zp.c: Likewise.
54472         * tests/unictype/test-categ_Zs.c: Likewise.
54473         * tests/unictype/test-ctype_alnum.c: Likewise.
54474         * tests/unictype/test-ctype_alpha.c: Likewise.
54475         * tests/unictype/test-ctype_blank.c: Likewise.
54476         * tests/unictype/test-ctype_cntrl.c: Likewise.
54477         * tests/unictype/test-ctype_digit.c: Likewise.
54478         * tests/unictype/test-ctype_graph.c: Likewise.
54479         * tests/unictype/test-ctype_lower.c: Likewise.
54480         * tests/unictype/test-ctype_print.c: Likewise.
54481         * tests/unictype/test-ctype_punct.c: Likewise.
54482         * tests/unictype/test-ctype_space.c: Likewise.
54483         * tests/unictype/test-ctype_upper.c: Likewise.
54484         * tests/unictype/test-ctype_xdigit.c: Likewise.
54485         * tests/unictype/test-decdigit.h: Likewise.
54486         * tests/unictype/test-digit.h: Likewise.
54487         * tests/unictype/test-numeric.h: Likewise.
54488         * tests/unictype/test-pr_alphabetic.c: Likewise.
54489         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54490         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54491         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54492         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54493         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54494         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54495         * tests/unictype/test-pr_bidi_control.c: Likewise.
54496         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54497         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54498         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54499         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54500         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54501         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54502         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54503         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54504         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54505         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54506         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54507         * tests/unictype/test-pr_combining.c: Likewise.
54508         * tests/unictype/test-pr_composite.c: Likewise.
54509         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54510         * tests/unictype/test-pr_dash.c: Likewise.
54511         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54512         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54513         * tests/unictype/test-pr_deprecated.c: Likewise.
54514         * tests/unictype/test-pr_diacritic.c: Likewise.
54515         * tests/unictype/test-pr_extender.c: Likewise.
54516         * tests/unictype/test-pr_format_control.c: Likewise.
54517         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54518         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54519         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54520         * tests/unictype/test-pr_hex_digit.c: Likewise.
54521         * tests/unictype/test-pr_hyphen.c: Likewise.
54522         * tests/unictype/test-pr_id_continue.c: Likewise.
54523         * tests/unictype/test-pr_id_start.c: Likewise.
54524         * tests/unictype/test-pr_ideographic.c: Likewise.
54525         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54526         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54527         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54528         * tests/unictype/test-pr_iso_control.c: Likewise.
54529         * tests/unictype/test-pr_join_control.c: Likewise.
54530         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54531         * tests/unictype/test-pr_line_separator.c: Likewise.
54532         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54533         * tests/unictype/test-pr_lowercase.c: Likewise.
54534         * tests/unictype/test-pr_math.c: Likewise.
54535         * tests/unictype/test-pr_non_break.c: Likewise.
54536         * tests/unictype/test-pr_not_a_character.c: Likewise.
54537         * tests/unictype/test-pr_numeric.c: Likewise.
54538         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54539         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54540         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54541         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54542         * tests/unictype/test-pr_other_id_start.c: Likewise.
54543         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54544         * tests/unictype/test-pr_other_math.c: Likewise.
54545         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54546         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54547         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54548         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54549         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54550         * tests/unictype/test-pr_private_use.c: Likewise.
54551         * tests/unictype/test-pr_punctuation.c: Likewise.
54552         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54553         * tests/unictype/test-pr_radical.c: Likewise.
54554         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54555         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54556         * tests/unictype/test-pr_space.c: Likewise.
54557         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54558         * tests/unictype/test-pr_titlecase.c: Likewise.
54559         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54560         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54561         * tests/unictype/test-pr_uppercase.c: Likewise.
54562         * tests/unictype/test-pr_variation_selector.c: Likewise.
54563         * tests/unictype/test-pr_white_space.c: Likewise.
54564         * tests/unictype/test-pr_xid_continue.c: Likewise.
54565         * tests/unictype/test-pr_xid_start.c: Likewise.
54566         * tests/unictype/test-pr_zero_width.c: Likewise.
54567         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54568         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54569
54570 2007-11-12  Bruno Haible  <bruno@clisp.org>
54571
54572         Unicode character classification functions.
54573         * lib/unictype.h: New file.
54574         * modules/unictype/base: New file.
54575         * modules/unictype/category-L: New file.
54576         * modules/unictype/category-Lu: New file.
54577         * modules/unictype/category-Ll: New file.
54578         * modules/unictype/category-Lt: New file.
54579         * modules/unictype/category-Lm: New file.
54580         * modules/unictype/category-Lo: New file.
54581         * modules/unictype/category-M: New file.
54582         * modules/unictype/category-Mn: New file.
54583         * modules/unictype/category-Mc: New file.
54584         * modules/unictype/category-Me: New file.
54585         * modules/unictype/category-N: New file.
54586         * modules/unictype/category-Nd: New file.
54587         * modules/unictype/category-Nl: New file.
54588         * modules/unictype/category-No: New file.
54589         * modules/unictype/category-P: New file.
54590         * modules/unictype/category-Pc: New file.
54591         * modules/unictype/category-Pd: New file.
54592         * modules/unictype/category-Ps: New file.
54593         * modules/unictype/category-Pe: New file.
54594         * modules/unictype/category-Pi: New file.
54595         * modules/unictype/category-Pf: New file.
54596         * modules/unictype/category-Po: New file.
54597         * modules/unictype/category-S: New file.
54598         * modules/unictype/category-Sm: New file.
54599         * modules/unictype/category-Sc: New file.
54600         * modules/unictype/category-Sk: New file.
54601         * modules/unictype/category-So: New file.
54602         * modules/unictype/category-Z: New file.
54603         * modules/unictype/category-Zs: New file.
54604         * modules/unictype/category-Zl: New file.
54605         * modules/unictype/category-Zp: New file.
54606         * modules/unictype/category-C: New file.
54607         * modules/unictype/category-Cc: New file.
54608         * modules/unictype/category-Cf: New file.
54609         * modules/unictype/category-Cs: New file.
54610         * modules/unictype/category-Co: New file.
54611         * modules/unictype/category-Cn: New file.
54612         * modules/unictype/category-or: New file.
54613         * modules/unictype/category-of: New file.
54614         * modules/unictype/category-test: New file.
54615         * modules/unictype/category-test-withtable: New file.
54616         * modules/unictype/category-byname: New file.
54617         * modules/unictype/category-none: New file.
54618         * modules/unictype/category-and: New file.
54619         * modules/unictype/category-and-not: New file.
54620         * modules/unictype/category-name: New file.
54621         * modules/unictype/combining-class: New file.
54622         * modules/unictype/category-all: New file.
54623         * modules/unictype/bidicategory-all: New file.
54624         * modules/unictype/bidicategory-byname: New file.
54625         * modules/unictype/bidicategory-name: New file.
54626         * modules/unictype/bidicategory-of: New file.
54627         * modules/unictype/bidicategory-test: New file.
54628         * modules/unictype/decimal-digit: New file.
54629         * modules/unictype/digit: New file.
54630         * modules/unictype/numeric: New file.
54631         * modules/unictype/mirror: New file.
54632         * modules/unictype/property-white-space: New file.
54633         * modules/unictype/property-alphabetic: New file.
54634         * modules/unictype/property-other-alphabetic: New file.
54635         * modules/unictype/property-not-a-character: New file.
54636         * modules/unictype/property-default-ignorable-code-point: New file.
54637         * modules/unictype/property-other-default-ignorable-code-point: New
54638         file.
54639         * modules/unictype/property-deprecated: New file.
54640         * modules/unictype/property-logical-order-exception: New file.
54641         * modules/unictype/property-variation-selector: New file.
54642         * modules/unictype/property-private-use: New file.
54643         * modules/unictype/property-unassigned-code-value: New file.
54644         * modules/unictype/property-uppercase: New file.
54645         * modules/unictype/property-other-uppercase: New file.
54646         * modules/unictype/property-lowercase: New file.
54647         * modules/unictype/property-other-lowercase: New file.
54648         * modules/unictype/property-titlecase: New file.
54649         * modules/unictype/property-soft-dotted: New file.
54650         * modules/unictype/property-id-start: New file.
54651         * modules/unictype/property-other-id-start: New file.
54652         * modules/unictype/property-id-continue: New file.
54653         * modules/unictype/property-other-id-continue: New file.
54654         * modules/unictype/property-xid-start: New file.
54655         * modules/unictype/property-xid-continue: New file.
54656         * modules/unictype/property-pattern-white-space: New file.
54657         * modules/unictype/property-pattern-syntax: New file.
54658         * modules/unictype/property-join-control: New file.
54659         * modules/unictype/property-grapheme-base: New file.
54660         * modules/unictype/property-grapheme-extend: New file.
54661         * modules/unictype/property-other-grapheme-extend: New file.
54662         * modules/unictype/property-grapheme-link: New file.
54663         * modules/unictype/property-bidi-control: New file.
54664         * modules/unictype/property-bidi-left-to-right: New file.
54665         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54666         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54667         * modules/unictype/property-bidi-european-digit: New file.
54668         * modules/unictype/property-bidi-eur-num-separator: New file.
54669         * modules/unictype/property-bidi-eur-num-terminator: New file.
54670         * modules/unictype/property-bidi-arabic-digit: New file.
54671         * modules/unictype/property-bidi-common-separator: New file.
54672         * modules/unictype/property-bidi-block-separator: New file.
54673         * modules/unictype/property-bidi-segment-separator: New file.
54674         * modules/unictype/property-bidi-whitespace: New file.
54675         * modules/unictype/property-bidi-non-spacing-mark: New file.
54676         * modules/unictype/property-bidi-boundary-neutral: New file.
54677         * modules/unictype/property-bidi-pdf: New file.
54678         * modules/unictype/property-bidi-embedding-or-override: New file.
54679         * modules/unictype/property-bidi-other-neutral: New file.
54680         * modules/unictype/property-hex-digit: New file.
54681         * modules/unictype/property-ascii-hex-digit: New file.
54682         * modules/unictype/property-ideographic: New file.
54683         * modules/unictype/property-unified-ideograph: New file.
54684         * modules/unictype/property-radical: New file.
54685         * modules/unictype/property-ids-binary-operator: New file.
54686         * modules/unictype/property-ids-trinary-operator: New file.
54687         * modules/unictype/property-zero-width: New file.
54688         * modules/unictype/property-space: New file.
54689         * modules/unictype/property-non-break: New file.
54690         * modules/unictype/property-iso-control: New file.
54691         * modules/unictype/property-format-control: New file.
54692         * modules/unictype/property-dash: New file.
54693         * modules/unictype/property-hyphen: New file.
54694         * modules/unictype/property-punctuation: New file.
54695         * modules/unictype/property-line-separator: New file.
54696         * modules/unictype/property-paragraph-separator: New file.
54697         * modules/unictype/property-quotation-mark: New file.
54698         * modules/unictype/property-sentence-terminal: New file.
54699         * modules/unictype/property-terminal-punctuation: New file.
54700         * modules/unictype/property-currency-symbol: New file.
54701         * modules/unictype/property-math: New file.
54702         * modules/unictype/property-other-math: New file.
54703         * modules/unictype/property-paired-punctuation: New file.
54704         * modules/unictype/property-left-of-pair: New file.
54705         * modules/unictype/property-combining: New file.
54706         * modules/unictype/property-composite: New file.
54707         * modules/unictype/property-decimal-digit: New file.
54708         * modules/unictype/property-numeric: New file.
54709         * modules/unictype/property-diacritic: New file.
54710         * modules/unictype/property-extender: New file.
54711         * modules/unictype/property-ignorable-control: New file.
54712         * modules/unictype/property-test: New file.
54713         * modules/unictype/property-byname: New file.
54714         * modules/unictype/property-all: New file.
54715         * modules/unictype/scripts: New file.
54716         * modules/unictype/scripts-all: New file.
54717         * modules/unictype/block-of: New file.
54718         * modules/unictype/block-test: New file.
54719         * modules/unictype/block-list: New file.
54720         * modules/unictype/block-all: New file.
54721         * modules/unictype/syntax-c-whitespace: New file.
54722         * modules/unictype/syntax-java-whitespace: New file.
54723         * modules/unictype/syntax-c-ident: New file.
54724         * modules/unictype/syntax-java-ident: New file.
54725         * modules/unictype/ctype-alnum: New file.
54726         * modules/unictype/ctype-alpha: New file.
54727         * modules/unictype/ctype-cntrl: New file.
54728         * modules/unictype/ctype-digit: New file.
54729         * modules/unictype/ctype-graph: New file.
54730         * modules/unictype/ctype-lower: New file.
54731         * modules/unictype/ctype-print: New file.
54732         * modules/unictype/ctype-punct: New file.
54733         * modules/unictype/ctype-space: New file.
54734         * modules/unictype/ctype-upper: New file.
54735         * modules/unictype/ctype-xdigit: New file.
54736         * modules/unictype/ctype-blank: New file.
54737         * lib/unictype/bidi_byname.c: New file.
54738         * lib/unictype/bidi_name.c: New file.
54739         * lib/unictype/bidi_of.c: New file.
54740         * lib/unictype/bidi_test.c: New file.
54741         * lib/unictype/bitmap.h: New file.
54742         * lib/unictype/block_test.c: New file.
54743         * lib/unictype/blocks.c: New file.
54744         * lib/unictype/categ_C.c: New file.
54745         * lib/unictype/categ_Cc.c: New file.
54746         * lib/unictype/categ_Cf.c: New file.
54747         * lib/unictype/categ_Cn.c: New file.
54748         * lib/unictype/categ_Co.c: New file.
54749         * lib/unictype/categ_Cs.c: New file.
54750         * lib/unictype/categ_L.c: New file.
54751         * lib/unictype/categ_Ll.c: New file.
54752         * lib/unictype/categ_Lm.c: New file.
54753         * lib/unictype/categ_Lo.c: New file.
54754         * lib/unictype/categ_Lt.c: New file.
54755         * lib/unictype/categ_Lu.c: New file.
54756         * lib/unictype/categ_M.c: New file.
54757         * lib/unictype/categ_Mc.c: New file.
54758         * lib/unictype/categ_Me.c: New file.
54759         * lib/unictype/categ_Mn.c: New file.
54760         * lib/unictype/categ_N.c: New file.
54761         * lib/unictype/categ_Nd.c: New file.
54762         * lib/unictype/categ_Nl.c: New file.
54763         * lib/unictype/categ_No.c: New file.
54764         * lib/unictype/categ_P.c: New file.
54765         * lib/unictype/categ_Pc.c: New file.
54766         * lib/unictype/categ_Pd.c: New file.
54767         * lib/unictype/categ_Pe.c: New file.
54768         * lib/unictype/categ_Pf.c: New file.
54769         * lib/unictype/categ_Pi.c: New file.
54770         * lib/unictype/categ_Po.c: New file.
54771         * lib/unictype/categ_Ps.c: New file.
54772         * lib/unictype/categ_S.c: New file.
54773         * lib/unictype/categ_Sc.c: New file.
54774         * lib/unictype/categ_Sk.c: New file.
54775         * lib/unictype/categ_Sm.c: New file.
54776         * lib/unictype/categ_So.c: New file.
54777         * lib/unictype/categ_Z.c: New file.
54778         * lib/unictype/categ_Zl.c: New file.
54779         * lib/unictype/categ_Zp.c: New file.
54780         * lib/unictype/categ_Zs.c: New file.
54781         * lib/unictype/categ_and.c: New file.
54782         * lib/unictype/categ_and_not.c: New file.
54783         * lib/unictype/categ_byname.c: New file.
54784         * lib/unictype/categ_name.c: New file.
54785         * lib/unictype/categ_none.c: New file.
54786         * lib/unictype/categ_of.c: New file.
54787         * lib/unictype/categ_or.c: New file.
54788         * lib/unictype/categ_test.c: New file.
54789         * lib/unictype/combining.c: New file.
54790         * lib/unictype/ctype_alnum.c: New file.
54791         * lib/unictype/ctype_alpha.c: New file.
54792         * lib/unictype/ctype_blank.c: New file.
54793         * lib/unictype/ctype_cntrl.c: New file.
54794         * lib/unictype/ctype_digit.c: New file.
54795         * lib/unictype/ctype_graph.c: New file.
54796         * lib/unictype/ctype_lower.c: New file.
54797         * lib/unictype/ctype_print.c: New file.
54798         * lib/unictype/ctype_punct.c: New file.
54799         * lib/unictype/ctype_space.c: New file.
54800         * lib/unictype/ctype_upper.c: New file.
54801         * lib/unictype/ctype_xdigit.c: New file.
54802         * lib/unictype/decdigit.c: New file.
54803         * lib/unictype/digit.c: New file.
54804         * lib/unictype/identsyntaxmap.h: New file.
54805         * lib/unictype/mirror.c: New file.
54806         * lib/unictype/numeric.c: New file.
54807         * lib/unictype/pr_alphabetic.c: New file.
54808         * lib/unictype/pr_ascii_hex_digit.c: New file.
54809         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54810         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54811         * lib/unictype/pr_bidi_block_separator.c: New file.
54812         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54813         * lib/unictype/pr_bidi_common_separator.c: New file.
54814         * lib/unictype/pr_bidi_control.c: New file.
54815         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54816         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54817         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54818         * lib/unictype/pr_bidi_european_digit.c: New file.
54819         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54820         * lib/unictype/pr_bidi_left_to_right.c: New file.
54821         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54822         * lib/unictype/pr_bidi_other_neutral.c: New file.
54823         * lib/unictype/pr_bidi_pdf.c: New file.
54824         * lib/unictype/pr_bidi_segment_separator.c: New file.
54825         * lib/unictype/pr_bidi_whitespace.c: New file.
54826         * lib/unictype/pr_byname.c: New file.
54827         * lib/unictype/pr_byname.gperf: New file.
54828         * lib/unictype/pr_combining.c: New file.
54829         * lib/unictype/pr_composite.c: New file.
54830         * lib/unictype/pr_currency_symbol.c: New file.
54831         * lib/unictype/pr_dash.c: New file.
54832         * lib/unictype/pr_decimal_digit.c: New file.
54833         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54834         * lib/unictype/pr_deprecated.c: New file.
54835         * lib/unictype/pr_diacritic.c: New file.
54836         * lib/unictype/pr_extender.c: New file.
54837         * lib/unictype/pr_format_control.c: New file.
54838         * lib/unictype/pr_grapheme_base.c: New file.
54839         * lib/unictype/pr_grapheme_extend.c: New file.
54840         * lib/unictype/pr_grapheme_link.c: New file.
54841         * lib/unictype/pr_hex_digit.c: New file.
54842         * lib/unictype/pr_hyphen.c: New file.
54843         * lib/unictype/pr_id_continue.c: New file.
54844         * lib/unictype/pr_id_start.c: New file.
54845         * lib/unictype/pr_ideographic.c: New file.
54846         * lib/unictype/pr_ids_binary_operator.c: New file.
54847         * lib/unictype/pr_ids_trinary_operator.c: New file.
54848         * lib/unictype/pr_ignorable_control.c: New file.
54849         * lib/unictype/pr_iso_control.c: New file.
54850         * lib/unictype/pr_join_control.c: New file.
54851         * lib/unictype/pr_left_of_pair.c: New file.
54852         * lib/unictype/pr_line_separator.c: New file.
54853         * lib/unictype/pr_logical_order_exception.c: New file.
54854         * lib/unictype/pr_lowercase.c: New file.
54855         * lib/unictype/pr_math.c: New file.
54856         * lib/unictype/pr_non_break.c: New file.
54857         * lib/unictype/pr_not_a_character.c: New file.
54858         * lib/unictype/pr_numeric.c: New file.
54859         * lib/unictype/pr_other_alphabetic.c: New file.
54860         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54861         * lib/unictype/pr_other_grapheme_extend.c: New file.
54862         * lib/unictype/pr_other_id_continue.c: New file.
54863         * lib/unictype/pr_other_id_start.c: New file.
54864         * lib/unictype/pr_other_lowercase.c: New file.
54865         * lib/unictype/pr_other_math.c: New file.
54866         * lib/unictype/pr_other_uppercase.c: New file.
54867         * lib/unictype/pr_paired_punctuation.c: New file.
54868         * lib/unictype/pr_paragraph_separator.c: New file.
54869         * lib/unictype/pr_pattern_syntax.c: New file.
54870         * lib/unictype/pr_pattern_white_space.c: New file.
54871         * lib/unictype/pr_private_use.c: New file.
54872         * lib/unictype/pr_punctuation.c: New file.
54873         * lib/unictype/pr_quotation_mark.c: New file.
54874         * lib/unictype/pr_radical.c: New file.
54875         * lib/unictype/pr_sentence_terminal.c: New file.
54876         * lib/unictype/pr_soft_dotted.c: New file.
54877         * lib/unictype/pr_space.c: New file.
54878         * lib/unictype/pr_terminal_punctuation.c: New file.
54879         * lib/unictype/pr_test.c: New file.
54880         * lib/unictype/pr_titlecase.c: New file.
54881         * lib/unictype/pr_unassigned_code_value.c: New file.
54882         * lib/unictype/pr_unified_ideograph.c: New file.
54883         * lib/unictype/pr_uppercase.c: New file.
54884         * lib/unictype/pr_variation_selector.c: New file.
54885         * lib/unictype/pr_white_space.c: New file.
54886         * lib/unictype/pr_xid_continue.c: New file.
54887         * lib/unictype/pr_xid_start.c: New file.
54888         * lib/unictype/pr_zero_width.c: New file.
54889         * lib/unictype/scripts.c: New file.
54890         * lib/unictype/sy_c_ident.c: New file.
54891         * lib/unictype/sy_c_whitespace.c: New file.
54892         * lib/unictype/sy_java_ident.c: New file.
54893         * lib/unictype/sy_java_whitespace.c: New file.
54894
54895         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54896         Unicode 5.0.0.
54897         * lib/unictype/blocks.h: Likewise.
54898         * lib/unictype/categ_C.h: Likewise.
54899         * lib/unictype/categ_Cc.h: Likewise.
54900         * lib/unictype/categ_Cf.h: Likewise.
54901         * lib/unictype/categ_Cn.h: Likewise.
54902         * lib/unictype/categ_Co.h: Likewise.
54903         * lib/unictype/categ_Cs.h: Likewise.
54904         * lib/unictype/categ_L.h: Likewise.
54905         * lib/unictype/categ_Ll.h: Likewise.
54906         * lib/unictype/categ_Lm.h: Likewise.
54907         * lib/unictype/categ_Lo.h: Likewise.
54908         * lib/unictype/categ_Lt.h: Likewise.
54909         * lib/unictype/categ_Lu.h: Likewise.
54910         * lib/unictype/categ_M.h: Likewise.
54911         * lib/unictype/categ_Mc.h: Likewise.
54912         * lib/unictype/categ_Me.h: Likewise.
54913         * lib/unictype/categ_Mn.h: Likewise.
54914         * lib/unictype/categ_N.h: Likewise.
54915         * lib/unictype/categ_Nd.h: Likewise.
54916         * lib/unictype/categ_Nl.h: Likewise.
54917         * lib/unictype/categ_No.h: Likewise.
54918         * lib/unictype/categ_P.h: Likewise.
54919         * lib/unictype/categ_Pc.h: Likewise.
54920         * lib/unictype/categ_Pd.h: Likewise.
54921         * lib/unictype/categ_Pe.h: Likewise.
54922         * lib/unictype/categ_Pf.h: Likewise.
54923         * lib/unictype/categ_Pi.h: Likewise.
54924         * lib/unictype/categ_Po.h: Likewise.
54925         * lib/unictype/categ_Ps.h: Likewise.
54926         * lib/unictype/categ_S.h: Likewise.
54927         * lib/unictype/categ_Sc.h: Likewise.
54928         * lib/unictype/categ_Sk.h: Likewise.
54929         * lib/unictype/categ_Sm.h: Likewise.
54930         * lib/unictype/categ_So.h: Likewise.
54931         * lib/unictype/categ_Z.h: Likewise.
54932         * lib/unictype/categ_Zl.h: Likewise.
54933         * lib/unictype/categ_Zp.h: Likewise.
54934         * lib/unictype/categ_Zs.h: Likewise.
54935         * lib/unictype/categ_of.h: Likewise.
54936         * lib/unictype/combining.h: Likewise.
54937         * lib/unictype/ctype_alnum.h: Likewise.
54938         * lib/unictype/ctype_alpha.h: Likewise.
54939         * lib/unictype/ctype_blank.h: Likewise.
54940         * lib/unictype/ctype_cntrl.h: Likewise.
54941         * lib/unictype/ctype_digit.h: Likewise.
54942         * lib/unictype/ctype_graph.h: Likewise.
54943         * lib/unictype/ctype_lower.h: Likewise.
54944         * lib/unictype/ctype_print.h: Likewise.
54945         * lib/unictype/ctype_punct.h: Likewise.
54946         * lib/unictype/ctype_space.h: Likewise.
54947         * lib/unictype/ctype_upper.h: Likewise.
54948         * lib/unictype/ctype_xdigit.h: Likewise.
54949         * lib/unictype/decdigit.h: Likewise.
54950         * lib/unictype/digit.h: Likewise.
54951         * lib/unictype/mirror.h: Likewise.
54952         * lib/unictype/numeric.h: Likewise.
54953         * lib/unictype/pr_alphabetic.h: Likewise.
54954         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54955         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54956         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54957         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54958         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54959         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54960         * lib/unictype/pr_bidi_control.h: Likewise.
54961         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54962         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54963         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54964         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54965         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54966         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54967         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54968         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54969         * lib/unictype/pr_bidi_pdf.h: Likewise.
54970         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54971         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54972         * lib/unictype/pr_combining.h: Likewise.
54973         * lib/unictype/pr_composite.h: Likewise.
54974         * lib/unictype/pr_currency_symbol.h: Likewise.
54975         * lib/unictype/pr_dash.h: Likewise.
54976         * lib/unictype/pr_decimal_digit.h: Likewise.
54977         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54978         * lib/unictype/pr_deprecated.h: Likewise.
54979         * lib/unictype/pr_diacritic.h: Likewise.
54980         * lib/unictype/pr_extender.h: Likewise.
54981         * lib/unictype/pr_format_control.h: Likewise.
54982         * lib/unictype/pr_grapheme_base.h: Likewise.
54983         * lib/unictype/pr_grapheme_extend.h: Likewise.
54984         * lib/unictype/pr_grapheme_link.h: Likewise.
54985         * lib/unictype/pr_hex_digit.h: Likewise.
54986         * lib/unictype/pr_hyphen.h: Likewise.
54987         * lib/unictype/pr_id_continue.h: Likewise.
54988         * lib/unictype/pr_id_start.h: Likewise.
54989         * lib/unictype/pr_ideographic.h: Likewise.
54990         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54991         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54992         * lib/unictype/pr_ignorable_control.h: Likewise.
54993         * lib/unictype/pr_iso_control.h: Likewise.
54994         * lib/unictype/pr_join_control.h: Likewise.
54995         * lib/unictype/pr_left_of_pair.h: Likewise.
54996         * lib/unictype/pr_line_separator.h: Likewise.
54997         * lib/unictype/pr_logical_order_exception.h: Likewise.
54998         * lib/unictype/pr_lowercase.h: Likewise.
54999         * lib/unictype/pr_math.h: Likewise.
55000         * lib/unictype/pr_non_break.h: Likewise.
55001         * lib/unictype/pr_not_a_character.h: Likewise.
55002         * lib/unictype/pr_numeric.h: Likewise.
55003         * lib/unictype/pr_other_alphabetic.h: Likewise.
55004         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55005         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55006         * lib/unictype/pr_other_id_continue.h: Likewise.
55007         * lib/unictype/pr_other_id_start.h: Likewise.
55008         * lib/unictype/pr_other_lowercase.h: Likewise.
55009         * lib/unictype/pr_other_math.h: Likewise.
55010         * lib/unictype/pr_other_uppercase.h: Likewise.
55011         * lib/unictype/pr_paired_punctuation.h: Likewise.
55012         * lib/unictype/pr_paragraph_separator.h: Likewise.
55013         * lib/unictype/pr_pattern_syntax.h: Likewise.
55014         * lib/unictype/pr_pattern_white_space.h: Likewise.
55015         * lib/unictype/pr_private_use.h: Likewise.
55016         * lib/unictype/pr_punctuation.h: Likewise.
55017         * lib/unictype/pr_quotation_mark.h: Likewise.
55018         * lib/unictype/pr_radical.h: Likewise.
55019         * lib/unictype/pr_sentence_terminal.h: Likewise.
55020         * lib/unictype/pr_soft_dotted.h: Likewise.
55021         * lib/unictype/pr_space.h: Likewise.
55022         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55023         * lib/unictype/pr_titlecase.h: Likewise.
55024         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55025         * lib/unictype/pr_unified_ideograph.h: Likewise.
55026         * lib/unictype/pr_uppercase.h: Likewise.
55027         * lib/unictype/pr_variation_selector.h: Likewise.
55028         * lib/unictype/pr_white_space.h: Likewise.
55029         * lib/unictype/pr_xid_continue.h: Likewise.
55030         * lib/unictype/pr_xid_start.h: Likewise.
55031         * lib/unictype/pr_zero_width.h: Likewise.
55032         * lib/unictype/scripts.h: Likewise.
55033         * lib/unictype/scripts_byname.gperf: Likewise.
55034         * lib/unictype/sy_c_ident.h: Likewise.
55035         * lib/unictype/sy_c_whitespace.h: Likewise.
55036         * lib/unictype/sy_java_ident.h: Likewise.
55037         * lib/unictype/sy_java_whitespace.h: Likewise.
55038
55039         * lib/unictype/Makefile: New file.
55040         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55041         glibc.
55042         * lib/unictype/3level.h: New file, copied from glibc.
55043         * lib/unictype/3levelbit.h: New file.
55044
55045 2007-11-11  Bruno Haible  <bruno@clisp.org>
55046
55047         * modules/gperf: New file.
55048         * modules/iconv_open (Depends-on): Add it.
55049         (Makefile.am): Remove the GPERF definition.
55050
55051 2007-11-11  Bruno Haible  <bruno@clisp.org>
55052
55053         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55054         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55055
55056 2007-11-11  Bruno Haible  <bruno@clisp.org>
55057
55058         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55059         (usage): Remove function.
55060
55061 2007-11-11  Bruno Haible  <bruno@clisp.org>
55062
55063         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55064         gl_FUNC_CEILF_LIBS.
55065         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55066         gl_FUNC_CEIL_LIBS.
55067         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55068         gl_FUNC_CEILL_LIBS.
55069         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55070         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55071         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55072
55073 2007-11-11  Bruno Haible  <bruno@clisp.org>
55074
55075         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55076         roundf were declared but do not exist on functions.
55077         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55078         roundl were declared but do not exist on functions.
55079         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55080         HAVE_FLOORL_AND_CEILL, respectively.
55081         Needed for Sun C on Solaris 10.
55082
55083 2007-11-11  Bruno Haible  <bruno@clisp.org>
55084
55085         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55086         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55087         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55088         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55089         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55090         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55091         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55092         HAVE_DECL_ROUNDF.
55093         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55094         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55096         of HAVE_DECL_ROUND*.
55097         * modules/math (Makefile.am): Update.
55098
55099 2007-11-10  Bruno Haible  <bruno@clisp.org>
55100
55101         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55102         ptrdiff_t as m4/intl.m4.
55103
55104 2007-11-10  Jim Meyering  <meyering@redhat.com>
55105
55106         Avoid link failure for the argmatch test.
55107         * tests/test-argmatch.c (usage): Define function to avoid a link
55108         failure: argmatch_die requires a usage function.
55109
55110 2007-11-09  Bruno Haible  <bruno@clisp.org>
55111
55112         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55113         * doc/functions/vsnprintf.texi: Likewise.
55114         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55115         with a size argument < 2.
55116
55117 2007-11-09  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55120         buffer. Fixes an inefficiency introduced on 2007-11-03.
55121
55122 2007-11-09  Bruno Haible  <bruno@clisp.org>
55123
55124         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55125         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55126
55127 2007-11-08  Jim Meyering  <meyering@redhat.com>
55128
55129         Change cache variable name prefix "jm_" to "gl_" everywhere.
55130         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55131         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55132         * m4/uptime.m4: s/gl_/jm_/
55133
55134 2007-11-07  Bruno Haible  <bruno@clisp.org>
55135
55136         Update to GNU gettext 0.17.
55137         * m4/intl.m4: Update to GNU gettext 0.17.
55138         * m4/po.m4: Likewise.
55139         * modules/gettext (Files): Remove m4/ulonglong.m4.
55140         (configure.ac): Require gettext infrastructure from version 0.17.
55141
55142 2007-11-06  Bruno Haible  <bruno@clisp.org>
55143
55144         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55145         symbolic values are not defined in a public header.
55146         * lib/freadable.c (freadable) [QNX]: Likewise.
55147         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55148         * lib/freading.c (freading) [QNX]: Likewise.
55149         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55150         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55151         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55152         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55153         Reported by Alain Magloire.
55154
55155         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55156
55157 2007-11-05  Bruno Haible  <bruno@clisp.org>
55158
55159         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55160         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55161         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55162         Reported by Eric Blake.
55163
55164 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55165             Bruno Haible  <bruno@clisp.org>
55166
55167         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55168         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55169         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55170         (malloc): Undefine also before including <stdlib.h>.
55171         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55172         Needed on OSF/1 4.0.
55173
55174 2007-11-05  Jim Meyering  <meyering@redhat.com>
55175
55176         git-version-gen: sync from coreutils.
55177         * build-aux/git-version-gen: Add comments.
55178         Change the first '-' to '.' in the snapshot version string,
55179         e.g., 6.9-377-08144 -> 6.9.377-08144
55180         Remove first parameter.
55181         Don't declare a version "-dirty" merely because a time
55182         stamp has changed.
55183
55184 2007-11-04  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/lock.h: Protect all macro definitions containing an 'if'
55187         statement through a "do { ... } while (0)".
55188         * lib/tls.h: Likewise.
55189
55190 2007-11-04  Bruno Haible  <bruno@clisp.org>
55191
55192         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55193
55194 2007-11-04  Bruno Haible  <bruno@clisp.org>
55195
55196         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55197         * modules/fprintf-posix (Depends-on): Add nocrash.
55198         * modules/snprintf-posix (Depends-on): Likewise.
55199         * modules/sprintf-posix (Depends-on): Likewise.
55200         * modules/vasnprintf-posix (Depends-on): Likewise.
55201         * modules/vasprintf-posix (Depends-on): Likewise.
55202         * modules/vfprintf-posix (Depends-on): Likewise.
55203         * modules/vsnprintf-posix (Depends-on): Likewise.
55204         * modules/vsprintf-posix (Depends-on): Likewise.
55205         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55206         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55207         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55208         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55209         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55210         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55211         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55212
55213 2007-11-04  Bruno Haible  <bruno@clisp.org>
55214
55215         * modules/nocrash: New file.
55216         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55217         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55218
55219 2007-11-04  Bruno Haible  <bruno@clisp.org>
55220
55221         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55222         precision handling.
55223         * tests/test-vasprintf-posix.c (test_function): Likewise.
55224         * tests/test-snprintf-posix.h (test_function): Likewise.
55225         * tests/test-sprintf-posix.h (test_function): Likewise.
55226
55227         Fix *printf behaviour for large precisions on mingw and BeOS.
55228         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55229         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55231         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55232         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55233         gl_PRINTF_PRECISION and test its result. Invoke
55234         gl_PREREQ_VASNPRINTF_PRECISION.
55235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55236         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55237         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55239         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55240         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55241         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55242         * doc/functions/fprintf.texi: Update.
55243         * doc/functions/printf.texi: Update.
55244         * doc/functions/snprintf.texi: Update.
55245         * doc/functions/sprintf.texi: Update.
55246         * doc/functions/vfprintf.texi: Update.
55247         * doc/functions/vprintf.texi: Update.
55248         * doc/functions/vsnprintf.texi: Update.
55249         * doc/functions/vsprintf.texi: Update.
55250
55251 2007-11-04  Bruno Haible  <bruno@clisp.org>
55252
55253         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55254
55255 2007-11-04  Bruno Haible  <bruno@clisp.org>
55256
55257         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55258         Reported by Sylvain Beucler <beuc@gnu.org>.
55259
55260 2007-11-03  Bruno Haible  <bruno@clisp.org>
55261
55262         * tests/test-fprintf-posix2.sh: New file.
55263         * tests/test-fprintf-posix2.c: New file.
55264         * modules/fprintf-posix-tests (Files): Add them.
55265         (TESTS): Add test-fprintf-posix2.sh.
55266         (configure.ac): Check for getrlimit and setrlimit.
55267         (check_PROGRAMS): Add test-fprintf-posix2.
55268
55269         * tests/test-printf-posix2.sh: New file.
55270         * tests/test-printf-posix2.c: New file.
55271         * modules/printf-posix-tests (Files): Add them.
55272         (TESTS): Add test-printf-posix2.sh.
55273         (configure.ac): Check for getrlimit and setrlimit.
55274         (check_PROGRAMS): Add test-printf-posix2.
55275
55276         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55277         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55278         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55279         (decode_double): New function, copied from decode_long_double.
55280         (scale10_round_decimal_decoded): New function, extracted from
55281         scale10_round_decimal_long_double.
55282         (scale10_round_decimal_long_double): Use it.
55283         (scale10_round_decimal_double): New function.
55284         (floorlog10): New function.
55285         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55287         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55288         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55289         gl_PRINTF_ENOMEM and test its result. Invoke
55290         gl_PREREQ_VASNPRINTF_ENOMEM.
55291         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55292         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55293         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55294         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55295         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55296         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55297         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55298         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55299         * modules/snprintf-posix (Depends-on): Likewise.
55300         * modules/sprintf-posix (Depends-on): Likewise.
55301         * modules/vasnprintf-posix (Depends-on): Likewise.
55302         * modules/vasprintf-posix (Depends-on): Likewise.
55303         * modules/vfprintf-posix (Depends-on): Likewise.
55304         * modules/vsnprintf-posix (Depends-on): Likewise.
55305         * modules/vsprintf-posix (Depends-on): Likewise.
55306         * doc/functions/fprintf.texi: Update.
55307         * doc/functions/printf.texi: Update.
55308         * doc/functions/snprintf.texi: Update.
55309         * doc/functions/sprintf.texi: Update.
55310         * doc/functions/vfprintf.texi: Update.
55311         * doc/functions/vprintf.texi: Update.
55312         * doc/functions/vsnprintf.texi: Update.
55313         * doc/functions/vsprintf.texi: Update.
55314
55315 2007-11-03  Bruno Haible  <bruno@clisp.org>
55316
55317         * modules/frexp-nolibm-tests: New file.
55318
55319         * modules/frexp-nolibm: New file.
55320         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55321
55322 2007-11-03  Bruno Haible  <bruno@clisp.org>
55323
55324         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55325         value is C99 compliant.
55326         Needed for OSF/1 5.1.
55327
55328 2007-11-03  Bruno Haible  <bruno@clisp.org>
55329
55330         Fix out-of-memory handling of vasnprintf.
55331         * lib/printf-parse.c: Include <errno.h>.
55332         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55333         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55334         is already set.
55335
55336 2007-11-02  Eric Blake  <ebb9@byu.net>
55337
55338         Fix tests on cygwin.
55339         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55340
55341 2007-11-01  Bruno Haible  <bruno@clisp.org>
55342
55343         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55344         warning.
55345         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55346         needed for POSIX compatibility.
55347
55348 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55349
55350         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55351         for compatibility with GNU.
55352
55353 2007-11-01  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55356         (putenv): Renamed from rpl_putenv. Change argument type from
55357         'const char *' to 'char *'.
55358         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55359         of defining putenv in config.h, just set REPLACE_PUTENV.
55360         * modules/putenv (Depends-on): Add stdlib.
55361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55362         (Include): Use <stdlib.h>.
55363         * lib/stdlib.in.h (putenv): New declaration.
55364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55365         REPLACE_PUTENV.
55366         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55367         REPLACE_PUTENV.
55368         Needed for MacOS X 10.5.0.
55369         Reported by Peter O'Gorman <peter@pogma.com>.
55370
55371 2007-11-01  Jim Meyering  <meyering@redhat.com>
55372
55373         Treat an empty date string exactly like "0".
55374         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55375         if the remaining date string (to be parsed) is empty, use "0".
55376         Reported by Mischa Molhoek and discussed in this thread:
55377         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55378
55379 2007-10-31  Bruno Haible  <bruno@clisp.org>
55380
55381         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55382         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55383         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55384         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55385         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55386         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55387
55388 2007-10-31  Bruno Haible  <bruno@clisp.org>
55389
55390         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55391         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55392         (AC_TYPE_LONG_LONG_INT): Use it.
55393         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55394         it as well.
55395         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55396         to m4/longlong.m4.
55397         * modules/stdint (Files): Remove m4/ulonglong.m4.
55398         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55399         m4/ulonglong.m4.
55400         * modules/strtoumax (Files): Likewise.
55401
55402 2007-10-30  Bruno Haible  <bruno@clisp.org>
55403
55404         * modules/xvasprintf-posix: New file.
55405         Suggested by Eric Blake.
55406
55407 2007-10-30  Bruno Haible  <bruno@clisp.org>
55408
55409         * modules/xprintf-posix-tests: New file.
55410         * tests/test-xprintf-posix.sh: New file.
55411         * tests/test-xprintf-posix.c: New file.
55412         * tests/test-xfprintf-posix.c: New file.
55413
55414         * modules/xprintf-posix: New file.
55415
55416 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55417
55418         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55419         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55420         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55421
55422 2007-10-29  Bruno Haible  <bruno@clisp.org>
55423
55424         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55425         contain the special marker '_cv_'.
55426         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55427         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55428         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55429         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55430         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55431         Reported by Ralf Wildenhues.
55432
55433 2007-10-29  Bruno Haible  <bruno@clisp.org>
55434
55435         * gnulib-tool (func_import): When --lgpl is not specified, set
55436         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55437         GPLv3.
55438         Reported by Simon Josefsson.
55439
55440 2007-10-28  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55443         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55444         HAVE_DECL_ISFINITE.
55445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55446         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55447         HAVE_DECL_ISFINITE.
55448
55449 2007-10-28  Bruno Haible  <bruno@clisp.org>
55450
55451         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55452         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55453
55454 2007-10-28  Bruno Haible  <bruno@clisp.org>
55455
55456         Fix link errors with Sun C 5.0 on Solaris 10.
55457         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55458         function is declared but not present in the compiler's libm.
55459         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55460         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55461         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55462         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55463         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55464         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55465         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55467         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55468         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55469         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55470         HAVE_DECL_FLOORL.
55471
55472 2007-10-28  Bruno Haible  <bruno@clisp.org>
55473
55474         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55475         gl_FUNC_FLOORL. Cache the result.
55476         (gl_FUNC_FLOORL): Use it.
55477         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55478         gl_FUNC_CEILL. Cache the result.
55479         (gl_FUNC_CEILL): Use it.
55480
55481         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55482         gl_FUNC_FLOOR. Cache the result.
55483         (gl_FUNC_FLOOR): Use it.
55484         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55485         gl_FUNC_CEIL. Cache the result.
55486         (gl_FUNC_CEIL): Use it.
55487
55488         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55489         gl_FUNC_FLOORF. Cache the result.
55490         (gl_FUNC_FLOORF): Use it.
55491         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55492         gl_FUNC_CEILF. Cache the result.
55493         (gl_FUNC_CEILF): Use it.
55494
55495 2007-10-28  Bruno Haible  <bruno@clisp.org>
55496
55497         * gnulib-tool: Allow specifying the LGPL version number through
55498         --lgpl=2 or --lgpl=3.
55499         (func_usage): Document --lgpl with argument.
55500         Handle --lgpl=... arguments.
55501         (func_import): Recognize also gl_LGPL calls with an argument. When
55502         --lgpl=2 is used and the module's license is just LGPL, report an
55503         error. Set sed_transform_lib_file according to the lgpl variable. In
55504         the generated files, use --lgpl or gl_LGPL invocations with argument,
55505         if necessary.
55506         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55507         an LGPv2+ license.
55508         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55509         gl_LGPL macro.
55510
55511 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55512             Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55515         (u16_uctomb_aux): Likewise.
55516         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55517         !HAVE_INLINE.
55518         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55519
55520 2007-10-28  Bruno Haible  <bruno@clisp.org>
55521
55522         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55523         Invoke AM_GETTEXT_OPTION if it exists.
55524         * modules/vasprintf: Likewise.
55525         * modules/verror: Likewise.
55526         * modules/xprintf: Likewise.
55527         * modules/xvasprintf: Likewise.
55528
55529 2007-10-27  Ben Pfaff  <blp@gnu.org>
55530
55531         * lib/math.in.h: Define isfinite macro and prototypes for
55532         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55533         implementations.
55534         * m4/math_h.m4: New substitutions for isfinite module.
55535         * lib/isfinite.c: New file.
55536         * m4/isfinite.m4: New file.
55537         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55538         * modules/isfinite: New file.
55539         * modules/isfinite-tests: New file.
55540         * tests/tests-isfinite.c: New file.
55541         * doc/functions/isfinite.texi: Mention isfinite module.
55542         * MODULES.html.sh: Mention new module.
55543
55544 2007-10-27  Ben Pfaff  <blp@gnu.org>
55545
55546         Ralf Wildenhues reported that Tru64 4.0D declares the round
55547         functions but does not have definitions.
55548         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55549         cannot be found in any library, set the output variable to
55550         "missing" instead of "".
55551         * m4/round.m4: Also use our substitute if we cannot find round in
55552         any library, even if it is declared.
55553         * m4/roundf.m4: Likewise for roundf.
55554         * m4/roundl.m4: Likewise for roundl.
55555         * lib/math.in.h: Undefine roundf, round, roundl before defining
55556         their replacements, to allow for hypothetical systems where these
55557         may be defined as macros but not available in libraries.
55558
55559 2007-10-27  Bruno Haible  <bruno@clisp.org>
55560
55561         * doc/gnulib.texi: Invoke @firstparagraphindent.
55562         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55563         changes in gnulib.
55564         (Source changes): New section.
55565
55566 2007-10-26  Bruno Haible  <bruno@clisp.org>
55567
55568         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55569         borrowed from autoconf.
55570
55571 2007-10-26  Bruno Haible  <bruno@clisp.org>
55572
55573         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55574         strerror returned the empty string. Needed on HP-UX 11.00.
55575
55576 2007-10-24  Micah Cowan  <micah@cowan.name>
55577
55578         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55579         * build-aux/bootstrap: Remove support for now-unnecessary option,
55580         --cvs-user, and envvars CVS_USER, CVS_RSH.
55581
55582 2007-10-24  Jim Meyering  <meyering@redhat.com>
55583
55584         Avoid diagnostics from sha1sum when there is no cached checksum.
55585         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55586         if the po.s1 file hasn't been created yet.
55587
55588         * build-aux/bootstrap: Sync from coreutils:
55589         2007-10-24  Jim Meyering  <meyering@redhat.com>
55590         Get gnulib from the git repository, not from an obsolete cvs one.
55591         * build-aux/bootstrap: Suggestion from Micah Cowan.
55592         2007-10-04  Jim Meyering  <jim@meyering.net>
55593         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55594         (update_po_files): Work also when there are no .po files in po/.
55595
55596 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55597
55598         * README: Append ".git" to git and cg examples.
55599         Problem reported by Benoit Sigoure.
55600
55601 2007-10-23  Micah Cowan  <micah@cowan.name>
55602
55603         * users.txt: Add wget.
55604
55605 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55606
55607         Fix linking of some unistdio tests on FreeBSD.
55608         * modules/unistdio/u16-vsnprintf-tests
55609         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55610         * modules/unistdio/u16-vsprintf-tests
55611         (test_u16_vsnprintf1_LDADD): Likewise.
55612         * modules/unistdio/u32-vsnprintf-tests
55613         (test_u32_vsnprintf1_LDADD): Likewise.
55614         * modules/unistdio/u32-vsprintf-tests
55615         (test_u32_vsprintf1_LDADD): Likewise.
55616         * modules/unistdio/u8-vsnprintf-tests
55617         (test_u8_vsnprintf1_LDADD): Likewise.
55618         * modules/unistdio/u8-vsprintf-tests
55619         (test_u8_vsprintf1_LDADD): Likewise.
55620         * modules/unistdio/ulc-vsnprintf-tests
55621         (test_ulc_vsnprintf1_LDADD): Likewise.
55622         * modules/unistdio/ulc-vsprintf-tests
55623         (test_ulc_vsprintf1_LDADD): Likewise.
55624
55625         Fix linking of some uniconv tests on FreeBSD.
55626         * modules/uniconv/u16-conv-from-enc-tests
55627         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55628         * modules/uniconv/u16-conv-to-enc-tests
55629         (test_u16_conv_to_enc_LDADD): Likewise.
55630         * modules/uniconv/u16-strconv-from-enc-tests
55631         (test_u16_strconv_from_enc_LDADD): Likewise.
55632         * modules/uniconv/u16-strconv-to-enc-tests
55633         (test_u16_strconv_to_enc_LDADD): Likewise.
55634         * modules/uniconv/u32-conv-from-enc-tests
55635         (test_u32_conv_from_enc_LDADD): Likewise.
55636         * modules/uniconv/u32-conv-to-enc-tests
55637         (test_u32_conv_to_enc_LDADD): Likewise.
55638         * modules/uniconv/u32-strconv-from-enc-tests
55639         (test_u32_strconv_from_enc_LDADD): Likewise.
55640         * modules/uniconv/u32-strconv-to-enc-tests
55641         (test_u32_strconv_to_enc_LDADD): Likewise.
55642         * modules/uniconv/u8-conv-from-enc-tests
55643         (test_u8_conv_from_enc_LDADD): Likewise.
55644         * modules/uniconv/u8-conv-to-enc-tests
55645         (test_u8_conv_to_enc_LDADD): Likewise.
55646         * modules/uniconv/u8-strconv-from-enc-tests
55647         (test_u8_strconv_from_enc_LDADD): Likewise.
55648         * modules/uniconv/u8-strconv-to-enc-tests
55649         (test_u8_strconv_to_enc_LDADD): Likewise.
55650
55651 2007-10-22  Bruno Haible  <bruno@clisp.org>
55652
55653         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55654         size.
55655
55656 2007-10-22  Eric Blake  <ebb9@byu.net>
55657
55658         Tweak x*printf documentation.
55659         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55660         variable name and comments.
55661         Suggested by Bruno Haible.
55662
55663 2007-10-22  Bruno Haible  <bruno@clisp.org>
55664
55665         * lib/acl.c (copy_acl): Fix file name in comment.
55666
55667 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55668
55669         Fix Tru64 problem with stdbool.h.
55670         * lib/stdbool.in.h (false, true):
55671         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55672         Don't declare as an enum in this situation; it runs afoul of Tru64.
55673         Problem reported by Steven M. Schweda in
55674         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55675
55676 2007-10-22  Eric Blake  <ebb9@byu.net>
55677
55678         Also wrap vf?printf.
55679         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55680         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55681         (xvprintf, xvfprintf): New functions.
55682
55683 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55684
55685         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55686         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55687
55688         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55689         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55690
55691 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55692
55693         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55694         by Bruno Haible.
55695
55696 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55697
55698         * lib/getloadavg.c
55699         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55700         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55701
55702         * tests/test-i-ring.c: Work for C89.
55703
55704 2007-10-22  Bruno Haible  <bruno@clisp.org>
55705
55706         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55707         -1u, in preprocessor expression, so that we don't test for the bug
55708         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55709         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55710
55711 2007-10-22  Eric Blake  <ebb9@byu.net>
55712
55713         * tests/test-yesno.sh: Silence stderr during test.
55714
55715 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55716
55717         * modules/crypto/gc-camellia: New file.
55718
55719         * m4/gc-camellia.m4: New file.
55720
55721         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55722
55723         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55724
55725 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55726
55727         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55728         --help to stdout.  Reported by sms@antinode.org (Steven
55729         M. Schweda).
55730
55731 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55732
55733         * users.txt: Fix link to libksba.
55734
55735 2007-10-21  Ben Pfaff  <blp@gnu.org>
55736
55737         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55738         round.c roundf implementation that depends on floorf and ceilf to
55739         be tested unconditionally.
55740
55741 2007-10-21  Ben Pfaff  <blp@gnu.org>
55742
55743         * m4/check-libm-func.m4: Removed.
55744         * m4/check-math-lib.m4: New file.
55745         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55746         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55747         definition and lack of AC_LIBOBJ([roundf]).
55748         * m4/roundl.m4: Ditto, and similarly for roundl.
55749         * modules/round: Reference new m4 file.
55750         * modules/roundf: Ditto.
55751         * modules/roundl: Ditto.
55752         * tests/test-round2.c (main): Use ROUND instead of round.
55753         Bug report from Bruno Haible.
55754
55755 2007-10-21  Bruno Haible  <bruno@clisp.org>
55756
55757         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55758         context.
55759
55760 2007-10-21  Bruno Haible  <bruno@clisp.org>
55761
55762         * tests/test-wcwidth.c (main): Allow negative result for some control
55763         characters.
55764
55765         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55766         Needed on OSF/1 5.1.
55767
55768 2007-10-21  Bruno Haible  <bruno@clisp.org>
55769
55770         * tests/test-floorf1.c: Include isnanf.h.
55771         (main): Use isnanf() instead of isnan().
55772         * tests/test-ceilf1.c: Include isnanf.h.
55773         (main): Use isnanf() instead of isnan().
55774         * tests/test-truncf1.c: Include isnanf.h.
55775         (main): Use isnanf() instead of isnan().
55776         * tests/test-roundf1.c: Include isnanf.h.
55777         (main): Use isnanf() instead of isnan().
55778
55779 2007-10-21  Eric Blake  <ebb9@byu.net>
55780
55781         * users.txt: Update URL for m4.
55782
55783 2007-10-21  Bruno Haible  <bruno@clisp.org>
55784
55785         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55786
55787 2007-10-21  Bruno Haible  <bruno@clisp.org>
55788
55789         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55790         Git's management files if the CVS files are not present.
55791
55792 2007-10-20  Bruno Haible  <bruno@clisp.org>
55793
55794         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55795         gcc-3.4.x.
55796
55797 2007-10-20  Ben Pfaff  <blp@gnu.org>
55798
55799         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55800         implementations.
55801         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55802         * lib/round.c: New file.
55803         * lib/roundf.c: New file.
55804         * lib/roundl.c: New file.
55805         * m4/round.m4: New file.
55806         * m4/roundf.m4: New file.
55807         * m4/roundl.m4: New file.
55808         * m4/check-libm-func-m4: New file.
55809         * modules/math: Replace round, roundf, roundl related @VARS@ in
55810         math.in.h.
55811         * modules/round: New file.
55812         * modules/round-tests: New file.
55813         * modules/roundf: New file.
55814         * modules/roundf-tests: New file.
55815         * modules/roundl: New file.
55816         * modules/roundl-tests: New file.
55817         * tests/test-round1.c: New file.
55818         * tests/test-round2.c: New file.
55819         * tests/test-roundf1.c: New file.
55820         * tests/test-roundf2.c: New file.
55821         * tests/test-roundl.c: New file.
55822         * doc/functions/round.texi: Mention round module.
55823         * doc/functions/roundf.texi: Mention roundf module.
55824         * doc/functions/roundl.texi: Mention roundl module.
55825         * MODULES.html.sh: Mention new modules.
55826         Thanks to Bruno Haible for suggestions.
55827
55828 2007-10-20  Jim Meyering  <meyering@redhat.com>
55829
55830         * lib/xprintf.c: Include <config.h> unconditionally.
55831
55832         Change xprintf's license to GPL.
55833         * modules/xprintf (License): s/LGPL/GPL/, since this module
55834         depends on modules (exit and exitfail) which are GPL.
55835         Suggestion from Bruno Haible.
55836
55837         xprintf fixes.
55838         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55839         Use a clearer diagnostic.
55840         Patch from Bruno Haible.
55841
55842 2007-10-20  Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55845         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55846         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55847
55848 2007-10-20  Bruno Haible  <bruno@clisp.org>
55849
55850         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55851         precision in the comparison result > x - 1 or similar.
55852         * tests/test-ceilf2.c (correct_result_p): Likewise.
55853         * tests/test-truncf2.c (correct_result_p): Likewise.
55854         * tests/test-trunc2.c (correct_result_p): Likewise.
55855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55856
55857 2007-10-20  Bruno Haible  <bruno@clisp.org>
55858
55859         * modules/ceil: New file.
55860         * m4/ceil.m4: New file.
55861         * doc/functions/ceil.texi: Mention the 'ceil' module.
55862
55863 2007-10-20  Bruno Haible  <bruno@clisp.org>
55864
55865         * modules/floor: New file.
55866         * m4/floor.m4: New file.
55867         * doc/functions/floor.texi: Mention the 'floor' module.
55868
55869 2007-10-20  Bruno Haible  <bruno@clisp.org>
55870
55871         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55872         of %a.
55873         * modules/floorf-tests (Depends-on): Likewise.
55874         * modules/truncf-tests (Depends-on): Likewise.
55875         * modules/trunc-tests (Depends-on): Likewise.
55876         Reported by Ben Pfaff.
55877
55878 2007-10-19  Jim Meyering  <meyering@redhat.com>
55879
55880         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55881         Don't bother testing specific errno values.  Just test ferror.
55882
55883         New module: xprintf
55884         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55885
55886 2007-10-19  Bruno Haible  <bruno@clisp.org>
55887
55888         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55889         syntax.
55890         * modules/javaexec (Makefile.am): Likewise.
55891         * modules/relocatable-prog (Makefile.am): Likewise.
55892         Suggested by Jim Meyering.
55893
55894 2007-10-18  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55897         Reported by Jim Meyering.
55898
55899 2007-10-18  Eric Blake  <ebb9@byu.net>
55900
55901         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55902
55903 2007-10-18  Bruno Haible  <bruno@clisp.org>
55904
55905         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55906         the format string into writable memory. Needed in Fortify conditions.
55907
55908 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55909             Bruno Haible  <bruno@clisp.org>
55910
55911         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55912         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55913         * modules/trim (Depends-on): Add mbchar.
55914         (configure.ac): Add gl_FUNC_MBRTOWC.
55915         (Makefile.am): Augment lib_SOURCES.
55916
55917 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55918
55919         Modify glob.c to use fstatat and dirfd, to simplify it.
55920         Suggested by Eric Blake.
55921         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55922         Don't include <stdbool.h>; not used.
55923         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55924         (link_exists_p): Simplify implementation, since we can now assume
55925         dirfd and fstatat.
55926         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55927
55928 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55929
55930         * gnulib-tool (func_get_dependencies): Fix sed script to
55931         match only tests.
55932
55933 2007-10-17  Bruno Haible  <bruno@clisp.org>
55934
55935         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55936         allow locale names without encoding suffix.
55937         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55938         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55939
55940 2007-10-16  Bruno Haible  <bruno@clisp.org>
55941
55942         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55943         * lib/getgroups.c (getgroups): Likewise.
55944         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55945
55946 2007-10-16  Bruno Haible  <bruno@clisp.org>
55947
55948         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55949         * modules/malloc-posix (License): Likewise.
55950         * modules/realloc-posix (License): Likewise.
55951         * modules/calloc-posix (License): Likewise.
55952         * modules/intprops (License): Change from GPL to LGPL, with
55953         Paul Eggert's approval.
55954
55955 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55956
55957         Merge glibc changes into lib/glob.c.
55958
55959         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55960         2007-10-15 04:59:03 UTC.  Here are the changes:
55961
55962         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55963
55964         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55965
55966         * lib/glob.c: Add some branch prediction throughout.
55967
55968         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55969
55970         [BZ #5103]
55971         * lib/glob.c (glob): Recognize patterns starting \/.
55972
55973         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55974
55975         [BZ #3996]
55976         * lib/glob.c (attribute_hidden): Define if not defined.
55977         (glob): Unescape dirname, filename or username when needed and not
55978         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55979         is NULL.  Handle unescaped [ in pattern without closing ].
55980         Don't pass GLOB_CHECK down to recursive glob for directories.
55981         (__glob_pattern_type): New function.
55982         (__glob_pattern_p): Implement using __glob_pattern_type.
55983         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55984         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55985         Remove unreachable code.
55986
55987         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55988
55989         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55990         explain why there are no leaks.
55991
55992         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55993
55994         [BZ #3253]
55995         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55996         time, rather allocate increasingly bigger arrays of pointers, if
55997         possible with alloca, if too large with malloc.
55998
55999 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56000
56001         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56002         Problem reported by H.Merijn Brand in
56003         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56004         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56005         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56006
56007 2007-10-15  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56010         with explicit rpl_ prefix.
56011         * lib/fopen.c (fopen): Likewise.
56012         * lib/freopen.c (freopen): Likewise.
56013         * lib/iconv.c (iconv): Likewise.
56014         * lib/iconv_close.c (iconv_close): Likewise.
56015
56016 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56017
56018         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56019
56020 2007-10-15  Bruno Haible  <bruno@clisp.org>
56021
56022         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56023         <stddef.h> instead of <stdlib.h> since we only need NULL.
56024         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56025
56026 2007-10-15  Bruno Haible  <bruno@clisp.org>
56027
56028         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56029         Replace paragraph talking about LIBOBJS.
56030         Reported by Colin Watson <cjwatson@debian.org>.
56031
56032 2007-10-15  Bruno Haible  <bruno@clisp.org>
56033
56034         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56035         <stdlib.h> before using NULL.
56036
56037 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56038
56039         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56040         Reported by Albert Chin <china@thewrittenword.com>.
56041
56042 2007-10-14  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/iconv_open-utf-tests: New file.
56045         * tests/test-iconv-utf.c: New file.
56046
56047         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56048         * modules/iconv_open-utf: New file.
56049         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56050         (iconv, iconv_close): New declarations.
56051         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56052         be defined.
56053         (iconv_open): Add special handling of conversion between UTF-8 and
56054         UTF-{16,32}{BE,LE}.
56055         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56056         * lib/iconv_close.c: New file.
56057         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56058         gl_FUNC_ICONV_OPEN.
56059         (gl_FUNC_ICONV_OPEN): Use it.
56060         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56061         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56062         and REPLACE_ICONV_UTF.
56063         * modules/iconv_open (Depends-on): Add c-strcase.
56064         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56065         ICONV_CONST.
56066         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56067
56068 2007-10-13  Albert Chin  <china@thewrittenword.com>
56069             Bruno Haible  <bruno@clisp.org>
56070
56071         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56072         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56073
56074 2007-10-13  Bruno Haible  <bruno@clisp.org>
56075
56076         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56077         defined, use the ISO C99 inline semantics.
56078         * lib/argp.h (ARGP_EI): Likewise.
56079
56080 2007-10-13  Bruno Haible  <bruno@clisp.org>
56081
56082         Handle 'inline' change in gcc 4.3.0.
56083         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56084         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56085         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56086         argp_fmtstream_point): Disable 'extern' declaration if the function
56087         definition is going to be provided inline.
56088         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56089         semantics, not the ISO C99 inline semantics.
56090         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56091         'extern' declaration if the function definition is going to be provided
56092         inline.
56093         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56094         the GNU C inline semantics, not the ISO C99 inline semantics. With
56095         GCC 4.2, avoid a warning.
56096
56097 2007-10-13  Bruno Haible  <bruno@clisp.org>
56098
56099         * lib/freading.h (freading): Enable the use of __freading for
56100         glibc >= 2.7.
56101         * lib/freading.c (freading): Likewise.
56102
56103 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56104
56105         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56106         "warning: C99 inline functions are not supported; using GNU89".
56107
56108 2007-10-12  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56111         of 2.
56112         * tests/test-ceilf2.c: New file.
56113         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56114
56115         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56116         * modules/ceilf-tests: Update.
56117
56118 2007-10-12  Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56121         of 2.
56122         * tests/test-floorf2.c: New file.
56123         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56124
56125         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56126         * modules/floorf-tests: Update.
56127
56128 2007-10-12  Bruno Haible  <bruno@clisp.org>
56129
56130         * tests/test-trunc2.c: New file.
56131         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56132
56133         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56134         * modules/trunc-tests: Update.
56135
56136 2007-10-12  Bruno Haible  <bruno@clisp.org>
56137
56138         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56139         of 2.
56140         * tests/test-truncf2.c: New file.
56141         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56142
56143         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56144         * modules/truncf-tests: Update.
56145
56146 2007-10-11  Eric Blake  <ebb9@byu.net>
56147
56148         Don't claim strerror is broken on Interix.
56149         * doc/functions/strerror.texi (strerror): Known broken systems are
56150         now Solaris 8, and not Interix.
56151         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56152         Interix on cross-compile.
56153         Reported by Martin Koeppe in
56154         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56155
56156 2007-10-11  Bruno Haible  <bruno@clisp.org>
56157
56158         * modules/i-ring-tests: New file.
56159         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56160         instead of assert.
56161
56162 2007-10-11  Bruno Haible  <bruno@clisp.org>
56163
56164         * modules/filenamecat-tests: New file.
56165         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56166         * lib/filenamecat.c: Remove test code.
56167
56168 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56169
56170         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56171
56172         * lib/strerror.c: Include <string.h> always, to test interface,
56173         and to remove the need for the dummy.
56174         Include intprops.h to compute width instead of doing it ourselves
56175         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56176         (strerror): Define it to return NULL if there's no system strerror.
56177         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56178         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56179         ancient pre-strerror Unix systems well any more.  Saying "unknown
56180         system error" is enough.
56181         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56182         simpler strerror.c implementation.
56183         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56184         Simplify the tests to reflect the simpler strerror implementation.
56185         * modules/strerror (Depends-on): Add intprops.
56186
56187 2007-10-09  Eric Blake  <ebb9@byu.net>
56188
56189         Silence test-fpending.
56190         * modules/fpending-tests (Files): Add wrapper script.
56191         * tests/test-fpending.sh: New file.
56192
56193 2007-10-09  Bruno Haible  <bruno@clisp.org>
56194
56195         * MODULES.html.sh (func_module): Don't create a hyperlink for
56196         function names like 'printf_frexp'.
56197         (Misc): Add crc, memxor.
56198         (Characteristics of floating types): New section.
56199         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56200         isnanf-nolibm, signbit, trunc, truncf, truncl.
56201         (Enhancements for ISO C 99 functions): New subsection Input/output.
56202         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56203         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56204         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56205         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56206         (Enhancements for POSIX:2001 functions): Add chdir-long.
56207         (File system functions): Add areadlink, chdir-safer, read-file.
56208         Remove cycle-check.
56209         (File system as inode set): New section.
56210         (Date and time): Add gethrxtime.
56211         (Multithreading): Add openmp.
56212         (Internationalization functions): Add localename.
56213         (Unicode string functions): Add unistr/u*-mbsnlen.
56214         (Support for maintaining and releasing projects): Add git-version-gen.
56215         (Lone files): Remove directories.
56216
56217 2007-10-08  Ben Pfaff  <blp@gnu.org>
56218
56219         * lib/xmalloca.h: Fix typo in comment.
56220
56221 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56222
56223         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56224         when avoiding problems with integer overflow.  Use a portable test
56225         instead.
56226
56227 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56228
56229         * modules/dummy (License): Change to LGPLv2+.
56230         * modules/float (License): Likewise
56231         * modules/realloc (License): Likewise
56232         * modules/stdlib (License): Likewise
56233
56234 2007-10-07  Bruno Haible  <bruno@clisp.org>
56235
56236         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56237         * floor.c (TWO_MANT_DIG): Likewise.
56238         * ceil.c (TWO_MANT_DIG): Likewise.
56239         Reported by Ben Pfaff.
56240
56241 2007-10-07  Bruno Haible  <bruno@clisp.org>
56242
56243         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56244         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56245         * lib/frexp.c (FUNC): Likewise.
56246         * lib/printf-frexp.h (printf_frexp): Likewise.
56247         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56248         * lib/printf-frexp.c (FUNC): Likewise.
56249         Suggested by Jim Meyering.
56250
56251 2007-10-07  Jim Meyering  <meyering@redhat.com>
56252
56253         Make xnanosleep's integer overflow test more robust.
56254         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56255         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56256
56257 2007-10-07  Bruno Haible  <bruno@clisp.org>
56258
56259         * NEWS: Mention the license change.
56260
56261         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56262         abbreviations in the modules files.
56263
56264         Change copyright notice from GPLv2+ to GPLv3+.
56265         * README: Change copyright notice.
56266         * MODULES.html.sh: Likewise.
56267         * build-aux/bootstrap.conf: Likewise.
56268         * build-aux/config.libpath: Likewise.
56269         * build-aux/csharpcomp.sh.in: Likewise.
56270         * build-aux/csharpexec.sh.in: Likewise.
56271         * build-aux/install-reloc: Likewise.
56272         * build-aux/javacomp.sh.in: Likewise.
56273         * build-aux/javaexec.sh.in: Likewise.
56274         * build-aux/ldd.sh.in: Likewise.
56275         * build-aux/reloc-ldflags: Likewise.
56276         * build-aux/relocatable.sh.in: Likewise.
56277         * build-aux/x-to-1.in: Likewise.
56278         * check-module: Likewise.
56279         * config/srclistvars.sh: Likewise.
56280         * gnulib-tool: Likewise.
56281         * lib/acl-internal.h: Likewise.
56282         * lib/acl.c: Likewise.
56283         * lib/acl.h: Likewise.
56284         * lib/acl_entries.c: Likewise.
56285         * lib/areadlink-with-size.c: Likewise.
56286         * lib/areadlink.c: Likewise.
56287         * lib/areadlink.h: Likewise.
56288         * lib/argmatch.c: Likewise.
56289         * lib/argmatch.h: Likewise.
56290         * lib/argp-ba.c: Likewise.
56291         * lib/argp-eexst.c: Likewise.
56292         * lib/argp-fmtstream.c: Likewise.
56293         * lib/argp-fmtstream.h: Likewise.
56294         * lib/argp-fs-xinl.c: Likewise.
56295         * lib/argp-help.c: Likewise.
56296         * lib/argp-namefrob.h: Likewise.
56297         * lib/argp-parse.c: Likewise.
56298         * lib/argp-pin.c: Likewise.
56299         * lib/argp-pv.c: Likewise.
56300         * lib/argp-pvh.c: Likewise.
56301         * lib/argp-xinl.c: Likewise.
56302         * lib/argp.h: Likewise.
56303         * lib/at-func.c: Likewise.
56304         * lib/atanl.c: Likewise.
56305         * lib/backupfile.c: Likewise.
56306         * lib/backupfile.h: Likewise.
56307         * lib/basename.c: Likewise.
56308         * lib/binary-io.h: Likewise.
56309         * lib/byteswap.in.h: Likewise.
56310         * lib/c-stack.c: Likewise.
56311         * lib/c-stack.h: Likewise.
56312         * lib/c-strcasestr.c: Likewise.
56313         * lib/c-strcasestr.h: Likewise.
56314         * lib/c-strstr.c: Likewise.
56315         * lib/c-strstr.h: Likewise.
56316         * lib/c-strtod.c: Likewise.
56317         * lib/calloc.c: Likewise.
56318         * lib/canon-host.c: Likewise.
56319         * lib/canon-host.h: Likewise.
56320         * lib/canonicalize-lgpl.c: Likewise.
56321         * lib/canonicalize.c: Likewise.
56322         * lib/canonicalize.h: Likewise.
56323         * lib/ceil.c: Likewise.
56324         * lib/ceilf.c: Likewise.
56325         * lib/ceill.c: Likewise.
56326         * lib/chdir-long.c: Likewise.
56327         * lib/chdir-long.h: Likewise.
56328         * lib/chdir-safer.c: Likewise.
56329         * lib/chdir-safer.h: Likewise.
56330         * lib/chown.c: Likewise.
56331         * lib/classpath.c: Likewise.
56332         * lib/classpath.h: Likewise.
56333         * lib/clean-temp.c: Likewise.
56334         * lib/clean-temp.h: Likewise.
56335         * lib/cloexec.c: Likewise.
56336         * lib/close-stream.c: Likewise.
56337         * lib/closein.c: Likewise.
56338         * lib/closein.h: Likewise.
56339         * lib/closeout.c: Likewise.
56340         * lib/closeout.h: Likewise.
56341         * lib/concat-filename.c: Likewise.
56342         * lib/copy-file.c: Likewise.
56343         * lib/copy-file.h: Likewise.
56344         * lib/count-one-bits.h: Likewise.
56345         * lib/crc.c: Likewise.
56346         * lib/crc.h: Likewise.
56347         * lib/creat-safer.c: Likewise.
56348         * lib/csharpcomp.c: Likewise.
56349         * lib/csharpcomp.h: Likewise.
56350         * lib/csharpexec.c: Likewise.
56351         * lib/csharpexec.h: Likewise.
56352         * lib/cycle-check.c: Likewise.
56353         * lib/cycle-check.h: Likewise.
56354         * lib/diacrit.c: Likewise.
56355         * lib/diacrit.h: Likewise.
56356         * lib/diffseq.h: Likewise.
56357         * lib/dirchownmod.c: Likewise.
56358         * lib/dirent.in.h: Likewise.
56359         * lib/dirfd.c: Likewise.
56360         * lib/dirfd.h: Likewise.
56361         * lib/dirname.c: Likewise.
56362         * lib/dirname.h: Likewise.
56363         * lib/dummy.c: Likewise.
56364         * lib/dup-safer.c: Likewise.
56365         * lib/dup2.c: Likewise.
56366         * lib/eealloc.h: Likewise.
56367         * lib/error.c: Likewise.
56368         * lib/error.h: Likewise.
56369         * lib/euidaccess.c: Likewise.
56370         * lib/exclude.c: Likewise.
56371         * lib/exclude.h: Likewise.
56372         * lib/execute.c: Likewise.
56373         * lib/execute.h: Likewise.
56374         * lib/exitfail.c: Likewise.
56375         * lib/exitfail.h: Likewise.
56376         * lib/expl.c: Likewise.
56377         * lib/fatal-signal.c: Likewise.
56378         * lib/fatal-signal.h: Likewise.
56379         * lib/fbufmode.c: Likewise.
56380         * lib/fbufmode.h: Likewise.
56381         * lib/fchdir.c: Likewise.
56382         * lib/fchmodat.c: Likewise.
56383         * lib/fchownat.c: Likewise.
56384         * lib/fcntl--.h: Likewise.
56385         * lib/fcntl-safer.h: Likewise.
56386         * lib/fcntl.in.h: Likewise.
56387         * lib/fd-safer.c: Likewise.
56388         * lib/fflush.c: Likewise.
56389         * lib/file-has-acl.c: Likewise.
56390         * lib/file-set.c: Likewise.
56391         * lib/file-type.c: Likewise.
56392         * lib/file-type.h: Likewise.
56393         * lib/fileblocks.c: Likewise.
56394         * lib/filemode.c: Likewise.
56395         * lib/filemode.h: Likewise.
56396         * lib/filename.h: Likewise.
56397         * lib/filenamecat.c: Likewise.
56398         * lib/filenamecat.h: Likewise.
56399         * lib/findprog.c: Likewise.
56400         * lib/findprog.h: Likewise.
56401         * lib/float.in.h: Likewise.
56402         * lib/floor.c: Likewise.
56403         * lib/floorf.c: Likewise.
56404         * lib/floorl.c: Likewise.
56405         * lib/fopen-safer.c: Likewise.
56406         * lib/fopen.c: Likewise.
56407         * lib/fpending.c: Likewise.
56408         * lib/fpending.h: Likewise.
56409         * lib/fprintf.c: Likewise.
56410         * lib/fprintftime.h: Likewise.
56411         * lib/fpucw.h: Likewise.
56412         * lib/fpurge.c: Likewise.
56413         * lib/fpurge.h: Likewise.
56414         * lib/freadable.c: Likewise.
56415         * lib/freadable.h: Likewise.
56416         * lib/freadahead.c: Likewise.
56417         * lib/freadahead.h: Likewise.
56418         * lib/freading.c: Likewise.
56419         * lib/freading.h: Likewise.
56420         * lib/free.c: Likewise.
56421         * lib/freopen.c: Likewise.
56422         * lib/frexp.c: Likewise.
56423         * lib/frexpl.c: Likewise.
56424         * lib/fseek.c: Likewise.
56425         * lib/fseterr.c: Likewise.
56426         * lib/fseterr.h: Likewise.
56427         * lib/fstatat.c: Likewise.
56428         * lib/fstrcmp.c: Likewise.
56429         * lib/fstrcmp.h: Likewise.
56430         * lib/fsusage.c: Likewise.
56431         * lib/fsusage.h: Likewise.
56432         * lib/ftell.c: Likewise.
56433         * lib/ftello.c: Likewise.
56434         * lib/fts-cycle.c: Likewise.
56435         * lib/fts.c: Likewise.
56436         * lib/fts_.h: Likewise.
56437         * lib/full-read.c: Likewise.
56438         * lib/full-read.h: Likewise.
56439         * lib/full-write.c: Likewise.
56440         * lib/full-write.h: Likewise.
56441         * lib/fwritable.c: Likewise.
56442         * lib/fwritable.h: Likewise.
56443         * lib/fwriteerror.c: Likewise.
56444         * lib/fwriteerror.h: Likewise.
56445         * lib/fwriting.c: Likewise.
56446         * lib/fwriting.h: Likewise.
56447         * lib/gcd.c: Likewise.
56448         * lib/gcd.h: Likewise.
56449         * lib/getcwd.c: Likewise.
56450         * lib/getdate.h: Likewise.
56451         * lib/getdate.y: Likewise.
56452         * lib/getdomainname.c: Likewise.
56453         * lib/getdomainname.h: Likewise.
56454         * lib/getgroups.c: Likewise.
56455         * lib/gethostname.c: Likewise.
56456         * lib/gethrxtime.c: Likewise.
56457         * lib/gethrxtime.h: Likewise.
56458         * lib/getloadavg.c: Likewise.
56459         * lib/getndelim2.c: Likewise.
56460         * lib/getndelim2.h: Likewise.
56461         * lib/getnline.c: Likewise.
56462         * lib/getnline.h: Likewise.
56463         * lib/getopt.c: Likewise.
56464         * lib/getopt.in.h: Likewise.
56465         * lib/getopt1.c: Likewise.
56466         * lib/getopt_int.h: Likewise.
56467         * lib/getpagesize.h: Likewise.
56468         * lib/getsubopt.c: Likewise.
56469         * lib/gettime.c: Likewise.
56470         * lib/getugroups.c: Likewise.
56471         * lib/getugroups.h: Likewise.
56472         * lib/getusershell.c: Likewise.
56473         * lib/gl_anyavltree_list1.h: Likewise.
56474         * lib/gl_anyavltree_list2.h: Likewise.
56475         * lib/gl_anyhash_list1.h: Likewise.
56476         * lib/gl_anyhash_list2.h: Likewise.
56477         * lib/gl_anylinked_list1.h: Likewise.
56478         * lib/gl_anylinked_list2.h: Likewise.
56479         * lib/gl_anyrbtree_list1.h: Likewise.
56480         * lib/gl_anyrbtree_list2.h: Likewise.
56481         * lib/gl_anytree_list1.h: Likewise.
56482         * lib/gl_anytree_list2.h: Likewise.
56483         * lib/gl_anytree_oset.h: Likewise.
56484         * lib/gl_anytreehash_list1.h: Likewise.
56485         * lib/gl_anytreehash_list2.h: Likewise.
56486         * lib/gl_array_list.c: Likewise.
56487         * lib/gl_array_list.h: Likewise.
56488         * lib/gl_array_oset.c: Likewise.
56489         * lib/gl_array_oset.h: Likewise.
56490         * lib/gl_avltree_list.c: Likewise.
56491         * lib/gl_avltree_list.h: Likewise.
56492         * lib/gl_avltree_oset.c: Likewise.
56493         * lib/gl_avltree_oset.h: Likewise.
56494         * lib/gl_avltreehash_list.c: Likewise.
56495         * lib/gl_avltreehash_list.h: Likewise.
56496         * lib/gl_carray_list.c: Likewise.
56497         * lib/gl_carray_list.h: Likewise.
56498         * lib/gl_linked_list.c: Likewise.
56499         * lib/gl_linked_list.h: Likewise.
56500         * lib/gl_linkedhash_list.c: Likewise.
56501         * lib/gl_linkedhash_list.h: Likewise.
56502         * lib/gl_list.c: Likewise.
56503         * lib/gl_list.h: Likewise.
56504         * lib/gl_oset.c: Likewise.
56505         * lib/gl_oset.h: Likewise.
56506         * lib/gl_rbtree_list.c: Likewise.
56507         * lib/gl_rbtree_list.h: Likewise.
56508         * lib/gl_rbtree_oset.c: Likewise.
56509         * lib/gl_rbtree_oset.h: Likewise.
56510         * lib/gl_rbtreehash_list.c: Likewise.
56511         * lib/gl_rbtreehash_list.h: Likewise.
56512         * lib/gl_sublist.c: Likewise.
56513         * lib/gl_sublist.h: Likewise.
56514         * lib/group-member.c: Likewise.
56515         * lib/group-member.h: Likewise.
56516         * lib/hard-locale.c: Likewise.
56517         * lib/hard-locale.h: Likewise.
56518         * lib/hash-pjw.c: Likewise.
56519         * lib/hash-pjw.h: Likewise.
56520         * lib/hash-triple.c: Likewise.
56521         * lib/hash.c: Likewise.
56522         * lib/hash.h: Likewise.
56523         * lib/human.c: Likewise.
56524         * lib/human.h: Likewise.
56525         * lib/i-ring.c: Likewise.
56526         * lib/i-ring.h: Likewise.
56527         * lib/idcache.c: Likewise.
56528         * lib/imaxabs.c: Likewise.
56529         * lib/imaxdiv.c: Likewise.
56530         * lib/inet_pton.c: Likewise.
56531         * lib/inet_pton.h: Likewise.
56532         * lib/intprops.h: Likewise.
56533         * lib/inttostr.c: Likewise.
56534         * lib/inttostr.h: Likewise.
56535         * lib/inttypes.in.h: Likewise.
56536         * lib/isapipe.c: Likewise.
56537         * lib/isdir.c: Likewise.
56538         * lib/isnan.c: Likewise.
56539         * lib/isnan.h: Likewise.
56540         * lib/isnanf.c: Likewise.
56541         * lib/isnanf.h: Likewise.
56542         * lib/isnanl-nolibm.h: Likewise.
56543         * lib/isnanl.c: Likewise.
56544         * lib/isnanl.h: Likewise.
56545         * lib/javacomp.c: Likewise.
56546         * lib/javacomp.h: Likewise.
56547         * lib/javaexec.c: Likewise.
56548         * lib/javaexec.h: Likewise.
56549         * lib/javaversion.c: Likewise.
56550         * lib/javaversion.h: Likewise.
56551         * lib/javaversion.java: Likewise.
56552         * lib/lbrkprop.h: Likewise.
56553         * lib/lchmod.h: Likewise.
56554         * lib/lchown.c: Likewise.
56555         * lib/ldexpl.c: Likewise.
56556         * lib/linebreak.c: Likewise.
56557         * lib/linebreak.h: Likewise.
56558         * lib/linebuffer.c: Likewise.
56559         * lib/linebuffer.h: Likewise.
56560         * lib/locale.in.h: Likewise.
56561         * lib/logl.c: Likewise.
56562         * lib/long-options.c: Likewise.
56563         * lib/long-options.h: Likewise.
56564         * lib/lstat.c: Likewise.
56565         * lib/lstat.h: Likewise.
56566         * lib/math.in.h: Likewise.
56567         * lib/mbchar.c: Likewise.
56568         * lib/mbchar.h: Likewise.
56569         * lib/mbfile.h: Likewise.
56570         * lib/mbiter.h: Likewise.
56571         * lib/mbscasecmp.c: Likewise.
56572         * lib/mbscasestr.c: Likewise.
56573         * lib/mbschr.c: Likewise.
56574         * lib/mbscspn.c: Likewise.
56575         * lib/mbslen.c: Likewise.
56576         * lib/mbsncasecmp.c: Likewise.
56577         * lib/mbsnlen.c: Likewise.
56578         * lib/mbspbrk.c: Likewise.
56579         * lib/mbspcasecmp.c: Likewise.
56580         * lib/mbsrchr.c: Likewise.
56581         * lib/mbssep.c: Likewise.
56582         * lib/mbsspn.c: Likewise.
56583         * lib/mbsstr.c: Likewise.
56584         * lib/mbstok_r.c: Likewise.
56585         * lib/mbswidth.c: Likewise.
56586         * lib/mbswidth.h: Likewise.
56587         * lib/mbuiter.h: Likewise.
56588         * lib/memcasecmp.c: Likewise.
56589         * lib/memcasecmp.h: Likewise.
56590         * lib/memchr.c: Likewise.
56591         * lib/memcmp.c: Likewise.
56592         * lib/memcoll.c: Likewise.
56593         * lib/memcoll.h: Likewise.
56594         * lib/memcpy.c: Likewise.
56595         * lib/memrchr.c: Likewise.
56596         * lib/mkancesdirs.c: Likewise.
56597         * lib/mkdir-p.c: Likewise.
56598         * lib/mkdir-p.h: Likewise.
56599         * lib/mkdir.c: Likewise.
56600         * lib/mkdirat.c: Likewise.
56601         * lib/mkdtemp.c: Likewise.
56602         * lib/mkstemp-safer.c: Likewise.
56603         * lib/mkstemp.c: Likewise.
56604         * lib/modechange.c: Likewise.
56605         * lib/modechange.h: Likewise.
56606         * lib/mountlist.c: Likewise.
56607         * lib/mountlist.h: Likewise.
56608         * lib/mpsort.c: Likewise.
56609         * lib/nanosleep.c: Likewise.
56610         * lib/obstack.c: Likewise.
56611         * lib/obstack.h: Likewise.
56612         * lib/open-safer.c: Likewise.
56613         * lib/open.c: Likewise.
56614         * lib/openat-die.c: Likewise.
56615         * lib/openat-priv.h: Likewise.
56616         * lib/openat-proc.c: Likewise.
56617         * lib/openat.c: Likewise.
56618         * lib/openat.h: Likewise.
56619         * lib/pagealign_alloc.c: Likewise.
56620         * lib/pagealign_alloc.h: Likewise.
56621         * lib/physmem.c: Likewise.
56622         * lib/physmem.h: Likewise.
56623         * lib/pipe-safer.c: Likewise.
56624         * lib/pipe.c: Likewise.
56625         * lib/pipe.h: Likewise.
56626         * lib/posixtm.c: Likewise.
56627         * lib/posixtm.h: Likewise.
56628         * lib/posixver.c: Likewise.
56629         * lib/printf-frexp.c: Likewise.
56630         * lib/printf-frexp.h: Likewise.
56631         * lib/printf-frexpl.c: Likewise.
56632         * lib/printf-frexpl.h: Likewise.
56633         * lib/printf.c: Likewise.
56634         * lib/progname.c: Likewise.
56635         * lib/progname.h: Likewise.
56636         * lib/progreloc.c: Likewise.
56637         * lib/putenv.c: Likewise.
56638         * lib/quote.c: Likewise.
56639         * lib/quote.h: Likewise.
56640         * lib/quotearg.c: Likewise.
56641         * lib/quotearg.h: Likewise.
56642         * lib/raise.c: Likewise.
56643         * lib/readline.c: Likewise.
56644         * lib/readline.h: Likewise.
56645         * lib/readlink.c: Likewise.
56646         * lib/readtokens.c: Likewise.
56647         * lib/readtokens.h: Likewise.
56648         * lib/readtokens0.c: Likewise.
56649         * lib/readtokens0.h: Likewise.
56650         * lib/readutmp.c: Likewise.
56651         * lib/readutmp.h: Likewise.
56652         * lib/realloc.c: Likewise.
56653         * lib/relocwrapper.c: Likewise.
56654         * lib/rename-dest-slash.c: Likewise.
56655         * lib/rename.c: Likewise.
56656         * lib/rmdir.c: Likewise.
56657         * lib/rpmatch.c: Likewise.
56658         * lib/safe-read.c: Likewise.
56659         * lib/safe-read.h: Likewise.
56660         * lib/safe-write.c: Likewise.
56661         * lib/safe-write.h: Likewise.
56662         * lib/same-inode.h: Likewise.
56663         * lib/same.c: Likewise.
56664         * lib/same.h: Likewise.
56665         * lib/save-cwd.c: Likewise.
56666         * lib/save-cwd.h: Likewise.
56667         * lib/savedir.c: Likewise.
56668         * lib/savedir.h: Likewise.
56669         * lib/savewd.c: Likewise.
56670         * lib/savewd.h: Likewise.
56671         * lib/search.in.h: Likewise.
56672         * lib/setenv.c: Likewise.
56673         * lib/setenv.h: Likewise.
56674         * lib/settime.c: Likewise.
56675         * lib/sh-quote.c: Likewise.
56676         * lib/sh-quote.h: Likewise.
56677         * lib/sig2str.c: Likewise.
56678         * lib/sig2str.h: Likewise.
56679         * lib/signal.in.h: Likewise.
56680         * lib/signbitd.c: Likewise.
56681         * lib/signbitf.c: Likewise.
56682         * lib/signbitl.c: Likewise.
56683         * lib/sigprocmask.c: Likewise.
56684         * lib/sincosl.c: Likewise.
56685         * lib/sleep.c: Likewise.
56686         * lib/sprintf.c: Likewise.
56687         * lib/sqrtl.c: Likewise.
56688         * lib/stat-time.h: Likewise.
56689         * lib/stdio--.h: Likewise.
56690         * lib/stdio-safer.h: Likewise.
56691         * lib/stdlib--.h: Likewise.
56692         * lib/stdlib-safer.h: Likewise.
56693         * lib/stdlib.in.h: Likewise.
56694         * lib/stpcpy.c: Likewise.
56695         * lib/stpncpy.c: Likewise.
56696         * lib/strchrnul.c: Likewise.
56697         * lib/strcspn.c: Likewise.
56698         * lib/strerror.c: Likewise.
56699         * lib/strftime.c: Likewise.
56700         * lib/strftime.h: Likewise.
56701         * lib/striconveh.c: Likewise.
56702         * lib/striconveh.h: Likewise.
56703         * lib/striconveha.c: Likewise.
56704         * lib/striconveha.h: Likewise.
56705         * lib/stripslash.c: Likewise.
56706         * lib/strnlen1.c: Likewise.
56707         * lib/strnlen1.h: Likewise.
56708         * lib/strtod.c: Likewise.
56709         * lib/strtoimax.c: Likewise.
56710         * lib/strtok_r.c: Likewise.
56711         * lib/strtol.c: Likewise.
56712         * lib/strtoll.c: Likewise.
56713         * lib/strtoul.c: Likewise.
56714         * lib/strtoull.c: Likewise.
56715         * lib/sysexits.in.h: Likewise.
56716         * lib/tempname.c: Likewise.
56717         * lib/tempname.h: Likewise.
56718         * lib/timespec.h: Likewise.
56719         * lib/tls.c: Likewise.
56720         * lib/tls.h: Likewise.
56721         * lib/tmpdir.c: Likewise.
56722         * lib/tmpdir.h: Likewise.
56723         * lib/tmpfile-safer.c: Likewise.
56724         * lib/tmpfile.c: Likewise.
56725         * lib/trigl.c: Likewise.
56726         * lib/trigl.h: Likewise.
56727         * lib/trim.c: Likewise.
56728         * lib/trim.h: Likewise.
56729         * lib/trunc.c: Likewise.
56730         * lib/truncf.c: Likewise.
56731         * lib/truncl.c: Likewise.
56732         * lib/tsearch.c: Likewise.
56733         * lib/unicodeio.c: Likewise.
56734         * lib/unicodeio.h: Likewise.
56735         * lib/unistd--.h: Likewise.
56736         * lib/unistd-safer.h: Likewise.
56737         * lib/unistdio/ulc-fprintf.c: Likewise.
56738         * lib/unistdio/ulc-vfprintf.c: Likewise.
56739         * lib/unlinkdir.c: Likewise.
56740         * lib/unlinkdir.h: Likewise.
56741         * lib/unlocked-io.h: Likewise.
56742         * lib/unsetenv.c: Likewise.
56743         * lib/userspec.c: Likewise.
56744         * lib/utime.c: Likewise.
56745         * lib/utimecmp.c: Likewise.
56746         * lib/utimecmp.h: Likewise.
56747         * lib/utimens.c: Likewise.
56748         * lib/verify.h: Likewise.
56749         * lib/verror.c: Likewise.
56750         * lib/verror.h: Likewise.
56751         * lib/version-etc-fsf.c: Likewise.
56752         * lib/version-etc.c: Likewise.
56753         * lib/version-etc.h: Likewise.
56754         * lib/vfprintf.c: Likewise.
56755         * lib/vprintf.c: Likewise.
56756         * lib/vsprintf.c: Likewise.
56757         * lib/w32spawn.h: Likewise.
56758         * lib/wait-process.c: Likewise.
56759         * lib/wait-process.h: Likewise.
56760         * lib/wcwidth.c: Likewise.
56761         * lib/write-any-file.c: Likewise.
56762         * lib/xalloc-die.c: Likewise.
56763         * lib/xalloc.h: Likewise.
56764         * lib/xasprintf.c: Likewise.
56765         * lib/xgetcwd.c: Likewise.
56766         * lib/xgetcwd.h: Likewise.
56767         * lib/xgetdomainname.c: Likewise.
56768         * lib/xgetdomainname.h: Likewise.
56769         * lib/xgethostname.c: Likewise.
56770         * lib/xmalloc.c: Likewise.
56771         * lib/xmalloca.c: Likewise.
56772         * lib/xmalloca.h: Likewise.
56773         * lib/xmemcoll.c: Likewise.
56774         * lib/xnanosleep.c: Likewise.
56775         * lib/xreadlink.c: Likewise.
56776         * lib/xreadlink.h: Likewise.
56777         * lib/xsetenv.c: Likewise.
56778         * lib/xsetenv.h: Likewise.
56779         * lib/xstriconv.c: Likewise.
56780         * lib/xstriconv.h: Likewise.
56781         * lib/xstrndup.c: Likewise.
56782         * lib/xstrndup.h: Likewise.
56783         * lib/xstrtod.c: Likewise.
56784         * lib/xstrtod.h: Likewise.
56785         * lib/xstrtol-error.c: Likewise.
56786         * lib/xstrtol.c: Likewise.
56787         * lib/xstrtol.h: Likewise.
56788         * lib/xtime.h: Likewise.
56789         * lib/xvasprintf.c: Likewise.
56790         * lib/xvasprintf.h: Likewise.
56791         * lib/yesno.c: Likewise.
56792         * lib/yesno.h: Likewise.
56793         * posix-modules: Likewise.
56794         * tests/test-alloca-opt.c: Likewise.
56795         * tests/test-arcfour.c: Likewise.
56796         * tests/test-arctwo.c: Likewise.
56797         * tests/test-argmatch.c: Likewise.
56798         * tests/test-argp-2.sh: Likewise.
56799         * tests/test-argp.c: Likewise.
56800         * tests/test-arpa_inet.c: Likewise.
56801         * tests/test-array_list.c: Likewise.
56802         * tests/test-array_oset.c: Likewise.
56803         * tests/test-atexit.c: Likewise.
56804         * tests/test-avltree_list.c: Likewise.
56805         * tests/test-avltree_oset.c: Likewise.
56806         * tests/test-avltreehash_list.c: Likewise.
56807         * tests/test-base64.c: Likewise.
56808         * tests/test-binary-io.c: Likewise.
56809         * tests/test-byteswap.c: Likewise.
56810         * tests/test-c-ctype.c: Likewise.
56811         * tests/test-c-strcasecmp.c: Likewise.
56812         * tests/test-c-strcasestr.c: Likewise.
56813         * tests/test-c-strncasecmp.c: Likewise.
56814         * tests/test-c-strstr.c: Likewise.
56815         * tests/test-canonicalize-lgpl.c: Likewise.
56816         * tests/test-canonicalize.c: Likewise.
56817         * tests/test-carray_list.c: Likewise.
56818         * tests/test-ceilf.c: Likewise.
56819         * tests/test-ceill.c: Likewise.
56820         * tests/test-count-one-bits.c: Likewise.
56821         * tests/test-crc.c: Likewise.
56822         * tests/test-dirname.c: Likewise.
56823         * tests/test-fbufmode.c: Likewise.
56824         * tests/test-fcntl.c: Likewise.
56825         * tests/test-fflush.c: Likewise.
56826         * tests/test-floorf.c: Likewise.
56827         * tests/test-floorl.c: Likewise.
56828         * tests/test-fopen.c: Likewise.
56829         * tests/test-fprintf-posix.c: Likewise.
56830         * tests/test-fprintf-posix.h: Likewise.
56831         * tests/test-fpurge.c: Likewise.
56832         * tests/test-freadable.c: Likewise.
56833         * tests/test-freadahead.c: Likewise.
56834         * tests/test-freading.c: Likewise.
56835         * tests/test-freopen.c: Likewise.
56836         * tests/test-frexp.c: Likewise.
56837         * tests/test-frexpl.c: Likewise.
56838         * tests/test-fseek.c: Likewise.
56839         * tests/test-fseeko.c: Likewise.
56840         * tests/test-fseterr.c: Likewise.
56841         * tests/test-fstrcmp.c: Likewise.
56842         * tests/test-ftell.c: Likewise.
56843         * tests/test-ftello.c: Likewise.
56844         * tests/test-fwritable.c: Likewise.
56845         * tests/test-fwriting.c: Likewise.
56846         * tests/test-getaddrinfo.c: Likewise.
56847         * tests/test-getpass.c: Likewise.
56848         * tests/test-gettimeofday.c: Likewise.
56849         * tests/test-hmac-md5.c: Likewise.
56850         * tests/test-hmac-sha1.c: Likewise.
56851         * tests/test-iconv.c: Likewise.
56852         * tests/test-iconvme.c: Likewise.
56853         * tests/test-inttypes.c: Likewise.
56854         * tests/test-isnan.c: Likewise.
56855         * tests/test-isnanf.c: Likewise.
56856         * tests/test-isnanl-nolibm.c: Likewise.
56857         * tests/test-isnanl.c: Likewise.
56858         * tests/test-isnanl.h: Likewise.
56859         * tests/test-ldexpl.c: Likewise.
56860         * tests/test-linked_list.c: Likewise.
56861         * tests/test-linkedhash_list.c: Likewise.
56862         * tests/test-locale.c: Likewise.
56863         * tests/test-localename.c: Likewise.
56864         * tests/test-lock.c: Likewise.
56865         * tests/test-lseek.c: Likewise.
56866         * tests/test-malloca.c: Likewise.
56867         * tests/test-math.c: Likewise.
56868         * tests/test-mbscasecmp.c: Likewise.
56869         * tests/test-mbscasestr1.c: Likewise.
56870         * tests/test-mbscasestr2.c: Likewise.
56871         * tests/test-mbscasestr3.c: Likewise.
56872         * tests/test-mbscasestr4.c: Likewise.
56873         * tests/test-mbschr.c: Likewise.
56874         * tests/test-mbscspn.c: Likewise.
56875         * tests/test-mbsncasecmp.c: Likewise.
56876         * tests/test-mbspbrk.c: Likewise.
56877         * tests/test-mbspcasecmp.c: Likewise.
56878         * tests/test-mbsrchr.c: Likewise.
56879         * tests/test-mbsspn.c: Likewise.
56880         * tests/test-mbsstr1.c: Likewise.
56881         * tests/test-mbsstr2.c: Likewise.
56882         * tests/test-mbsstr3.c: Likewise.
56883         * tests/test-md5.c: Likewise.
56884         * tests/test-memmem.c: Likewise.
56885         * tests/test-netinet_in.c: Likewise.
56886         * tests/test-open.c: Likewise.
56887         * tests/test-printf-frexp.c: Likewise.
56888         * tests/test-printf-frexpl.c: Likewise.
56889         * tests/test-printf-posix.c: Likewise.
56890         * tests/test-printf-posix.h: Likewise.
56891         * tests/test-rbtree_list.c: Likewise.
56892         * tests/test-rbtree_oset.c: Likewise.
56893         * tests/test-rbtreehash_list.c: Likewise.
56894         * tests/test-read-file.c: Likewise.
56895         * tests/test-rijndael.c: Likewise.
56896         * tests/test-search.c: Likewise.
56897         * tests/test-signbit.c: Likewise.
56898         * tests/test-sleep.c: Likewise.
56899         * tests/test-snprintf-posix.c: Likewise.
56900         * tests/test-snprintf-posix.h: Likewise.
56901         * tests/test-snprintf.c: Likewise.
56902         * tests/test-sprintf-posix.c: Likewise.
56903         * tests/test-sprintf-posix.h: Likewise.
56904         * tests/test-stat-time.c: Likewise.
56905         * tests/test-stdbool.c: Likewise.
56906         * tests/test-stdint.c: Likewise.
56907         * tests/test-stdio.c: Likewise.
56908         * tests/test-stdlib.c: Likewise.
56909         * tests/test-stpncpy.c: Likewise.
56910         * tests/test-strcasestr.c: Likewise.
56911         * tests/test-striconv.c: Likewise.
56912         * tests/test-striconveh.c: Likewise.
56913         * tests/test-striconveha.c: Likewise.
56914         * tests/test-string.c: Likewise.
56915         * tests/test-sys_select.c: Likewise.
56916         * tests/test-sys_socket.c: Likewise.
56917         * tests/test-sys_stat.c: Likewise.
56918         * tests/test-sys_time.c: Likewise.
56919         * tests/test-sysexits.c: Likewise.
56920         * tests/test-time.c: Likewise.
56921         * tests/test-tls.c: Likewise.
56922         * tests/test-trunc.c: Likewise.
56923         * tests/test-truncf.c: Likewise.
56924         * tests/test-truncl.c: Likewise.
56925         * tests/test-unistd.c: Likewise.
56926         * tests/test-vasnprintf-posix.c: Likewise.
56927         * tests/test-vasnprintf-posix2.c: Likewise.
56928         * tests/test-vasnprintf.c: Likewise.
56929         * tests/test-vasprintf-posix.c: Likewise.
56930         * tests/test-vasprintf.c: Likewise.
56931         * tests/test-verify.c: Likewise.
56932         * tests/test-vfprintf-posix.c: Likewise.
56933         * tests/test-vprintf-posix.c: Likewise.
56934         * tests/test-vsnprintf-posix.c: Likewise.
56935         * tests/test-vsnprintf.c: Likewise.
56936         * tests/test-vsprintf-posix.c: Likewise.
56937         * tests/test-wchar.c: Likewise.
56938         * tests/test-wctype.c: Likewise.
56939         * tests/test-wcwidth.c: Likewise.
56940         * tests/test-xstrtol.c: Likewise.
56941         * tests/test-xvasprintf.c: Likewise.
56942         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56943         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56944         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56945         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56946         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56947         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56948         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56949         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56950         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56951         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56952         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56953         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56954         * tests/uniname/test-uninames.c: Likewise.
56955         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56956         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56957         * tests/unistdio/test-u16-printf1.h: Likewise.
56958         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56959         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56960         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56961         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56962         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56963         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56964         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56965         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56966         * tests/unistdio/test-u32-printf1.h: Likewise.
56967         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56968         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56969         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56970         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56971         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56972         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56973         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56974         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56975         * tests/unistdio/test-u8-printf1.h: Likewise.
56976         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56977         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56978         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56979         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56980         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56981         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56982         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56983         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56984         * tests/unistdio/test-ulc-printf1.h: Likewise.
56985         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56986         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56987         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56988         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56989         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56990         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56991         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56992         * tests/uniwidth/test-u16-width.c: Likewise.
56993         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56994         * tests/uniwidth/test-u32-width.c: Likewise.
56995         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56996         * tests/uniwidth/test-u8-width.c: Likewise.
56997         * tests/uniwidth/test-uc_width.c: Likewise.
56998         * config/srclist-update: Likewise.
56999         (fixlicense): Update to GPLv3+.
57000
57001         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57002         * tests/test-tsearch.c: Change copyright notice.
57003
57004         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57005         * lib/c-strcaseeq.h: Change copyright notice.
57006         * lib/streq.h: Likewise.
57007         * lib/uniconv.h: Likewise.
57008         * lib/uniconv/u-conv-from-enc.h: Likewise.
57009         * lib/uniconv/u-conv-to-enc.h: Likewise.
57010         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57011         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57012         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57013         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57014         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57015         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57016         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57017         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57018         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57019         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57020         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57021         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57022         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57023         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57024         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57025         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57026         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57027         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57028         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57029         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57030         * lib/uniname.h: Likewise.
57031         * lib/uniname/uniname.c: Likewise.
57032         * lib/unistdio.h: Likewise.
57033         * lib/unistdio/u-asnprintf.h: Likewise.
57034         * lib/unistdio/u-asprintf.h: Likewise.
57035         * lib/unistdio/u-printf-args.c: Likewise.
57036         * lib/unistdio/u-printf-args.h: Likewise.
57037         * lib/unistdio/u-printf-parse.h: Likewise.
57038         * lib/unistdio/u-snprintf.h: Likewise.
57039         * lib/unistdio/u-sprintf.h: Likewise.
57040         * lib/unistdio/u-vasprintf.h: Likewise.
57041         * lib/unistdio/u-vsnprintf.h: Likewise.
57042         * lib/unistdio/u-vsprintf.h: Likewise.
57043         * lib/unistdio/u16-asnprintf.c: Likewise.
57044         * lib/unistdio/u16-asprintf.c: Likewise.
57045         * lib/unistdio/u16-printf-parse.c: Likewise.
57046         * lib/unistdio/u16-snprintf.c: Likewise.
57047         * lib/unistdio/u16-sprintf.c: Likewise.
57048         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57049         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57050         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57051         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57052         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57053         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57054         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57055         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57056         * lib/unistdio/u16-vasnprintf.c: Likewise.
57057         * lib/unistdio/u16-vasprintf.c: Likewise.
57058         * lib/unistdio/u16-vsnprintf.c: Likewise.
57059         * lib/unistdio/u16-vsprintf.c: Likewise.
57060         * lib/unistdio/u32-asnprintf.c: Likewise.
57061         * lib/unistdio/u32-asprintf.c: Likewise.
57062         * lib/unistdio/u32-printf-parse.c: Likewise.
57063         * lib/unistdio/u32-snprintf.c: Likewise.
57064         * lib/unistdio/u32-sprintf.c: Likewise.
57065         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57066         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57067         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57068         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57069         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57070         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57071         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57072         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57073         * lib/unistdio/u32-vasnprintf.c: Likewise.
57074         * lib/unistdio/u32-vasprintf.c: Likewise.
57075         * lib/unistdio/u32-vsnprintf.c: Likewise.
57076         * lib/unistdio/u32-vsprintf.c: Likewise.
57077         * lib/unistdio/u8-asnprintf.c: Likewise.
57078         * lib/unistdio/u8-asprintf.c: Likewise.
57079         * lib/unistdio/u8-printf-parse.c: Likewise.
57080         * lib/unistdio/u8-snprintf.c: Likewise.
57081         * lib/unistdio/u8-sprintf.c: Likewise.
57082         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57083         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57084         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57085         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57086         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57087         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57088         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57089         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57090         * lib/unistdio/u8-vasnprintf.c: Likewise.
57091         * lib/unistdio/u8-vasprintf.c: Likewise.
57092         * lib/unistdio/u8-vsnprintf.c: Likewise.
57093         * lib/unistdio/u8-vsprintf.c: Likewise.
57094         * lib/unistdio/ulc-asnprintf.c: Likewise.
57095         * lib/unistdio/ulc-asprintf.c: Likewise.
57096         * lib/unistdio/ulc-printf-parse.c: Likewise.
57097         * lib/unistdio/ulc-snprintf.c: Likewise.
57098         * lib/unistdio/ulc-sprintf.c: Likewise.
57099         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57100         * lib/unistdio/ulc-vasprintf.c: Likewise.
57101         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57102         * lib/unistdio/ulc-vsprintf.c: Likewise.
57103         * lib/unistr.h: Likewise.
57104         * lib/unistr/u-cpy-alloc.h: Likewise.
57105         * lib/unistr/u-cpy.h: Likewise.
57106         * lib/unistr/u-endswith.h: Likewise.
57107         * lib/unistr/u-move.h: Likewise.
57108         * lib/unistr/u-set.h: Likewise.
57109         * lib/unistr/u-startswith.h: Likewise.
57110         * lib/unistr/u-stpcpy.h: Likewise.
57111         * lib/unistr/u-stpncpy.h: Likewise.
57112         * lib/unistr/u-strcat.h: Likewise.
57113         * lib/unistr/u-strcpy.h: Likewise.
57114         * lib/unistr/u-strcspn.h: Likewise.
57115         * lib/unistr/u-strdup.h: Likewise.
57116         * lib/unistr/u-strlen.h: Likewise.
57117         * lib/unistr/u-strncat.h: Likewise.
57118         * lib/unistr/u-strncpy.h: Likewise.
57119         * lib/unistr/u-strnlen.h: Likewise.
57120         * lib/unistr/u-strpbrk.h: Likewise.
57121         * lib/unistr/u-strspn.h: Likewise.
57122         * lib/unistr/u-strstr.h: Likewise.
57123         * lib/unistr/u-strtok.h: Likewise.
57124         * lib/unistr/u16-check.c: Likewise.
57125         * lib/unistr/u16-chr.c: Likewise.
57126         * lib/unistr/u16-cmp.c: Likewise.
57127         * lib/unistr/u16-cpy-alloc.c: Likewise.
57128         * lib/unistr/u16-cpy.c: Likewise.
57129         * lib/unistr/u16-endswith.c: Likewise.
57130         * lib/unistr/u16-mblen.c: Likewise.
57131         * lib/unistr/u16-mbsnlen.c: Likewise.
57132         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57133         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57134         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57135         * lib/unistr/u16-mbtouc.c: Likewise.
57136         * lib/unistr/u16-mbtoucr.c: Likewise.
57137         * lib/unistr/u16-move.c: Likewise.
57138         * lib/unistr/u16-next.c: Likewise.
57139         * lib/unistr/u16-prev.c: Likewise.
57140         * lib/unistr/u16-set.c: Likewise.
57141         * lib/unistr/u16-startswith.c: Likewise.
57142         * lib/unistr/u16-stpcpy.c: Likewise.
57143         * lib/unistr/u16-stpncpy.c: Likewise.
57144         * lib/unistr/u16-strcat.c: Likewise.
57145         * lib/unistr/u16-strchr.c: Likewise.
57146         * lib/unistr/u16-strcmp.c: Likewise.
57147         * lib/unistr/u16-strcpy.c: Likewise.
57148         * lib/unistr/u16-strcspn.c: Likewise.
57149         * lib/unistr/u16-strdup.c: Likewise.
57150         * lib/unistr/u16-strlen.c: Likewise.
57151         * lib/unistr/u16-strmblen.c: Likewise.
57152         * lib/unistr/u16-strmbtouc.c: Likewise.
57153         * lib/unistr/u16-strncat.c: Likewise.
57154         * lib/unistr/u16-strncmp.c: Likewise.
57155         * lib/unistr/u16-strncpy.c: Likewise.
57156         * lib/unistr/u16-strnlen.c: Likewise.
57157         * lib/unistr/u16-strpbrk.c: Likewise.
57158         * lib/unistr/u16-strrchr.c: Likewise.
57159         * lib/unistr/u16-strspn.c: Likewise.
57160         * lib/unistr/u16-strstr.c: Likewise.
57161         * lib/unistr/u16-strtok.c: Likewise.
57162         * lib/unistr/u16-to-u32.c: Likewise.
57163         * lib/unistr/u16-to-u8.c: Likewise.
57164         * lib/unistr/u16-uctomb-aux.c: Likewise.
57165         * lib/unistr/u16-uctomb.c: Likewise.
57166         * lib/unistr/u32-check.c: Likewise.
57167         * lib/unistr/u32-chr.c: Likewise.
57168         * lib/unistr/u32-cmp.c: Likewise.
57169         * lib/unistr/u32-cpy-alloc.c: Likewise.
57170         * lib/unistr/u32-cpy.c: Likewise.
57171         * lib/unistr/u32-endswith.c: Likewise.
57172         * lib/unistr/u32-mblen.c: Likewise.
57173         * lib/unistr/u32-mbsnlen.c: Likewise.
57174         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57175         * lib/unistr/u32-mbtouc.c: Likewise.
57176         * lib/unistr/u32-mbtoucr.c: Likewise.
57177         * lib/unistr/u32-move.c: Likewise.
57178         * lib/unistr/u32-next.c: Likewise.
57179         * lib/unistr/u32-prev.c: Likewise.
57180         * lib/unistr/u32-set.c: Likewise.
57181         * lib/unistr/u32-startswith.c: Likewise.
57182         * lib/unistr/u32-stpcpy.c: Likewise.
57183         * lib/unistr/u32-stpncpy.c: Likewise.
57184         * lib/unistr/u32-strcat.c: Likewise.
57185         * lib/unistr/u32-strchr.c: Likewise.
57186         * lib/unistr/u32-strcmp.c: Likewise.
57187         * lib/unistr/u32-strcpy.c: Likewise.
57188         * lib/unistr/u32-strcspn.c: Likewise.
57189         * lib/unistr/u32-strdup.c: Likewise.
57190         * lib/unistr/u32-strlen.c: Likewise.
57191         * lib/unistr/u32-strmblen.c: Likewise.
57192         * lib/unistr/u32-strmbtouc.c: Likewise.
57193         * lib/unistr/u32-strncat.c: Likewise.
57194         * lib/unistr/u32-strncmp.c: Likewise.
57195         * lib/unistr/u32-strncpy.c: Likewise.
57196         * lib/unistr/u32-strnlen.c: Likewise.
57197         * lib/unistr/u32-strpbrk.c: Likewise.
57198         * lib/unistr/u32-strrchr.c: Likewise.
57199         * lib/unistr/u32-strspn.c: Likewise.
57200         * lib/unistr/u32-strstr.c: Likewise.
57201         * lib/unistr/u32-strtok.c: Likewise.
57202         * lib/unistr/u32-to-u16.c: Likewise.
57203         * lib/unistr/u32-to-u8.c: Likewise.
57204         * lib/unistr/u32-uctomb.c: Likewise.
57205         * lib/unistr/u8-check.c: Likewise.
57206         * lib/unistr/u8-chr.c: Likewise.
57207         * lib/unistr/u8-cmp.c: Likewise.
57208         * lib/unistr/u8-cpy-alloc.c: Likewise.
57209         * lib/unistr/u8-cpy.c: Likewise.
57210         * lib/unistr/u8-endswith.c: Likewise.
57211         * lib/unistr/u8-mblen.c: Likewise.
57212         * lib/unistr/u8-mbsnlen.c: Likewise.
57213         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57214         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57215         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57216         * lib/unistr/u8-mbtouc.c: Likewise.
57217         * lib/unistr/u8-mbtoucr.c: Likewise.
57218         * lib/unistr/u8-move.c: Likewise.
57219         * lib/unistr/u8-next.c: Likewise.
57220         * lib/unistr/u8-prev.c: Likewise.
57221         * lib/unistr/u8-set.c: Likewise.
57222         * lib/unistr/u8-startswith.c: Likewise.
57223         * lib/unistr/u8-stpcpy.c: Likewise.
57224         * lib/unistr/u8-stpncpy.c: Likewise.
57225         * lib/unistr/u8-strcat.c: Likewise.
57226         * lib/unistr/u8-strchr.c: Likewise.
57227         * lib/unistr/u8-strcmp.c: Likewise.
57228         * lib/unistr/u8-strcpy.c: Likewise.
57229         * lib/unistr/u8-strcspn.c: Likewise.
57230         * lib/unistr/u8-strdup.c: Likewise.
57231         * lib/unistr/u8-strlen.c: Likewise.
57232         * lib/unistr/u8-strmblen.c: Likewise.
57233         * lib/unistr/u8-strmbtouc.c: Likewise.
57234         * lib/unistr/u8-strncat.c: Likewise.
57235         * lib/unistr/u8-strncmp.c: Likewise.
57236         * lib/unistr/u8-strncpy.c: Likewise.
57237         * lib/unistr/u8-strnlen.c: Likewise.
57238         * lib/unistr/u8-strpbrk.c: Likewise.
57239         * lib/unistr/u8-strrchr.c: Likewise.
57240         * lib/unistr/u8-strspn.c: Likewise.
57241         * lib/unistr/u8-strstr.c: Likewise.
57242         * lib/unistr/u8-strtok.c: Likewise.
57243         * lib/unistr/u8-to-u16.c: Likewise.
57244         * lib/unistr/u8-to-u32.c: Likewise.
57245         * lib/unistr/u8-uctomb-aux.c: Likewise.
57246         * lib/unistr/u8-uctomb.c: Likewise.
57247         * lib/unitypes.h: Likewise.
57248         * lib/uniwidth.h: Likewise.
57249         * lib/uniwidth/cjk.h: Likewise.
57250         * lib/uniwidth/u16-strwidth.c: Likewise.
57251         * lib/uniwidth/u16-width.c: Likewise.
57252         * lib/uniwidth/u32-strwidth.c: Likewise.
57253         * lib/uniwidth/u32-width.c: Likewise.
57254         * lib/uniwidth/u8-strwidth.c: Likewise.
57255         * lib/uniwidth/u8-width.c: Likewise.
57256         * lib/uniwidth/width.c: Likewise.
57257
57258 2007-10-07  Bruno Haible  <bruno@clisp.org>
57259
57260         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57261         The file is still under LGPL (see modules/inttypes).
57262
57263 2007-10-06  Bruno Haible  <bruno@clisp.org>
57264
57265         * modules/trunc (Dependencies): Add 'extensions'.
57266         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57267         Reported by Ben Pfaff <blp@gnu.org>.
57268
57269 2007-10-06  Bruno Haible  <bruno@clisp.org>
57270
57271         * modules/freopen-tests: New file.
57272         * tests/test-freopen.c: New file.
57273
57274         * modules/fopen-tests: New file.
57275         * tests/test-fopen.c: New file.
57276
57277         * modules/fopen: New file.
57278         * lib/fopen.c: New file.
57279         * m4/fopen.m4: New file.
57280         * modules/freopen: New file.
57281         * lib/freopen.c: New file.
57282         * m4/freopen.m4: New file.
57283         * lib/stdio.in.h (fopen, freopen): New declarations.
57284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57285         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57286         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57287         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57288         * doc/functions/fopen.texi: Mention the 'fopen' module.
57289         * doc/functions/freopen.texi: Mention the 'freopen' module.
57290
57291 2007-10-06  Bruno Haible  <bruno@clisp.org>
57292
57293         * modules/open-tests: New file.
57294         * tests/test-open.c: New file.
57295
57296         * modules/open: New file.
57297         * lib/open.c: New file.
57298         * m4/open.m4: New file.
57299         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57300         lib/open.c does.
57301         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57302         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57303         macros.
57304         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57305         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57306         REPLACE_OPEN.
57307         * doc/functions/open.texi: Mention the 'open' module.
57308
57309 2007-10-04  Bruno Haible  <bruno@clisp.org>
57310
57311         * modules/ceill-tests: New file.
57312         * tests/test-ceill.c: New file.
57313
57314         * modules/ceill: New file.
57315         * lib/ceill.c: Replace entire file.
57316         * m4/ceill.m4: New file.
57317         * lib/math.in.h (ceill): Replace declaration.
57318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57319         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57320         * doc/functions/ceill.texi: Mention the 'ceill' module.
57321         * modules/mathl (Files): Remove lib/ceill.c.
57322         (Depends-on): Add ceill.
57323
57324 2007-10-04  Bruno Haible  <bruno@clisp.org>
57325
57326         * modules/ceilf-tests: New file.
57327         * tests/test-ceilf.c: New file.
57328
57329         * modules/ceilf: New file.
57330         * lib/ceil.c: New file.
57331         * lib/ceilf.c: New file.
57332         * m4/ceilf.m4: New file.
57333         * lib/math.in.h (ceilf): New declaration.
57334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57335         HAVE_DECL_CEILF.
57336         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57337         HAVE_DECL_CEILF.
57338         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57339
57340 2007-10-04  Bruno Haible  <bruno@clisp.org>
57341
57342         * modules/floorl-tests: New file.
57343         * tests/test-floorl.c: New file.
57344
57345         * modules/floorl: New file.
57346         * lib/floorl.c: Replace entire file.
57347         * m4/floorl.m4: New file.
57348         * lib/math.in.h (floorl): Replace declaration.
57349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57350         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57351         * doc/functions/floorl.texi: Mention the 'floorl' module.
57352         * modules/mathl (Files): Remove lib/floorl.c.
57353         (Depends-on): Add floorl.
57354
57355 2007-10-04  Bruno Haible  <bruno@clisp.org>
57356
57357         * modules/floorf-tests: New file.
57358         * tests/test-floorf.c: New file.
57359
57360         * modules/floorf: New file.
57361         * lib/floor.c: New file.
57362         * lib/floorf.c: New file.
57363         * m4/floorf.m4: New file.
57364         * lib/math.in.h (floorf): New declaration.
57365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57366         HAVE_DECL_FLOORF.
57367         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57368         HAVE_DECL_FLOORF.
57369         * doc/functions/floorf.texi: Mention the 'floorf' module.
57370
57371 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57372             Bruno Haible  <bruno@clisp.org>
57373
57374         Advertise for the Git server instead of the CVS server.
57375         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57376         repository instead of the CVS one.
57377         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57378         about all VCS systems generically.
57379         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57380
57381 2007-10-04  Bruno Haible  <bruno@clisp.org>
57382
57383         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57384         means.
57385         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57386
57387 2007-10-04  Bruno Haible  <bruno@clisp.org>
57388
57389         * modules/truncl-tests: New file.
57390         * tests/test-truncl.c: New file.
57391
57392         * modules/truncl: New file.
57393         * lib/truncl.c: New file.
57394         * m4/truncl.m4: New file.
57395         * lib/math.in.h (truncl): New declaration.
57396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57397         HAVE_DECL_TRUNCL.
57398         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57399         HAVE_DECL_TRUNCL.
57400         * doc/functions/truncl.texi: Mention the 'truncl' module.
57401
57402 2007-10-04  Bruno Haible  <bruno@clisp.org>
57403
57404         * modules/truncf-tests: New file.
57405         * tests/test-truncf.c: New file.
57406
57407         * modules/truncf: New file.
57408         * lib/trunc.c: Make paramerizable through USE_* macros.
57409         * lib/truncf.c: New file.
57410         * m4/truncf.m4: New file.
57411         * lib/math.in.h (truncf): New declaration.
57412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57413         HAVE_DECL_TRUNCF.
57414         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57415         HAVE_DECL_TRUNCF.
57416         * doc/functions/truncf.texi: Mention the 'truncf' module.
57417
57418 2007-10-03  Bruno Haible  <bruno@clisp.org>
57419
57420         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57421         augmentation also for tests modules.
57422         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57423         * modules/atexit-tests (Makefile.am): Likewise.
57424         * modules/binary-io-tests (Makefile.am): Likewise.
57425         * modules/c-strcase-tests (Makefile.am): Likewise.
57426         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57427         * modules/canonicalize-tests (Makefile.am): Likewise.
57428         * modules/closein-tests (Makefile.am): Likewise.
57429         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57430         * modules/freadahead-tests (Makefile.am): Likewise.
57431         * modules/fseek-tests (Makefile.am): Likewise.
57432         * modules/fseeko-tests (Makefile.am): Likewise.
57433         * modules/ftell-tests (Makefile.am): Likewise.
57434         * modules/ftello-tests (Makefile.am): Likewise.
57435         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57436         * modules/isnanl-tests (Makefile.am): Likewise.
57437         * modules/lseek-tests (Makefile.am): Likewise.
57438         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57439         * modules/mbscasestr-tests (Makefile.am): Likewise.
57440         * modules/mbschr-tests (Makefile.am): Likewise.
57441         * modules/mbscspn-tests (Makefile.am): Likewise.
57442         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57443         * modules/mbspbrk-tests (Makefile.am): Likewise.
57444         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57445         * modules/mbsrchr-tests (Makefile.am): Likewise.
57446         * modules/mbsspn-tests (Makefile.am): Likewise.
57447         * modules/mbsstr-tests (Makefile.am): Likewise.
57448         * modules/printf-posix-tests (Makefile.am): Likewise.
57449         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57450         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57451         * modules/tsearch-tests (Makefile.am): Likewise.
57452         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57453         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57454         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57455         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57456         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57457         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57458         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57459         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57460         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57461         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57462         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57463         * modules/xstrtol-tests (Makefile.am): Likewise.
57464         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57465         * modules/yesno-tests (Makefile.am): Likewise.
57466
57467 2007-10-03  Bruno Haible  <bruno@clisp.org>
57468
57469         * modules/trunc-tests: New file.
57470         * tests/test-trunc.c: New file.
57471
57472         * modules/trunc: New file.
57473         * lib/trunc.c: New file.
57474         * m4/trunc.m4: New file.
57475         * lib/math.in.h (trunc): New declaration.
57476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57477         HAVE_DECL_TRUNC.
57478         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57479         HAVE_DECL_TRUNC.
57480         * doc/functions/trunc.texi: Mention the 'trunc' module.
57481
57482 2007-10-03  Bruno Haible  <bruno@clisp.org>
57483
57484         * tests/test-fpending.c: New file, mostly copied
57485         from coreutils/lib/t-fpending.c.
57486         * modules/fpending-tests: New file.
57487
57488 2007-10-03  Bruno Haible  <bruno@clisp.org>
57489
57490         Port the stdio extensions to QNX (untested).
57491         * lib/fseterr.c (fseterr): Add support for QNX.
57492         * lib/fbufmode.c (fbufmode): Likewise.
57493         * lib/freadable.c (freadable): Likewise.
57494         * lib/fwritable.c (fwritable): Likewise.
57495         * lib/freading.c (freading): Likewise.
57496         * lib/fwriting.c (fwriting): Likewise.
57497         * lib/freadahead.c (freadahed): Likewise.
57498         * lib/fpurge.c (fpurge): Likewise.
57499         * lib/fseeko.c (rpl_fseeko): Likewise.
57500
57501 2007-10-03  Bruno Haible  <bruno@clisp.org>
57502             Jim Meyering  <jim@meyering.net>
57503             Eric Blake  <ebb9@byu.net>
57504
57505         * doc/relocatable.texi: Use @command instead of @program.
57506
57507 2007-10-02  Jim Meyering  <jim@meyering.net>
57508
57509         Perform one more "_.h" -> ".in.h" substitution.
57510         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57511         instead of unistd_.h here, too.
57512
57513 2007-10-01  Bruno Haible  <bruno@clisp.org>
57514
57515         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57516         Needed for the alloca-opt module.
57517
57518 2007-09-30  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57521         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57522         alloca_.h.
57523         * lib/argz.in.h: Renamed from lib/argz_.h.
57524         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57525         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57526         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57527         byteswap_.h.
57528         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57529         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57530         dirent_.h.
57531         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57532         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57533         fcntl_.h.
57534         * lib/float.in.h: Renamed from lib/float_.h.
57535         * modules/float (Files, Makefile.am): Use float.in.h instead of
57536         float_.h.
57537         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57538         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57539         fnmatch_.h.
57540         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57541         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57542         getopt_.h.
57543         * lib/glob.in.h: Renamed from lib/glob_.h.
57544         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57545         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57546         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57547         iconv_.h.
57548         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57549         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57550         inttypes_.h.
57551         * lib/locale.in.h: Renamed from lib/locale_.h.
57552         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57553         locale_.h.
57554         * lib/math.in.h: Renamed from lib/math_.h.
57555         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57556         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57557         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57558         of netinet_in_.h. Add dependency.
57559         * lib/poll.in.h: Renamed from lib/poll_.h.
57560         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57561         * lib/search.in.h: Renamed from lib/search_.h.
57562         * modules/search (Files, Makefile.am): Use search.in.h instead of
57563         search_.h.
57564         * lib/signal.in.h: Renamed from lib/signal_.h.
57565         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57566         _signal.h.
57567         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57568         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57569         stdbool_.h.
57570         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57571         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57572         stdint_.h.
57573         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57574         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57575         stdio_.h.
57576         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57577         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57578         stdlib_.h.
57579         * lib/string.in.h: Renamed from lib/string_.h.
57580         * modules/string (Files, Makefile.am): Use string.in.h instead of
57581         string_.h.
57582         * doc/gnulib-tool.texi (Initial import): Update.
57583         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57584         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57585         of sys_select_.h. Add dependency.
57586         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57587         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57588         of sys_socket_.h.
57589         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57590         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57591         sys_stat_.h.
57592         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57593         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57594         sys_time_.h.
57595         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57596         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57597         sysexits_.h.
57598         * lib/time.in.h: Renamed from lib/time_.h.
57599         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57600         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57601         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57602         unistd_.h.
57603         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57604         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57605         wchar_.h.
57606         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57607         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57608         wctype_.h.
57609         * build-aux/bootstrap (slurp): Update.
57610         * lib/.cppi-disable: Update.
57611
57612 2007-09-30  Bruno Haible  <bruno@clisp.org>
57613
57614         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57615         Needed on BeOS.
57616
57617 2007-09-30  Bruno Haible  <bruno@clisp.org>
57618
57619         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57620
57621 2007-09-29  Bruno Haible  <bruno@clisp.org>
57622
57623         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57624
57625 2007-09-29  Bruno Haible  <bruno@clisp.org>
57626
57627         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57628         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57629         * build-aux/install-reloc: Compile also areadlink.c.
57630         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57631
57632 2007-09-29  Bruno Haible  <bruno@clisp.org>
57633
57634         * gnulib-tool (func_emit_initmacro_done): Indentation.
57635
57636 2007-09-29  Bruno Haible  <bruno@clisp.org>
57637
57638         * README: Add CVS checkout update instructions.
57639         Info from Bob Proulx <bob@proulx.com>.
57640
57641 2007-09-28  Eric Blake  <ebb9@byu.net>
57642
57643         Provide move-if-change.
57644         * build-aux/move-if-change: New file, based on best practice
57645         rather than any canonical upstream location.
57646
57647 2007-09-28  Jim Meyering  <jim@meyering.net>
57648
57649         Fix canonicalize loop-detection corner case.
57650         Do not attempt to stat the symlink values stored via seen_triple.
57651         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57652         on linux-2.6.18, (but not 2.6.22).
57653         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57654         triple_compare.  The former compares dev,ino,filename, while the latter
57655         would actually stat dirname(filename) when dev and ino were equal.
57656         * lib/hash-triple.c: Install <string.h>.
57657         (STREQ): Define.
57658         (triple_compare_ino_str): New function.
57659         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57660
57661 2007-09-28  Eric Blake  <ebb9@byu.net>
57662
57663         Enforce that AC_REPLACE_FUNCS files exist.
57664         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57665         override check for typos.
57666
57667         Fix test-closein on Solaris 10.
57668         * tests/test-closein.c (main): Don't assume stdin can be inherited
57669         closed on all systems.
57670         * tests/test-closein.sh: Likewise.
57671         Reported by Piotr Tarnowski.
57672
57673 2007-09-28  Jim Meyering  <jim@meyering.net>
57674
57675         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57676
57677 2007-09-27  Jim Meyering  <jim@meyering.net>
57678
57679         canonicalize: Avoid a false-positive cycle failure.
57680         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57681         Sort.  Remove cycle-check.
57682         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57683         not cycle-check.h.
57684         (seen_triple): New function.
57685         (canonicalize_filename_mode): Use it instead of cycle-check.
57686         * tests/test-canonicalize.c: Add a test for this bug.
57687         * tests/test-canonicalize.sh: Set up and run the test.
57688
57689         New module, file-set, from coreutils.
57690         * modules/file-set: Define it.
57691         * lib/file-set.c, lib/file-set.h: Implement.
57692
57693         New module, hash-triple, from coreutils.
57694         * modules/hash-triple: Define it.
57695         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57696
57697 2007-09-25  Eric Blake  <ebb9@byu.net>
57698
57699         Fix strerror on Interix.
57700         * lib/string_.h (strerror): Declare replacement.
57701         * doc/functions/strerror.texi (strerror): Document the Interix
57702         shortcoming.
57703         * modules/string (Makefile.am): Support new hooks.
57704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57705         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57706         gl_FUNC_STRERROR_SEPARATE.
57707         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57708         * lib/strerror.c (rpl_strerror): Provide replacement.
57709         * modules/strerror (Depends-on): Add string.
57710         (configure.ac): Detect use of module.
57711         * tests/test-strerror.c: New file.
57712         * modules/strerror-tests: New test module.
57713         * modules/argp (Depends-on): Add strerror.
57714         * modules/error (Depends-on): Likewise.
57715         Reported by Martin Koeppe.
57716
57717 2007-09-24  Bruno Haible  <bruno@clisp.org>
57718
57719         * README: Update git instructions.
57720
57721 2007-09-24  Eric Blake  <ebb9@byu.net>
57722
57723         Revert fpending breakage from 2007-09-08.
57724         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57725         __fpending.c.
57726
57727 2007-09-24  Jim Meyering  <jim@meyering.net>
57728
57729         filenamecat.c: Add a test.
57730         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57731         showing how the function works when DIR is the empty string.
57732
57733 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57734
57735         * tests/test-canonicalize.sh: Turn on executable bit.
57736
57737 2007-09-19  Eric Blake  <ebb9@byu.net>
57738
57739         * README: Update CVS instructions.
57740
57741 2007-09-18  Bruno Haible  <bruno@clisp.org>
57742
57743         * modules/areadlink: New file.
57744         * lib/areadlink.h (areadlink): New declaration.
57745         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57746
57747 2007-09-17  Jim Meyering  <jim@meyering.net>
57748
57749         * lib/savewd.c (ESTALE) [!defined]: Define.
57750         Reported to be required on Interix by Martin Koeppe.
57751
57752 2007-09-17  Bruno Haible  <bruno@clisp.org>
57753
57754         * gnulib-tool (func_version): Use $version.
57755
57756 2007-09-16  Bruno Haible  <bruno@clisp.org>
57757
57758         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57759         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57760         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57761         Reported by Greg Schafer <gschafer@zip.com.au>.
57762
57763 2007-09-15  Bruno Haible  <bruno@clisp.org>
57764
57765         * gnulib-tool (sed): Try a little harder to make bash understand the
57766         alias.
57767         Reported by Bruce Korb <bruce.korb@gmail.com>.
57768
57769 2007-09-13  Eric Blake  <ebb9@byu.net>
57770
57771         * ChangeLog: Remove conflict markers.
57772
57773 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57774
57775         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57776         Reported by Bruno Haible <bruno@clisp.org>.
57777
57778 2007-09-12  Bruno Haible  <bruno@clisp.org>
57779
57780         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57781         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57782         is not defined.
57783
57784 2007-09-12  Eric Blake  <ebb9@byu.net>
57785
57786         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57787         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57788         Autoconf definition.
57789         * modules/euidaccess (Depends-on): Add extensions, for
57790         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57791         * modules/fnmatch (Depends-on): Likewise.
57792         * modules/getaddrinfo (Depends-on): Likewise.
57793         * modules/getdelim (Depends-on): Likewise.
57794         * modules/getline (Depends-on): Likewise.
57795         * modules/getsubopt (Depends-on): Likewise.
57796         * modules/gettext (Depends-on): Likewise.
57797         * modules/group-member (Depends-on): Likewise.
57798         * modules/mbchar (Depends-on): Likewise.
57799         * modules/memmem (Depends-on): Likewise.
57800         * modules/mempcpy (Depends-on): Likewise.
57801         * modules/memrchr (Depends-on): Likewise.
57802         * modules/pagealign_alloc (Depends-on): Likewise.
57803         * modules/readutmp (Depends-on): Likewise.
57804         * modules/stpcpy (Depends-on): Likewise.
57805         * modules/stpncpy (Depends-on): Likewise.
57806         * modules/strchrnul (Depends-on): Likewise.
57807         * modules/strndup (Depends-on): Likewise.
57808         * modules/strsep (Depends-on): Likewise.
57809         * modules/strverscmp (Depends-on): Likewise.
57810         * modules/vasprintf (Depends-on): Likewise.
57811         * modules/wcwidth (Depends-on): Likewise.
57812         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57813         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57814         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57815         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57816         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57817         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57818         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57819         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57820         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57821         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57822         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57823         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57824         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57825         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57826         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57827         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57828         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57829         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57830         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57831         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57832         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57833         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57834         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57835         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57836         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57838         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57839         so that lock.m4 can be used in gettext without extensions module.
57840
57841 2007-09-11  Bruno Haible  <bruno@clisp.org>
57842
57843         * m4/isc-posix.m4: Remove file.
57844         Suggested by Eric Blake.
57845
57846 2007-09-11  Eric Blake  <ebb9@byu.net>
57847
57848         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57849
57850 2007-09-10  Bruno Haible  <bruno@clisp.org>
57851
57852         * posix-modules: Fix typo in error message.
57853         Reported by Matt <mkraai@beckman.com>.
57854
57855 2007-09-09  Bruno Haible  <bruno@clisp.org>
57856
57857         * doc/functions/getdelim.texi: Update list of platforms lacking the
57858         function.
57859         * doc/functions/getline.texi: Likewise.
57860
57861 2007-09-09  Jim Meyering  <jim@meyering.net>
57862
57863         * lib/hash.c (hash_initialize): Detect calloc failure.
57864         Reported by Bruno Haible.
57865
57866 2007-09-09  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57869         malloc or realloc fails.
57870
57871 2007-09-09  Bruno Haible  <bruno@clisp.org>
57872
57873         * modules/getcwd (Depends-on): Add malloc-posix.
57874         * modules/glob (Depends-on): Likewise.
57875         * modules/putenv (Depends-on): Likewise.
57876         * modules/strdup (Depends-on): Likewise.
57877         * modules/getdelim (Depends-on): Add realloc-posix.
57878         * modules/read-file (Depends-on): Likewise.
57879
57880 2007-09-09  Bruno Haible  <bruno@clisp.org>
57881
57882         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57883         (gl_FUNC_MALLOC_POSIX): Require it.
57884         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57885         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57886         * modules/realloc (Files): Add m4/malloc.m4.
57887         * modules/calloc (Files): Likewise.
57888
57889 2007-09-09  Bruno Haible  <bruno@clisp.org>
57890
57891         * modules/malloc-posix: New file.
57892         * modules/malloc (Depends-on): Add malloc-posix.
57893         * lib/malloc.c: Include errno.h.
57894         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57895         and a POSIX-compatible malloc into a single function. Set ENOMEM
57896         when returning NULL.
57897         * m4/malloc.m4: New file.
57898         * doc/functions/malloc.texi: Mention the malloc-posix module.
57899         * lib/stdlib_.h (malloc): New declaration.
57900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57901         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57902         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57903         and HAVE_MALLOC_POSIX.
57904
57905 2007-09-09  Bruno Haible  <bruno@clisp.org>
57906
57907         * modules/realloc-posix: New file.
57908         * modules/realloc (Depends-on): Add realloc-posix.
57909         * lib/realloc.c: Include errno.h.
57910         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57911         and a POSIX-compatible realloc into a single function. Set ENOMEM
57912         when returning NULL.
57913         * m4/realloc.m4: New file.
57914         * doc/functions/realloc.texi: Mention the realloc-posix module.
57915         * lib/stdlib_.h (realloc): New declaration.
57916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57917         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57918         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57919         and HAVE_REALLOC_POSIX.
57920
57921 2007-09-09  Bruno Haible  <bruno@clisp.org>
57922
57923         * modules/calloc-posix: New file.
57924         * modules/calloc (Depends-on): Add calloc-posix.
57925         * lib/calloc.c: Include errno.h.
57926         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57927         and a POSIX-compatible calloc into a single function. Set ENOMEM
57928         when returning NULL.
57929         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57930         * doc/functions/calloc.texi: Mention the calloc-posix module.
57931         * lib/stdlib_.h (calloc): New declaration.
57932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57933         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57934         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57935         and HAVE_CALLOC_POSIX.
57936
57937 2007-09-09  Bruno Haible  <bruno@clisp.org>
57938
57939         Allow for modules to show an arbitrary notice.
57940         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57941         * gnulib-tool: New option --extract-notice.
57942         (func_usage): Document it.
57943         (sed_extract_prog): Update.
57944         (func_get_notice): New function.
57945         (func_modules_notice): New function.
57946         (func_import, func_create_testdir): Invoke it.
57947         Suggested by Jim Meyering.
57948
57949 2007-09-09  Bruno Haible  <bruno@clisp.org>
57950
57951         * gnulib-tool: New options --verbose, --quiet.
57952         (func_usage): Document them.
57953         (verbose): New variable.
57954         (func_execute_command): New function.
57955         (func_import): Don't show the module list and the file list if
57956         $verbose < 0.
57957         (func_create_testdir): Likewise. Use func_execute_command.
57958         (func_create_megatestdir): Use func_execute_command.
57959
57960 2007-09-08  Bruno Haible  <bruno@clisp.org>
57961
57962         * gnulib-tool (func_import): Prefer rsync over wget when available,
57963         for fetching the PO files.
57964
57965 2007-09-08  Bruno Haible  <bruno@clisp.org>
57966
57967         * posix-modules: New file. Portions copied from gnulib-tool.
57968         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57969
57970 2007-09-08  Jim Meyering  <jim@meyering.net>
57971
57972         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57973         * lib/fpending.h: Rename from __fpending.h.
57974         * lib/fpending.c: Rename from __fpending.c.
57975         Include "fpending.h", not "__fpending.h".
57976         * lib/__fpending.h, lib/__fpending.c: Remove files.
57977         * modules/fpending (Files): Reflect new file names.
57978         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57979
57980 2007-09-08  Bruno Haible  <bruno@clisp.org>
57981
57982         * m4/inttypes-h.m4: Remove stub file.
57983
57984 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57985
57986         * doc/headers/stdint.texi: Discuss #include_next issue.
57987
57988 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57991
57992 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57993
57994         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57995         in variable name.
57996
57997 2007-09-03  Jim Meyering  <jim@meyering.net>
57998
57999         New module: git-version-gen.
58000         * modules/git-version-gen: New file.
58001
58002         Import changes from coreutils for bootstrap script.
58003
58004         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58005
58006         bootstrap: uses rsync to download the .po files
58007         * build-aux/bootstrap (po_download_command_format): New global.
58008         (download_po_files): Use rsync.
58009         (update_po_files): Don't remove .po files after download,
58010         so future rsync runs can take advantage of the copies.
58011
58012         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58013
58014         Solve the unnecessary-.po-file-regeneration problem once and for all.
58015         * build-aux/bootstrap (download_po_files): New function, renamed from
58016         get_translations.  Now, downloads, but doesn't update LINGUAS.
58017         (update_po_files): New function.
58018
58019         bootstrap: Ignore more.
58020         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58021         uniwidth to e.g., lib/.gitignore.
58022         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58023
58024         * build-aux/bootstrap: New setting: vc_ignore.
58025         (insert_sorted_if_absent): Create $file if absent.
58026         Adapt to new, possibly empty, list: $vc_ignore.
58027
58028         bootstrap: generate more ignorable names
58029         * build-aux/bootstrap (slurp): When generating ignorable names,
58030         also map .sin to .sed, .gperf to .c, and .y to .c.
58031
58032 2007-09-03  Jim Meyering  <jim@meyering.net>
58033
58034         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58035         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58036
58037 2007-09-02  Bruno Haible  <bruno@clisp.org>
58038
58039         Fix mis-recognition of 'mcs' on QNX 6.
58040         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58041         output contains the string "Mono".
58042         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58043         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58044
58045 2007-09-01  Bruno Haible  <bruno@clisp.org>
58046
58047         Fix collision between uniwidth/* and linebreak modules.
58048         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58049         u32_width): Remove declarations.
58050         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58051         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58052         streq3, streq2, streq1, streq0): Remove functions.
58053         (STREQ): Remove macro.
58054         (is_cjk_encoding): Remove function.
58055         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58056         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58057         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58058         * NEWS: Document the change.
58059
58060 2007-09-01  Bruno Haible  <bruno@clisp.org>
58061
58062         * lib/streq.h: Add double-inclusion guard.
58063
58064 2007-09-01  Karl Berry  <karl@gnu.org>
58065
58066         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58067
58068 2007-08-28  Jim Meyering  <jim@meyering.net>
58069
58070         Rename mreadlink_with_size to areadlink_with_size.
58071         * NEWS: Document the change.
58072         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58073         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58074         * lib/mreadlink.h: Rename this to...
58075         * lib/areadlink.h: ...this.
58076         * modules/mreadlink-with-size: Rename this to...
58077         * modules/areadlink-with-size: ...this.
58078         * lib/canonicalize.c: Reflect the renaming.
58079         * modules/canonicalize: Likewise.
58080
58081 2007-08-26  Bruno Haible  <bruno@clisp.org>
58082
58083         * gnulib-tool (func_import): When deciding which files to remove,
58084         consider also dangling symbolic links.
58085         Reported by Eric Blake.
58086
58087 2007-08-26  Bruno Haible  <bruno@clisp.org>
58088
58089         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58090
58091 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58092
58093         * lib/readline.c: Don't include getline.h, the prototype is now
58094         found in stdio.h.
58095
58096 2007-08-23  Jim Meyering  <jim@meyering.net>
58097
58098         Getdelim touchup.
58099         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58100         around the funlockfile call, since funlockfile never sets errno.
58101         Don't set errno upon failed realloc.
58102
58103 2007-08-22  Eric Blake  <ebb9@byu.net>
58104
58105         Getline touchups.
58106         * lib/getdelim.c (getdelim): Revert regression that required *n to
58107         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58108         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58109         getdelim, rather than whether implementation is missing.
58110         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58111         * lib/stdio_.h (getline): Also declare if replacement is
58112         required.
58113         * doc/functions/getdelim.texi: New file.
58114         * doc/functions/getline.texi: Likewise.
58115         * doc/gnulib.texi (Function Substitutes): Add new files.
58116         Reported by Bruno Haible.
58117
58118 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58119
58120         * users.txt: Add Guile.
58121
58122 2007-08-22  Eric Blake  <ebb9@byu.net>
58123
58124         * tests/test-getdelim.c (main): Use remove, not unlink.
58125         * tests/test-getline.c (main): Likewise.
58126
58127         Move getline and getdelim into stdio.h, per POSIX 200x.
58128         * modules/getline (Files): Remove getline.h.
58129         (Depends-on): Add stdio.
58130         (configure.ac): Add module indicator.
58131         * modules/getdelim (Files): Remove getdelim.h.
58132         (Depends-on): Add stdio.
58133         (configure.ac): Add module indicator.
58134         * modules/stdio (Makefile.am): Work with new indicators.
58135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58136         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58137         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58138         * lib/getdelim.h: Delete.
58139         * lib/getline.h: Delete.
58140         * lib/stdio_.h (getdelim, getline): Declare.
58141         * modules/getdelim-tests: New module.
58142         * modules/getline-tests: Likewise.
58143         * tests/test-getdelim.c: New file.
58144         * tests/test-getline.c: Likewise.
58145         * NEWS: Document the change.
58146         * lib/getline.c: Update choice of header.
58147         * lib/csharpcomp.c: Likewise.
58148         * lib/getpass.c: Likewise.
58149         * lib/javacomp.c: Likewise.
58150         * lib/javaversion.c: Likewise.
58151         * lib/yesno.c: Likewise.
58152         * lib/getdelim.c: Likewise.
58153         (getdelim): Set errno on failure, and avoid memory leak.
58154
58155 2007-08-19  Bruno Haible  <bruno@clisp.org>
58156
58157         * modules/closein (Depends-on): Add freadahead.
58158         * lib/closein.c: Include freadahead.h.
58159         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58160         is zero.
58161
58162 2007-08-19  Bruno Haible  <bruno@clisp.org>
58163
58164         * modules/freadahead-tests: New file.
58165         * tests/test-freadahead.sh: New file.
58166         * tests/test-freadahead.c: New file.
58167
58168         * modules/freadahead: New file.
58169         * lib/freadahead.h: New file.
58170         * lib/freadahead.c: New file.
58171         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58172         fbufmode, fpurge, freadable, fwritable.
58173
58174 2007-08-19  Eric Blake  <ebb9@byu.net>
58175
58176         Test yesno in combination with closein.
58177         * lib/yesno.c (yesno): Document use of stdin.
58178         * modules/yesno-tests (Files): New module.
58179         * tests/test-yesno.c (main): New file.
58180         * tests/test-yesno.sh: Likewise.
58181
58182 2007-08-19  Bruno Haible  <bruno@clisp.org>
58183
58184         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58185         * lib/fseeko.c (rpl_fseeko): Likewise.
58186         * lib/fseterr.c (fseterr): Likewise.
58187
58188 2007-08-19  Bruno Haible  <bruno@clisp.org>
58189
58190         * tests/test-lseek.c (main): Disable a test for BeOS.
58191         * doc/functions/lseek.texi: Document the BeOS bug.
58192
58193 2007-08-19  Bruno Haible  <bruno@clisp.org>
58194             Eric Blake  <ebb9@byu.net>
58195
58196         * lib/lseek.c: Include <sys/stat.h>.
58197         (rpl_lseek): Add workaround code also for Unix platforms.
58198         Needed for BeOS.
58199         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58200         * doc/functions/lseek.texi: Document BeOS definiency.
58201
58202 2007-08-18  Bruno Haible  <bruno@clisp.org>
58203
58204         * modules/fstrcmp-tests: New file.
58205         * tests/test-fstrcmp.c: New file.
58206
58207 2007-08-18  Bruno Haible  <bruno@clisp.org>
58208
58209         * modules/fstrcmp: New file, from GNU gettext with modifications.
58210         * lib/fstrcmp.h: New file, from GNU gettext.
58211         * lib/fstrcmp.c: New file, from GNU gettext.
58212         * MODULES.html.sh (String handling): Add fstrcmp.
58213
58214 2007-08-18  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58217         'bool'.
58218         (diag, compareseq): Remove const from the ctxt argument.
58219         (USE_HEURISTIC): Undefine at the end.
58220
58221 2007-08-18  Jim Meyering  <jim@meyering.net>
58222
58223         New file: lib/idcache.h
58224         * NEWS: Mention the addition.
58225         * modules/idcache (Files): Add lib/idcache.h
58226         * lib/idcache.c: Include "idcache.h".
58227         Don't include <sys/types.h>.
58228         Add a FIXME comment.
58229         Move file-scoped "static" declarations to the top.
58230         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58231
58232 2007-08-17  Bruno Haible  <bruno@clisp.org>
58233         and Paul Eggert  <eggert@cs.ucla.edu>
58234
58235         * MODULES.html.sh: Add diffseq.
58236         * modules/diffseq: New file.
58237         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58238         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58239
58240 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58241
58242         Import changes from coreutils for bootstrap script.
58243
58244         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58245
58246         * build-aux/bootstrap (slurp): Work even in environments where
58247         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58248         current code does not slurp files whose names start with ".", and
58249         this looks like it might be a troublesome area.
58250
58251         2007-07-11  Jim Meyering  <jim@meyering.net>
58252
58253         If there's a GPL vN copyright comment, require that N == 3.
58254
58255         2007-07-08  Jim Meyering  <jim@meyering.net>
58256
58257         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58258         * build-aux/bootstrap (mam_template): Move definition out of loop.
58259
58260         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58261
58262         * build-aux/bootstrap (symlink_to_dir): Rename function from
58263         symlink_to_gnulib.  Add a directory parameter.  Update all
58264         callers.
58265         (cp_mark_as_generated): Also check for -- and link to -- files in
58266         gl/.
58267
58268         2007-07-08  Jim Meyering  <jim@meyering.net>
58269
58270         Adapt to deeper hierarchy in gnulib.
58271         * build-aux/bootstrap (symlink_to_dir): If the destination
58272         directory doesn't exist, create it. This is required at least for
58273         "lib/uniwidth/cjk.h".
58274
58275         2007-05-15  Jim Meyering  <jim@meyering.net>
58276
58277         * build-aux/bootstrap: Now that generated Makefile.am files
58278         are no longer under version control, they must be created at
58279         bootstrap time.
58280
58281 2007-08-14  Ben Pfaff  <blp@gnu.org>
58282
58283         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58284
58285 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58286
58287         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58288         given the changes below.
58289         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58290         even on hosts that have padding bits beyond the supported 64.
58291
58292 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58293
58294         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58295         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58296         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58297         depends on it.
58298         (xstrtol_error): Remove.
58299         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58300         but with a different signature.
58301         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58302         * lib/xstrtol-error.c: Include exitfail.h.
58303         (xstrtol_fatal): New function, with a different signature from the
58304         old xstrtol_error, so that the caller need not worry about passing
58305         in an exit status, or about storage management of the option argument.
58306         (xstrtol_error): Now a static function.  Redo signature to
58307         implement xstrtol_fatal.  Output the correct number of hyphens in
58308         front of the option so that the caller need not worry about
58309         storage management.
58310         (N_): New macro.
58311         (_): Remove; not used now.
58312         * modules/xstrtol: Depend on getopt.
58313         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58314         of old STRTOL_FATAL_ERROR macro.
58315         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58316         of test program.
58317         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58318         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58319
58320 2007-08-08  Eric Blake  <ebb9@byu.net>
58321
58322         * lib/xstrtol-error.c: Add missing include.
58323
58324         Move xstrtol messages into gnulib domain, when --pobase is used.
58325         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58326         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58327         * modules/xstrtol (Files): Distribute new file.
58328         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58329         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58330         * tests/test-xstrtol.c: ...into new file.
58331         * tests/test-xstrtoul.c: Also test xstrtoul.
58332         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58333         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58334         * tests/test-xstrtol.sh: Drive the tests.
58335         * tests/test-xstrtoimax.sh: Likewise.
58336         * tests/test-xstrtoumax.sh: Likewise.
58337         * modules/xstrtol-tests: New module.
58338         * modules/xstrtoimax-tests: Likewise.
58339         * modules/xstrtoumax-tests: Likewise.
58340
58341 2007-08-08  Jim Meyering  <jim@meyering.net>
58342
58343         New function: mfile_name_concat.
58344         * lib/filenamecat.c (mfile_name_concat): New function, just like
58345         file_name_concat, but return NULL upon failure rather than exiting
58346         with a diagnostic.
58347         * lib/filenamecat.h: Declare it.
58348
58349 2007-08-07  Bruno Haible  <bruno@clisp.org>
58350
58351         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58352         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58353         warning from gcc.
58354         Reported by Eric Blake.
58355
58356 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58357
58358         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58359         * modules/crypto/arcfour (License): Likewise.
58360         * modules/crypto/des-tests (License): Likewise.
58361         * modules/crypto/gc-arctwo-tests (License): Likewise.
58362         * modules/crypto/gc-des-tests (License): Likewise.
58363         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58364         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58365         * modules/crypto/gc-md2-tests (License): Likewise.
58366         * modules/crypto/gc-md4-tests (License): Likewise.
58367         * modules/crypto/gc-md5-tests (License): Likewise.
58368         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58369         * modules/crypto/gc-rijndael-tests (License): Likewise.
58370         * modules/crypto/gc-sha1-tests (License): Likewise.
58371         * modules/crypto/gc-tests (License): Likewise.
58372         * modules/crypto/hmac-md5 (License): Likewise.
58373         * modules/crypto/hmac-sha1 (License): Likewise.
58374         * modules/crypto/md2-tests (License): Likewise.
58375         * modules/crypto/md4-tests (License): Likewise.
58376         * modules/crypto/md5 (License): Likewise.
58377         * modules/crypto/rijndael (License): Likewise.
58378         * modules/crypto/sha1 (License): Likewise.
58379         * modules/memxor (License): Likewise.
58380
58381 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58382         and Bruno Haible  <bruno@clisp.org>
58383
58384         * NEWS: Describe interface changes to human, xstrtol.
58385         * lib/human.h: Include <xstrtol.h>.
58386         (human_options): Return enum strtol_error, not int.  Remove
58387         bool arg; take int * instead.
58388         * lib/human.c: Don't include "gettext.h".
58389         (_): Remove; no longer used.
58390         Don't include <xstrtol.h>, since human.h does it.
58391         (human_options): Adjust to abovementioned interface changes.
58392         Do not report error to stderr; that's now the caller's
58393         responsibility.
58394         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58395         interface change.
58396         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58397         Str, Argument_type_string.  All uses changed.  Put " argument"
58398         in diagnostics to make them clearer.  Change wording of suffix
58399         message for clarity.
58400         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58401         Argument_type_string.
58402         (STRTOL_FATAL_WARN): Remove; no longer used.
58403         * modules/human (Depends-on): Remove gettext-h.
58404
58405 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58406
58407         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58408
58409 2007-07-31  Bruno Haible  <bruno@clisp.org>
58410
58411         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58412         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58413         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58414
58415 2007-07-31  Bruno Haible  <bruno@clisp.org>
58416
58417         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58418         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58419
58420 2007-07-30  Bruno Haible  <bruno@clisp.org>
58421
58422         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58423         * modules/c-ctype (License): Likewise.
58424         * modules/c-strcase (License): Likewise.
58425         * modules/check-version (License): Likewise.
58426         * modules/iconv (License): Likewise.
58427         * modules/iconv_open (License): Likewise.
58428         * modules/read-file (License): Likewise.
58429         * modules/striconv (License): Likewise.
58430         * modules/strverscmp (License): Likewise.
58431         * modules/vasprintf (License): Likewise.
58432         * modules/crypto/des (License): Likewise.
58433         * modules/crypto/gc (License): Likewise.
58434         * modules/crypto/gc-arcfour (License): Likewise.
58435         * modules/crypto/gc-arctwo (License): Likewise.
58436         * modules/crypto/gc-des (License): Likewise.
58437         * modules/crypto/gc-hmac-md5 (License): Likewise.
58438         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58439         * modules/crypto/gc-md2 (License): Likewise.
58440         * modules/crypto/gc-md4 (License): Likewise.
58441         * modules/crypto/gc-md5 (License): Likewise.
58442         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58443         * modules/crypto/gc-random (License): Likewise.
58444         * modules/crypto/gc-rijndael (License): Likewise.
58445         * modules/crypto/gc-sha1 (License): Likewise.
58446         * modules/crypto/md2 (License): Likewise.
58447         * modules/crypto/md4 (License): Likewise.
58448
58449 2007-07-30  Jim Meyering  <jim@meyering.net>
58450
58451         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58452         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58453         it has valid stat data.  This bug would cause du not to count the
58454         sizes of inaccessible directories.
58455         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58456         in <http://bugzilla.redhat.com/250077>.
58457
58458 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58459             Bruno Haible  <bruno@clisp.org>
58460
58461         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58462         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58463         #include_next, gives a diagnostic about it, but reports no error in
58464         the exit code.
58465         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58466
58467 2007-07-24  Ben Pfaff  <blp@gnu.org>
58468
58469         Improve name: "count-one-bits" is better than "popcount".
58470         * MODULES.html.sh: Update name.
58471         * lib/popcount.h: Renamed lib/count-one-bits.h.
58472         (popcount): Renamed count_one_bits.
58473         (popcountl): Renamed count_one_bits_l.
58474         (popcountll): Renamed count_one_bits_ll.
58475         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58476         * modules/popcount: Renamed module/count-one-bits.
58477         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58478         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58479
58480 2007-07-23  Ben Pfaff  <blp@gnu.org>
58481
58482         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58483         better code generation, and add U to large constants to avoid
58484         warnings, in non-GCC case.
58485         Suggested by Bruno Haible.
58486
58487 2007-07-23  Ben Pfaff  <blp@gnu.org>
58488
58489         * lib/popcount.h: Use verify_true instead of if...abort.
58490         * modules/popcount: Depend on verify module.
58491         Suggested by Jim Meyering.
58492
58493 2007-07-23  Bruno Haible  <bruno@clisp.org>
58494
58495         * gnulib-tool (func_import): Create a .cvsignore file also when the
58496         directory is not yet in CVS but the toplevel directory is. When
58497         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58498         Reported by Karl Berry.
58499
58500 2007-07-22  Ben Pfaff  <blp@gnu.org>
58501
58502         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58503         case.
58504         Suggested by Eric Blake.
58505
58506 2007-07-22  Ben Pfaff  <blp@gnu.org>
58507
58508         New module: popcount.
58509         * MODULES.html.sh: Add popcount.
58510         * modules/popcount: New file.
58511         * modules/popcount-tests: New file.
58512         * tests/test-popcount.c: New file.
58513         * lib/popcount.h: New file.
58514         * m4/popcount.m4: New file.
58515
58516 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58517
58518         * build-aux/announce-gen: Update to GPLv3.
58519
58520         * build-aux/config.guess: Update from config.
58521
58522 2007-07-21  Bruno Haible  <bruno@clisp.org>
58523
58524         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58525         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58526
58527 2007-07-20  Jim Meyering  <jim@meyering.net>
58528
58529         * check-module: Diagnose a self-dependency.
58530
58531 2007-07-19  Bruno Haible  <bruno@clisp.org>
58532
58533         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58534         empty.
58535         Reported by Eric Blake.
58536
58537 2007-07-18  Bruno Haible  <bruno@clisp.org>
58538
58539         * gnulib-tool: New options --po-base, --po-domain.
58540         (func_usage): Document them.
58541         (pobase, po_domain): New variables.
58542         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58543         DEFAULT_TEXT_DOMAIN.
58544         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58545         (func_import): Consider pobase and po_domain. Create a po/ directory.
58546         (func_create_testdir): Set pobase and po_domain to empty.
58547         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58548         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58549
58550 2007-07-18  Bruno Haible  <bruno@clisp.org>
58551
58552         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58553         EXTRA_DIST augmentation for files in build-aux/.
58554
58555 2007-07-16  Bruno Haible  <bruno@clisp.org>
58556
58557         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58558         * modules/getdelim (License): Likewise.
58559
58560 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58561
58562         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58563         * modules/d-type (License): Likewise.
58564         * modules/extensions (License): Likewise.
58565         * modules/fnmatch (License): Likewise.
58566         * modules/fseeko (License): Likewise.
58567         * modules/getaddrinfo (License): Likewise.
58568         * modules/getline (License): Likewise.
58569         * modules/getlogin_r (License): Likewise.
58570         * modules/getpass (License): Likewise.
58571         * modules/gettimeofday (License): Likewise.
58572         * modules/glob (License): Likewise.
58573         * modules/inet_ntop (License): Likewise.
58574         * modules/malloc (License): Likewise.
58575         * modules/malloca (License): Likewise.
58576         * modules/memmem (License): Likewise.
58577         * modules/mempcpy (License): Likewise.
58578         * modules/memset (License): Likewise.
58579         * modules/minmax (License): Likewise.
58580         * modules/mktime (License): Likewise.
58581         * modules/netinet_in (License): Likewise.
58582         * modules/pathmax (License): Likewise.
58583         * modules/poll (License): Likewise.
58584         * modules/regex (License): Likewise.
58585         * modules/snprintf (License): Likewise.
58586         * modules/stdbool (License): Likewise.
58587         * modules/stdint (License): Likewise.
58588         * modules/stdio (License): Likewise.
58589         * modules/strcase (License): Likewise.
58590         * modules/strcasestr (License): Likewise.
58591         * modules/strdup (License): Likewise.
58592         * modules/string (License): Likewise.
58593         * modules/strndup (License): Likewise.
58594         * modules/strnlen (License): Likewise.
58595         * modules/strpbrk (License): Likewise.
58596         * modules/strptime (License): Likewise.
58597         * modules/strsep (License): Likewise.
58598         * modules/sys_select (License): Likewise.
58599         * modules/sys_socket (License): Likewise.
58600         * modules/sys_stat (License): Likewise.
58601         * modules/sys_time (License): Likewise.
58602         * modules/time (License): Likewise.
58603         * modules/time_r (License): Likewise.
58604         * modules/timegm (License): Likewise.
58605         * modules/unistd (License): Likewise.
58606         * modules/vsnprintf (License): Likewise.
58607         * modules/wctype (License): Likewise.
58608
58609 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58610
58611         * modules/argz (License): LGPLv2+.
58612
58613 2007-07-15  Karl Berry  <karl@gnu.org>
58614
58615         * doc/gnulib.texi: revise node structure per new fdl.texi.
58616
58617 2007-07-14  Bruno Haible  <bruno@clisp.org>
58618
58619         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58620         the output file.
58621         * lib/uniname/uninames.h: Regenerated.
58622
58623 2007-07-14  Karl Berry  <karl@gnu.org>
58624
58625         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58626         omitting sectioning and index commands.
58627
58628 2007-07-13  Bruno Haible  <bruno@clisp.org>
58629
58630         New gnulib-tool option --more-symlinks.
58631         * gnulib-tool (func_usage): Document --more-symlinks.
58632         (do_copyrights): New variable.
58633         Recognize option --more-symlinks.
58634         (func_import): Don't add a copyright notice transform to
58635         sed_transform_lib_file if do_copyrights is empty.
58636
58637 2007-07-13  Bruno Haible  <bruno@clisp.org>
58638
58639         * lib/vasnprintf.c (decimal_point_char): Define also if
58640         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58641         && !NEED_PRINTF_DIRECTIVE_A.
58642         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58643         Gary V. Vaughan <gary@gnu.org>.
58644
58645 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58646
58647         * lib/inttypes_.h: Undo previous change, since it was fixed
58648         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58649
58650 2007-07-13  Bruno Haible  <bruno@clisp.org>
58651
58652         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58653         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58654
58655 2007-07-13  Jim Meyering  <jim@meyering.net>
58656
58657         df: Don't fail for Tru64's "file-on-file mount".
58658         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58659         so we fall through and use statfs instead.  Details here:
58660         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58661         Reported by Albert Chin.
58662
58663 2007-07-13  Bruno Haible  <bruno@clisp.org>
58664
58665         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58666         * modules/configmake (License): Likewise.
58667         * modules/gettext (License): Likewise.
58668         * modules/gettext-h (License): Likewise.
58669         * modules/include_next (License): Likewise.
58670         * modules/link-warning (License): Likewise.
58671         * modules/localcharset (License): Likewise.
58672         * modules/localename (License): Likewise.
58673         * modules/lock (License): Likewise.
58674         * modules/relocatable-lib-lgpl (License): Likewise.
58675         * modules/size_max (License): Likewise.
58676         * modules/vasnprintf (License): Likewise.
58677         * modules/wchar (License): Likewise.
58678         * modules/xsize (License): Likewise.
58679
58680 2007-07-13  Bruno Haible  <bruno@clisp.org>
58681
58682         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58683         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58684
58685 2007-07-12  Bruno Haible  <bruno@clisp.org>
58686
58687         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58688         in the modules files.
58689
58690 2007-07-11  Karl Berry  <karl@gnu.org>
58691
58692         * MODULES.html.sh (func_module): use
58693          sed -e '\|^'"${includefile}"'$|d'
58694          instead of /.../d, to avoid errors on $includefile's containing /.
58695
58696 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58697
58698         * gnulib-tool (func_import): Avoid duplication of --avoid
58699         statements
58700         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58701         names to `_' in variable names.
58702
58703 2007-07-10  Eric Blake  <ebb9@byu.net>
58704
58705         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58706         * NEWS: Document this change.
58707
58708 2007-07-08  Bruno Haible  <bruno@clisp.org>
58709
58710         Update to Unicode 5.0.
58711         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58712         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58713         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58714         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58715         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58716         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58717         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58718         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58719         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58720         U+10A3F, U+1D242..U+1D244.
58721         (nonspacing_table_ind): Update.
58722         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58723         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58724
58725 2007-07-08  Bruno Haible  <bruno@clisp.org>
58726
58727         Update to Unicode 5.0.
58728         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58729         code transform. Extend the name index field of unicode_name_to_code and
58730         unicode_code_to_name from 16 to 24 bits.
58731         * lib/uniname/uniname.c (unicode_character_name,
58732         unicode_name_character): Add the range 0x12xxx to the code transform.
58733         * lib/uniname/uninames.h: Regenerated.
58734         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58735
58736 2007-07-07  Bruno Haible  <bruno@clisp.org>
58737
58738         * modules/wcwidth-tests: New file.
58739         * tests/test-wcwidth.c: New file.
58740
58741         Work around MacOS X wcwidth() bug.
58742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58743         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58744         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58745         original wcwidth in non-UTF-8 locales.
58746         * modules/wcwidth (Depends-on): Add localcharset, streq,
58747         uniwidth/width.
58748         * doc/functions/wcwidth.texi: Update.
58749
58750 2007-07-07  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58753         (wcwidth): New declaration.
58754         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58755         macros.
58756         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58757         here. Prepare for creating <wchar.h> unconditionally.
58758         * modules/wchar (Depends-on): Add link-warning.
58759         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58760         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58761         * lib/wcwidth.h: Remove file.
58762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58763         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58764         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58765         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58766         (Include): Replace wcwidth.h with <wchar.h>.
58767         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58768         * lib/mbchar.h: Don't include wcwidth.h.
58769         * lib/mbswidth.c: Likewise.
58770         * NEWS: Mention the change.
58771
58772 2007-07-07  Bruno Haible  <bruno@clisp.org>
58773
58774         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58775         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58776         definition with an external declaration.
58777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58778         defined as a function. Remove AC_C_INLINE requirement.
58779         * modules/wcwidth (Files): Add lib/wcwidth.c.
58780         (Makefile.am): Remove redundant statement.
58781
58782 2007-07-07  Bruno Haible  <bruno@clisp.org>
58783
58784         * MODULES.html.sh (Unicode string functions): Add the new modules.
58785
58786         * tests/uniwidth/test-u32-strwidth.c: New file.
58787         * modules/uniwidth/u32-strwidth-tests: New file.
58788
58789         * lib/uniwidth/u32-strwidth.c: New file.
58790         * modules/uniwidth/u32-strwidth: New file.
58791
58792         * tests/uniwidth/test-u16-strwidth.c: New file.
58793         * modules/uniwidth/u16-strwidth-tests: New file.
58794
58795         * lib/uniwidth/u16-strwidth.c: New file.
58796         * modules/uniwidth/u16-strwidth: New file.
58797
58798         * tests/uniwidth/test-u8-strwidth.c: New file.
58799         * modules/uniwidth/u8-strwidth-tests: New file.
58800
58801         * lib/uniwidth/u8-strwidth.c: New file.
58802         * modules/uniwidth/u8-strwidth: New file.
58803
58804         * tests/uniwidth/test-u32-width.c: New file.
58805         * modules/uniwidth/u32-width-tests: New file.
58806
58807         * lib/uniwidth/u32-width.c: New file.
58808         * modules/uniwidth/u32-width: New file.
58809
58810         * tests/uniwidth/test-u16-width.c: New file.
58811         * modules/uniwidth/u16-width-tests: New file.
58812
58813         * lib/uniwidth/u16-width.c: New file.
58814         * modules/uniwidth/u16-width: New file.
58815
58816         * tests/uniwidth/test-u8-width.c: New file.
58817         * modules/uniwidth/u8-width-tests: New file.
58818
58819         * lib/uniwidth/u8-width.c: New file.
58820         * modules/uniwidth/u8-width: New file.
58821
58822         * tests/uniwidth/test-uc_width.c: New file.
58823         * modules/uniwidth/width-tests: New file.
58824
58825         * lib/uniwidth/width.c: New file, from GNU libiconv.
58826         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58827         * modules/uniwidth/width: New file.
58828
58829         * lib/uniwidth.h: New file, from GNU libiconv.
58830         * modules/uniwidth/base: New file.
58831
58832 2007-07-07  Bruno Haible  <bruno@clisp.org>
58833
58834         * lib/uniname.h: New file, from GNU gettext.
58835         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58836         * lib/uniname/uninames.h: New file, from GNU gettext.
58837         * lib/uniname/uniname.c: New file, from GNU gettext.
58838         * tests/uniname/test-uninames.sh: New file.
58839         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58840         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58841         * modules/uniname/base: New file.
58842         * modules/uniname/uniname: New file.
58843         * modules/uniname/uniname-tests: New file.
58844         * MODULES.html.sh (Unicode string functions): Add the new modules.
58845
58846 2007-07-06  Bruno Haible  <bruno@clisp.org>
58847
58848         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58849
58850 2007-07-06  Bruno Haible  <bruno@clisp.org>
58851
58852         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58853         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58854         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58855         include <sys/time.h>.
58856         Reported by Eric Blake.
58857
58858 2007-07-06  Eric Blake  <ebb9@byu.net>
58859
58860         Fix testing canonicalize on cygwin.
58861         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58862         Revert patch from 2007-06-19.
58863         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58864         canonicalize module is also in use.
58865         * tests/test-canonicalize.c: New file.
58866         * tests/test-canonicalize.sh: Likewise.
58867         * modules/canonicalize-tests: Likewise.
58868
58869 2007-07-06  Jim Meyering  <jim@meyering.net>
58870
58871         * lib/getugroups.c (getugroups): Detect getgrent failure.
58872         Adjust comment to reflect reality: this function may return -1.
58873
58874 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58875
58876         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58877         the new TP address.
58878         (usage): Fix typo
58879         (gnulib_mk): New variable.
58880
58881 2007-07-05  Jim Meyering  <jim@meyering.net>
58882
58883         Don't let endgrent clobber errno, no matter how improbable.
58884         * lib/getugroups.c (getugroups): Save and restore errno around
58885         endgrent call.
58886
58887         Close the group DB even when failing with 2^31 or more members.
58888         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58889
58890 2007-07-04  Jim Meyering  <jim@meyering.net>
58891
58892         * lib/getugroups.h: New file.
58893         * lib/getugroups.c: Include "getugroups.h".
58894         Remove uses of "register" keyword.
58895         Move local variable, "cp", down into scope where used.
58896         Give "username" parameter the "const" attribute.
58897         * modules/getugroups (Files): Add lib/getugroups.h
58898
58899 2007-07-04  Karl Berry  <karl@gnu.org>
58900
58901         * MODULES.html.sh (func_all_modules): Complete rename of
58902         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58903
58904 2007-07-02  Bruno Haible  <bruno@clisp.org>
58905
58906         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58907         mode, when inttypes.h comes from gnulib.
58908         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58909
58910 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58911
58912         * NEWS: Mention lgpl module name change.
58913
58914         * modules/lgpl-2.1: Renamed from lgpl.
58915
58916         * NEWS: Mention gpl module name change.
58917
58918         * modules/gpl-3.0: New file, based on gpl-2.0.
58919
58920         * modules/gpl-2.0: Renamed from gpl.
58921
58922         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58923         doc/gpl-2.0.texi.
58924
58925 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58926
58927         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58928         #define __STDC_LIMIT_MACROS temporarily while including
58929         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58930         Problem reported by Joel E. Denny in
58931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58932
58933 2007-07-01  Bruno Haible  <bruno@clisp.org>
58934
58935         * lib/unistdio.h: New file.
58936         * lib/unistdio/u-asnprintf.h: New file.
58937         * lib/unistdio/u-asprintf.h: New file.
58938         * lib/unistdio/u-printf-args.c: New file.
58939         * lib/unistdio/u-printf-args.h: New file.
58940         * lib/unistdio/u-printf-parse.h: New file.
58941         * lib/unistdio/u-snprintf.h: New file.
58942         * lib/unistdio/u-sprintf.h: New file.
58943         * lib/unistdio/u-vasprintf.h: New file.
58944         * lib/unistdio/u-vsnprintf.h: New file.
58945         * lib/unistdio/u-vsprintf.h: New file.
58946         * lib/unistdio/ulc-asnprintf.c: New file.
58947         * lib/unistdio/ulc-asprintf.c: New file.
58948         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58949         * lib/unistdio/ulc-printf-parse.c: New file.
58950         * lib/unistdio/ulc-snprintf.c: New file.
58951         * lib/unistdio/ulc-sprintf.c: New file.
58952         * lib/unistdio/ulc-vasnprintf.c: New file.
58953         * lib/unistdio/ulc-vasprintf.c: New file.
58954         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58955         * lib/unistdio/ulc-vsnprintf.c: New file.
58956         * lib/unistdio/ulc-vsprintf.c: New file.
58957         * lib/unistdio/u8-asnprintf.c: New file.
58958         * lib/unistdio/u8-asprintf.c: New file.
58959         * lib/unistdio/u8-printf-parse.c: New file.
58960         * lib/unistdio/u8-snprintf.c: New file.
58961         * lib/unistdio/u8-sprintf.c: New file.
58962         * lib/unistdio/u8-vasnprintf.c: New file.
58963         * lib/unistdio/u8-vasprintf.c: New file.
58964         * lib/unistdio/u8-vsnprintf.c: New file.
58965         * lib/unistdio/u8-vsprintf.c: New file.
58966         * lib/unistdio/u8-u8-asnprintf.c: New file.
58967         * lib/unistdio/u8-u8-asprintf.c: New file.
58968         * lib/unistdio/u8-u8-snprintf.c: New file.
58969         * lib/unistdio/u8-u8-sprintf.c: New file.
58970         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58971         * lib/unistdio/u8-u8-vasprintf.c: New file.
58972         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58973         * lib/unistdio/u8-u8-vsprintf.c: New file.
58974         * lib/unistdio/u16-asnprintf.c: New file.
58975         * lib/unistdio/u16-asprintf.c: New file.
58976         * lib/unistdio/u16-printf-parse.c: New file.
58977         * lib/unistdio/u16-snprintf.c: New file.
58978         * lib/unistdio/u16-sprintf.c: New file.
58979         * lib/unistdio/u16-vasnprintf.c: New file.
58980         * lib/unistdio/u16-vasprintf.c: New file.
58981         * lib/unistdio/u16-vsnprintf.c: New file.
58982         * lib/unistdio/u16-vsprintf.c: New file.
58983         * lib/unistdio/u16-u16-asnprintf.c: New file.
58984         * lib/unistdio/u16-u16-asprintf.c: New file.
58985         * lib/unistdio/u16-u16-snprintf.c: New file.
58986         * lib/unistdio/u16-u16-sprintf.c: New file.
58987         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58988         * lib/unistdio/u16-u16-vasprintf.c: New file.
58989         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58990         * lib/unistdio/u16-u16-vsprintf.c: New file.
58991         * lib/unistdio/u32-asnprintf.c: New file.
58992         * lib/unistdio/u32-asprintf.c: New file.
58993         * lib/unistdio/u32-printf-parse.c: New file.
58994         * lib/unistdio/u32-snprintf.c: New file.
58995         * lib/unistdio/u32-sprintf.c: New file.
58996         * lib/unistdio/u32-vasnprintf.c: New file.
58997         * lib/unistdio/u32-vasprintf.c: New file.
58998         * lib/unistdio/u32-vsnprintf.c: New file.
58999         * lib/unistdio/u32-vsprintf.c: New file.
59000         * lib/unistdio/u32-u32-asnprintf.c: New file.
59001         * lib/unistdio/u32-u32-asprintf.c: New file.
59002         * lib/unistdio/u32-u32-snprintf.c: New file.
59003         * lib/unistdio/u32-u32-sprintf.c: New file.
59004         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59005         * lib/unistdio/u32-u32-vasprintf.c: New file.
59006         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59007         * lib/unistdio/u32-u32-vsprintf.c: New file.
59008         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59009         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59010         * tests/unistdio/test-ulc-printf1.h: New file.
59011         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59012         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59013         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59014         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59015         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59016         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59017         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59018         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59019         * tests/unistdio/test-u8-asnprintf1.c: New file.
59020         * tests/unistdio/test-u8-asnprintf1.h: New file.
59021         * tests/unistdio/test-u8-printf1.h: New file.
59022         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59023         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59024         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59025         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59026         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59027         * tests/unistdio/test-u8-vasprintf1.c: New file.
59028         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59029         * tests/unistdio/test-u8-vsprintf1.c: New file.
59030         * tests/unistdio/test-u16-asnprintf1.c: New file.
59031         * tests/unistdio/test-u16-asnprintf1.h: New file.
59032         * tests/unistdio/test-u16-printf1.h: New file.
59033         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59034         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59035         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59036         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59037         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59038         * tests/unistdio/test-u16-vasprintf1.c: New file.
59039         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59040         * tests/unistdio/test-u16-vsprintf1.c: New file.
59041         * tests/unistdio/test-u32-asnprintf1.c: New file.
59042         * tests/unistdio/test-u32-asnprintf1.h: New file.
59043         * tests/unistdio/test-u32-printf1.h: New file.
59044         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59045         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59046         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59047         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59048         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59049         * tests/unistdio/test-u32-vasprintf1.c: New file.
59050         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59051         * tests/unistdio/test-u32-vsprintf1.c: New file.
59052         * modules/unistdio/base: New file.
59053         * modules/unistdio/u-printf-args: New file.
59054         * modules/unistdio/ulc-asnprintf: New file.
59055         * modules/unistdio/ulc-asprintf: New file.
59056         * modules/unistdio/ulc-fprintf: New file.
59057         * modules/unistdio/ulc-printf-parse: New file.
59058         * modules/unistdio/ulc-snprintf: New file.
59059         * modules/unistdio/ulc-sprintf: New file.
59060         * modules/unistdio/ulc-vasnprintf: New file.
59061         * modules/unistdio/ulc-vasprintf: New file.
59062         * modules/unistdio/ulc-vfprintf: New file.
59063         * modules/unistdio/ulc-vsnprintf: New file.
59064         * modules/unistdio/ulc-vsprintf: New file.
59065         * modules/unistdio/u8-asnprintf: New file.
59066         * modules/unistdio/u8-asprintf: New file.
59067         * modules/unistdio/u8-printf-parse: New file.
59068         * modules/unistdio/u8-snprintf: New file.
59069         * modules/unistdio/u8-sprintf: New file.
59070         * modules/unistdio/u8-vasnprintf: New file.
59071         * modules/unistdio/u8-vasprintf: New file.
59072         * modules/unistdio/u8-vsnprintf: New file.
59073         * modules/unistdio/u8-vsprintf: New file.
59074         * modules/unistdio/u8-u8-asnprintf: New file.
59075         * modules/unistdio/u8-u8-asprintf: New file.
59076         * modules/unistdio/u8-u8-snprintf: New file.
59077         * modules/unistdio/u8-u8-sprintf: New file.
59078         * modules/unistdio/u8-u8-vasnprintf: New file.
59079         * modules/unistdio/u8-u8-vasprintf: New file.
59080         * modules/unistdio/u8-u8-vsnprintf: New file.
59081         * modules/unistdio/u8-u8-vsprintf: New file.
59082         * modules/unistdio/u16-asnprintf: New file.
59083         * modules/unistdio/u16-asprintf: New file.
59084         * modules/unistdio/u16-printf-parse: New file.
59085         * modules/unistdio/u16-snprintf: New file.
59086         * modules/unistdio/u16-sprintf: New file.
59087         * modules/unistdio/u16-vasnprintf: New file.
59088         * modules/unistdio/u16-vasprintf: New file.
59089         * modules/unistdio/u16-vsnprintf: New file.
59090         * modules/unistdio/u16-vsprintf: New file.
59091         * modules/unistdio/u16-u16-asnprintf: New file.
59092         * modules/unistdio/u16-u16-asprintf: New file.
59093         * modules/unistdio/u16-u16-snprintf: New file.
59094         * modules/unistdio/u16-u16-sprintf: New file.
59095         * modules/unistdio/u16-u16-vasnprintf: New file.
59096         * modules/unistdio/u16-u16-vasprintf: New file.
59097         * modules/unistdio/u16-u16-vsnprintf: New file.
59098         * modules/unistdio/u16-u16-vsprintf: New file.
59099         * modules/unistdio/u32-asnprintf: New file.
59100         * modules/unistdio/u32-asprintf: New file.
59101         * modules/unistdio/u32-printf-parse: New file.
59102         * modules/unistdio/u32-snprintf: New file.
59103         * modules/unistdio/u32-sprintf: New file.
59104         * modules/unistdio/u32-vasnprintf: New file.
59105         * modules/unistdio/u32-vasprintf: New file.
59106         * modules/unistdio/u32-vsnprintf: New file.
59107         * modules/unistdio/u32-vsprintf: New file.
59108         * modules/unistdio/u32-u32-asnprintf: New file.
59109         * modules/unistdio/u32-u32-asprintf: New file.
59110         * modules/unistdio/u32-u32-snprintf: New file.
59111         * modules/unistdio/u32-u32-sprintf: New file.
59112         * modules/unistdio/u32-u32-vasnprintf: New file.
59113         * modules/unistdio/u32-u32-vasprintf: New file.
59114         * modules/unistdio/u32-u32-vsnprintf: New file.
59115         * modules/unistdio/u32-u32-vsprintf: New file.
59116         * modules/unistdio/ulc-asnprintf-tests: New file.
59117         * modules/unistdio/ulc-vasnprintf-tests: New file.
59118         * modules/unistdio/ulc-vasprintf-tests: New file.
59119         * modules/unistdio/ulc-vsnprintf-tests: New file.
59120         * modules/unistdio/ulc-vsprintf-tests: New file.
59121         * modules/unistdio/u8-asnprintf-tests: New file.
59122         * modules/unistdio/u8-vasnprintf-tests: New file.
59123         * modules/unistdio/u8-vasprintf-tests: New file.
59124         * modules/unistdio/u8-vsnprintf-tests: New file.
59125         * modules/unistdio/u8-vsprintf-tests: New file.
59126         * modules/unistdio/u16-asnprintf-tests: New file.
59127         * modules/unistdio/u16-vasnprintf-tests: New file.
59128         * modules/unistdio/u16-vasprintf-tests: New file.
59129         * modules/unistdio/u16-vsnprintf-tests: New file.
59130         * modules/unistdio/u16-vsprintf-tests: New file.
59131         * modules/unistdio/u32-asnprintf-tests: New file.
59132         * modules/unistdio/u32-vasnprintf-tests: New file.
59133         * modules/unistdio/u32-vasprintf-tests: New file.
59134         * modules/unistdio/u32-vsnprintf-tests: New file.
59135         * modules/unistdio/u32-vsprintf-tests: New file.
59136         * MODULES.html.sh (Unicode string functions): Add the new modules.
59137
59138 2007-07-01  Bruno Haible  <bruno@clisp.org>
59139
59140         * lib/sprintf.c (sprintf): Limit the available length estimation,
59141         to avoid address wraparound.
59142         * lib/vsprintf.c (vsprintf): Likewise.
59143         * modules/sprintf-posix (Dependencies): Add stdint.
59144         * modules/vsprintf-posix (Dependencies): Likewise.
59145
59146 2007-07-01  Bruno Haible  <bruno@clisp.org>
59147
59148         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59149         Windows PATH as well. Conservative double-quoting. Comments.
59150
59151 2007-07-01  Bruno Haible  <bruno@clisp.org>
59152             Eric Blake  <ebb9@byu.net>
59153             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59154
59155         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59156         empty components in $PATH, denoting '.'.
59157
59158 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59159
59160         * gnulib-tool: Fix indentation.
59161         (func_create_megatestdir): Likewise.
59162         Report by Bruno Haible.
59163
59164 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59165
59166         Sync from Automake.
59167         * build-aux/gnupload: Fix shell portability issues with for loops.
59168         Report by Karl Berry.
59169
59170 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59171
59172         * build-aux/maint.mk (POURL): Use translationproject.org.
59173
59174 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59175             Bruno Haible  <bruno@clisp.org>
59176
59177         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59178         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59179         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59180         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59181         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59182
59183 2007-06-27  Bruno Haible  <bruno@clisp.org>
59184
59185         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59186         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59187
59188 2007-06-26  Karl Berry  <karl@gnu.org>
59189
59190         * MODULES.html.sh: remove xreadlink-with-size.
59191
59192 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59195         method that I hope also handles the double-include problem noted
59196         by Bruno Haible in
59197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59198
59199 2007-06-23  Bruno Haible  <bruno@clisp.org>
59200
59201         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59202         Don't let the 'mostlyclean' target fail if the last subdirectory could
59203         not be removed.
59204         Reported by Karl Berry.
59205
59206 2007-06-23  Bruno Haible  <bruno@clisp.org>
59207
59208         * gnulib-tool (echo): Add a speedier workaround for ksh.
59209         * tests/test-echo.sh: Likewise.
59210
59211 2007-06-23  Bruno Haible  <bruno@clisp.org>
59212
59213         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59214         * tests/test-echo.sh: Likewise.
59215
59216 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59217
59218         * gnulib-tool (IFS): Initialize early, so we don't set it to
59219         empty later.
59220         (self_abspathname): Rewrite algorithm to set it, reindent.
59221         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59222         (func_create_megatestdir): Merge some sed scripts.
59223
59224 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59225
59226         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59227         exposed by Sun Studio 11 cc on Solaris 8.
59228
59229 2007-06-22  Bruno Haible  <bruno@clisp.org>
59230
59231         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59232         backslashes.
59233         * tests/test-echo.sh: New file.
59234
59235 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59236
59237         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59238         simplify `sed_replace_build_aux' scripts, they are portable but
59239         echoing them with `echo' is not.
59240         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59241
59242 2007-06-21  Karl Berry  <karl@gnu.org>
59243
59244         * config/srclist.txt: guess we can't handle the licenses via
59245         srclist at the moment.
59246
59247 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59248
59249         * MODULES.html.sh: Add include_next.
59250         * modules/include_next: New file.
59251
59252 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59253
59254         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59255         INCLUDE_NEXT.
59256         (gl_CHECK_NEXT_HEADERS): New macro.
59257         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59258         the obsolescent gl_ABSOLUTE_HEADER.
59259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59260         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59261         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59262         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59263         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59264         * m4/math_h.m4 (gl_MATH_H): Likewise.
59265         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59266         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59267         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59268         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59269         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59270         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59271         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59272         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59273         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59274         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59275         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59276         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59277         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59278         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59279         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59280         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59281         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59282         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59283         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59284         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59285         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59286         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59287         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59288         * lib/float_.h: Likewise.
59289         * lib/inttypes_.h: Likewise.
59290         * lib/math_.h: Likewise.
59291         * lib/search_.h: Likewise.
59292         * lib/signal_.h: Likewise.
59293         * lib/stdint_.h: Likewise.
59294         * lib/stdio_.h: Likewise.
59295         * lib/stdlib_.h: Likewise.
59296         * lib/string_.h: Likewise.
59297         * lib/sys_stat_.h: Likewise.
59298         * lib/sys_time_.h: Likewise.
59299         * lib/time_.h: Likewise.
59300         * lib/unistd_.h: Likewise.
59301         * lib/wchar_.h: Likewise.
59302         * lib/wctype_.h: Likewise.
59303         * lib/dirent_.h: Likewise.
59304         * lib/iconv_.h: Likewise.
59305         * lib/locale_.h: Likewise.
59306         * lib/netinet_in_.h: Likewise.
59307         * lib/sys_select_.h: Likewise.
59308         * lib/sys_socket_.h: Likewise.
59309         * lib/sysexits_.h: Likewise.
59310         * modules/fcntl (Depends-on): Depend on include_next, not
59311         absolute_header.
59312         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59313         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59314         * modules/fchdir: Likewise.
59315         * modules/float: Likewise.
59316         * modules/iconv_open: Likewise.
59317         * modules/inttypes: Likewise.
59318         * modules/locale: Likewise.
59319         * modules/math: Likewise.
59320         * modules/netinet_in: Likewise.
59321         * modules/search: Likewise.
59322         * modules/signal: Likewise.
59323         * modules/stdint: Likewise.
59324         * modules/stdio: Likewise.
59325         * modules/stdlib: Likewise.
59326         * modules/string: Likewise.
59327         * modules/sys_select: Likewise.
59328         * modules/sys_socket: Likewise.
59329         * modules/sys_stat: Likewise.
59330         * modules/sys_time: Likewise.
59331         * modules/sysexits: Likewise.
59332         * modules/time: Likewise.
59333         * modules/unistd: Likewise.
59334         * modules/wchar: Likewise.
59335         * modules/wctype: Likewise.
59336         * modules/sys_stat: Change maintainer to "all".
59337         * modules/unistd: Likewise.
59338
59339 2007-06-20  Karl Berry  <karl@gnu.org>
59340
59341         * config/srclist.txt: track www changes in license files.
59342
59343 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59344
59345         * build-aux/bootstrap: Remove stray dot.
59346         Make sure build_aux settings are honored when linking
59347         gnulib_extra_files.
59348
59349 2007-06-19  Eric Blake  <ebb9@byu.net>
59350
59351         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59352         Allow compilation on cygwin.
59353
59354 2007-06-19  Jim Meyering  <jim@meyering.net>
59355
59356         xreadlink-with-size: Remove module.  No longer used.
59357         Ex-callers now use xreadlink or mreadlink-with-size.
59358         * modules/xreadlink-with-size: Remove module.
59359         * lib/xreadlink-with-size.c: Remove file.
59360         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59361         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59362         just before the function definition *is* accurate.
59363
59364         Eliminate one way canonicalize_filename_mode could exit.
59365         * lib/canonicalize.c (canonicalize_filename_mode):
59366         Use mreadlink_with_size, not xreadlink_with_size.
59367
59368 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59369
59370         Detect porting problems to FreeBSD/arm, which has time_t wider than
59371         long int.  Original problem reported for GNU diff by Xin Li in
59372         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59373         * modules/getdate (Depends-on): Add intprops, verify.
59374         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59375         is an integer type no wider than long int.
59376
59377 2007-06-18  Jim Meyering  <jim@meyering.net>
59378
59379         New module: mreadlink-with-size.
59380         * MODULES.html.sh: Add mreadlink-with-size.
59381         * modules/mreadlink-with-size: New module
59382         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59383         not xreadlink-with-size.
59384         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59385
59386 2007-06-16  Bruno Haible  <bruno@clisp.org>
59387
59388         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59389         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59390         Reported by Gary V. Vaughan <gary@gnu.org>.
59391
59392 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59393
59394         Revamp lchown so that it lives in unistd.h where it belongs.
59395         * lib/lchown.h: Remove.
59396         * lib/dirchownmod.c: Don't include lib/lchown.h.
59397         * lib/fchownat.c: Likewise.
59398         * lib/openat.c: Likewise.
59399         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59400         does not follow symlinks.
59401         (EOPNOTSUPP): Define if not defined.
59402         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59403         is defined to 0.
59404         (lchown): New decl.
59405         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59406         Do not check for lchown decl.
59407         Set REPLACE_LCHOWN.
59408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59409         REPLACE_LCHOWN.
59410         * modules/chown: Make it clear it follows symlinks.
59411         * modules/lchown: Make it clear it doesn't follow symlinks.
59412         (Files): Remove lib/lchown.h
59413         (Depends-on): Add unistd.
59414         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59415         (Include): Include <unistd.h>, not "lchown.h".
59416         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59417         REPLACE_LCHOWN.
59418
59419 2007-06-15  Jim Meyering  <jim@meyering.net>
59420
59421         Change license (GPL to LGPL) of fsusage and dependents.
59422         * modules/fsusage (License): Change to LGPL.
59423         * modules/full-read (License): Likewise.
59424         * modules/full-write (License): Likewise.
59425         * modules/safe-read (License): Likewise.
59426         * modules/safe-write (License): Likewise.
59427
59428 2007-06-14  Ben Pfaff  <blp@gnu.org>
59429
59430         Missing part of allocsa -> malloca transition.
59431         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59432         gl_MALLOCA.
59433
59434 2007-06-12  Bruno Haible  <bruno@clisp.org>
59435
59436         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59437         to ia64, x86_64, i386.
59438         Reported by Eric Blake.
59439
59440 2007-06-12  Bruno Haible  <bruno@clisp.org>
59441
59442         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59443         cross-compiling to x86_64.
59444
59445 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59446
59447         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59448         glitch reported by Ralf Wildenhues in
59449         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59450
59451         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59452         Vin Shelton.
59453
59454 2007-06-11  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59457         replacement string.
59458         Reported by Eric Blake.
59459
59460 2007-06-10  Bruno Haible  <bruno@clisp.org>
59461
59462         Prepare vasnprintf code for use with Unicode strings.
59463         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59464         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59465         TYPE_U32_STRING.
59466         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59467         a_u32_string variants.
59468         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59469         * lib/printf-args.c: Don't include config.h and the specification
59470         header if PRINTF_FETCHARGS is already defined.
59471         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59472         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59473         TYPE_U16_STRING, TYPE_U32_STRING.
59474         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59475         u16_directive, u16_directives, u32_directive, u32_directives): New
59476         types.
59477         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59478         New declarations.
59479         * lib/printf-parse.c: Don't include config.h and the specification
59480         header if PRINTF_PARSE is already defined. Eliminate the set of
59481         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59482         them now. Include c-ctype.h.
59483         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59484         directive and CHAR_T_ONLY_ASCII.
59485         * lib/vasnprintf.c: Don't include config.h and the specification header
59486         if VASNPRINTF is already defined.
59487         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59488         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59489         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59490         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59491         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59492         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59493         code accordingly.
59494         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59495         pad_ourselves also in this case, with the 'c' and 's' directives, and
59496         with a different notion of "width".
59497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59498
59499 2007-06-10  Bruno Haible  <bruno@clisp.org>
59500
59501         * modules/unistr/u32-mbsnlen: New file.
59502         * lib/unistr/u32-mbsnlen.c: New file.
59503
59504         * modules/unistr/u16-mbsnlen: New file.
59505         * lib/unistr/u16-mbsnlen.c: New file.
59506
59507         * modules/unistr/u8-mbsnlen: New file.
59508         * lib/unistr/u8-mbsnlen.c: New file.
59509
59510         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59511         declarations.
59512
59513 2007-06-10  Bruno Haible  <bruno@clisp.org>
59514
59515         * lib/string_.h (mbsnlen): New declaration.
59516         * lib/mbsnlen.c: New file.
59517         * m4/mbsnlen.m4: New file.
59518         * modules/mbsnlen: New file.
59519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59520         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59521         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59522
59523 2007-06-10  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59526
59527 2007-06-10  Bruno Haible  <bruno@clisp.org>
59528
59529         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59530         * lib/mbuiter.h: Likewise.
59531
59532 2007-06-10  Bruno Haible  <bruno@clisp.org>
59533
59534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59535         declaration.
59536
59537 2007-06-10  Karl Berry  <karl@gnu.org>
59538
59539         * config/srclist.txt: remove gettext entries, Bruno prefers
59540         to update individually.
59541
59542 2007-06-10  Bruno Haible  <bruno@clisp.org>
59543
59544         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59545         'maxlen'. Ensure only length + width bytes are allocated, not
59546         length + 1 + width.
59547
59548 2007-06-09  Bruno Haible  <bruno@clisp.org>
59549
59550         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59551         (CHAR_T): Remove macro.
59552         (VASNPRINTF): Update.
59553
59554 2007-06-09  Bruno Haible  <bruno@clisp.org>
59555
59556         * MODULES.html.sh (Unicode string functions): Add the new modules.
59557
59558         * modules/uniconv/u32-conv-to-enc: New file.
59559         * lib/uniconv/u32-conv-to-enc.c: New file.
59560         * modules/uniconv/u32-conv-to-enc-tests: New file.
59561         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59562
59563         * modules/uniconv/u16-conv-to-enc: New file.
59564         * lib/uniconv/u16-conv-to-enc.c: New file.
59565         * lib/uniconv/u-conv-to-enc.h: New file.
59566         * modules/uniconv/u16-conv-to-enc-tests: New file.
59567         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59568
59569         * modules/uniconv/u8-conv-to-enc: New file.
59570         * lib/uniconv/u8-conv-to-enc.c: New file.
59571         * modules/uniconv/u8-conv-to-enc-tests: New file.
59572         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59573
59574         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59575         u32_conv_to_encoding): New declarations.
59576
59577 2007-06-09  Bruno Haible  <bruno@clisp.org>
59578
59579         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59580
59581 2007-06-09  Bruno Haible  <bruno@clisp.org>
59582
59583         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59584         * modules/malloca: Renamed from modules/allocsa, updated.
59585         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59586         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59587         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59588         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59589         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59590         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59591         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59592         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59593         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59594         * modules/c-strcasestr (Depends-on): Update.
59595         * lib/c-strcasestr.c: Update.
59596         * modules/c-strstr (Depends-on): Update.
59597         * lib/c-strstr.c: Update.
59598         * modules/canonicalize-lgpl (Depends-on): Update.
59599         * lib/canonicalize-lgpl.c: Update.
59600         * modules/clean-temp (Depends-on): Update.
59601         * lib/clean-temp.c: Update.
59602         * modules/csharpcomp (Depends-on): Update.
59603         * lib/csharpcomp.c: Update.
59604         * modules/csharpexec (Depends-on): Update.
59605         * lib/csharpexec.c: Update.
59606         * modules/javacomp (Depends-on): Update.
59607         * lib/javacomp.c: Update.
59608         * modules/javaexec (Depends-on): Update.
59609         * lib/javaexec.c: Update.
59610         * modules/mbscasestr (Depends-on): Update.
59611         * lib/mbscasestr.c: Update.
59612         * modules/mbsstr (Depends-on): Update.
59613         * lib/mbsstr.c: Update.
59614         * modules/setenv (Depends-on): Update.
59615         * lib/setenv.c: Update.
59616         * modules/strcasestr (Depends-on): Update.
59617         * lib/strcasestr.c: Update.
59618         * modules/striconveha (Depends-on): Update.
59619         * lib/striconveha.c: Update.
59620         * modules/relocatable-prog-wrapper (Files): Update.
59621         * lib/relocwrapper.c: Update.
59622         * build-aux/install-reloc: Update.
59623         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59624
59625 2007-06-08  Bruno Haible  <bruno@clisp.org>
59626
59627         Port to uClibc.
59628         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59629         * lib/fpurge.c (fpurge): Likewise.
59630         * lib/freading.c (freading): Likewise.
59631         * lib/fseeko.c (rpl_fseeko): Likewise.
59632         * lib/fseterr.c (fseterr): Likewise.
59633         * lib/fwriting.c (fwriting): Likewise.
59634         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59635
59636 2007-06-08  Bruno Haible  <bruno@clisp.org>
59637
59638         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59639         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59640         * modules/gettext (Files): Add m4/intlmacosx.m4.
59641
59642 2007-06-07  Bruno Haible  <bruno@clisp.org>
59643
59644         * modules/localename-tests: New file.
59645         * tests/test-localename.c: New file.
59646
59647         New module 'localename'.
59648         * lib/localename.h: New file.
59649         * lib/localename.c: New file, from GNU gettext.
59650         * m4/localename.m4: New file.
59651         * modules/localename: New file.
59652
59653 2007-06-07  Bruno Haible  <bruno@clisp.org>
59654
59655         Work around the lack of <wchar.h> on some builds of uClibc.
59656         * doc/headers/wchar.texi: Update.
59657         * lib/wchar_.h: Include <wchar.h> only if it exists.
59658         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59659         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59660         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59661         doesn't exist.
59662         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59663         * modules/mbfile (Depends-on): Add wchar.
59664         * modules/mbiter (Depends-on): Likewise.
59665         * modules/mbuiter (Depends-on): Likewise.
59666         Reported by Simon Josefsson.
59667
59668 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59669
59670         Work around problem reported by Steven M. Schweda in
59671         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59672         Tru64 5.1B with the Compaq compiler environment installed declares
59673         an 'isblank' function but does not define it in the C library.
59674         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59675         * lib/regex_internal.h (isblank): Likewise.
59676         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59677         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59678
59679 2007-06-05  Bruno Haible  <bruno@clisp.org>
59680
59681         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59682         ia64.
59683         * modules/printf-safe: New file.
59684         * modules/fprintf-posix (Depends-on): Add printf-safe.
59685         * modules/printf-posix (Depends-on): Likewise.
59686         * modules/snprintf-posix (Depends-on): Likewise.
59687         * modules/sprintf-posix (Depends-on): Likewise.
59688         * modules/vasnprintf-posix (Depends-on): Likewise.
59689         * modules/vasprintf-posix (Depends-on): Likewise.
59690         * modules/vfprintf-posix (Depends-on): Likewise.
59691         * modules/vprintf-posix (Depends-on): Likewise.
59692         * modules/vsnprintf-posix (Depends-on): Likewise.
59693         * modules/vsprintf-posix (Depends-on): Likewise.
59694         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59695         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59696         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59697         "no" on i386, x86_64, ia64.
59698         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59699         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59700         on i386, x86_64, ia64.
59701         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59702         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59703         on i386, x86_64, ia64.
59704         * tests/test-vasnprintf-posix.c: Include float.h.
59705         (LDBL80_WORDS): New macro.
59706         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59707         on i386, x86_64, ia64.
59708         * tests/test-vasprintf-posix.c: Include float.h.
59709         (LDBL80_WORDS): New macro.
59710         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59711         on i386, x86_64, ia64.
59712         * tests/test-snprintf-posix.c: Include float.h.
59713         * tests/test-sprintf-posix.c: Likewise.
59714         * tests/test-vsnprintf-posix.c: Likewise.
59715         * tests/test-vsprintf-posix.c: Likewise.
59716
59717 2007-06-05  Bruno Haible  <bruno@clisp.org>
59718
59719         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59720         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59721         non-IEEE numbers on i386, x86_64, ia64.
59722         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59723         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59724         * tests/test-isnanl.h: Include float.h.
59725         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59726
59727 2007-06-05  Bruno Haible  <bruno@clisp.org>
59728
59729         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59730         also the %a / %A. Handle the %a / %A code before this extra handling.
59731
59732 2007-06-05  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59735         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59736
59737 2007-06-05  Bruno Haible  <bruno@clisp.org>
59738
59739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59740         typo in variable name.
59741
59742 2007-06-05  Eric Blake  <ebb9@byu.net>
59743
59744         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59745         Reported by Simon Josefsson.
59746
59747 2007-06-04  Bruno Haible  <bruno@clisp.org>
59748
59749         Avoid test failures on some PowerPC platforms.
59750         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59751         Define differently for PowerPC.
59752         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59753         Reported by Gary V. Vaughan <gary@gnu.org>.
59754
59755 2007-06-02  Bruno Haible  <bruno@clisp.org>
59756
59757         Fix test-stdint failure on FreeBSD/ia64.
59758         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59759         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59760         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59761         * doc/headers/stdint.texi: Update.
59762
59763 2007-06-01  Bruno Haible  <bruno@clisp.org>
59764
59765         * tests/test-binary-io.c (main): Pass a third argument to open().
59766         Reported by Gary V. Vaughan <gary@gnu.org>.
59767
59768 2007-06-01  Bruno Haible  <bruno@clisp.org>
59769
59770         * doc/functions/frexpl.texi: Update for mingw.
59771
59772 2007-06-01  Bruno Haible  <bruno@clisp.org>
59773
59774         * tests/test-lseek.c (main): Disable test of errno for invalid third
59775         argument.
59776         * doc/functions/lseek.texi: Update.
59777         Reported by Gary V. Vaughan <gary@gnu.org>.
59778
59779 2007-05-28  Bruno Haible  <bruno@clisp.org>
59780
59781         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59782
59783 2007-05-31  Eric Blake  <ebb9@byu.net>
59784
59785         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59786         cross compiling.
59787
59788 2007-05-30  Eric Blake  <ebb9@byu.net>
59789         and Bruno Haible  <bruno@clisp.org>
59790
59791         Work around mingw test failures exposed by m4-1.4.9b.
59792         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59793         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59794         moment.
59795
59796 2007-05-30  Bruno Haible  <bruno@clisp.org>
59797
59798         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59799         assuming that they are closed. Needed on HP-UX 11.
59800
59801 2007-05-29  Bruno Haible  <bruno@clisp.org>
59802
59803         Fix a problem with #include_next.
59804         * lib/dirent_.h: Split the double-inclusion guard.
59805         * lib/fcntl_.h: Likewise.
59806         * lib/float_.h: Likewise.
59807         * lib/iconv_.h: Likewise.
59808         * lib/inttypes_.h: Likewise.
59809         * lib/locale_.h: Likewise.
59810         * lib/math_.h: Likewise.
59811         * lib/netinet_in_.h: Likewise.
59812         * lib/search_.h: Likewise.
59813         * lib/signal_.h: Likewise.
59814         * lib/stdint_.h: Likewise.
59815         * lib/stdio_.h: Likewise.
59816         * lib/stdlib_.h: Likewise.
59817         * lib/string_.h: Likewise.
59818         * lib/sys_select_.h: Likewise.
59819         * lib/sys_socket_.h: Likewise.
59820         * lib/sys_stat_.h: Likewise.
59821         * lib/sys_time_.h: Likewise.
59822         * lib/sysexits_.h: Likewise.
59823         * lib/time_.h: Likewise.
59824         * lib/unistd_.h: Likewise.
59825         * lib/wchar_.h: Likewise.
59826         * lib/wctype_.h: Likewise.
59827
59828 2007-05-29  Bruno Haible  <bruno@clisp.org>
59829
59830         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59831         for the moment.
59832
59833 2007-05-29  Bruno Haible  <bruno@clisp.org>
59834
59835         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59836         invocation.
59837         Reported by Eric Blake.
59838
59839 2007-05-29  Bruno Haible  <bruno@clisp.org>
59840
59841         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59842         compiling case.
59843
59844 2007-05-29  Eric Blake  <ebb9@byu.net>
59845             Bruno Haible  <bruno@clisp.org>
59846
59847         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59848         cross compiles.
59849
59850 2007-05-28  Eric Blake  <ebb9@byu.net>
59851
59852         * modules/closein-tests (test_closein_LDADD): Support test on
59853         cygwin with libtool.
59854
59855 2007-05-28  Bruno Haible  <bruno@clisp.org>
59856
59857         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59858         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59859         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59860         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59861         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59862         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59863         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59864         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59865         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59866
59867 2007-05-28  Eric Blake  <ebb9@byu.net>
59868
59869         Unconditionally include <config.h> in unit tests.
59870         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59871         * tests/test-allocsa.c, tests/test-arcfour.c,
59872         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59873         tests/test-array_list.c, tests/test-array_oset.c,
59874         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59875         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59876         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59877         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59878         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59879         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59880         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59881         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59882         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59883         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59884         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59885         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59886         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59887         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59888         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59889         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59890         test-md5.c, test-memmem.c, test-printf-posix.c,
59891         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59892         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59893         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59894         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59895         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59896         test-vasnprintf-posix2.c, test-vasnprintf.c,
59897         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59898         test-vfprintf-posix.c, test-vprintf-posix.c,
59899         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59900         test-xvasprintf.c: Likewise.
59901
59902 2007-05-28  Bruno Haible  <bruno@clisp.org>
59903
59904         * gnulib-tool (func_import): Remember the --with-tests command-line
59905         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59906         Reported by Eric Blake.
59907
59908 2007-05-28  Bruno Haible  <bruno@clisp.org>
59909
59910         * modules/ftell-tests: New file.
59911         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59912         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59913
59914         * lib/ftell.c: New file.
59915         * modules/ftell: New file.
59916         * m4/ftell.m4: New file.
59917         * doc/functions/ftell.texi: Update.
59918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59919         REPLACE_FTELL.
59920         * lib/stdio_.h (rpl_ftell): New declaration.
59921         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59922         REPLACE_FTELL.
59923
59924 2007-05-28  Eric Blake  <ebb9@byu.net>
59925
59926         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59927
59928 2007-05-28  Bruno Haible  <bruno@clisp.org>
59929
59930         * modules/fseek-tests: New file.
59931         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59932         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59933
59934         * lib/fseek.c: New file.
59935         * modules/fseek: New file.
59936         * m4/fseek.m4: New file.
59937         * doc/functions/fseek.texi: Update.
59938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59939         REPLACE_FSEEK.
59940         * lib/stdio_.h (rpl_fseek): New declaration.
59941         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59942         REPLACE_FSEEK.
59943
59944 2007-05-28  Bruno Haible  <bruno@clisp.org>
59945
59946         * lib/stdio_.h (fflush): More comments.
59947
59948 2007-05-28  Bruno Haible  <bruno@clisp.org>
59949
59950         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59951         runtime test.
59952
59953 2007-05-28  Eric Blake  <ebb9@byu.net>
59954
59955         Improve lseek module.
59956         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59957         * lib/unistd_.h (lseek): Scale back link warning message.
59958         * tests/test-lseek.c: Beef up test.
59959         * tests/test-lseek.sh: Exercise more facets of lseek.
59960         Reported by Bruno Haible.
59961
59962 2007-05-28  Bruno Haible  <bruno@clisp.org>
59963
59964         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59965         to define.
59966
59967 2007-05-27  Bruno Haible  <bruno@clisp.org>
59968
59969         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59970
59971 2007-05-27  Bruno Haible  <bruno@clisp.org>
59972
59973         * modules/openmp: New file.
59974         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59975         Noah Misch.
59976
59977 2007-05-26  Bruno Haible  <bruno@clisp.org>
59978
59979         * modules/chdir-long (Depends-on): Add fchdir.
59980         * modules/chdir-safer (Depends-on): Likewise.
59981         * modules/fts (Depends-on): Likewise.
59982         * modules/fts-lgpl (Depends-on): Likewise.
59983         * modules/openat (Depends-on): Likewise.
59984         * modules/savewd (Depends-on): Likewise.
59985
59986 2007-05-24  Eric Blake  <ebb9@byu.net>
59987
59988         Fix lseek on mingw.
59989         * modules/lseek: New module.
59990         * m4/lseek.m4: New file.
59991         * lib/lseek.c: New file.
59992         * modules/lseek-tests: New file.
59993         * tests/test-lseek.c: New file.
59994         * tests/test-lseek.sh: New file.
59995         * MODULES.html.sh: Document lseek module.
59996         * modules/fflush (Depends-on): Add lseek, fseeko.
59997         * modules/fseeko (Depends-on): Likewise.
59998         * modules/ftello (Depends-on): Likewise.
59999         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60000         broken.
60001         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60002         broken.
60003         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60004         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60005         * lib/ftello.c (rpl_ftello): Likewise.
60006         * tests/test-fseeko.c (main): Test this.
60007         * tests/test-fseeko.sh: Likewise.
60008         * tests/test-ftello.c (main): Likewise.
60009         * tests/test-ftello.sh: Likewise.
60010         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60011         implies replacing fseek.
60012         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60013         HAVE_FTELLO.
60014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60015         * modules/unistd (Makefile.am): Likewise.
60016         * lib/unistd_.h (lseek): Declare a replacement.
60017         * doc/functions/lseek.texi (lseek): Document this fix.
60018         * doc/functions/fseek.texi (fseek): Likewise.
60019         * doc/functions/ftell.texi (ftell): Likewise.
60020
60021 2007-05-24  Bruno Haible  <bruno@clisp.org>
60022
60023         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60024         in the printed representation of a NaN.
60025         * tests/test-vasprintf-posix.c (test_function): Likewise.
60026         * tests/test-snprintf-posix.h (test_function): Likewise.
60027         * tests/test-sprintf-posix.h (test_function): Likewise.
60028         Reported by Eric Blake.
60029
60030 2007-05-23  Eric Blake  <ebb9@byu.net>
60031
60032         Fix fseeko/ftello on cygwin 1.5.24.
60033         * doc/functions/fseeko.texi (fseeko): Document the fix.
60034         * doc/functions/ftello.texi (ftello): Document the fix.
60035         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60036         * doc/functions/stdout.text (stdout): New file.
60037         * doc/functions/stderr.text (stderr): New file.
60038         * doc/gnulib.texi (Function Substitutes): Use new files.
60039         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60040         prior to 1.7.0.
60041         * tests/test-ftello.c (main): Likewise for ftello.
60042         * tests/test-fseeko.sh: New file.
60043         * tests/test-ftello.sh: New file.
60044         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60045         with seekable stdin.
60046         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60047         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60048         (gl_REPLACE_FSEEKO): New macro.
60049         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60050         * modules/fseeko (Files): Distribute fseeko.c.
60051         * modules/ftello (Files): Distribute ftello.c.
60052         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60053         mode.
60054         * lib/ftello.c (rpl_ftello): New file.
60055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60056         fseeko, ftello.
60057         (gl_STDIN_LARGE_OFFSET): New macro.
60058         * modules/stdio (Makefile.am): Perform the replacement.
60059         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60060
60061 2007-05-23  Bruno Haible  <bruno@clisp.org>
60062
60063         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60064         GNULIB_POSIXCHECK is defined.
60065
60066 2007-05-21  Bruno Haible  <bruno@clisp.org>
60067
60068         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60069         Check also the output for NaN arguments. When cross-compiling, guess
60070         no on IRIX.
60071         * lib/vasnprintf.c: Update comments.
60072         * tests/test-vasnprintf-posix.c (strisnan): New function.
60073         (test_function): Use it.
60074         * tests/test-vasprintf-posix.c (strisnan): New function.
60075         (test_function): Use it.
60076         * tests/test-snprintf-posix.h (strisnan): New function.
60077         (test_function): Use it.
60078         * tests/test-sprintf-posix.h (strisnan): New function.
60079         (test_function): Use it.
60080         Reported by Eric Blake.
60081
60082 2007-05-20  Bruno Haible  <bruno@clisp.org>
60083
60084         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60085         numbers that fails on BeOS.
60086         * doc/functions/frexpl.texi: Update.
60087
60088 2007-05-20  Jim Meyering  <jim@meyering.net>
60089
60090         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60091         forced upon us by glibc-2.6.
60092
60093 2007-05-20  Bruno Haible  <bruno@clisp.org>
60094
60095         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60096         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60097         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60098         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60099         NEED_PRINTF_INFINITE.
60100         (is_infinitel): New function.
60101         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60103         gl_PREREQ_VASNPRINTF_INFINITE.
60104         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60105         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60106         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60107         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60108         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60109         gl_PREREQ_VASNPRINTF_INFINITE.
60110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60113         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60114         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60116         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60117         * doc/functions/fprintf.texi: Update.
60118         * doc/functions/printf.texi: Update.
60119         * doc/functions/snprintf.texi: Update.
60120         * doc/functions/sprintf.texi: Update.
60121         * doc/functions/vfprintf.texi: Update.
60122         * doc/functions/vprintf.texi: Update.
60123         * doc/functions/vsnprintf.texi: Update.
60124         * doc/functions/vsprintf.texi: Update.
60125
60126 2007-05-20  Bruno Haible  <bruno@clisp.org>
60127
60128         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60129         was not found in libc.
60130         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60131
60132 2007-05-20  Bruno Haible  <bruno@clisp.org>
60133
60134         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60135         printed as "-nan" instead of "nan".
60136         * tests/test-vasprintf-posix.c (test_function): Likewise.
60137         * tests/test-snprintf-posix.h (test_function): Likewise.
60138         * tests/test-sprintf-posix.h (test_function): Likewise.
60139         Needed for HP-UX 11.
60140
60141 2007-05-20  Jim Meyering  <jim@meyering.net>
60142
60143         Fix buggy test for the fchownat-deref bug.
60144         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60145         symlink required for the run-test.  Without it, this test would
60146         always declare that fchownat doesn't work, and client code would
60147         unnecessarily use the replacement function with fixed libc.
60148         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60149         Reported by Greg Schafer.
60150
60151 2007-05-19  Bruno Haible  <bruno@clisp.org>
60152
60153         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60154         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60155         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60156         Needed for IRIX 6.5 and Solaris 2.5.1.
60157
60158 2007-05-19  Bruno Haible  <bruno@clisp.org>
60159
60160         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60161         (test_function): Skip tests involving -0.0 on platforms where
60162         -0.0 = 0.0.
60163         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60164         (test_function): Skip tests involving -0.0 on platforms where
60165         -0.0 = 0.0.
60166         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60167         (test_function): Skip tests involving -0.0 on platforms where
60168         -0.0 = 0.0.
60169         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60170         (test_function): Skip tests involving -0.0 on platforms where
60171         -0.0 = 0.0.
60172         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60173         tests.
60174         * tests/test-printf-posix.h (test_function): Likewise.
60175         * tests/test-printf-posix.output: Remove all -0.0 related results.
60176         Needed for IRIX 6.5.
60177
60178 2007-05-19  Bruno Haible  <bruno@clisp.org>
60179
60180         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60181         printed as "nan0x7fffffff" instead of "nan".
60182         * tests/test-vasprintf-posix.c (test_function): Likewise.
60183         * tests/test-snprintf-posix.h (test_function): Likewise.
60184         * tests/test-sprintf-posix.h (test_function): Likewise.
60185         * tests/test-fprintf-posix.h (NaN): Remove macro.
60186         (test_function): Remove all NaN related tests.
60187         * tests/test-printf-posix.h (NaN): Remove macro.
60188         (test_function): Remove all NaN related tests.
60189         * tests/test-printf-posix.output: Remove all NaN related results.
60190         Needed for IRIX 6.5.
60191
60192 2007-05-19  Bruno Haible  <bruno@clisp.org>
60193
60194         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60195         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60196
60197 2007-05-19  Bruno Haible  <bruno@clisp.org>
60198
60199         * lib/float_.h: New file.
60200         * m4/float_h.m4: New file.
60201         * modules/float: New file.
60202         * modules/isnanl (Dependencies): Add float.
60203         * modules/isnanl-nolibm (Dependencies): Likewise.
60204         * modules/mathl (Dependencies): Likewise.
60205         * modules/printf-frexpl (Dependencies): Likewise.
60206         * modules/signbit (Dependencies): Likewise.
60207         * modules/vasnprintf (Dependencies): Likewise.
60208         * doc/headers/float.texi: Update.
60209
60210 2007-05-19  Jim Meyering  <jim@meyering.net>
60211
60212         * lib/utimens.c (gl_futimens): Rename from futimens,
60213         now that glibc-2.6 declares futimens.
60214         * lib/utimens.h: Likewise.
60215
60216 2007-05-19  Bruno Haible  <bruno@clisp.org>
60217
60218         Avoid test failures on mingw.
60219         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60220         * tests/test-printf-posix.sh: Likewise.
60221         * tests/test-vfprintf-posix.sh: Likewise.
60222         * tests/test-vprintf-posix.sh: Likewise.
60223
60224 2007-05-19  Bruno Haible  <bruno@clisp.org>
60225
60226         Fix *printf result for NaN, Inf, -0.0 on mingw.
60227         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60228         * lib/vasnprintf.c: Include math.h and isnan.h.
60229         (is_infinite_or_zero): New function.
60230         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60231         values in the %f, %F, %e, %E, %g, %G directives.
60232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60234         gl_PRINTF_INFINITE and test its result. Invoke
60235         gl_PREREQ_VASNPRINTF_INFINITE.
60236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60237         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60238         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60239         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60240         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60242         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60243         * doc/functions/fprintf.texi: Update.
60244         * doc/functions/printf.texi: Update.
60245         * doc/functions/snprintf.texi: Update.
60246         * doc/functions/sprintf.texi: Update.
60247         * doc/functions/vfprintf.texi: Update.
60248         * doc/functions/vprintf.texi: Update.
60249         * doc/functions/vsnprintf.texi: Update.
60250         * doc/functions/vsprintf.texi: Update.
60251
60252 2007-05-19  Bruno Haible  <bruno@clisp.org>
60253
60254         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60255         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60256         Instead of multiplying with 10^k, set extra_zeroes to k.
60257         (scale10_round_long_double): Remove function.
60258
60259 2007-05-18  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60262         introduced on 2007-05-06.
60263
60264 2007-05-18  Bruno Haible  <bruno@clisp.org>
60265
60266         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60267         %g directives.
60268         * tests/test-vasprintf-posix.c (test_function): Likewise.
60269         * tests/test-snprintf-posix.h (test_function): Likewise.
60270         * tests/test-sprintf-posix.h (test_function): Likewise.
60271
60272 2007-05-18  Bruno Haible  <bruno@clisp.org>
60273
60274         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60275         (strmatch): New function.
60276         (test_function): Test the %f directive on numbers of various exponents.
60277         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60278         (strmatch): New function.
60279         (test_function): Test the %f directive on numbers of various exponents.
60280         * tests/test-snprintf-posix.h (strmatch): New function.
60281         (test_function): Test the %f directive on numbers of various exponents.
60282         * tests/test-sprintf-posix.h (strmatch): New function.
60283         (test_function): Test the %f directive on numbers of various exponents.
60284         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60285         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60286         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60287         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60288
60289 2007-05-18  Bruno Haible  <bruno@clisp.org>
60290
60291         Add support for 'long double' number output.
60292         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60293         * lib/vasnprintf.c: Include math.h and float+.h.
60294         (mp_limb_t): New type.
60295         (GMP_LIMB_BITS): New macro.
60296         (mp_twolimb_t): New type.
60297         (GMP_TWOLIMB_BITS): New macro.
60298         (mpn_t): New type.
60299         (multiply, divide, convert_to_decimal, decode_long_double,
60300         scale10_round_long_double, scale10_round_decimal_long_double,
60301         floorlog10l): New functions.
60302         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60303         for the %f, %F, %e, %E, %g, %G directives.
60304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60305         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60306         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60307         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60308         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60309         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60310         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60311         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60312         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60313         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60314         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60315         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60316         * modules/snprintf-posix (Depends-on): Likewise.
60317         * modules/sprintf-posix (Depends-on): Likewise.
60318         * modules/vasnprintf-posix (Depends-on): Likewise.
60319         * modules/vasprintf-posix (Depends-on): Likewise.
60320         * modules/vfprintf-posix (Depends-on): Likewise.
60321         * modules/vsnprintf-posix (Depends-on): Likewise.
60322         * modules/vsprintf-posix (Depends-on): Likewise.
60323         * modules/vasnprintf (Files): Add lib/float+.h.
60324         * doc/functions/fprintf.texi: Update.
60325         * doc/functions/printf.texi: Update.
60326         * doc/functions/snprintf.texi: Update.
60327         * doc/functions/sprintf.texi: Update.
60328         * doc/functions/vfprintf.texi: Update.
60329         * doc/functions/vprintf.texi: Update.
60330         * doc/functions/vsnprintf.texi: Update.
60331         * doc/functions/vsprintf.texi: Update.
60332
60333 2007-05-18  Bruno Haible  <bruno@clisp.org>
60334
60335         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60336
60337 2007-05-18  Bruno Haible  <bruno@clisp.org>
60338
60339         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60340         for printing 64-bit integers. Needed for mingw.
60341
60342 2007-05-18  Bruno Haible  <bruno@clisp.org>
60343
60344         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60345         gl_FUNC_FREXPL_WORKS.
60346         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60347
60348 2007-05-18  Bruno Haible  <bruno@clisp.org>
60349
60350         * modules/frexpl-nolibm-tests: New file.
60351
60352         * modules/frexpl-nolibm: New file.
60353         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60354
60355 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60358         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60359         GCC 4.2, which otherwise issues a lot of warnings.
60360         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60361         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60362         Likewise.
60363         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60364         * modules/iconv_open (iconv.h): Likewise.
60365         * modules/locale (locale.h): Likewise.
60366         * modules/netinet_in (netinet/in.h): Likewise.
60367         * modules/sys_select (sys_select.h): Likewise.
60368         * modules/sys_socket (sys/socket.h): Likewise.
60369         * modules/sys_stat (sys/stat.h): Likewise.
60370         * modules/sysexits (sysexits.h): Likewise.
60371         * modules/unistd (unistd.h): Likewise.
60372
60373 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60374
60375         * modules/closein-tests (Makefile.am): Distribute
60376         `test-closein.sh'.
60377
60378 2007-05-17  Bruno Haible  <bruno@clisp.org>
60379
60380         * tests/test-printf-posix.output: Renamed from
60381         tests/test-fprintf-posix.out.
60382         * modules/fprintf-posix-tests: Update.
60383         * modules/printf-posix-tests: Update.
60384         * modules/vfprintf-posix-tests: Update.
60385         * modules/vprintf-posix-tests: Update.
60386         * tests/test-fprintf-posix.sh: Update.
60387         * tests/test-printf-posix.sh: Update.
60388         * tests/test-vfprintf-posix.sh: Update.
60389         * tests/test-vprintf-posix.sh: Update.
60390         Reported by Ralf Wildenhues.
60391
60392 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60393
60394         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60395         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60396         GCC 4.2, which otherwise issues a lot of warnings.
60397         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60398         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60399         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60400         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60401         it should no longer be needed.
60402         * lib/string_.h: Likewise.
60403         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60404         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60405         * modules/inttypes (inttypes.h): Likewise.
60406         * modules/math (math.h): Likewise.
60407         * modules/search (search.h): Likewise.
60408         * modules/signal (signal.h): Likewise.
60409         * modules/stdint (stdint.h): Likewise.
60410         * modules/stdio (stdio.h): Likewise.
60411         * modules/stdlib (stdlib.h): Likewise.
60412         * modules/string (string.h): Likewise.
60413         * modules/sys_time (sys/time.h): Likewise.
60414         * modules/time (time.h): Likewise.
60415         * modules/wchar (wchar.h): Likewise.
60416         * modules/wctype (wtype.h): Likewise.
60417
60418 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60419
60420         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60421
60422 2007-05-13  Bruno Haible  <bruno@clisp.org>
60423
60424         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60425         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60426         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60427         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60428         (gl_PREREQ_STRTOK_R): Don't require it here.
60429
60430 2007-05-13  Bruno Haible  <bruno@clisp.org>
60431
60432         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60433         when used in C++ mode.
60434
60435 2007-05-12  Bruno Haible  <bruno@clisp.org>
60436
60437         * lib/linebuffer.h: Tweak doc.
60438         * lib/linebuffer.c: Likewise.
60439
60440 2007-05-12  James Youngman  <jay@gnu.org>
60441
60442         * lib/linebuffer.c (readlinebuffer_delim): New function,
60443         like readlinebuffer, but use a caller-specified delimiter.
60444         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60445         as the delimiter.
60446         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60447
60448 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60449
60450         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60451         * modules/openat (Files): Remove openat-die.c.
60452         (Depends-on): Add openat-die.
60453         * modules/openat-die: New module.
60454
60455 2007-05-06  Bruno Haible  <bruno@clisp.org>
60456
60457         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60458         Update with info about Cygwin.
60459         * doc/functions/fprintf.texi: Update.
60460         * doc/functions/printf.texi: Update.
60461         * doc/functions/snprintf.texi: Update.
60462         * doc/functions/sprintf.texi: Update.
60463         * doc/functions/vfprintf.texi: Update.
60464         * doc/functions/vprintf.texi: Update.
60465         * doc/functions/vsnprintf.texi: Update.
60466         * doc/functions/vsprintf.texi: Update.
60467         Reported by Eric Blake.
60468
60469 2007-05-06  Bruno Haible  <bruno@clisp.org>
60470
60471         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60472         padding ourselves for the floating-point directives.
60473         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60476         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60477         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60478         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60479         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60481         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60482         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60483         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60484         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60485         * tests/test-snprintf-posix.h (test_function): Also check the width
60486         and some flags in the %f directive.
60487         * tests/test-sprintf-posix.h (test_function): Likewise.
60488         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60489         * tests/test-vasprintf-posix.c (test_function): Likewise.
60490         * doc/functions/fprintf.texi: Update.
60491         * doc/functions/printf.texi: Update.
60492         * doc/functions/snprintf.texi: Update.
60493         * doc/functions/sprintf.texi: Update.
60494         * doc/functions/vfprintf.texi: Update.
60495         * doc/functions/vprintf.texi: Update.
60496         * doc/functions/vsnprintf.texi: Update.
60497         * doc/functions/vsprintf.texi: Update.
60498
60499 2007-05-06  Bruno Haible  <bruno@clisp.org>
60500
60501         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60502         pass the ' flag character to sprintf or snprintf.
60503         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60506         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60507         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60508         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60509         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60511         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60512         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60513         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60514         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60515         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60516         flag.
60517         * tests/test-sprintf-posix.h (test_function): Likewise.
60518         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60519         * tests/test-vasprintf-posix.c (test_function): Likewise.
60520         * doc/functions/fprintf.texi: Update.
60521         * doc/functions/printf.texi: Update.
60522         * doc/functions/snprintf.texi: Update.
60523         * doc/functions/sprintf.texi: Update.
60524         * doc/functions/vfprintf.texi: Update.
60525         * doc/functions/vprintf.texi: Update.
60526         * doc/functions/vsnprintf.texi: Update.
60527         * doc/functions/vsprintf.texi: Update.
60528
60529 2007-05-01  Bruno Haible  <bruno@clisp.org>
60530
60531         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60532
60533 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60534
60535         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60536         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60537
60538 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60539
60540         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60541         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60543
60544 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60545
60546         * lib/argp-help.c (struct hol_entry): New member `ord'.
60547         (HOL_ENTRY_PTRCMP): Use ord for comparison
60548         (hol_sort): Initialize ord.
60549
60550 2007-05-01  Bruno Haible  <bruno@clisp.org>
60551
60552         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60553         Reported by Eric Blake.
60554         * doc/gnulib.texi (Function Substitutes): Update.
60555
60556 2007-05-01  Bruno Haible  <bruno@clisp.org>
60557
60558         * doc/functions.texi: Remove file, now redundant through
60559         doc/functions/*.texi.
60560
60561 2007-05-01  Bruno Haible  <bruno@clisp.org>
60562
60563         * modules/argp (Depends-on): Add sleep.
60564
60565 2007-05-01  Bruno Haible  <bruno@clisp.org>
60566
60567         * modules/sleep-tests: New file.
60568         * tests/test-sleep.c: New file.
60569
60570         * modules/sleep: New file.
60571         * lib/sleep.c: New file.
60572         * m4/sleep.m4: New file.
60573         * lib/unistd_.h (sleep): New declaration.
60574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60575         HAVE_SLEEP.
60576         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60577         * doc/functions/sleep.texi: Document the sleep module.
60578
60579 2007-05-01  Bruno Haible  <bruno@clisp.org>
60580
60581         * lib/sigprocmask.h: Remove file.
60582         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60583         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60584         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60585         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60586         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60587         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60588         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60589         HAVE_SIGSET_T as a shell variable.
60590         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60591         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60592         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60593         (Depends-on): Add signal. Remove verify.
60594         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60595         (Include): Mention <signal.h> instead of sigprocmask.h.
60596         * NEWS: Mention the change.
60597         * lib/fatal-signal.c: Don't include sigprocmask.h.
60598
60599 2007-05-01  Bruno Haible  <bruno@clisp.org>
60600
60601         * modules/signal: New file.
60602         * lib/signal_.h: New file.
60603         * m4/signal_h.m4: New file.
60604
60605 2007-05-01  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60608         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60609         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60610         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60611
60612 2007-05-01  Bruno Haible  <bruno@clisp.org>
60613
60614         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60615         configure time.
60616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60617         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60618         * modules/sys_stat (Makefile.am): Substitute their values into
60619         sys/stat.h.
60620
60621 2007-05-01  Bruno Haible  <bruno@clisp.org>
60622
60623         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60624         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60625         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60626
60627 2007-05-01  Bruno Haible  <bruno@clisp.org>
60628
60629         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60630         'assert' module here.
60631
60632 2007-05-01  Bruno Haible  <bruno@clisp.org>
60633
60634         * doc/functions/*.texi: New files.
60635         * doc/functions/google-ranking.txt: New file.
60636         * doc/gnulib.texi (Function Substitutes): New chapter.
60637         (ctime, inet_ntoa): Remove sections.
60638         * doc/ctime.texi: Remove file.
60639         * doc/inet_ntoa.texi: Remove file.
60640         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60641         dependencies.
60642         (%.info): New rule, specifying a --reference-limit.
60643
60644 2007-05-01  Bruno Haible  <bruno@clisp.org>
60645
60646         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60647
60648 2007-05-01  Bruno Haible  <bruno@clisp.org>
60649
60650         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60651         the portability of 'mkdir' to mingw systems.
60652
60653 2007-05-01  Bruno Haible  <bruno@clisp.org>
60654
60655         * doc/headers/google-ranking.txt: New file.
60656
60657 2007-04-30  Eric Blake  <ebb9@byu.net>
60658
60659         Prefer fseeko to fseek.
60660         * modules/getpass (Depends-on): Add fseeko.
60661         * lib/getpass.c (getpass): Use fseeko, not fseek.
60662
60663 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60664
60665         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60666         assumes the sorting is stable, while most qsort implementations
60667         are not.  Use argument addresses to ensure they never compare as
60668         equal.
60669
60670         * tests/test-argp-2.sh (usage-indent test): Fix output
60671         (func_compare): Restore diff options
60672         * tests/test-argp.c: Restore #include "progname.h"
60673
60674 2007-04-29  Bruno Haible  <bruno@clisp.org>
60675
60676         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60677         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60678         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60679         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60680         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60681         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60682         (TESTS, check_PROGRAMS): Add test-snprintf.
60683         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60684         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60685         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60686         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60687         assertions that fail on HP-UX, OSF/1, or IRIX.
60688         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60689
60690 2007-04-29  Bruno Haible  <bruno@clisp.org>
60691
60692         * MODULES.html.sh (posix_functions): Remove 'contents'.
60693
60694 2007-04-29  Karl Berry  <karl@gnu.org>
60695
60696         * config/srclist.txt (gendocs_template_min): new entry.
60697
60698 2007-04-29  Bruno Haible  <bruno@clisp.org>
60699
60700         Work around fpurge bug on BSD systems.
60701         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60702         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60703         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60704         fpurge to rpl_fpurge if the system already has this function.
60705         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60706         the case where the system already has this function. Correct invariants
60707         on BSD systems.
60708         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60709         BSD systems.
60710
60711 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60712
60713         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60714         proposed by Sven Verdoolaege.
60715
60716         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60717         options.
60718         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60719         (usage and help tests): Update
60720
60721 2007-04-29  Bruno Haible  <bruno@clisp.org>
60722
60723         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60724         Print more information in case of failure. Disable a test on BeOS.
60725
60726 2007-04-29  Bruno Haible  <bruno@clisp.org>
60727
60728         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60729         This helps debugging on systems on which no gdb is available.
60730
60731 2007-04-29  Bruno Haible  <bruno@clisp.org>
60732
60733         * lib/freading.h: Improve comments.
60734         * lib/fwriting.h: Likewise.
60735         * tests/test-freading.c (main): Don't check freading immediately after
60736         repositioning. Needed for glibc.
60737
60738 2007-04-29  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/freading.c (freading): Trivial simplification.
60741
60742 2007-04-28  Bruno Haible  <bruno@clisp.org>
60743
60744         * tests/test-fwriting.c (main): Also test the interaction between
60745         fflush and fwriting.
60746         * modules/fwriting-tests (Depends-on): Add fflush.
60747
60748         * tests/test-freading.c (main): Also test the interaction between
60749         fflush and freading.
60750         * modules/freading-tests (Depends-on): Add fflush.
60751
60752 2007-04-28  Bruno Haible  <bruno@clisp.org>
60753
60754         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60755         fseeko and ftello.
60756         Suggested by Eric Blake.
60757
60758 2007-04-28  Jim Meyering  <jim@meyering.net>
60759
60760         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60761         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60762         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60763
60764 2007-04-27  Eric Blake  <ebb9@byu.net>
60765
60766         * doc/headers/assert.texi (assert.h): Document assert module use.
60767
60768 2007-04-27  Bruno Haible  <bruno@clisp.org>
60769
60770         * doc/headers/*.texi: New files.
60771         * doc/gnulib.texi (Header File Substitutes): New chapter.
60772         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60773         dependencies.
60774         (standards.info ,standards.html, standards.dvi): Update dependencies.
60775         (mostlyclean, clean): New targets.
60776
60777 2007-04-27  Bruno Haible  <bruno@clisp.org>
60778
60779         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60780         * modules/sysexits (Files, Makefile.am): Update.
60781
60782         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60783         * modules/sys_socket (Files, Makefile.am): Update.
60784
60785         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60786         * modules/sys_stat (Files, Makefile.am): Update.
60787
60788 2007-04-27  Eric Blake  <ebb9@byu.net>
60789
60790         * lib/freading.h: Improve comments.
60791         * lib/fwriting.h: Likewise.
60792         * lib/fflush.c: Likewise.
60793
60794         Fix closein for mingw.
60795         * modules/closein-tests: Add tests for closein.
60796         * tests/test-closein.c: New file.
60797         * tests/test-closein.sh: Likewise.
60798         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60799         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60800
60801 2007-04-27  Bruno Haible  <bruno@clisp.org>
60802
60803         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60804         version is < 6.
60805         * lib/math_.h [__DECC]: Likewise.
60806         * lib/stdio_.h [__DECC]: Likewise.
60807         * lib/stdlib_.h [__DECC]: Likewise.
60808         * lib/string_.h [__DECC]: Likewise.
60809         * lib/time_.h [__DECC]: Likewise.
60810         * lib/wchar_.h [__DECC]: Likewise.
60811         * lib/wctype_.h [__DECC]: Likewise.
60812
60813 2007-04-27  Bruno Haible  <bruno@clisp.org>
60814
60815         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60816
60817 2007-04-27  Bruno Haible  <bruno@clisp.org>
60818
60819         * lib/fflush.c: Add comments.
60820         * modules/fpurge-tests (Depends-on): Add fflush.
60821         * modules/freadable-tests (Depends-on): Likewise.
60822         * modules/fwritable-tests (Depends-on): Likewise.
60823
60824 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60825
60826         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60827         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60828         Report by Bruno Haible <bruno@clisp.org>.
60829
60830 2007-04-26  Eric Blake  <ebb9@byu.net>
60831
60832         Fix fflush on mingw.
60833         * modules/fflush (Depends-on): Add freading.
60834         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60835         but unread data.
60836
60837 2007-04-26  Eric Blake  <ebb9@byu.net>
60838         and Bruno Haible  <bruno@clisp.org>
60839
60840         Implement freading and fwriting.
60841         * lib/freading.c: New file.
60842         * lib/freading.h: Likewise.
60843         * m4/freading.m4: Likewise.
60844         * modules/freading: Likewise.
60845         * modules/freading-tests: Likewise.
60846         * tests/test-freading.c: Likewise.
60847         * lib/fwriting.c: New file.
60848         * lib/fwriting.h: Likewise.
60849         * m4/fwriting.m4: Likewise.
60850         * modules/fwriting: Likewise.
60851         * modules/fwriting-tests: Likewise.
60852         * tests/test-fwriting.c: Likewise.
60853         * MODULES.html.sh (File stream based Input/Output): Mention them.
60854
60855 2007-04-26  Bruno Haible  <bruno@clisp.org>
60856
60857         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60858         'long' when we assume it.
60859         Suggested by Eric Blake.
60860
60861 2007-04-26  Bruno Haible  <bruno@clisp.org>
60862
60863         Ensure fseeko, ftello are declared on glibc systems.
60864         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60865         * modules/fseeko (configure.ac-early): Likewise.
60866         * modules/ftello (configure.ac-early): Likewise.
60867         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60868         AC_FUNC_FSEEKO for this.
60869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60870         (gl_CHECK_FSEEKO): Remove macro.
60871
60872 2007-04-26  Bruno Haible  <bruno@clisp.org>
60873
60874         * tests/test-fflush.c (main): Also check the ftell result after
60875         fflush and fseek/fseeko.
60876         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60877         file descriptor position cache in the stream.
60878         * lib/fseeko.c (rpl_fseeko): Likewise.
60879
60880 2007-04-26  Bruno Haible  <bruno@clisp.org>
60881
60882         * modules/fflush-tests (Depends-on): Add fseeko.
60883
60884 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60885             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60886
60887         * lib/argz_.h: ensure error_t definition is obtained in same
60888         mechanism system argz.h would have.
60889         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60890         argz facilities are known bad.  Err on the side of caution if
60891         cross-compiling.
60892
60893 2007-04-25  Eric Blake  <ebb9@byu.net>
60894
60895         * lib/fpurge.c (includes): Use stdlib.h for free.
60896         * tests/test-fflush.c (main): Also test fflush-fseeko.
60897
60898 2007-04-25  Bruno Haible  <bruno@clisp.org>
60899
60900         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60901         * lib/fseeko.c: New file.
60902         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60903         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60904         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60905         gl_FUNC_FSEEKO.
60906         (gl_FUNC_FSEEKO): Invoke it.
60907         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60908         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60909         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60910
60911 2007-04-25  Bruno Haible  <bruno@clisp.org>
60912
60913         * modules/fflush (Depends-on): Add ftello.
60914
60915 2007-04-25  Bruno Haible  <bruno@clisp.org>
60916
60917         * modules/ftello-tests: New file.
60918         * tests/test-ftello.c: New file.
60919
60920         * modules/ftello: New file.
60921         * m4/ftello.m4: New file.
60922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60923         HAVE_FTELLO.
60924         * lib/stdio_.h (ftello): New declaration.
60925         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60926         HAVE_FTELLO.
60927
60928 2007-04-25  Bruno Haible  <bruno@clisp.org>
60929
60930         * modules/fseeko-tests: New file.
60931         * tests/test-fseeko.c: New file.
60932
60933         * modules/fseeko: New file.
60934         * m4/fseeko.m4: New file.
60935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60936         HAVE_FSEEKO.
60937         * lib/stdio_.h (fseeko): New declaration.
60938         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60939         HAVE_FSEEKO.
60940
60941 2007-04-25  Bruno Haible  <bruno@clisp.org>
60942
60943         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60944
60945 2007-04-25  Bruno Haible  <bruno@clisp.org>
60946
60947         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60948         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60949         * tests/test-unistd.c: Likewise.
60950         * tests/test-fcntl.c: Likewise.
60951
60952 2007-04-23  Eric Blake  <ebb9@byu.net>
60953
60954         * lib/fflush.c: Fix missing include.
60955         Reported by Bruno Haible.
60956
60957 2007-04-23  Bruno Haible  <bruno@clisp.org>
60958
60959         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60960         Reported by Eric Blake.
60961
60962 2007-04-23  Bruno Haible  <bruno@clisp.org>
60963
60964         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60965
60966 2007-04-23  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60969
60970 2007-04-23  Bruno Haible  <bruno@clisp.org>
60971
60972         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60973         Needed on HP-UX 11.
60974
60975 2007-04-16  Eric Blake  <ebb9@byu.net>
60976
60977         Make fflush rely on fpurge.
60978         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60979         open coding all variants.
60980         * modules/fflush (Depends-on): Add fpurge and unistd.
60981         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60982         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60983
60984         Fix --with-tests compilation on cygwin.
60985         * modules/argmatch-tests (Makefile.am): List gnulib library first
60986         in LDADD.
60987         * modules/argp-tests (Makefile.am): Likewise.
60988         * modules/array-list-tests (Makefile.am): Likewise.
60989         * modules/array-oset-tests (Makefile.am): Likewise.
60990         * modules/avltree-list-tests (Makefile.am): Likewise.
60991         * modules/avltree-oset-tests (Makefile.am): Likewise.
60992         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60993         * modules/carray-list-tests (Makefile.am): Likewise.
60994         * modules/dirname-tests (Makefile.am): Likewise.
60995         * modules/frexp-tests (Makefile.am): Likewise.
60996         * modules/isnanl-tests (Makefile.am): Likewise.
60997         * modules/linked-list-tests (Makefile.am): Likewise.
60998         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60999         * modules/lock-tests (Makefile.am): Likewise.
61000         * modules/rbtree-list-tests (Makefile.am): Likewise.
61001         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61002         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61003         * modules/tls-tests (Makefile.am): Likewise.
61004         * modules/tsearch-tests (Makefile.am): Likewise.
61005         * modules/xvasprintf-tests (Makefile.am): Likewise.
61006
61007         Fix fpurge for cygwin.
61008         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61009         value.
61010         * modules/fpurge-tests (Depends-on): Clean up trash.
61011
61012 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61013
61014         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61015
61016         * m4/autobuild.m4: Re-indent.
61017
61018 2007-04-13  Bruno Haible  <bruno@clisp.org>
61019
61020         * modules/fpurge-tests: New file.
61021         * tests/test-fpurge.c: New file.
61022
61023         * modules/fpurge: New file.
61024         * lib/fpurge.h: New file.
61025         * lib/fpurge.c: New file.
61026         * m4/fpurge.m4: New file.
61027
61028 2007-04-13  Bruno Haible  <bruno@clisp.org>
61029
61030         * modules/fbufmode-tests: New file.
61031         * tests/test-fbufmode.c: New file.
61032
61033         * modules/fbufmode: New file.
61034         * lib/fbufmode.h: New file.
61035         * lib/fbufmode.c: New file.
61036         * m4/fbufmode.m4: New file.
61037
61038 2007-04-13  Bruno Haible  <bruno@clisp.org>
61039
61040         * modules/fwritable-tests: New file.
61041         * tests/test-fwritable.c: New file.
61042
61043         * modules/fwritable: New file.
61044         * lib/fwritable.h: New file.
61045         * lib/fwritable.c: New file.
61046         * m4/fwritable.m4: New file.
61047
61048 2007-04-13  Bruno Haible  <bruno@clisp.org>
61049
61050         * modules/freadable-tests: New file.
61051         * tests/test-freadable.c: New file.
61052
61053         * modules/freadable: New file.
61054         * lib/freadable.h: New file.
61055         * lib/freadable.c: New file.
61056         * m4/freadable.m4: New file.
61057
61058 2007-04-13  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61061         MOSTLYCLEANFILES.
61062
61063 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61064
61065         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61066         gzip bootstrap.conf to avoid dragging in i18n machinery.
61067         (gnulib_tool_option): Use it.
61068
61069 2007-04-13  Bruno Haible  <bruno@clisp.org>
61070
61071         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61072         %F directives.
61073         * tests/test-vasprintf-posix.c (test_function): Likewise.
61074         * tests/test-snprintf-posix.h (test_function): Likewise.
61075         * tests/test-sprintf-posix.h (test_function): Likewise.
61076         * tests/test-fprintf-posix.h (test_function): Likewise.
61077         * tests/test-printf-posix.h (test_function): Likewise.
61078         * tests/test-fprintf-posix.out: Likewise.
61079
61080 2007-04-13  Bruno Haible  <bruno@clisp.org>
61081
61082         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61083         * modules/tls-tests (configure.ac): Likewise.
61084         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61085
61086 2007-04-13  Bruno Haible  <bruno@clisp.org>
61087
61088         * lib/tls.c (glthread_tls_get): Fix return type.
61089         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61090
61091 2007-04-12  Eric Blake  <ebb9@byu.net>
61092
61093         * modules/gettime (Depends-on): Remove gettime.
61094         Reported by Dmitry V. Levin.
61095
61096 2007-04-12  Bruno Haible  <bruno@clisp.org>
61097
61098         * modules/fflush (Include): Mention <stdio.h>.
61099         * modules/strtoimax (Include): Mention <inttypes.h>.
61100         * modules/strtoumax (Include): Likewise.
61101
61102 2007-04-12  Eric Blake  <ebb9@byu.net>
61103
61104         * .cvsignore: New file.
61105         * .gitignore: Likewise.
61106
61107 2007-04-12  Bruno Haible  <bruno@clisp.org>
61108
61109         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61110         not before, since $(LDADD) often contains libgnu.a.
61111         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61112         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61113         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61114         Needed on Cygwin.
61115
61116 2007-04-12  Eric Blake  <ebb9@byu.net>
61117
61118         Work around glibc's failure to flush stdin on fclose.
61119         * lib/closein.c (close_stdin): Flush stdin before closing.
61120
61121         Work around glibc's failure to reset seekable stdin on exit.
61122         * modules/closein: New module.
61123         * lib/closein.c: New file.
61124         * lib/closein.h: Likewise.
61125         * m4/closein.m4: Likewise.
61126         * MODULES.html.sh (File stream based Input/Output): Document it.
61127
61128 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61129
61130         * gnulib-tool: Rename generated 'autobuild' script to
61131         'do-autobuild' in --create-megatestdir output.
61132
61133         * doc/gnulib.texi (Build robot for gnulib): Fix.
61134
61135 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61136
61137         * modules/sysexits (Depends-on): Add absolute-header.
61138
61139 2007-04-12  Eric Blake  <ebb9@byu.net>
61140
61141         No need to preserve errno on success.
61142         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61143         Reported by Bruno Haible.
61144
61145 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61146
61147         * MODULES.html.sh (Support for maintaining and releasing
61148         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61149
61150 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61151
61152         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61153
61154 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61155
61156         * modules/autobuild: New module.
61157
61158         * m4/autobuild.m4: New file.
61159
61160 2007-04-11  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61163         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61164         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61166         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61169         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61175         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61181         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61182         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61183         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61184         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61185         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61186         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61187         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61188         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61189         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61190         Reported by Eric Blake.
61191
61192 2007-04-11  Bruno Haible  <bruno@clisp.org>
61193
61194         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61195
61196 2007-04-10  Bruno Haible  <bruno@clisp.org>
61197
61198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61199         for NaN and Infinity. Needed on FreeBSD 6.1.
61200         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61201         regarding results for "%010a" of Infinity and NaN.
61202         * tests/test-vasprintf-posix.c (test_function): Likewise.
61203         * tests/test-snprintf-posix.h (test_function): Likewise.
61204         * tests/test-sprintf-posix.h (test_function): Likewise.
61205         * tests/test-fprintf-posix.h (test_function): Likewise.
61206         * tests/test-printf-posix.h (test_function): Likewise.
61207         * tests/test-fprintf-posix.out: Likewise.
61208
61209 2007-04-10  Bruno Haible  <bruno@clisp.org>
61210
61211         * modules/locale-tests: New file.
61212         * tests/test-locale.c: New file.
61213
61214         * modules/locale: New file.
61215         * lib/locale_.h: New file.
61216         * m4/locale_h.m4: New file.
61217
61218 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61219             Bruno Haible  <bruno@clisp.org>
61220
61221         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61222         be determined, test for availability of the copysignf, copysign,
61223         copysignl functions.
61224         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61225         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61226         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61227
61228 2007-04-09  Eric Blake  <ebb9@byu.net>
61229
61230         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61231         * modules/stdio (Makefile.am): Support fflush.
61232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61233         * modules/fflush: New file.
61234         * lib/fflush.c: Likewise.
61235         * m4/fflush.m4: Likewise.
61236         * modules/fflush-tests: New test.
61237         * tests/test-fflush.c: Likewise.
61238         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61239
61240 2007-04-06  Bruno Haible  <bruno@clisp.org>
61241
61242         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61243         (VASNPRINTF): Use signbit for faster determination whether to print a
61244         minus sign.
61245         * modules/vasnprintf (Files): Remove lib/float+.h.
61246         * modules/fprintf-posix (Depends-on): Add signbit.
61247         * modules/snprintf-posix (Depends-on): Likewise.
61248         * modules/sprintf-posix (Depends-on): Likewise.
61249         * modules/vasnprintf-posix (Depends-on): Likewise.
61250         * modules/vasprintf-posix (Depends-on): Likewise.
61251         * modules/vfprintf-posix (Depends-on): Likewise.
61252         * modules/vsnprintf-posix (Depends-on): Likewise.
61253         * modules/vsprintf-posix (Depends-on): Likewise.
61254
61255 2007-04-06  Bruno Haible  <bruno@clisp.org>
61256
61257         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61258         * tests/test-frexpl.c (main): Likewise.
61259         * tests/test-ldexpl.c (main): Likewise.
61260         * modules/frexp-tests (Depends-on): Add signbit.
61261         * modules/frexpl-tests (Depdends-on): Likewise.
61262         * modules/ldexpl-tests (Depdends-on): Likewise.
61263
61264 2007-04-06  Bruno Haible  <bruno@clisp.org>
61265
61266         * modules/signbit-tests: New file.
61267         * tests/test-signbit.c: New file.
61268
61269         * modules/signbit: New file.
61270         * lib/signbitf.c: New file.
61271         * lib/signbitd.c: New file.
61272         * lib/signbitl.c: New file.
61273         * m4/signbit.m4: New file.
61274         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61275         (signbit): New macro.
61276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61277         REPLACE_SIGNBIT.
61278         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61279         REPLACE_FREXPL into math.h.
61280
61281 2007-04-06  Bruno Haible  <bruno@clisp.org>
61282
61283         * modules/isnanf-nolibm-tests: New file.
61284         * tests/test-isnanf.c: New file.
61285
61286         * modules/isnanf-nolibm: New file.
61287         * lib/isnanf.h: New file.
61288         * lib/isnanf.c: New file.
61289         * lib/isnan.c: Consider the USE_FLOAT macro.
61290         * m4/isnanf.m4: New file.
61291
61292 2007-04-06  Bruno Haible  <bruno@clisp.org>
61293
61294         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61295         (Link): New section.
61296
61297         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61298
61299 2007-04-06  Bruno Haible  <bruno@clisp.org>
61300
61301         Assume the 'long double' type.
61302         * m4/longdouble.m4: Remove file.
61303         * config/srclist.txt: Don't mention longdouble.m4.
61304         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61305         * lib/float+.h: Likewise.
61306         * lib/frexp.c: Likewise.
61307         * lib/printf-args.h: Likewise.
61308         * lib/printf-args.c: Likewise.
61309         * lib/printf-frexp.c: Likewise.
61310         * lib/printf-parse.c: Likewise.
61311         * lib/vasnprintf.c: Likewise.
61312         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61313         * m4/intl.m4: Likewise.
61314         * m4/isnanl.m4: Likewise.
61315         * m4/printf.m4: Likewise.
61316         * m4/printf-frexpl.m4: Likewise.
61317         * m4/vasnprintf.m4: Likewise.
61318         * modules/allocsa (Files): Remove m4/longdouble.m4.
61319         * modules/gettext (Files): Likewise.
61320         * modules/relocatable-prog-wrapper (Files): Likewise.
61321         * modules/vasnprintf (Files): Likewise.
61322         * modules/isnanl (Files): Likewise.
61323         (Include): Simplify.
61324         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61325         (Include): Simplify.
61326         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61327         (Include): Simplify.
61328         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61329         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61330         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61331         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61332         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61333         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61334         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61335         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61336         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61337         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61338         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61339         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61340         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61341         * tests/test-isnanl.c: Likewise.
61342         * tests/test-snprintf-posix.h: Likewise.
61343         * tests/test-sprintf-posix.h: Likewise.
61344         * tests/test-vasnprintf-posix.c: Likewise.
61345         * tests/test-vasnprintf-posix2.c: Likewise.
61346         * tests/test-vasprintf-posix.c: Likewise.
61347
61348 2007-04-06  Bruno Haible  <bruno@clisp.org>
61349
61350         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61351         * lib/math_.h [__DECC]: Include the overridden include file through
61352         #include_next, outside the double-inclusion guard.
61353         * lib/stdio_.h [__DECC]: Likewise.
61354         * lib/stdlib_.h [__DECC]: Likewise.
61355         * lib/string_.h [__DECC]: Likewise.
61356         * lib/time_.h [__DECC]: Likewise.
61357         * lib/wchar_.h [__DECC]: Likewise.
61358         * lib/wctype_.h [__DECC]: Likewise.
61359         * lib/inttypes_.h [__DECC]: Likewise.
61360         Reported by Albert Chin <china@thewrittenword.com> in
61361         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61362
61363 2007-04-04  Eric Blake  <ebb9@byu.net>
61364
61365         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61366         1.5.x.
61367
61368 2007-04-04  Bruno Haible  <bruno@clisp.org>
61369
61370         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61371         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61372
61373 2007-04-04  Bruno Haible  <bruno@clisp.org>
61374
61375         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61376         results for "%010a" of Infinity and NaN.
61377         * tests/test-vasprintf-posix.c (test_function): Likewise.
61378         * tests/test-snprintf-posix.h (test_function): Likewise.
61379         * tests/test-sprintf-posix.h (test_function): Likewise.
61380         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61381         * tests/test-printf-posix.h (test_function): Likewise.
61382         * tests/test-fprintf-posix.out: Update.
61383         Needed for FreeBSD 6.1.
61384
61385 2007-04-04  Bruno Haible  <bruno@clisp.org>
61386
61387         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61388         directly used by the gnulib modules nor by gnulib-tool.
61389
61390 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61391
61392         * DEPENDENCIES: Give overall description of version dependency
61393         desirability.  Use more-typical names for apps.
61394         Add shell, coreutils, diffutils, grep, tar, gzip.
61395
61396 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61397
61398         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61399
61400 2007-04-04  Karl Berry  <karl@gnu.org>
61401
61402         * MODULES.html.sh (func_module): missing '.
61403
61404 2007-04-03  Bruno Haible  <bruno@clisp.org>
61405
61406         * modules/argmatch-tests (Makefile.am): New variable
61407         test_argmatch_LDADD.
61408         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61409         * modules/array-list-tests (Makefile.am): New variable
61410         test_array_list_LDADD.
61411         * modules/array-oset-tests (Makefile.am): New variable
61412         test_array_oset_LDADD.
61413         * modules/avltree-list-tests (Makefile.am): New variable
61414         test_avltree_list_LDADD.
61415         * modules/avltree-oset-tests (Makefile.am): New variable
61416         test_avltree_oset_LDADD.
61417         * modules/avltreehash-list-tests (Makefile.am): New variable
61418         test_avltreehash_list_LDADD.
61419         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61420         test_canonicalize_lgpl_LDADD.
61421         * modules/carray-list-tests (Makefile.am): New variable
61422         test_carray_list_LDADD.
61423         * modules/dirname-tests (Makefile.am): New variable
61424         test_dirname_LDADD.
61425         * modules/linked-list-tests (Makefile.am): New variable
61426         test_linked_list_LDADD.
61427         * modules/linkedhash-list-tests (Makefile.am): New variable
61428         test_linkedhash_list_LDADD.
61429         * modules/rbtree-list-tests (Makefile.am): New variable
61430         test_rbtree_list_LDADD.
61431         * modules/rbtree-oset-tests (Makefile.am): New variable
61432         test_rbtree_oset_LDADD.
61433         * modules/rbtreehash-list-tests (Makefile.am): New variable
61434         test_rbtreehash_list_LDADD.
61435         * modules/xvasprintf-tests (Makefile.am): New variable
61436         test_xvasprintf_LDADD.
61437         Reported by Eric Blake.
61438
61439 2007-04-03  Eric Blake  <ebb9@byu.net>
61440
61441         * DEPENDENCIES: Weaken m4 requirements.
61442
61443 2007-04-03  Bruno Haible  <bruno@clisp.org>
61444
61445         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61446         * modules/isnanl-tests (configure.ac): Likewise.
61447
61448 2007-04-03  Ben Pfaff  <blp@gnu.org>
61449
61450         * modules/iconv_open: Add $(srcdir)/ to source directory
61451         references in Makefile fragments that call gperf, to fix VPATH
61452         builds.
61453
61454 2007-04-03  Bruno Haible  <bruno@clisp.org>
61455
61456         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61457         * lib/ldexpl.c: Undo last change.
61458
61459 2007-04-03  Bruno Haible  <bruno@clisp.org>
61460
61461         * modules/printf-frexpl (Depends-on): Undo last change.
61462         (Files): Add m4/ldexpl.m4.
61463
61464 2007-04-03  Bruno Haible  <bruno@clisp.org>
61465
61466         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61467         * modules/isnanl (Link): New section.
61468
61469         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61470         * modules/frexp (Link): New section.
61471
61472         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61473         * modules/frexpl (Link): New section.
61474
61475         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61476         * modules/ldexpl (Link): New section.
61477
61478 2007-04-03  Bruno Haible  <bruno@clisp.org>
61479
61480         * modules/TEMPLATE-EXTENDED: New file.
61481         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61482
61483 2007-04-03  Bruno Haible  <bruno@clisp.org>
61484
61485         * DEPENDENCIES: New file.
61486         Suggested by Simon Josefsson.
61487
61488 2007-04-03  Bruno Haible  <bruno@clisp.org>
61489
61490         * doc/gnulib.texi: Escape @.
61491
61492 2007-04-03  James Youngman  <jay@gnu.org>
61493         and Paul Eggert  <eggert@cs.ucla.edu>
61494
61495         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61496         birthtime on all systems that have birthtime, not just those which
61497         use st_birthtimensec rather than st_birthtim.  Putting zero in
61498         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61499         that the birth time is not available for files on an NFS mount.
61500
61501 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61502
61503         * modules/memxor: Move back from crypto/, suggested by Bruno.
61504         * modules/crypto/hmac-sha1: Fix memxor dependency.
61505
61506         * modules/crypto/gc: Moved from ../.
61507
61508 2007-04-02  Eric Blake  <ebb9@byu.net>
61509
61510         * lib/ldexpl.c (includes): Avoid libm.
61511
61512         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61513
61514 2007-04-02  Bruno Haible  <bruno@clisp.org>
61515
61516         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61517         on IRIX.
61518
61519 2007-04-02  Bruno Haible  <bruno@clisp.org>
61520
61521         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61522         x86 or x86_64 platforms running MacOS X.
61523         Reported by Ryan Schmidt <@ryandesign.com>.
61524
61525 2007-04-02  Bruno Haible  <bruno@clisp.org>
61526
61527         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61528         i386.
61529
61530 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61531
61532         * modules/crypto/arcfour: Moved from ../.
61533         * modules/crypto/arcfour-tests: Moved from ../.
61534         * modules/crypto/arctwo: Moved from ../.
61535         * modules/crypto/arctwo-tests: Moved from ../.
61536         * modules/crypto/des: Moved from ../.
61537         * modules/crypto/des-tests: Moved from ../.
61538         * modules/crypto/gc-arcfour: Moved from ../.
61539         * modules/crypto/gc-arcfour-tests: Moved from ../.
61540         * modules/crypto/gc-arctwo: Moved from ../.
61541         * modules/crypto/gc-arctwo-tests: Moved from ../.
61542         * modules/crypto/gc-des: Moved from ../.
61543         * modules/crypto/gc-des-tests: Moved from ../.
61544         * modules/crypto/gc-hmac-md5: Moved from ../.
61545         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61546         * modules/crypto/gc-hmac-sha1: Moved from ../.
61547         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61548         * modules/crypto/gc-md2: Moved from ../.
61549         * modules/crypto/gc-md2-tests: Moved from ../.
61550         * modules/crypto/gc-md4: Moved from ../.
61551         * modules/crypto/gc-md4-tests: Moved from ../.
61552         * modules/crypto/gc-md5: Moved from ../.
61553         * modules/crypto/gc-md5-tests: Moved from ../.
61554         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61555         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61556         * modules/crypto/gc-random: Moved from ../.
61557         * modules/crypto/gc-rijndael: Moved from ../.
61558         * modules/crypto/gc-rijndael-tests: Moved from ../.
61559         * modules/crypto/gc-sha1: Moved from ../.
61560         * modules/crypto/gc-sha1-tests: Moved from ../.
61561         * modules/crypto/gc-tests: Moved from ../.
61562         * modules/crypto/hmac-md5: Moved from ../.
61563         * modules/crypto/hmac-md5-tests: Moved from ../.
61564         * modules/crypto/hmac-sha1: Moved from ../.
61565         * modules/crypto/hmac-sha1-tests: Moved from ../.
61566         * modules/crypto/md2: Moved from ../.
61567         * modules/crypto/md2-tests: Moved from ../.
61568         * modules/crypto/md4: Moved from ../.
61569         * modules/crypto/md4-tests: Moved from ../.
61570         * modules/crypto/md5: Moved from ../.
61571         * modules/crypto/md5-tests: Moved from ../.
61572         * modules/crypto/memxor: Moved from ../.
61573         * modules/crypto/rijndael: Moved from ../.
61574         * modules/crypto/rijndael-tests: Moved from ../.
61575         * modules/crypto/sha1: Moved from ../.
61576
61577 2007-03-30  James Youngman  <jay@gnu.org>
61578
61579         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61580         rename() to change the ctime of a file (because ctime is unaffected
61581         by rename on jfs2 on AIX 5.1).
61582         (main): Start by doing cleanup, in case a previous run failed leaving
61583         test files behind.
61584
61585 2007-03-31  Bruno Haible  <bruno@clisp.org>
61586
61587         Support old proprietary implementations of iconv.
61588         * modules/iconv_open: New file.
61589         * lib/iconv_.h: New file.
61590         * m4/iconv_h.m4: New file.
61591         * lib/iconv_open.c: New file.
61592         * lib/iconv_open-aix.gperf: New file.
61593         * lib/iconv_open-hpux.gperf: New file.
61594         * lib/iconv_open-irix.gperf: New file.
61595         * lib/iconv_open-osf.gperf: New file.
61596         * m4/iconv_open.m4: New file.
61597         * modules/linebreak (Depends-on): Add iconv_open.
61598         * modules/striconv (Depends-on): Likewise.
61599         * modules/striconveh (Depends-on): Likewise.
61600         * modules/unicodeio (Depends-on): Likewise.
61601         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61602         (iconv_t)(-1).
61603         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61604         conversion if cd is (iconv_t)(-1).
61605         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61606         is not possible.
61607
61608 2007-03-31  Bruno Haible  <bruno@clisp.org>
61609
61610         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61611         work on Solaris either. Protect also second use of "autodetect_jp".
61612
61613 2007-03-31  Bruno Haible  <bruno@clisp.org>
61614
61615         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61616         the function is not present.
61617
61618 2007-03-31  Bruno Haible  <bruno@clisp.org>
61619
61620         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61621         the function is not present.
61622
61623 2007-03-31  Bruno Haible  <bruno@clisp.org>
61624
61625         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61626         a bug in HP-UX iconv_open().
61627
61628 2007-03-31  Bruno Haible  <bruno@clisp.org>
61629
61630         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61631         (Mathematics <math.h>): New section, add fpieee.
61632         (Input/output <stdio.h>): Add fseterr.
61633         (Mathematics <math.h>): New section, add printf-frexp.
61634         (Container data structures): Add sublist.
61635         (Core language properties): Add fpucw, inline.
61636         (Functions for greatest-width integer types <inttypes.h>): Add
61637         imaxabs, imaxdiv, inttypes.
61638         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61639         isnanl-nolibm, ldexp.
61640         (Mathematics <math.h>): New section, add printf-frexpl.
61641         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61642         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61643         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61644         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61645         (Unicode string functions): Add unistr/u*-mbtoucr.
61646         (Java): Add javacomp-script, javaexec-script.
61647         (C#): Add csharpcomp-script, csharpexec-script.
61648         (Support for building libraries and executables): Add havelib,
61649         relocatable-*.
61650         (Support for maintaining and releasing projects): Renamed from
61651         'Support for maintaining and release projects'. Add announce-gen.
61652
61653 2007-03-31  Bruno Haible  <bruno@clisp.org>
61654
61655         * README: Talk primarily about git.
61656         (git and CVS): Renamed from CVS.
61657         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61658         gnulib is available through git.
61659         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61660
61661 2007-03-30  Bruno Haible  <bruno@clisp.org>
61662
61663         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61664         * lib/poll_.h: Likewise.
61665         * lib/stat_.h: Likewise.
61666         * lib/sys_time_.h: Likewise.
61667         * lib/sysexit_.h: Likewise.
61668         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61669         * lib/stdbool_.h: Likewise.
61670         * lib/byteswap_.h: Add double-inclusion guard.
61671
61672 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61673
61674         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61675
61676 2007-03-30  Karl Berry  <karl@gnu.org>
61677
61678         * config/srclist-update: double space after USA in the license
61679         substitution, since that's how it's usually (?) written.
61680
61681 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61682
61683         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61684         reported by Bruno Haible.
61685
61686 2007-03-29  Bruno Haible  <bruno@clisp.org>
61687
61688         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61689         a bug in AIX iconv().
61690
61691 2007-03-29  Bruno Haible  <bruno@clisp.org>
61692
61693         * modules/ldexpl-tests: New file.
61694         * tests/test-ldexpl.c: New file.
61695
61696 2007-03-29  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/ldexpl.c: Include fpucw.h.
61699         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61700         multiplication.
61701         * modules/ldexpl (Depends-on): Add fpucw.
61702
61703 2007-03-29  Bruno Haible  <bruno@clisp.org>
61704
61705         * modules/ldexpl: New file.
61706         * m4/ldexpl.m4: New file.
61707         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61708         set.
61709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61710         REPLACE_LDEXPL.
61711         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61712         REPLACE_LDEXPL.
61713         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61714         gl_FUNC_LDEXPL_WORKS.
61715         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61716         * modules/mathl (Files): Remove lib/ldexpl.c.
61717         (Depends-on): Add ldexpl.
61718
61719 2007-03-29  Bruno Haible  <bruno@clisp.org>
61720
61721         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61722
61723 2007-03-29  Bruno Haible  <bruno@clisp.org>
61724
61725         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61726         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61727         and possibly also HP-UX.
61728         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61729         work on AIX, IRIX, HP-UX, OSF/1.
61730         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61731         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61732         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61733         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61734         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61735         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61736
61737 2007-03-29  Bruno Haible  <bruno@clisp.org>
61738
61739         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61740
61741 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61742
61743         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61744         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61745
61746 2007-03-29  Eric Blake  <ebb9@byu.net>
61747
61748         * lib/acl-internal.h: Remove redundant include.
61749         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61750         Cygwin when a file is locked.
61751
61752 2007-03-29  Bruno Haible  <bruno@clisp.org>
61753
61754         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61755         file.
61756         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61757
61758 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61759
61760         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61761         try to remove a parent directory if the child couldn't be removed
61762         (except for the first rmdir, which could fail because the child
61763         doesn't exist).  Problem reported by Jeff Blaine in
61764         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61765
61766 2007-03-28  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/striconveh.c (utf8conv_carefully): New function.
61769         (mem_cd_iconveh_internal): Invoke it.
61770
61771 2007-03-28  Bruno Haible  <bruno@clisp.org>
61772
61773         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61774         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61775         input.
61776         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61777         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61778         unistr/u8-uctomb.
61779
61780 2007-03-28  Bruno Haible  <bruno@clisp.org>
61781
61782         * modules/unistr/u8-mbtoucr: New file.
61783         * lib/unistr/u8-mbtoucr.c: New file.
61784         * modules/unistr/u16-mbtoucr: New file.
61785         * lib/unistr/u16-mbtoucr.c: New file.
61786         * modules/unistr/u16-mbtoucr: New file.
61787         * lib/unistr/u16-mbtoucr.c: New file.
61788         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61789
61790 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61791             Bruno Haible  <bruno@clisp.org>
61792
61793         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61794         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61795         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61796
61797         * m4/stdio_h.m4: Add stubs for vasprintf too.
61798
61799         * modules/stdio: Support vasprintf in sed command.
61800
61801         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61802         vasprintf.h.  Add stdio module indicator.
61803
61804         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61805         vasprintf.h.
61806
61807         * lib/vasprintf.h: File removed.
61808
61809         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61810         * lib/vasprintf.c: Ditto.
61811         * lib/xvasprintf.c: Ditto.
61812         * tests/test-vasprintf-posix.c: Ditto.
61813         * tests/test-vasprintf.c: Ditto.
61814
61815 2007-03-27  Bruno Haible  <bruno@clisp.org>
61816
61817         Make vasnprintf multithread-safe.
61818         * lib/vasnprintf.c (decimal_point_char): New function.
61819         (VASNPRINTF): Use it.
61820         Suggested by Simon Josefsson.
61821
61822 2007-03-27  Eric Blake  <ebb9@byu.net>
61823
61824         Support sub-second birthtime on cygwin.
61825         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61826         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61827         (get_stat_birthtime): Also work with st_birthtim.
61828
61829 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61830
61831         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61832         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61833         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61834         (get_stat_birthtime_ns): Simplify compile-time tests.
61835         (get_stat_birthtime): Change the API to look like
61836         get_stat_mtime etc., except return a negative tv_nsec on error.
61837         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61838         Don't check for "spare" fields.
61839         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61840         or for struct stat.st_birthtime, as these tests aren't used.
61841         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61842
61843 2007-03-27  Bruno Haible  <bruno@clisp.org>
61844
61845         * lib/stat-time.h: Include <sys/stat.h>.
61846
61847 2007-03-27  James Youngman  <jay@gnu.org>
61848
61849         * lib/stat-time.h (get_stat_birthtime): New function for
61850           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61851         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61852           and its variants.
61853         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61854         * modules/stat-time-test: New file.
61855         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61856
61857 2007-03-26  Bruno Haible  <bruno@clisp.org>
61858
61859         Better support of signalling NaNs.
61860         * lib/atanl.c: Include isnanl.h.
61861         (atanl): Perform test for NaN at the beginning of the function and
61862         through a call to isnanl.
61863         * lib/cosl.c: Include isnanl.h.
61864         (cosl): Perform test for NaN at the beginning of the function and
61865         through a call to isnanl.
61866         * lib/ldexpl.c: Include isnanl.h.
61867         (ldexpl): Perform test for NaN through a call to isnanl.
61868         * lib/logl.c: Include isnanl.h.
61869         (logl): Perform test for NaN at the beginning of the function and
61870         through a call to isnanl.
61871         * lib/sinl.c: Include isnanl.h.
61872         (sinl): Perform test for NaN at the beginning of the function and
61873         through a call to isnanl.
61874         * lib/sqrtl.c: Include isnanl.h.
61875         (sqrtl): Perform test for NaN at the beginning of the function and
61876         through a call to isnanl.
61877         * lib/tanl.c: Include isnanl.h.
61878         (tanl): Perform test for NaN at the beginning of the function and
61879         through a call to isnanl.
61880         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61881         * modules/mathl (Depends-on): Add isnanl.
61882
61883 2007-03-26  Eric Blake  <ebb9@byu.net>
61884
61885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61886         regression in logic sense of previous patch.
61887
61888 2007-03-26  Bruno Haible  <bruno@clisp.org>
61889
61890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61891         unportable shell command "if ! ...".
61892         Reported by Ralf Wildenhues.
61893
61894 2007-03-25  Bruno Haible  <bruno@clisp.org>
61895
61896         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61897         <sysexits.h> file, and only add EX_CONFIG.
61898         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61899         absolute file name and whether it is sufficient. Substitute also
61900         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61901         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61902         ABSOLUTE_SYSEXITS_H into sysexits.h.
61903
61904 2007-03-25  Bruno Haible  <bruno@clisp.org>
61905
61906         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61907         hints is NULL.
61908
61909 2007-03-25  Bruno Haible  <bruno@clisp.org>
61910
61911         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61912         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61913
61914 2007-03-25  Bruno Haible  <bruno@clisp.org>
61915
61916         * lib/vasnprintf.c: Include langinfo.h.
61917         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61918         multithread-safe.
61919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61920         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61921         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61923         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61924         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61925         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61927         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61928         Reported by Simon Josefsson.
61929
61930 2007-03-25  Bruno Haible  <bruno@clisp.org>
61931
61932         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61933         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61934         * modules/vasnprintf (Depends-on): Add stdint.
61935
61936 2007-03-25  Bruno Haible  <bruno@clisp.org>
61937
61938         * modules/fpieee: New file.
61939         * m4/fpieee.m4: New file.
61940         * modules/isnan-nolibm (Depends-on): Add fpieee.
61941         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61942         * modules/isnanl (Depends-on): Add fpieee.
61943
61944 2007-03-25  Bruno Haible  <bruno@clisp.org>
61945
61946         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61947
61948 2007-03-25  Bruno Haible  <bruno@clisp.org>
61949
61950         Avoid test failures on IRIX 6.5.
61951         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61952         (main): Use it.
61953         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61954         macros.
61955         (main): Use them.
61956
61957 2007-03-25  Bruno Haible  <bruno@clisp.org>
61958
61959         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61960         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61961         exists but doesn't work.
61962         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61963         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61965         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61966         math.h.
61967
61968 2007-03-25  Bruno Haible  <bruno@clisp.org>
61969
61970         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61971         returns inf. Needed on IRIX 6.5.
61972
61973 2007-03-25  Bruno Haible  <bruno@clisp.org>
61974
61975         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61976         (main): Use isnanl instead of x != x idiom.
61977         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61978
61979         * tests/test-frexp.c: Include isnan.h.
61980         (main): Use isnan instead of x != x idiom.
61981         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61982
61983 2007-03-25  Bruno Haible  <bruno@clisp.org>
61984
61985         * tests/test-frexp.c (NaN): New function/macro.
61986         (main): Use it instead of 0.0 / 0.0.
61987         * tests/test-isnan.c (NaN): New function/macro.
61988         (main): Use it instead of 0.0 / 0.0.
61989         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61990         (test_function): Use it instead of 0.0 / 0.0.
61991         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61992         (test_function): Use it instead of 0.0 / 0.0.
61993         * tests/test-snprintf-posix.h (NaN): New function/macro.
61994         (test_function): Use it instead of 0.0 / 0.0.
61995         * tests/test-sprintf-posix.h (NaN): New function/macro.
61996         (test_function): Use it instead of 0.0 / 0.0.
61997         * tests/test-fprintf-posix.h (NaN): New function/macro.
61998         (test_function): Use it instead of 0.0 / 0.0.
61999         * tests/test-printf-posix.h (NaN): New function/macro.
62000         (test_function): Use it instead of 0.0 / 0.0.
62001
62002         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62003
62004 2007-03-25  Bruno Haible  <bruno@clisp.org>
62005
62006         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62007
62008 2007-03-25  Bruno Haible  <bruno@clisp.org>
62009
62010         * lib/regexec.c (merge_state_with_log): Make static.
62011
62012 2007-03-25  Bruno Haible  <bruno@clisp.org>
62013
62014         * lib/trigl.c (kernel_rem_pio2): Make static.
62015
62016 2007-03-25  Bruno Haible  <bruno@clisp.org>
62017
62018         * lib/sincosl.c (sincosl_table): Make static.
62019
62020 2007-03-25  Bruno Haible  <bruno@clisp.org>
62021
62022         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62023         if the compiler does not support C99.
62024
62025 2007-03-25  Bruno Haible  <bruno@clisp.org>
62026
62027         * modules/time (Makefile.am): Ensure all rule action lines start with a
62028         tab.
62029
62030 2007-03-24  Bruno Haible  <bruno@clisp.org>
62031
62032         * modules/tsearch-tests: New file.
62033         * tests/test-tsearch.sh: New file.
62034         * tests/test-tsearch.c: New file, mostly copied from glibc.
62035
62036         * modules/search-tests: New file.
62037         * tests/test-search.c: New file.
62038
62039         * modules/search: New file.
62040         * lib/search_.h: New file, incorporating lib/tsearch.h.
62041         * m4/search_h.m4: New file.
62042         * lib/tsearch.h: Remove file.
62043         * lib/tsearch.c: Include search.h instead of tsearch.h.
62044         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62045         HAVE_TSEARCH.
62046         * modules/tsearch (Files): Remove lib/tsearch.h.
62047         (Depends-on): Add search.
62048         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62049         (Include): Change tsearch.h into search.h.
62050
62051 2007-03-24  Bruno Haible  <bruno@clisp.org>
62052
62053         * modules/fpucw: New file.
62054         * lib/fpucw.h: New file.
62055         * lib/frexp.c: Include fpucw.h.
62056         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62057         (FUNC): Use them.
62058         * lib/printf-frexp.c: Include fpucw.h.
62059         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62060         (FUNC): Use them.
62061         * lib/vasnprintf.c: Include fpucw.h.
62062         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62063         'long double' calculations.
62064         * tests/test-frexpl.c: Include fpucw.h.
62065         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62066         * tests/test-printf-frexpl.c: Include fpucw.h.
62067         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62068         * modules/frexpl (Depends-on): Add fpucw.
62069         * modules/printf-frexpl (Depends-on): Likewise.
62070         * modules/fprintf-posix (Depends-on): Likewise.
62071         * modules/snprintf-posix (Depends-on): Likewise.
62072         * modules/sprintf-posix (Depends-on): Likewise.
62073         * modules/vasnprintf-posix (Depends-on): Likewise.
62074         * modules/vasprintf-posix (Depends-on): Likewise.
62075         * modules/vfprintf-posix (Depends-on): Likewise.
62076         * modules/vsnprintf-posix (Depends-on): Likewise.
62077         * modules/vsprintf-posix (Depends-on): Likewise.
62078         * modules/frexpl-tests (Depends-on): Likewise.
62079         * modules/printf-frexpl-tests (Depends-on): Likewise.
62080
62081 2007-03-24  Bruno Haible  <bruno@clisp.org>
62082
62083         * lib/float+.h: New file.
62084         * lib/isnan.c: Include float+.h.
62085         (SIZE): New macro.
62086         (FUNC): Compare only SIZE bytes of the value.
62087         * lib/vasnprintf.c: Include float+.h.
62088         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62089         SIZEOF_LDBL or SIZEOF_DBL bytes.
62090         * modules/isnan-nolibm (Files): Add lib/float+.h.
62091         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62092         * modules/isnanl (Files): Add lib/float+.h.
62093         * modules/vasnprintf (Files): Add lib/float+.h.
62094
62095 2007-03-24  Bruno Haible  <bruno@clisp.org>
62096
62097         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62098         include isnanl-nolibm.h.
62099
62100 2007-03-24  Bruno Haible  <bruno@clisp.org>
62101
62102         * tests/test-read-file.c (main): Don't produce spurious output for
62103         expected situations. Make the test fail if it encountered unexpected
62104         results.
62105
62106 2007-03-24  Bruno Haible  <bruno@clisp.org>
62107
62108         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62109         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62110
62111 2007-03-24  Bruno Haible  <bruno@clisp.org>
62112
62113         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62114
62115 2007-03-24  Bruno Haible  <bruno@clisp.org>
62116
62117         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62118         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62119
62120         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62121         * modules/utf8-ucs4: Turn into a symbolic link to module
62122         unistr/u8-mbtouc.
62123
62124         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62125         utf8-ucs4-unsafe.
62126         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62127         unistr/u8-mbtouc-unsafe.
62128
62129         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62130         * modules/utf16-ucs4: Turn into a symbolic link to module
62131         unistr/u16-mbtouc.
62132
62133         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62134         utf16-ucs4-unsafe.
62135         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62136         unistr/u16-mbtouc-unsafe.
62137
62138         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62139         * modules/ucs4-utf8: Turn into a symbolic link to module
62140         unistr/u8-ubtomb.
62141
62142         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62143         * modules/ucs4-utf16: Turn into a symbolic link to module
62144         unistr/u16-ubtomb.
62145
62146 2007-03-24  Bruno Haible  <bruno@clisp.org>
62147
62148         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62149         Enable the function only if HAVE_INLINE.
62150         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62151         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62152         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62153         Enable the function only if HAVE_INLINE.
62154         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62155         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62156         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62157         Enable the function only if HAVE_INLINE.
62158         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62159         Enable the function only if HAVE_INLINE.
62160         * modules/utf8-ucs4: Update.
62161         * modules/utf8-ucs4-unsafe: Update.
62162         * modules/utf16-ucs4: Update.
62163         * modules/utf16-ucs4-unsafe: Update.
62164         * modules/ucs4-utf8: Update.
62165         * modules/ucs4-utf16: Update.
62166
62167 2007-03-24  Bruno Haible  <bruno@clisp.org>
62168
62169         * lib/utf8-ucs4.h: Remove file.
62170         * lib/utf8-ucs4-unsafe.h: Remove file.
62171         * lib/utf16-ucs4.h: Remove file.
62172         * lib/utf16-ucs4-unsafe.h: Remove file.
62173         * lib/ucs4-utf8.h: Remove file.
62174         * lib/ucs4-utf16.h: Remove file.
62175         * lib/unistr.h: Include their previous contents.
62176         * m4/utf-ucs4.m4: Remove file.
62177         * m4/ucs4-utf.m4: Remove file.
62178         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62179         (Depends-on): Add unistr/base.
62180         (configure.ac): Remove gl_UTF_UCS4.
62181         (Makefile.am): Update.
62182         (Include): Change to unistr.h.
62183         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62184         (Depends-on): Add unistr/base.
62185         (configure.ac): Remove gl_UTF_UCS4.
62186         (Makefile.am): Update.
62187         (Include): Change to unistr.h.
62188         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62189         (Depends-on): Add unistr/base.
62190         (configure.ac): Remove gl_UTF_UCS4.
62191         (Makefile.am): Update.
62192         (Include): Change to unistr.h.
62193         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62194         (Depends-on): Add unistr/base.
62195         (configure.ac): Remove gl_UTF_UCS4.
62196         (Makefile.am): Update.
62197         (Include): Change to unistr.h.
62198         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62199         (Depends-on): Add unistr/base.
62200         (configure.ac): Remove gl_UCS4_UTF.
62201         (Makefile.am): Update.
62202         (Include): Change to unistr.h.
62203         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62204         (Depends-on): Add unistr/base.
62205         (configure.ac): Remove gl_UCS4_UTF.
62206         (Makefile.am): Update.
62207         (Include): Change to unistr.h.
62208         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62209         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62210         utf8-ucs4-unsafe.h.
62211         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62212         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62213         utf16-ucs4-unsafe.h.
62214         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62215         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62216         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62217         * lib/unistr/u8-strchr.c: Likewise.
62218         * lib/unistr/u8-strrchr.c: Likewise.
62219         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62220         * lib/unistr/u16-strchr.c: Likewise.
62221         * lib/unistr/u16-strrchr.c: Likewise.
62222         * lib/striconveh.c: Update.
62223         * lib/linebreak.c: Update.
62224
62225 2007-03-24  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62228         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62229
62230 2007-03-22  Bruno Haible  <bruno@clisp.org>
62231
62232         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62233
62234 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62235
62236         * MODULES.html.sh (File system functions): New module write-any-file.
62237         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62238         * m4/write-any-file.m4: New files.
62239
62240 2007-03-23  Eric Blake  <ebb9@byu.net>
62241
62242         * gnulib-tool: Rearrange space-tab sequences, since some editors
62243         like to eat them.
62244
62245 2007-03-23  Eric Blake  <ebb9@byu.net>
62246
62247         * lib/version-etc.c (version_etc_va): Update license wording to
62248         be more concise.  Recommended by Richard Stallman.
62249
62250 2007-03-22  Bruno Haible  <bruno@clisp.org>
62251
62252         * lib/poll.c (MSG_PEEK): New fallback definition.
62253
62254 2007-03-22  Bruno Haible  <bruno@clisp.org>
62255
62256         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62257         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62258         (main): Update.
62259         Fixes a compilation error on BeOS.
62260
62261 2007-03-22  Bruno Haible  <bruno@clisp.org>
62262
62263         * modules/frexpl-tests: New file.
62264         * tests/test-frexpl.c: New file.
62265
62266         * modules/frexpl: New file.
62267         * m4/frexpl.m4: New file.
62268         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62269         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62271         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62272         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62273         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62274
62275 2007-03-22  Bruno Haible  <bruno@clisp.org>
62276
62277         * lib/frexpl.c: Share code with lib/frexp.c.
62278         * modules/mathl (Files): Add lib/frexp.c.
62279         (Depends-on): Add isnanl-nolibm.
62280
62281 2007-03-22  Bruno Haible  <bruno@clisp.org>
62282
62283         * modules/printf-frexp (Files): Add m4/frexp.m4.
62284         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62285         only if the found frexp function actually works.
62286
62287 2007-03-22  Bruno Haible  <bruno@clisp.org>
62288
62289         * lib/frexp.c: Remove older implementation that uses divisions.
62290
62291 2007-03-21  Bruno Haible  <bruno@clisp.org>
62292
62293         * modules/frexp-tests: New file.
62294         * tests/test-frexp.c: New file.
62295
62296         * modules/frexp: New file.
62297         * lib/frexp.c: New file.
62298         * m4/frexp.m4: New file.
62299         * lib/math_.h (frexp): New declaration.
62300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62301         REPLACE_FREXP.
62302         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62303
62304 2007-03-21  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/isnanl-tests: New file.
62307         * tests/test-isnanl.c: New file.
62308
62309         * modules/isnanl: New file.
62310         * lib/isnanl.h: New file.
62311         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62312         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62313         gl_FUNC_ISNANL_WORKS.
62314         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62315         New macros.
62316
62317 2007-03-21  Bruno Haible  <bruno@clisp.org>
62318
62319         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62320         lib/isnanl.h.
62321         (Include): Update.
62322         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62323         * lib/vasnprintf.c: Update.
62324         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62325         tests/test-isnanl.h, remove tests/test-isnanl.c.
62326         (Makefile.am): Update.
62327         * tests/test-isnanl-nolibm.c: New file.
62328         * tests/test-isnanl.h: New file.
62329         * tests/test-isnanl.c: Remove file.
62330
62331 2007-03-21  Jim Meyering  <jim@meyering.net>
62332
62333         When trying to open ".", treat ESTALE like EACCES.
62334         * lib/savewd.c (savewd_save): Resort to forking not just upon
62335         failure with EACCES, but also when errno is ESTALE.
62336
62337 2007-03-20  Bruno Haible  <bruno@clisp.org>
62338
62339         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62340         Needed on AIX 5.1. Reported by Matthew Woehlke.
62341
62342 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         Suggestions by Bruno Haible:
62345         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62346         our own.
62347         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62348         * modules/acl (Depends-on): Add gettext.
62349
62350 2007-03-19  Bruno Haible  <bruno@clisp.org>
62351
62352         * modules/iconvme: Remove file.
62353         * lib/iconvme.h: Remove file.
62354         * lib/iconvme.c: Remove file.
62355         * m4/iconvme.m4: Remove file.
62356
62357 2007-03-19  Bruno Haible  <bruno@clisp.org>
62358
62359         * doc/relocatable-maint.texi: Break long shell script line.
62360         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62361
62362 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62363
62364         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62365         handle file_has_acl.
62366         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62367         * lib/acl.c: Move header inclusions and related macro defns into
62368         lib/acl-internal.h.
62369         (S_ISLNK): Remove defn, since that's now done for us.
62370         (file_has_acl): Move to lib/file-has-acl.c.
62371         Call acl_trivial if available.  This is the crucial part of the fix.
62372         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62373         shared within the library.  Rewrite a bit, partly to make it compatible
62374         with the GNU coding style.
62375         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62376         Remove unnecessary double-quotes.
62377         Don't test for acl_to_text; the build will catch that.
62378         Replace acl_entries if it doesn't exist and it is needed.
62379         Check for -lsec and acl_trivial (as used on Solaris 10).
62380         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62381         lib/file-has-acl.c.
62382         (Depends-on): Add sys_stat, for S_ISLNK.
62383
62384 2007-03-19  Ben Pfaff  <blp@gnu.org>
62385
62386         * doc/gnulib.texi: Fix typos.
62387         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62388
62389 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62390
62391         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62392         If size is zero here, buf must be zero.
62393
62394 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62395
62396         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62397         <bruno@clisp.org>.
62398
62399 2007-03-18  Bruno Haible  <bruno@clisp.org>
62400
62401         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62402         Suggested by Eric Blake.
62403
62404 2007-03-18  Ben Pfaff  <blp@gnu.org>
62405
62406         * doc/relocatable.texi: Recommend using as prefix a directory
62407         that does not exist and will never be created.  Based on
62408         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62409         and others.
62410
62411 2007-03-17  Bruno Haible  <bruno@clisp.org>
62412
62413         * lib/fchownat.c: Include lchown.h.
62414
62415 2007-03-17  Bruno Haible  <bruno@clisp.org>
62416
62417         Fix endless loop when the given allocated size was > INT_MAX.
62418         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62419         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62420         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62421         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62422         * lib/sprintf.c (sprintf): Likewise.
62423
62424 2007-03-17  Bruno Haible  <bruno@clisp.org>
62425
62426         * tests/test-argp-2.sh (func_compare): Output a context diff.
62427
62428 2007-03-17  Bruno Haible  <bruno@clisp.org>
62429
62430         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62431         locale's decimal-point character.
62432
62433 2007-03-17  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62436         before comparing it. Needed because on some platforms (e.g. x86) a
62437         'long double' occupies less bytes than sizeof (long double).
62438
62439 2007-03-17  Bruno Haible  <bruno@clisp.org>
62440
62441         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62442         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62443         * tests/test-getaddrinfo.c (simple): Likewise.
62444         * tests/test-read-file.c (main): Likewise.
62445
62446 2007-03-17  Bruno Haible  <bruno@clisp.org>
62447
62448         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62449
62450 2007-03-17  Bruno Haible  <bruno@clisp.org>
62451
62452         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62453         unused variable.
62454
62455 2007-03-17  Bruno Haible  <bruno@clisp.org>
62456
62457         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62458         * tests/test-c-strncasecmp.c: Likewise.
62459
62460 2007-03-17  Bruno Haible  <bruno@clisp.org>
62461
62462         * modules/stdlib (Depends-on): Add unistd.
62463         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62464         Needed for MacOS X 10.3.
62465
62466 2007-03-17  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62469
62470 2007-03-17  Bruno Haible  <bruno@clisp.org>
62471
62472         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62473
62474 2007-03-17  Bruno Haible  <bruno@clisp.org>
62475
62476         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62477         to reflect files copied from gnulib (with or without modifications).
62478         Suggested by Jim Meyering.
62479
62480 2007-03-17  Eric Blake  <ebb9@byu.net>
62481
62482         * NEWS: Document stdlib change from 2007-02-18.
62483
62484 2007-03-17  Jim Meyering  <jim@meyering.net>
62485
62486         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62487         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62488         someone uses a name containing shell meta-characters.
62489         Reported by Alfred M. Szmidt.
62490
62491         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62492
62493 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62494
62495         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62496         and copy gettext configuration files only if configure.ac contains
62497         a use of AM_GNU_GETTEXT_VERSION.
62498
62499 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62500
62501         * build-aux/bootstrap (gnulib_name): New variable.
62502         (gnulib_tool_options): Use it.
62503
62504 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62505
62506         * tests/test-des.c: Use new namespace.
62507
62508 2007-03-15  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62511         Reported by James Youngman <jay@gnu.org>.
62512
62513 2007-03-15  Bruno Haible  <bruno@clisp.org>
62514
62515         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62516         declared prototype. Needed with cc on OSF/1 5.1.
62517
62518 2007-03-15  Bruno Haible  <bruno@clisp.org>
62519
62520         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62521         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62522         (struct gl_list_implementation): Add dispose_fn argument to the
62523         'create_empty', 'create' methods.
62524         (struct gl_list_impl_base): Add field 'dispose_fn'.
62525         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62526         argument.
62527         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62528         dispose_fn argument.
62529         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62530         dispose_fn on the dropped values.
62531         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62532         dispose_fn argument.
62533         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62534         dropped values.
62535         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62536         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62537         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62538         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62539         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62540         argument.
62541         (gl_tree_list_free): Call dispose_fn on the dropped values.
62542         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62543         the dropped values.
62544         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62545         Add dispose_fn argument.
62546         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62547         Call dispose_fn on the dropped values.
62548         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62549         Add dispose_fn argument.
62550         (gl_sublist_create): Initialize the 'dispose_fn' field.
62551         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62552         * tests/test-array_list.c (main): Update.
62553         * tests/test-carray_list.c (main): Update.
62554         * tests/test-avltree_list.c (main): Update.
62555         * tests/test-rbtree_list.c (main): Update.
62556         * tests/test-avltreehash_list.c (main): Update.
62557         * tests/test-rbtreehash_list.c (main): Update.
62558         * tests/test-linked_list.c (main): Update.
62559         * tests/test-linkedhash_list.c (main): Update.
62560         * tests/test-array_oset.c (main): Update.
62561
62562 2007-03-15  Bruno Haible  <bruno@clisp.org>
62563
62564         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62565         (gl_oset_create_empty): Add dispose_fn argument.
62566         (struct gl_oset_implementation): Add dispose_fn argument to
62567         'create_empty' method.
62568         (struct gl_oset_impl_base): Add dispose_fn field.
62569         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62570         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62571         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62572         values.
62573         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62574         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62575         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62576         dropped value.
62577         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62578         dropped value.
62579         * tests/test-array_oset.c (main): Update.
62580         * tests/test-avltree_oset.c (main): Update.
62581         * tests/test-rbtree_oset.c (main): Update.
62582         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62583
62584 2007-03-13  Bruno Haible  <bruno@clisp.org>
62585
62586         * tests/test-stdbool.c (i): Update after last patch.
62587
62588 2007-03-12  Bruno Haible  <bruno@clisp.org>
62589
62590         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62591         the iswprint macro. Needed on Solaris 2.5.1.
62592
62593 2007-03-12  Bruno Haible  <bruno@clisp.org>
62594
62595         * tests/test-printf-frexp.c (main): Declare x as volatile.
62596
62597 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62598
62599         * doc/gnulib.texi (Build robot for gnulib): New section.
62600
62601 2007-03-12  Jim Meyering  <jim@meyering.net>
62602
62603         * build-aux/bootstrap: New file.
62604         * build-aux/bootstrap.conf: New file, from coreutils.
62605
62606 2007-03-11  Bruno Haible  <bruno@clisp.org>
62607
62608         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62609
62610 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62611
62612         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62613         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62614         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62615
62616 2007-03-11  Bruno Haible  <bruno@clisp.org>
62617
62618         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62619         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62620
62621 2007-03-11  Bruno Haible  <bruno@clisp.org>
62622
62623         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62624         formula. Needed for SunPRO C 5.0.
62625
62626 2007-03-11  Bruno Haible  <bruno@clisp.org>
62627
62628         * modules/long-options (Depends-on): Add getopt.
62629
62630 2007-03-11  Bruno Haible  <bruno@clisp.org>
62631
62632         * modules/modechange (Depends-on): Add stdbool.
62633
62634 2007-03-11  Bruno Haible  <bruno@clisp.org>
62635
62636         * modules/i-ring (Depends-on): Add stdbool.
62637
62638 2007-03-11  Bruno Haible  <bruno@clisp.org>
62639
62640         * modules/gc-des (Depends-on): Add stdbool.
62641
62642 2007-03-11  Bruno Haible  <bruno@clisp.org>
62643
62644         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62645
62646 2007-03-11  Bruno Haible  <bruno@clisp.org>
62647
62648         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62649
62650 2007-03-11  Bruno Haible  <bruno@clisp.org>
62651
62652         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62653
62654 2007-03-11  Bruno Haible  <bruno@clisp.org>
62655
62656         * lib/vasnprintf.c (sprintf): Undefine.
62657
62658 2007-03-11  Bruno Haible  <bruno@clisp.org>
62659
62660         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62661         initializers in SunPRO C and Compaq C compilers.
62662
62663 2007-03-11  Bruno Haible  <bruno@clisp.org>
62664
62665         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62666         decrementing code ANSI C compliant.
62667
62668 2007-03-11  Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62671         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62672
62673 2007-03-11  Bruno Haible  <bruno@clisp.org>
62674
62675         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62676         <stdbool.h> substitute doesn't pass.
62677
62678 2007-03-11  Bruno Haible  <bruno@clisp.org>
62679
62680         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62681
62682 2007-03-11  Bruno Haible  <bruno@clisp.org>
62683
62684         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62685         script, for submission to autobuild.josefsson.org.
62686
62687 2007-03-10  Bruno Haible  <bruno@clisp.org>
62688
62689         * modules/canonicalize-lgpl-tests: New file.
62690         * tests/test-canonicalize-lgpl.sh: New file.
62691         * tests/test-canonicalize-lgpl.c: New file.
62692
62693         * modules/c-strcase-tests: New file.
62694         * tests/test-c-strcase.sh: New file.
62695         * tests/test-c-strcasecmp.c: New file.
62696         * tests/test-c-strncasecmp.c: New file.
62697
62698         * modules/atexit-tests: New file.
62699         * tests/test-atexit.sh: New file.
62700         * tests/test-atexit.c: New file.
62701
62702 2007-03-10  Bruno Haible  <bruno@clisp.org>
62703
62704         * tests/test-binary-io.sh: Use temporary filenames that are not so
62705         likely to clash with those of other tests (in a parallel make).
62706         * tests/test-binary-io.c: Likewise.
62707
62708 2007-03-10  Bruno Haible  <bruno@clisp.org>
62709
62710         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62711         fallback; use #error instead.
62712         Suggested by Simon Josefsson.
62713
62714 2007-03-10  Bruno Haible  <bruno@clisp.org>
62715
62716         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62717         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62718         first and the last.
62719
62720 2007-03-10  Bruno Haible  <bruno@clisp.org>
62721
62722         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62723
62724 2007-03-10  Bruno Haible  <bruno@clisp.org>
62725
62726         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62727         "make distcheck".
62728         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62729         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62730         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62731
62732 2007-03-10  Bruno Haible  <bruno@clisp.org>
62733
62734         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62735         variable.
62736         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62737         variable.
62738
62739 2007-03-09  Eric Blake  <ebb9@byu.net>
62740         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62741
62742         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62743         types are not being provided by gnulib.
62744         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62745         types are supported.
62746
62747 2007-03-10  Bruno Haible  <bruno@clisp.org>
62748
62749         * lib/stdio_.h (__attribute__): New macro.
62750         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62751         vsprintf): Specify __attribute__ __format__ for GCC.
62752         Suggested by Eric Blake.
62753
62754 2007-03-09  Bruno Haible  <bruno@clisp.org>
62755
62756         * modules/printf-posix-tests: New file.
62757         * tests/test-printf-posix.sh: New file.
62758         * tests/test-printf-posix.c: New file.
62759
62760         * modules/printf-posix: New file.
62761         * lib/printf.c: New file.
62762         * m4/printf-posix-rpl.m4: New file.
62763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62764         REPLACE_PRINTF.
62765         * lib/stdio_.h (printf): New declaration.
62766         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62767         ____strfmon____): New macros.
62768         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62769         REPLACE_PRINTF.
62770
62771 2007-03-09  Bruno Haible  <bruno@clisp.org>
62772
62773         * tests/test-vasnprintf-posix2.sh: New file.
62774         * tests/test-vasnprintf-posix2.c: New file.
62775         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62776         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62777         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62778
62779         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62780         a locale dependent decimal point, rather than always '.'.
62781
62782 2007-03-09  Eric Blake  <ebb9@byu.net>
62783
62784         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62785         spite of platforms like Tandem/NSK that define it to -1.
62786
62787 2007-03-08  Bruno Haible  <bruno@clisp.org>
62788
62789         * modules/vprintf-posix-tests: New file.
62790         * tests/test-vprintf-posix.sh: New file.
62791         * tests/test-vprintf-posix.c: New file.
62792         * tests/test-printf-posix.h: New file.
62793
62794         * modules/vprintf-posix: New file.
62795         * lib/vprintf.c: New file.
62796         * m4/vprintf-posix.m4: New file.
62797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62798         REPLACE_VPRINTF.
62799         * lib/stdio_.h (vprintf): New declaration.
62800         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62801         REPLACE_VPRINTF.
62802
62803 2007-03-08  Bruno Haible  <bruno@clisp.org>
62804
62805         * modules/fprintf-posix-tests: New file.
62806         * tests/test-fprintf-posix.sh: New file.
62807         * tests/test-fprintf-posix.c: New file.
62808
62809         * modules/fprintf-posix: New file.
62810         * lib/fprintf.c: New file.
62811         * m4/fprintf-posix.m4: New file.
62812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62813         REPLACE_FPRINTF.
62814         * lib/stdio_.h (fprintf): New declaration.
62815         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62816         REPLACE_FPRINTF.
62817
62818 2007-03-08  Bruno Haible  <bruno@clisp.org>
62819
62820         * modules/vfprintf-posix-tests: New file.
62821         * tests/test-vfprintf-posix.sh: New file.
62822         * tests/test-vfprintf-posix.c: New file.
62823         * tests/test-fprintf-posix.h: New file.
62824         * tests/test-fprintf-posix.out: New file.
62825
62826         * modules/vfprintf-posix: New file.
62827         * lib/vfprintf.c: New file.
62828         * m4/vfprintf-posix.m4: New file.
62829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62830         REPLACE_VFPRINTF.
62831         * lib/stdio_.h (vfprintf): New declaration.
62832         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62833         REPLACE_VFPRINTF.
62834
62835 2007-03-08  Bruno Haible  <bruno@clisp.org>
62836
62837         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62838
62839 2007-03-08  Bruno Haible  <bruno@clisp.org>
62840
62841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62842         instead of 'expr' invocations.
62843         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62844         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62845         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62848         Suggested by Paul Eggert.
62849
62850 2007-03-08  Bruno Haible  <bruno@clisp.org>
62851
62852         * modules/fseterr-tests: New file.
62853         * tests/test-fseterr.c: New file.
62854
62855         * modules/fseterr: New file.
62856         * lib/fseterr.h: New file.
62857         * lib/fseterr.c: New file.
62858
62859 2007-03-08  Bruno Haible  <bruno@clisp.org>
62860
62861         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62862         * lib/getopt_.h: Likewise.
62863         * lib/mbswidth.h: Likewise.
62864         * lib/setenv.h: Likewise.
62865         * lib/vasnprintf.h: Likewise.
62866         * lib/vasprintf.h: Likewise.
62867         * lib/verror.h: Likewise.
62868         * lib/xsetenv.h: Likewise.
62869         * lib/xvasprintf.h: Likewise.
62870
62871 2007-03-08  Jim Meyering  <jim@meyering.net>
62872
62873         * users.txt: Add parted.
62874
62875         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62876
62877 2007-03-07  Bruno Haible  <bruno@clisp.org>
62878
62879         * m4/printf.m4: Make the shell script snippets copy&pastable.
62880
62881 2007-03-02  Bruno Haible  <bruno@clisp.org>
62882
62883         * lib/netinet_in_.h: New file.
62884         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62885         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62886         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62887         (Depends-on): Add absolute-header.
62888         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62889         into netinet/in.h.
62890
62891 2007-03-03  Bruno Haible  <bruno@clisp.org>
62892
62893         * lib/sys_select_.h: New file.
62894         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62895         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62896         * modules/sys_select (Files): Add lib/sys_select_.h.
62897         (Depends-on): Add absolute-header.
62898         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62899         into sys/select.h.
62900
62901 2007-03-02  Bruno Haible  <bruno@clisp.org>
62902
62903         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62904         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62905         values.
62906         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62907         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62908         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62909         * modules/sys_socket (Depends-on): Add absolute-header.
62910         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62911         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62912         (Include): Remove requirement of inclusion of <sys/types.h>.
62913
62914 2007-03-02  Bruno Haible  <bruno@clisp.org>
62915
62916         * lib/byteswap_.h (bswap_32): Fix formula.
62917
62918 2007-03-06  Bruno Haible  <bruno@clisp.org>
62919
62920         * modules/sprintf-posix-tests: New file.
62921         * tests/test-sprintf-posix.c: New file.
62922
62923         * modules/sprintf-posix: New file.
62924         * lib/sprintf.c: New file.
62925         * m4/sprintf-posix.m4: New file.
62926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62927         REPLACE_SPRINTF.
62928         * lib/stdio_.h (sprintf): New declaration.
62929         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62930         REPLACE_SPRINTF.
62931
62932 2007-03-06  Bruno Haible  <bruno@clisp.org>
62933
62934         * modules/vsprintf-posix-tests: New file.
62935         * tests/test-vsprintf-posix.c: New file.
62936         * tests/test-sprintf-posix.h: New file.
62937
62938         * modules/vsprintf-posix: New file.
62939         * lib/vsprintf.c: New file.
62940         * m4/vsprintf-posix.m4: New file.
62941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62942         REPLACE_VSPRINTF.
62943         * lib/stdio_.h (vsprintf): New declaration.
62944         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62945         REPLACE_VSPRINTF.
62946
62947 2007-03-06  Bruno Haible  <bruno@clisp.org>
62948
62949         * modules/vsnprintf (Depend-on): Remove minmax.
62950
62951 2007-03-06  Bruno Haible  <bruno@clisp.org>
62952
62953         * modules/snprintf-posix-tests: New file.
62954         * tests/test-snprintf-posix.c: New file.
62955
62956         * modules/snprintf-posix: New file.
62957         * m4/snprintf-posix.m4: New file.
62958         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62959         gl_FUNC_SNPRINTF.
62960         (gl_FUNC_SNPRINTF): Invoke it.
62961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62962         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62963         is set.
62964         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62965
62966 2007-03-06  Bruno Haible  <bruno@clisp.org>
62967
62968         * modules/vsnprintf-posix-tests: New file.
62969         * tests/test-vsnprintf-posix.c: New file.
62970         * tests/test-snprintf-posix.h: New file.
62971
62972         * modules/vsnprintf-posix: New file.
62973         * m4/vsnprintf-posix.m4: New file.
62974         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62975         gl_FUNC_VSNPRINTF.
62976         (gl_FUNC_VSNPRINTF): Invoke it.
62977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62978         * lib/stdio_.h (vsnprintf): Define as a replacement if
62979         REPLACE_VSNPRINTF is set.
62980         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62981
62982 2007-03-06  Bruno Haible  <bruno@clisp.org>
62983
62984         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62986
62987 2007-03-06  Bruno Haible  <bruno@clisp.org>
62988
62989         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62990         (asinl): Declare also if HAVE_DECL_ASINL is set.
62991         (atanl): Declare also if HAVE_DECL_ATANL is set.
62992         (ceill): Declare also if HAVE_DECL_CEILL is set.
62993         (cosl): Declare also if HAVE_DECL_COSL is set.
62994         (expl): Declare also if HAVE_DECL_EXPL is set.
62995         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62996         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62997         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62998         (logl): Declare also if HAVE_DECL_LOGL is set.
62999         (sinl): Declare also if HAVE_DECL_SINL is set.
63000         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63001         (tanl): Declare also if HAVE_DECL_TANL is set.
63002         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63004         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63005         declaration of frexpl, ldexpl.
63006         * modules/printf-frexpl (Depends-on): Add math.
63007         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63008
63009 2007-03-05  Bruno Haible  <bruno@clisp.org>
63010
63011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63012         frexpl and ldexpl are declared.
63013         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63014
63015 2007-03-05  Bruno Haible  <bruno@clisp.org>
63016
63017         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63018         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63019
63020 2007-03-05  Bruno Haible  <bruno@clisp.org>
63021
63022         * lib/stdio_.h: Include <stddef.h>.
63023
63024 2007-03-05  Bruno Haible  <bruno@clisp.org>
63025
63026         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63027
63028 2007-03-05  Bruno Haible  <bruno@clisp.org>
63029
63030         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63031         NetBSD 4, from Ralf Wildenhues.
63032
63033 2007-03-04  Bruno Haible  <bruno@clisp.org>
63034
63035         * lib/vasprintf.h: Update #if logic for the case when the functions
63036         exist but are overridden.
63037
63038 2007-03-04  Bruno Haible  <bruno@clisp.org>
63039
63040         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63041         implementations: glibc-2.4 and MacOS X 10.3.
63042         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63043         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63044         * tests/test-vasprintf-posix.c (test_function): Likewise.
63045
63046 2007-03-04  Bruno Haible  <bruno@clisp.org>
63047
63048         * modules/vasprintf-posix-tests: New file.
63049         * tests/test-vasprintf-posix.c: New file.
63050
63051         * modules/vasprintf-posix: New file.
63052         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63053         defined.
63054         * m4/vasprintf-posix.m4: New file.
63055         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63056         gl_FUNC_VASPRINTF.
63057         (gl_FUNC_VASPRINTF): Invoke it.
63058         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63059         here.
63060         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63061
63062 2007-03-04  Bruno Haible  <bruno@clisp.org>
63063
63064         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63065         REPLACE_GETTIMEOFDAY.
63066         * modules/sys_time (Makefile.am): Likewise.
63067         * m4/sys_time_h.m4: Likewise.
63068         * m4/gettimeofday.m4: Likewise.
63069
63070 2007-03-04  Bruno Haible  <bruno@clisp.org>
63071
63072         * modules/vasnprintf-posix-tests: New file.
63073         * tests/test-vasnprintf-posix.c: New file.
63074
63075         * modules/vasnprintf-posix: New file.
63076         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63077         printf-frexpl.h.
63078         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63079         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63080         REPLACE_VASNPRINTF is defined.
63081         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63082         gl_FUNC_VASNPRINTF.
63083         (gl_FUNC_VASNPRINTF): Invoke it.
63084         * m4/vasnprintf-posix.m4: New file.
63085         * m4/printf.m4: New file.
63086
63087 2007-03-04  Bruno Haible  <bruno@clisp.org>
63088
63089         Compile progreloc.c only if --enable-relocatable is specified.
63090         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63091         if --enable-relocatable was specified.
63092         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63093         lib_SOURCES.
63094
63095 2007-03-04  Jim Meyering  <jim@meyering.net>
63096
63097         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63098         Use it consistently, rather than enumerating errno constants.
63099
63100 2007-03-04  Bruno Haible  <bruno@clisp.org>
63101
63102         * modules/xvasprintf-tests: New file.
63103         * tests/test-xvasprintf.c: New file.
63104
63105         * modules/vasprintf-tests: New file.
63106         * tests/test-vasprintf.c: New file.
63107
63108         * modules/vasnprintf-tests: New file.
63109         * tests/test-vasnprintf.c: New file.
63110
63111         * modules/vsnprintf-tests: New file.
63112         * tests/test-vsnprintf.c: New file.
63113
63114         * modules/snprintf-tests: New file.
63115         * tests/test-snprintf.c: New file.
63116
63117 2007-03-04  Bruno Haible  <bruno@clisp.org>
63118
63119         Compile relocatable.c only if --enable-relocatable is specified.
63120         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63121         gl_RELOCATABLE_LIBRARY.
63122         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63123         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63124         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63125         gl_RELOCATABLE_LIBRARY.
63126         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63127         (Makefile.am): Remove lib_SOURCES.
63128         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63129         gl_RELOCATABLE_LIBRARY.
63130         (Makefile.am): Remove lib_SOURCES.
63131         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63132         always.
63133         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63134         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63135
63136 2007-03-04  Bruno Haible  <bruno@clisp.org>
63137
63138         * modules/argmatch-tests: New file.
63139         * tests/test-argmatch.c: New file.
63140
63141         * tests/test-allocsa.c (main): Halve the number of loop runs.
63142
63143         * modules/alloca-opt-tests: New file.
63144         * tests/test-alloca-opt.c: New file.
63145
63146 2007-03-04  Jim Meyering  <jim@meyering.net>
63147
63148         Work around difference between Linux ACLs and Solaris 10 ZFS.
63149         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63150         for EINVAL.
63151
63152 2007-03-03  Bruno Haible  <bruno@clisp.org>
63153
63154         * modules/relocatable-prog (Depends-on): Add back progreloc's
63155         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63156
63157 2007-03-03  Bruno Haible  <bruno@clisp.org>
63158
63159         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63160         * modules/relocatable-lib: New file.
63161
63162 2007-03-03  Bruno Haible  <bruno@clisp.org>
63163
63164         * modules/relocatable-prog: Renamed from modules/relocatable.
63165         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63166
63167 2007-03-03  Bruno Haible  <bruno@clisp.org>
63168
63169         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63170         m4/relocatable-lib.m4.
63171         (Depends-on): Remove 'relocatable'.
63172         (configure.ac): Add gl_RELOCATABLE_NOP.
63173
63174 2007-03-03  Bruno Haible  <bruno@clisp.org>
63175
63176         * modules/relocatable-prog-wrapper: New file.
63177         * modules/relocatable (Depends-on): Add it. Remove all other
63178         dependencies except progname.
63179         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63180
63181         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63182         (gl_FUNC_STRERROR): Nop.
63183         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63184
63185         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63186         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63187
63188         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63189         (gl_FUNC_READLINK): Update.
63190
63191         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63192
63193 2007-03-03  Bruno Haible  <bruno@clisp.org>
63194
63195         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63196         * modules/xreadlink (Depends-on): Add unistd.
63197         * modules/xreadlink-with-size (Depends-on): Likewise.
63198
63199 2007-03-03  Bruno Haible  <bruno@clisp.org>
63200
63201         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63202         extracted from gt_FUNC_SETENV.
63203         (gt_FUNC_SETENV): Remove macro.
63204         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63205         remove gt_FUNC_SETENV.
63206
63207 2007-03-03  Bruno Haible  <bruno@clisp.org>
63208
63209         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63210         ENABLE_RELOCATABLE here.
63211         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63212
63213 2007-03-03  Bruno Haible  <bruno@clisp.org>
63214
63215         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63216         * tests/test-rbtreehash_list.c: Include progname.h.
63217         (main): Call set_program_name.
63218
63219         * modules/rbtree-oset-tests (Depends-on): Add progname.
63220         * tests/test-rbtree_oset.c: Include progname.h.
63221         (main): Call set_program_name.
63222
63223         * modules/rbtree-list-tests (Depends-on): Add progname.
63224         * tests/test-rbtree_list.c: Include progname.h.
63225         (main): Call set_program_name.
63226
63227         * modules/linked-list-tests (Depends-on): Add progname.
63228         * tests/test-linked_list.c: Include progname.h.
63229         (main): Call set_program_name.
63230
63231 2007-03-03  Bruno Haible  <bruno@clisp.org>
63232
63233         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63234         All uses of __restrict changed to _Restrict_.
63235         * lib/glob_.h (__restrict): Remove macro.
63236
63237 2007-03-02  Bruno Haible  <bruno@clisp.org>
63238
63239         * modules/gettext (configure.ac): Require gettext infrastructure
63240         from version 0.16.1.
63241
63242 2007-03-02  Bruno Haible  <bruno@clisp.org>
63243
63244         * modules/linkedhash-list-tests (Depends-on): Add progname.
63245         * tests/test-linkedhash_list.c: Include progname.h.
63246         (main): Call set_program_name.
63247
63248         * modules/carray-list-tests (Depends-on): Add progname.
63249         * tests/test-carray_list.c: Include progname.h.
63250         (main): Call set_program_name.
63251
63252         * modules/avltreehash-list-tests (Depends-on): Add progname.
63253         * tests/test-avltreehash_list.c: Include progname.h.
63254         (main): Call set_program_name.
63255
63256         * modules/avltree-oset-tests (Depends-on): Add progname.
63257         * tests/test-avltree_oset.c: Include progname.h.
63258         (main): Call set_program_name.
63259
63260         * modules/avltree-list-tests (Depends-on): Add progname.
63261         * tests/test-avltree_list.c: Include progname.h.
63262         (main): Call set_program_name.
63263
63264         * modules/array-oset-tests (Depends-on): Add progname.
63265         * tests/test-array_oset.c: Include progname.h.
63266         (main): Call set_program_name.
63267
63268         * modules/array-list-tests (Depends-on): Add progname.
63269         * tests/test-array_list.c: Include progname.h.
63270         (main): Call set_program_name.
63271
63272         * modules/argp-tests (Depends-on): Add progname.
63273         * tests/test-argp.c: Include argp.h first. Include progname.h.
63274         (main): Call set_program_name.
63275
63276 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63277
63278         * doc/gnulib-tool.texi (Initial import): Reword description of
63279         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63280         limited effect even if defined after the first system include.
63281
63282 2007-03-01  Bruno Haible  <bruno@clisp.org>
63283
63284         * build-aux/config.libpath: Update to libtool-1.5.22.
63285         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63286
63287 2007-03-01  Bruno Haible  <bruno@clisp.org>
63288
63289         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63290         foo_CFLAGS.
63291         Reported by Ralf Wildenhues.
63292
63293 2007-03-01  Bruno Haible  <bruno@clisp.org>
63294
63295         * build-aux/install-reloc: Remove object files left over by some
63296         compilers.
63297         Reported by Ralf Wildenhues.
63298
63299 2007-03-01  Bruno Haible  <bruno@clisp.org>
63300
63301         * build-aux/install-reloc: Break long lines.
63302
63303 2007-03-01  Bruno Haible  <bruno@clisp.org>
63304
63305         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63306         Reported by Ralf Wildenhues.
63307
63308 2007-03-01  Bruno Haible  <bruno@clisp.org>
63309
63310         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63311         include ordering constraints.
63312
63313 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63316         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63317         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63318         as another example.
63319         * lib/time_.h: Fix misspelling.
63320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63321         Require gl_HEADER_TIME_H_DEFAULTS.
63322         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63323         * m4/time_r.m4 (gl_TIME_R): Likewise.
63324         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63325
63326 2007-03-01  Bruno Haible  <bruno@clisp.org>
63327
63328         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63329         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63330
63331 2007-03-01  Jim Meyering  <jim@meyering.net>
63332
63333         * modules/xreadlink (Maintainer): Add my name.
63334         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63335
63336 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63337             Bruno Haible  <bruno@clisp.org>
63338
63339         * build-aux/install-reloc: Compile also c-ctype.c.
63340         * build-aux/relocatable.sh.in: New file.
63341         * doc/relocatable.texi: New file.
63342         * doc/relocatable-maint.texi: New file.
63343         * doc/gnulib.texi: Include relocatable-maint.texi.
63344         * lib/progreloc.c: Include unistd.h unconditionally.
63345         * lib/relocwrapper.c: Include unistd.h unconditionally.
63346         Include c-ctype.h.
63347         (add_dotbin): Use c_tolower.
63348         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63349         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63350         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63351         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63352         to m4/relocatable-lib.m4.
63353         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63354         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63355         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63356         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63357         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63358         * modules/relocatable: New file.
63359         * modules/relocatable-lib: New file.
63360         * modules/relocatable-script: New file.
63361
63362 2007-02-28  Bruno Haible  <bruno@clisp.org>
63363
63364         Import --enable-relocatable infrastructure.
63365         * build-aux/config.libpath: New file, from GNU gettext.
63366         * build-aux/install-reloc: New file, from GNU gettext.
63367         * build-aux/reloc-ldflags: New file, from GNU gettext.
63368         * lib/relocatable.h: New file, from GNU gettext.
63369         * lib/relocatable.c: New file, from GNU gettext.
63370         * lib/relocwrapper.c: New file, from GNU gettext.
63371         * m4/relocatable.m4: New file, from GNU gettext.
63372
63373 2007-02-28  Bruno Haible  <bruno@clisp.org>
63374
63375         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63376
63377         * modules/xreadlink: New file, from GNU gettext with modifications.
63378         * lib/xreadlink.c: New file, from GNU gettext.
63379         * lib/xreadlink.h: Add comments.
63380         (xreadlink): New declaration.
63381
63382         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63383         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63384         lib/xreadlink-with-size.c.
63385         (configure.ac): Remove gl_XREADLINK invocation.
63386         (Makefile.am): Augment lib_SOURCES.
63387         * m4/xreadlink.m4: Remove file.
63388         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63389         (xreadlink_with_size): Renamed from xreadink.
63390         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63391         * modules/canonicalize (Depends-on): Replace xreadlink with
63392         xreadlink-with-size.
63393         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63394
63395 2007-02-25  Jim Meyering  <jim@meyering.net>
63396
63397         * build-aux/announce-gen: When complaining about excess arguments,
63398         list them.
63399
63400 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63401
63402         * README: Document signed integer overflow situation more
63403         accurately.
63404
63405 2007-02-25  Bruno Haible  <bruno@clisp.org>
63406
63407         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63408         'a' or 'A' conversion.
63409
63410 2007-02-25  Bruno Haible  <bruno@clisp.org>
63411
63412         * modules/filename: Renamed from modules/pathname.
63413         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63414         lib/concatpath.c with lib/concat-filename.c.
63415         (Makefile.am): Update.
63416         (Include): Replace pathname.h with filename.h.
63417         * lib/filename.h: Renamed from lib/pathname.h.
63418         (concatenated_filename): Renamed from concatenated_pathname.
63419         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63420         (concatenated_filename): Renamed from concatenated_pathname.
63421         * lib/findprog.c: Include filename.h instead of pathname.h.
63422         (find_in_path): Update.
63423         * lib/javacomp.c: Include filename.h instead of pathname.h.
63424         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63425         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63426         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63427         is_oldgcj_14_13_usable, is_javac_usable): Update.
63428         * lib/javaexec.c: Include filename.h instead of pathname.h.
63429         (execute_java_class): Update.
63430         * modules/findprog: Update.
63431         * modules/javacomp: Update.
63432         * modules/javaexec: Update.
63433         * MODULES.html.sh (File system functions): Add 'filename', remove
63434         'pathname'.
63435
63436 2007-02-25  Bruno Haible  <bruno@clisp.org>
63437
63438         * modules/printf-frexpl-tests: New file.
63439         * tests/test-printf-frexpl.c: New file.
63440
63441         * modules/printf-frexpl: New file.
63442         * lib/printf-frexpl.h: New file.
63443         * lib/printf-frexpl.c: New file.
63444         * m4/printf-frexpl.m4: New file.
63445
63446 2007-02-25  Bruno Haible  <bruno@clisp.org>
63447
63448         * modules/printf-frexp-tests: New file.
63449         * tests/test-printf-frexp.c: New file.
63450
63451         * modules/printf-frexp: New file.
63452         * lib/printf-frexp.h: New file.
63453         * lib/printf-frexp.c: New file.
63454         * m4/printf-frexp.m4: New file.
63455
63456 2007-02-25  Bruno Haible  <bruno@clisp.org>
63457
63458         Assume automake >= 1.10 for the tests.
63459         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63460         * modules/arctwo-tests: Likewise.
63461         * modules/argp-tests: Likewise.
63462         * modules/avltree-list-tests: Likewise.
63463         * modules/avltree-oset-tests: Likewise.
63464         * modules/avltreehash-list-tests: Likewise.
63465         * modules/carray-list-tests: Likewise.
63466         * modules/crc-tests: Likewise.
63467         * modules/des-tests: Likewise.
63468         * modules/gc-arcfour-tests: Likewise.
63469         * modules/gc-arctwo-tests: Likewise.
63470         * modules/gc-des-tests: Likewise.
63471         * modules/gc-hmac-md5-tests: Likewise.
63472         * modules/gc-hmac-sha1-tests: Likewise.
63473         * modules/gc-md2-tests: Likewise.
63474         * modules/gc-md4-tests: Likewise.
63475         * modules/gc-md5-tests: Likewise.
63476         * modules/gc-pbkdf2-sha1-tests: Likewise.
63477         * modules/gc-rijndael-tests: Likewise.
63478         * modules/gc-sha1-tests: Likewise.
63479         * modules/gc-tests: Likewise.
63480         * modules/getaddrinfo-tests: Likewise.
63481         * modules/hmac-md5-tests: Likewise.
63482         * modules/hmac-sha1-tests: Likewise.
63483         * modules/linked-list-tests: Likewise.
63484         * modules/linkedhash-list-tests: Likewise.
63485         * modules/lock-tests: Likewise.
63486         * modules/md2-tests: Likewise.
63487         * modules/md4-tests: Likewise.
63488         * modules/md5-tests: Likewise.
63489         * modules/rbtree-list-tests: Likewise.
63490         * modules/rbtree-oset-tests: Likewise.
63491         * modules/rbtreehash-list-tests: Likewise.
63492         * modules/read-file-tests: Likewise.
63493         * modules/rijndael-tests: Likewise.
63494         * modules/stdint-tests: Likewise.
63495         * modules/tls-tests: Likewise.
63496
63497 2007-02-24  Bruno Haible  <bruno@clisp.org>
63498
63499         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63500         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63501         function; instead check whether isnan with a double argument links.
63502         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63503         function; instead check whether isnan with a 'long double' argument
63504         links.
63505         Reported by Eric Blake <ebb9@byu.net>.
63506
63507 2007-02-24  Bruno Haible  <bruno@clisp.org>
63508
63509         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63510         defined.
63511         * lib/isnanl.c: Remove all code. Just include isnan.c.
63512         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63513
63514 2007-02-25  Jim Meyering  <jim@meyering.net>
63515
63516         Avoid conflicting types for 'unsetenv' on FreeBSD.
63517         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63518         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63519         in stdlib.h.
63520
63521 2007-02-24  Bruno Haible  <bruno@clisp.org>
63522
63523         * modules/isnanl-nolibm-tests: New file.
63524         * tests/test-isnanl.c: New file.
63525
63526         * modules/isnanl-nolibm: New file.
63527         * lib/isnanl.h: New file.
63528         * lib/isnanl.c: New file.
63529         * m4/isnanl.m4: New file.
63530
63531 2007-02-24  Bruno Haible  <bruno@clisp.org>
63532
63533         * modules/isnan-nolibm-tests: New file.
63534         * tests/test-isnan.c: New file.
63535
63536         * modules/isnan-nolibm: New file.
63537         * lib/isnan.h: New file.
63538         * lib/isnan.c: New file.
63539         * m4/isnan.m4: New file.
63540
63541 2007-02-24  Bruno Haible  <bruno@clisp.org>
63542
63543         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63544         assume that an exponent fits in 20 bits.
63545
63546 2007-02-24  Jim Meyering  <jim@meyering.net>
63547
63548         * m4/regex.m4: Update the description of the configure-time option,
63549         --without-included-regex, to state accurately what the defaults are,
63550         and perhaps to give people an idea why using this option is risky.
63551
63552 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63553
63554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63555         loops on small arguments.  This attempts to avoid the problem
63556         Bruno Haible reported for AIX 4.3.2 in
63557         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63558
63559 2007-02-23  Bruno Haible  <bruno@clisp.org>
63560
63561         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63562         Needed for help2man.
63563
63564 2007-02-23  Karl Berry  <karl@gnu.org>
63565
63566         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63567         exists, foo.h should be cvs-ignored, not committed.
63568
63569 2007-02-23  Eric Blake  <ebb9@byu.net>
63570
63571         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63572         * lib/stat-time.h (includes): Likewise.
63573         * lib/utimecmp.c (includes): Likewise.
63574         * lib/utimens.h (includes): Likewise.
63575         * lib/getdate.y (includes): Also include "timespec.h" for use
63576         internal to the module.
63577         * modules/utimens (Depends-on): Revert yesterday's patch.
63578         * modules/nanosleep (Depends-on): Add missing dependency.
63579
63580 2007-02-22  Bruno Haible  <bruno@clisp.org>
63581
63582         * lib/glob.c: Don't include getlogin_r.h.
63583
63584 2007-02-22  Jim Meyering  <jim@meyering.net>
63585
63586         * modules/utimens (Depends-on): Add timespec, required for
63587         utimens.h's inclusion of timespec.h.
63588
63589 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63590
63591         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63592         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63593         Schwab in
63594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63595         I'll try to think of a better way to fix the Solaris problem.
63596
63597         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63598         like glibc; on Solaris 10, it fails with errno == EINVAL.
63599         POSIX says the behavior is unspecified if the first argument is NULL,
63600         so play it safe and never pass NULL to the system getcwd.
63601
63602 2007-02-21  Jim Meyering  <jim@meyering.net>
63603
63604         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63605         of gettimeofday.  It would conflict with the one now always
63606         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63607         an IRIX 6.5 build failure.
63608
63609 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63610
63611         Minor fixups to port to Solaris 10 with Sun C 5.8.
63612         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63613         * modules/getcwd (Depends-on): Add dirfd.
63614         * lib/putenv.c (putenv): #undef it.
63615         (rpl_putenv): New decl.
63616         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63617
63618 2007-02-20  Bruno Haible  <bruno@clisp.org>
63619
63620         * modules/stdio-tests: New file.
63621         * tests/test-stdio.c: New file.
63622
63623         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63624         (Depends-on): Add stdio.
63625         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63626         (Include): Use <stdio.h> instead of vsnprintf.h.
63627         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63628         HAVE_DECL_VSNPRINTF.
63629         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63630
63631         * modules/snprintf (Files): Remove lib/snprintf.h.
63632         (Depends-on): Add stdio.
63633         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63634         (Include): Use <stdio.h> instead of snprintf.h.
63635         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63636         HAVE_DECL_SNPRINTF.
63637         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63638         * lib/getaddrinfo.c: Likewise.
63639
63640         * modules/stdio: New file.
63641         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63642         * lib/snprintf.h: Remove file.
63643         * lib/vsnprintf.h: Remove file.
63644         * lib/.cppi-disable: Remove snprintf.h.
63645         * m4/stdio_h.m4: New file.
63646         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63647
63648 2007-02-20  Jim Meyering  <jim@meyering.net>
63649
63650         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63651         used by e.g., mingw.  From Bruno Haible.
63652
63653 2007-02-19  Bruno Haible  <bruno@clisp.org>
63654
63655         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63656         warnings.
63657         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63658
63659 2007-02-19  Bruno Haible  <bruno@clisp.org>
63660
63661         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63662         from mingw users.
63663
63664 2007-02-19  Bruno Haible  <bruno@clisp.org>
63665
63666         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63667         warnings.
63668         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63669
63670 2007-02-19  Jim Meyering  <jim@meyering.net>
63671
63672         Don't use FD after a successful "fdopendir (fd)".
63673         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63674         Reset it by calling dirfd on the just-obtained DIR*.
63675
63676         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63677         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63678
63679 2007-02-18  Bruno Haible  <bruno@clisp.org>
63680
63681         * lib/readlink.c: Include <unistd.h>.
63682         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63683         HAVE_READLINK.
63684         * modules/readlink (Depends-on): Add unistd.
63685         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63686         (Include): Add <unistd.h>.
63687
63688         * lib/getlogin_r.h: Remove file.
63689         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63690         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63691         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63692         HAVE_DECL_GETLOGIN_R.
63693         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63695         (Include): Use <unistd.h> instead of getlogin_r.h.
63696
63697         * lib/getcwd.h: Remove file.
63698         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63699         * lib/xgetcwd.c: Likewise.
63700         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63701         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63702         * modules/getcwd (Files): Remove lib/getcwd.h.
63703         (Depends-on): Add unistd.
63704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63705         (Include): Use <unistd.h> instad of getcwd.h.
63706
63707         * lib/ftruncate.c: Include <unistd.h> first.
63708         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63709         Set HAVE_FTRUNCATE.
63710         * modules/ftruncate (Depends-on): Add unistd.
63711         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63712
63713         * lib/fchdir.c: Include <unistd.h> first.
63714         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63716         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63717         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63718         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63719
63720         * lib/dup2.c: Include <unistd.h> first.
63721         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63722         HAVE_DUP2.
63723         * modules/dup2 (Depends-on): Add unistd.
63724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63725
63726         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63727         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63728         REPLACE_CHOWN. Don't define chown as a macro here.
63729         * modules/chown (Depends-on): Add unistd.
63730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63731
63732         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63733         Add definition for GL_LINK_WARNING.
63734         (chown, dup2): New declarations.
63735         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63736         link warning.
63737         (ftruncate): New declaration.
63738         (getcwd): New declaration, taken from old getcwd.h.
63739         (getlogin_r): New declaration, taken from old getlogin_r.h.
63740         (readlink): New declaration.
63741         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63742         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63743         (gl_PREREQ_UNISTD): Remove macro.
63744         (gl_UNISTD_MODULE_INDICATOR): New macro.
63745         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63746         many new variables. Don't set UNISTD_H.
63747         * modules/unistd (Description): Change.
63748         (Depends-on): Add link-warning.
63749         (configure.ac): Update.
63750         (Makefile.am): Create unistd.h always. Substitute many new variables
63751         into it.
63752
63753 2007-02-18  Bruno Haible  <bruno@clisp.org>
63754
63755         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63756         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63757         HAVE_GETSUBOPT.
63758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63759         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63760         * lib/getsubopt.h: Remove file.
63761         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63762         (Depends-on): Add stdlib.
63763         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63764         (Includes): Use <stdlib.h> instead of getsubopt.h.
63765         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63766         Set HAVE_GETSUBOPT.
63767         * lib/getsubopt.c: Don't include getsubopt.h.
63768
63769 2007-02-18  Bruno Haible  <bruno@clisp.org>
63770
63771         * modules/fchdir (Depends-on): Add dup2.
63772
63773 2007-02-18  Bruno Haible  <bruno@clisp.org>
63774
63775         * lib/stdlib_.h: Handle glibc's special invocation convention
63776         specially.
63777
63778 2007-02-18  Bruno Haible  <bruno@clisp.org>
63779
63780         * modules/stdlib-tests: New file.
63781         * tests/test-stdlib.c: New file.
63782
63783         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63784         (Depends-on): Add stdlib.
63785         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63786         (Includes): Use <stdlib.h> instead of mkstemp.h.
63787         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63788         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63789         * lib/mkstemp.c: Don't include mkstemp.h.
63790         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63791         * lib/stdlib--.h: Don't include mkstemp.h.
63792
63793         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63794         (Depends-on): Add stdlib.
63795         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63796         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63797         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63798         HAVE_MKDTEMP.
63799         * lib/mkdtemp.c: Don't include mkdtemp.h.
63800         * lib/clean-temp.c: Don't include mkdtemp.h.
63801
63802         * modules/exit (Files): Remove lib/exit.h.
63803         (Depends-on): Add stdlib.
63804         (Makefile.am): Remove lib_SOURCES.
63805         (Include): Use <stdlib.h> instead of exit.h.
63806         * lib/argmatch.c: Don't include exit.h.
63807         * lib/execute.c: Likewise.
63808         * lib/pagealign_alloc.c: Likewise.
63809         * lib/pipe.c: Likewise.
63810         * lib/wait-process.c: Likewise.
63811         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63812         * lib/exitfail.c: Likewise.
63813         * lib/savewd.c: Likewise.
63814         * lib/xsetenv.c: Likewise.
63815
63816         * modules/stdlib: New file.
63817         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63818         and extra comments about mkstemp().
63819         * lib/exit.h: Remove file.
63820         * lib/mkdtemp.h: Remove file.
63821         * lib/mkstemp.h: Remove file.
63822         * m4/stdlib_h.m4: New file.
63823         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63824
63825 2007-02-18  Bruno Haible  <bruno@clisp.org>
63826
63827         * modules/math-tests: New file.
63828         * tests/test-math.c: New file.
63829
63830         * modules/math: New file.
63831         * modules/mathl (Files): Remove lib/mathl.h.
63832         (Depends-on): Add math.
63833         (Makefile.am): Don't mention mathl.h.
63834         (Include): Use <math.h> instead of mathl.h.
63835         * lib/math_.h: New file.
63836         * lib/mathl.h: Remove file.
63837         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63838         mathl.h.
63839         * lib/asinl.c: Likewise.
63840         * lib/atanl.c: Likewise.
63841         * lib/ceill.c: Likewise.
63842         * lib/cosl.c: Likewise.
63843         * lib/expl.c: Likewise.
63844         * lib/floorl.c: Likewise.
63845         * lib/frexpl.c: Likewise.
63846         * lib/ldexpl.c: Likewise.
63847         * lib/logl.c: Likewise.
63848         * lib/sincosl.c: Likewise.
63849         * lib/sinl.c: Likewise.
63850         * lib/sqrtl.c: Likewise.
63851         * lib/tanl.c: Likewise.
63852         * lib/trigl.c: Likewise.
63853         * m4/math_h.m4: New file.
63854         * MODULES.html.sh (Mathematics): Add math.
63855
63856 2007-02-17  Bruno Haible  <bruno@clisp.org>
63857
63858         * modules/wctype-tests: New file.
63859         * tests/test-wctype.c: New file.
63860
63861         * modules/wchar-tests: New file.
63862         * tests/test-wchar.c: New file.
63863
63864         * modules/unistd-tests: New file.
63865         * tests/test-unistd.c: New file.
63866
63867         * modules/time-tests: New file.
63868         * tests/test-time.c: New file.
63869
63870         * modules/sysexits-tests: New file.
63871         * tests/test-sysexits.c: New file.
63872
63873         * modules/sys_time-tests: New file.
63874         * tests/test-sys_time.c: New file.
63875
63876         * modules/sys_stat-tests: New file.
63877         * tests/test-sys_stat.c: New file.
63878
63879         * modules/sys_socket-tests: New file.
63880         * tests/test-sys_socket.c: New file.
63881
63882         * modules/sys_select-tests: New file.
63883         * tests/test-sys_select.c: New file.
63884
63885         * modules/string-tests: New file.
63886         * tests/test-string.c: New file.
63887
63888         * modules/stdbool-tests: New file.
63889         * tests/test-stdbool.c: New file.
63890
63891         * modules/netinet_in-tests: New file.
63892         * tests/test-netinet_in.c: New file.
63893
63894         * modules/inttypes-tests: New file.
63895         * tests/test-inttypes.c: New file.
63896
63897         * modules/fcntl-tests: New file.
63898         * tests/test-fcntl.c: New file.
63899
63900         * modules/byteswap-tests: New file.
63901         * tests/test-byteswap.c: New file.
63902
63903         * modules/arpa_inet-tests: New file.
63904         * tests/test-arpa_inet.c: New file.
63905
63906 2007-02-17  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63909         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63910         if the corresponding module is not enabled. Emit link warnings if
63911         the function is used nevertheless.
63912         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63913         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63914         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63915         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63916         * modules/inttypes (Depends-on): Add link-warning.
63917         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63918         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63919         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63920         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63921         * modules/imaxdiv (configure.ac): Likewise.
63922         * modules/strtoimax (configure.ac): Likewise.
63923         * modules/strtoumax (configure.ac): Likewise.
63924
63925 2007-02-17  Bruno Haible  <bruno@clisp.org>
63926
63927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63928         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63929         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63930         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63931
63932 2007-02-17  Bruno Haible  <bruno@clisp.org>
63933
63934         * modules/link-warning: New file.
63935         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63936         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63937         * modules/string (Depends-on): Add link-warning.
63938         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63939         string.h.
63940         * MODULES.html.sh (Support for building libraries and executables): Add
63941         link-warning.
63942
63943 2007-02-17  Bruno Haible  <bruno@clisp.org>
63944
63945         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63946         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63947         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63948         long lines.
63949
63950 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63951             Bruno Haible  <bruno@clisp.org>
63952
63953         * modules/tmpfile: New file.
63954         * lib/tmpfile.c: New file.
63955         * m4/tmpfile.m4: New file.
63956         * MODULES.html.sh (func_all_modules): New section "Input/output".
63957
63958 2007-02-15  Bruno Haible  <bruno@clisp.org>
63959
63960         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63961         (supports_delete_on_close): New function.
63962         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63963
63964 2007-02-14  Bruno Haible  <bruno@clisp.org>
63965
63966         * modules/mbspcasecmp-tests: New file.
63967         * tests/test-mbspcasecmp.sh: New file.
63968         * tests/test-mbspcasecmp.c: New file.
63969
63970         New module mbspcasecmp.
63971         * modules/mbspcasecmp: New file.
63972         * lib/mbspcasecmp.c: New file.
63973         * lib/string_.h (strncasecmp): Change warning message.
63974         (mbspcasecmp): New declaration.
63975         * m4/mbspcasecmp.m4: New file.
63976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63977         GNULIB_MBSPCASECMP.
63978         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63979         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63980
63981 2007-02-14  Bruno Haible  <bruno@clisp.org>
63982
63983         * modules/mbsncasecmp-tests: New file.
63984         * tests/test-mbsncasecmp.sh: New file.
63985         * tests/test-mbsncasecmp.c: New file.
63986
63987         New module mbsncasecmp.
63988         * modules/mbsncasecmp: New file.
63989         * lib/mbsncasecmp.c: New file.
63990         * lib/string_.h (mbsncasecmp): New declaration.
63991         * m4/mbsncasecmp.m4: New file.
63992         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63993         GNULIB_MBSNCASECMP.
63994         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63995         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63996
63997 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63998
63999         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64000         Verify that it doesn't overlap with our flags.
64001         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64002         do not have the desired effect in multibyte locales; instead, use
64003         mbscasecmp.
64004         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64005         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64006         we don't require GNU fnmatch ourselves (if our users require it, they
64007         should do so explicitly).
64008
64009         Fix regex code so it doesn't rely on strcasecmp.
64010         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64011         Otherwise, include gnulib's langinfo.h.
64012         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64013         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64014         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64015         * modules/regex (FILES): Remove m4/codeset.m4.
64016         (Depends-on): Add localcharset.  Remove strcase.
64017
64018 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64019
64020         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64021         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64022
64023 2007-02-13  Bruno Haible  <bruno@clisp.org>
64024
64025         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64027
64028 2007-02-12  Bruno Haible  <bruno@clisp.org>
64029
64030         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64031         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64032         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64033         time warning rather than a link error.
64034
64035 2007-02-12  Bruno Haible  <bruno@clisp.org>
64036
64037         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64038         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64040
64041 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64042
64043         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64044         args, not 2.
64045
64046 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64047
64048         New module 'time', so that apps can include <time.h> as per
64049         POSIX and GNU instead of separate include files like time_r.h
64050         and timegm.h.  This implementation tries out a simpler approach
64051         for replacing decls in standard include files (as compared to
64052         the string module), somewhat as an experiment.
64053
64054         * config/srclist.txt: Comment out mktime.c for now.
64055         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64056         since it doesn't apply any more.  Use generic wording instead.
64057         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64058         'time'.
64059         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64060         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64061         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64062         Don't include <sys/types.h>; no longer needed since we assume C89.
64063         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64064         * lib/strftime.c: Likewise.
64065         * lib/time_r.c: Likewise.
64066         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64067         * lib/nanosleep.c: Include <time.h> first, to check interface.
64068         * lib/strptime.c: Likewise.
64069         * lib/time_r.c: Likewise.
64070         * lib/timegm.c: Likewise.
64071         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64072         needed.
64073         * lib/timegm.c: Don't include timegm.h; no longer needed.
64074         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64075         time.h now handles any problems in that area.
64076         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64077         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64078         that time.h defines struct timespec.
64079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64080         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64081         handles that.
64082         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64083         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64084         needed.  Set REPLACE_LOCALTIME.
64085         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64086         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64087         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64088         nanosleep; time_h.m4 now does that.  Don't require
64089         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64090         module handles this now.
64091         * modules/getdate (Depends-on): Remove timespec.  Add time.
64092         * modules/nanosleep (Depends-on): Likewise.
64093         * modules/stat-time (Depends-on): Likewise.
64094         * modules/nanosleep (Include): Include time.h, not timespec.h.
64095         * modules/strptime (Files): Remove lib/strptime.h.
64096         (Depends-on): Add extensions, time.
64097         (Include): Include time.h, not strptime.h.
64098         * modules/time_r (Files): Remove lib/time_r.h.
64099         (Depends-on): Add time.
64100         (Include): Include time.h, not time_r.h.
64101         * modules/timegm: Likewise.
64102         * modules/timespec (Description): Now does timespec-related decls
64103         of our own, instead of struct timespec itself.
64104         (Depends-on): Add time; remove extensions.
64105         (Maintainer): Add self.
64106         * modules/utimecmp (Depends-on): Add time; remove timespec.
64107         * modules/utimens (Depends-on): Likewise.
64108         * modules/xnanosleep (Depends-on): Likewise.
64109
64110 2007-02-11  Bruno Haible  <bruno@clisp.org>
64111
64112         * lib/c-strstr.c: Include allocsa.h.
64113         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64114         * lib/c-strcasestr.c: Include allocsa.h.
64115         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64116         * lib/strcasestr.c: Include allocsa.h.
64117         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64118         * lib/mbsstr.c: Include allocsa.h.
64119         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64120         allocsa/freesa instead of malloc/free.
64121         * lib/mbscasestr.c: Include allocsa.h.
64122         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64123         allocsa/freesa instead of malloc/free.
64124         * modules/c-strstr (Depends-on): Add allocsa.
64125         * modules/c-strcasestr (Depends-on): Likewise.
64126         * modules/strcasestr (Depends-on): Likewise.
64127         * modules/mbsstr (Depends-on): Likewise.
64128         * modules/mbscasestr (Depends-on): Likewise.
64129
64130 2007-02-11  Bruno Haible  <bruno@clisp.org>
64131
64132         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64133
64134         * modules/mbsspn-tests: New file.
64135         * tests/test-mbsspn.sh: New file.
64136         * tests/test-mbsspn.c: New file.
64137
64138 2007-02-11  Bruno Haible  <bruno@clisp.org>
64139
64140         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64141
64142         * modules/mbspbrk-tests: New file.
64143         * tests/test-mbspbrk.sh: New file.
64144         * tests/test-mbspbrk.c: New file.
64145
64146 2007-02-11  Bruno Haible  <bruno@clisp.org>
64147
64148         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64149         unneeded cast.
64150
64151         * modules/mbscspn-tests: New file.
64152         * tests/test-mbscspn.sh: New file.
64153         * tests/test-mbscspn.c: New file.
64154
64155 2007-02-11  Bruno Haible  <bruno@clisp.org>
64156
64157         * modules/mbscasecmp-tests: New file.
64158         * tests/test-mbscasecmp.sh: New file.
64159         * tests/test-mbscasecmp.c: New file.
64160
64161 2007-02-11  Bruno Haible  <bruno@clisp.org>
64162
64163         Ensure O(n) worst-case complexity of mbscasestr.
64164         * lib/mbscasestr.c: Include stdbool.h.
64165         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64166         functions.
64167         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64168         the bookkeeping indicates that it's worth it.
64169         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64170
64171         * modules/mbscasestr-tests: New file.
64172         * tests/test-mbscasestr1.c: New file.
64173         * tests/test-mbscasestr2.sh: New file.
64174         * tests/test-mbscasestr2.c: New file.
64175         * tests/test-mbscasestr3.sh: New file.
64176         * tests/test-mbscasestr3.c: New file.
64177         * tests/test-mbscasestr4.sh: New file.
64178         * tests/test-mbscasestr4.c: New file.
64179         * m4/locale-tr.m4: New file.
64180
64181 2007-02-11  Bruno Haible  <bruno@clisp.org>
64182
64183         Ensure O(n) worst-case complexity of mbsstr.
64184         * lib/mbsstr.c: Include stdbool.h.
64185         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64186         functions.
64187         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64188         bookkeeping indicates that it's worth it.
64189         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64190
64191         * modules/mbsstr-tests: New file.
64192         * tests/test-mbsstr1.c: New file.
64193         * tests/test-mbsstr2.sh: New file.
64194         * tests/test-mbsstr2.c: New file.
64195         * tests/test-mbsstr3.sh: New file.
64196         * tests/test-mbsstr3.c: New file.
64197         * m4/locale-fr.m4: New file.
64198
64199 2007-02-11  Bruno Haible  <bruno@clisp.org>
64200
64201         * lib/mbsrchr.c (mbsrchr): Fix bug.
64202
64203         * modules/mbsrchr-tests: New file.
64204         * tests/test-mbsrchr.sh: New file.
64205         * tests/test-mbsrchr.c: New file.
64206
64207 2007-02-11  Bruno Haible  <bruno@clisp.org>
64208
64209         * lib/mbschr.c (mbschr): Fix bug.
64210
64211         * modules/mbschr-tests: New file.
64212         * tests/test-mbschr.sh: New file.
64213         * tests/test-mbschr.c: New file.
64214         * m4/locale-zh.m4: New file.
64215
64216 2007-02-11  Bruno Haible  <bruno@clisp.org>
64217
64218         Support for copying multibyte string iterators.
64219         * lib/mbiter.h: Include <string.h>.
64220         (mbiter_multi_copy): New function.
64221         (mbi_copy): New macro.
64222         * lib/mbuiter.h: Include <string.h>.
64223         (mbuiter_multi_copy): New function.
64224         (mbui_copy): New macro.
64225
64226 2007-02-11  Bruno Haible  <bruno@clisp.org>
64227
64228         New module mbslen.
64229         * modules/mbslen: New file.
64230         * lib/mbslen.c: New file.
64231         * lib/string_.h (mbslen): New declaration.
64232         * m4/mbslen.m4: New file.
64233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64234         GNULIB_MBSLEN.
64235         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64236         * MODULES.html.sh (Internationalization functions): Add mbslen.
64237
64238 2007-02-11  Bruno Haible  <bruno@clisp.org>
64239
64240         Ensure O(n) worst-case complexity of strcasestr substitute.
64241         * lib/strcasestr.c: Include stdbool.h.
64242         (knuth_morris_pratt): New function.
64243         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64244         bookkeeping indicates that it's worth it.
64245         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64246
64247         * modules/strcasestr-tests: New file.
64248         * tests/test-strcasestr.c: New file.
64249
64250 2007-02-11  Bruno Haible  <bruno@clisp.org>
64251
64252         Ensure O(n) worst-case complexity of c_strcasestr.
64253         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64254         (knuth_morris_pratt): New function.
64255         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64256         the bookkeeping indicates that it's worth it.
64257         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64258
64259         * modules/c-strcasestr-tests: New file.
64260         * tests/test-c-strcasestr.c: New file.
64261
64262 2007-02-11  Bruno Haible  <bruno@clisp.org>
64263
64264         Ensure O(n) worst-case complexity of c_strstr.
64265         * lib/c-strstr.c: Include stdbool.h, string.h.
64266         (knuth_morris_pratt): New function.
64267         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64268         bookkeeping indicates that it's worth it.
64269         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64270
64271         * lib/c-strstr.c: Complete rewrite for maintainability.
64272
64273         * modules/c-strstr-tests: New file.
64274         * tests/test-c-strstr.c: New file.
64275
64276 2007-02-11  Bruno Haible  <bruno@clisp.org>
64277
64278         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64279         5.2.1 and earlier, whereby \055 was treated just like the range
64280         delimiter '-'.
64281         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64282
64283 2007-02-08  Bruno Haible  <bruno@clisp.org>
64284
64285         * modules/regex (Depends-on): Add stdbool.
64286         Reported by Dalibor Topic <robilad@kaffe.org>.
64287
64288 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64291         Prefer returning from main to exiting from it.
64292         Remove unnecessary parens after sizeof.
64293
64294 2007-02-05  Bruno Haible  <bruno@clisp.org>
64295
64296         New module mbssep.
64297         * modules/mbssep: New file.
64298         * lib/mbssep.c: New file.
64299         * lib/string_.h (strsep): Add a conditional link warning.
64300         (mbssep): New declaration.
64301         * m4/mbssep.m4: New file.
64302         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64303         GNULIB_MBSSEP.
64304         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64305         * MODULES.html.sh (Internationalization functions): Add mbssep.
64306
64307 2007-02-05  Bruno Haible  <bruno@clisp.org>
64308
64309         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64310         Optimize search in case of 1 delimiter.
64311
64312 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64313
64314         * lib/acl.h: Include sys/types.h before sys/acl.h.
64315
64316 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64317
64318         Merge upstream fix for glibc bugzilla #3957:
64319
64320         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64321
64322         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64323         bit for RE_HAT_LISTS_NOT_NEWLINE.
64324         (build_charclass_op): Remove bogus comment.
64325
64326 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64327
64328         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64329
64330 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64333         * lib/memmem.c [!defined _LIBC]: Include config.h.
64334
64335 2007-02-04  Bruno Haible  <bruno@clisp.org>
64336
64337         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64338         warning message.
64339
64340 2007-02-04  Bruno Haible  <bruno@clisp.org>
64341
64342         New module mbstok_r.
64343         * modules/mbstok_r: New file.
64344         * lib/mbstok_r.c: New file.
64345         * lib/string_.h (strtok_r): Change argument names to match the
64346         comments. Add a conditional link warning.
64347         (mbstok_r): New declaration.
64348         * m4/mbstok_r.m4: New file.
64349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64350         GNULIB_MBSTOK_R.
64351         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64352         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64353
64354 2007-02-04  Bruno Haible  <bruno@clisp.org>
64355
64356         New module mbsspn.
64357         * modules/mbsspn: New file.
64358         * lib/mbsspn.c: New file.
64359         * lib/string_.h (strspn): Add a conditional link warning.
64360         (mbsspn): New declaration.
64361         * m4/mbsspn.m4: New file.
64362         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64363         GNULIB_MBSSPN.
64364         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64365         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64366
64367 2007-02-04  Bruno Haible  <bruno@clisp.org>
64368
64369         New module mbspbrk.
64370         * modules/mbspbrk: New file.
64371         * lib/mbspbrk.c: New file.
64372         * lib/string_.h (strpbrk): Add a conditional link warning.
64373         (mbspbrk): New declaration.
64374         * m4/mbspbrk.m4: New file.
64375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64376         GNULIB_MBSPBRK.
64377         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64378         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64379
64380 2007-02-04  Bruno Haible  <bruno@clisp.org>
64381
64382         New module mbscspn.
64383         * modules/mbscspn: New file.
64384         * lib/mbscspn.c: New file.
64385         * lib/string_.h (strcspn): Add a conditional link warning.
64386         (mbscspn): New declaration.
64387         * m4/mbscspn.m4: New file.
64388         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64389         GNULIB_MBSCSPN.
64390         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64391         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64392
64393 2007-02-04  Bruno Haible  <bruno@clisp.org>
64394
64395         New module mbscasestr, reduced goal of strcasestr.
64396         * modules/mbscasestr: New file.
64397         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64398         (mbscasestr): Renamed from strcasestr.
64399         * lib/strcasestr.c: Don't include mbuiter.h.
64400         (strcasestr): Remove support for multibyte locales.
64401         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64402         Change the conditional link warning.
64403         (mbscasestr): New declaration.
64404         * m4/mbscasestr.m4: New file.
64405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64406         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64407         REPLACE_STRCASESTR.
64408         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64410         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64411         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64412         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64413         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64414         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64415         (Depends-on): Remove mbuiter.
64416         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64417
64418 2007-02-04  Bruno Haible  <bruno@clisp.org>
64419
64420         Simplify handling of strncasecmp.
64421         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64422         the conditional link warning.
64423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64424         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64425         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64426         * modules/strcase (configure.ac): Don't invoke
64427         gl_STRING_MODULE_INDICATOR.
64428         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64429
64430 2007-02-04  Bruno Haible  <bruno@clisp.org>
64431
64432         New module mbscasecmp, reduced goal of strcasecmp.
64433         * modules/mbscasecmp: New file.
64434         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64435         (mbscasecmp): Renamed from strcasecmp.
64436         * lib/strcasecmp.c: Don't include mbuiter.h.
64437         (strcasecmp): Remove support for multibyte locales.
64438         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64439         Change the conditional link warning.
64440         (mbscasecmp): New declaration.
64441         * m4/mbscasecmp.m4: New file.
64442         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64443         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64444         REPLACE_STRCASECMP.
64445         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64446         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64447         GNULIB_MBSCASECMP.
64448         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64449         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64450         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64451         (Depends-on): Remove mbuiter.
64452         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64453
64454 2007-02-04  Bruno Haible  <bruno@clisp.org>
64455
64456         New module mbsstr. Remove module strstr.
64457         * modules/mbsstr: New file.
64458         * modules/strstr: Remove file.
64459         * lib/mbsstr.c: Renamed from lib/strstr.c.
64460         (mbsstr): Renamed from strstr.
64461         * lib/string_.h (strstr): Remove declaration. Change the conditional
64462         link warning.
64463         (mbsstr): New declaration.
64464         * m4/mbsstr.m4: New file.
64465         * m4/strstr.m4: Remove file.
64466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64467         REPLACE_STRSTR.
64468         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64469         Don't initialize GNULIB_STRSTR.
64470         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64471         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64472         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64473         (Support for systems lacking ANSI C 89): Remove strstr.
64474
64475 2007-02-04  Bruno Haible  <bruno@clisp.org>
64476
64477         New module mbsrchr.
64478         * modules/mbsrchr: New file.
64479         * lib/mbsrchr.c: New file.
64480         * lib/string_.h (strrchr): Add a conditional link warning.
64481         (mbsrchr): New declaration.
64482         * m4/mbsrchr.m4: New file.
64483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64484         GNULIB_MBSRCHR.
64485         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64486         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64487
64488 2007-02-04  Bruno Haible  <bruno@clisp.org>
64489
64490         New module mbschr.
64491         * modules/mbschr: New file.
64492         * lib/mbschr.c: New file.
64493         * lib/string_.h (strchr): Add a conditional link warning.
64494         (mbschr): New declaration.
64495         * m4/mbschr.m4: New file.
64496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64497         GNULIB_MBSCHR.
64498         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64499         * MODULES.html.sh (Internationalization functions): Add mbschr.
64500
64501 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64502
64503         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64504
64505         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64506
64507 2007-02-04  Bruno Haible  <bruno@clisp.org>
64508
64509         New module description section 'configure.ac-early'.
64510         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64511         (func_get_autoconf_early_snippet): New function.
64512         (func_import, func_create_testdir): Use it. Remove special cases for
64513         modules 'extensions' and 'lock'.
64514         * modules/extensions (configure.ac-early): Require
64515         gl_USE_SYSTEM_EXTENSIONS.
64516         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64517
64518 2007-02-04  Bruno Haible  <bruno@clisp.org>
64519
64520         Make use of gcj-4.3's -fsource and -ftarget option.
64521         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64522         and if so try the options -fsource and -ftarget.
64523         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64524         source_version, ftarget_option, target_version arguments.
64525         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64526         (is_envjavac_oldgcj_14_14_usable): Renamed from
64527         is_envjavac_gcj_14_14_usable.
64528         (is_envjavac_oldgcj_14_13_usable): Renamed from
64529         is_envjavac_gcj_14_13_usable.
64530         (is_gcj_present): Update.
64531         (is_gcj_43, is_gcj43_usable): New functions.
64532         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64533         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64534         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64535         try the options -fsource and -ftarget.
64536
64537 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64540         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64541         larger value.
64542
64543 2007-02-03  Jim Meyering  <jim@meyering.net>
64544
64545         Give tools a better chance to allocate space for very large buffers.
64546         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64547
64548         Make pwd and readlink work also when run with an unreadable parent dir
64549         on systems with openat support.
64550         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64551         provided getcwd function, even when we have openat support.
64552         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64553
64554 2007-02-02  Bruno Haible  <bruno@clisp.org>
64555
64556         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64557         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64558         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64559         portability problems if one of these functions is only used on specific
64560         platforms.
64561         Reported by Paul Eggert.
64562
64563 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64564
64565         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64566         is causing more trouble than it's curing.
64567         * lib/regex_internal.h (__mempcpy): Remove.
64568         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64569         (and make the code a tad smaller to boot).
64570         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64571
64572 2007-02-02  Jim Meyering  <jim@meyering.net>
64573
64574         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64575         section, not in the Makefile.am: one.
64576
64577 2007-02-02  Eric Blake  <ebb9@byu.net>
64578
64579         * lib/strchrnul.c: Always include config.h first.
64580
64581         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64582         gnulib strstr is not necessary here.
64583
64584 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64585
64586         * m4/socklen.m4: Fix typo.
64587
64588 2007-02-02  Eric Blake  <ebb9@byu.net>
64589
64590         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64591         * modules/netinet_in (Makefile.am): Likewise.
64592
64593 2007-02-01  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/string_.h (GL_LINK_WARNING): New macro.
64596         (strcasecmp, strstr, strcasestr): If provided by the system,
64597         conditionally define as a macro that leads to a warning instead of to
64598         an error.
64599         (strncasecmp): Conditionally define as a macro that leads to a warning.
64600
64601 2007-02-01  Karl Berry  <karl@gnu.org>
64602
64603         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64604
64605 2007-02-01  Bruno Haible  <bruno@clisp.org>
64606
64607         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64608         renamings.
64609
64610 2007-02-01  Eric Blake  <ebb9@byu.net>
64611
64612         * modules/regex (Depends-on): Revert dependence on mempcpy.
64613         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64614         module's definition of mempcpy.
64615         Reported by Paul Eggert.
64616
64617 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64618
64619         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64620         the symbol XYZ before redefining it.  This fixes a problem with
64621         programs that don't use XYZ, when compiled on systems that define
64622         XYZ to something else.
64623
64624 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64625
64626         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64627         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64628         writeable to group or other and (2) is intended to have a special
64629         mode bit that is set or cleared.  In such a case, the directory
64630         should be neither group- nor other-writeable until the special
64631         mode bits are right.
64632
64633 2007-01-31  Eric Blake  <ebb9@byu.net>
64634
64635         * modules/mountlist (Depends-on): Add strstr.
64636
64637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64638         bug.
64639         * modules/string (Makefile.am): Remove redundant replacement.
64640         * modules/regex (Depends-on): Add mempcpy.
64641
64642 2007-01-31  Bruno Haible  <bruno@clisp.org>
64643
64644         New module description field 'Link'.
64645         * gnulib-tool (func_usage): Document --extract-link-directive.
64646         (sed_extract_prog): Recognize 'Link' directive.
64647         (func_get_link_directive): New function.
64648         (func_import): Show summary of link directives.
64649         Handle --extract-link-directive option.
64650         * modules/acl (Link): New section.
64651         * modules/clock-time (Link): New section.
64652         * modules/euidaccess (Link): New section.
64653         * modules/gettext (Link): New section.
64654         * modules/iconv (Link): New section.
64655         * modules/lock (Link): New section.
64656         * modules/nanosleep (Link): New section.
64657         * modules/readline (Link): New section.
64658
64659 2007-01-27  Bruno Haible  <bruno@clisp.org>
64660
64661         Enforce the use of gnulib modules for unportable <string.h> functions.
64662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64663         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64664         (gl_HEADER_STRING_H_BODY): Require it.
64665         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64666         the symbol XYZ to one that gives a link error.
64667         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64668         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64669         * modules/mempcpy (configure.ac): Likewise.
64670         * modules/memrchr (configure.ac): Likewise.
64671         * modules/stpcpy (configure.ac): Likewise.
64672         * modules/stpncpy (configure.ac): Likewise.
64673         * modules/strcase (configure.ac): Likewise.
64674         * modules/strcasestr (configure.ac): Likewise.
64675         * modules/strchrnul (configure.ac): Likewise.
64676         * modules/strdup (configure.ac): Likewise.
64677         * modules/strndup (configure.ac): Likewise.
64678         * modules/strnlen (configure.ac): Likewise.
64679         * modules/strpbrk (configure.ac): Likewise.
64680         * modules/strsep (configure.ac): Likewise.
64681         * modules/strstr (configure.ac): Likewise.
64682         * modules/strtok_r (configure.ac): Likewise.
64683
64684 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64685
64686         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64687
64688 2007-01-30  Jim Meyering  <jim@meyering.net>
64689
64690         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64691
64692 2007-01-29  Bruno Haible  <bruno@clisp.org>
64693
64694         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64695         * lib/execute.c: Likewise.
64696         * lib/pipe.c: Likewise.
64697         * lib/printf-args.h: Likewise.
64698         * lib/printf-args.c: Likewise.
64699         * lib/printf-parse.c: Likewise.
64700         * lib/vasnprintf.c: Likewise.
64701
64702 2007-01-29  Eric Blake  <ebb9@byu.net>
64703
64704         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64705         declaration.
64706
64707 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         * lib/strptime.h (strptime): Use 'restrict' for args where
64710         POSIX requires this.
64711         * lib/strptime.c (strptime): Likewise.
64712         Change license notice from LGPL to GPL, since gnulib-tool will
64713         change this as needed.
64714         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64715         defined.
64716         Include "strptime.h" first, to check interface.
64717         Do not #undef _LIBC and _NL_CURRENT.
64718         Do not include <stdlib.h>; no longer needed.
64719         Include "time_r.h" and declare ptime_locale_status
64720         only if _LIBC is not defined.
64721         (__P): Remove unused macro.
64722         (match_string): Bring back glibc version, but use it only if _LIBC
64723         is defined.
64724         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64725         Remove unnecessary assertion and abort() call.
64726         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64727         * m4/strptime.m4: Fix serial number comment.
64728         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64729         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64730         (Depends-on): Add time_r.
64731
64732 2007-01-29  Bruno Haible  <bruno@clisp.org>
64733
64734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64735         strptime.
64736         * modules/strptime (Depends-on): Add stdbool.
64737         * lib/strptime.h: Include <time.h> always. Add comments.
64738
64739 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64740
64741         * modules/strptime: New file.
64742         * lib/strptime.h: New file.
64743         * lib/strptime.c: New file.
64744         * m4/strptime.m4: New file.
64745
64746 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         * MODULES.html.sh: New module mpsort.
64749         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64750
64751         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64752         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64753         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64754         All uses changed.
64755         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64756         All uses changed.
64757         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64758         to _Restrict_.
64759         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64760         the parameter matches the prototype.
64761
64762 2007-01-28  Jim Meyering  <jim@meyering.net>
64763
64764         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64765         sys/time.h here, reverting that part of the previous patch:
64766         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64767
64768 2007-01-28  Bruno Haible  <bruno@clisp.org>
64769
64770         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64771         value of $(SYS_TIME_H).
64772         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64773         remove it conditionally, too. [added by Jim Meyering]
64774         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64775         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64776         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64777         GETTIMEOFDAY_REPLACEMENT to 1.
64778
64779 2007-01-28  Bruno Haible  <bruno@clisp.org>
64780
64781         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64782         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64784         Set UNISTD_H instead of UNISTD_H2.
64785         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64786
64787 2007-01-28  Bruno Haible  <bruno@clisp.org>
64788
64789         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64790         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64791
64792 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64793
64794         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64795         (func_create_testdir): Ensure C locale for `grep' and `tr'
64796         character ranges.
64797         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64798         ACLOCAL_AMFLAGS parsing state machine.
64799
64800 2007-01-27  Bruno Haible  <bruno@clisp.org>
64801
64802         * modules/unistr/base: Update.
64803
64804 2007-01-27  Bruno Haible  <bruno@clisp.org>
64805
64806         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64807         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64808         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64809         modules/unistr/u32-mbtouc.
64810         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64811         * lib/unistr.h: Update.
64812         * lib/linebreak.c: Update.
64813         * modules/unistr/u32-mbtouc: Renamed from
64814         modules/unistr/u32-mbtouc-safe.
64815         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64816         * lib/unistr.h: Update.
64817         * lib/unistr/u32-to-u8.c: Update.
64818         * lib/unistr/u32-to-u16.c: Update.
64819
64820 2007-01-27  Bruno Haible  <bruno@clisp.org>
64821
64822         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64823         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64824         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64825         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64826         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64827         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64828         modules/unistr/u16-mbtouc.
64829         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64830         * lib/unistr.h: Update.
64831         * lib/linebreak.c: Update.
64832         * modules/linebreak: Update.
64833         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64834         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64835         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64836         * modules/unistr/u16-mbtouc: Renamed from
64837         modules/unistr/u16-mbtouc-safe.
64838         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64839         * lib/unistr.h: Update.
64840         * lib/unistr/u16-to-u8.c: Update.
64841         * modules/unistr/u16-to-u8: Update.
64842         * lib/unistr/u16-to-u32.c: Update.
64843         * modules/unistr/u16-to-u32: Update.
64844
64845 2007-01-27  Bruno Haible  <bruno@clisp.org>
64846
64847         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64848         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64849         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64850         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64851         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64852         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64853         modules/unistr/u8-mbtouc.
64854         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64855         * lib/unistr.h: Update.
64856         * lib/striconveh.c: Update.
64857         * modules/striconveh: Update.
64858         * lib/linebreak.c: Update.
64859         * modules/linebreak: Update.
64860         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64861         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64862         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64863         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64864         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64865         * lib/unistr.h: Update.
64866         * lib/striconveh.c: Update.
64867         * modules/striconveh: Update.
64868         * lib/unistr/u8-to-u16.c: Update.
64869         * modules/unistr/u8-to-u16: Update.
64870         * lib/unistr/u8-to-u32.c: Update.
64871         * modules/unistr/u8-to-u32: Update.
64872
64873 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64874
64875         Sync from Libtool.
64876         * lib/argz.c: Do not include strings.h nor memory.h, include
64877         string.h unconditionally.  Patch by Simon Josefsson.
64878
64879 2007-01-27  Bruno Haible  <bruno@clisp.org>
64880
64881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64882         from gl_HEADER_STRING_H_BODY.
64883         (gl_HEADER_STRING_H_BODY): Require it.
64884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64885         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64886         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64887         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64888         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64889         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64890         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64891         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64892         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64893         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64894         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64895         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64896         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64897         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64898         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64899
64900 2007-01-27  Bruno Haible  <bruno@clisp.org>
64901
64902         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64903         check_PROGRAMS into noinst_PROGRAMS.
64904         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64905         check_PROGRAMS in this case.
64906         (func_import): Set for_test to false.
64907         (func_create_testdir): Set for_test to true.
64908
64909 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64910             Bruno Haible  <bruno@clisp.org>
64911
64912         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64913         (Depends-on): Add string.
64914         (Includes): Use <string.h> instead of strcasestr.h.
64915         * modules/string (Makefile.am): Also substitute the value of
64916         REPLACE_STRCASESTR.
64917         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64918         assume strcasestr is declared in <string.h> not <strings.h>. Also
64919         set REPLACE_STRCASESTR.
64920         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64921         REPLACE_STRCASESTR.
64922         * lib/strcasestr.h: Remove file.
64923         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64924         * lib/string_.h (strcasestr): New declaration.
64925
64926 2007-01-27  Bruno Haible  <bruno@clisp.org>
64927
64928         * lib/string_.h: Use 'extern'.
64929
64930 2007-01-27  Jim Meyering  <jim@meyering.net>
64931
64932         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64933         of set-but-not-used local, "q".
64934
64935         * lib/mempcpy.c: Include <config.h> before <string.h>.
64936         This fixes a compilation error on HP-UX, due to the system's
64937         "restrict"-using mempcpy prototype.
64938
64939 2007-01-26  Bruno Haible  <bruno@clisp.org>
64940
64941         Small optimization.
64942         * lib/javacomp.c: Include c-strstr.h.
64943          (is_envjavac_gcj): Use c_strstr instead of strstr.
64944         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64945
64946 2007-01-26  Bruno Haible  <bruno@clisp.org>
64947
64948         * MODULES.html.sh (Unicode string functions): Add the new modules.
64949
64950         * modules/uniconv/u32-strconv-to-locale: New file.
64951         * lib/uniconv/u32-strconv-to-locale.c: New file.
64952
64953         * modules/uniconv/u16-strconv-to-locale: New file.
64954         * lib/uniconv/u16-strconv-to-locale.c: New file.
64955
64956         * modules/uniconv/u8-strconv-to-locale: New file.
64957         * lib/uniconv/u8-strconv-to-locale.c: New file.
64958
64959         * modules/uniconv/u32-strconv-from-locale: New file.
64960         * lib/uniconv/u32-strconv-from-locale.c: New file.
64961
64962         * modules/uniconv/u16-strconv-from-locale: New file.
64963         * lib/uniconv/u16-strconv-from-locale.c: New file.
64964
64965         * modules/uniconv/u8-strconv-from-locale: New file.
64966         * lib/uniconv/u8-strconv-from-locale.c: New file.
64967
64968         * modules/uniconv/u32-strconv-to-enc: New file.
64969         * lib/uniconv/u32-strconv-to-enc.c: New file.
64970         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64971         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64972
64973         * modules/uniconv/u16-strconv-to-enc: New file.
64974         * lib/uniconv/u16-strconv-to-enc.c: New file.
64975         * lib/uniconv/u-strconv-to-enc.h: New file.
64976         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64977         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64978
64979         * modules/uniconv/u8-strconv-to-enc: New file.
64980         * lib/uniconv/u8-strconv-to-enc.c: New file.
64981         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64982         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64983
64984         * modules/uniconv/u32-strconv-from-enc: New file.
64985         * lib/uniconv/u32-strconv-from-enc.c: New file.
64986         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64987         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64988
64989         * modules/uniconv/u16-strconv-from-enc: New file.
64990         * lib/uniconv/u16-strconv-from-enc.c: New file.
64991         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64992         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64993
64994         * modules/uniconv/u8-strconv-from-enc: New file.
64995         * lib/uniconv/u8-strconv-from-enc.c: New file.
64996         * lib/uniconv/u-strconv-from-enc.h: New file.
64997         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64998         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64999
65000         * modules/uniconv/u32-conv-from-enc: New file.
65001         * lib/uniconv/u32-conv-from-enc.c: New file.
65002         * modules/uniconv/u32-conv-from-enc-tests: New file.
65003         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65004
65005         * modules/uniconv/u16-conv-from-enc: New file.
65006         * lib/uniconv/u16-conv-from-enc.c: New file.
65007         * lib/uniconv/u-conv-from-enc.h: New file.
65008         * modules/uniconv/u16-conv-from-enc-tests: New file.
65009         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65010
65011         * modules/uniconv/u8-conv-from-enc: New file.
65012         * lib/uniconv/u8-conv-from-enc.c: New file.
65013         * modules/uniconv/u8-conv-from-enc-tests: New file.
65014         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65015
65016         * modules/uniconv/base: New file.
65017         * lib/uniconv.h: New file.
65018
65019 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65020
65021         * doc/gnulib-tool.texi (Initial import): Update to match current
65022         behavior with strdup module.
65023         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65024         * lib/memmem.h: Remove; all uses removed.  This is now done
65025         by <string.h>.
65026         * lib/mempcpy.h: Likewise.
65027         * lib/memrchr.h: Likewise.
65028         * lib/stpcpy.h: Likewise.
65029         * lib/stpncpy.h: Likewise.
65030         * lib/strcase.h: Likewise.
65031         * lib/strchrnul.h: Likewise.
65032         * lib/strdup.h: Likewise.
65033         * lib/strndup.h: Likewise.
65034         * lib/strnlen.h: Likewise.
65035         * lib/strpbrk.h: Likewise.
65036         * lib/strsep.h: Likewise.
65037         * lib/strstr.h: Likewise.
65038         * lib/strtok_r.h: Likewise.
65039         * lib/string_.h: New file.
65040         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65041         Rely on <string.h> instead.
65042         * lib/canon-host.c: Likewise.
65043         * lib/chdir-long.c: Likewise.
65044         * lib/concatpath.c: Likewise.
65045         * lib/exclude.c: Likewise.
65046         * lib/fchdir.c: Likewise.
65047         * lib/getaddrinfo.c: Likewise.
65048         * lib/getcwd.c: Likewise.
65049         * lib/getsubopt.c: Likewise.
65050         * lib/glob.c: Likewise.
65051         * lib/hard-locale.c: Likewise.
65052         * lib/iconvme.c: Likewise.
65053         * lib/javacomp.c: Likewise.
65054         * lib/mempcpy.c: Likewise.
65055         * lib/memrchr.c: Likewise.
65056         * lib/regex_internal.h: Likewise.
65057         * lib/stpncpy.c: Likewise.
65058         * lib/strcasecmp.c: Likewise.
65059         * lib/strchrnul.c: Likewise.
65060         * lib/strdup.c: Likewise.
65061         * lib/striconv.c: Likewise.
65062         * lib/striconveh.c: Likewise.
65063         * lib/striconveha.c: Likewise.
65064         * lib/strncasecmp.c: Likewise.
65065         * lib/strndup.c: Likewise.
65066         * lib/strnlen.c: Likewise.
65067         * lib/strsep.c: Likewise.
65068         * lib/strstr.c: Likewise.
65069         * lib/strtok_r.c: Likewise.
65070         * lib/userspec.c: Likewise.
65071         * lib/w32spawn.h: Likewise.
65072         * lib/xstrndup.c: Likewise.
65073         * lib/mountlist.c (strstr): Remove decl.
65074         * m4/string_h.m4: New file.
65075         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65076         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65077         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65078         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65079         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65080         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65081         Set REPLACE_STRCASECMP if necessary.
65082         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65083         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65084         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65085         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65086         HAVE_DECL_STRDUP if necessary.
65087         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65088         since gl_FUNC_STRNDUP does that now.
65089         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65090         Check for decl here...
65091         (gl_PREREQ_STRNLEN): ... not here.
65092         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65093         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65094         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65095         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65096         necessary.
65097         * modules/string: New file.
65098         * modules/memmem (Files): Remove special-purpose include file.
65099         (Depends-on): Add string.
65100         (Include): Include <string.h>, not the removed file.
65101         * modules/mempcpy: Likewise.
65102         * modules/memrchr: Likewise.
65103         * modules/stpcpy: Likewise.
65104         * modules/stpncpy: Likewise.
65105         * modules/strcase: Likewise.
65106         * modules/strchrnul: Likewise.
65107         * modules/strdup: Likewise.
65108         * modules/strndup: Likewise.
65109         * modules/strnlen: Likewise.
65110         * modules/strpbrk: Likewise.
65111         * modules/strsep: Likewise.
65112         * modules/strstr: Likewise.
65113         * modules/strtok_r: Likewise.
65114         * tests/test-dirname.c: Don't include "strdup.h", since
65115         <string.h> now suffices.
65116         * tests/test-memmem.c: Don't include "memmem.h", since
65117         <string.h> now suffices.
65118
65119 2007-01-25  Bruno Haible  <bruno@clisp.org>
65120
65121         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65122         *resultp is 0.
65123
65124         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65125         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65126         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65127         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65128
65129         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65130         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65131         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65132         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65133         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65134         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65135
65136 2007-01-24  Bruno Haible  <bruno@clisp.org>
65137
65138         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65139         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65140         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65141         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65142         gl_FUNC_FTS_CORE.
65143         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65144         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65145         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65146         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65147         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65148         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65149         gl_FUNC_FCHOWNAT.
65150         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65151         gl_FUNC_STRFTIME.
65152         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65153         Reported by Ralf Wildenhues.
65154
65155 2007-01-24  Bruno Haible  <bruno@clisp.org>
65156
65157         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65158         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65159         gl_GETADDRINFO.
65160         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65161         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65162         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65163
65164 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65165
65166         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65167         Don't use 'exit'; just return from 'main'.
65168         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65169
65170         * lib/fnmatch_.h: Readjust white space and comments to match
65171         glibc, to avoid spurious diffs.
65172
65173 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65174
65175         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65176         2004-12-01 change by Jakub Jelinek, since this code won't compile
65177         if !LIBC.  Problem reported by Bob Proulx.
65178
65179 2007-01-23  Bruno Haible  <bruno@clisp.org>
65180
65181         * lib/striconveh.c: Include c-strcaseeq.h.
65182         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65183         * modules/striconveh (Depends-on): Add c-strcaseeq.
65184
65185 2007-01-23  Bruno Haible  <bruno@clisp.org>
65186
65187         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65188
65189         * modules/c-strcaseeq: New file.
65190         * lib/c-strcaseeq.h: New file.
65191
65192         * modules/streq: New file.
65193         * lib/streq.h: New file.
65194
65195 2007-01-23  Bruno Haible  <bruno@clisp.org>
65196
65197         * modules/striconveha-tests: New file.
65198         * tests/test-striconveha.c: New file.
65199
65200         * lib/striconveha.h: Include <stdbool.h>.
65201         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65202         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65203         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65204         (mem_iconveha): New function.
65205         (str_iconveha_notranslit): Renamed from str_iconveha.
65206         (str_iconveha): New function.
65207         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65208         c-strcase.
65209
65210 2007-01-23  Bruno Haible  <bruno@clisp.org>
65211
65212         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65213         encodings without forgiving before trying any encoding with handler.
65214         (str_iconveha): Try all encodings without forgiving before trying any
65215         encoding with handler.
65216
65217 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65218
65219         Import the following changes from libc.
65220
65221         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65222
65223         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65224
65225         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65226
65227         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65228         normal_bracket label.
65229
65230         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65231
65232         [BZ #361]
65233         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65234         to normal_bracket after fetching the next character.
65235
65236 2007-01-22  Bruno Haible  <bruno@clisp.org>
65237
65238         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65239         argument.
65240         * lib/striconveh.c (iconv_carefully_1): New function.
65241         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65242         argument.
65243         (str_cd_iconveh): Update.
65244         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65245         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65246         * tests/test-striconveh.c (MAGIC): New macro.
65247         (new_offsets): New function.
65248         (main): Test call with and without offsets.
65249
65250 2007-01-22  Bruno Haible  <bruno@clisp.org>
65251
65252         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65253         * modules/sys_select (Makefile.am): Likewise.
65254         * modules/sys_socket (Makefile.am): Likewise.
65255         * modules/sys_time (Makefile.am): Likewise.
65256
65257 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65258
65259         * modules/gettimeofday (License): Change from GPL to LGPL, since
65260         gettimeofday is a library function.
65261
65262 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65263
65264         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65265
65266 2007-01-21  Bruno Haible  <bruno@clisp.org>
65267
65268         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65269
65270 2007-01-21  Bruno Haible  <bruno@clisp.org>
65271
65272         * modules/striconveha: New file.
65273         * lib/striconveha.h: New file.
65274         * lib/striconveha.c: New file.
65275         * MODULES.html.sh (Internationalization functions): Add striconveha.
65276         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65277         string.
65278         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65279
65280 2007-01-21  Bruno Haible  <bruno@clisp.org>
65281
65282         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65283         * lib/striconveh.c (str_iconveh): Likewise.
65284
65285 2007-01-21  Bruno Haible  <bruno@clisp.org>
65286
65287         * lib/striconveh.h (mem_iconveh): New declaration.
65288         * lib/striconveh.c (mem_iconveh): New function.
65289         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65290
65291 2007-01-21  Bruno Haible  <bruno@clisp.org>
65292
65293         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65294
65295         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65296         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65297         original result buffer.
65298         (str_cd_iconveh): Update.
65299         * tests/test-striconveh.c (main): Update.
65300
65301         * lib/striconv.h (mem_cd_iconv): Change specification.
65302         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65303         result buffer.
65304         (str_cd_iconv): Update.
65305         * tests/test-striconv.c (main): Update.
65306
65307 2007-01-21  Bruno Haible  <bruno@clisp.org>
65308
65309         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65310
65311 2007-01-20  Jim Meyering  <jim@meyering.net>
65312
65313         * lib/userspec.c (parse_with_separator): If a user or group string
65314         starts with "+", skip the corresponding name-to-ID look-up, since
65315         such a look-up must fail: user and group names may not include "+".
65316
65317 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65318
65319         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65320         since we now assume the sys_time module.
65321         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65322         check for sys/time.h; no longer needed.
65323         * modules/poll (Depends-on): Depend on sys_time.
65324
65325 2007-01-18  Bruno Haible  <bruno@clisp.org>
65326
65327         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65328         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65329
65330         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65331         gettimeofday.
65332
65333         * tests/test-gettimeofday.c: Include <time.h>.
65334         (dummy): Remove variable.
65335
65336         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65337         gl_HEADER_SYS_TIME_H.
65338         (gl_HEADER_SYS_TIME_H): New macro.
65339
65340         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65341         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65342         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65343         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65344         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65345         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65346         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65347         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65348         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65349         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65350         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65351
65352         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65353         last change; it caused a compilation error when cross-compiling to
65354         Cygwin.
65355
65356 2007-01-18  Jim Meyering  <jim@meyering.net>
65357
65358         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65359         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65360         than the race-prone "test -d sys || mkdir sys".
65361         (configure.ac): Use AC_PROG_MKDIR_P.
65362         * modules/sys_select: Likewise.
65363         * modules/sys_socket: Likewise.
65364         * modules/sys_time: Likewise.
65365
65366 2007-01-18  Eric Blake  <ebb9@byu.net>
65367
65368         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65369         replace gettimeofday.
65370         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65371         name, to avoid infinite recursion.
65372
65373 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65374
65375         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65376         module sys_time.
65377         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65378         assume timespec.h defines struct timeval.
65379         * lib/settime.c: Likewise.
65380         * lib/utimens.c: Likewise.
65381         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65382         since we now assume the gettimeofday module.
65383         * lib/tempname.c (__gen_tempname): Likewise.
65384         * lib/gettimeofday.h: Remove.
65385         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65386         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65387         Include <time.h>, for 'time()'.
65388         (localtime_buffer_addr): Also use this workaround if
65389         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65390         to simplify the uses.  All uses changed.
65391         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65392         that #undef is inside {}, and 'const' follows type name consistently.
65393         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65394         (gettimeofday): Do not use the maximum possible value for
65395         tv->tv_usec, since that might break usages other than ls.c.
65396         Instead, we'll leave ls.c alone.  This undoes today's patch
65397         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65398         we've never observed the problem but might as well keep the
65399         canary.
65400         * lib/nanosleep.c: Include timespec.h first, for interface check.
65401         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65402         now assume the sys_time module.
65403         * lib/tempname.c: Likewise.
65404         * lib/timespec.h: Likewise.
65405         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65406         needed.
65407         * lib/strftime.c: Likewise.
65408         * lib/timespec.h: Likewise.
65409         * lib/posixtm.c: Include posixtm.h first, for interface check.
65410         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65411         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65412         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65413         * lib/sys_time_.h: New file.
65414         * lib/timespec.h (struct timespec): Use long int, not long.
65415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65416         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65417         Remove obsolescent call to AC_HEADER_TIME.
65418         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65420         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65421         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65422         Likewise.
65423         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65424         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65425         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65426         into the sys_time module.  Check for gettimeofday just once.
65427         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65428         for gettimeofday signature to just check the signature.  Merely
65429         compile it, since linking doesn't test signature.  Improve test for
65430         whether gettimeofday.o is actually needed.
65431         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65432         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65433         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65434         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65435         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65436         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65437         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65438         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65439         than worrying about sys/time.h.
65440         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65441         Don't bother worrying about TIME_WITH_SYS_TIME.
65442         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65443         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65444         * m4/sys_time_h.m4: New file.
65445         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65446         Don't include sys/time.h.  Return from main rather than exiting.
65447         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65448         all uses changed.
65449         * modules/gethrxtime (Depends-on): Add sys_time.
65450         * modules/gettime (Depends-on): Likewise.
65451         * modules/gettimeofday (Depends-on): Likewise.
65452         * modules/nanosleep (Depends-on): Likewise.
65453         * modules/settime (Depends-on): Likewise.
65454         * modules/tempname (Depends-on): Likewise.
65455         * modules/utimens (Depends-on): Likewise.
65456         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65457         (Include): Change back to <sys/time.h>.
65458         (Maintainer): Add self.
65459         * modules/sys_time: New file.
65460         * modules/tempname (Depends-on): Add gettimeofday.
65461         * tests/test-gettimeofday.c: Include <sys/time.h>
65462         rather than gettimeofday.h.
65463
65464 2007-01-17  Bruno Haible  <bruno@clisp.org>
65465
65466         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65467         the license default to GPL.
65468         (func_create_testdir): Don't complain if a module is LGPL and its
65469         tests module depends on GPLed modules.
65470
65471 2007-01-17  Bruno Haible  <bruno@clisp.org>
65472
65473         * lib/gettimeofday.c (gettimeofday): Add code for the case
65474         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65475         maximum possible value for tv->tv_usec, rather than the minimum one.
65476
65477 2005-10-08  Martin Lambers  <marlam@marlam.de>
65478 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65479 2007-01-16  Bruno Haible  <bruno@clisp.org>
65480
65481         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65482         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65483         gl_FUNC_GETTIMEOFDAY.
65484         (Include): Add gettimeofday.h.
65485         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65486         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65487         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65488         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65489         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65490         * lib/gettimeofday.h: New file.
65491         * lib/gettimeofday.c: Include <sys/timeb.h>.
65492         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65493         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65494         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65495         fall back on time().
65496
65497         * tests/test-gettimeofday.c: New file.
65498         * modules/gettimeofday-tests: New file.
65499
65500 2007-01-16  Eric Blake  <ebb9@byu.net>
65501
65502         * modules/fnmatch (Depends-on): Depend on wchar.
65503         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65504         * m4/fnmatch.m4: Likewise.
65505         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65506         * m4/mbchar.m4: Likewise.
65507         * modules/mbswidth (Depends-on): Depend on wchar.
65508         * lib/mbswidth.c: Assume <wchar.h>.
65509         * m4/mbswidth.m4: Likewise.
65510         * modules/quotearg (Depends-on): Depend on wchar.
65511         * lib/quotearg.c: Assume <wchar.h>.
65512         * m4/quotearg.m4: Likewise.
65513         * modules/regex (Depends-on): Depend on wchar.
65514         * lib/regex_internal.h: Assume <wchar.h>.
65515         * m4/regex.m4: Likewise.
65516         * modules/stdint (Depends-on): Depend on wchar.
65517         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65518         * m4/stdint.m4: Likewise.
65519         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65520         * modules/strftime (Depends-on): Depend on wchar.
65521         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65522         * modules/strtol (Depends-on): Depend on wchar.
65523         * lib/strtol.c: Assume <wchar.h>.
65524         * modules/wcwidth (Depends-on): Depend on wchar.
65525         * lib/wcwidth.h: Assume <wchar.h>.
65526         * m4/wcwidth.m4: Likewise.
65527
65528 2007-01-16  Bruno Haible  <bruno@clisp.org>
65529
65530         * modules/csharpexec-script: New, created from...
65531         * modules/csharpexec: ... this.
65532
65533 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65534
65535         * modules/javaexec-script: New, created from...
65536         * modules/javaexec: ... this.
65537
65538 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65539
65540         * modules/poll (Dependencies): Add sys_select.
65541
65542 2007-01-15  Jim Meyering  <jim@meyering.net>
65543
65544         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65545         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65546         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65547         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65548
65549 2007-01-15  Bruno Haible  <bruno@clisp.org>
65550
65551         * modules/striconveh: New file.
65552         * lib/striconveh.h: New file.
65553         * lib/striconveh.c: New file.
65554         * MODULES.html.sh (Internationalization functions): Add striconveh.
65555
65556         * modules/striconveh-tests: New file.
65557         * tests/test-striconveh.c: New file.
65558
65559 2007-01-15  Bruno Haible  <bruno@clisp.org>
65560
65561         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65562         not from GNU libiconv or GNU libc.
65563
65564 2007-01-15  Bruno Haible  <bruno@clisp.org>
65565
65566         * doc/gnulib-intro.texi (Copyright): Explain the different license
65567         terms for module descriptions, autoconf macros, tests, documentation.
65568
65569 2007-01-14  Bruno Haible  <bruno@clisp.org>
65570
65571         * modules/striconv-tests: New file.
65572         * tests/test-striconv.c: New file.
65573
65574 2007-01-14  Bruno Haible  <bruno@clisp.org>
65575
65576         * modules/iconv-tests: New file.
65577         * tests/test-iconv.c: New file.
65578
65579 2007-01-14  Bruno Haible  <bruno@clisp.org>
65580
65581         * gnulib-tool (func_get_license): For test modules, use the license of
65582         the main module.
65583
65584 2007-01-14  Bruno Haible  <bruno@clisp.org>
65585
65586         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65587         if iconv is found to exist.
65588
65589 2007-01-14  Bruno Haible  <bruno@clisp.org>
65590
65591         * modules/c-ctype-tests: New file.
65592         * tests/test-c-ctype.c: New file.
65593
65594 2007-01-14  Bruno Haible  <bruno@clisp.org>
65595
65596         * modules/binary-io-tests: New file.
65597         * tests/test-binary-io.sh: New file.
65598         * tests/test-binary-io.c: New file.
65599
65600 2007-01-14  Bruno Haible  <bruno@clisp.org>
65601
65602         * modules/array-oset-tests: New file.
65603         * tests/test-array_oset.c: New file.
65604
65605 2007-01-14  Bruno Haible  <bruno@clisp.org>
65606
65607         * modules/array-list-tests: New file.
65608         * tests/test-array_list.c: New file.
65609
65610 2007-01-14  Bruno Haible  <bruno@clisp.org>
65611
65612         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65613         and make.
65614         Reported by Simon Josefsson in
65615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65616
65617 2007-01-14  Bruno Haible  <bruno@clisp.org>
65618
65619         * modules/allocsa-tests: New file.
65620         * tests/test-allocsa.c: New file.
65621
65622 2007-01-14  Bruno Haible  <bruno@clisp.org>
65623
65624         * modules/fchdir (Depends-on): Add absolute-header.
65625         * modules/unistd (Depends-on): Likewise.
65626
65627 2006-12-30  Bruno Haible  <bruno@clisp.org>
65628
65629         * modules/fchdir: New file.
65630         * modules/unistd (Files): Add lib/unistd_.h.
65631         (Makefile.am): Generate unistd.h from unistd_.h.
65632         * lib/fchdir.c: New file.
65633         * lib/dirent_.h: New file.
65634         * lib/unistd_.h: New file.
65635         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65636         * m4/fchdir.m4: New file.
65637         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65638         (gl_HEADER_UNISTD): Invoke it.
65639         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65640         function.
65641         * lib/backupfile.c (opendir, closedir): Undefine.
65642         * lib/chown.c (open, close): Undefine.
65643         * lib/clean-temp.c (open, close): Undefine.
65644         * lib/copy-file.c (open, close): Undefine.
65645         * lib/execute.c (open, close): Undefine.
65646         * lib/fsusage.c (open, close): Undefine.
65647         * lib/gc-gnulib.c (open, close): Undefine.
65648         * lib/getcwd.c (opendir, closedir): Undefine.
65649         * lib/glob.c (opendir, closedir): Undefine.
65650         * lib/javacomp.c (open, close): Undefine.
65651         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65652         * lib/openat-proc.c (open, close): Undefine.
65653         * lib/pagealign_alloc.c (open, close): Undefine.
65654         * lib/pipe.c (open, close): Undefine.
65655         * lib/progreloc.c (open, close): Undefine.
65656         * lib/savedir.c (opendir, closedir): Undefine.
65657         * lib/utime.c (open, close): Undefine.
65658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65659
65660 2007-01-10  Bruno Haible  <bruno@clisp.org>
65661
65662         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65663
65664 2007-01-12  Eric Blake  <ebb9@byu.net>
65665
65666         Provide a robust <wchar.h>.  Further simplifications are now
65667         possible in other modules, but not included here.
65668         * modules/wchar: New module.
65669         * m4/wchar.m4: New file.
65670         * lib/wchar_.h: Likewise.
65671         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65672         of the new module.
65673         * MODULES.html.sh (Extended multibyte and wide character utilities):
65674         New section.
65675
65676 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65677
65678         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65679         to a reasonable default for memory allocation.
65680         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65681         file system that reports garbage st_size values for symlinks.
65682         Problem reported by Liyang Hu.
65683
65684 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65685
65686         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65687         Emacs .#* auto-save files).
65688
65689 2007-01-11  Bruno Haible  <bruno@clisp.org>
65690
65691         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65692         directory.
65693
65694 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         Use @...@ consistently in lib/wctype_.h.
65697         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65698         on it being set to 1 or 0.
65699         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65700         go back to AC_SUBSTing it.
65701         * modules/wctype (Makefile.am): Undo previous change.
65702
65703 2007-01-10  Eric Blake  <ebb9@byu.net>
65704
65705         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65706         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65707         * modules/wctype (Makefile.am): Likewise.
65708         Reported by Chris McGuire.
65709
65710 2007-01-10  Jim Meyering  <jim@meyering.net>
65711
65712         fts.c: a small readability/maintainability improvement
65713         * lib/fts.c (fts_read): Make this code slightly more readable and
65714         maintainable by hoisting the "sp->fts_cur = p" assignments to
65715         immediately follow the statements that set P.  Derived from
65716         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65717
65718 2007-01-10  Eric Blake  <ebb9@byu.net>
65719
65720         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65721         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65722         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65723         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65724         Reported by Chris McGuire.
65725
65726 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65727
65728         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65729         in sed script.
65730
65731 2007-01-09  Bruno Haible  <bruno@clisp.org>
65732
65733         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65734         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65735         variables.
65736         (func_module): Use them.
65737
65738 2007-01-09  Bruno Haible  <bruno@clisp.org>
65739
65740         * modules/unistr/base: New file.
65741         * lib/unistr.h: New file.
65742
65743         * modules/unistr/u8-to-u16: New file.
65744         * lib/unistr/u8-to-u16.c: New file.
65745
65746         * modules/unistr/u8-to-u32: New file.
65747         * lib/unistr/u8-to-u32.c: New file.
65748
65749         * modules/unistr/u16-to-u8: New file.
65750         * lib/unistr/u16-to-u8.c: New file.
65751
65752         * modules/unistr/u16-to-u32: New file.
65753         * lib/unistr/u16-to-u32.c: New file.
65754
65755         * modules/unistr/u32-to-u8: New file.
65756         * lib/unistr/u32-to-u8.c: New file.
65757
65758         * modules/unistr/u32-to-u16: New file.
65759         * lib/unistr/u32-to-u16.c: New file.
65760
65761         * modules/unistr/u8-check: New file.
65762         * modules/unistr/u16-check: New file.
65763         * modules/unistr/u32-check: New file.
65764         * lib/unistr/u8-check.c: New file.
65765         * lib/unistr/u16-check.c: New file.
65766         * lib/unistr/u32-check.c: New file.
65767
65768         * modules/unistr/u8-chr: New file.
65769         * modules/unistr/u16-chr: New file.
65770         * modules/unistr/u32-chr: New file.
65771         * lib/unistr/u8-chr.c: New file.
65772         * lib/unistr/u16-chr.c: New file.
65773         * lib/unistr/u32-chr.c: New file.
65774
65775         * modules/unistr/u8-cmp: New file.
65776         * modules/unistr/u16-cmp: New file.
65777         * modules/unistr/u32-cmp: New file.
65778         * lib/unistr/u8-cmp.c: New file.
65779         * lib/unistr/u16-cmp.c: New file.
65780         * lib/unistr/u32-cmp.c: New file.
65781
65782         * modules/unistr/u8-cpy: New file.
65783         * modules/unistr/u16-cpy: New file.
65784         * modules/unistr/u32-cpy: New file.
65785         * lib/unistr/u8-cpy.c: New file.
65786         * lib/unistr/u16-cpy.c: New file.
65787         * lib/unistr/u32-cpy.c: New file.
65788         * lib/unistr/u-cpy.h: New file.
65789
65790         * modules/unistr/u8-cpy-alloc: New file.
65791         * modules/unistr/u16-cpy-alloc: New file.
65792         * modules/unistr/u32-cpy-alloc: New file.
65793         * lib/unistr/u8-cpy-alloc.c: New file.
65794         * lib/unistr/u16-cpy-alloc.c: New file.
65795         * lib/unistr/u32-cpy-alloc.c: New file.
65796         * lib/unistr/u-cpy-alloc.h: New file.
65797
65798         * modules/unistr/u8-endswith: New file.
65799         * modules/unistr/u16-endswith: New file.
65800         * modules/unistr/u32-endswith: New file.
65801         * lib/unistr/u8-endswith.c: New file.
65802         * lib/unistr/u16-endswith.c: New file.
65803         * lib/unistr/u32-endswith.c: New file.
65804         * lib/unistr/u-endswith.h: New file.
65805
65806         * modules/unistr/u8-mblen: New file.
65807         * modules/unistr/u16-mblen: New file.
65808         * modules/unistr/u32-mblen: New file.
65809         * lib/unistr/u8-mblen.c: New file.
65810         * lib/unistr/u16-mblen.c: New file.
65811         * lib/unistr/u32-mblen.c: New file.
65812
65813         * modules/unistr/u8-mbtouc: New file.
65814         * modules/unistr/u16-mbtouc: New file.
65815         * modules/unistr/u32-mbtouc: New file.
65816         * lib/unistr/u8-mbtouc.c: New file.
65817         * lib/unistr/u16-mbtouc.c: New file.
65818         * lib/unistr/u32-mbtouc.c: New file.
65819
65820         * modules/unistr/u8-mbtouc-safe: New file.
65821         * modules/unistr/u16-mbtouc-safe: New file.
65822         * modules/unistr/u32-mbtouc-safe: New file.
65823         * lib/unistr/u8-mbtouc-safe.c: New file.
65824         * lib/unistr/u16-mbtouc-safe.c: New file.
65825         * lib/unistr/u32-mbtouc-safe.c: New file.
65826
65827         * modules/unistr/u8-move: New file.
65828         * modules/unistr/u16-move: New file.
65829         * modules/unistr/u32-move: New file.
65830         * lib/unistr/u8-move.c: New file.
65831         * lib/unistr/u16-move.c: New file.
65832         * lib/unistr/u32-move.c: New file.
65833         * lib/unistr/u-move.h: New file.
65834
65835         * modules/unistr/u8-next: New file.
65836         * modules/unistr/u16-next: New file.
65837         * modules/unistr/u32-next: New file.
65838         * lib/unistr/u8-next.c: New file.
65839         * lib/unistr/u16-next.c: New file.
65840         * lib/unistr/u32-next.c: New file.
65841
65842         * modules/unistr/u8-prev: New file.
65843         * modules/unistr/u16-prev: New file.
65844         * modules/unistr/u32-prev: New file.
65845         * lib/unistr/u8-prev.c: New file.
65846         * lib/unistr/u16-prev.c: New file.
65847         * lib/unistr/u32-prev.c: New file.
65848
65849         * modules/unistr/u8-set: New file.
65850         * modules/unistr/u16-set: New file.
65851         * modules/unistr/u32-set: New file.
65852         * lib/unistr/u8-set.c: New file.
65853         * lib/unistr/u16-set.c: New file.
65854         * lib/unistr/u32-set.c: New file.
65855         * lib/unistr/u-set.h: New file.
65856
65857         * modules/unistr/u8-startswith: New file.
65858         * modules/unistr/u16-startswith: New file.
65859         * modules/unistr/u32-startswith: New file.
65860         * lib/unistr/u8-startswith.c: New file.
65861         * lib/unistr/u16-startswith.c: New file.
65862         * lib/unistr/u32-startswith.c: New file.
65863         * lib/unistr/u-startswith.h: New file.
65864
65865         * modules/unistr/u8-stpcpy: New file.
65866         * modules/unistr/u16-stpcpy: New file.
65867         * modules/unistr/u32-stpcpy: New file.
65868         * lib/unistr/u8-stpcpy.c: New file.
65869         * lib/unistr/u16-stpcpy.c: New file.
65870         * lib/unistr/u32-stpcpy.c: New file.
65871         * lib/unistr/u-stpcpy.h: New file.
65872
65873         * modules/unistr/u8-stpncpy: New file.
65874         * modules/unistr/u16-stpncpy: New file.
65875         * modules/unistr/u32-stpncpy: New file.
65876         * lib/unistr/u8-stpncpy.c: New file.
65877         * lib/unistr/u16-stpncpy.c: New file.
65878         * lib/unistr/u32-stpncpy.c: New file.
65879         * lib/unistr/u-stpncpy.h: New file.
65880
65881         * modules/unistr/u8-strcat: New file.
65882         * modules/unistr/u16-strcat: New file.
65883         * modules/unistr/u32-strcat: New file.
65884         * lib/unistr/u8-strcat.c: New file.
65885         * lib/unistr/u16-strcat.c: New file.
65886         * lib/unistr/u32-strcat.c: New file.
65887         * lib/unistr/u-strcat.h: New file.
65888
65889         * modules/unistr/u8-strchr: New file.
65890         * modules/unistr/u16-strchr: New file.
65891         * modules/unistr/u32-strchr: New file.
65892         * lib/unistr/u8-strchr.c: New file.
65893         * lib/unistr/u16-strchr.c: New file.
65894         * lib/unistr/u32-strchr.c: New file.
65895
65896         * modules/unistr/u8-strcmp: New file.
65897         * modules/unistr/u16-strcmp: New file.
65898         * modules/unistr/u32-strcmp: New file.
65899         * lib/unistr/u8-strcmp.c: New file.
65900         * lib/unistr/u16-strcmp.c: New file.
65901         * lib/unistr/u32-strcmp.c: New file.
65902
65903         * modules/unistr/u8-strcpy: New file.
65904         * modules/unistr/u16-strcpy: New file.
65905         * modules/unistr/u32-strcpy: New file.
65906         * lib/unistr/u8-strcpy.c: New file.
65907         * lib/unistr/u16-strcpy.c: New file.
65908         * lib/unistr/u32-strcpy.c: New file.
65909         * lib/unistr/u-strcpy.h: New file.
65910
65911         * modules/unistr/u8-strcspn: New file.
65912         * modules/unistr/u16-strcspn: New file.
65913         * modules/unistr/u32-strcspn: New file.
65914         * lib/unistr/u8-strcspn.c: New file.
65915         * lib/unistr/u16-strcspn.c: New file.
65916         * lib/unistr/u32-strcspn.c: New file.
65917         * lib/unistr/u-strcspn.h: New file.
65918
65919         * modules/unistr/u8-strdup: New file.
65920         * modules/unistr/u16-strdup: New file.
65921         * modules/unistr/u32-strdup: New file.
65922         * lib/unistr/u8-strdup.c: New file.
65923         * lib/unistr/u16-strdup.c: New file.
65924         * lib/unistr/u32-strdup.c: New file.
65925         * lib/unistr/u-strdup.h: New file.
65926
65927         * modules/unistr/u8-strlen: New file.
65928         * modules/unistr/u16-strlen: New file.
65929         * modules/unistr/u32-strlen: New file.
65930         * lib/unistr/u8-strlen.c: New file.
65931         * lib/unistr/u16-strlen.c: New file.
65932         * lib/unistr/u32-strlen.c: New file.
65933         * lib/unistr/u-strlen.h: New file.
65934
65935         * modules/unistr/u8-strmblen: New file.
65936         * modules/unistr/u16-strmblen: New file.
65937         * modules/unistr/u32-strmblen: New file.
65938         * lib/unistr/u8-strmblen.c: New file.
65939         * lib/unistr/u16-strmblen.c: New file.
65940         * lib/unistr/u32-strmblen.c: New file.
65941
65942         * modules/unistr/u8-strmbtouc: New file.
65943         * modules/unistr/u16-strmbtouc: New file.
65944         * modules/unistr/u32-strmbtouc: New file.
65945         * lib/unistr/u8-strmbtouc.c: New file.
65946         * lib/unistr/u16-strmbtouc.c: New file.
65947         * lib/unistr/u32-strmbtouc.c: New file.
65948
65949         * modules/unistr/u8-strncat: New file.
65950         * modules/unistr/u16-strncat: New file.
65951         * modules/unistr/u32-strncat: New file.
65952         * lib/unistr/u8-strncat.c: New file.
65953         * lib/unistr/u16-strncat.c: New file.
65954         * lib/unistr/u32-strncat.c: New file.
65955         * lib/unistr/u-strncat.h: New file.
65956
65957         * modules/unistr/u8-strncmp: New file.
65958         * modules/unistr/u16-strncmp: New file.
65959         * modules/unistr/u32-strncmp: New file.
65960         * lib/unistr/u8-strncmp.c: New file.
65961         * lib/unistr/u16-strncmp.c: New file.
65962         * lib/unistr/u32-strncmp.c: New file.
65963
65964         * modules/unistr/u8-strncpy: New file.
65965         * modules/unistr/u16-strncpy: New file.
65966         * modules/unistr/u32-strncpy: New file.
65967         * lib/unistr/u8-strncpy.c: New file.
65968         * lib/unistr/u16-strncpy.c: New file.
65969         * lib/unistr/u32-strncpy.c: New file.
65970         * lib/unistr/u-strncpy.h: New file.
65971
65972         * modules/unistr/u8-strnlen: New file.
65973         * modules/unistr/u16-strnlen: New file.
65974         * modules/unistr/u32-strnlen: New file.
65975         * lib/unistr/u8-strnlen.c: New file.
65976         * lib/unistr/u16-strnlen.c: New file.
65977         * lib/unistr/u32-strnlen.c: New file.
65978         * lib/unistr/u-strnlen.h: New file.
65979
65980         * modules/unistr/u8-strpbrk: New file.
65981         * modules/unistr/u16-strpbrk: New file.
65982         * modules/unistr/u32-strpbrk: New file.
65983         * lib/unistr/u8-strpbrk.c: New file.
65984         * lib/unistr/u16-strpbrk.c: New file.
65985         * lib/unistr/u32-strpbrk.c: New file.
65986         * lib/unistr/u-strpbrk.h: New file.
65987
65988         * modules/unistr/u8-strrchr: New file.
65989         * modules/unistr/u16-strrchr: New file.
65990         * modules/unistr/u32-strrchr: New file.
65991         * lib/unistr/u8-strrchr.c: New file.
65992         * lib/unistr/u16-strrchr.c: New file.
65993         * lib/unistr/u32-strrchr.c: New file.
65994
65995         * modules/unistr/u8-strspn: New file.
65996         * modules/unistr/u16-strspn: New file.
65997         * modules/unistr/u32-strspn: New file.
65998         * lib/unistr/u8-strspn.c: New file.
65999         * lib/unistr/u16-strspn.c: New file.
66000         * lib/unistr/u32-strspn.c: New file.
66001         * lib/unistr/u-strspn.h: New file.
66002
66003         * modules/unistr/u8-strstr: New file.
66004         * modules/unistr/u16-strstr: New file.
66005         * modules/unistr/u32-strstr: New file.
66006         * lib/unistr/u8-strstr.c: New file.
66007         * lib/unistr/u16-strstr.c: New file.
66008         * lib/unistr/u32-strstr.c: New file.
66009         * lib/unistr/u-strstr.h: New file.
66010
66011         * modules/unistr/u8-strtok: New file.
66012         * modules/unistr/u16-strtok: New file.
66013         * modules/unistr/u32-strtok: New file.
66014         * lib/unistr/u8-strtok.c: New file.
66015         * lib/unistr/u16-strtok.c: New file.
66016         * lib/unistr/u32-strtok.c: New file.
66017         * lib/unistr/u-strtok.h: New file.
66018
66019         * modules/unistr/u8-uctomb: New file.
66020         * modules/unistr/u16-uctomb: New file.
66021         * modules/unistr/u32-uctomb: New file.
66022         * lib/unistr/u8-uctomb.c: New file.
66023         * lib/unistr/u16-uctomb.c: New file.
66024         * lib/unistr/u32-uctomb.c: New file.
66025
66026         * MODULES.html.sh (Unicode string functions): Add the new modules.
66027
66028 2007-01-08  Bruno Haible  <bruno@clisp.org>
66029
66030         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66031         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66032         subdirectories.
66033
66034 2007-01-08  Karl Berry  <karl@gnu.org>
66035
66036         * doc/error.texi: mention that main() fns must set program_name
66037         when progname is used.
66038
66039 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66042         WCTYPE_H is empty, for the benefit of builds from non-distclean
66043         directories.  Problem reported by Eric Blake in
66044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66045
66046 2007-01-08  Bruno Haible  <bruno@clisp.org>
66047
66048         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66049         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66050         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66051         PROVIDE_CANONICALIZE_FILENAME_MODE.
66052         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66053
66054 2007-01-08  Bruno Haible  <bruno@clisp.org>
66055
66056         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66057         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66058         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66059         * lib/fts.c: Likewise.
66060         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66061
66062 2006-12-25  Bruno Haible  <bruno@clisp.org>
66063
66064         * modules/utf8-ucs4-safe: New file.
66065         * lib/utf8-ucs4-safe.h: New file.
66066         * lib/unistr/utf8-ucs4-safe.c: New file.
66067
66068         * modules/utf16-ucs4-safe: New file.
66069         * lib/utf16-ucs4-safe.h: New file.
66070         * lib/unistr/utf16-ucs4-safe.c: New file.
66071
66072         * MODULES.html.sh (Unicode string functions): Add the new modules.
66073
66074 2007-01-08  Bruno Haible  <bruno@clisp.org>
66075
66076         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66077         (Depends-on): Add unitypes.
66078         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66079         (u8_mbtouc_aux): Move out to separate file.
66080         (u8_mbtouc): Use ucs4_t, uint8_t types.
66081         * lib/unistr/utf8-ucs4.c: New file.
66082
66083         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66084         (Depends-on): Add unitypes.
66085         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66086         (u16_mbtouc_aux): Move out to separate file.
66087         (u16_mbtouc): Use ucs4_t, uint16_t types.
66088         * lib/unistr/utf16-ucs4.c: New file.
66089
66090         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66091         (Depends-on): Add unitypes.
66092         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66093         (u8_uctomb_aux): Move out to separate file.
66094         (u8_uctomb): Use ucs4_t, uint8_t types.
66095         * lib/unistr/ucs4-utf8.c: New file.
66096
66097         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66098         (Depends-on): Add unitypes.
66099         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66100         (u16_uctomb_aux): Move out to separate file.
66101         (u16_uctomb): Use ucs4_t, uint16_t types.
66102         * lib/unistr/ucs4-utf16.c: New file.
66103
66104 2006-12-25  Bruno Haible  <bruno@clisp.org>
66105
66106         * modules/unitypes: New file.
66107         * lib/unitypes.h: New file.
66108         * MODULES.html.sh (func_all_modules): New section "Unicode string
66109         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66110         this section. Add unitypes.
66111
66112 2007-01-08  Bruno Haible  <bruno@clisp.org>
66113
66114         Avoid variable names that conflict with those from libtool.
66115         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66116         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66117         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66118         library_names_spec to acl_library_names_spec, hardcode_* to
66119         acl_hardcode_*.
66120         Reported by Ralf Wildenhues.
66121
66122 2007-01-08  Bruno Haible  <bruno@clisp.org>
66123
66124         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66125         definition.
66126         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66127         definition.
66128         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66129         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66130         definition.
66131         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66132         definition.
66133         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66134         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66135         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66136         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66137         definition.
66138         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66139         definition.
66140         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66141         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66142         GC_USE_<algorithm>.
66143         * lib/gc-libgcrypt.c: Likewise.
66144         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66145         * modules/gc-arctwo (configure.ac): Likewise.
66146         * modules/gc-des (configure.ac): Likewise.
66147         * modules/gc-hmac-md5 (configure.ac): Likewise.
66148         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66149         * modules/gc-md2 (configure.ac): Likewise.
66150         * modules/gc-md4 (configure.ac): Likewise.
66151         * modules/gc-md5 (configure.ac): Likewise.
66152         * modules/gc-random (configure.ac): Likewise.
66153         * modules/gc-rijndael (configure.ac): Likewise.
66154         * modules/gc-sha1 (configure.ac): Likewise.
66155
66156 2007-01-08  Bruno Haible  <bruno@clisp.org>
66157
66158         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66159         macro definition.
66160         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66161         definition.
66162         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66163         definition.
66164         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66165         * modules/fcntl-safer (configure.ac): Likewise.
66166         * modules/fopen-safer (configure.ac): Likewise.
66167         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66168         GNULIB_FWRITEERROR macro definition.
66169
66170 2007-01-08  Bruno Haible  <bruno@clisp.org>
66171
66172         * m4/gnulib-common.m4: New file.
66173         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66174         (func_get_filelist): Add m4/gnulib-common.m4.
66175
66176 2007-01-08  Bruno Haible  <bruno@clisp.org>
66177
66178         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66179         command.
66180
66181 2007-01-08  Jim Meyering  <jim@meyering.net>
66182
66183         Use a more robust test for a "can't happen" condition.
66184         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66185         narrowed the st_size value.  Presuming the "can't happen" condition
66186         is true, that narrowing could conceivably convert an invalid st_size
66187         value into a valid one.  Instead, use a change based on Matthew
66188         Woehlke's original patch.
66189
66190         Slight readability improvement: use an assert-like macro
66191         in place of literal "abort ()" uses.
66192         * lib/fts.c (fts_assert): Define.
66193         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66194         Use this macro instead of a bare 'abort'.
66195
66196 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66197
66198         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66199         simply work around them.
66200         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66201         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66202         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66203         declaring.
66204         Don't bother to define as macros, since the standard doesn't require it.
66205         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66206         longer worry about IRIX 5.3.
66207         (HAVE_WCTYPE_CTMP_BUG): Remove.
66208
66209 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66210
66211         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66212         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66213         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66214         Problems reported by Georg Schwarz for IRIX 5.3.
66215
66216         * gnulib-tool (autoconf_minversion): Take the maximum version number
66217         found, not the minimum.  Problem reported by James Youngman.
66218
66219 2007-01-03  Karl Berry  <karl@gnu.org>
66220
66221         * doc/error.texi: new file, explaining interaction with progname.
66222         * doc/gnulib.texi: include it.  Update copyright.
66223
66224 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66225
66226         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66227         AC_CANONICAL_HOST, to improve autobuild outputs.
66228
66229 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66230             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66231
66232         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66233         sockets, server sockets, and other file descriptors.  Count errors
66234         to compute the return value.  Reorder the code a bit to be easier
66235         to follow.  Don't set event bits that were not requested (except
66236         POLLERR and POLLHUP).
66237
66238 2007-01-01  Bruno Haible  <bruno@clisp.org>
66239
66240         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66241
66242 2007-01-03  Jim Meyering  <jim@meyering.net>
66243
66244         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66245
66246 2007-01-02  Bruno Haible  <bruno@clisp.org>
66247
66248         * modules/settime (Include): Require timespec.h.
66249         * modules/nanosleep (Include): Likewise.
66250
66251 2007-01-01  Bruno Haible  <bruno@clisp.org>
66252
66253         * gnulib-tool (func_emit_copyright_notice): Bump year.
66254         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66255
66256 2007-01-01  Bruno Haible  <bruno@clisp.org>
66257
66258         Improve support for OpenBSD.
66259         * build-aux/config.rpath (libname_spec): Export.
66260         (library_names_spec): New variable. Export.
66261         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66262         library_names_spec from the config.rpath output. Locate shared library
66263         through the name pattern in library_names_spec.
66264
66265 2007-01-01  Eric Blake  <ebb9@byu.net>
66266
66267         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66268
66269 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66272         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66273         assume the C locale, and avoid an "eval" that could cause trouble.
66274         Problem with SORT reported by Bob Proulx.
66275
66276         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66277         Define.  Trivial patch from Henning Nielsen Lund, originally
66278         sent to bug-grep@gnu.org today.
66279
66280 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66283         struct stat.  Problem reported by Henning Nielsen Lund.
66284         * lib/acl.c: Include acl.h first, to check interface.  Don't
66285         bother to include sys/types.h and sys/stat.h again.
66286
66287 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66288
66289         Import the following change from libc; problem reported by
66290         Sven Verdoolaege.
66291
66292         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66293
66294         [BZ #1373]
66295         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66296
66297 2006-12-28  Jim Meyering  <jim@meyering.net>
66298
66299         * build-aux/announce-gen: Do not assume that the package
66300         builds any of tar.gz, tar.bz2, and .xdelta files.
66301         Suggestion from Simon Josefsson.
66302
66303 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66304
66305         * modules/announce-gen: New file.
66306
66307 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66308
66309         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66310         handles its gotchas now.
66311         * lib/mbswidth.c: Likewise.
66312         * lib/wcwidth.h: Likewise.
66313         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66314         and iswcntrl; the wctype module does this stuff now.
66315         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66317         * modules/mbchar (Depends-on): Add wctype.
66318         * modules/mbswidth (Depends-on): Likewise.
66319         * modules/wcwidth (Depends-on): Likewise.
66320
66321 2006-12-27  Eric Blake  <ebb9@byu.net>
66322
66323         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66324         module uses more than what <wctype.h> is required to provide.
66325
66326 2006-12-26  Eric Blake  <ebb9@byu.net>
66327
66328         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66329
66330 2006-12-26  Eric Blake  <ebb9@byu.net>
66331
66332         * modules/absolute-header: New module.
66333         * modules/fcntl (Depends-on): Depend on it.
66334         * modules/inttypes (Depends-on): Likewise.
66335         * modules/stdint (Depends-on): Likewise.
66336         * modules/sys_stat (Depends-on): Likewise.
66337         * modules/wctype (Depends-on): Likewise.
66338         * MODULES.html.sh (Support for building libraries and
66339         executables): Document it.
66340
66341 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         * gnulib-tool (SED): Remove, undoing previous change.
66344         The problem was that it broke coreutils on Solaris, because
66345         "sed --posix" leaked into a makefile.
66346         (sed): New alias, if 'alias' and GNU sed.
66347
66348 2006-12-24  Jim Meyering  <jim@meyering.net>
66349
66350         Work around an fchownat bug in glibc-2.4:
66351         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66352         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66353         in spite of the -P option.
66354         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66355         New macros.
66356         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66357         * modules/openat (Files): Add lib/fchownat.c.
66358         * lib/openat.c (fchownat): Don't define here.  Move to...
66359         * lib/fchownat.c: ...this new file.
66360
66361 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         Fix bug reported by Bruno Haible in
66364         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66365         where quotearg.c didn't compile on Mac OS X 10.2 because it
66366         lacks <wchar.h> and wint_t.
66367         * lib/wctype_.h (__wctype_wint_t): New type.
66368         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66369         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66370         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66371         Arg is now of type __wctype_wint_t, not wint_t.
66372         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66373         substitute HAVE_WINT_T.
66374         * modules/wctype (Files): Add m4/wint_t.m4.
66375         (wctype.h): Substitute HAVE_WINT_T.
66376
66377 2006-12-23  Bruno Haible  <bruno@clisp.org>
66378
66379         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66380
66381 2006-12-23  Bruno Haible  <bruno@clisp.org>
66382
66383         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66384         S_ISLNK.
66385         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66386         mingw.
66387
66388 2006-12-22  Bruno Haible  <bruno@clisp.org>
66389
66390         * lib/copy-file.c: Include acl.h.
66391         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66392         Close the file descriptors only after being done with copy_acl.
66393         * modules/copy-file (Depends-on): Add acl.
66394
66395 2006-12-22  Bruno Haible  <bruno@clisp.org>
66396
66397         * gnulib-tool (SED): New variable.
66398         Use $SED instead of sed everywhere.
66399
66400 2006-12-22  Bruno Haible  <bruno@clisp.org>
66401
66402         * modules/no-c++: New file.
66403         * m4/no-c++.m4: New file.
66404         * MODULES.html.sh (Support for building libraries and executables):
66405         Add no-c++.
66406
66407 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66410         Include <limits.h>, and use its INT_MAX to rewrite the
66411         j loop so that it does not overflow 'int'.  Problem reported by
66412         Ralf Wildenhues in
66413         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66414         Play it safe by shifting left by 1 rather than multiplying by 2,
66415         as GCC is less likely to optimize this away when the value
66416         is signed (when it assumes overflow leads to undefined behavior).
66417         Also, don't assume time_t uses two's complement.
66418
66419 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66420
66421         * MODULES.html.sh: New module wctype.
66422         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66423         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66424         <wctype.h>, since the new wctype module should fix this.
66425         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66426         the wctype module should arrange for it.
66427         * lib/regex_internal.h: Likewise.
66428         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66429         since the wctype module should handle this now.
66430         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66431         * modules/fnmatch (Depends-on): Add wctype.
66432         * modules/quotearg (Depends-on): Likewise.
66433         * modules/regex (Depends-on): Likewise.
66434
66435 2006-12-19  Bruno Haible  <bruno@clisp.org>
66436
66437         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66438         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66439
66440 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66441
66442         * modules/savewd (Depends-on): Fix dependency on fcntl.
66443
66444 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66445
66446         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66447         conforms to C99, rather than relying on the user's environment
66448         setting of STDINT_H.
66449
66450 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66451         and Eric Blake  <ebb9@byu.net>
66452
66453         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66454         This is more consistent with the other defines here.
66455         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66456         Port to z/OS.  Problem reported by Paul Gilmartin.
66457         Change local vars to use gl_ prefix rather than ac_.
66458         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66459         with other defines.
66460         * modules/double-slash-root: New module.
66461         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66462         (Depends-on): Add double-slash-root.
66463         * MODULES.html.sh (File system functions): Mention new module.
66464
66465 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66468         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66469         This is for the benefit of gzip, which doesn't do i18n.
66470
66471 2006-12-12  Jim Meyering  <jim@meyering.net>
66472
66473         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66474         Reported by Andreas Schwab <schwab@suse.de>.
66475
66476 2006-12-12  Bruno Haible  <bruno@clisp.org>
66477
66478         Merge these changes.
66479         2006-09-05  Bruno Haible  <bruno@clisp.org>
66480         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66481         iconv_alloc succeeded.
66482         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66483         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66484         test for " && dest " at the end - dest is always != NULL there. Call
66485         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66486         with 2xNULL arguments, also to flush the state storage. Handle the
66487         IRIX iconv behaviour. Realloc the final result, to throw away unused
66488         memory.
66489
66490 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66491
66492         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66493         and fchmodat unconditionally, since glibc 2.4 has them.
66494         Problem reported by Arkadiusz Miskiewicz.
66495
66496 2006-12-10  Bruno Haible  <bruno@clisp.org>
66497
66498         * gnulib-tool (func_import): Show the include files only for those
66499         modules that are copied and specified.
66500         Reported by Karl Berry.
66501
66502 2006-12-08  Jim Meyering  <jim@meyering.net>
66503
66504         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66505         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66506
66507         * build-aux/announce-gen: Add two new options, both optional:
66508         --bootstrap-tools=TOOL_LIST
66509               a comma-separated list of tools, e.g.,
66510               autoconf,automake,bison,gnulib
66511         --gnulib-snapshot-date=DATE
66512               if gnulib is in the bootstrap tool list,
66513               then report this as the snapshot date.
66514               If not specified, use the current date/time.
66515               If you specify a date here, be sure it's UTC.
66516
66517 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66518
66519         * tests/test-argp-2.sh: Fix test to match actual output.
66520         (func_compare): Fix sed script to be portable.
66521
66522 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66523
66524         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66525         workaround for this case.  It is not autoconfigured now; offhand
66526         it's hard to see how to autoconfigure it.
66527
66528 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66529
66530         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66531         a directory that is about to be chowned.  Such a directory's
66532         initial file permissions should permit the owner only and this
66533         should not be changed until after the chown, since the group and
66534         other bits would be incorrect if they granted permission before
66535         the chown.
66536
66537         Fix porting problem for iswctype reported by Georg Schwarz in:
66538         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66539         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66540         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66541         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66542         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66543
66544 2006-12-03  Jim Meyering  <jim@meyering.net>
66545
66546         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66547         p->fts_statp may not yet be defined.
66548         (fts_read): Instead, set it in the caller, once p->fts_statp is
66549         sure to be defined, and corresponds to a top-level directory.
66550         This bug made du -x fail.  Here's the coreutils test case:
66551         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66552         Reported by Mike Frysinger.
66553
66554 2006-12-01  Jim Meyering  <jim@meyering.net>
66555
66556         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66557         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66558         Reported by Simon Josefsson.
66559
66560 2006-11-30  Jim Meyering  <jim@meyering.net>
66561
66562         * m4/warning.m4: Use the all-permissive copyright notice
66563         recommended by RMS (rather than LGPL).
66564         * m4/vararrays.m4: Likewise.
66565         * m4/flexmember.m4: Likewise.
66566
66567 2006-11-29  Bruno Haible  <bruno@clisp.org>
66568
66569         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66570         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66571         using +=.
66572         Reported by Simon Josefsson <simon@josefsson.org>.
66573
66574 2006-11-28  James Youngman <jay@gnu.org>
66575
66576         * README: Advise users that they might find the bug-gnulib@gnu.org
66577         and autotools-announce@gnu.org mailing lists useful.
66578
66579 2006-11-28  Bruno Haible  <bruno@clisp.org>
66580
66581         * m4/ptrdiff_max.m4: Remove file.
66582
66583 2006-11-21  Bruno Haible  <bruno@clisp.org>
66584
66585         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66586         _AC_COMPUTE_INT.
66587         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66588         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66589         _AC_COMPUTE_INT.
66590         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66591         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66592         _AC_COMPUTE_INT.
66593         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66594
66595 2006-11-28  Jim Meyering  <jim@meyering.net>
66596
66597         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66598         warning from "gcc -Wshadow" about shadowing the builtin.
66599
66600 2006-11-27  Bruno Haible  <bruno@clisp.org>
66601
66602         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66603         _AC_COMPUTE_INT.
66604         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66605
66606 2006-11-27  Bruno Haible  <bruno@clisp.org>
66607             Paul Eggert  <eggert@cs.ucla.edu>
66608
66609         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66610
66611 2006-11-26  Bruno Haible  <bruno@clisp.org>
66612
66613         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66614         noinst_LTLIBRARIES.
66615
66616 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66617             Bruno Haible  <bruno@clisp.org>
66618
66619         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66620         if compiling with "gcc -ansi".
66621
66622 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66623
66624         Fix some incompatibilities with gcc -ansi -pedantic.
66625         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66626         if compiling pedantically with GCC, unless it's C99 or later.
66627         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66628         it mishandles gcc -ansi -pedantic as well.
66629         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66630         if gcc -pedantic.
66631         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66632         initializers for struct if -pedantic, unless it's C99 or later.
66633
66634 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66635
66636         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66637         Don't close an fd more than once. Identical atimes indicate
66638         success, not failure.
66639
66640 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66641
66642         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66643
66644 2006-11-23  Jim Meyering  <jim@meyering.net>
66645
66646         * build-aux/announce-gen: New file.  From coreutils.
66647
66648 2006-11-22  Jim Meyering  <jim@meyering.net>
66649
66650         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66651         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66652         (fts_read): Use a temporary to narrow the overused st_size member
66653         before using it in a switch statement.  Reported by Matthew Woehlke.
66654
66655         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66656         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66657
66658 2006-11-20  Bruno Haible  <bruno@clisp.org>
66659
66660         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66661         changequote instead of pairs of brackets.
66662         Reported by Andreas Schwab <schwab@suse.de>.
66663
66664 2006-11-21  Jim Meyering  <jim@meyering.net>
66665
66666         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66667         so as to remain compatible with older compilers.
66668         Patch from Michael Deutschmann.
66669
66670 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66671
66672         * MODULES.html.sh (File system functions): Add openat.
66673
66674         * lib/openat.h (rpl_fstatat): New macro, if
66675         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66676         (fstatat): Define to rpl_fstatat under the same conditions,
66677         unless COMPILING_FSTATAT.
66678         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66679         seems to have the bug.
66680         * lib/fstatat.c: New file.
66681         * modules/openat (Files): Add it.
66682
66683 2006-11-20  Bruno Haible  <bruno@clisp.org>
66684
66685         * Makefile: New file.
66686
66687 2006-11-20  Jim Meyering  <jim@meyering.net>
66688
66689         The beginnings of syntax-related checks for gnulib.
66690         * lib/Makefile: New file.
66691         * lib/t-idcache: New script.  Ensure that the two halves of
66692         idcache.c stay in sync.
66693
66694         * lib/idcache.c: Adjust comments in user- and group- portions to
66695         be more accurate, and to be consistent with one another.
66696
66697 2006-11-20  Jim Meyering  <jim@meyering.net>
66698
66699         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66700         continue using the flexible array member (thus, this module performs
66701         half as many malloc calls), with the addition that...
66702         (getgroup, getuser): Consistently record a non-match via an empty
66703         "name" string, and map an empty string match to a NULL return value.
66704         * modules/idcache (Depends-on): Re-add flexmember.
66705
66706         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66707         (getuidbyname, getgroup, getgidbyname): Likewise.
66708
66709         Use cleaner syntax: NULL rather than 0.
66710         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66711
66712 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66715         It mishandled the case where the group was missing.
66716         Problem reported by Greg Schafer.
66717         * modules/idcache: Likewise.
66718
66719 2006-11-18  Jim Meyering  <jim@meyering.net>
66720
66721         * check-module (%exempt_header): Add exception for some
66722         conditionally-included headers.
66723
66724         * modules/i-ring (Depends-on): Add verify.
66725         (License): Change to LGPL.
66726
66727 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66728
66729         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66730         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66731         and inttostr.h.  Use snprintf rather than uinttostr, so that
66732         LGPLed code doesn't depend on GPLed.
66733
66734 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66735
66736         * modules/inline (License): Change from GPL to LGPL.
66737
66738 2006-11-17  Jim Meyering  <jim@meyering.net>
66739
66740         * modules/d-type (License): Switch to LGPL.
66741
66742 2006-11-15  Bruno Haible  <bruno@clisp.org>
66743
66744         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66745
66746 2006-11-15  Eric Blake  <ebb9@byu.net>
66747
66748         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66749         the module dependency.
66750
66751 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66752             Bruno Haible  <bruno@clisp.org>
66753
66754         * gnulib-tool (func_create_testdir): Add license consistency check.
66755
66756 2006-11-15  Eric Blake  <ebb9@byu.net>
66757
66758         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66759         random "(cached)" in configure output.
66760
66761 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66762
66763         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66764         test for conforming inttypes.h is both announced and cached.
66765
66766         * MODULES.html.sh (seen_modules, seen_files): New variables.
66767         (func_module): Rewrite to use a few less gnulib-tool and sed
66768         invocations.  Avoid a couple of quadratic algorithms for ...
66769         (missed_modules, missed_files): ... these, with ...
66770         (func_append, func_tmpdir): ... these new functions, from
66771         gnulib-tool.  Analogously, install traps for cleanup.
66772
66773         * tests/test-gc.c (main): Remove unused variables.
66774         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66775
66776 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66777
66778         * modules/inttostr (License): Change to LGPL.
66779
66780 2006-11-14  Eric Blake  <ebb9@byu.net>
66781
66782         * modules/tempname (License): Change to LGPL.
66783
66784 2006-11-14  Eric Blake  <ebb9@byu.net>
66785
66786         * doc/functions.texi (Function Portability): *printf functions on
66787         Cygwin now understand all POSIX size specifiers.
66788
66789 2006-11-14  Bruno Haible  <bruno@clisp.org>
66790
66791         * modules/c-ctype (License): Change to LGPL.
66792
66793 2006-11-12  Bruno Haible  <bruno@clisp.org>
66794
66795         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66796         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66797         for GNOME libraries, for which the include files are installed in
66798         subdirectories of $prefix/include.
66799
66800 2006-11-12  Bruno Haible  <bruno@clisp.org>
66801
66802         * m4/lib-link.m4: Require at least autoconf-2.54.
66803         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66804         name to underscores for the --with option.
66805
66806 2006-11-13  Bruno Haible  <bruno@clisp.org>
66807
66808         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66809         the tests directory.
66810         Reported by Ralf Wildenhues.
66811
66812 2006-11-13  Bruno Haible  <bruno@clisp.org>
66813
66814         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66815         (func_emit_initmacro_end): Undo the override here.
66816         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66817         Works around the famous automake error in coreutils.
66818
66819 2006-11-13  Eric Blake  <ebb9@byu.net>
66820
66821         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66822         element, not its node.
66823
66824 2006-11-12  Bruno Haible  <bruno@clisp.org>
66825
66826         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66827         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66828
66829 2006-11-12  Bruno Haible  <bruno@clisp.org>
66830
66831         * gnulib-tool: New option --local-symlink.
66832         (func_usage): Document it.
66833         (lsymbolic): New variable.
66834         (func_import, func_create_testdir): If --symlink was not specified,
66835         test whether --local-symlink was specified and the file comes from
66836         the local_gnulib_dir.
66837
66838 2006-11-12  Bruno Haible  <bruno@clisp.org>
66839
66840         * gnulib-tool (func_ln): New function.
66841         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66842
66843 2006-11-12  Bruno Haible  <bruno@clisp.org>
66844
66845         Finish support for source files in subdirectories.
66846         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66847         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66848         AUTOMAKE_OPTIONS.
66849         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66850
66851 2006-11-12  Bruno Haible  <bruno@clisp.org>
66852
66853         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66854         EXTRA_lib_SOURCES augmentation.
66855         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66856
66857 2006-11-12  Jim Meyering  <jim@meyering.net>
66858
66859         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66860         file descriptors.  This also averts a failure on systems with
66861         native openat support when a traversed directory lacks "x" access.
66862         * lib/fts_.h: Include "i-ring.h"
66863         (struct FTS) [fts_fd_ring]: New member.
66864         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66865         (FCHDIR): Add parentheses.
66866         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66867         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66868         When descending, rather than simply closing the previous
66869         fts_cwd_fd value, push that file descriptor onto the ring.
66870         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66871         (fts_open): Initialize the new fd_ring member.
66872         (fts_close): Clear the ring.
66873         (fts_safe_changedir): When possible, use our new fd_ring to skip
66874         the diropen and fstat and dev/ino comparison that would normally
66875         accompany a virtual `chdir ("..")'.
66876
66877         * modules/fts (Depends-on): Add i-ring.
66878         * modules/i-ring: New module.
66879         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66880         * m4/i-ring.m4: New file.
66881
66882 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66883
66884         * gnulib-tool (func_create_testdir): Fix replacement of
66885         `build-aux' in configure.ac.  Run autotools in gltests
66886         subdirectory.
66887         (func_create_testdir, func_create_megatestdir, test): There is
66888         no need for '--force' in most autotool invocations in a new
66889         tree.  Actually fail the whole test if any of the tools, or the
66890         configure or make stages fail.
66891
66892         Sync from Automake.
66893         * build-aux/gnupload: Revert last change.  Add pointer to upload
66894         instructions of the GNU Maintenance Instructions.
66895         Suggestion by Karl Berry.
66896
66897 2006-11-10  Jim Meyering  <jim@meyering.net>
66898
66899         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66900
66901 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66902
66903         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66904         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66905         (bind_textdomain_codeset) [! ENABLE_NLS]:
66906         Evaluate all the arguments.  That way, callers get compatible behavior
66907         if the arguments have side effects.  Also, it avoids some GCC
66908         diagnostics in some cases; Joel E. Denny reported problems when Bison
66909         was configured with --enable-gcc-warnigs.
66910
66911 2006-11-10  Jim Meyering  <jim@meyering.net>
66912
66913         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66914         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66915         account.
66916
66917 2006-11-10  Jim Meyering  <jim@meyering.net>
66918
66919         * modules/inline: New file/module.
66920         * modules/xalloc (Files): Remove m4/inline.m4.
66921         (Depends-on): Add inline, instead.
66922         * modules/oset: Likewise.
66923         * modules/list: Likewise.
66924
66925 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66928         Problem reported by Matthew Woehlke.
66929
66930 2006-11-09  Bruno Haible  <bruno@clisp.org>
66931
66932         * lib/tempname.c (gen_tempname): Remove variant that invokes
66933         __gen_tempname.
66934         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66935         __gen_tempname.
66936
66937 2006-11-08  Bruno Haible  <bruno@clisp.org>
66938
66939         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66940         to 'yes' instead of 'cross-compiling'.
66941
66942 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * lib/quotearg.h (quotearg_free): New decl.
66945         * lib/quotearg.c (quotearg_free): New function.
66946         (slot0, nslots, slotvec0, slotvec):
66947         Now file-scope so that quotearg_free can get at them.
66948
66949 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66950
66951         Sync from Automake.
66952         * build-aux/gnupload: Add missing 'gnu' to example URL.
66953         Report by Karl Berry.
66954
66955 2006-11-08  Bruno Haible  <bruno@clisp.org>
66956
66957         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66958         Suggested by Paul Eggert.
66959
66960 2006-11-08  Jim Meyering  <jim@meyering.net>
66961
66962         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66963         It's already included if !_LIBC.
66964         (fts_safe_changedir): Add a comment.
66965
66966 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66967
66968         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66969         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66970         Matthew Woehlke.
66971
66972         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66973         definitions up, to avoid colliding with change below.
66974         (static_inline) [HAVE_INLINE]: New macro.
66975         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66976         Provide extern decls when !HAVE_INLINE.  Do not define unless
66977         static_inline is defined, either by us or by xmalloc.c.  Use
66978         static_inline rather than static inline.
66979         (XCALLOC): Optimize sizeof(T) = 1 case.
66980         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66981
66982 2006-11-07  Bruno Haible  <bruno@clisp.org>
66983
66984         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66985         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66986         AC_C_INLINE.
66987         * modules/xalloc (Files): Add m4/inline.m4.
66988
66989 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66990
66991         * README: Fix typo.
66992         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66993         (Miscellanous Notes): ...from this.
66994
66995 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66996
66997         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66998         Mention that offsetof should be used instead of sizeof.
66999         From Bruno Haible.
67000
67001 2006-11-07  Bruno Haible  <bruno@clisp.org>
67002
67003         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67004
67005 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67008         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67009         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67010         (gl_tree_add_before, gl_tree_add_after):
67011         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67012         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67013         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67014         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67015         (gl_linked_add_after, gl_linked_add_at): Likewise.
67016         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67017         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67018         (gl_tree_add_before, gl_tree_add_after): Likewise.
67019         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67020         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67021         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67022
67023 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67024
67025         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67026
67027 2006-11-06  Bruno Haible  <bruno@clisp.org>
67028
67029         * m4/inline.m4: New file.
67030         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67031         * modules/list (Files): Add m4/inline.m4.
67032         * modules/oset (Files): Likewise.
67033
67034 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67035
67036         * lib/idcache.c: Include <stddef.h>, for offsetof.
67037         (struct userid.name): Change from char * to a flexible array member.
67038         All uses changed.
67039         * modules/idcache (Depends-on): Add flexmember.
67040
67041         * MODULES.html.sh (Core language properties): New module flexmember.
67042         * modules/flexmember, m4/flexmember.m4: New files.
67043
67044         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67045         inline functions that are identical with the old xnmalloc_inline,
67046         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67047         that we can avoid some unnecessary integer multiplications and
67048         divisions in the common case where the element size is known at
67049         compile time.
67050         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67051         needed.
67052         (xnboundedmalloc): Remove.
67053         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67054         arguments, for consistency with rest of this header.
67055         (xcharalloc): Rewrite using XNMALLOC.
67056         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67057         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67058         versions have been moved to lib/xalloc.h and renamed to be the
67059         non-*_inline versions.
67060         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67061         and xnrealloc functions, since those functions are now inline and
67062         now call us.
67063         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67064         renaming described above.
67065         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67066         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67067         captures the dependency in AC_C_INLINE.
67068
67069         New module canonicalize-lgpl, proposed by Charles Wilson in
67070         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67071         with a few small changes afterwards.
67072         * MODULES.html.sh (File system functions): New module
67073         canonicalize-lgpl.
67074         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67075         and canonicalize_file_name.
67076         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67077         * modules/canonicalize-lgpl: New files.
67078
67079 2006-11-05  Bruno Haible  <bruno@clisp.org>
67080
67081         * gnulib-tool (func_import, func_create_testdir): Create directories
67082         also for files in subdirectories of lib/.
67083
67084 2006-11-05  Bruno Haible  <bruno@clisp.org>
67085
67086         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67087         ANSI C compliant.
67088
67089 2006-11-03  Bruno Haible  <bruno@clisp.org>
67090
67091         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67092         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67093         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67094         (xnboundedmalloc): New inline function.
67095         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67096         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67097         xmalloc.
67098         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67099         xmalloc.
67100         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67101         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67102         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67103         xmalloc.
67104         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67105         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67106         xmalloc.
67107         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67108         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67109         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67110         xmalloc.
67111         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67112         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67113         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67114         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67115         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67116         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67117         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67118
67119 2006-11-03  Bruno Haible  <bruno@clisp.org>
67120
67121         * lib/c-ctype.h [C++]: Define functions without name mangling.
67122         * lib/fwriteerror.h [C++]: Likewise.
67123         * lib/gcd.h [C++]: Likewise.
67124         * lib/linebreak.h [C++]: Likewise.
67125
67126 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67127
67128         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67129         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67130         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67131         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67132         Check for functions and headers just once.
67133         Check for declaration of canonicalize_file_name.
67134         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67135
67136 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67137
67138         * gnulib-tool (func_import): Fix typo in actioncmd.
67139
67140 2006-11-02  Bruno Haible  <bruno@clisp.org>
67141
67142         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67143         newline sequence in the Makefile.am snippet as a space, like "make"
67144         does.
67145         Reported by Roger Persson <perrog@gmail.com>.
67146
67147 2006-11-01  Bruno Haible  <bruno@clisp.org>
67148
67149         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67150         already declared in <string.h>.
67151         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67152
67153 2006-11-01  Bruno Haible  <bruno@clisp.org>
67154
67155         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67156         * lib/strcase.h: Include <string.h>.
67157         (strcasecmp): Define to rpl_strcasecmp here.
67158
67159 2006-11-01  Bruno Haible  <bruno@clisp.org>
67160
67161         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67162
67163 2006-11-01  Eric Blake  <ebb9@byu.net>
67164
67165         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67166
67167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67168
67169 2006-10-29  Bruno Haible  <bruno@clisp.org>
67170
67171         Make it compile in C++ mode.
67172         * lib/full-write.c (full_rw): Add a cast.
67173
67174 2006-11-01  Bruno Haible  <bruno@clisp.org>
67175
67176         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67177         be POSIX compliant.
67178         Reported by Roger Persson <perrog@gmail.com>.
67179
67180 2006-11-01  Eric Blake  <ebb9@byu.net>
67181
67182         * lib/getopt_.h: Fix comments.
67183
67184 2006-10-31  Eric Blake  <ebb9@byu.net>
67185
67186         * modules/tmpdir (Depends-on): Add sys_stat.
67187         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67188         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67189         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67190         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67191         tempname.
67192
67193 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67194
67195         Avoid some C++ diagnostics reported by Bruno Haible.
67196         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67197         xmalloc.
67198         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67199         (struct slotvec): Move to top level.
67200         (quotearg_n_options): Rewrite to avoid xmalloc.
67201         * lib/xalloc.h (xcharalloc): New function.
67202         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67203         [defined __cplusplus]: Add function template that provides result
67204         type propagation.  This part of the change is from Bruno Haible.
67205
67206 2006-10-29  Bruno Haible  <bruno@clisp.org>
67207
67208         Make it compile in C++ mode.
67209         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67210         * lib/strnlen1.c (strnlen1): Cast memchr result.
67211         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67212         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67213         (create_temp_dir): Rename local variable 'template'.
67214         (compile_csharp_using_sscli): Add cast.
67215         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67216         * lib/findprog.c (find_in_path): Likewise.
67217         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67218         * lib/wait-process.c (register_slave_subprocess): Likewise.
67219
67220 2006-10-22  Bruno Haible  <bruno@clisp.org>
67221
67222         * modules/tsearch: New file.
67223         * lib/tsearch.h: New file.
67224         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67225         * m4/tsearch.m4: New file.
67226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67227
67228 2006-10-29  Eric Blake  <ebb9@byu.net>
67229
67230         * lib/arcfour.c: Assume config.h.
67231         * lib/arctwo.c: Likewise.
67232         * lib/base64.c: Likewise.
67233         * lib/check-version.c: Likewise.
67234         * lib/crc.c: Likewise.
67235         * lib/des.c: Likewise.
67236         * lib/gc-gnulib.c: Likewise.
67237         * lib/gc-libgcrypt.c: Likewise.
67238         * lib/gc-pbkdf2-sha1.c: Likewise.
67239         * lib/getaddrinfo.c: Likewise.
67240         * lib/getdelim.c: Likewise.
67241         * lib/getline.c: Likewise.
67242         * lib/hmac-md5.c: Likewise.
67243         * lib/hmac-sha1.c: Likewise.
67244         * lib/iconvme.c: Likewise.
67245         * lib/md2.c: Likewise.
67246         * lib/md4.c: Likewise.
67247         * lib/memxor.c: Likewise.
67248         * lib/read-file.c: Likewise.
67249         * lib/readline.c: Likewise.
67250         * lib/rijndael-alg-fst.c: Likewise.
67251         * lib/rijndael-api-fst.c: Likewise.
67252         * lib/xgetdomainname.c: Likewise.
67253
67254 2006-10-28  Eric Blake  <ebb9@byu.net>
67255
67256         * lib/xstrndup.c: Assume config.h.
67257
67258 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67259
67260         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67261         stat-macros.h is now for our own macros, whereas stat_h is for
67262         macros in the <sys/stat.h> name space.
67263         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67264         (STAT_MACROS_H): Remove.
67265         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67266         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67267         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67268         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67269         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67270         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67271         Move these macros to ...
67272         * lib/stat_.h: here.  Don't include stat-macros.h.
67273         * lib/canonicalize.c: Don't include stat-macros.h.
67274         * lib/chown.c: Likewise.
67275         * lib/euidaccess.c: Likewise.
67276         * lib/file-type.c: Likewise.
67277         * lib/filemode.c: Likewise.
67278         * lib/glob.c: Likewise.
67279         * lib/isapipe.c: Likewise.
67280         * lib/lchown.c: Likewise.
67281         * lib/lstat.c: Likewise.
67282         * lib/mkdir-p.c: Likewise.
67283         * lib/rmdir.c: Likewise.
67284         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67286         unless mkdir isn't declared, to speed up 'configure'.
67287         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67288         would define all the S_* symbols.
67289         * modules/canonicalize (Depends-on):
67290         Depend on sys_stat, not stat-macros.
67291         * modules/chown: Likewise.
67292         * modules/euidaccess: Likewise.
67293         * modules/filemode: Likewise.
67294         * modules/file-type: Likewise.
67295         * modules/glob: Likewise.
67296         * modules/isapipe: Likewise.
67297         * modules/lchown: Likewise.
67298         * modules/lstat: Likewise.
67299         * modules/mkancesdirs: Likewise.
67300         * modules/rmdir: Likewise.
67301         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67302         * modules/modechange: Likewise.
67303         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67304         (configure.ac): Remove gl_STAT_MACROS.
67305         * modules/sys_stat (Depends-on): Remove stat-macros.
67306
67307 2006-10-27  Bruno Haible  <bruno@clisp.org>
67308
67309         * m4/signed.m4: Remove file.
67310         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67311         invocation.
67312         * modules/vasnprintf (Files): Remove m4/signed.m4.
67313
67314 2006-10-27  Bruno Haible  <bruno@clisp.org>
67315
67316         Update to GNU gettext 0.16.
67317         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67318         m4/inttypes-h.m4, m4/signed.m4.
67319         * m4/gettext.m4: Update to GNU gettext 0.16.
67320         * m4/intl.m4: New file, from GNU gettext.
67321         * m4/intldir.m4: New file, from GNU gettext.
67322         * config/srclist.txt: Update
67323
67324 2006-10-27  Eric Blake  <ebb9@byu.net>
67325
67326         * MODULES.html.sh: Document tempname.
67327         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67328         dependencies.
67329         (Files): Move lib/tempname.c...
67330         * modules/tempname: ...to this new module.
67331         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67332         (gl_PREREQ_TEMPNAME): Move...
67333         * m4/tempname.m4: ...to this new file.
67334         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67335         * modules/sys_stat (Depends-on): Add stat-macros.
67336         * lib/stat_.h (includes): Pick up stat macros.
67337         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67338         if stat macros are broken.
67339         * lib/tempname.c (includes): No need to include "stat-macros.h".
67340         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67341         (direxists, __path_search) [!_LIBC]: Don't compile these in
67342         gnulib; the tmpdir module covers that.
67343         * lib/tempname.h: New file.
67344
67345 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         * COPYING: Explain how gnulib-tool converts licence headers.
67348         Almost all wording by Eric Blake.
67349
67350 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * lib/mbchar.h (is_basic_table): Make read-only.
67353         * lib/mbchar.c (is_basic_table): Likewise.
67354         Reported by John Darrington.
67355
67356 2006-10-25  Bruno Haible  <bruno@clisp.org>
67357
67358         * lib/progname.h (set_program_name): Undefine before defining.
67359
67360 2006-10-25  Bruno Haible  <bruno@clisp.org>
67361
67362         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67363         false for non-gcc C++ compilers.
67364         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67365
67366 2006-10-24  Bruno Haible  <bruno@clisp.org>
67367
67368         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67369         iconv implementations like Irix iconv.
67370
67371 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67372
67373         * modules/vararrays: New file.
67374         * m4/vararrays.m4: New file, taken from diffutils.
67375         * MODULES.html.sh: New module vararrays.
67376
67377 2006-10-24  Karl Berry  <karl@gnu.org>
67378
67379         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67380         Don't call GNU Unix.
67381
67382 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67383
67384         * users.txt: Add Libtool.
67385
67386         Sync from Libtool:
67387
67388         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67391         to gnulib's policy of including config.h unconditionally.
67392
67393 2006-10-24  Bruno Haible  <bruno@clisp.org>
67394
67395         * modules/wcwidth (Files): Add m4/wint_t.m4.
67396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67397         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67398
67399 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67402         to pacify GCC with some -W flags enabled.  Problem reported by
67403         Bruno Haible.
67404
67405 2006-10-24  Jim Meyering  <jim@meyering.net>
67406
67407         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67408         Reported by Karl Berry.
67409
67410 2006-10-23  Bruno Haible  <bruno@clisp.org>
67411
67412         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67413
67414 2006-10-24  Bruno Haible  <bruno@clisp.org>
67415
67416         * lib/gl_list.h: Use C comment style, not C++ comment style.
67417
67418 2006-10-23  Eric Blake  <ebb9@byu.net>
67419
67420         * lib/getaddrinfo.c (includes): Add missing include.
67421
67422 2006-10-23  Bruno Haible  <bruno@clisp.org>
67423             Paul Eggert  <eggert@cs.ucla.edu>
67424
67425         Ability to rename obstack_free.
67426         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67427         obstack_free.
67428         (obstack_free): Invoke the __obstack_free macro.
67429         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67430
67431 2006-10-23  Bruno Haible  <bruno@clisp.org>
67432             Paul Eggert  <eggert@cs.ucla.edu>
67433
67434         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67435         __argc, __argv from the declaration. (They are defined as macros on
67436         mingw.)
67437
67438 2006-10-22  Bruno Haible  <bruno@clisp.org>
67439
67440         * doc/gnulib-intro.texi: New file.
67441         * doc/gnulib.texi: Include it.
67442
67443 2006-10-21  Bruno Haible  <bruno@clisp.org>
67444
67445         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67446         "Introduction", "Miscellanous Notes", "Particular Modules".
67447
67448 2006-10-21  Bruno Haible  <bruno@clisp.org>
67449
67450         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67451         Change mostlyclean-local rule to avoid sh syntax error from bash
67452         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67453
67454 2006-10-23  Jim Meyering  <jim@meyering.net>
67455
67456         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67457         in place of snprintf.
67458
67459         * modules/inttostr (Files): Add lib/uinttostr.c.
67460         * lib/uinttostr.c (inttostr): New file/function.
67461         * lib/inttostr.h (uinttostr): Declare.
67462         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67463         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67464         Add uinttostr.
67465         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67466
67467 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67468
67469         * lib/canonicalize.c (ELOOP): Define if not already defined.
67470         Problem reported by Bruno Haible in
67471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67472
67473 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67474
67475         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67476         Problem reported by Perry Smith and Ville Laurikari.
67477
67478         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67479         uses.
67480
67481 2006-10-19  Bruno Haible  <bruno@clisp.org>
67482
67483         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67484         for mingw.
67485
67486 2006-10-19  Bruno Haible  <bruno@clisp.org>
67487
67488         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67489         Needed for mingw.
67490
67491 2006-10-19  Bruno Haible  <bruno@clisp.org>
67492
67493         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67494
67495 2006-10-19  Bruno Haible  <bruno@clisp.org>
67496
67497         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67498         it.
67499
67500 2006-10-19  Bruno Haible  <bruno@clisp.org>
67501
67502         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67503         invocation.
67504
67505 2006-10-19  Bruno Haible  <bruno@clisp.org>
67506
67507         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67508         mountlist by default.
67509
67510 2006-10-16  Bruno Haible  <bruno@clisp.org>
67511
67512         * lib/c-strstr.c: Include c-strstr.h.
67513
67514 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67515
67516         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67517         in a slash.
67518
67519 2006-10-18  Bruno Haible  <bruno@clisp.org>
67520
67521         * lib/lock.h [C++]: Wrap definitions in extern "C".
67522
67523 2006-10-18  Bruno Haible  <bruno@clisp.org>
67524
67525         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67526         gl_LIBOBJS list.
67527
67528 2006-10-18  Bruno Haible  <bruno@clisp.org>
67529
67530         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67531
67532 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67533
67534         * lib/xstrtol.h: Include gettext.h.
67535         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67536         Problem reported by Eric Blake.
67537         * modules/xstrtol (Depends-on): Add gettext-h.
67538
67539 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67540
67541         * lib/strftime.c (advance): New macro.
67542         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67543         incomplete type, so you can't add 0 to it.  Problem and patch
67544         reported by Eelco Dolstra for dietlibc.
67545
67546 2006-10-18  Jim Meyering  <jim@meyering.net>
67547
67548         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67549         type for a local, and rename it: s/up/user_proc/.
67550
67551 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67552
67553         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67554         READ_UTMP_USER_PROCESS.
67555         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67556
67557 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67558
67559         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67560         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67561
67562 2006-10-17  Eric Blake  <ebb9@byu.net>
67563
67564         * lib/sigprocmask.c (sigprocmask): Fix typo.
67565
67566         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67567
67568         * modules/clean-temp (Makefile.am): Don't add to make output...
67569         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67570         config.h.
67571
67572 2006-10-17  Bruno Haible  <bruno@clisp.org>
67573
67574         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67575         differently if DEFAULT_TEXT_DOMAIN is set.
67576
67577 2006-10-16  Bruno Haible  <bruno@clisp.org>
67578
67579         * lib/clean-temp.c: Include fwriteerror.h.
67580
67581 2006-10-16  Bruno Haible  <bruno@clisp.org>
67582
67583         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67584
67585 2006-10-16  Bruno Haible  <bruno@clisp.org>
67586
67587         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67588         * lib/sigprocmask.h: Include <sys/types.h>.
67589         (sigset_t): Use the system's definition if present.
67590
67591 2006-10-17  Eric Blake  <ebb9@byu.net>
67592
67593         * lib/xvasprintf.c (includes): Assume config.h.
67594         * lib/xasprintf.c (includes): Likewise.
67595
67596 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67597
67598         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67599         at least as wide as intmax_t.
67600
67601 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67602
67603         (Imported from Automake.)
67604         * build-aux/gnupload: Update to version 1.1 of directive file.
67605
67606 2006-10-16  Eric Blake  <ebb9@byu.net>
67607
67608         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67609         match Automake 1.10a.
67610
67611 2006-10-14  Bruno Haible  <bruno@clisp.org>
67612
67613         * modules/sigprocmask: New file.
67614         * lib/sigprocmask.h: New file.
67615         * lib/sigprocmask.c: New file.
67616         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67617         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67618         request sigprocmask.o.
67619         (gl_PREREQ_SIGPROCMASK): New macro.
67620         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67621         (Depends-on): Add sigprocmask.
67622         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67623         gt_SIGNALBLOCKING. Test for 'raise' only once.
67624         * lib/fatal-signal.c: Include sigprocmask.h.
67625         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67626         unblock_fatal_signals): Define always.
67627         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67628         sigprocmask.
67629
67630 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67631
67632         Sync from Automake.
67633         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67634         which incorrectly sets the mode of an existing destination
67635         directory.  In some cases the unpatched install-sh could do the
67636         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67637         system.  We hope this is rare in practice, but it's clearly worth
67638         fixing.  Problem reported by Alex Unleashed in
67639         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67640         Also, don't bother to check for -m bugs unless we're using -m;
67641         suggested by Stepan Kasal.
67642
67643 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67644
67645         Sync from Automake.
67646         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67647         `-c' flag, so they appear at the same position as in %FASTDEP%
67648         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67649         which ignores unknown options only after the first non-option.
67650         Bug report against M4 by Nelson H. F. Beebe.
67651
67652 2006-10-13  Jim Meyering  <jim@meyering.net>
67653
67654         Fix a bug in yesterday's change.
67655         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67656         p->fts_statp->st_dev would be used uninitialized.
67657         Ensures that we always call fts_stat on the very first entry.
67658         Miklos Szeredi reported that find -xdev stopped working.
67659
67660 2006-10-12  Bruno Haible  <bruno@clisp.org>
67661
67662         * gnulib-tool (func_get_automake_snippet): Append an automatically
67663         computed EXTRA_DIST augmentation.
67664         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67665         * modules/alloca-opt (Makefile.am): Likewise.
67666         * modules/allocsa (Makefile.am): Likewise.
67667         * modules/arcfour (Makefile.am): Likewise.
67668         * modules/arctwo (Makefile.am): Likewise.
67669         * modules/argmatch (Makefile.am): Likewise.
67670         * modules/argz (Makefile.am): Likewise.
67671         * modules/atexit (Makefile.am): Likewise.
67672         * modules/backupfile (Makefile.am): Likewise.
67673         * modules/byteswap (Makefile.am): Likewise.
67674         * modules/c-strtod (Makefile.am): Likewise.
67675         * modules/c-strtold (Makefile.am): Likewise.
67676         * modules/calloc (Makefile.am): Likewise.
67677         * modules/canon-host (Makefile.am): Likewise.
67678         * modules/canonicalize (Makefile.am): Likewise.
67679         * modules/chdir-long (Makefile.am): Likewise.
67680         * modules/chdir-safer (Makefile.am): Likewise.
67681         * modules/check-version (Makefile.am): Likewise.
67682         * modules/chown (Makefile.am): Likewise.
67683         * modules/cloexec (Makefile.am): Likewise.
67684         * modules/close-stream (Makefile.am): Likewise.
67685         * modules/closeout (Makefile.am): Likewise.
67686         * modules/crc (Makefile.am): Likewise.
67687         * modules/csharpexec (Makefile.am): Likewise.
67688         * modules/cycle-check (Makefile.am): Likewise.
67689         * modules/des (Makefile.am): Likewise.
67690         * modules/dev-ino (Makefile.am): Likewise.
67691         * modules/dirfd (Makefile.am): Likewise.
67692         * modules/dirname (Makefile.am): Likewise.
67693         * modules/dup2 (Makefile.am): Likewise.
67694         * modules/eealloc (Makefile.am): Likewise.
67695         * modules/error (Makefile.am): Likewise.
67696         * modules/euidaccess (Makefile.am): Likewise.
67697         * modules/exclude (Makefile.am): Likewise.
67698         * modules/exitfail (Makefile.am): Likewise.
67699         * modules/fcntl-safer (Makefile.am): Likewise.
67700         * modules/fcntl (Makefile.am): Likewise.
67701         * modules/file-type (Makefile.am): Likewise.
67702         * modules/fileblocks (Makefile.am): Likewise.
67703         * modules/filemode (Makefile.am): Likewise.
67704         * modules/filenamecat (Makefile.am): Likewise.
67705         * modules/fnmatch (Makefile.am): Likewise.
67706         * modules/fopen-safer (Makefile.am): Likewise.
67707         * modules/fpending (Makefile.am): Likewise.
67708         * modules/fprintftime (Makefile.am): Likewise.
67709         * modules/free (Makefile.am): Likewise.
67710         * modules/fsusage (Makefile.am): Likewise.
67711         * modules/ftruncate (Makefile.am): Likewise.
67712         * modules/fts (Makefile.am): Likewise.
67713         * modules/gc-arcfour (Makefile.am): Likewise.
67714         * modules/gc-des (Makefile.am): Likewise.
67715         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67716         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67717         * modules/gc-md4 (Makefile.am): Likewise.
67718         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67719         * modules/gc-sha1 (Makefile.am): Likewise.
67720         * modules/gc (Makefile.am): Likewise.
67721         * modules/getaddrinfo (Makefile.am): Likewise.
67722         * modules/getcwd (Makefile.am): Likewise.
67723         * modules/getdelim (Makefile.am): Likewise.
67724         * modules/getdomainname (Makefile.am): Likewise.
67725         * modules/getgroups (Makefile.am): Likewise.
67726         * modules/gethostname (Makefile.am): Likewise.
67727         * modules/gethrxtime (Makefile.am): Likewise.
67728         * modules/getline (Makefile.am): Likewise.
67729         * modules/getloadavg (Makefile.am): Likewise.
67730         * modules/getlogin_r (Makefile.am): Likewise.
67731         * modules/getndelim2 (Makefile.am): Likewise.
67732         * modules/getopt (Makefile.am): Likewise.
67733         * modules/getpagesize (Makefile.am): Likewise.
67734         * modules/getpass-gnu (Makefile.am): Likewise.
67735         * modules/getpass (Makefile.am): Likewise.
67736         * modules/getsubopt (Makefile.am): Likewise.
67737         * modules/gettime (Makefile.am): Likewise.
67738         * modules/gettimeofday (Makefile.am): Likewise.
67739         * modules/getugroups (Makefile.am): Likewise.
67740         * modules/getusershell (Makefile.am): Likewise.
67741         * modules/glob (Makefile.am): Likewise.
67742         * modules/group-member (Makefile.am): Likewise.
67743         * modules/hard-locale (Makefile.am): Likewise.
67744         * modules/hash (Makefile.am): Likewise.
67745         * modules/hmac-md5 (Makefile.am): Likewise.
67746         * modules/hmac-sha1 (Makefile.am): Likewise.
67747         * modules/human (Makefile.am): Likewise.
67748         * modules/idcache (Makefile.am): Likewise.
67749         * modules/imaxabs (Makefile.am): Likewise.
67750         * modules/imaxdiv (Makefile.am): Likewise.
67751         * modules/inet_ntop (Makefile.am): Likewise.
67752         * modules/inet_pton (Makefile.am): Likewise.
67753         * modules/intprops (Makefile.am): Likewise.
67754         * modules/inttostr (Makefile.am): Likewise.
67755         * modules/inttypes (Makefile.am): Likewise.
67756         * modules/isapipe (Makefile.am): Likewise.
67757         * modules/javaversion (Makefile.am): Likewise.
67758         * modules/lchmod (Makefile.am): Likewise.
67759         * modules/lchown (Makefile.am): Likewise.
67760         * modules/localcharset (Makefile.am): Likewise.
67761         * modules/long-options (Makefile.am): Likewise.
67762         * modules/lstat (Makefile.am): Likewise.
67763         * modules/malloc (Makefile.am): Likewise.
67764         * modules/mathl (Makefile.am): Likewise.
67765         * modules/mbchar (Makefile.am): Likewise.
67766         * modules/md2 (Makefile.am): Likewise.
67767         * modules/md4 (Makefile.am): Likewise.
67768         * modules/md5 (Makefile.am): Likewise.
67769         * modules/memcasecmp (Makefile.am): Likewise.
67770         * modules/memchr (Makefile.am): Likewise.
67771         * modules/memcmp (Makefile.am): Likewise.
67772         * modules/memcoll (Makefile.am): Likewise.
67773         * modules/memcpy (Makefile.am): Likewise.
67774         * modules/memmem (Makefile.am): Likewise.
67775         * modules/memmove (Makefile.am): Likewise.
67776         * modules/mempcpy (Makefile.am): Likewise.
67777         * modules/memrchr (Makefile.am): Likewise.
67778         * modules/memset (Makefile.am): Likewise.
67779         * modules/memxor (Makefile.am): Likewise.
67780         * modules/mkancesdirs (Makefile.am): Likewise.
67781         * modules/mkdir-p (Makefile.am): Likewise.
67782         * modules/mkdir (Makefile.am): Likewise.
67783         * modules/mkdtemp (Makefile.am): Likewise.
67784         * modules/mkstemp (Makefile.am): Likewise.
67785         * modules/mktime (Makefile.am): Likewise.
67786         * modules/modechange (Makefile.am): Likewise.
67787         * modules/mountlist (Makefile.am): Likewise.
67788         * modules/nanosleep (Makefile.am): Likewise.
67789         * modules/obstack (Makefile.am): Likewise.
67790         * modules/openat (Makefile.am): Likewise.
67791         * modules/pagealign_alloc (Makefile.am): Likewise.
67792         * modules/pathmax (Makefile.am): Likewise.
67793         * modules/physmem (Makefile.am): Likewise.
67794         * modules/poll (Makefile.am): Likewise.
67795         * modules/posixtm (Makefile.am): Likewise.
67796         * modules/posixver (Makefile.am): Likewise.
67797         * modules/putenv (Makefile.am): Likewise.
67798         * modules/quote (Makefile.am): Likewise.
67799         * modules/quotearg (Makefile.am): Likewise.
67800         * modules/raise (Makefile.am): Likewise.
67801         * modules/read-file (Makefile.am): Likewise.
67802         * modules/readline (Makefile.am): Likewise.
67803         * modules/readlink (Makefile.am): Likewise.
67804         * modules/readtokens (Makefile.am): Likewise.
67805         * modules/readutmp (Makefile.am): Likewise.
67806         * modules/realloc (Makefile.am): Likewise.
67807         * modules/regex (Makefile.am): Likewise.
67808         * modules/rename-dest-slash (Makefile.am): Likewise.
67809         * modules/rename (Makefile.am): Likewise.
67810         * modules/rijndael (Makefile.am): Likewise.
67811         * modules/rmdir (Makefile.am): Likewise.
67812         * modules/rpmatch (Makefile.am): Likewise.
67813         * modules/safe-read (Makefile.am): Likewise.
67814         * modules/safe-write (Makefile.am): Likewise.
67815         * modules/same-inode (Makefile.am): Likewise.
67816         * modules/same (Makefile.am): Likewise.
67817         * modules/save-cwd (Makefile.am): Likewise.
67818         * modules/savedir (Makefile.am): Likewise.
67819         * modules/setenv (Makefile.am): Likewise.
67820         * modules/settime (Makefile.am): Likewise.
67821         * modules/sha1 (Makefile.am): Likewise.
67822         * modules/sig2str (Makefile.am): Likewise.
67823         * modules/snprintf (Makefile.am): Likewise.
67824         * modules/stat-macros (Makefile.am): Likewise.
67825         * modules/stat-time (Makefile.am): Likewise.
67826         * modules/stdbool (Makefile.am): Likewise.
67827         * modules/stdint (Makefile.am): Likewise.
67828         * modules/stdlib-safer (Makefile.am): Likewise.
67829         * modules/stpcpy (Makefile.am): Likewise.
67830         * modules/stpncpy (Makefile.am): Likewise.
67831         * modules/strcase (Makefile.am): Likewise.
67832         * modules/strcasestr (Makefile.am): Likewise.
67833         * modules/strchrnul (Makefile.am): Likewise.
67834         * modules/strcspn (Makefile.am): Likewise.
67835         * modules/strdup (Makefile.am): Likewise.
67836         * modules/strerror (Makefile.am): Likewise.
67837         * modules/strftime (Makefile.am): Likewise.
67838         * modules/strndup (Makefile.am): Likewise.
67839         * modules/strnlen (Makefile.am): Likewise.
67840         * modules/strpbrk (Makefile.am): Likewise.
67841         * modules/strsep (Makefile.am): Likewise.
67842         * modules/strstr (Makefile.am): Likewise.
67843         * modules/strtod (Makefile.am): Likewise.
67844         * modules/strtoimax (Makefile.am): Likewise.
67845         * modules/strtok_r (Makefile.am): Likewise.
67846         * modules/strtol (Makefile.am): Likewise.
67847         * modules/strtoll (Makefile.am): Likewise.
67848         * modules/strtoul (Makefile.am): Likewise.
67849         * modules/strtoull (Makefile.am): Likewise.
67850         * modules/strtoumax (Makefile.am): Likewise.
67851         * modules/strverscmp (Makefile.am): Likewise.
67852         * modules/sys_socket (Makefile.am): Likewise.
67853         * modules/sys_stat (Makefile.am): Likewise.
67854         * modules/sysexits (Makefile.am): Likewise.
67855         * modules/time_r (Makefile.am): Likewise.
67856         * modules/timegm (Makefile.am): Likewise.
67857         * modules/timespec (Makefile.am): Likewise.
67858         * modules/tmpfile-safer (Makefile.am): Likewise.
67859         * modules/trim (Makefile.am): Likewise.
67860         * modules/unistd-safer (Makefile.am): Likewise.
67861         * modules/unlinkdir (Makefile.am): Likewise.
67862         * modules/unlocked-io (Makefile.am): Likewise.
67863         * modules/userspec (Makefile.am): Likewise.
67864         * modules/utime (Makefile.am): Likewise.
67865         * modules/utimecmp (Makefile.am): Likewise.
67866         * modules/utimens (Makefile.am): Likewise.
67867         * modules/vasnprintf (Makefile.am): Likewise.
67868         * modules/vasprintf (Makefile.am): Likewise.
67869         * modules/vsnprintf (Makefile.am): Likewise.
67870         * modules/xalloc (Makefile.am): Likewise.
67871         * modules/xgetcwd (Makefile.am): Likewise.
67872         * modules/xnanosleep (Makefile.am): Likewise.
67873         * modules/xreadlink (Makefile.am): Likewise.
67874         * modules/xstrtod (Makefile.am): Likewise.
67875         * modules/xstrtol (Makefile.am): Likewise.
67876         * modules/xstrtold (Makefile.am): Likewise.
67877         * modules/yesno (Makefile.am): Likewise.
67878         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67879
67880 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * modules/error (Makefile.am): Distribute files through
67883         EXTRA_DIST, not lib_SOURCES.
67884
67885 2006-10-12  Eric Blake  <ebb9@byu.net>
67886
67887         * modules/error (Makefile.am): Distribute files in /lib.
67888         * modules/obstack (Makefile.am): Likewise.
67889
67890 2006-10-12  Bruno Haible  <bruno@clisp.org>
67891
67892         * modules/acl (Makefile.am): Distribute all files in lib/ through
67893         EXTRA_DIST.
67894         * modules/arcfour (Makefile.am): Likewise.
67895         * modules/arctwo (Makefile.am): Likewise.
67896         * modules/argmatch (Makefile.am): Likewise.
67897         * modules/argz (Makefile.am): Likewise.
67898         * modules/atexit (Makefile.am): Likewise.
67899         * modules/backupfile (Makefile.am): Likewise.
67900         * modules/c-strtod (Makefile.am): Likewise.
67901         * modules/c-strtold (Makefile.am): Likewise.
67902         * modules/calloc (Makefile.am): Likewise.
67903         * modules/canon-host (Makefile.am): Likewise.
67904         * modules/canonicalize (Makefile.am): Likewise.
67905         * modules/chdir-long (Makefile.am): Likewise.
67906         * modules/chdir-safer (Makefile.am): Likewise.
67907         * modules/check-version (Makefile.am): Likewise.
67908         * modules/chown (Makefile.am): Likewise.
67909         * modules/cloexec (Makefile.am): Likewise.
67910         * modules/close-stream (Makefile.am): Likewise.
67911         * modules/closeout (Makefile.am): Likewise.
67912         * modules/crc (Makefile.am): Likewise.
67913         * modules/cycle-check (Makefile.am): Likewise.
67914         * modules/des (Makefile.am): Likewise.
67915         * modules/dirfd (Makefile.am): Likewise.
67916         * modules/dirname (Makefile.am): Likewise.
67917         * modules/dup2 (Makefile.am): Likewise.
67918         * modules/euidaccess (Makefile.am): Likewise.
67919         * modules/exclude (Makefile.am): Likewise.
67920         * modules/exitfail (Makefile.am): Likewise.
67921         * modules/fcntl-safer (Makefile.am): Likewise.
67922         * modules/file-type (Makefile.am): Likewise.
67923         * modules/fileblocks (Makefile.am): Likewise.
67924         * modules/filemode (Makefile.am): Likewise.
67925         * modules/filenamecat (Makefile.am): Likewise.
67926         * modules/fnmatch (Makefile.am): Likewise.
67927         * modules/fopen-safer (Makefile.am): Likewise.
67928         * modules/fpending (Makefile.am): Likewise.
67929         * modules/fprintftime (Makefile.am): Likewise.
67930         * modules/free (Makefile.am): Likewise.
67931         * modules/fsusage (Makefile.am): Likewise.
67932         * modules/ftruncate (Makefile.am): Likewise.
67933         * modules/fts (Makefile.am): Likewise.
67934         * modules/gc (Makefile.am): Likewise.
67935         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67936         * modules/getaddrinfo (Makefile.am): Likewise.
67937         * modules/getcwd (Makefile.am): Likewise.
67938         * modules/getdelim (Makefile.am): Likewise.
67939         * modules/getdomainname (Makefile.am): Likewise.
67940         * modules/getgroups (Makefile.am): Likewise.
67941         * modules/gethostname (Makefile.am): Likewise.
67942         * modules/gethrxtime (Makefile.am): Likewise.
67943         * modules/getline (Makefile.am): Likewise.
67944         * modules/getloadavg (Makefile.am): Likewise.
67945         * modules/getlogin_r (Makefile.am): Likewise.
67946         * modules/getopt (Makefile.am): Likewise.
67947         * modules/getpass (Makefile.am): Likewise.
67948         * modules/getpass-gnu (Makefile.am): Likewise.
67949         * modules/getsubopt (Makefile.am): Likewise.
67950         * modules/gettime (Makefile.am): Likewise.
67951         * modules/gettimeofday (Makefile.am): Likewise.
67952         * modules/getugroups (Makefile.am): Likewise.
67953         * modules/getusershell (Makefile.am): Likewise.
67954         * modules/glob (Makefile.am): Likewise.
67955         * modules/group-member (Makefile.am): Likewise.
67956         * modules/hard-locale (Makefile.am): Likewise.
67957         * modules/hash (Makefile.am): Likewise.
67958         * modules/hmac-md5 (Makefile.am): Likewise.
67959         * modules/hmac-sha1 (Makefile.am): Likewise.
67960         * modules/human (Makefile.am): Likewise.
67961         * modules/idcache (Makefile.am): Likewise.
67962         * modules/imaxabs (Makefile.am): Likewise.
67963         * modules/imaxdiv (Makefile.am): Likewise.
67964         * modules/inet_ntop (Makefile.am): Likewise.
67965         * modules/inet_pton (Makefile.am): Likewise.
67966         * modules/inttostr (Makefile.am): Likewise.
67967         * modules/isapipe (Makefile.am): Likewise.
67968         * modules/lchown (Makefile.am): Likewise.
67969         * modules/long-options (Makefile.am): Likewise.
67970         * modules/lstat (Makefile.am): Likewise.
67971         * modules/malloc (Makefile.am): Likewise.
67972         * modules/mathl (Makefile.am): Likewise.
67973         * modules/mbchar (Makefile.am): Likewise.
67974         * modules/md2 (Makefile.am): Likewise.
67975         * modules/md4 (Makefile.am): Likewise.
67976         * modules/md5 (Makefile.am): Likewise.
67977         * modules/memcasecmp (Makefile.am): Likewise.
67978         * modules/memchr (Makefile.am): Likewise.
67979         * modules/memcmp (Makefile.am): Likewise.
67980         * modules/memcoll (Makefile.am): Likewise.
67981         * modules/memcpy (Makefile.am): Likewise.
67982         * modules/memmem (Makefile.am): Likewise.
67983         * modules/memmove (Makefile.am): Likewise.
67984         * modules/mempcpy (Makefile.am): Likewise.
67985         * modules/memrchr (Makefile.am): Likewise.
67986         * modules/memset (Makefile.am): Likewise.
67987         * modules/memxor (Makefile.am): Likewise.
67988         * modules/mkancesdirs (Makefile.am): Likewise.
67989         * modules/mkdir (Makefile.am): Likewise.
67990         * modules/mkdir-p (Makefile.am): Likewise.
67991         * modules/mkdtemp (Makefile.am): Likewise.
67992         * modules/mkstemp (Makefile.am): Likewise.
67993         * modules/mktime (Makefile.am): Likewise.
67994         * modules/modechange (Makefile.am): Likewise.
67995         * modules/mountlist (Makefile.am): Likewise.
67996         * modules/nanosleep (Makefile.am): Likewise.
67997         * modules/openat (Makefile.am): Likewise.
67998         * modules/pagealign_alloc (Makefile.am): Likewise.
67999         * modules/physmem (Makefile.am): Likewise.
68000         * modules/poll (Makefile.am): Likewise.
68001         * modules/posixtm (Makefile.am): Likewise.
68002         * modules/posixver (Makefile.am): Likewise.
68003         * modules/putenv (Makefile.am): Likewise.
68004         * modules/quote (Makefile.am): Likewise.
68005         * modules/quotearg (Makefile.am): Likewise.
68006         * modules/raise (Makefile.am): Likewise.
68007         * modules/read-file (Makefile.am): Likewise.
68008         * modules/readline (Makefile.am): Likewise.
68009         * modules/readlink (Makefile.am): Likewise.
68010         * modules/readtokens (Makefile.am): Likewise.
68011         * modules/readutmp (Makefile.am): Likewise.
68012         * modules/realloc (Makefile.am): Likewise.
68013         * modules/regex (Makefile.am): Likewise.
68014         * modules/rename (Makefile.am): Likewise.
68015         * modules/rename-dest-slash (Makefile.am): Likewise.
68016         * modules/rijndael (Makefile.am): Likewise.
68017         * modules/rmdir (Makefile.am): Likewise.
68018         * modules/rpmatch (Makefile.am): Likewise.
68019         * modules/safe-read (Makefile.am): Likewise.
68020         * modules/safe-write (Makefile.am): Likewise.
68021         * modules/same (Makefile.am): Likewise.
68022         * modules/save-cwd (Makefile.am): Likewise.
68023         * modules/savedir (Makefile.am): Likewise.
68024         * modules/setenv (Makefile.am): Likewise.
68025         * modules/settime (Makefile.am): Likewise.
68026         * modules/sha1 (Makefile.am): Likewise.
68027         * modules/sig2str (Makefile.am): Likewise.
68028         * modules/snprintf (Makefile.am): Likewise.
68029         * modules/stdlib-safer (Makefile.am): Likewise.
68030         * modules/stpcpy (Makefile.am): Likewise.
68031         * modules/stpncpy (Makefile.am): Likewise.
68032         * modules/strcase (Makefile.am): Likewise.
68033         * modules/strcasestr (Makefile.am): Likewise.
68034         * modules/strchrnul (Makefile.am): Likewise.
68035         * modules/strcspn (Makefile.am): Likewise.
68036         * modules/strdup (Makefile.am): Likewise.
68037         * modules/strerror (Makefile.am): Likewise.
68038         * modules/strftime (Makefile.am): Likewise.
68039         * modules/strndup (Makefile.am): Likewise.
68040         * modules/strnlen (Makefile.am): Likewise.
68041         * modules/strpbrk (Makefile.am): Likewise.
68042         * modules/strsep (Makefile.am): Likewise.
68043         * modules/strstr (Makefile.am): Likewise.
68044         * modules/strtod (Makefile.am): Likewise.
68045         * modules/strtoimax (Makefile.am): Likewise.
68046         * modules/strtok_r (Makefile.am): Likewise.
68047         * modules/strtol (Makefile.am): Likewise.
68048         * modules/strtoll (Makefile.am): Likewise.
68049         * modules/strtoul (Makefile.am): Likewise.
68050         * modules/strtoull (Makefile.am): Likewise.
68051         * modules/strtoumax (Makefile.am): Likewise.
68052         * modules/strverscmp (Makefile.am): Likewise.
68053         * modules/time_r (Makefile.am): Likewise.
68054         * modules/timegm (Makefile.am): Likewise.
68055         * modules/tmpfile-safer (Makefile.am): Likewise.
68056         * modules/unistd-safer (Makefile.am): Likewise.
68057         * modules/unlinkdir (Makefile.am): Likewise.
68058         * modules/userspec (Makefile.am): Likewise.
68059         * modules/utime (Makefile.am): Likewise.
68060         * modules/utimecmp (Makefile.am): Likewise.
68061         * modules/utimens (Makefile.am): Likewise.
68062         * modules/vasnprintf (Makefile.am): Likewise.
68063         * modules/vasprintf (Makefile.am): Likewise.
68064         * modules/vsnprintf (Makefile.am): Likewise.
68065         * modules/xalloc (Makefile.am): Likewise.
68066         * modules/xgetcwd (Makefile.am): Likewise.
68067         * modules/xnanosleep (Makefile.am): Likewise.
68068         * modules/xreadlink (Makefile.am): Likewise.
68069         * modules/xstrtod (Makefile.am): Likewise.
68070         * modules/xstrtol (Makefile.am): Likewise.
68071         * modules/xstrtold (Makefile.am): Likewise.
68072         * modules/yesno (Makefile.am): Likewise.
68073
68074 2006-10-12  Jim Meyering  <jim@meyering.net>
68075
68076         * m4/getloadavg.m4: Revert the change below.
68077
68078         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68079         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68080         fail with a symlink, which is what coreutils' ./bootstrap now
68081         creates by default.
68082
68083 2006-10-12  Bruno Haible  <bruno@clisp.org>
68084
68085         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68086         mingw.
68087         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68088         MSVC and mingw explicitly.
68089
68090 2006-10-11  Simon Josefsson  <jas@extundo.com>
68091             Bruno Haible  <bruno@clisp.org>
68092
68093         Add support for multiple gnulib-tool invocations in the scope of a
68094         single configure.ac file.
68095         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68096         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68097         with the same contents as the _LIBADD variable.
68098         (func_emit_initmacro_start, func_emit_initmacro_end,
68099         func_emit_initmacro_done): New functions.
68100         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68101         gl_LIBOBJS and gl_LTLIBOBJS.
68102
68103 2006-10-11  Bruno Haible  <bruno@clisp.org>
68104
68105         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68106         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68107         autoreconf. Instead, invoke autopoint explicitly but move back the
68108         *.m4 files from gnulib.
68109
68110 2006-10-11  Bruno Haible  <bruno@clisp.org>
68111
68112         * gnulib-tool (func_usage): Make module names after --create-testdir
68113         optional.
68114         (func_create_testdir): If no module was specified, use nearly all
68115         modules.
68116
68117 2006-10-12  Jim Meyering  <jim@meyering.net>
68118
68119         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68120         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68121         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68122         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68123         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68124         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68125         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68126         (fts_set_stat_required): New function.
68127         (fts_open): Defer the calls to fts_stat, if possible or requested.
68128         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68129         into fts_stat itself.
68130         (fts_read): Perform any required (deferred) fts_stat call.
68131         (fts_build): Likewise, for the directory we're about to open and read.
68132         In the readdir loop, carefully decide whether each entry will require
68133         an eventual call to fts_stat, using dirent.d_type info if available.
68134         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68135         a command line argument into this function.  Update all callers.
68136         Map a return value of FTS_DOT to FTS_D for a command line argument.
68137         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68138         Thanks to Miklos Szeredi for his tenacity and for the initial
68139         bug report about "find" failing on a FUSE-based file system.
68140
68141         * lib/fts.c (fts_open): Use consistent indentation.
68142
68143 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68146         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68147         reported by Jim Meyering.  All uses of cache variables renamed
68148         to match Autoconf's.
68149         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68150         the other one.
68151
68152         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68153         Fix misspelling in diagnostic.
68154
68155 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68156
68157         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68158         defined.  Problem reported by Matthew Woehlke.
68159
68160         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68161         Add support for Tandem NonStop R series.
68162         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68163         Use new macro.
68164
68165         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68166         (has_trailing_slash): Omit size arg; all callers changed.
68167         Omit 'inline', since it doesn't help performance and we'd
68168         need to configure it.
68169         Don't count //, ///, etc. as having a trailing slash.
68170         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68171         (rpl_rename_dest_slash): On failure, use rename's errno rather
68172         than (in some cases) an incorrect or junk errno.
68173         Simplify code by removing need to compute length; this does
68174         cause it to make two passes instead of one over the file name,
68175         but it's worth it.
68176
68177         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68178         change, since Autoconf's version may no longer be appropriate now
68179         that we are using CVS Autoconf's version.  Add support for Tandem.
68180
68181 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68182             Bruno Haible  <bruno@clisp.org>
68183
68184         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68185         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68186         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68187         gl_AC_TYPE_LONG_LONG.
68188
68189         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68190         instead of HAVE_LONG_LONG.
68191         * lib/printf-args.c (printf_fetchargs): Likewise.
68192         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68193         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68194         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68195         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68196         gl_AC_TYPE_LONG_LONG.
68197
68198 2006-10-11  Bruno Haible  <bruno@clisp.org>
68199
68200         * m4/longlong.m4: Add comments.
68201         * m4/ulonglong.m4: Likewise.
68202
68203 2006-10-10  Bruno Haible  <bruno@clisp.org>
68204
68205         Make it possible to #define stpcpy, strdup to aliases.
68206         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68207         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68208
68209 2006-10-10  Bruno Haible  <bruno@clisp.org>
68210
68211         Make it possible to #define gcd to an alias.
68212         * lib/gcd.c: Include config.h.
68213
68214 2006-10-10  Bruno Haible  <bruno@clisp.org>
68215
68216         Make it possible to #define c_isascii to an alias.
68217         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68218         defined. Undefine the macros before defining them, to avoid gcc
68219         warnings.
68220         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68221         define NO_C_CTYPE_MACROS early.
68222
68223 2006-10-10  Bruno Haible  <bruno@clisp.org>
68224
68225         Make it possible to #define set_program_name to an alias.
68226         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68227         ENABLE_RELOCATABLE early.
68228
68229 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68230
68231         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68232         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68233         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68234         More generally, don't assume that 64-bit signed int is available
68235         if unsigned int is, and vice versa.
68236         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68237         unsigned symbols, not on their signed counterparts.
68238         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68239         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68240         (UINT64_C, UINTMAX_C):
68241         Likewise.
68242         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68243         unsigned counterparts.
68244         (Have_long_long, Unsigned): New macros.
68245         (Int): Renamed from INT.
68246         (strtoimax): Use the new macros.
68247         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68248         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68249         * modules/inttypes (inttypes.h): Substitute
68250         HAVE_UNSIGNED_LONG_LONG_INT.
68251         * modules/stdint (stdint.h): Likewise.
68252         (Files): Add m4/ulonglong.m4.
68253
68254 2006-10-10  Bruno Haible  <bruno@clisp.org>
68255
68256         Fix a gcc -Wshadow warning.
68257         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68258         to 'bucket'.
68259         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68260         gl_linked_indexof_from_to): Likewise.
68261         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68262         Likewise.
68263         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68264         Likewise.
68265         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68266         Reported by Eric Blake.
68267
68268 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68271         for NetBSD.  Problem reported by Bruno Haible.
68272
68273 2006-10-09  Jim Meyering  <jim@meyering.net>
68274
68275         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68276         Patch from Bruno Haible.
68277
68278 2006-10-09  Jim Meyering  <jim@meyering.net>
68279
68280         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68281         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68282         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68283
68284 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         Don't include <config.h> twice; this doesn't work in some cases,
68287         e.g., when config.h has "#define intmax_t long long int" and
68288         we include <config.h>, <inttypes.h>, <config.h> in that order.
68289         Problem reported by Matthew Woehlke in:
68290         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68291         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68292         * lib/fts-cycle.c: Don't include config.h.
68293         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68294         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68295         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68296         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68297         inttypes.h.
68298         * lib/xstrtoumax.c: Likewise.
68299         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68300         __strtol and the like, so that this module is more like its siblings.
68301         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68302         Remove; no longer needed now that we assume gnulib inttypes.h.
68303
68304 2006-10-08  Bruno Haible  <bruno@clisp.org>
68305
68306         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68307         option.
68308
68309 2006-10-07  Jim Meyering  <jim@meyering.net>
68310
68311         * modules/inttypes (inttypes.h): Revert what seems to have been
68312         an inadvertent part of today's change: use "|", not "/" in the
68313         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68314
68315 2006-10-07  Bruno Haible  <bruno@clisp.org>
68316
68317         * modules/sublist: New file.
68318
68319 2006-10-07  Bruno Haible  <bruno@clisp.org>
68320
68321         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68322         * modules/argz (argz.h): Likewise.
68323         * modules/arpa_inet (arpa/inet.h): Likewise.
68324         * modules/byteswap (byteswap.h): Likewise.
68325         * modules/configmake (configmake.h): Likewise.
68326         * modules/fcntl (fcntl.h): Likewise.
68327         * modules/fnmatch (fnmatch.h): Likewise.
68328         * modules/getopt (getopt.h): Likewise.
68329         * modules/glob (glob.h): Likewise.
68330         * modules/inttypes (inttypes.h): Likewise.
68331         * modules/netinet_in (netinet/in.h): Likewise.
68332         * modules/poll (poll.h): Likewise.
68333         * modules/stdbool (stdbool.h): Likewise.
68334         * modules/stdint (stdint.h): Likewise.
68335         * modules/sys_select (sys/select.h): Likewise.
68336         * modules/sys_socket (sys/socket.h): Likewise.
68337         * modules/sys_stat (sys/stat.h): Likewise.
68338         * modules/sysexits (sysexits.h): Likewise.
68339         * modules/unistd (unistd.h): Likewise.
68340         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68341         Add a "DO NOT EDIT" comment to the generated file.
68342         (func_import): Likewise for gnulib-comp.m4.
68343
68344 2006-10-07  Bruno Haible  <bruno@clisp.org>
68345
68346         * lib/gl_sublist.h: New file.
68347         * lib/gl_sublist.c: New file.
68348
68349 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68350
68351         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68352         name (relative to the original working directory) and the file
68353         name component (relative to the temporary working directory).  All
68354         callers changed.
68355         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68356         * lib/mkdir-p.c (make_dir_parents): Likewise.
68357         * lib/mkdir-p.h (make_dir_parents): Likewise.
68358
68359 2006-10-06  Eric Blake  <ebb9@byu.net>
68360
68361         Define several macros for use by the clean-temp module.
68362         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68363         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68364         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68365
68366         * lib/clean-temp.h (close_stream_temp): New declaration.
68367         * lib/clean-temp.c (includes): Pull in headers according to what
68368         other modules are in use.
68369         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68370
68371 2006-10-06  Bruno Haible  <bruno@clisp.org>
68372
68373         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68374         instead of fopen, fwriteerror.
68375
68376 2006-10-06  Bruno Haible  <bruno@clisp.org>
68377
68378         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68379         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68380         int.
68381         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68382         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68383         Return an error indicator.
68384         Suggested by Eric Blake.
68385
68386 2006-10-06  Bruno Haible  <bruno@clisp.org>
68387
68388         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68389         Reported by Eric Blake.
68390
68391 2006-10-06  Bruno Haible  <bruno@clisp.org>
68392
68393         * modules/closeout (Description): Mention stderr too.
68394
68395 2006-10-06  Bruno Haible  <bruno@clisp.org>
68396         and Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         * lib/closeout.c (close_stdout): Also close stderr.
68399         * lib/closeout.h: Update comment.
68400
68401 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68404         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68405         * lib/dirchownmod.c: Include lchown.h.
68406         * lib/lchown.c: Don't include files that lchown.h now includes.
68407         Don't declare chown, since lchown.h now does that.
68408         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68409         (lchown): Define to rpl_chown if lchown is declared but
68410         does not exist.  Declare using a prototype if lchown is not
68411         declared.  Add a copyright notice.
68412         * lib/mkstemp.h: Include <unistd.h>.
68413         * lib/openat.c: Include lchown.h.
68414
68415         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68416         we now test for that separately.
68417         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68418         rather than O_NOFOLLOW, when testing whether it's possible to
68419         avoid a race condition reliably.
68420         * lib/savewd.c (savewd_chdir): Likewise.
68421
68422         Remove macros that are no longer needed now that stdint.h is
68423         reliable.
68424         * lib/fsusage.c (UINTMAX_MAX): Remove.
68425         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68426         * lib/utimecmp.c (SIZE_MAX): Remove.
68427
68428         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68429
68430         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68431         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68432         O_NOATIME works.
68433
68434 2006-10-05  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/gl_list.h (gl_sortedlist_search_from_to,
68437         gl_sortedlist_indexof_from_to): New declarations.
68438         (gl_list_implementation): New fields sortedlist_search_from_to,
68439         sortedlist_indexof_from_to.
68440         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68441         inline functions.
68442         * lib/gl_list.c (gl_sortedlist_search_from_to,
68443         gl_sortedlist_indexof_from_to): New functions.
68444         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68445         function.
68446         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68447         (gl_array_sortedlist_search_from_to): New function.
68448         (gl_array_list_implementation): Update.
68449         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68450         function.
68451         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68452         (gl_carray_sortedlist_search_from_to): New function.
68453         (gl_carray_list_implementation): Update.
68454         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68455         gl_linked_sortedlist_indexof_from_to): New functions.
68456         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68457         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68458         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68459         gl_tree_sortedlist_indexof_from_to): New functions.
68460         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68461         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68462         Update.
68463         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68464         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68465         Update.
68466
68467 2006-10-05  Bruno Haible  <bruno@clisp.org>
68468
68469         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68470         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68471         (struct gl_list_implementation): Add fields search_from_to,
68472         indexof_from_to. Remove fields search, indexof.
68473         (gl_list_search): Use the search_from_to method.
68474         (gl_list_search_from, gl_list_search_from_to): New functions.
68475         (gl_list_indexof): Use the indexof_from_to method.
68476         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68477         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68478         (gl_list_search_from, gl_list_search_from_to): New functions.
68479         (gl_list_indexof): Use the indexof_from_to method.
68480         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68481         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68482         gl_array_indexof. Add start_index, end_index arguments.
68483         (gl_array_search_from_to): Renamed from gl_array_search. Add
68484         start_index, end_index arguments.
68485         (gl_array_remove, gl_array_list_implementation): Update.
68486         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68487         gl_carray_indexof. Add start_index, end_index arguments.
68488         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68489         start_index, end_index arguments.
68490         (gl_carray_remove, gl_carray_list_implementation): Update.
68491         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68492         gl_linked_search. Add start_index, end_index arguments.
68493         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68494         start_index, end_index arguments.
68495         (gl_linked_remove): Update.
68496         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68497         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68498         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68499         field to 'size_t'.
68500         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68501         gl_tree_search. Add start_index, end_index arguments.
68502         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68503         start_index, end_index arguments.
68504         (gl_tree_remove): Update.
68505         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68506         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68507         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68508         function.
68509         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68510         gl_tree_search. Add start_index, end_index arguments.
68511         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68512         start_index, end_index arguments.
68513         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68514         Update.
68515         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68516
68517 2006-10-05  Bruno Haible  <bruno@clisp.org>
68518
68519         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68520
68521         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68522         fwriteerror_temp): New declarations.
68523         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68524         (descriptors): New variable.
68525         (cleanup): First, close the descriptors.
68526         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68527         fclose_temp, fwriteerror_temp): New functions.
68528
68529 2006-10-04  Jim Meyering  <jim@meyering.net>
68530
68531         * lib/fts.c (fts_open): Tiny comment change.
68532
68533 2006-10-04  Bruno Haible  <bruno@clisp.org>
68534
68535         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68536         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68537         gl_LOCK_BODY.
68538         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68539         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68540         gl_LOCK_EARLY_BODY.
68541         (gl_LOCK): Require gl_LOCK_BODY.
68542
68543 2006-10-04  Bruno Haible  <bruno@clisp.org>
68544
68545         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68546         (gl_oset_search_atleast): New declaration.
68547         (struct gl_oset_implementation): Add field 'search_atleast'.
68548         (gl_oset_search_atleast): New inline function.
68549         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68550         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68551         (gl_array_oset_implementation): Update.
68552         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68553         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68554         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68555
68556 2006-10-04  Bruno Haible  <bruno@clisp.org>
68557
68558         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68559
68560 2006-10-03  Bruno Haible  <bruno@clisp.org>
68561
68562         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68563         from gl_avltreehash_list_implementation.
68564
68565 2006-10-03  Bruno Haible  <bruno@clisp.org>
68566
68567         * lib/gl_oset.c (gl_oset_add): Fix return type.
68568
68569 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68570
68571         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68572
68573 2006-10-02  Eric Blake  <ebb9@byu.net>
68574
68575         * modules/strnlen (Depends-on): Add extensions.
68576
68577 2006-10-02  Eric Blake  <ebb9@byu.net>
68578
68579         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68580         definition in 2.60+.
68581
68582 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68583
68584         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68585         checks.
68586
68587 2006-10-02  Bruno Haible  <bruno@clisp.org>
68588
68589         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68590         to the AUTOMAKE_OPTIONS.
68591         Reported by Jim Meyering.
68592
68593 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68594
68595         Work around bug in Solaris 10 /proc file system:
68596         /proc/self/fd/NNN/.. isn't the parent directory of
68597         the directory whose file descriptor is NNN.  This needs to
68598         be worked around at run time, not compile time, since a
68599         program might be built on Solaris 8, where things work, and
68600         run on Solaris 10.
68601         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68602         to use the following interface instead:
68603         (OPENAT_BUFFER_SIZE): New macro.
68604         (openat_proc_name): New function.
68605         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68606         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68607         Likewise.
68608         * lib/openat-proc.c: New file.
68609         * modules/openat (Files): Add lib/openat-proc.c.
68610         (Depends-on): Add same-inode, stdbool.
68611         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68612
68613 2006-09-29  Bruno Haible  <bruno@clisp.org>
68614
68615         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68616         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68617         argument. Set stdout_closed before testing for ferror, not after.
68618         (fwriteerror, fwriteerror_no_ebadf): New functions.
68619
68620 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68621
68622         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68623
68624 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68625
68626         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68627         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68628
68629 2006-09-28  Jim Meyering  <jim@meyering.net>
68630
68631         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68632         Include <unistd.h>.
68633
68634 2006-09-28  Bruno Haible  <bruno@clisp.org>
68635
68636         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68637         * modules/linkedhash-list (Depends-on): Likewise.
68638         * modules/rbtreehash-list (Depends-on): Likewise.
68639
68640 2006-09-28  Bruno Haible  <bruno@clisp.org>
68641
68642         * lib/strndup.h: Simplify the redefinition of strndup.
68643         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68644         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68645
68646 2006-09-28  Bruno Haible  <bruno@clisp.org>
68647
68648         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68649         * lib/gl_linkedhash_list.c: Likewise.
68650         * lib/gl_rbtreehash_list.c: Likewise.
68651
68652 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68655         getaddrinfo.
68656
68657         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68658         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68659         it causes <stdio_ext.h> to cause a compile-time error.
68660         Problem reported by Nelson H. F. Beebe.
68661         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68662         of HAVE_DECL___PENDING.
68663
68664         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68665         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68666         declaration.
68667
68668 2006-09-27  Jim Meyering  <jim@meyering.net>
68669
68670         This file could end up with a definition for a function
68671         named __strndup, rather than rpl_strndup on a system with
68672         incomplete weak_alias support.
68673         * lib/strndup.c (strndup): Rename from __strndup.
68674         Remove #defines that used to map __strndup to strndup.
68675         Don't use K&R prototypes.
68676         Remove LIBC-related code, since this file is not sync'd with glibc.
68677         * lib/strndup.h: Revamp, accordingly.
68678         * m4/strndup.m4: Modernize.
68679
68680 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * modules/savewd (Depends-on): Add 'raise'.
68683         * lib/savewd.c: Include <signal.h>, for 'raise'.
68684
68685 2006-09-26  Jim Meyering  <jim@meyering.net>
68686
68687         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68688         when we detect Darwin 8.7.0's acl_get_file bug.
68689         Rearrange to perform the new (below) run-test while $LIBS
68690         contains any acl-related library.  Set USE_ACL at the end.
68691         (gl_ACL_GET_FILE): New function.
68692
68693 2006-09-26  Eric Blake  <ebb9@byu.net>
68694
68695         * lib/verror.c: Include <config.h> unconditionally.
68696
68697 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * modules/clock-time (Maintainer): Add self.
68700         * modules/getlogin_r (Depends-on): Add extensions.
68701
68702 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68703
68704         * modules/clock-time: New module.
68705         * modules/nanosleep (Depends-on): Add clock-time.
68706         * modules/gethrxtime (Depends-on): Likewise.
68707         * modules/gettime (Depends-on): Likewise.
68708         * modules/settime (Depends-on): Likewise.
68709
68710         * modules/fts-lgpl: Depend on openat.
68711         * modules/mkancesdirs: Depend on savewd.
68712         * modules/mkdir-p: Likewise.
68713
68714 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68715
68716         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68717
68718         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68719         `gl_have_arbitrary_file_name_length_limit' to
68720         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68721         actually works between configure runs.
68722
68723 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68724             Bruno Haible  <bruno@clisp.org>
68725
68726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68727
68728 2006-09-25  Jim Meyering  <jim@meyering.net>
68729
68730         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68731         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68732
68733 2006-09-25  Eric Blake  <ebb9@byu.net>
68734
68735         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68736         exec's in 2006-09-18 patch when shuffling fds.
68737
68738 2006-09-25  Bruno Haible  <bruno@clisp.org>
68739
68740         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68741         Reported by Jim Meyering.
68742
68743 2006-09-24  Jim Meyering  <jim@meyering.net>
68744
68745         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68746         compare a pointer against a literal "0".  That caused failures with
68747         at least HP-UX's hpcc.
68748
68749 2006-09-22  Simon Josefsson  <jas@extundo.com>
68750
68751         * modules/gc-sha1:
68752         * modules/gc-md4:
68753         * modules/gc-hmac-sha1:
68754         * modules/gc-hmac-md5:
68755         * modules/gc-des:
68756         * modules/gc-arcfour: Distribute more files.
68757
68758 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68759
68760         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68761         (gl_linked_iterator_from_to): Initialize struct completely.
68762         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68763         (gl_tree_iterator_from_to): Likewise
68764         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68765         * lib/gl_array_list.c [lint] (gl_array_iterator)
68766         (gl_array_iterator_from_to): Likewise.
68767         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68768         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68769         (gl_carray_iterator_from_to): Likewise.
68770
68771         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68772         * lib/md4.c (md4_process_block): Remove unused variable.
68773         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68774         parentheses for clarity.
68775
68776 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68777
68778         * modules/bison-i18n (Depends-on): Add gettext.
68779
68780 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68781
68782         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68783         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68784         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68785         also add missing comma that caused broken test.
68786         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68787         stdlib.h, for `abort'.
68788         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68789         variables.
68790         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68791         include unistd.h if present, for `rmdir'.
68792         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68793         variables.
68794         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68795         in the process include standard headers for prototypes.
68796         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68797         gets declared on GNU/Linux.
68798         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68799         unistd.h, for `rmdir'.
68800         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68801
68802         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68803         always true.
68804         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68805
68806         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68807
68808 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68809
68810         * gnulib-tool (func_version): Create output all at once.  This
68811         may help avoid triggering unnecessary SIGPIPEs, and at any
68812         rate it doesn't hurt.
68813
68814 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68815             Bruno Haible  <bruno@clisp.org>
68816
68817         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68818         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68819         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68820
68821         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68822         (gl_FUNC_VASPRINTF): Invoke it.
68823
68824 2006-09-22  Bruno Haible  <bruno@clisp.org>
68825
68826         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68827         getloadavg.c as first argument.
68828
68829 2006-09-22  Bruno Haible  <bruno@clisp.org>
68830
68831         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68832         at the beginning of the gl_INIT macro.
68833         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68834         gl_GETLOADAVG.
68835
68836 2006-09-22  Bruno Haible  <bruno@clisp.org>
68837
68838         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68839         module.
68840         Suggested by Ralf Wildenhues.
68841
68842 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         Import this patch from libc:
68845
68846         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68847
68848         * lib/regex_internal.c (re_string_reconstruct): Handle
68849         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68850         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68851         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68852         re_string_context_at.
68853
68854         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68855         now requires it.
68856         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68857         gl_REGEX now does it for us.
68858         (gl_REGEX): Add test taken from
68859         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68860
68861         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68862         Check that large offsets work.  Modernize Autoconf usages.
68863         Prefer "yes" to mean a good thing rather than a bad.
68864         Don't put "#define mkstemp" in config.h, as this might interfere
68865         with standard system headers that "#define mkstemp mkstemp64".
68866
68867         * modules/mkstemp (Depends-on): Add extensions, so that
68868         mkstemp is visible on some platforms.
68869         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68870         (Include): Change to "mkstemp.h" from <stdlib.h>.
68871         (Files): Add mkstemp.h.
68872
68873         * lib/mkstemp.h: New file, since some standard headers
68874         #define mkstemp.
68875         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68876         Include "mkstemp.h".
68877         Make the _LIBC code resemble glibc original more,
68878         e.g., use K&R style.
68879         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68880         (mkstemp): Remove, since mkstemp.h does this for us.
68881         * lib/stdlib--.h: Include mkstemp.h.
68882
68883         Import this patch from libc:
68884
68885         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68886
68887         * lib/tempname.c (__gen_tempname): Change attempts_min
68888         into a macro.  Use preprocessor to decide how to initialize
68889         attempts [Coverity CID 67].
68890
68891 2006-09-20  Bruno Haible  <bruno@clisp.org>
68892
68893         * lib/mkdtemp.c: Import from libc.
68894         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68895                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68896                 attempts_min into a macro.  Use preprocessor to decide how to
68897                 initialize attempts [Coverity CID 67].
68898         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68899                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68900                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68901
68902 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68903
68904         * gnulib-tool (func_exit): New function, to allow to pass the
68905         exit status portably through the trap.  Use everywhere.
68906         (--help, --version): Signal a write error.
68907         (trap): catch SIGPIPE, for write errors.
68908         Exit at the end of the trap, with the correct exit status.
68909
68910 2006-09-19  Karl Berry  <karl@gnu.org>
68911
68912         * doc/gnulib.texi: note about the license texinfo files.
68913
68914 2006-09-19  Eric Blake  <ebb9@byu.net>
68915
68916         * gnulib-tool: Avoid space-tab.
68917
68918 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68919
68920         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68921         that prevented coreutils 6.1 from building.  Problem reported
68922         by Petter Reinholdtsen.
68923
68924 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68925
68926         * gnulib-tool (avoidlist): Fix typo that broke options like
68927         --avoid=lock that are used by coreutils bootstrap.
68928
68929 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68930
68931         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68932         more systematically.
68933
68934 2006-09-18  Jim Meyering  <jim@meyering.net>
68935
68936         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68937
68938 2006-09-18  Bruno Haible  <bruno@clisp.org>
68939
68940         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68941
68942 2006-09-18  Bruno Haible  <bruno@clisp.org>
68943
68944         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68945         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68946         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68947         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68948         * m4/gettext.m4: Require autoconf >= 2.52.
68949         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68950         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68951         of gl_cv_header_inttypes_h.
68952
68953 2006-09-18  Bruno Haible  <bruno@clisp.org>
68954
68955         * lib/javaversion.c: Include configmake.h.
68956
68957 2006-09-18  Bruno Haible  <bruno@clisp.org>
68958
68959         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68960         avoid that the while loops be executed in a subshell.
68961
68962 2006-09-18  Bruno Haible  <bruno@clisp.org>
68963
68964         * MODULES.html.sh (func_module): Break long lines.
68965         Suggested by Bruce Korb <bkorb@gnu.org>.
68966
68967 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68968
68969         Speed up by a factor of 1.12.
68970         * gnulib-tool (nl): New variable.
68971         (func_import): Rewrite include directive extraction to only read each
68972         directive once.
68973
68974 2006-09-17  Bruno Haible  <bruno@clisp.org>
68975
68976         * modules/javaversion (Makefile.am): Remove DEFS setting.
68977         (Depends-on): Add configmake, for PKGDATADIR definition.
68978
68979 2006-09-17  Bruno Haible  <bruno@clisp.org>
68980
68981         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68982
68983 2006-09-17  Bruno Haible  <bruno@clisp.org>
68984
68985         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68986         (func_modules_transitive_closure, func_modules_add_dummy,
68987         func_modules_to_filelist, func_import, func_create_testdir,
68988         func_create_megatestdir, ...): Use it wherever possible.
68989         Suggested by Ralf Wildenhues.
68990
68991 2006-09-16  Karl Berry  <karl@gnu.org>
68992
68993         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68994         to avoid sectioning errors.
68995         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68996         [ifinfo]: blank line after @center-ed titles.
68997         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68998         Spell FSF address consistently with others.
68999         (These changes approved by rms.)
69000
69001 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69002
69003         Speed up by a factor of 1.61.
69004         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69005         already checked module names again.
69006
69007 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69008
69009         Speed up by a factor of 1.13.
69010         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69011         for new_files, and the input to func_add_or_update.
69012
69013 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69014
69015         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69016         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69017
69018 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69019
69020         * modules/mkancesdirs (Depends-on): Add fcntl.
69021         * modules/savewd: New file.
69022         * MODULES.html.sh (File system functions): Add savewd.
69023
69024         * modules/configmake (Makefile.am): Add support for the
69025         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69026
69027 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         * m4/savewd.m4: New file.
69030
69031 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69032
69033         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69034         (dirchownmod): New arg FD.  All callers changed.
69035         Use FD rather than opening the directory ourself, as opening is
69036         now the caller's responsibility.
69037         * lib/dirchownmod.h: Likewise.
69038         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69039         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69040         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69041         (test_dir): Remove.
69042         (mkancesdirs): Return length of prefix of FILE that has already
69043         been made, or -2 if there is a child doing the work.  Redo
69044         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69045         ".", and treat ".." specially since it might stray back into
69046         already-created areas.  Use a subprocess if necessary.  New arg
69047         WD; all users changed.  MAKE_DIR function should now return 1
69048         if it creates a directory that is not readable.  Return -2 if
69049         a child process is spun off.
69050         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69051         Adjust signature to match code.
69052         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69053         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69054         all users changed.
69055         * lib/savewd.c, lib/savewd.h: New files.
69056
69057 2006-09-15  Jim Meyering  <jim@meyering.net>
69058
69059         * modules/rename-dest-slash: New module.
69060         * MODULES.html.sh (posix_compat): Add it here.
69061
69062         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69063
69064 2006-09-15  Jim Meyering  <jim@meyering.net>
69065
69066         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69067         file.
69068
69069         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69070
69071 2006-09-15  Jim Meyering  <jim@meyering.net>
69072
69073         * lib/rename-dest-slash.c (has_trailing_slash): Use
69074         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69075         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69076         test before testing whether SRC is a directory.
69077         Suggestions from Bruno Haible.
69078
69079         Avoid a warning about an unused variable.
69080         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69081         into the #ifdef block where it's used.
69082
69083         * lib/rename-dest-slash.c: New file.
69084
69085 2006-09-14  Bruno Haible  <bruno@clisp.org>
69086
69087         * lib/allocsa.c: Include <config.h> unconditionally.
69088         * lib/asnprintf.c: Likewise.
69089         * lib/asprintf.c: Likewise.
69090         * lib/c-strcasecmp.c: Likewise.
69091         * lib/c-strcasestr.c: Likewise.
69092         * lib/c-strncasecmp.c: Likewise.
69093         * lib/c-strstr.c: Likewise.
69094         * lib/classpath.c: Likewise.
69095         * lib/clean-temp.c: Likewise.
69096         * lib/concatpath.c: Likewise.
69097         * lib/copy-file.c: Likewise.
69098         * lib/csharpcomp.c: Likewise.
69099         * lib/csharpexec.c: Likewise.
69100         * lib/execute.c: Likewise.
69101         * lib/fatal-signal.c: Likewise.
69102         * lib/findprog.c: Likewise.
69103         * lib/fwriteerror.c: Likewise.
69104         * lib/gl_array_list.c: Likewise.
69105         * lib/gl_array_oset.c: Likewise.
69106         * lib/gl_avltree_list.c: Likewise.
69107         * lib/gl_avltree_oset.c: Likewise.
69108         * lib/gl_avltreehash_list.c: Likewise.
69109         * lib/gl_carray_list.c: Likewise.
69110         * lib/gl_linked_list.c: Likewise.
69111         * lib/gl_linkedhash_list.c: Likewise.
69112         * lib/gl_list.c: Likewise.
69113         * lib/gl_oset.c: Likewise.
69114         * lib/gl_rbtree_list.c: Likewise.
69115         * lib/gl_rbtree_oset.c: Likewise.
69116         * lib/gl_rbtreehash_list.c: Likewise.
69117         * lib/imaxabs.c: Likewise.
69118         * lib/imaxdiv.c: Likewise.
69119         * lib/javacomp.c: Likewise.
69120         * lib/javaexec.c: Likewise.
69121         * lib/javaversion.c: Likewise.
69122         * lib/linebreak.c: Likewise.
69123         * lib/localcharset.c: Likewise.
69124         * lib/lock.c: Likewise.
69125         * lib/mbchar.c: Likewise.
69126         * lib/mbswidth.c: Likewise.
69127         * lib/mkdtemp.c: Likewise.
69128         * lib/pipe.c: Likewise.
69129         * lib/printf-args.c: Likewise.
69130         * lib/printf-parse.c: Likewise.
69131         * lib/progname.c: Likewise.
69132         * lib/progreloc.c: Likewise.
69133         * lib/readlink.c: Likewise.
69134         * lib/sh-quote.c: Likewise.
69135         * lib/stpcpy.c: Likewise.
69136         * lib/stpncpy.c: Likewise.
69137         * lib/strcasecmp.c: Likewise.
69138         * lib/strcasestr.c: Likewise.
69139         * lib/strcspn.c: Likewise.
69140         * lib/striconv.c: Likewise.
69141         * lib/strncasecmp.c: Likewise.
69142         * lib/strnlen1.c: Likewise.
69143         * lib/strstr.c: Likewise.
69144         * lib/strtok_r.c: Likewise.
69145         * lib/tls.c: Likewise.
69146         * lib/tmpdir.c: Likewise.
69147         * lib/unicodeio.c: Likewise.
69148         * lib/unsetenv.c: Likewise.
69149         * lib/vasnprintf.c: Likewise.
69150         * lib/vasprintf.c: Likewise.
69151         * lib/wait-process.c: Likewise.
69152         * lib/xallocsa.c: Likewise.
69153         * lib/xsetenv.c: Likewise.
69154         * lib/xstriconv.c: Likewise.
69155
69156 2006-09-13  Simon Josefsson  <jas@extundo.com>
69157
69158         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69159         that internally, suggested by Ralf Wildenhues
69160         <Ralf.Wildenhues@gmx.de>.
69161
69162 2006-09-13  Simon Josefsson  <jas@extundo.com>
69163
69164         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69165         @LIBOBJS@.
69166         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69167
69168 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69171         longer worry about uses that don't define HAVE_CONFIG_H.
69172         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69173         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69174         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69175         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69176         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69177         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69178         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69179         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69180         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69181         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69182         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69183         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69184         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69185         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69186         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69187         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69188         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69189         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69190         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69191         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69192         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69193         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69194         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69195         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69196         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69197         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69198         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69199         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69200         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69201         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69202         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69203         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69204         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69205         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69206         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69207         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69208         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69209         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69210         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69211         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69212         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69213         Likewise.
69214
69215 2006-09-13  Eric Blake  <ebb9@byu.net>
69216
69217         * lib/getopt.c: Fix typo in last commit.
69218
69219 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69220
69221         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69222         dgettext.
69223
69224 2006-09-12  Jim Meyering  <jim@meyering.net>
69225
69226         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69227         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69228         Reported by Nelson H. F. Beebe.
69229
69230 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69231
69232         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69233         program_invocation_name and program_invocation_short_name are
69234         initialized.
69235         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69236         and program_invocation_short_name to argp.h, so they are visible
69237         to user programs.
69238         * lib/argp.h: Likewise
69239
69240 2006-09-10  Bruno Haible  <bruno@clisp.org>
69241
69242         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69243         m4/inttypes_h.m4, m4/uintmax_t.m4.
69244
69245 2006-09-10  Bruno Haible  <bruno@clisp.org>
69246
69247         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69248         gl_AC_TYPE_UINTMAX_T.
69249
69250 2006-09-10  Bruno Haible  <bruno@clisp.org>
69251
69252         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69253
69254 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69255
69256         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69257         convention.  Text proposed by Bruno Haible.
69258         (struct argp_option): Document the use of N_() wrappers.
69259
69260         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69261         '\v', and translate the two parts separately, instead of feeding
69262         the whole string to gettext.  This allows to exclude
69263         '\v' from the strings visible to the translator by writing doc
69264         strings as N_("..") "\v" N_("..").
69265
69266 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69267
69268         * config/srclist.txt: Undo latest change; the bug was fixed.
69269
69270 2006-09-09  Bruno Haible  <bruno@clisp.org>
69271
69272         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69273         assignments if building a library without libtool.
69274         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69275         in func_emit_lib_Makefile_am.
69276         (func_import): When building a static library libfoo.a, arrange to
69277         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69278         (func_create_testdir): Likewise.
69279         * modules/gc (configure.ac, Makefile.am): If building statically,
69280         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69281         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69282         * modules/striconv (configure.ac, Makefile.am): Likewise.
69283         Based on a suggestion by Ralf Wildenhues.
69284
69285 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69286
69287         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69288         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69289         Also:
69290
69291         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69292         Add year_2050_test to catch glibc bug 2821
69293         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69294
69295         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69296         Prefer #ifdef to #if.
69297
69298         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69299         Return from 'main' instead of calling 'exit'.
69300
69301 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69302
69303         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69304         returned the maximum time_t value rather than (time_t) -1.
69305         Problem originally reported by William Bardwell
69306         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69307
69308         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69309         Moved to here ...
69310         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69311         ... from here.
69312
69313 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69316         2821 is fixed.
69317
69318 2006-09-08  Jim Meyering  <jim@meyering.net>
69319
69320         Don't make generated files read-only.  That would bother too many
69321         people.  However, do retain the ability to work when targets are
69322         read-only: remove the destination and temporary files before writing
69323         them (when generated via sed or echo), or by using the -f option for
69324         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69325         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69326         * modules/byteswap, modules/configmake, modules/fcntl:
69327         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69328         * modules/localcharset, modules/netinet_in, modules/poll:
69329         * modules/stdbool, modules/stdint, modules/sys_select:
69330         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69331
69332 2006-09-08  Jim Meyering  <jim@meyering.net>
69333
69334         Avoid new build failure on FreeBSD 6.0.
69335         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69336         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69337         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69338
69339 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69340
69341         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69342
69343 2006-09-07  Jim Meyering  <jim@meyering.net>
69344
69345         Fix global typo in last change: use chmod u-w, not chmod u-x.
69346         Spotted by Paul Eggert and Bruce Korb.
69347         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69348         * modules/byteswap, modules/configmake, modules/fcntl:
69349         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69350         * modules/localcharset, modules/netinet_in, modules/poll:
69351         * modules/stdbool, modules/stdint, modules/sys_select:
69352         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69353
69354 2006-09-06  Jim Meyering  <jim@meyering.net>
69355
69356         Make generated files be read-only.
69357         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69358         Ensure that each generated file is now read-only.
69359         * modules/argz: Likewise.
69360         * modules/arpa_inet: Likewise.
69361         * modules/byteswap: Likewise.
69362         * modules/configmake: Likewise.
69363         * modules/fcntl: Likewise.
69364         * modules/fnmatch: Likewise.
69365         * modules/getopt: Likewise.
69366         * modules/glob: Likewise.
69367         * modules/inttypes: Likewise.
69368         * modules/netinet_in: Likewise.
69369         * modules/poll: Likewise.
69370         * modules/stdbool: Likewise.
69371         * modules/stdint: Likewise.
69372         * modules/sys_select: Likewise.
69373         * modules/sys_socket: Likewise.
69374         * modules/sys_stat: Likewise.
69375         * modules/sysexits: Likewise.
69376         * modules/localcharset: Same as above, but continue using temporary
69377         file named "t-$@" (why different?) rather than the "$@-t" used
69378         everywhere else.
69379
69380         * modules/sysexits (Makefile.am): Replace literal occurrences
69381         of "sysexit.h" more readable, and more consistent, "$@".
69382
69383 2006-09-06  Bruno Haible  <bruno@clisp.org>
69384
69385         * modules/striconv: New file.
69386         * modules/xstriconv: New file.
69387         * MODULES.html.sh (Internationalization functions): Add striconv,
69388         xstriconv.
69389
69390 2006-09-06  Bruno Haible  <bruno@clisp.org>
69391
69392         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69393         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69394         not using libtool correctly.
69395
69396 2006-09-06  Bruno Haible  <bruno@clisp.org>
69397
69398         * lib/striconv.h: New file.
69399         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69400         iconvstring.c.
69401         * lib/xstriconv.h: New file.
69402         * lib/xstriconv.c: New file.
69403
69404 2006-09-06  Bruno Haible  <bruno@clisp.org>
69405
69406         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69407         lib_..._LDFLAGS.
69408
69409 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69410
69411         * lib/argz_.h: Sync from Libtool.
69412
69413         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69414                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69415
69416         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69417
69418 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69419
69420         * modules/trim: New file.
69421
69422 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69423
69424         * lib/trim.h: New file.
69425         * lib/trim.c: New file.
69426
69427 2006-09-05  Bruno Haible  <bruno@clisp.org>
69428
69429         * MODULES.html.sh (String handling): Add trim.
69430
69431 2006-09-04  Karl Berry  <karl@gnu.org>
69432
69433         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69434         until next release.
69435
69436 2006-09-03  Bruno Haible  <bruno@clisp.org>
69437
69438         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69439         correctly.
69440
69441 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69442
69443         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69444         not gl_GETLOADAVG.  Omit unneeded semicolons.
69445         Problems reported by Ralf Wildenhues in
69446         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69447         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69448         at the end, which is the usual gnulib style.
69449
69450         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69451         of doing all the work ourselves.
69452         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69453         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69454
69455 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69456
69457         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69458         Problem reported by Ralf Wildenhues in
69459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69460
69461         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69462         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69463
69464 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69467         yesterday's patch by changing test -n to test -z.
69468
69469 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69472         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69473         the former is now obsolescent.
69474
69475         * modules/chdir-long (Depends-on): Add fcntl.
69476
69477 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69480         obsolescent, and programs should use gnulib instead.
69481         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69482         but with prefixes changed.
69483
69484 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69487         or stdbool.h, because they might not exist while configuring.
69488
69489         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69490         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69491         does that for us.
69492         (O_DIRECTORY): Remove.
69493
69494 2006-08-31  Eric Blake  <ebb9@byu.net>
69495
69496         * gnulib-tool: Don't let emacs change spaces to TAB.
69497
69498 2006-08-31  Bruno Haible  <bruno@clisp.org>
69499
69500         * gnulib-tool: When calling func_import more than once, do it in a
69501         subshell.
69502         Reported by Eric Blake <ebb9@byu.net>.
69503
69504 2006-08-31  Bruno Haible  <bruno@clisp.org>
69505
69506         * gnulib-tool (nl): Remove variable.
69507         (sed_transform_lib_file): Use more robust test for config-h module.
69508         (func_import): Fix typo in 2006-08-25 patch.
69509
69510 2006-08-31  Bruno Haible  <bruno@clisp.org>
69511
69512         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69513         specified, augment Makefile.am variables instead of assigning them.
69514
69515 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69516
69517         Work around a bug in both the Linux and SunOS 64-bit kernels:
69518         nanosleep mishandles sleeps for longer than 2**31 seconds.
69519         Problem reported by Frank v Waveren in
69520         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69521         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69522         Check for nanosleep bug.
69523         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69524
69525 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         Work around a bug in both the Linux and SunOS 64-bit kernels:
69528         nanosleep mishandles sleeps for longer than 2**31 seconds.
69529         Problem reported by Frank v Waveren in
69530         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69531         * lib/nanosleep.c (BILLION): New constant.
69532         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69533         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69534         implementation.
69535
69536 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69537
69538         * modules/nanosleep (Depends-on): Add gettime.
69539
69540 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69541         and Simon Josefsson  <jas@extundo.com>
69542         and Oskar Liljeblad  <oskar@osk.mine.nu>
69543
69544         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69545         * gnulib-tool (func_import): New license type 'unmodifiable license
69546         text'.
69547         * modules/fdl: Use it.  Longer description.
69548         * module/gpl, module/lgpl: New files.
69549
69550 2006-08-30  Jim Meyering  <jim@meyering.net>
69551
69552         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69553         shadowing the parameter.
69554
69555 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69556
69557         Sync from Libtool:
69558
69559         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69560
69561         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69562         sharing with gnulib.  Report by Eric Blake.
69563
69564 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69565
69566         * modules/isapipe: New file.
69567         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69568
69569 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * modules/configmake (Makefile.am): Add a comment, and omit
69572         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69573         by Bruno Haible.
69574
69575 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69576
69577         * m4/isapipe.m4: New file.
69578
69579 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69580
69581         * lib/isapipe.c, lib/isapipe.h: New files.
69582
69583 2006-08-29  Jim Meyering  <jim@meyering.net>
69584
69585         * modules/configmake (Makefile.am): Make configmake.h depend on
69586         Makefile.  Otherwise, a stale configmake.h could hang around.
69587
69588 2006-08-29  Eric Blake  <ebb9@byu.net>
69589
69590         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69591         resolution of upstream bug 3044.
69592
69593 2006-08-29  Bruno Haible  <bruno@clisp.org>
69594
69595         * modules/localcharset (Depends-on): Add configmake.
69596         (Makefile.am): Remove setting of LIBDIR through DEFS.
69597
69598 2006-08-29  Bruno Haible  <bruno@clisp.org>
69599
69600         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69601         defined.
69602
69603 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69604
69605         * modules/fcntl: New file.
69606         * modules/chdir-safer (Depends-on): Add fcntl.
69607         * modules/fts: Likewise.
69608         * modules/mkdir-p: Likewise.
69609
69610         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69611         This undoes the most recent change, since we're now addressing the
69612         problem in a different way.
69613
69614         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69615         into output, since the output might be called Makefile.am even
69616         if $makefile_name is something different.
69617         (func_import): Use $makefile_am rather than
69618         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69619         empty.
69620
69621         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69622
69623 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69626         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69627         recent change to stdint.m4, since we're now addressing the problem in a
69628         different way.
69629
69630 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * m4/fcntl_h.m4: New file.
69633
69634 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69635
69636         * lib/fcntl_.h: New file.
69637         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69638         the fcntl module.
69639         * lib/dirchownmod.c: Likewise.
69640         * lib/fts.c: Likewise.
69641
69642         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69643         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69644         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69645         just before including <inttypes.h>, to avoid circular inclusion.
69646
69647 2006-08-28  Jim Meyering  <jim@meyering.net>
69648
69649         * doc/visibility.texi: Actually read and correct the grammar of the
69650         sentence affected by yesterday's change.
69651
69652 2006-08-28  Eric Blake  <ebb9@byu.net>
69653
69654         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69655         needs wrapper.
69656
69657 2006-08-28  Eric Blake  <ebb9@byu.net>
69658
69659         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69660
69661 2006-08-28  Eric Blake  <ebb9@byu.net>
69662
69663         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69664
69665 2006-08-28  Bruno Haible  <bruno@clisp.org>
69666
69667         * modules/c-strstr: New file, from GNU gettext.
69668         * MODULES.html.sh (String handling): Add c-strstr.
69669
69670 2006-08-28  Bruno Haible  <bruno@clisp.org>
69671
69672         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69673         macros.
69674         Reported by Eric Blake.
69675
69676 2006-08-28  Bruno Haible  <bruno@clisp.org>
69677
69678         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69679         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69680         * lib/vasprintf.c: Include errno.h, limits.h.
69681         (EOVERFLOW): New fallback definition.
69682         (vasprintf): Test here whether the string length is > INT_MAX.
69683         * lib/vsnprintf.c: Include errno.h, limits.h.
69684         (EOVERFLOW): New fallback definition.
69685         (vsnprintf): Fix bug when generated string was too long for the buffer.
69686         Test here whether the string length is > INT_MAX.
69687
69688 2006-08-28  Bruno Haible  <bruno@clisp.org>
69689
69690         * lib/inttypes_.h (SCNX*): Remove definitions.
69691         Reported by Eric Blake.
69692
69693 2006-08-28  Bruno Haible  <bruno@clisp.org>
69694
69695         * lib/c-strstr.h: New file, from GNU gettext.
69696         * lib/c-strstr.c: New file, from GNU gettext.
69697
69698 2006-08-28  Bruno Haible  <bruno@clisp.org>
69699
69700         * gnulib-tool: Reorder some statements.
69701
69702 2006-08-28  Bruno Haible  <bruno@clisp.org>
69703
69704         * gnulib-tool: New option --makefile-name.
69705         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69706         $makefile_name.
69707         (func_import): Write $makefile_name to the cache file, and read it from
69708         there unless explicitly specified. Use $makefile_name as file name
69709         instead of Makefile.am. Adjust the recommendations accordingly.
69710
69711 2006-08-28  Bruno Haible  <bruno@clisp.org>
69712
69713         * gnulib-tool (func_verify_module): Check against misapplying patch.
69714
69715 2006-08-28  Bruno Haible  <bruno@clisp.org>
69716
69717         * gnulib-tool (func_relativize, func_relconcat): New functions.
69718         Give an error if --local-dir is given with --update.
69719         Remove trailing slashes from $local_gnulib_dir.
69720         (func_import): Store the relativized $local_gnulib_dir in
69721         gnulib-cache.m4, and read it from there if not specified explicitly.
69722
69723 2006-08-28  Bruno Haible  <bruno@clisp.org>
69724
69725         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69726         is the current directory. Respect also $local_gnulib_dir.
69727
69728 2006-08-28  Bruno Haible  <bruno@clisp.org>
69729             Simon Josefsson  <jas@extundo.com>
69730
69731         BeOS portability.
69732         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69733
69734 2006-08-27  Jim Meyering  <jim@meyering.net>
69735
69736         * doc/visibility.texi: Remove duplicate word: "pointer".
69737
69738 2006-08-26  Bruno Haible  <bruno@clisp.org>
69739
69740         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69741         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69742         (Makefile.am): Create inttypes.h from inttypes_.h.
69743         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69744
69745         * modules/imaxabs: New file.
69746
69747         * modules/imaxdiv: New file.
69748
69749 2006-08-26  Bruno Haible  <bruno@clisp.org>
69750
69751         * m4/inttypes.m4: New file.
69752         * m4/_inttypes_h.m4: Remove file.
69753         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69754         PRI_MACROS_BROKEN.
69755         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69756
69757         * m4/imaxabs.m4: New file.
69758
69759         * m4/imaxdiv.m4: New file.
69760
69761 2006-08-26  Bruno Haible  <bruno@clisp.org>
69762
69763         * lib/inttypes_.h: New file.
69764         * lib/inttypes.h: Remove file.
69765         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69766
69767         * lib/imaxabs.c: New file.
69768
69769         * lib/imaxdiv.c: New file.
69770
69771 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69772
69773         New config-h module, so that "make" output needn't be cluttered
69774         by -DHAVE_CONFIG_H.
69775         * MODULES.html.sh (Support for building libraries and executables):
69776         Add config-h.
69777         * modules/config-h: New file.
69778         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69779         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69780         the config-h module is used.
69781
69782         New configmake module, so that "make" output needn't be cluttered
69783         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69784         * MODULES.html.sh (Support for building libraries and executables):
69785         Add configmake.
69786         * modules/configmake: New file.
69787
69788 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * m4/config-h.m4: New file.
69791
69792 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * config/srclist.txt: Add elisp-comp.
69795
69796 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         * MODULES.html.sh (Support for building libraries and executables):
69799         Add elisp-comp.
69800         * build-aux/elisp-comp: New file.
69801         * modules/elisp-comp: New file.
69802
69803 2006-08-24  Bruno Haible  <bruno@clisp.org>
69804
69805         * gnulib-tool (func_create_testdir): Use non-default values of
69806         sourcebase and m4base.
69807
69808 2006-08-24  Bruno Haible  <bruno@clisp.org>
69809
69810         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69811         HTML structure.
69812
69813 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69814
69815         * modules/openat (Depends-on): Add lchown.
69816
69817 2006-08-23  Bruno Haible  <bruno@clisp.org>
69818
69819         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69820         of gl_LOCK_EARLY instead of gl_LOCK.
69821
69822 2006-08-23  Bruno Haible  <bruno@clisp.org>
69823
69824         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69825         on OSF/1 to no.
69826         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69827
69828 2006-08-23  Bruno Haible  <bruno@clisp.org>
69829
69830         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69831         as unusable.
69832
69833         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69834         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69835         (gl_LOCK): New macro.
69836
69837 2006-08-22  Simon Josefsson  <jas@extundo.com>
69838
69839         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69840         to md5 module.
69841
69842 2006-08-22  Simon Josefsson  <jas@extundo.com>
69843
69844         * MODULES.html.sh: Add "Support for maintaining and release
69845         projects".
69846
69847         * build-aux/gnupload: New file, from coreutils.
69848
69849 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         Avoid the need for AC_LIBSOURCES in m4 macros.
69852         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69853         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69854         * modules/check-version (EXTRA_DIST): Add check-version.h.
69855         * modules/crc (EXTRA_DIST): Add crc.h.
69856         * modules/des (EXTRA_DIST): Add des.h.
69857         * modules/gc (EXTRA_DIST): Add gc.h.
69858         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69859         * modules/getline (EXTRA_DIST): Add getline.h.
69860         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69861         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69862         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69863         * modules/md2 (EXTRA_DIST): Add md2.h.
69864         * modules/md4 (EXTRA_DIST): Add md4.h.
69865         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69866         * modules/read-file (EXTRA_DIST): Add read-file.h.
69867         * modules/readline (EXTRA_DIST): Add readline.h.
69868         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69869         rijndael-api-fst.h.
69870
69871 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * m4/rijndael.m4 (gl_ARCFOUR):
69874         * m4/arctwo.m4 (gl_ARCTWO):
69875         * m4/check-version.m4 (gl_CHECK_VERSION):
69876         * m4/crc.m4 (gl_CRC):
69877         * m4/des.m4 (gl_DES):
69878         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69879         * m4/gc.m4 (gl_GC):
69880         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69881         * m4/getline.m4 (gl_FUNC_GETLINE):
69882         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69883         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69884         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69885         * m4/md2.m4 (gl_MD2):
69886         * m4/md4.m4 (gl_MD4):
69887         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69888         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69889         * m4/readline.m4 (gl_FUNC_READLINE):
69890         * m4/rijndael.m4 (gl_RIJNDAEL):
69891         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69892         to get the necessary .h files and whatnot.
69893
69894 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69895
69896         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69897         gnulib rather than the other way around.
69898         * config/srclistvars.sh (COREUTILS): Remove.
69899
69900 2006-08-22  Jim Meyering  <jim@meyering.net>
69901
69902         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69903
69904         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69905
69906 2006-08-22  Eric Blake  <ebb9@byu.net>
69907
69908         * modules/regexprops-generic: New file.
69909         * MODULES.html.sh (Support for building documentation): List it.
69910
69911 2006-08-22  Eric Blake  <ebb9@byu.net>
69912
69913         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69914         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69916         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69917
69918 2006-08-22  Bruno Haible  <bruno@clisp.org>
69919
69920         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69921         and lib_LTLIBRARIES like the other lib_* variables.
69922
69923 2006-08-22  Bruno Haible  <bruno@clisp.org>
69924
69925         * build-aux/x-to-1.in: New file, from GNU gettext.
69926
69927 2006-08-22  Bruno Haible  <bruno@clisp.org>
69928
69929         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69930         <utmpx.h> exists.
69931
69932 2006-08-22  Bruno Haible  <bruno@clisp.org>
69933
69934         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69935         <utmpx.h> exists.
69936
69937 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         BeOS portability.
69940         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69941         exist.
69942         Problem reported by Bruno Haible.
69943
69944 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69945
69946         Avoid the need for AC_LIBSOURCES in m4 macros.
69947         * modules/acl (EXTRA_DIST): Add acl.h.
69948         * modules/argmatch (Files): Add m4/argmatch.m4.
69949         (configure.ac): Add gl_ARGMATCH.
69950         (EXTRA_DIST): Renamed from lib_SOURCES, for
69951         consistency with the other modules.  Remove argmatch.c.
69952         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69953         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69954         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69955         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69956         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69957         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69958         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69959         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69960         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69961         * modules/closeout (EXTRA_DIST): Add closeout.h.
69962         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69963         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69964         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69965         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69966         dirname.h; remove basename.c and stripslash.c.
69967         * modules/exclude (EXTRA_DIST): Add exclude.h.
69968         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69969         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69970         * modules/file-type (EXTRA_DIST): Add file-type.h.
69971         * modules/filemode (EXTRA_DIST): Add filemode.h.
69972         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69973         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69974         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69975         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69976         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69977         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69978         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69979         * modules/getdate (EXTRA_DIST): Add getdate.c.
69980         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69981         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69982         * modules/getpass (EXTRA_DIST): Add getpass.h.
69983         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69984         * modules/group-member (EXTRA_DIST): Add group-member.h.
69985         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69986         * modules/hash (EXTRA_DIST): Add hash.h.
69987         * modules/human (EXTRA_DIST): Add human.h.
69988         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69989         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69990         * modules/lchown (EXTRA_DIST): Add lchown.h.
69991         * modules/long-options (EXTRA_DIST): Add long-options.h.
69992         * modules/lstat (EXTRA_DIST): Add lstat.h.
69993         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69994         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69995         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69996         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69997         * modules/memxor (EXTRA_DIST): Add memxor.h.
69998         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69999         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70000         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70001         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70002         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70003         * modules/physmem (EXTRA_DIST): Add physmem.h.
70004         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70005         * modules/posixver (EXTRA_DIST): Add posixver.h.
70006         * modules/quote (EXTRA_DIST): Add quote.h.
70007         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70008         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70009         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70010         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70011         regex_internal.h regexec.c.
70012         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70013         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70014         * modules/same (EXTRA_DIST): Add same.h.
70015         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70016         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70017         * modules/savedir (EXTRA_DIST): Add savedir.h.
70018         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70019         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70020         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70021         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70022         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70023         * modules/strdup (EXTRA_DIST): Add strdup.h.
70024         * modules/strftime (EXTRA_DIST): Add strftime.h.
70025         * modules/strndup (EXTRA_DIST): Add strndup.h.
70026         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70027         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70028         * modules/time_r (EXTRA_DIST): Add time_r.h.
70029         * modules/timespec (EXTRA_DIST): Add timespec.h.
70030         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70031         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70032         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70033         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70034         * modules/userspec (EXTRA_DIST): Add userspec.h.
70035         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70036         * modules/utimens (EXTRA_DIST): Add utimens.h.
70037         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70038         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70039         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70040         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70041         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70042         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70043         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70044         * modules/yesno (EXTRA_DIST): Add yesno.h.
70045
70046 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70049
70050         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70051         * m4/dev-ino.m4, same-inode.m4: Remove.
70052
70053         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70054         * m4/acl.m4 (AC_FUNC_ACL):
70055         * m4/backupfile.m4 (gl_BACKUPFILE):
70056         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70057         * m4/canon-host.m4 (gl_CANON_HOST):
70058         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70059         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70060         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70061         * m4/cloexec.m4 (gl_CLOEXEC):
70062         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70063         * m4/closeout.m4 (gl_CLOSEOUT):
70064         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70065         * m4/dirname.m4 (gl_DIRNAME):
70066         * m4/exclude.m4 (gl_EXCLUDE):
70067         * m4/exitfail.m4 (gl_EXITFAIL):
70068         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70069         * m4/file-type.m4 (gl_FILE_TYPE):
70070         * m4/filemode.m4 (gl_FILEMODE):
70071         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70072         * m4/fpending.m4 (gl_FUNC_FPENDING):
70073         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70074         * m4/fts.m4 (gl_FUNC_FTS):
70075         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70076         * m4/getdate.m4 (gl_GETDATE):
70077         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70078         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70079         * m4/getpass.m4 (gl_FUNC_GETPASS):
70080         * m4/gettime.m4 (gl_GETTIME):
70081         * m4/getugroups.m4 (gl_GETUGROUPS):
70082         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70083         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70084         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70085         * m4/hash.m4 (gl_HASH):
70086         * m4/idcache.m4 (gl_IDCACHE):
70087         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70088         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70089         * m4/long-options.m4 (gl_LONG_OPTIONS):
70090         * m4/lstat.m4 (gl_FUNC_LSTAT):
70091         * m4/md5.m4 (gl_MD5):
70092         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70093         * m4/memcoll.m4 (gl_MEMCOLL):
70094         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70095         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70096         * m4/memxor.m4 (gl_MEMXOR):
70097         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70098         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70099         * m4/modechange.m4 (gl_MODECHANGE):
70100         * m4/mountlist.m4 (gl_MOUNTLIST):
70101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70102         * m4/openat.m4 (gl_FUNC_OPENAT):
70103         * m4/pathmax.m4 (gl_PATHMAX):
70104         * m4/physmem.m4 (gl_PHYSMEM):
70105         * m4/posixtm.m4 (gl_POSIXTM):
70106         * m4/posixver.m4 (gl_POSIXVER):
70107         * m4/quote.m4 (gl_QUOTE):
70108         * m4/quotearg.m4 (gl_QUOTEARG):
70109         * m4/readtokens.m4 (gl_READTOKENS):
70110         * m4/readutmp.m4 (gl_READUTMP):
70111         * m4/regex.m4 (gl_REGEX):
70112         * m4/safe-read.m4 (gl_SAFE_READ):
70113         * m4/safe-write.m4 (gl_SAFE_WRITE):
70114         * m4/same.m4 (gl_SAME):
70115         * m4/save-cwd.m4 (gl_SAVE_CWD):
70116         * m4/savedir.m4 (gl_SAVEDIR):
70117         * m4/settime.m4 (gl_SETTIME):
70118         * m4/sha1.m4 (gl_SHA1):
70119         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70120         * m4/stat-macros.m4 (gl_STAT_MACROS):
70121         * m4/stat-time.m4 (gl_STAT_TIME):
70122         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70123         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70124         * m4/strdup.m4 (gl_FUNC_STRDUP):
70125         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70126         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70127         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70128         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70129         * m4/time_r.m4 (gl_TIME_R):
70130         * m4/timespec.m4 (gl_TIMESPEC):
70131         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70132         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70133         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70134         * m4/userspec.m4 (gl_USERSPEC):
70135         * m4/utimecmp.m4 (gl_UTIMECMP):
70136         * m4/utimens.m4 (gl_UTIMENS):
70137         * m4/xalloc.m4 (gl_XALLOC):
70138         * m4/xgetcwd.m4 (gl_XGETCWD):
70139         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70140         * m4/xreadlink.m4 (gl_XREADLINK):
70141         * m4/xstrtod.m4 (gl_XSTRTOD):
70142         * m4/yesno.m4 (gl_YESNO):
70143         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70144         to get the necessary .h files and whatnot.
70145
70146 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70147             Bruno Haible  <bruno@clisp.org>
70148
70149         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70150         /bin/sh understanding of '!' conditional negation.
70151
70152 2006-08-21  Jim Meyering  <jim@meyering.net>
70153
70154         * modules/openat (Depends-on): Really alphabetize.
70155
70156         * modules/acl (Depends-on): Add error and quote.
70157
70158         * check-module (find_included_lib_files): Add at-func.c to the
70159         ok-to-include-more-than-once white list.
70160
70161         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70162
70163 2006-08-21  Bruno Haible  <bruno@clisp.org>
70164
70165         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70166         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70167         Reported by Martin Lambers <marlam@marlam.de>.
70168
70169 2006-08-21  Bruno Haible  <bruno@clisp.org>
70170
70171         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70172         specify an installation location, don't emit a noinst_LIBRARIES or
70173         noinst_LTLIBRARIES assignment.
70174
70175 2006-08-21  Bruno Haible  <bruno@clisp.org>
70176
70177         BeOS portability.
70178         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70179         BeOS has mbrtowc() but no <wctype.h>.
70180
70181 2006-08-21  Bruno Haible  <bruno@clisp.org>
70182
70183         BeOS portability.
70184         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70185         exist.
70186
70187 2006-08-21  Bruno Haible  <bruno@clisp.org>
70188
70189         BeOS portability.
70190         * lib/mbchar.h: Include <wctype.h> only if it exists.
70191
70192 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         Remove files that are no longer needed by their respective modules.
70195         * m4/obstack.m4: Remove.
70196         * m4/strerror_r.m4: Remove.
70197         * m4/uint32_t.m4: Remove.
70198         * m4/uintptr_t.m4: Remove.
70199         * m4/ullong_max.m4: Remove.
70200         * m4/xstrtoimax.m4: Remove.
70201         * m4/xstrtoumax.m4: Remove.
70202
70203         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70204         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70205         dependencies now capture this.
70206
70207         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70208         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70209         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70210         * m4/human.m4 (gl_HUMAN): Likewise.
70211         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70212         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70213
70214         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70215
70216         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70217         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70218         stdint.
70219         * m4/human.m4 (gl_HUMAN): Likewise.
70220         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70221         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70222         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70223         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70224         * m4/xstrtol (gl_XSTRTOL): Likewise.
70225
70226         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70227         AC_TYPE_LONG_LONG_INT.
70228         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70229         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70230         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70231         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70232
70233         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70234         on stdbool.
70235
70236         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70237         (gl_PREREQ_XSTRTOUL): Remove.
70238
70239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70240
70241         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70242         mode.
70243
70244 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70245
70246         Add and change modules to make it easier for coreutils to use
70247         gnulib-tool.
70248         * modules/backupfile (Files): Remove m4/d-ino.m4.
70249         (Depends-on): Add d-ino.
70250         * modules/cycle-check (Depends-on): Add stdint.
70251         (lib_SOURCES): Add cycle-check.h.
70252         * modules/d-ino: New module.
70253         * modules/d-type: New module.
70254         * modules/error (Files): Remove m4/strerror_r.m4.
70255         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70256         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70257         m4/inttypes_h.m4, m4/uintmax_t.m4.
70258         (Depends-on): Add stdint.
70259         (lib_SOURCES): Add fsusage.h.
70260         * modules/getcwd (Files): Remove d-ino.m4.
70261         (Depends-on): Add d-ino.
70262         * modules/getndelim2 (Depends-on): Add stdint.
70263         * modules/glob (Files): Remove m4/d-type.m4.
70264         (Depends-on): Add d-type.
70265         * modules/host-os: New module.
70266         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70267         m4/inttypes_h.m4, m4/uintmax_t.m4.
70268         * Depends-on: Add stdint.
70269         (lib_SOURCES): Add human.h.
70270         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70271         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70272         m4/uintmax_t.m4, m4/ulonglong.m4.
70273         (Depends-on): Add stdint.
70274         (EXTRA_DIST): Add inttostr.h.
70275         * modules/lchmod: New module.
70276         * modules/link-follow: New module.
70277         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70278         (Depends-on): Add lchmod.
70279         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70280         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70281         (Depends-on): Add stdint.
70282         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70283         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70284         (Depends-on): Add stdint.
70285         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70286         * modules/perl: New module.
70287         * modules/regex (Depends-on): Add stdint.
70288         * modules/rmdir-errno: New module.
70289         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70290         m4/intmax_t.m4.
70291         (Depends-on): Add stdint.
70292         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70293         m4/uintmax_t.m4.
70294         (Depends-on): Add stdint.
70295         * modules/unlink-busy: New module.
70296         * modules/utimecmp (Depends-on): Add stdint.
70297         * modules/uptime: New module.
70298         * modules/winsz-ioctl: New module.
70299         * modules/winsz-termios: New module.
70300         * modules/xnanosleep (Depends-on): Add nanosleep.
70301         * modules/ullong_max: Remove.
70302         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70303         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70304         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70305         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70306         (Depends-on): Add inttypes.
70307         (lib_SOURCES): Add xstrtol.h.
70308         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70309         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70310         * MODULES.html.sh: Move 'assert' into the assert section.
70311         Move 'dummy' into the linking section.
70312         Remove ullong_max.
70313         Add section for compatibility checks for POSIX:2001 functions,
70314         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70315         winsz-ioctl, and winsz-termios into it.
70316         Add lchmod.
70317         Add top-level Misc section and put host-os, perl, and uptime
70318         into it.
70319
70320 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70321
70322         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70323         now assume the stdint module.  Do not include inttypes.h.
70324         * lib/fsusage.h: Likewise.
70325         * lib/getndelim2.c: Likewise.
70326         * lib/human.h: Likewise.
70327         * lib/inttostr.h: Likewise.
70328         * lib/obstack.c: Likewise.
70329         * lib/regex_internal.h: Likewise.
70330         * lib/tempname.c: Likewise.
70331         * lib/utimecmp.c: Likewise.
70332         * lib/xstrtol.h: Likewise.
70333
70334         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70335
70336         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70337         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70338         * lib/xtime.h: Likewise.
70339
70340 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70341
70342         * modules/openat (Files): Add lib/fchmodat.c.
70343         Fixes problem reported by Jay Youngman.
70344
70345 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70348         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70349
70350 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70351             Bruno Haible  <bruno@clisp.org>
70352
70353         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70354         and is a script that invokes bison. Tighten the code. Add comments.
70355
70356 2006-08-18  Jim Meyering  <jim@meyering.net>
70357
70358         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70359         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70360         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70361         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70362
70363 2006-08-18  Bruno Haible  <bruno@clisp.org>
70364
70365         * modules/bison-i18n: New file.
70366         * MODULES.html.sh (Internationalization functions): Add it.
70367
70368 2006-08-18  Bruno Haible  <bruno@clisp.org>
70369
70370         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70371         sys/statvfs.h. When getmntinfo was found, check its declaration and
70372         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70373
70374 2006-08-18  Bruno Haible  <bruno@clisp.org>
70375
70376         * m4/bison-i18n.m4: New file, from bison.
70377
70378 2006-08-18  Bruno Haible  <bruno@clisp.org>
70379
70380         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70381         (ME_DUMMY): Treat "kernfs" as a dummy.
70382         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70383
70384 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70385
70386         Update from coreutils.
70387
70388         2006-08-15  Jim Meyering  <jim@meyering.net>
70389
70390         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70391
70392         2006-01-17  Jim Meyering  <jim@meyering.net>
70393
70394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70395
70396         2006-01-11  Jim Meyering  <jim@meyering.net>
70397
70398         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70399         Check for the lchmod function.
70400
70401 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         Update from coreutils.
70404
70405         * lib/__fpending.h: Add copyright notice.
70406         * lib/fprintftime.h: Likewise.
70407         * lib/savedir.c: Use (C) in copyright notice.
70408         * lib/savedir.h: Likewise.
70409
70410         2006-08-15  Jim Meyering  <jim@meyering.net>
70411
70412         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70413         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70414         in support of the EXPECTED_ERRNO macro.
70415         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70416         definitions.  Instead, define the appropriate symbols and include
70417         "at-func.c".
70418         * lib/mkdirat.c (mkdirat): Likewise.
70419         * lib/fchmodat.c (fchmodat): Likewise.
70420         (ENOSYS): Remove definition.
70421         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70422         it.  Don't include "unistd--.h" -- it wasn't ever used.
70423
70424         2006-01-17  Jim Meyering  <jim@meyering.net>
70425
70426         Rewrite fts.c not to change the current working directory,
70427         by using openat, fstatat, fdopendir, etc..
70428
70429         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70430         (HAVE_OPENAT_SUPPORT): Define.
70431         [_LIBC] (fchdir): Don't undef or define; no longer used.
70432         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70433         Now, this `function' always succeeds, and consumes its file descriptor
70434         parameter -- so callers must not close such FDs.  Update callers.
70435         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70436         (diropen): Add parameter, SP.  Adjust all callers.
70437         Implement using diropen_fd, rather than open.
70438         (fts_open): Initialize new member, fts_cwd_fd.
70439         Remove fts_rft-setting code.
70440         (fts_close): Close fts_cwd_fd, if necessary.
70441         (__opendir2): Define in terms of opendir or opendirat,
70442         depending on whether the FST_NOCHDIR flag is set.
70443         (fts_build): Since fts_safe_changedir consumes its FD, and since
70444         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70445         and close the dup'd file descriptor upon failure.
70446         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70447         (fts_safe_changedir): Tweak semantics to reflect that this function
70448         now calls cwd_advance_fd and hence consumes its FD argument.
70449         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70450         [struct FTS] (fts_rft): Remove now-unused member.
70451         [struct FTS] (fts_cycle.state): Improve comment.
70452
70453         * lib/openat.c (openat_needs_fchdir): New function.
70454         * lib/openat.h (openat_needs_fchdir): Declare it.
70455
70456 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70459         Problem and fix reported by Pádraig Brady in
70460         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70461
70462 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70465
70466 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70467
70468         * lib/memcoll.c (memcoll): Optimize for the common case where the
70469         arguments are bytewise equal.
70470
70471 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         * doc/regexprops-generic.texi: Add a copyright notice.
70474
70475 2006-08-15  Bruno Haible  <bruno@clisp.org>
70476
70477         * modules/tmpdir (License): Change to LGPL.
70478
70479 2006-08-15  Bruno Haible  <bruno@clisp.org>
70480
70481         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70482         module.
70483
70484 2006-08-14  Simon Josefsson  <jas@extundo.com>
70485
70486         * config/srclist.txt: Add gnupload.
70487
70488 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         Change copyright notice from LGPL 2 to GPL 2, since that's the
70491         standard form used in the gnulib repository.
70492         * tests/test-lock.c: Likewise.
70493         * tests/test-stdint.c: Likewise.
70494         * tests/test-tls.c: Likewise.
70495
70496         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70497         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70498         Add copyright notice.
70499
70500         * check-module: Add copyright notice.  Output a copyright
70501         notice if "--version" is specified.
70502         * modules/COPYING: New file.
70503         * tests/test-getaddrinfo.c: Add copyright notice.
70504         * tests/test-verify.c: Likewise.
70505
70506 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70507
70508         Change copyright notice from LGPL 2 to GPL 2, since that's the
70509         standard form used in the gnulib repository.
70510         * lib/lock.c: LGPL -> GPL.
70511         * lib/lock.h: Likewise.
70512         * lib/strnlen1.c: Likewise.
70513         * lib/strnlen1.h: Likewise.
70514         * lib/tls.c: Likewise.
70515         * lib/tls.h: Likewise.
70516         * lib/tmpdir.c: Likewise.
70517
70518         * lib/TODO: Remove; this belongs only in coreutils.
70519
70520 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         Add copyright notices to long-enough files that lack them, since
70523         otherwise the files aren't clearly free.  Use the same notice that
70524         getdate.texi already uses.
70525         * doc/alloca-opt.texi: Add copyright notice.
70526         * doc/alloca.texi: Likewise.
70527         * doc/ctime.texi: Likewise.
70528         * doc/functions.texi: Likewise.
70529         * doc/gcd.texi: Likewise.
70530         * doc/gnulib-tool.texi: Likewise.
70531         * doc/inet_ntoa.texi: Likewise.
70532         * doc/visibility.texi: Likewise.
70533
70534         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70535         * doc/quote.texi: Add copyright notice.
70536
70537         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70538         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70539         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70540         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70541         is now obsolete, and give a pointer to the Sun list.
70542         Add copyright notice.
70543
70544 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70545
70546         * config/srclistvars.sh: Add copyright notice.
70547
70548 2006-08-14  Eric Blake  <ebb9@byu.net>
70549
70550         Import the following change from libc:
70551
70552         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70553
70554         Upstream bug 2997.
70555         * lib/misc/error.c: Add space between program name and message if file
70556         name is missing.
70557
70558 2006-08-12  Karl Berry  <karl@gnu.org>
70559
70560         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70561         remove, these originate in gnulib now.
70562
70563 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70564
70565         * doc/Makefile (standards.info standards.html standards.dvi):
70566         Also depend on make-stds.texi.
70567
70568 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70569
70570         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70571         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70572
70573         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70574         in wchar_t.  Problem reported by Eric Blake.
70575
70576         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70577         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70578         Also, help the compiler to keep LEN in a register.
70579
70580 2006-08-11  Eric Blake  <ebb9@byu.net>
70581
70582         * users.txt: Sort.  Add tar.
70583
70584 2006-08-11  Bruno Haible  <bruno@clisp.org>
70585
70586         * users.txt: New file.
70587
70588 2006-08-11  Bruno Haible  <bruno@clisp.org>
70589
70590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70591         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70592
70593 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         * modules/snprintf (Depends-on): Remove minmax.
70596         (Maintainer): Add self and Bruno.
70597
70598 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70601         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70602         (EOVERFLOW): Define if the system does not.
70603         Do not include "minmax.h"; it wasn't used.
70604         (snprintf): Don't assume size_t promotes to an unsigned type.
70605         Fix bug when generated string was too long for the buffer: the
70606         buffer's contents are supposed to be the initial prefix of the
70607         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70608         exceeds INT_MAX; do the check ourselves.
70609
70610         Import the following changes from libc:
70611
70612         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70613
70614         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70615         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70616         set wc to the byte which couldn't be converted.
70617         (re_string_reconstruct): Don't clear valid_raw_len before calling
70618         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70619         tip_context using re_string_context_at.
70620
70621         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70622
70623         * lib/posix/regex.h: g++ still cannot handled [restrict].
70624
70625         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70626
70627         * lib/posix/regex.h: Remove special handling for VMS.
70628
70629 2006-08-10  Jim Meyering  <jim@meyering.net>
70630
70631         * modules/same-inode: New module.
70632         * modules/dev-ino: New module.
70633         * modules/cycle-check: Depend on these modules, rather than simply
70634         including their .h files.
70635         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70636         required via m4/cycle-check.m4.
70637         * modules/same: Depend on new same-inode module, rather than
70638         including same-inode.h.
70639         * modules/chdir-safer: New file.
70640
70641         * modules/chown (Depends-on): Add stat-macros.
70642
70643 2006-08-10  Jim Meyering  <jim@meyering.net>
70644
70645         * m4/cycle-check.m4: New file.
70646         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70647         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70648
70649 2006-08-10  Eric Blake  <ebb9@byu.net>
70650
70651         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70652         in from original proposal.
70653
70654 2006-08-10  Eric Blake  <ebb9@byu.net>
70655         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70656
70657         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70658         namespace.
70659
70660 2006-08-10  Bruno Haible  <bruno@clisp.org>
70661
70662         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70663         as well.
70664
70665 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         Sync from coreutils.
70668
70669         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70670
70671         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70672         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70673
70674 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * modules/restrict: Remove; no longer needed now that we assume
70677         Autoconf 2.59 or later.
70678         * MODULES.html.sh: Remove 'restrict'.
70679         * modules/argp (Depends-on): Remove 'restrict'.
70680         * modules/base64 (Depends-on): Likewise.
70681         * modules/gc (Depends-on): Likewise.
70682         * modules/getaddrinfo (Depends-on): Likewise.
70683         * modules/glob (Depends-on): Likewise.
70684         * modules/inet_ntop (Depends-on): Likewise.
70685         * modules/inet_pton (Depends-on): Likewise.
70686         * modules/memxor (Depends-on): Likewise.
70687         * modules/regex (Depends-on): Likewise.
70688         * modules/strtok_r (Depends-on): Likewise.
70689         * modules/time_r (Depends-on): Likewise.
70690
70691 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70692
70693         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70694         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70695         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70696         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70697         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70698         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70699         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70700         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70701
70702         Merge from coreutils.
70703         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70704         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70705         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70706         * m4/time_r.m4 (gl_TIME_R): Likewise.
70707
70708 2006-08-09  Karl Berry  <karl@gnu.org>
70709
70710         * config/srclist.txt: no more gettext-tools, per Bruno.
70711
70712 2006-08-08  Eric Blake  <ebb9@byu.net>
70713
70714         * modules/verror: New module.
70715         * MODULES.html.sh: Document it.
70716
70717 2006-08-08  Eric Blake  <ebb9@byu.net>
70718
70719         * lib/verror.h, lib/verror.c: New files.
70720
70721 2006-08-08  Eric Blake  <ebb9@byu.net>
70722
70723         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70724         verror_at_line output complies with GNU Coding Standards even when
70725         file is NULL.
70726
70727 2006-08-07  Bruno Haible  <bruno@clisp.org>
70728
70729         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70730         versions of AIX.
70731         Reported by Ralf Wildenhues.
70732
70733 2006-08-07  Bruno Haible  <bruno@clisp.org>
70734
70735         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70736         in an AC_DEFUN. Needed so that the autoconf snippets can use
70737         AC_REQUIRE.
70738
70739 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70740
70741         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70742         Initialize pkgdata_DATA.
70743         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70744         overriding it.
70745
70746 2006-08-06  Eric Blake  <ebb9@byu.net>
70747
70748         * lib/error.h: Fold in some upstream changes from glibc.
70749         * lib/error.c: Likewise.
70750
70751 2006-08-04  Bruno Haible  <bruno@clisp.org>
70752
70753         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70754         Make the mostlyclean-local rule depend on mostlyclean-generic.
70755         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70756
70757 2006-07-31  Bruno Haible  <bruno@clisp.org>
70758
70759         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70760         <stdlib.h>, <string.h>.
70761
70762 2006-07-30  Bruno Haible  <bruno@clisp.org>
70763
70764         * modules/readlink (License): Change to LGPL.
70765
70766 2006-07-30  Bruno Haible  <bruno@clisp.org>
70767
70768         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70769         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70770         set PKGDATADIR to point to it.
70771
70772 2006-07-30  Bruno Haible  <bruno@clisp.org>
70773
70774         * modules/csharpexec (configure.ac): Comment out macro invocation.
70775         * modules/javaexec (configure.ac): Likewise.
70776         * modules/javacomp-script (configure.ac): Likewise.
70777
70778         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70779
70780 2006-07-30  Bruno Haible  <bruno@clisp.org>
70781
70782         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70783         linked-list.
70784
70785 2006-07-30  Bruno Haible  <bruno@clisp.org>
70786
70787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70788
70789 2006-07-30  Bruno Haible  <bruno@clisp.org>
70790
70791         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70792         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70793         get removed.
70794
70795 2006-07-29  Bruno Haible  <bruno@clisp.org>
70796
70797         Make it possible for gnulib-tool to work with locally modified or
70798         augmented gnulib repositories.
70799         * gnulib-tool (func_usage): Document --local-dir option.
70800         (local_gnulib_dir): New variable.
70801         Handle --local-dir option.
70802         (func_lookup_file): New function.
70803         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70804         (func_get_description, func_get_filelist, func_get_description,
70805         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70806         func_get_automake_snippet, func_get_include_directive,
70807         func_get_license, func_get_maintainer): Use func_lookup_file.
70808         (func_import, func_create_testdir): Use func_lookup_file.
70809
70810 2006-07-29  Bruno Haible  <bruno@clisp.org>
70811
70812         * modules/setenv (Depends-on): Add unistd.
70813
70814 2006-07-29  Bruno Haible  <bruno@clisp.org>
70815
70816         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70817
70818 2006-07-29  Bruno Haible  <bruno@clisp.org>
70819
70820         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70821
70822 2006-07-29  Bruno Haible  <bruno@clisp.org>
70823
70824         * gnulib-tool (import, update): If there is no Makefile.am, look at
70825         aclocal.m4, instead of bailing out.
70826
70827 2006-07-29  Bruno Haible  <bruno@clisp.org>
70828
70829         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70830         Categorize the options by when they are useful.
70831
70832 2006-07-29  Bruno Haible  <bruno@clisp.org>
70833
70834         * gnulib-tool (func_usage): Document option --no-libtool.
70835         Handle option --no-libtool.
70836         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70837         for changed semantics of $libtool variable.
70838         (func_import): Likewise. If libtool is not used, show this through
70839         an option --no-libtool.
70840         (func_create_testdir): Update.
70841
70842 2006-07-29  Bruno Haible  <bruno@clisp.org>
70843
70844         * gnulib-tool (func_import): Extend error message about missing
70845         --doc-base.
70846
70847 2006-07-29  Bruno Haible  <bruno@clisp.org>
70848
70849         * gnulib-tool (func_import): Don't create the $docbase directory if
70850         there is no file to store there.
70851
70852 2006-07-29  Bruno Haible  <bruno@clisp.org>
70853
70854         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70855         relevant, look for configure.ac there, not in the current directory.
70856         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70857
70858 2006-07-29  Bruno Haible  <bruno@clisp.org>
70859
70860         * gnulib-tool (SORT): New variable.
70861         (func_usage): Undocument --assume-autoconf option.
70862         Remove --assume-autoconf option handling.
70863         (autoconf_minversion): Determine from the contents of configure.ac.
70864         (func_import): Remove autoconf_minversion handling.
70865         Suggested by Eric Blake.
70866
70867 2006-07-29  Bruno Haible  <bruno@clisp.org>
70868
70869         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70870
70871 2006-07-29  Bruno Haible  <bruno@clisp.org>
70872
70873         * config/srclist.txt (*setenv.[ch]): Remove rules.
70874
70875 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70876
70877         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70878
70879 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70880
70881         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70882         arpa/inet.h.
70883
70884 2006-07-28  Simon Josefsson  <jas@extundo.com>
70885
70886         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70887         * modules/inet_pton (Depends-on): Likewise.
70888
70889 2006-07-28  Simon Josefsson  <jas@extundo.com>
70890
70891         * m4/netinet_in_h.m4: New file.
70892
70893 2006-07-28  Simon Josefsson  <jas@extundo.com>
70894
70895         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70896         #include's.
70897
70898 2006-07-28  Simon Josefsson  <jas@extundo.com>
70899
70900         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70901         #include's.
70902
70903 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70906         setgid on directories only if they set these bits.
70907         * lib/modechange.h: Remove obsolete comment about masks.
70908
70909 2006-07-28  Eric Blake  <ebb9@byu.net>
70910
70911         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70912         macro expansion.
70913
70914 2006-07-28  Bruno Haible  <bruno@clisp.org>
70915
70916         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70917
70918 2006-07-28  Bruno Haible  <bruno@clisp.org>
70919
70920         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70921
70922 2006-07-28  Bruno Haible  <bruno@clisp.org>
70923
70924         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70925         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70926         Define fallbacks.
70927         Avoids link error on FreeBSD 4.x.
70928         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70929
70930         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70931         encoding.
70932         * lib/mbswidth.c (iswcntrl): Likewise.
70933
70934 2006-07-27  Bruno Haible  <bruno@clisp.org>
70935
70936         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70937         test.
70938
70939 2006-07-27  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70942         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70943         defined.
70944
70945 2006-07-26  Eric Blake  <ebb9@byu.net>
70946
70947         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70948
70949 2006-07-26  Eric Blake  <ebb9@byu.net>
70950
70951         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70952         like mingw that lack mkstemp.
70953         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70954         avoid compilation warning on mingw.
70955
70956 2006-07-26  Bruno Haible  <bruno@clisp.org>
70957
70958         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70959         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70960         INT_FAST*_MIN, INTPTR_MIN.
70961
70962 2006-07-25  Bruno Haible  <bruno@clisp.org>
70963
70964         * modules/version-etc (Depends-on): Add stdarg.
70965
70966 2006-07-25  Bruno Haible  <bruno@clisp.org>
70967
70968         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70969         complex commands.
70970
70971 2006-07-25  Bruno Haible  <bruno@clisp.org>
70972
70973         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70974         defined in <stdarg.h> or config.h.
70975
70976 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70979         (gl_STDIO_SAFER): Remove.
70980
70981 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * MODULES.html.sh (File stream based Input/Output):
70984         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70985         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70986         * modules/fopen-safer, modules/tmpfile-safer: New files.
70987         * modules/stdio-safer: Remove.
70988
70989 2006-07-24  Bruno Haible  <bruno@clisp.org>
70990
70991         * modules/tmpdir: New file.
70992         * MODULES.html.sh (File system functions): Add it.
70993
70994 2006-07-24  Bruno Haible  <bruno@clisp.org>
70995
70996         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70997         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70998
70999 2006-07-24  Bruno Haible  <bruno@clisp.org>
71000
71001         * modules/clean-temp: New file.
71002
71003 2006-07-24  Bruno Haible  <bruno@clisp.org>
71004
71005         * m4/tmpdir.m4: New file, from GNU gettext.
71006
71007 2006-07-24  Bruno Haible  <bruno@clisp.org>
71008
71009         * lib/tmpdir.h: New file, from GNU gettext.
71010         * lib/tmpdir.c: New file, from GNU gettext.
71011
71012 2006-07-24  Bruno Haible  <bruno@clisp.org>
71013
71014         * lib/clean-temp.h: New file, from GNU gettext.
71015         * lib/clean-temp.c: New file, from GNU gettext.
71016
71017 2006-07-23  Eric Blake  <ebb9@byu.net>
71018
71019         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71020         (Depends-on): Add binary-io.
71021
71022 2006-07-23  Eric Blake  <ebb9@byu.net>
71023
71024         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71025
71026 2006-07-23  Eric Blake  <ebb9@byu.net>
71027
71028         * lib/tmpfile-safer.c: New file.
71029         * lib/stdio-safer.h (fopen_safer): Add prototype.
71030         * lib/stdio--.h (tmpfile): Make safer.
71031
71032 2006-07-23  Bruno Haible  <bruno@clisp.org>
71033
71034         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71035         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71036         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71037         gl_linked_remove_at): Use it.
71038
71039 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71040         and Simon Josefsson <jas@extundo.com>
71041
71042         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71043
71044         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71045
71046 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         * modules/close-stream: New file.
71049         * modules/closeout (Description): Make it clear that it exits
71050         with a diagnostic on error.
71051         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71052         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71053
71054 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71055
71056         * m4/close-stream.m4: New file.
71057
71058 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * lib/close-stream.c, lib/close-stream.h: New files.
71061
71062 2006-07-22  Bruno Haible  <bruno@clisp.org>
71063
71064         Merge from GNU gettext 0.15.
71065
71066         2006-05-01  Bruno Haible  <bruno@clisp.org>
71067
71068                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71069
71070         2006-07-22  Bruno Haible  <bruno@clisp.org>
71071
71072                 * modules/javaversion: New file.
71073                 * MODULES.html.sh (Java): Add javaversion.
71074
71075         2006-03-12  Bruno Haible  <bruno@clisp.org>
71076
71077                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71078
71079         2005-12-04  Bruno Haible  <bruno@clisp.org>
71080
71081                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71082                 (untested).
71083
71084         2006-06-21  Bruno Haible  <bruno@clisp.org>
71085
71086                 Avoid warnings from recent versions of mcs.
71087                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71088                 -o, -L, -r any more. Use options documented since mcs-1.0
71089                 instead. Similarly for -g.
71090
71091         2005-12-04  Bruno Haible  <bruno@clisp.org>
71092
71093                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71094                 .resources, not .resource.
71095
71096         2005-07-09  Bruno Haible  <bruno@clisp.org>
71097
71098                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71099                 add a .dll suffix.
71100                 Reported by Mark Junker <mjscod@gmx.de>.
71101
71102         2006-07-22  Bruno Haible  <bruno@clisp.org>
71103
71104                 * modules/gettext: Upgrade to gettext-0.15.
71105                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71106                 m4/visibility.m4.
71107                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71108
71109 2006-07-22  Bruno Haible  <bruno@clisp.org>
71110
71111         Merge from GNU gettext 0.15.
71112
71113         2006-03-25  Bruno Haible  <bruno@clisp.org>
71114
71115                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71116
71117         2006-07-21  Bruno Haible  <bruno@clisp.org>
71118
71119                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71120                 "1.1".
71121
71122         2006-05-09  Bruno Haible  <bruno@clisp.org>
71123
71124                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71125                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71126                 for the conftestver execution.
71127
71128         2006-05-01  Bruno Haible  <bruno@clisp.org>
71129
71130                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71131                 optional target-version argument. Verify that the compiler
71132                 groks source of the specified source-version, or add -source
71133                 option as necessary. Verify that the compiler produces
71134                 bytecode in the specified target-version, or add -target and
71135                 -source options as necessary. Make the result of the test
71136                 available as variable CONF_JAVAC. Also log error output in
71137                 config.log.
71138
71139         2006-03-11  Bruno Haible  <bruno@clisp.org>
71140
71141                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71142
71143         2006-05-09  Bruno Haible  <bruno@clisp.org>
71144
71145                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71146                 CLASSPATH_SEPARATOR to a semicolon.
71147
71148         2006-03-12  Bruno Haible  <bruno@clisp.org>
71149
71150                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71151                 available as variable CONF_JAVA, for subsequent autoconf
71152                 tests. Also log error output in config.log.
71153
71154         2006-07-19  Bruno Haible  <bruno@clisp.org>
71155
71156                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71157                 that getline works on glibc2 systems. Needed to avoid trouble
71158                 in relocatable.c.
71159                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71160
71161         2005-12-04  Bruno Haible  <bruno@clisp.org>
71162
71163                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71164                 launcher (untested).
71165
71166         2005-12-04  Bruno Haible  <bruno@clisp.org>
71167
71168                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71169
71170         2006-07-22  Bruno Haible  <bruno@clisp.org>
71171
71172                 * gettext.m4: Update from GNU gettext-0.15.
71173                 * nls.m4: Likewise.
71174                 * po.m4: Likewise.
71175                 * inttypes-pri.m4: Likewise.
71176                 * inttypes-h.m4: Renamed from inttypes.m4.
71177                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71178
71179 2006-07-22  Bruno Haible  <bruno@clisp.org>
71180
71181         Merge from GNU gettext 0.15.
71182
71183         2005-07-05  Bruno Haible  <bruno@clisp.org>
71184
71185                 * printf-args.c (printf_fetchargs): Work around broken
71186                 definition of wint_t on mingw.
71187
71188         2005-02-12  Bruno Haible  <bruno@clisp.org>
71189
71190                 * xallocsa.h: Add extern "C" for C++.
71191
71192         2006-05-17  Bruno Haible  <bruno@clisp.org>
71193
71194                 Cygwin portability.
71195                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71196
71197         2006-04-30  Bruno Haible  <bruno@clisp.org>
71198
71199                 * progreloc.c: Include <mach-o/dyld.h> if available.
71200                 (find_executable): Use _NSGetExecutablePath when possible.
71201
71202         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71203
71204                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71205                 function.
71206
71207         2005-12-29  Bruno Haible  <bruno@clisp.org>
71208
71209                 * progreloc.c (set_program_name_and_installdir): Fix
71210                 compilation error.
71211
71212         2005-12-04  Bruno Haible  <bruno@clisp.org>
71213
71214                 Cygwin portability.
71215                 * progreloc.c: Include <windows.h> also on Cygwin.
71216                 (find_executable): Add support for Cygwin.
71217                 (set_program_name_and_installdir): Handle also platforms with
71218                 nonempty EXEEXT.
71219
71220         2006-07-11  Bruno Haible  <bruno@clisp.org>
71221
71222                 * javacomp.c: Fix a comment.
71223                 Reported by Jim Meyering.
71224
71225         2006-04-30  Bruno Haible  <bruno@clisp.org>
71226
71227                 * javacomp.h (compile_java_class): Add source_version,
71228                 target_version arguments.
71229                 * javacomp.c: Rewritten to choose only a compiler that
71230                 respects the specified source_version and target_version.
71231
71232         2006-06-27  Bruno Haible  <bruno@clisp.org>
71233
71234                 Assume correct S_ISDIR macro.
71235                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71236
71237         2006-07-22  Bruno Haible  <bruno@clisp.org>
71238
71239                 * javaversion.h: New file, from GNU gettext.
71240                 * javaversion.c: New file, from GNU gettext.
71241                 * javaversion.java: New file, from GNU gettext.
71242                 * javaversion.class: New file, from GNU gettext.
71243
71244         2006-05-17  Bruno Haible  <bruno@clisp.org>
71245
71246                 Cygwin portability.
71247                 * javaexec.c (execute_java_class): Test for jview program
71248                 also on Cygwin.
71249
71250         2006-04-09  Bruno Haible  <bruno@clisp.org>
71251
71252                 * fatal-signal.c: Don't include string.h.
71253                 (at_fatal_signal): Use a copying loop instead of memcpy.
71254
71255         2005-12-04  Bruno Haible  <bruno@clisp.org>
71256
71257                 * csharpexec.c: Add support for 'clix' launcher (untested).
71258                 (execute_csharp_using_sscli): New function.
71259                 (execute_csharp_program): Call it.
71260
71261         2006-06-21  Bruno Haible  <bruno@clisp.org>
71262
71263                 Avoid warnings from recent versions of mcs.
71264                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71265                 -o, -L, -r any more. Use options documented since mcs-1.0
71266                 instead. Similarly for -g.
71267
71268         2005-07-09  Bruno Haible  <bruno@clisp.org>
71269
71270                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71271                 add a .dll suffix.
71272                 Reported by Mark Junker <mjscod@gmx.de>.
71273
71274         2006-06-17  Bruno Haible  <bruno@clisp.org>
71275
71276                 * config.charset: Update for NetBSD 3.0.
71277
71278         2006-05-17  Bruno Haible  <bruno@clisp.org>
71279
71280                 Cygwin portability.
71281                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71282
71283         2006-05-16  Bruno Haible  <bruno@clisp.org>
71284
71285                 * localcharset.c [CYGWIN]: Include <windows.h>.
71286                 (get_charset_aliases): For Cygwin, return the same CPxxx
71287                 aliases list as under WIN32.
71288                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71289                 the environment variables. Fall back to GetACP().
71290
71291         2006-04-05  Bruno Haible  <bruno@clisp.org>
71292
71293                 * config.charset: Update Juan Manuel Guerrero's address.
71294
71295         2005-02-12  Bruno Haible  <bruno@clisp.org>
71296
71297                 * allocsa.h: Add extern "C" for C++.
71298
71299         2005-02-10  Bruno Haible  <bruno@clisp.org>
71300
71301                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71302                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71303
71304         2006-07-22  Bruno Haible  <bruno@clisp.org>
71305
71306                 * gettext.h: Update to GNU gettext-0.15.
71307
71308 2006-07-22  Bruno Haible  <bruno@clisp.org>
71309
71310         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71311         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71312         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71313
71314 2006-07-21  Eric Blake  <ebb9@byu.net>
71315
71316         * modules/stdlib-safer: New file.
71317         * MODULES.html.sh (File stream based Input/Output): Add
71318         stdlib-safer.
71319
71320 2006-07-21  Eric Blake  <ebb9@byu.net>
71321
71322         * lib/stdlib-safer.h: New file from coreutils, required by
71323         stdlib--.h.
71324
71325 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71326
71327         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71328
71329 2006-07-20  Bruno Haible  <bruno@clisp.org>
71330
71331         * gnulib-tool: Recognize new option --assume-autoconf.
71332         (autoconf_minversion): New variable.
71333         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71334
71335 2006-07-20  Bruno Haible  <bruno@clisp.org>
71336
71337         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71338
71339 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71340
71341         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71342         Reindent and repaginate.
71343
71344 2006-07-19  Derek Price  <derek@ximbiot.com>
71345
71346         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71347         Correct grammar.
71348
71349 2006-07-17  Bruno Haible  <bruno@clisp.org>
71350
71351         * modules/list: New file.
71352         * modules/array-list: New file.
71353         * modules/carray-list, modules/carray-list-tests: New files.
71354         * modules/linked-list, modules/linked-list-tests: New files.
71355         * modules/avltree-list, modules/avltree-list-tests: New files.
71356         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71357         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71358         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71359         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71360         * modules/oset: New file.
71361         * modules/array-oset: New file.
71362         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71363         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71364         * tests/test-carray_list.c: New file.
71365         * tests/test-linked_list.c: New file.
71366         * tests/test-avltree_list.c: New file.
71367         * tests/test-rbtree_list.c: New file.
71368         * tests/test-linkedhash_list.c: New file.
71369         * tests/test-avltreehash_list.c: New file.
71370         * tests/test-rbtreehash_list.c: New file.
71371         * tests/test-avltree_oset.c: New file.
71372         * tests/test-rbtree_oset.c: New file.
71373         * MODULES.html.sh (Container data structures): New section.
71374
71375 2006-07-17  Bruno Haible  <bruno@clisp.org>
71376
71377         * m4/gl_list.m4: New file.
71378
71379 2006-07-17  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/gl_list.h: New file.
71382         * lib/gl_list.c: New file.
71383         * lib/gl_array_list.h: New file.
71384         * lib/gl_array_list.c: New file.
71385         * lib/gl_carray_list.h: New file.
71386         * lib/gl_carray_list.c: New file.
71387         * lib/gl_linked_list.h: New file.
71388         * lib/gl_linked_list.c: New file.
71389         * lib/gl_anylinked_list1.h: New file.
71390         * lib/gl_anylinked_list2.h: New file.
71391         * lib/gl_avltree_list.h: New file.
71392         * lib/gl_avltree_list.c: New file.
71393         * lib/gl_anyavltree_list1.h: New file.
71394         * lib/gl_anyavltree_list2.h: New file.
71395         * lib/gl_rbtree_list.h: New file.
71396         * lib/gl_rbtree_list.c: New file.
71397         * lib/gl_anyrbtree_list1.h: New file.
71398         * lib/gl_anyrbtree_list2.h: New file.
71399         * lib/gl_anytree_list1.h: New file.
71400         * lib/gl_anytree_list2.h: New file.
71401         * lib/gl_linkedhash_list.h: New file.
71402         * lib/gl_linkedhash_list.c: New file.
71403         * lib/gl_anyhash_list1.h: New file.
71404         * lib/gl_anyhash_list2.h: New file.
71405         * lib/gl_avltreehash_list.h: New file.
71406         * lib/gl_avltreehash_list.c: New file.
71407         * lib/gl_rbtreehash_list.h: New file.
71408         * lib/gl_rbtreehash_list.c: New file.
71409         * lib/gl_anytreehash_list1.h: New file.
71410         * lib/gl_anytreehash_list2.h: New file.
71411
71412         * lib/gl_oset.h: New file.
71413         * lib/gl_oset.c: New file.
71414         * lib/gl_array_oset.h: New file.
71415         * lib/gl_array_oset.c: New file.
71416         * lib/gl_avltree_oset.h: New file.
71417         * lib/gl_avltree_oset.c: New file.
71418         * lib/gl_rbtree_oset.h: New file.
71419         * lib/gl_rbtree_oset.c: New file.
71420         * lib/gl_anytree_oset.h: New file.
71421
71422 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * m4/mkancesdirs.m4: New file.
71425         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71426         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71427         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71428         it.
71429
71430 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71433         * lib/mkancesdirs.h: New files.
71434         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71435         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71436         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71437         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71438         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71439         callers changed.  Revamp internals significantly, by not
71440         attempting to create directories that are temporarily more
71441         permissive than the final results.  Do not attempt to use
71442         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71443         This removes some race conditions, fixes some bugs, and simplifies
71444         things.  Use new dirchownmod function to do owner and mode changes.
71445         * lib/mkdir-p.h: Likewise.
71446         * lib/modechange.c (octal_to_mode): New function.
71447         (struct mode_change): New member mentioned.
71448         (make_node_op_equals): New arg mentioned.  All callers changed.
71449         (mode_compile): Keep track of which mode bits the user has explicitly
71450         mentioned.
71451         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71452         New arg PMODE_BITS, to keep track of which mode bits the user
71453         mentioned; it treats S_ISUID and S_ISGID speciall.
71454         All callers changed.
71455         * lib/modechange.h: Likewise.
71456
71457 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         * MODULES.html.sh: Add mkancestors.
71460         * modules/mkancesdirs: New module.
71461         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71462         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71463         The chdir-safer and afs files are now orphans; I'll remove them
71464         unless someone speaks up.
71465         Add lib/dirchownmod.c, lib/dirchownmod.h.
71466         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71467         Add lchown, mkancesdirs.
71468         (Maintainer): Add self.
71469
71470 2006-07-15  Karl Berry  <karl@gnu.org>
71471
71472         * gnulib-tool: help message wording/arrangement.
71473
71474 2006-07-14  Simon Josefsson  <jas@extundo.com>
71475
71476         * doc/gnulib.texi (Libtool and Windows): New section.
71477
71478 2006-07-12  Simon Josefsson  <jas@extundo.com>
71479
71480         * modules/gendocs (License): Fix license, approved by Karl.
71481
71482 2006-07-12  Eric Blake  <ebb9@byu.net>
71483
71484         * MODULES.html.sh: Add gendocs.
71485
71486 2006-07-11  Eric Blake  <ebb9@byu.net>
71487
71488         * modules/fdl: New module, to install doc/fdl.texi.
71489         * MODULES.html.sh: Add new section for documentation modules.
71490         * gnulib-tool: Avoid space-tab.
71491         (--doc-base): New option, to manage files from doc.
71492
71493 2006-07-11  Eric Blake  <ebb9@byu.net>
71494
71495         * m4/absolute-header.m4: Fix comments to match recent change.
71496
71497 2006-07-11  Eric Blake  <ebb9@byu.net>
71498
71499         * gnulib-tool: List --doc-base before --tests-base.
71500
71501 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71502
71503         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71504
71505 2006-07-11  Bruno Haible  <bruno@clisp.org>
71506
71507         * README: Mention where to put documentation.
71508
71509 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71510
71511         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71512
71513 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71514
71515         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71516         to stdint.m4.
71517
71518 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71521         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71522         "no/such/file/stdint.h" when there is no such file, so that
71523         the resulting C code can be parsed by dodgy compilers.
71524         Problems reported by Bob Proulx.
71525
71526 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71527
71528         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71529         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71530         macros into the GNU _D_EXACT_NAMLEN.
71531         * lib/savedir.c:  Likewise.
71532         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71533
71534 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71535         and Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71538         * m4/savedir.m4:
71539         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71540         macros into the GNU _D_EXACT_NAMLEN.
71541
71542 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71543
71544         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71545         around the absolute name, to work around a problem with the HP-UX
71546         11.23 native C compiler, reported by Bob Proulx.
71547
71548 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * doc/maintain.texi, make-stds.texi: Sync from
71551         <http://savannah.gnu.org/projects/gnustandards>.
71552
71553 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71554
71555         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71556
71557 2006-07-09  Jim Meyering  <jim@meyering.net>
71558
71559         * m4/glob.m4: Remove a doubled word in a comment.
71560
71561 2006-07-09  Jim Meyering  <jim@meyering.net>
71562
71563         * lib/argp-pv.c: Remove a doubled word in a comment.
71564         * lib/check-version.c (check_version): Likewise.
71565         * lib/javacomp.c (compile_java_class): Likewise.
71566
71567 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71568
71569         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71570         for the benefit of people using Autoconf 2.60.  If you want to
71571         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71572         (or m4/onceonly.m4, if pre-2.57) manually.
71573
71574 2006-07-08  Jim Meyering  <jim@meyering.net>
71575
71576         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71577         comment.
71578         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71579         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71580         comment.
71581
71582 2006-07-08  Jim Meyering  <jim@meyering.net>
71583
71584         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71585
71586 2006-07-07  Simon Josefsson  <jas@extundo.com>
71587
71588         * tests/test-crc.c: Change expected crc value, the test vector
71589         were probably computed using the old broken crc.c?
71590
71591 2006-07-06  Simon Josefsson  <jas@extundo.com>
71592
71593         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71594         now the canonical place for the M4 file).
71595
71596         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71597         from the sys_socket dependency now.
71598
71599         * modules/inet_pton (Files): Ditto.
71600
71601         * modules/inet_ntop (Files): Ditto.
71602
71603 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71604
71605         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71606         not gl_PREREQ_GETUSERSHELL.
71607
71608 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71609
71610         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71611         with only one argument, for Autoconf 2.60.
71612         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71613         expand to nothing, so add a shell command to avoid syntax error.
71614         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71615
71616 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71617
71618         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71619
71620 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71623         no longer needed.  Check for isblank decl.
71624         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71625         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71626         of existence.
71627
71628 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * lib/getloadavg.c: Use __VMS, not VMS.
71631         * lib/getopt.c: Likewise.
71632         * lib/getpagesize.h: Likewise.
71633         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71634         and probably does not work.
71635
71636 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * lib/.cppi-disable: Add wcwidth.
71639         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71640         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71641         (ISGRAPH): Remove.  All uses changed to isgraph.
71642         (FOLD) [!defined _LIBC]: Remove special case.
71643         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71644         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71645         HAVE_ISBLANK.
71646         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71647         case.
71648
71649 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71650
71651         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71652         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71653         brackets.  Other minor changes to suppress some compiler
71654         warnings.
71655
71656 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71657         and Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71660         of invoking obsolescent AC_HEADER_DIRENT macro.
71661         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71662         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71663         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71664         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71665         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71666         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71667         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71668         * m4/readdir.m4: Remove; no longer needed.
71669
71670 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71671         and Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71674         Don't worry about this obsolete case any more.
71675         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71676         directories.
71677         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71678         worry about this obsolete case any more.
71679         * lib/fts.c: Likewise.
71680         * lib/getcwd.c: Likewise.
71681         * lib/glob.h: Likewise.
71682         * lib/savedir.c: Likewise.
71683
71684 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71687         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71688         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71689         needed.
71690         All uses removed.
71691         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71692         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71693         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71694         needed.
71695         * m4/getdate.m4 (gl_GETDATE): Likewise.
71696         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71697         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71698         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71699         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71700         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71701         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71702         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71703         needed.
71704
71705 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71706
71707         * lib/memcasecmp.c: Include <limits.h>.
71708         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71709         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71710         Don't assume isdigit succeeds only on '0' through '9'.
71711
71712 2006-07-05  Eric Blake  <ebb9@byu.net>
71713
71714         * modules/getaddrinfo (Depends-on): Add snprintf.
71715
71716 2006-07-05  Eric Blake  <ebb9@byu.net>
71717
71718         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71719         to avoid 'header present but could not be compiled' on cygwin.
71720
71721 2006-07-05  Eric Blake  <ebb9@byu.net>
71722
71723         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71724         missing from netdb.h.
71725         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71726
71727 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71728
71729         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71730         no longer needed.
71731         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71732         * m4/getdate.m4 (gl_GETDATE): Likewise.
71733         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71734         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71735         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71736         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71737         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71738
71739 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71740
71741         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71742         All uses of is_space replaced by isspace.
71743         * lib/exit.h: Don't talk about STDC_HEADERS.
71744         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71745         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71746         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71747         replaced by isprint etc.
71748         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71749         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71750         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71751         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71752         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71753         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71754
71755 2006-07-05  Bruno Haible  <bruno@clisp.org>
71756
71757         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71758         the function exists, before testing against AIX.
71759         Reported by Martin Lambers <marlam@marlam.de>.
71760
71761 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71762
71763         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71764         From Mark D. Baushke.
71765
71766 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71769         to the absolute name, not just one, to bypass Sun C 5.8's
71770         "warning: #include of /usr/include/... may be non-portable".
71771
71772 2006-07-04  Eric Blake  <ebb9@byu.net>
71773
71774         * modules/dirname-tests: New test module.
71775         * tests/test-dirname.c: New file, replacing dirname.c
71776         TEST_DIRNAME section that was recently deleted.
71777
71778 2006-07-04  Bruno Haible  <bruno@clisp.org>
71779
71780         Assume ANSI C header files and <ctype.h> functions.
71781         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71782         (mbsnwidth): Use isprint, iscntrl instead.
71783
71784 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         Merge from coreutils.
71787         * MODULES.html.sh: Add xstrtold.
71788         * modules/xstrtold: New file.
71789         * modules/cycle-check (Files): Add lib/same-inode.h.
71790         * modules/dirname (Files): Add m4/double-slash-root.m4.
71791         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71792         * modules/mkdir-p (Files): Add lib/same-inode.h.
71793         * modules/same (Files): Add lib/same-inode.h.
71794
71795 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71798         This is to keep the terminology clean; POSIX talks about
71799         "absolute pathnames", not "full pathnames", but the GNU
71800         Coding Standards say to use "path" for something else;
71801         so use "absolute" to keep both sides happy.
71802         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71803         Set gl_absolute_header, not gl_full_header_path.
71804         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71805         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71806         All uses changed.
71807
71808         Merge from coreutils.
71809
71810         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71811
71812         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71813         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71814         want to require the building of c-strtod.o.
71815         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71816         needs -lm directly.
71817         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71818
71819         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71820
71821         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71822         --as-needed option if available.  Problem reported by Albert Chin in
71823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71824         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71825         cc merely issues a bunch of annoying warnings for --as-needed
71826         (this problem was reported by Bob Proulx).  Also, try linking with
71827         -lm to detect a bug in binutils 2.16 (this problem was reported
71828         by Ralf Wildenhues).
71829
71830         2006-06-18  Jim Meyering  <jim@meyering.net>
71831
71832         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71833         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71834         macro.
71835         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71836         also check for glibc-2.4's abort-inducing bug.
71837
71838         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71839         Low-probability clean-up should be to use rmdir to get rid of
71840         the just-created directory, not unlink.
71841
71842         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71843         configure fail, and request a bug report to inform us about it.
71844         Add a comment that, barring reports to the contrary, in 2007 we'll
71845         assume ftruncate is universally available.
71846
71847         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71848
71849         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71850
71851         2006-03-12  Jim Meyering  <jim@meyering.net>
71852
71853         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71854         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71855         * m4/same.m4 (gl_SAME): Likewise.
71856         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71857
71858         2006-03-11  Eric Blake  <ebb9@byu.net>
71859
71860         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71861         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71862         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71863         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71864
71865 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71868         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71869         reported by Mark D. Baushke, one in
71870         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71871
71872         Merge from coreutils.
71873
71874         * lib/.cppi-disable: Add stdint_.h.
71875         * lib/.cvsignore: Add stdint.h.
71876
71877         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71880         both double and long double versions.
71881         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71882         * lib/xstrtold.c: New file.
71883         * lib/xstrtod.h (xstrtold): New decl.
71884
71885         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71886
71887         * lib/filemode.c (setst): Remove.
71888         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71889         (arguably) clearer, and the generated code is a bit smaller on my
71890         Debian GNU/Linux stable x86 host.
71891
71892         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71893
71894         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71895         Assume that filemode.h includes sys/types.h and sys/stat.h.
71896         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71897         (ftypelet): Reorder to put common cases first, for efficiency.
71898         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71899         to do 'M'.
71900         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71901         of 10, for compatibility with FreeBSD.  All callers changed.
71902         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71903         types that can't be deduced solely from st_mode.  First arg is now a
71904         const pointer.
71905         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71906         (strmode): Renamed from mode_string.
71907         (filemodestring): New decl.
71908         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71909         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71910         needed.
71911         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71912
71913         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71914
71915         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71916         fsusage.h now does that.  Include fsusage.h first, to test interface.
71917         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71918         at most one method (the old code could have generated decls that
71919         didn't conform to C89, not that this was ever exercised).
71920         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71921
71922         2006-03-19  Jim Meyering  <jim@meyering.net>
71923
71924         Work even in a chroot where d_ino values for entries in "/"
71925         don't match the stat.st_ino values for the same names.
71926         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71927         number, iterate through all entries again, using lstat instead.
71928         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71929         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71930
71931         * lib/getcwd.c (__getcwd): Clarify a comment.
71932         Use memcpy in place of a call to strcpy.
71933
71934         2006-03-12  Jim Meyering  <jim@meyering.net>
71935
71936         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71937         matches that of the current directory (which we're about to chdir ".."
71938         out of), then save the dev-ino of the parent, instead.
71939
71940         * lib/same-inode.h (SAME_INODE): New file/macro.
71941         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71942         Include "same-inode.h", instead.
71943         * lib/same.c: Likewise.
71944         * lib/cycle-check.h: Include "same-inode.h".
71945         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71946         * lib/cycle-check.c (SAME_INODE): Remove definition.
71947         * lib/root-dev-ino.h: Include "same-inode.h".
71948
71949         2006-03-11  Eric Blake  <ebb9@byu.net>
71950
71951         * lib/same.c (same_name): s/base_name/last_component/
71952         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71953         * lib/filenamecat.c (file_name_concat): Likewise.
71954
71955         2006-03-11  Eric Blake  <ebb9@byu.net>,
71956                     Paul Eggert  <eggert@cs.ucla.edu>
71957
71958         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71959         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71960         drive prefix.
71961         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71962         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71963         (last_component): New method.
71964         * lib/dirname.c (dir_len): Determine when drive letters need a
71965         subsequent slash.  Preserve // when it is special.
71966         (dir_name): Don't append dot when drive letter is absolute.
71967         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71968         * lib/basename.c (base_name): New semantics - malloc the result.
71969         Preserve // when it is special.  Preserve relative files that look
71970         like drive letters.
71971         (base_len): Preserve // when it is special.
71972         (last_component): New method, similar to old base_name semantics.
71973         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71974         base_name.  Strip redundant slashes from ///.
71975
71976 2006-07-03  Jim Meyering  <jim@meyering.net>
71977
71978         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71979         macro is used before the first cycle_check call.
71980
71981 2006-07-03  Eric Blake  <ebb9@byu.net>
71982
71983         * modules/dirname (Depends-on): Add xstrndup.
71984
71985 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71986
71987         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71988         test cases, so that config.log is a bit easier to follow.
71989
71990 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71991
71992         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71993         both are 64 bits, since this seems to be the tradition, and this
71994         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71995         we ever run into a host that prefers long long to long in this
71996         case, we'll need another configure-time test.  Problem reported by
71997         Jim Meyering.
71998
71999 2006-07-02  Eric Blake  <ebb9@byu.net>
72000
72001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72002
72003 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72004
72005         * modules/inttypes (Depends-on): No longer depends on stdint.
72006         * modules/stdint (Description): Say more about assumptions.
72007         Say that the fast types might differ.  Say macros are used.
72008         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72009         (Makefile.am): Revise list of substituted symbols to match
72010         new stdint.m4.
72011         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72012         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72013         * tests/test-stdint.c (verify_same_types)
72014         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72015         the code conforms to C99/C89.
72016         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72017         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72018
72019 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72020
72021         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72022         but fix a bug, by requiring at least 64 bits.
72023         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72024         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72025         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72026         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72027
72028         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72029         changes.  Make 2.59 a prerequisite.  Check and substitute for
72030         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72031         inttypes.h.  Do not use special include files; just use the
72032         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72033         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72034         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72035         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72036         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72037         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72038         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72039         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72040         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72041         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72042         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72043         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72044         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72045         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72046         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72047         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72048         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72049         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72050         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72051         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72052         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72053         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72054         not check for things that C99 does not require, e.g., int8_t.  If
72055         a test isn't needed unless <stdint.h> isn't working, and is
72056         unlikely to be needed for any other reason, then don't do it
72057         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72058         size_t, since we assume C89 freestanding at least.  Do not check
72059         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72060         the right thing even if the types are not defined.  Instead use:
72061         (gl_STDINT_TYPE_PROPERTIES): New macro.
72062         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72063         testing whether <sys/types.h> clashes, as Autoconf does this for
72064         us now.  All uses removed.
72065         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72066         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72067         (gl_CHECK_TYPE_SAME):
72068         Remove; no longer needed.
72069         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72070         exists, since we'll return 0 anyway in that case.
72071         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72072
72073 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72074
72075         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72076         possible collision with system files.
72077         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72078         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72079         WCHAR_MIN and WCHAR_MAX in this case.
72080         (<stddef.h>): Do not include; no longer needed.
72081         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72082         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72083         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72084         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72085         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72086         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72087         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72088         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72089         !defined(__c99))]: Include in this case too, since it's harmless
72090         now.
72091         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72092         dangerous to do so.
72093         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72094         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72095         (_STDINT_MIN, _STDINT_MAX): New macros.
72096         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72097         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72098         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72099         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72100         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72101         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72102         macros, not typedefs; this simplifies things quite a bit.
72103         Use long int for all types narrower than int64_t.
72104         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72105         Define in terms of long long int or int64_t or long int,
72106         not int64_t or int32_t.  This saves some compile-time testing.
72107         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72108         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72109         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72110         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72111         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72112         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72113         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72114         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72115         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72116         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72117         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72118         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72119         undef any previous version and define our own version, for
72120         simplicity and consistency with the new macros for types.
72121         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72122         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72123         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72124         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72125         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72126         @WINT_T_SUFFIX@ to keep things simple here.
72127         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72128         Simplify by assuming typical 8/16/32/64 host, since we're
72129         already doing that elsewhere anyway.
72130         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72131         and assume long long int is 64 bits if available.  This
72132         speeds up 'configure'.
72133
72134 2006-07-01  Eric Blake  <ebb9@byu.net>
72135
72136         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72137         Reported by Andreas Buening.
72138
72139 2006-07-01  Eric Blake  <ebb9@byu.net>
72140
72141         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72142
72143 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72144
72145         * lib/getaddrinfo.c: fixed typo
72146
72147 2006-06-29  Jim Meyering  <jim@meyering.net>
72148
72149         * modules/strftime (Maintainer): Add my name, since with the
72150         FPRINTFTIME changes strftime.c has forked from glibc.
72151
72152 2006-06-29  Eric Blake  <ebb9@byu.net>
72153
72154         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72155
72156 2006-06-29  Eric Blake  <ebb9@byu.net>
72157
72158         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72159
72160 2006-06-29  Eric Blake  <ebb9@byu.net>
72161
72162         * lib/stat_.h: New file.
72163
72164 2006-06-29  Eric Blake  <ebb9@byu.net>
72165
72166         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72167         unused static function.
72168
72169 2006-06-29  Eric Blake  <ebb9@byu.net>
72170
72171         * doc/functions.texi (Function Portability): Document missing lstat
72172         on mingw.
72173
72174 2006-06-29  Eric Blake  <ebb9@byu.net>
72175
72176         * MODULES.html.sh: Add sys_stat.
72177         * modules/sys_stat: New module.
72178         * modules/mkstemp (Depends-on): Add sys_stat.
72179
72180 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72181
72182         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72183
72184 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72185
72186         * m4/c-bs-a.m4: Removed.
72187
72188 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72189
72190         * lib/strftime.c: Assume strftime() exists.
72191
72192 2006-06-29  Derek Price  <derek@ximbiot.com>
72193
72194         * modules/c-bs-a: Removed - \a is C89.
72195         * MODULES.html.sh: Remove c-bs-a.
72196
72197 2006-06-29  Bruno Haible  <bruno@clisp.org>
72198
72199         * modules/wcwidth (License): Change to LGPL.
72200
72201 2006-06-28  Simon Josefsson  <jas@extundo.com>
72202
72203         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72204         on _WIN32.
72205
72206         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72207         getnameinfo.
72208
72209 2006-06-28  Simon Josefsson  <jas@extundo.com>
72210
72211         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72212
72213 2006-06-28  Simon Josefsson  <jas@extundo.com>
72214
72215         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72216         functions there.  It will succeed on Windows XP, but on Windows
72217         2000 and (presumably) earlier, it will fail, and use the internal
72218         re-implementation.
72219         (use_win32_p): New function.
72220         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72221         Support AI_NUMERICSERV to disable getservbyname.
72222         (getnameinfo): New function, only supports
72223         NI_NUMERICHOST|NI_NUMERICSERV for now.
72224
72225         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72226         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72227         getnameinfo.
72228
72229 2006-06-28  Eric Blake  <ebb9@byu.net>
72230
72231         * modules/wcwidth: New file.
72232         * modules/mbchar (Depends-on): Add wcwidth.
72233         * modules/mbswidth (Depends-on): Add wcwidth.
72234         * MODULES.html.sh: Add wcwidth.
72235
72236 2006-06-28  Eric Blake  <ebb9@byu.net>
72237
72238         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72240
72241 2006-06-28  Eric Blake  <ebb9@byu.net>
72242
72243         * lib/xvasprintf.h: Fix comments.
72244
72245 2006-06-28  Eric Blake  <ebb9@byu.net>
72246
72247         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72248         * lib/mbswidth.c (wcwidth): Move from here...
72249         * lib/wcwidth.h: ...to this new file.
72250
72251 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72252
72253         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72254
72255         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72256         it's obsolete.
72257         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72258
72259 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72260
72261         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72262         Autoconf 2.60 says this stuff was obsolete.
72263
72264 2006-06-28  Bruno Haible  <bruno@clisp.org>
72265
72266         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72267
72268 2006-06-28  Bruno Haible  <bruno@clisp.org>
72269
72270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72271         gt_TYPE_WCHAR_T.
72272
72273 2006-06-28  Bruno Haible  <bruno@clisp.org>
72274
72275         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72276         declaration for wcwidth.
72277         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72278
72279 2006-06-28  Bruno Haible  <bruno@clisp.org>
72280
72281         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72282         (mkdir): Define using _mkdir.
72283
72284 2006-06-28  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/getaddrinfo.h: Fix POSIX URL.
72287         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72288         _WIN32.
72289         (use_win32_p): Make static.
72290         (getaddrinfo): Reject service name if it is empty or does not consist
72291         solely of decimal digits, or if its value is > 65535.
72292         (getnameinfo): Remove useless casts.
72293
72294 2006-06-27  Simon Josefsson  <jas@extundo.com>
72295
72296         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72297         Eggert and Martin Lambers.
72298
72299 2006-06-27  Simon Josefsson  <jas@extundo.com>
72300
72301         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72302         Eggert and Martin Lambers.
72303
72304 2006-06-27  Bruno Haible  <bruno@clisp.org>
72305
72306         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72307         result to 0, not to empty.
72308         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72309
72310 2006-06-27  Bruno Haible  <bruno@clisp.org>
72311
72312         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72313
72314 2006-06-26  Simon Josefsson  <jas@extundo.com>
72315
72316         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72317         present.
72318
72319 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72320
72321         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72322         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72324
72325 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72326
72327         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72328
72329 2006-06-26  Bruno Haible  <bruno@clisp.org>
72330
72331         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72332
72333 2006-06-26  Bruno Haible  <bruno@clisp.org>
72334
72335         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72336
72337 2006-06-26  Bruno Haible  <bruno@clisp.org>
72338
72339         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72340         SGI C compiler in pre-C99 mode.
72341         Suggested by Mark D. Baushke and Larry Jones.
72342
72343 2006-06-26  Bruno Haible  <bruno@clisp.org>
72344
72345         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72346         WCHAR_MAX.
72347         Reported by Mark D. Baushke and Larry Jones.
72348
72349 2006-06-26  Bruno Haible  <bruno@clisp.org>
72350
72351         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72352         in pre-C99 mode.
72353         Suggested by Mark D. Baushke and Larry Jones.
72354
72355 2006-06-23  Simon Josefsson  <jas@extundo.com>
72356             Bruno Haible  <bruno@clisp.org>
72357
72358         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72359         Emit mostlyclean-local rule.
72360         (func_emit_tests_Makefile_am): Likewise.
72361         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72362
72363 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72364
72365         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72366
72367 2006-06-23  Bruno Haible  <bruno@clisp.org>
72368
72369         * tests/test-stdint.c: Update to match ISO C 99 Technical
72370         Corrigendum 1.
72371
72372 2006-06-23  Bruno Haible  <bruno@clisp.org>
72373
72374         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72375
72376 2006-06-23  Bruno Haible  <bruno@clisp.org>
72377
72378         * lib/stdint_.h: Treat IRIX like OpenBSD.
72379
72380 2006-06-23  Bruno Haible  <bruno@clisp.org>
72381
72382         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72383         ISO C 99 Technical Corrigendum 1.
72384
72385 2006-06-22  Simon Josefsson  <jas@extundo.com>
72386
72387         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72388         MinGW.
72389
72390 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72393         needed.  Some compiler complained about some of them.  Problem reported
72394         by Larry Jones in
72395         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72396
72397 2006-06-21  Simon Josefsson  <jas@extundo.com>
72398
72399         * tests/test-getaddrinfo.c: New file.
72400
72401         * modules/getaddrinfo-tests: New file.
72402
72403         * MODULES.html.sh: Add inet_pton.
72404
72405         * modules/inet_pton: New file.
72406
72407 2006-06-21  Simon Josefsson  <jas@extundo.com>
72408
72409         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72410         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72411         of using the (limited) gnulib implementation on Windows XP.
72412
72413         * m4/inet_pton.m4: New file.
72414
72415 2006-06-21  Simon Josefsson  <jas@extundo.com>
72416
72417         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72418         variable.
72419
72420         * lib/socket_.h: Don't define WINVER.
72421
72422         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72423         slightly modified to work in gnulib.
72424
72425 2006-06-21  Simon Josefsson  <jas@extundo.com>
72426
72427         * doc/gnulib.texi (Windows sockets): Add.
72428
72429 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72430
72431         * lib/read-file.c (fread_file): Start with buffer allocation of
72432         0 bytes rather than 1 byte; this simplifies the code.
72433         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72434         code to free buffer and save/restore errno.
72435         (internal_read_file): Remove unused local.
72436
72437 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72440         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72441         Problem reported by Denis Excoffier in
72442         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72443
72444 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72445
72446         * modules/sys_socket, modules/socklen: Include sys/types since
72447         FreeBSD 4.x's sys/socket.h needs it.
72448
72449 2006-06-19  Simon Josefsson  <jas@extundo.com>
72450
72451         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72452
72453 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72456
72457 2006-06-19  Bruno Haible  <bruno@clisp.org>
72458
72459         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72460         and FULL_PATH_INTTYPES_H in angle brackets.
72461         Reported by Mark D. Baushke <mdb@gnu.org>.
72462
72463 2006-06-17  Eric Blake  <ebb9@byu.net>
72464
72465         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72466         errno.
72467
72468 2006-06-17  Bruno Haible  <bruno@clisp.org>
72469
72470         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72471         <sys/inttypes.h>.
72472
72473 2006-06-17  Bruno Haible  <bruno@clisp.org>
72474
72475         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72476         whether errno is declared. Assume <errno.h> declares errno.
72477
72478 2006-06-17  Bruno Haible  <bruno@clisp.org>
72479
72480         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72481
72482 2006-06-17  Bruno Haible  <bruno@clisp.org>
72483
72484         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72485         problem on Solaris 2.5.1.
72486
72487 2006-06-16  Eric Blake  <ebb9@byu.net>
72488
72489         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72490         * lib/unicodeio.c [!defined errno]: Likewise.
72491         * lib/strtol.c [!defined errno]: Likewise.
72492         * lib/strtod.c [!defined errno]: Likewise.
72493
72494 2006-06-15  Eric Blake  <ebb9@byu.net>
72495
72496         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72497
72498 2006-06-15  Eric Blake  <ebb9@byu.net>
72499
72500         * config/srclist.txt (ssize_t.m4): Lose sync.
72501
72502 2006-06-15  Bruno Haible  <bruno@clisp.org>
72503
72504         * modules/stdint (Files): Include m4/full-header-path.m4,
72505         m4/size_max.m4, m4/wchar_t.m4.
72506         (Makefile.am): Many more substitutions.
72507         * modules/stdint-tests: New file.
72508         * tests/test-stdint.c: New file.
72509
72510 2006-06-15  Bruno Haible  <bruno@clisp.org>
72511
72512         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72513         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72514         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72515         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72516         gl_CHECK_TYPE_SAME): New macros.
72517
72518 2006-06-15  Bruno Haible  <bruno@clisp.org>
72519
72520         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72521
72522 2006-06-15  Bruno Haible  <bruno@clisp.org>
72523
72524         * lib/stdint_.h: Rewritten to be fully auto-configured.
72525         Fixes bug on HP-UX/IA64.
72526
72527 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72528
72529         * lib/getdate.y (__attribute__): Don't define if already defined.
72530         Problem reported by Larry Jones.
72531         * lib/utimens.c (__attribute__): Likewise.
72532
72533 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72534
72535         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72536         reported by Andreas Schwab.
72537
72538 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72539             Bruno Haible  <bruno@clisp.org>
72540
72541         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72542         check for the declaration of strnlen and a run test that exposes the
72543         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72544         rpl_strndup.
72545
72546 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72547             Bruno Haible  <bruno@clisp.org>
72548
72549         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72550
72551 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72552
72553         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72554         compile test, for Tru64 4.0D.
72555
72556 2006-05-28  Karl Berry  <karl@gnu.org>
72557
72558         * config/srclist.txt (printf-args.c): lose sync.
72559
72560 2006-05-26  Martin Lambers  <marlam@marlam.de>
72561
72562         * lib/getpass.c: Updates the test for the native W32 API, and adds
72563         missing includes, thus fixing compilation warnings.
72564
72565 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72566
72567         * lib/exclude.c (exclude_fnmatch): New function.
72568         (excluded_file_name): Call exclude_fnmatch.
72569         * lib/exclude.h (excluded_file_name): New prototype
72570
72571 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72572
72573         * lib/tempname.c (small_open, large_open): New macros.
72574         (__open, __open64) [!_LIBC]: Remove.
72575         (__gen_tempname): Use small_open and large_open instead of __open
72576         and __open64.  This fixes a portability bug on HP-UX 11.11i
72577         reported by Simon Wing-Tang in
72578         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72579
72580 2006-05-24  Bruno Haible  <bruno@clisp.org>
72581
72582         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72583         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72584         Reported by Thorsten Maerz <torte@netztorte.de> via
72585         Aaron Stone <aaron@serendipity.cx>.
72586
72587 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72590         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72591         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72592         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72593         not really conditional on the cache.
72594         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72595
72596 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72597
72598         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72599         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72600         (my_usleep): Don't mishandle maximum value.
72601
72602 2006-05-19  Jim Meyering  <jim@meyering.net>
72603
72604         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72605
72606 2006-05-17  Bruno Haible  <bruno@clisp.org>
72607
72608         Cygwin portability.
72609         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72610
72611 2006-05-17  Bruno Haible  <bruno@clisp.org>
72612
72613         * lib/stdint_.h: Fix recognition of Cygwin.
72614
72615 2006-05-15  Bruno Haible  <bruno@clisp.org>
72616
72617         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72618         on libtool patch by Ralf Wildenhues.
72619
72620 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72621
72622         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72623         test for C99 conformance; (bool) 0.5 is an integer constant
72624         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72625         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72626
72627 2006-05-11  Simon Josefsson  <jas@extundo.com>
72628
72629         * m4/xvasprintf.m4: Fix obvious typo.
72630
72631 2006-05-11  Jim Meyering  <jim@meyering.net>
72632
72633         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72634         James Lemley.
72635
72636 2006-05-10  Simon Josefsson  <jas@extundo.com>
72637
72638         * lib/md4.c: Typo fix, update copyright years.
72639         (K1, K2): Don't use L because it turn computations into 64-bit on
72640         64-bit platforms.
72641
72642 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72643
72644         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72645         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72646         unwanted sign propagation, e.g., on hosts with 64-bit int.
72647         There still are some problems with reeelly weird theoretical hosts
72648         (e.g., 33-bit int) but it's not worth worrying about now.
72649         * lib/sha1.c (rol): Likewise.
72650         (K1, K2, K3, K4): Remove unnecessary L suffix.
72651
72652 2006-05-10  Bruno Haible  <bruno@clisp.org>
72653
72654         * lib/des.c: Cast to avoid warnings.
72655
72656 2006-05-09  Bruno Haible  <bruno@clisp.org>
72657
72658         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72659         (Depends-on): Depend also on xsize, stdarg.
72660         (configure.ac): Add gl_XVASPRINTF.
72661
72662 2006-05-09  Bruno Haible  <bruno@clisp.org>
72663
72664         * m4/xvasprintf.m4: New file.
72665
72666 2006-05-09  Bruno Haible  <bruno@clisp.org>
72667
72668         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72669         (EOVERFLOW): Define fallback value.
72670         (xstrcat): New function.
72671         (xvasprintf): Recognize the special case of a string concatenation.
72672
72673 2006-05-08  Eric Blake  <ebb9@byu.net>
72674
72675         * gnulib-tool (func_version): Base copyright year on CVS date.
72676         (func_emit_copyright_notice): New function.
72677         (func_emit_lib_Makefile_am): Use it.
72678         (func_emit_tests_Makefile_am): Likewise.
72679         (func_import): Likewise.
72680
72681 2006-05-08  Bruno Haible  <bruno@clisp.org>
72682
72683         * modules/stdarg: New file.
72684         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72685
72686 2006-05-08  Bruno Haible  <bruno@clisp.org>
72687
72688         * m4/stdarg.m4: New file, from GNU gettext.
72689
72690 2006-05-08  Bruno Haible  <bruno@clisp.org>
72691
72692         * config/srclist.txt (build-aux/config.rpath): different from latest
72693         release.
72694
72695 2006-05-08  Bruno Haible  <bruno@clisp.org>
72696
72697         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72698
72699 2006-05-05  Jim Meyering  <jim@meyering.net>
72700
72701         * m4/warning.m4: New file, derived from bison's file by the same name.
72702
72703 2006-05-03  Bruno Haible  <bruno@clisp.org>
72704
72705         * lib/stdint_.h: Shorter URL.
72706         * lib/inttypes.h: Likewise.
72707
72708 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72711
72712 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         * lib/verify.h: Document the internals better.  Most of this change
72715         was written by Bruno Haible.
72716
72717 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         * doc/verify.texi: New file, partly based on a proposal by
72720         Bruno Haible.
72721
72722 2006-05-02  Bruno Haible  <bruno@clisp.org>
72723
72724         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72725         test from here...
72726         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72727
72728 2006-04-29  Bruno Haible  <bruno@clisp.org>
72729
72730         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72731         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72732
72733 2006-04-29  Bruno Haible  <bruno@clisp.org>
72734
72735         * gnulib-tool: Make --update option actually work.
72736
72737 2006-04-29  Bruno Haible  <bruno@clisp.org>
72738
72739         * doc/gcd.texi: New file.
72740         * doc/gnulib.texi: Include it.
72741
72742 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72743
72744         * lib/getdate.y (get_date): When adding relative date, start with the
72745         initial time, not with the result of the first mktime call.
72746
72747 2006-04-25  Bruno Haible  <bruno@clisp.org>
72748
72749         * gnulib-tool (func_import): Output the include directives in three
72750         blocks, sorted separately.
72751         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72752
72753 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72754
72755         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72756         to define main with arguments, for C++.  Reported by Eric Blake.
72757         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72758         Prefer 'int main ()' to 'int main (void)', for C++.
72759         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72760         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72761         for 'main', for C99 and C++.
72762
72763 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72764
72765         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72766         Don't assume that exit status -1 is valid.
72767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72768         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72769         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72770         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72771         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72772         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72773         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72774         functions can be used without declaring them, or that you can
72775         exit with status -1.
72776         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72777
72778 2006-04-24  Karl Berry  <karl@gnu.org>
72779
72780         * config/srclist.txt (longdouble.m4): sync lost.
72781
72782 2006-04-24  Eric Blake  <ebb9@byu.net>
72783
72784         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72785
72786 2006-04-24  Bruno Haible  <bruno@clisp.org>
72787
72788         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72789         poll() implementation in AIX.
72790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72791
72792 2006-04-24  Bruno Haible  <bruno@clisp.org>
72793
72794         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72795         assigned exactly once.
72796
72797 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72798             Bruno Haible  <bruno@clisp.org>
72799
72800         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72801         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72802         for AM_CPPFLAGS.
72803
72804 2006-04-23  Bruno Haible  <bruno@clisp.org>
72805
72806         * modules/copy-file: Depend on unistd.
72807         * modules/execute: Likewise.
72808         * modules/fatal-signal: Likewise.
72809         * modules/findprog: Likewise.
72810         * modules/mkdtemp : Likewise.
72811         * modules/pipe: Likewise.
72812         * modules/wait-process: Likewise.
72813
72814 2006-04-23  Bruno Haible  <bruno@clisp.org>
72815
72816         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72817         condition was already detected.
72818         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72819
72820 2006-04-23  Bruno Haible  <bruno@clisp.org>
72821
72822         * lib/copy-file.c: Include <unistd.h> unconditionally.
72823         * lib/execute.c: Likewise.
72824         * lib/fatal-signal.c: Likewise.
72825         * lib/findprog.c: Likewise.
72826         * lib/mkdtemp.c: Likewise.
72827         * lib/pipe.h: Likewise.
72828         * lib/pipe.c: Likewise.
72829         * lib/wait-process.h: Likewise.
72830
72831 2006-04-23  Bruno Haible  <bruno@clisp.org>
72832
72833         * gnulib-tool (func_usage): Fix --import description. Document
72834         --update.
72835         (func_import): Create temporary file in a temporary directory, if
72836         --dry-run is specified. Silence errors from 'grep' when there are no
72837         m4 files in $m4dir.
72838         (func_create_testdir): Silence errors from 'grep' when there are no
72839         m4 files in $m4dir.
72840         Reported by Karl Berry <karl@freefriends.org>.
72841
72842 2006-04-20  Bruno Haible  <bruno@clisp.org>
72843
72844         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72845         one argument, so that the code will be portable to Autoconf 2.60.
72846         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72847         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72848         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72849
72850 2006-04-19  Derek Price  <derek@ximbiot.com>
72851             Eric Blake  <ebb9@byu.net>
72852
72853         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72854         rather than "/full/path.h".  Update comment to match.  Shorten &
72855         generalize m4_translit call via AS_TR_CPP.
72856
72857 2006-04-19  Derek Price  <derek@ximbiot.com>
72858             Eric Blake  <ebb9@byu.net>
72859
72860         * lib/inttypes.h: Correct grammar in comment.
72861
72862 2006-04-18  Derek Price  <derek@ximbiot.com>
72863             Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * modules/inttypes: New file.
72866         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72867
72868 2006-04-18  Derek Price  <derek@ximbiot.com>
72869             Paul Eggert  <eggert@cs.ucla.edu>
72870
72871         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72872         New files.
72873
72874 2006-04-18  Derek Price  <derek@ximbiot.com>
72875             Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * lib/inttypes.h: New file.
72878         * lib/strtoimax.c: Assume <inttypes.h>.
72879
72880 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72881
72882         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72883         isn't mounted.  Problem reported by Kir Kolyshkin.
72884
72885 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72886
72887         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72888         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72889         Derek R. Price.
72890         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72891         implementation.
72892
72893 2006-04-12  Eric Blake  <ebb9@byu.net>
72894
72895         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72896         is now done automatically by the corresponding Autoconf macro.
72897
72898 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72899
72900         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72901         time_r.h.
72902
72903 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72904
72905         Merge regex changes from libc, removing some of our
72906         POSIX-conformance changes that were rejected and redoing them in a
72907         less-intrusive way.
72908
72909         * lib/regcomp.c (re_compile_internal, init_dfa):
72910         Length arg is now size_t, not Idx.  All uses changed.
72911         (peek_token): Forward decl now says internal_function.
72912         (__re_error_msgid, __re_error_msgid_idx):
72913         Now static rather than extern with attribute_hidden.
72914         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72915         For some reason libc prefers K&R style defns for external functions.
72916         (regerror) [!defined _LIBC]: Likewise.
72917         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72918         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72919         (build_range_exp, build_collating_symbol):
72920         Use K&R-style defn.
72921         (re_compile_fastmap): Use '\0' to memset, not 0.
72922         (utf8_sb_map): Make the calculations more obvious.
72923         (init_dfa, parse_bracket_exp, build_charclass_op):
72924         Call calloc and cast result, as glibc does.
72925         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72926         (build_range_exp, build_collating_symbol):
72927         Now internal functions.
72928
72929         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72930
72931         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72932         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72933         Don't depend on VMS; depend on __VMS instead, for POSIX
72934         namespace cleanness.
72935         (regoff_t): Define to ssize_t, not long int.
72936
72937         Remove the REG_ macros named below.  Instead, make the old names
72938         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72939         __USE_GNU_REGEX.
72940         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72941         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72942         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72943         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72944         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72945         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72946         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72947         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72948         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72949         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72950         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72951         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72952         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72953         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72954         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72955         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72956         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72957         (REG_NREGS):
72958         Remove.  All uses replaced by the old RE_* names.
72959         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72960         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72961         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72962         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72963         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72964         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72965         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72966         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72967         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72968         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72969         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72970         Don't bother having these macros be independent of each others'
72971         values, since they no longer exist in the POSIX name space.
72972
72973         Rename the following member names back to their old names,
72974         unless !__USE_GNU_REGEX.  All uses changed back.
72975         (buffer): Renamed from re_buffer.
72976         (allocated): Renamed from re_allocated.
72977         (used): Renamed from re_used.
72978         (syntax): Renamed from re_syntax.
72979         (fastmap): Renamed from re_fastmap.
72980         (translate): Renamed from re_translate.
72981         (can_be_null): Renamed from re_can_be_null.
72982         (regs_allocated): Renamed from re_regs_allocated.
72983         (fastmap_accurate): Renamed from re_fastmap_accurate.
72984         (no_sub): Renamed from re_no_sub.
72985         (not_bol): Renamed from re_not_bol.
72986         (not_eol): Renamed from re_not_eol.
72987         (newline_anchor): Renamed from re_newline_anchor.
72988         (num_regs): Renamed from rm_num_regs.
72989         (start): Renamed from rm_start.
72990         (end): Renamed from rm_end.
72991
72992         (free_state): Move up a bit.
72993
72994         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72995         #define to be empty.
72996         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72997         when that is what is intended.
72998         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72999         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73000         (MAX): New macro.
73001         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73002         All uses changed back to re_malloc, etc.  It's now the caller's
73003         responsibility to check for overflow; all callers changed.
73004         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73005         (re_x2nrealloc): Remove.
73006         (free_state): Remove decl.
73007
73008         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73009         (re_set_registers, re_exec):
73010         Use K&R-style defn.
73011
73012         2006-01-31  Roland McGrath  <roland@redhat.com>
73013
73014         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73015         Reported by Mike Frysinger <vapier@gentoo.org>.
73016
73017         2006-01-15  Andreas Jaeger  <aj@suse.de>
73018
73019         [BZ #1950]
73020         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73021         build_wcs_upper_buffer change.
73022         (build_wcs_upper_buffer): Change return type.
73023
73024         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73025
73026         * lib/regex_internal.h: Include <stdint.h> if available.
73027
73028         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73029
73030         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73031
73032         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73033
73034         * lib/regcomp.c: Adjust for changed secondary hash function.
73035
73036         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73037
73038         * lib/regex.h: Pretty printing.
73039         Clean up namespace a bit.
73040
73041         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73042
73043         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73044         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73045
73046         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73047                     Ulrich Drepper  <drepper@redhat.com>
73048
73049         [BZ #1302]
73050         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73051         changed.
73052         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73053
73054         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73055
73056         [BZ #281]
73057         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73058         * lib/regcomp.c: Remove unnecessary uses of
73059         unsigned RE_TRANSLATE_TYPE.
73060         * lib/regex_internal.h: Likewise.
73061         * lib/regex_internal.c: Likewise.
73062         * lib/regexec.c: Likewise.
73063         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73064
73065         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73066
73067         * lib/regexec.c (find_recover_state): Remove unnecessary
73068         initialization.
73069         (transit_state_bkref): Make DFA a const pointer.
73070         (get_subexp): Likewise.
73071         (check_arrival): Likewise.
73072         (update_cur_sifted_state): Likewise.
73073         (re_search_internal): Likewise.
73074         (prune_impossible_nodes): Likewise.
73075         (acquire_init_state_context): Likewise.
73076         (proceed_next_node): Likewise.
73077         (set_regs): Likewise.
73078         (free_fail_stack_return): Likewise.
73079         (check_arrival_expand_ecl): Mark DFA parameter as const.
73080         (check_arrival_expand_ecl_sub): Likewise.
73081         (check_subexp_limits): Likewise.
73082         (sub_epsilon_src_nodes):  Likewise.
73083         (add_epsilon_src_nodes):  Likewise.
73084         (merge_state_array): Likewise.
73085         (update_regs): Likewise.
73086         (build_trtable): Likewise.
73087         (sift_states_backward): Mark MCTX parameter as const.
73088         (build_sifted_states): Likewise.
73089         (update_cur_sifted_state): Likewise.
73090         (sift_states_mkref): Likewise.
73091         (check_arrival_expand_ecl): Mark eclosure as const.
73092         (check_dst_limits_calc_pos_1): Likewise.
73093         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73094         pointer.
73095
73096         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73097
73098         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73099         (transit_state_sb): Likewise.
73100         (transit_state_mb): Likewise.
73101         (sift_states_iter_mb): Likewise.
73102         (check_arrival_add_next_nodes): Likewise.
73103         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73104         [_LIBC] (re_search_2_stub): Use mempcpy.
73105
73106         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73107         mbrtowc for very simple UTF-8 case.
73108
73109         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73110         a pointer-to-const.
73111         (re_acquire_state_context): Likewise.
73112         * lib/regex_internal.h: Adjust prototypes.
73113
73114         * lib/regex.c: Prevent using C++ compilers.
73115
73116         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73117         (re_acquire_state_context): Likewise.
73118
73119 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         * modules/regex (Depends-on): Add ssize_t.
73122
73123 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73124
73125         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73126         translation table.
73127
73128 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73129
73130         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73131
73132 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73133             Bruno Haible  <bruno@clisp.org>
73134
73135         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73136         <sys/types.h> and <inttypes.h>.
73137
73138 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73139
73140         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73141         `__error_t_defined', so argp.h will not typedef the former.
73142
73143 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73144
73145         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73146         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73147         glibc names.  Even if glibc is changed to conform to POSIX, the
73148         traditional names will be available anyway, since regex depends on
73149         the extensions module.  Also, fix a longstanding typo in the
73150         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73151         reported by Emanuele Giaquinta.  Also, change sense of cached
73152         variable, so that the message makes sense.
73153
73154 2006-03-24  Simon Josefsson  <jas@extundo.com>
73155
73156         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73157         including some doc fixes.
73158         (base64_encode_alloc): Fix +1 bug on allocation failures.
73159
73160 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73161
73162         * lib/base64.c (base64_encode): Do not read past end of array with
73163         unsanitized input on systems with CHAR_BIT > 8.
73164
73165 2006-03-24  Eric Blake  <ebb9@byu.net>
73166
73167         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73168
73169 2006-03-22  Karl Berry  <karl@gnu.org>
73170
73171         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73172         * config/srclistvars.sh (COREUTILS): new var.
73173
73174 2006-03-17  Jim Meyering  <jim@meyering.net>
73175
73176         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73177         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73178
73179 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73180
73181         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73182         no longer needs it.  Instead, check that regoff_t is as least
73183         as wide as ptrdiff_t.
73184
73185         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73186         so that our regex.h stays compatible with the installed regex.
73187         This is helpful for installers who configure --without-included-regex.
73188         Problem reported by Emanuele Giaquinta.
73189
73190 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73191
73192         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73193         Typedef to long int, not to off_, as POSIX will likely change
73194         in that direction.
73195
73196 2006-03-15  Eric Blake  <ebb9@byu.net>
73197
73198         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73199
73200 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73201
73202         * lib/argp-help.c (validate_uparams): Fix typo
73203         * lib/argp-parse.c (argp_default_options): Consistently begin help
73204         messages with a lowercase letter.
73205
73206 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73209         overrun buffers and shouldn't be used (much as gets shouldn't be
73210         used).
73211         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73212
73213 2006-03-08  Simon Josefsson  <jas@extundo.com>
73214
73215         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73216         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73217
73218 2006-03-08  Simon Josefsson  <jas@extundo.com>
73219
73220         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73221         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73222
73223 2006-03-08  Simon Josefsson  <jas@extundo.com>
73224
73225         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73226         signal that configure disabled the device.
73227
73228 2006-03-08  Simon Josefsson  <jas@extundo.com>
73229
73230         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73231         languages.
73232
73233 2006-03-07  Simon Josefsson  <jas@extundo.com>
73234
73235         * modules/getopt (Depends-on): Add unistd.
73236
73237         * modules/unistd: New file.
73238
73239 2006-03-07  Simon Josefsson  <jas@extundo.com>
73240
73241         * modules/gc-random: New file.
73242
73243 2006-03-07  Simon Josefsson  <jas@extundo.com>
73244
73245         * m4/unistd_h.m4: New file.
73246
73247 2006-03-07  Simon Josefsson  <jas@extundo.com>
73248
73249         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73250         test to be side-effect free by storing the result in the cache
73251         variable gl_cv_lib_readline, and moving the assignment of
73252         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73253         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73254
73255 2006-03-07  Simon Josefsson  <jas@extundo.com>
73256
73257         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73258         error on missing devices (the functions will return an error).
73259
73260         * m4/gc.m4: Move random stuff to gc-random.m4
73261
73262 2006-03-07  Simon Josefsson  <jas@extundo.com>
73263
73264         * lib/unistd_.h: New file.
73265
73266 2006-03-07  Simon Josefsson  <jas@extundo.com>
73267
73268         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73269
73270 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73273         Problem reported by Juan Manuel Guerrero.
73274
73275 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73278         the unistd module.
73279         * lib/getlogin_r.c: Likewise.
73280         * lib/getlogin_r.h: Likewise.
73281         * lib/glob.c: Likewise.
73282         * lib/pagealign_alloc.c: Likewise.
73283         * lib/unistd_.h: Remove; no longer needed.
73284
73285 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73288         Add unistd.
73289         * modules/c-stack (Depends-on): Add unistd.
73290         * modules/getlogin_r: Likewise.
73291         * modules/glob: Likewise.
73292         * modules/pagealign_alloc: Likewise.
73293         * modules/unistd (Files): Remove lib/unistd_.h.
73294         (EXTRA_DIST): Remove.
73295         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73296         need unistd_.h.
73297         (MOSTLYCLEANFILES): Remove unistd.h-t.
73298
73299 2006-03-03  Simon Josefsson  <jas@extundo.com>
73300
73301         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73302
73303 2006-03-03  Simon Josefsson  <jas@extundo.com>
73304
73305         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73306         libidn and bison.
73307
73308 2006-03-03  Simon Josefsson  <jas@extundo.com>
73309
73310         * build-aux/maint.mk: Add indent target.
73311
73312 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73313
73314         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73315         our replacement poll.h in any case, to avoid a differing
73316         declaration from a system header.  Seen on AIX.
73317
73318 2006-03-01  Simon Josefsson  <jas@extundo.com>
73319
73320         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73321         <kasal@ucw.cz>.
73322
73323 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73324
73325         * modules/gettime (Depends-on): Add extensions module.
73326         * modules/nanosleep (Depends-on): Likewise.
73327         * modules/settime (Depends-on): Likewise.
73328
73329 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73332         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73333         pedantically.
73334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73335         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73336
73337         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73338         not "==".  Reported by Ralf Wildenhues.
73339
73340 2006-03-01  Karl Berry  <karl@gnu.org>
73341
73342         * doc/Copyright/request-*: new files, synced from gnuorg.
73343
73344 2006-03-01  Karl Berry  <karl@gnu.org>
73345
73346         * config/srclist.txt (Copyright/*): new entries.
73347
73348 2006-02-28  Simon Josefsson  <jas@extundo.com>
73349
73350         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73351
73352 2006-02-27  Simon Josefsson  <jas@extundo.com>
73353
73354         * lib/base64.h: Indent #define's.  From Jim Meyering
73355         <jim@meyering.net>.
73356
73357 2006-02-27  Jim Meyering  <jim@meyering.net>
73358
73359         Revert the change of 2006-02-24, so these files can continue
73360         to be sync'd from gettext.
73361         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73362         of `config.h'.
73363
73364 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73365
73366         * modules/intprops: New file.
73367         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73368         Add intprops.
73369         * modules/getloadavg (Files): Remove lib/intprops.h.
73370         (Depends-on): Add intprops.
73371         * modules/human: Likewise.
73372         * modules/inttostr: Likewise.
73373         * modules/openat: Likewise.
73374         * modules/sig2str: Likewise.
73375         * modules/userspec: Likewise.
73376         * modules/utimecmp: Likewise.
73377         * modules/xnanosleep: Likewise.
73378         * modules/xstrtol: Likewise.
73379
73380 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73381
73382         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73383         * modules/lock-tests (TESTS): Use $(EXEEXT).
73384         * modules/tls-tests: Likewise.
73385         * modules/argp-tests: Likewise.
73386         (check_PROGRAMS): New var, replacing...
73387         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73388
73389 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73390
73391         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73392         `config.h'.
73393
73394 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73397
73398 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73399
73400         Sync from coreutils.
73401         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73402         gl_CHDIR_SAFER.
73403
73404 2006-02-22  Jim Meyering  <jim@meyering.net>
73405
73406         Sync from coreutils.
73407         * m4/chdir-safer.m4: New file.
73408
73409 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73410
73411         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73412         AT_FDCWD exceeds INT_MAX.
73413         * lib/openat.h (AT_FDCWD): Likewise.
73414
73415 2006-02-17  Eric Blake  <address@hidden>
73416
73417         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73418
73419 2006-02-16  Simon Josefsson  <jas@extundo.com>
73420
73421         * modules/getaddrinfo (Depends-on): Add sys_socket.
73422
73423 2006-02-15  Simon Josefsson  <jas@extundo.com>
73424
73425         * build-aux/maint.mk: Add dsyntax-check rule.
73426
73427 2006-02-15  Eric Blake  <ebb9@byu.net>
73428
73429         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73430         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73431         'present but cannot compile' warnings on cygwin.
73432         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73433         use ws2tcpip.h if sys/socket.h works.
73434         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73435         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73436
73437 2006-02-14  Simon Josefsson  <jas@extundo.com>
73438
73439         * modules/maintainer-makefile (Files): Rename.
73440
73441         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73442         and (the local) Makefile.cfg to maint-cfg.mk.
73443
73444         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73445         to the latter.
73446
73447         * modules/maintainer-makefile: New module.
73448
73449         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73450         severaly stripped to make it possible to build it up from scratch
73451         with reliable tests.
73452
73453         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73454         fixes to permit overriding the default actions when configure and
73455         makefile are not available.
73456
73457 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73458
73459         Sync from coreutils.
73460         * modules/lstat (Depends-on): Don't depend on xalloc.
73461         (License): Change from GPL to LGPL, since this is now simply a
73462         replacement for a libc function.
73463
73464 2006-02-14  Jim Meyering  <jim@meyering.net>
73465
73466         Sync from coreutils.
73467
73468         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73469         failure on deficient systems, and simplify gnulib lgpl dependencies.
73470         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73471         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73472
73473         * lib/xalloc-die.c: Remove unused definition of N_.
73474
73475 2006-02-14  Jim Meyering  <jim@meyering.net>
73476
73477         Sync from coreutils.
73478         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73479         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73480         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73481         double-quote uses of that variable, to accommodate the rare case in
73482         which getmntent is available in none of the libraries checked.  This
73483         happens at least on FreeBSD 5.0.
73484
73485 2006-02-13  Simon Josefsson  <jas@extundo.com>
73486
73487         * gnulib-tool (Usage): Fix --import, from
73488         karl@freefriends.org (Karl Berry).
73489
73490 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73491
73492         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73493
73494 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73495
73496         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73497         "autoupdate" on 2005-12-12.
73498
73499 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73500
73501         * modules/closeout (Depends-on): Remove atexit.
73502
73503 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73504
73505         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73506         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73507
73508 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73511         __EXTENSIONS__ if this causes compilation to fail.  Problem
73512         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73513         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73514
73515 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73516
73517         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73518         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73519         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73520         All uses changed.
73521
73522 2006-01-26  Simon Josefsson  <jas@extundo.com>
73523
73524         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73525         prototype is visible on mingw32.
73526
73527         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73528         for mingw32.
73529
73530         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73531         mingw32).
73532
73533 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73534
73535         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73536         attempt to open for write; this always fails, at least on POSIX
73537         hosts.  This reinstates the 2006-01-09 change, which was
73538         inadvertently removed.
73539
73540 2006-01-26  Bruno Haible  <bruno@clisp.org>
73541
73542         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73543         Reported by Paul Eggert.
73544
73545 2006-01-26  Bruno Haible  <bruno@clisp.org>
73546             Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         * lib/stdbool_.h (_Bool)
73549         [(! (defined __cplusplus || defined __BEOS__)
73550           && !defined __GNUC__
73551           && !(defined __HP_cc || defined __xlc__
73552                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73553                || defined __sgi))]:
73554         #define to signed char in these cases too; this simplifies
73555         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73556         etc., separately) and makes it more conservative.
73557
73558 2006-01-25  Simon Josefsson  <jas@extundo.com>
73559
73560         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73561         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73562         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73563
73564 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73565
73566         * lib/argp-namefrob.h: Bugfix. Remove stray #
73567
73568 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73569
73570         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73571         so that we test the test.
73572         Check for yet another HP-UX cc bug involving *bool |= bool.
73573
73574 2006-01-25  Karl Berry  <karl@gnu.org>
73575
73576         * config/srclist.txt (vasnprintf.c): sync lost.
73577
73578 2006-01-25  Jim Meyering  <jim@meyering.net>
73579
73580         Sync from the stable (b5) branch of coreutils:
73581
73582         * lib/fts.c (fts_children): Don't let close() clobber errno from
73583         failed fchdir().
73584
73585         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73586         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73587         a dangling symlink.  That can also happen at least for ELOOP.
73588         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73589         FYI, this bug predates the inclusion of fts.c in coreutils.
73590
73591         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73592         in their own block, so pre-c99 compilers don't object.
73593
73594         Avoid the double-free (first in fts_read, second in fts_close) that
73595         would occur when an `active' directory is made inaccessible (e.g.,
73596         via chmod a-x) during a traversal.
73597         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73598         before returning.  Reproduce this failure by
73599         mkdir -p a/b; cd a; chmod a-x . b
73600         Reported by Stavros Passas.
73601
73602 2006-01-25  Jim Meyering  <jim@meyering.net>
73603
73604         * lib/fileblocks.c: Remove more useless parentheses.
73605         * lib/readutmp.h: Likewise.
73606
73607 2006-01-25  Bruno Haible  <bruno@clisp.org>
73608
73609         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73610         warnings.
73611         Reported by Paul Eggert.
73612
73613 2006-01-25  Bruno Haible  <bruno@clisp.org>
73614
73615         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73616         rid of a trap command. For Solaris sh.
73617         Reported by Mark D. Baushke <mdb@gnu.org>.
73618
73619 2006-01-24  Simon Josefsson  <jas@extundo.com>
73620
73621         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73622         Bruno.
73623
73624 2006-01-24  Karl Berry  <karl@gnu.org>
73625
73626         * config/srclist.txt (argp-namefrob.h): sync lost.
73627
73628 2006-01-24  Jim Meyering  <jim@meyering.net>
73629
73630         * modules/openat (Files): Add lib/intprops.h.
73631         From Mark D. Baushke.
73632
73633 2006-01-24  Jim Meyering  <jim@meyering.net>
73634
73635         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73636         Reported by Mark D. Baushke.
73637
73638 2006-01-24  Jim Meyering  <jim@meyering.net>
73639
73640         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73641
73642 2006-01-24  Bruno Haible  <bruno@clisp.org>
73643
73644         * modules/strnlen (Maintainer): Change from glibc to all.
73645
73646 2006-01-24  Bruno Haible  <bruno@clisp.org>
73647
73648         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73649         Patch by Paul Eggert.
73650
73651 2006-01-24  Bruno Haible  <bruno@clisp.org>
73652
73653         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73654         already has it.
73655         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73656         2005-11-26.
73657
73658         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73659         'signed char' to avoid problems with the built-in _Bool type.
73660         Reported by Paul Eggert on 2005-11-26.
73661
73662 2006-01-24  Bruno Haible  <bruno@clisp.org>
73663
73664         * gnulib-tool (func_import): Avoid constructing complicated sed
73665         expressions inside backquote.
73666         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73667
73668 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73669
73670         These changes imported from libc.
73671         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73672         test and two separate function calls.
73673         * lib/strndup.c (__strndup): Add libc_hidden_def.
73674
73675 2006-01-23  Simon Josefsson  <jas@extundo.com>
73676
73677         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73678         Remove the test_*_SOURCES variable: automake infers it by default.
73679         * modules/tls-tests: Likewise.
73680
73681 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         Work around porting bugs reported by Dieter in
73684         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73685         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73686         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73687         Include "getopt.h" first, to check interface.
73688         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73689         !HAVE_DECL_GETENV.
73690         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73691         (__strndup): Revert to K&R-style function dfns, the glibc style.
73692         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73693         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73694         Include strnlen.h first, to get prototype properly.
73695         (strnlen): Renamed from __strnlen.
73696         Remove weak alias.
73697
73698 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73701
73702 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         * config/srclist.txt: Adjust to reflect glibc reorganization.
73705         This affects only comments.
73706
73707 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73708
73709          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73710          Reported by Bruce Korb <bkorb@gnu.org>.
73711
73712 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73713
73714         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73715         to pacify gcc -Wswitch-default.
73716
73717 2006-01-22  Bruno Haible  <bruno@clisp.org>
73718
73719         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73720         temporary buffer for sprintf, take into account the precision also
73721         for 'd', 'i', 'u', 'o', 'x', 'X'.
73722
73723 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73724
73725         * modules/argp-tests: New module
73726         * tests/test-argp.c: New file
73727         * tests/test-argp-2.sh: New file
73728
73729 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73730
73731         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73732         (__argp_base_name): Removed
73733         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73734         typo.
73735         (__argp_base_name): Provide macro definition or extern declaration
73736         depending on the configuration
73737
73738 2006-01-20  Simon Josefsson  <jas@extundo.com>
73739
73740         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73741
73742 2006-01-20  Simon Josefsson  <jas@extundo.com>
73743
73744         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73745
73746 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73747
73748         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73749         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73750         Suggested by Bruno Haible.
73751
73752 2006-01-20  Karl Berry  <karl@gnu.org>
73753
73754         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73755         until changes propagate, I guess.
73756
73757 2006-01-19  Simon Josefsson  <jas@extundo.com>
73758
73759         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73760
73761 2006-01-19  Simon Josefsson  <jas@extundo.com>
73762
73763         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73764
73765 2006-01-19  Simon Josefsson  <jas@extundo.com>
73766
73767         * gnulib-tool: Set check_PROGRAMS.
73768
73769         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73770         modules/des-tests, modules/gc-arcfour-tests,
73771         modules/gc-arctwo-tests, modules/gc-des-tests,
73772         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73773         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73774         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73775         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73776         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73777         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73778         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73779         test_*_SOURCES.
73780
73781 2006-01-18  Simon Josefsson  <jas@extundo.com>
73782
73783         * modules/socklen (Depends-on): Depend on sys_socket.
73784
73785 2006-01-18  Simon Josefsson  <jas@extundo.com>
73786
73787         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73788         modules/des-tests, modules/gc-arcfour-tests,
73789         modules/gc-arctwo-tests, modules/gc-des-tests,
73790         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73791         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73792         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73793         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73794         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73795         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73796         $(EXEEXT) to automake TESTS variable, for mingw32.
73797
73798 2006-01-17  Simon Josefsson  <jas@extundo.com>
73799
73800         * modules/socklen (Include): Need sys/socket.h.
73801
73802 2006-01-17  Bruno Haible  <bruno@clisp.org>
73803
73804         * modules/ssize_t (Include): Add <sys/types.h>.
73805
73806 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73809         it's not portable and it doesn't work with cross-compiles.
73810         Problem reported by Bruno Haible.  Fix missing-$ typo in
73811         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73812         -zignore from being used with Sun's C compiler.
73813
73814 2006-01-12  Simon Josefsson  <jas@extundo.com>
73815
73816         * lib/base64.c: Fix warning, reported by Bruno Haible
73817         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73818
73819 2006-01-12  Bruno Haible  <bruno@clisp.org>
73820
73821         * modules/ldd: New file.
73822         * build-aux/ldd.sh.in: New file.
73823         * MODULES.html.sh (Support for building libraries and executables): Add
73824         ldd.
73825
73826 2006-01-12  Bruno Haible  <bruno@clisp.org>
73827
73828         * m4/ldd.m4: New file.
73829
73830 2006-01-12  Bruno Haible  <bruno@clisp.org>
73831
73832         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73833         endless loop while replacing $auxdir with build-aux.
73834
73835 2006-01-11  Simon Josefsson  <jas@extundo.com>
73836
73837         * lib/stdint_.h (SIZE_MAX): Add missing (.
73838
73839 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73840
73841         Sync from coreutils.
73842         * lib/md5.c: Fix commentary typos.
73843         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73844         * lib/md5.h (__attribute__): Remove; unused.
73845         * lib/sha1.c: Fix commentary to match md5 better.
73846         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73847         so that we don't need to worry about alignment.  All uses changed.
73848         This merges the 2005-10-28 md5 change into sha1.
73849
73850 2006-01-11  Jim Meyering  <jim@meyering.net>
73851
73852         Sync from coreutils.
73853         * lib/md5.c (OP): Fix spacing.
73854
73855 2006-01-11  Bruno Haible  <bruno@clisp.org>
73856
73857         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73858         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73859         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73860
73861 2006-01-11  Bruno Haible  <bruno@clisp.org>
73862
73863         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73864         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73865         the "early" section as well.
73866
73867 2006-01-11  Bruno Haible  <bruno@clisp.org>
73868
73869         Avoid "ar: no archive members specified" error on MacOS X.
73870         * gnulib-tool (func_modules_add_dummy): New function.
73871         (func_import, func_create_testdir): Invoke it.
73872
73873 2006-01-11  Bruno Haible  <bruno@clisp.org>
73874
73875         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73876         with $auxdir in AC_CONFIG_FILES statements.
73877
73878 2006-01-11  Bruno Haible  <bruno@clisp.org>
73879
73880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73881         Initialize also noinst_HEADERS to empty.
73882
73883 2006-01-11  Bruno Haible  <bruno@clisp.org>
73884
73885         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73886         variables.
73887         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73888         autoreconf.
73889
73890 2006-01-11  Bruno Haible  <bruno@clisp.org>
73891
73892         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73893         overridable by the user.
73894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73895
73896 2006-01-10  Simon Josefsson  <jas@extundo.com>
73897
73898         * modules/sys_socket: New file.
73899
73900 2006-01-10  Simon Josefsson  <jas@extundo.com>
73901
73902         * m4/sys_socket_h.m4: New file.
73903
73904 2006-01-10  Simon Josefsson  <jas@extundo.com>
73905
73906         * lib/socket_.h: New file.
73907
73908 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         * modules/readutmp (Maintainer): Add myself.
73911
73912 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73913
73914         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73915         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73916         People who are still concerned with buggy memcmp implementations
73917         can invoke gl_FUNC_MEMCMP themselves.
73918
73919 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * lib/regex_internal.h (BITSET_WORD_BITS):
73922         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73923         preprocessor mishandles large unsigned values as if they were signed.
73924         Problem reported by Claudio Fontana in
73925         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73926
73927 2006-01-10  Jim Meyering  <jim@meyering.net>
73928
73929         Avoid the double-free (first in fts_read, second in fts_close) that
73930         would occur when an `active' directory is made inaccessible (e.g.,
73931         via chmod a-x) during a traversal.
73932         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73933         before returning.  Reproduce this failure by
73934         mkdir -p a/b; cd a; chmod a-x . b
73935         Reported by Stavros Passas.
73936
73937         Sync from coreutils.
73938         * lib/sha1.c: Tweak grammar in a comment.
73939
73940 2006-01-10  Jim Meyering  <jim@meyering.net>
73941
73942         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73943         Patch by Joerg Sonnenberger.
73944
73945 2006-01-10  Bruno Haible  <bruno@clisp.org>
73946
73947         * modules/readutmp: Depend on module free.
73948         * modules/strtok_r: Depend on module restrict.
73949
73950 2006-01-10  Bruno Haible  <bruno@clisp.org>
73951
73952         * modules/gettext (configure.ac): Add an invocation of
73953         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73954
73955 2006-01-10  Bruno Haible  <bruno@clisp.org>
73956
73957         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73958         Reported by Werner Lemberg <wl@gnu.org>.
73959
73960 2006-01-10  Bruno Haible  <bruno@clisp.org>
73961
73962         * lib/localcharset.c: Update from GNU gettext.
73963
73964 2006-01-10  Bruno Haible  <bruno@clisp.org>
73965
73966         * lib/argp.h (__const): Remove macro. Use const instead.
73967         * lib/argp-fmtstream.h (__const): Likewise.
73968         * lib/glob_.h (__const): Remove macro.
73969         * lib/glob-libc.h: Use const instead of __const.
73970
73971 2006-01-10  Bruno Haible  <bruno@clisp.org>
73972
73973         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73974         variable.
73975         Needed to avoid an automake error regarding the 'gettext' module.
73976
73977 2006-01-09  Simon Josefsson  <jas@extundo.com>
73978
73979         * modules/inet_ntop (Depends-on): Add restrict.
73980
73981 2006-01-09  Simon Josefsson  <jas@extundo.com>
73982
73983         * modules/gc-rijndael-tests (License): Put under LGPL.
73984
73985         * modules/gc-des-tests (License): Likewise.
73986
73987         * modules/gc-arcfour-tests (License): Likewise.
73988
73989         * modules/gc-arctwo-tests (License): Likewise.
73990
73991         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73992
73993         * modules/gc-hmac-sha1-tests (Files): Likewise.
73994
73995         * modules/gc-hmac-md5-tests (License): Likewise.
73996
73997         * modules/gc-sha1-tests (License): Likewise.
73998
73999         * modules/gc-md5-tests (License): Likewise.
74000
74001         * modules/gc-md4-tests (License): Likewise.
74002
74003         * modules/gc-md2-tests (License): Likewise.
74004
74005         * modules/gc-tests (License): Likewise.
74006
74007         * modules/des-tests (License): Likewise.
74008
74009         * modules/md4-tests (License): Likewise.
74010
74011         * modules/md2-tests (License): Likewise.
74012
74013 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74014
74015         Sync from coreutils:
74016
74017         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74018         * modules/lib-ignore: New file.
74019         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74020         chdir-safer.m4, lchmod.m4.
74021         * modules/openat: Add mkdirat.c, openat-priv.h.
74022
74023 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74024
74025         Sync from coreutils.
74026         * m4/lib-ignore.m4: New file.
74027         * m4/lchmod.m4: New file.
74028
74029 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74030
74031         Sync from coreutils.
74032         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74033         for write access: POSIX says that must fail.
74034         * lib/fts.c (diropen): Likewise.
74035         * lib/save-cwd.c (save_cwd): Likewise.
74036         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74037         well, for minor improvements on hosts that lack O_DIRECTORY.
74038         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74039         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74040         Fall back on chown if open failed with EACCES.
74041
74042         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74043         Report an error at compile-time if only a 1-second nominal clock
74044         resolution is found.
74045
74046         * lib/lchmod.h: New file.
74047         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74048         (make_dir_parents): Use lchown rather than chown, and
74049         lchmod rather than chmod.
74050
74051         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74052         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74053         "proc" reported by n0dalus.
74054
74055         * lib/mountlist.c: Include <limits.h>.
74056         (dev_from_mount_options)
74057         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74058         New function.  It no longer assumes "dev=" has the System V meaning
74059         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74060         (read_file_system_list)
74061         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74062         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74063         dev= in that case.
74064
74065         * lib/posixtm.h (PDS_PRE_2000): New macro.
74066         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74067         allow_century.  All usages changed.  Reject dates outside the range
74068         1969-1999 if PDS_PRE_2000 is used.
74069
74070 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74071
74072         Sync from coreutils.
74073         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74074         (Time of day items): Mention the possibility of leap seconds.
74075         Problem reported by Dr. David Alan Gilbert.
74076
74077 2006-01-09  Jim Meyering  <jim@meyering.net>
74078
74079         Sync from coreutils.
74080
74081         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74082
74083         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74084
74085         * lib/modechange.c (mode_compile): Reject an invalid mode string
74086         that starts with an octal digit.  From Andreas Gruenbacher.
74087
74088         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74089         and dup to open_safer and dup_safer, respectively.
74090         (openat_permissive): Fix typo in comment.
74091
74092         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74093         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74094         (_): Remove; no longer needed.
74095         (openat): Renamed from rpl_openat; no need for rpl_openat
74096         since openat.h renames openat for us.
74097         Replace most of the body with a call to openat_permissive,
74098         to avoid duplicate code.
74099         Port to (probably hypothetical) environments were mode_t is
74100         wider than int.
74101         (openat_permissive): Require mode arg, so that we can check
74102         types better.  Put it just after flags.  Change cwd failure
74103         indicator from pointer-to-bool to pointer-to-errno-value.
74104         All callers changed.
74105         Invoke openat_save_fail and/or openat_restore_fail if
74106         cwd_errno is null, so that openat can call us.
74107         (openat_permissive, fdopendir, fstatat, unlinkat):
74108         Simplify errno handling to avoid some duplicate code,
74109         as it's OK to set errno on success.
74110         * lib/openat.h: Revamp code so that function macros depend on
74111         __OPENAT_PREFIX only, not also on AT_FDCWD.
74112         (openat_ro): Remove.  Caller changed to use openat_permissive.
74113         (openat_permissive): Now a macro, if not a function.
74114         (openat_restore_fail, openat_save_fail): Now always functions,
74115         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74116
74117         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74118         and openat.c.
74119         * lib/mkdirat.c: Include openat-priv.h.
74120         Remove definitions of macros defined therein.
74121         * lib/openat.c: Likewise.
74122
74123         * lib/mkdirat.c (mkdirat): New file and function.
74124         * lib/openat.h (mkdirat): Declare.
74125
74126         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74127
74128         * lib/openat.h (openat_permissive): Declare.
74129         (openat_ro): Define.
74130
74131         * lib/openat.c (EXPECTED_ERRNO): New macro.
74132         (openat_permissive): New function -- used in remove.c rewrite.
74133         (all functions): Set errno just before returning, only if there
74134         was an actual failure.
74135         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74136
74137         Emulate openat-family functions using Linux's procfs, if possible.
74138         Idea and some code based on Ulrich Drepper's glibc changes.
74139
74140         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74141         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74142         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74143         before falling back on save_cwd and restore_cwd.
74144         (fdopendir, fstatat, unlinkat): Likewise.
74145
74146         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74147         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74148
74149         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74150         as second argument to va_arg.  Otherwise, some versions of gcc
74151         warn that `if this code is reached, the program will abort'.
74152
74153 2006-01-09  Jim Meyering  <jim@meyering.net>
74154
74155         Sync from coreutils.
74156         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74157         Require openat-priv.h.
74158
74159 2006-01-09  Bruno Haible  <bruno@clisp.org>
74160
74161         * modules/strnlen (Include): Use strnlen.h.
74162
74163 2006-01-09  Bruno Haible  <bruno@clisp.org>
74164
74165         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74166
74167 2006-01-09  Bruno Haible  <bruno@clisp.org>
74168
74169         * lib/sysexit_.h (EX_OK): New macro.
74170         Suggested by Martin Lambers <marlam@marlam.de>.
74171
74172 2006-01-09  Bruno Haible  <bruno@clisp.org>
74173
74174         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74175         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74176
74177 2006-01-09  Bruno Haible  <bruno@clisp.org>
74178
74179         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74180         numbers.
74181
74182 2006-01-09  Bruno Haible  <bruno@clisp.org>
74183
74184         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74185         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74186         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74187         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74188
74189 2006-01-09  Bruno Haible  <bruno@clisp.org>
74190
74191         * build-aux/javacomp.sh.in: New file, moved from lib/.
74192         * modules/javacomp-script (Files): Update.
74193         (configure.ac): Add AC_CONFIG_FILES invocation.
74194         (EXTRA_DIST): Remove variable.
74195
74196         * build-aux/javaexec.sh.in: New file, moved from lib/.
74197         * modules/javaexec (Files): Update.
74198         (configure.ac): Add AC_CONFIG_FILES invocation.
74199         (EXTRA_DIST): Remove javaexec.sh.in.
74200
74201         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74202         * modules/csharpcomp-script (Files): Update.
74203         (configure.ac): Add AC_CONFIG_FILES invocation.
74204         (EXTRA_DIST): Remove variable.
74205
74206         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74207         * modules/csharpexec (Files): Update.
74208         (configure.ac): Add AC_CONFIG_FILES invocation.
74209         (EXTRA_DIST): Remove csharpexec.sh.in.
74210
74211 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74212
74213         Sync from coreutils.
74214
74215         Add POSIX ACL support
74216         * lib/acl.h (copy_acl, set_acl): Add declarations.
74217         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74218         systems other than Linux.
74219         (chmod_or_fchmod): New function: use fchmod when possible,
74220         and chmod otherwise.
74221         (file_has_acl): Add a POSIX ACL implementation, with a
74222         Linux-specific subcase.
74223         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74224         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74225         acls are unsupported.
74226         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74227         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74228         are unsupported.
74229
74230 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74231
74232         Sync from coreutils.
74233         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74234
74235 2006-01-07  Bruno Haible  <bruno@clisp.org>
74236
74237         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74238         gl_EARLY.
74239
74240 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74243         Problem reported for Mingw by Mark Junker.
74244
74245 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74246
74247         * README: Gnulib normally doesn't generate a tarball.
74248
74249 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74250
74251         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74252         long int, not int, for nanosecond counts, so that people who are
74253         used to POSIX struct timespec won't be surprised.  Reported by Jim
74254         Meyering.
74255
74256 2005-12-28  Bruno Haible  <bruno@clisp.org>
74257
74258         * build-aux/config.rpath: Update from GNU gettext.
74259
74260 2005-12-16  Jim Meyering  <jim@meyering.net>
74261
74262         * modules/fprintftime: New module.
74263         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74264
74265 2005-12-16  Jim Meyering  <jim@meyering.net>
74266
74267         * m4/fprintftime.m4: New file.
74268
74269 2005-12-16  Jim Meyering  <jim@meyering.net>
74270
74271         * lib/fprintftime.c, lib/fprintftime.h: New files.
74272
74273 2005-12-15  Simon Josefsson  <jas@extundo.com>
74274
74275         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74276         new m4/socklen.m4.
74277
74278 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74279
74280         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74281         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74282
74283 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74284
74285         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74286         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74287         struct uparams is valid. Fall back to the default values if it is
74288         not.
74289
74290 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74291
74292         * modules/argp (Files): Add argp-pin.c
74293         (Depends-on): dirname
74294         (lib_SOURCES): Add argp-pin.c
74295
74296 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74297
74298         * m4/argp.m4:  Check if program_invocation_name and
74299         program_invocation_short_name are declared and define appropriate
74300         macros if they are not.
74301
74302 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74303
74304         * lib/argp-help.c (__argp_base_name): New function
74305         (__argp_short_program_name): Rewrite using __argp_base_name
74306         * lib/argp-namefrob.h: Define program_invocation_name and
74307         program_invocation_short_name if requested
74308         (__argp_base_name): Add prototype
74309         * lib/argp-parse.c (argp_def): Use gettext wrappers
74310         (argp_default_parser): Use __argp_base_name
74311         * lib/argp-pin.c: New file. Defines program_invocation_name and
74312         program_invocation_short_name on systems that lack them.
74313
74314 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74317         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74318         porting problem reported by Georg Schwarz in
74319         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74320
74321 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74324         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74325         porting problem reported by Georg Schwarz in
74326         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74327
74328 2005-12-05  Bruno Haible  <bruno@clisp.org>
74329
74330         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74331         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74332         Reported by Mark Junker <mjscod@gmx.de>.
74333
74334 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74337         Use implementation from Albert Chin, with some
74338         comments/corrections by Stepan Kasal and myself.
74339
74340 2005-12-02  Bruno Haible  <bruno@clisp.org>
74341
74342         * gnulib-tool (func_import): Accept GPLed build tool modules when
74343         --lgpl is given.
74344         * modules/csharpcomp-script: New file.
74345         * modules/csharpcomp: Depend on it.
74346         * modules/javacomp-script: New file.
74347         * modules/javacomp: Depend on it.
74348         Suggested by Simon Josefsson.
74349
74350 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74351
74352         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74353         statement, to work around an HP-UX 10.20 compiler bug reported by
74354         Peter O'Gorman.
74355
74356 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * modules/savedir (Depends-on): Add openat.
74359
74360 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74361
74362         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74363         (uintmax_t) [defined uintmax_t]: Do not declare.
74364         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74365         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74366         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74367         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74368         sake of portability to weird hosts that C allows (though we don't
74369         know of any practical examples).
74370
74371         * lib/savedir.h (fdsavedir): New decl.
74372         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74373         contains most of the former guts of savedir.
74374         (savedir): Use savedirstream.
74375         Include "openat.h".
74376
74377 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * modules/obstack (Files): Add m4/ulonglong.m4.
74380         Problem reported by Davide Angelocola.
74381
74382 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74385         coreutils no longer futzes with rounding modes.
74386
74387 2005-11-14  Jim Meyering  <jim@meyering.net>
74388
74389         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74390         replacement of mkstemp.
74391
74392 2005-11-10  Simon Josefsson  <jas@extundo.com>
74393
74394         * lib/readline.c: Remove EOL.
74395
74396 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74397
74398         * modules/gethrxtime (Depends-on): Add gettime.
74399
74400 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74403         or gettimeofday; no longer needed.
74404
74405 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74408         time business.
74409         (gethrxtime) [! (HAVE_NANOUPTIME
74410         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74411         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74412         our own approximation.
74413
74414 2005-11-08  Eric Blake  <ebb9@byu.net>
74415
74416         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74417
74418 2005-11-08  Eric Blake  <ebb9@byu.net>
74419
74420         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74421
74422 2005-11-04  Bruno Haible  <bruno@clisp.org>
74423
74424         * gnulib-tool: Implement --update mode.
74425
74426 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74427
74428         Fix porting problem reported by Theodoros V. Kalamatianos.
74429         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74430         Don't assume that futimes failing means we must fail.
74431
74432 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74433
74434         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74435         variables to suggest the intended function of the PATH_MAX check.
74436
74437 2005-10-30  Kean Johnston  <jkj@sco.com>
74438
74439         Trivial changes to support SCO systems.
74440         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74441         as PATH_MAX.
74442         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74443         where __ptr is null when no I/O is pending.
74444
74445 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74446
74447         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74448         leave errno alone.  Problem reported by Dmitry V. Levin.
74449
74450 2005-10-28  Simon Josefsson  <jas@extundo.com>
74451
74452         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74453         Test more.
74454
74455         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74456
74457         * modules/md2, modules/md2-tests: New files.
74458
74459 2005-10-28  Simon Josefsson  <jas@extundo.com>
74460
74461         * m4/inet_ntop.m4: More tests.
74462
74463         * m4/gc-md2.m4, md2.m4: New file.
74464
74465 2005-10-28  Simon Josefsson  <jas@extundo.com>
74466
74467         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74468         "restrict" keywords, as per POSIX.  Protect the function
74469         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74470         Don't use K&R prototypes.  Check the sprintf return values.
74471         Re-define EAFNOSUPPORT if not present.  Indent.
74472
74473         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74474         suggested by Bruno Haible <bruno@clisp.org>.
74475
74476         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74477
74478         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74479
74480         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74481         libgcrypt).
74482
74483         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74484
74485         * lib/md2.h, lib/md2.c: New files.
74486
74487 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74488
74489         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74490         errno alone.  Problem reported by Frederic Jolliton.
74491
74492 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74493
74494         * modules/verify (License): Change from GPL to LGPL.  This is a
74495         tiny module and there are apparently near-equivalents that are
74496         under the BSD license.
74497
74498 2005-10-24  Simon Josefsson  <jas@extundo.com>
74499
74500         * modules/sha1: Relicense to LGPL.
74501
74502 2005-10-24  Simon Josefsson  <jas@extundo.com>
74503
74504         * lib/md4.h: Shrink buffer size, now that we changed the type.
74505
74506 2005-10-23  Simon Josefsson  <jas@extundo.com>
74507
74508         * gnulib-tool (func_import): Fix --tests-base.
74509
74510 2005-10-22  Simon Josefsson  <jas@extundo.com>
74511
74512         * modules/arcfour (Depends-on): Need stdint.
74513
74514 2005-10-22  Simon Josefsson  <jas@extundo.com>
74515
74516         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74517         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74518
74519 2005-10-22  Simon Josefsson  <jas@extundo.com>
74520
74521         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74522         suggested by Bruno Haible <bruno@clisp.org>.
74523
74524 2005-10-22  Simon Josefsson  <jas@extundo.com>
74525
74526         * lib/crc.h: Include stddef.h, for size_t.
74527
74528 2005-10-22  Simon Josefsson  <jas@extundo.com>
74529
74530         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74531         arcfour_context struct (simplify test vector testing in GNU
74532         Shishi).
74533
74534 2005-10-21  Simon Josefsson  <jas@extundo.com>
74535
74536         * modules/des, modules/des-tests: New files.
74537
74538         * modules/gc-des, modules/gc-des-tests: New files.
74539
74540         * tests/test-des.c, tests/test-gc-des.c: New file.
74541
74542 2005-10-21  Simon Josefsson  <jas@extundo.com>
74543
74544         * modules/arctwo, modules/arctwo-tests: New files.
74545
74546         * tests/test-arctwo.c: New file.
74547
74548         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74549
74550         * tests/test-gc-arctwo.c: New file.
74551
74552 2005-10-21  Simon Josefsson  <jas@extundo.com>
74553
74554         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74555         Bruno Haible <bruno@clisp.org>.
74556
74557         * m4/gc-des.m4: New file.
74558
74559 2005-10-21  Simon Josefsson  <jas@extundo.com>
74560
74561         * m4/arctwo.m4: New file.
74562
74563         * m4/gc-arctwo.m4: New file.
74564
74565 2005-10-21  Simon Josefsson  <jas@extundo.com>
74566
74567         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74568         block.
74569
74570 2005-10-21  Simon Josefsson  <jas@extundo.com>
74571
74572         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74573         <bruno@clisp.org>.
74574
74575         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74576
74577         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74578         Bruno Haible <bruno@clisp.org>.
74579
74580         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74581         <bruno@clisp.org>.
74582
74583 2005-10-21  Simon Josefsson  <jas@extundo.com>
74584
74585         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74586
74587 2005-10-21  Simon Josefsson  <jas@extundo.com>
74588
74589         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74590
74591 2005-10-21  Simon Josefsson  <jas@extundo.com>
74592
74593         * lib/des.h, lib/des.c: New files.
74594
74595         * lib/gc-gnulib.c: Support DES.c
74596
74597 2005-10-21  Simon Josefsson  <jas@extundo.com>
74598
74599         * lib/arctwo.h, lib/arctwo.c: New files.
74600
74601         * lib/gc-gnulib.c: Support ARCTWO.
74602
74603 2005-10-21  Simon Josefsson  <jas@extundo.com>
74604
74605         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74606         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74607
74608 2005-10-21  Simon Josefsson  <jas@extundo.com>
74609
74610         * gnulib-tool (func_import, func_create_testdir): Define automake
74611         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74612         Makefile.am snippet),
74613         suggested by Bruno Haible <bruno@clisp.org>.
74614
74615         * modules/gc (Makefile.am): Use it.
74616
74617 2005-10-21  Bruno Haible  <bruno@clisp.org>
74618
74619         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74620         patch.
74621
74622 2005-10-19  Simon Josefsson  <jas@extundo.com>
74623
74624         * tests/test-gc-rijndael.c: New file.
74625
74626         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74627
74628 2005-10-19  Simon Josefsson  <jas@extundo.com>
74629
74630         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74631         interface too.
74632
74633 2005-10-19  Simon Josefsson  <jas@extundo.com>
74634
74635         * tests/test-gc-arcfour.c: New file.
74636
74637         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74638
74639 2005-10-19  Simon Josefsson  <jas@extundo.com>
74640
74641         * modules/gc-md4, modules/gc-md4-tests: New file.
74642
74643         * tests/test-gc-md4.c: New file.
74644
74645 2005-10-19  Simon Josefsson  <jas@extundo.com>
74646
74647         * m4/gc-md4.m4: New file.
74648
74649 2005-10-19  Simon Josefsson  <jas@extundo.com>
74650
74651         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74652         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74653         <kasal@ucw.cz>.
74654
74655 2005-10-19  Simon Josefsson  <jas@extundo.com>
74656
74657         * m4/gc-arcfour.m4: New file.
74658
74659         * m4/gc-rijndael.m4: New file.
74660
74661 2005-10-19  Simon Josefsson  <jas@extundo.com>
74662
74663         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74664
74665 2005-10-19  Simon Josefsson  <jas@extundo.com>
74666
74667         * lib/gc-gnulib.c: Support ARCFOUR.
74668
74669 2005-10-19  Simon Josefsson  <jas@extundo.com>
74670
74671         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74672         support.
74673
74674         * lib/gc.h: Add ECB enum type.
74675
74676         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74677
74678 2005-10-18  Simon Josefsson  <jas@extundo.com>
74679
74680         * tests/test-md5.c: New file.
74681
74682         * modules/md5-tests: New file.
74683
74684 2005-10-18  Simon Josefsson  <jas@extundo.com>
74685
74686         * tests/test-md4.c: New file.
74687
74688         * modules/md4, modules/md4-tests: New files.
74689
74690 2005-10-18  Simon Josefsson  <jas@extundo.com>
74691
74692         * m4/md4.m4: New file.
74693
74694 2005-10-18  Simon Josefsson  <jas@extundo.com>
74695
74696         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74697
74698 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74699
74700         * gnulib-tool (func_create_testdir): Omit the second check whether
74701         BUILT_SOURCES in nonempty.
74702
74703 2005-10-17  Simon Josefsson  <jas@extundo.com>
74704
74705         * tests/test-rijndael.c: New file.
74706
74707 2005-10-17  Simon Josefsson  <jas@extundo.com>
74708
74709         * modules/sha1: Depend on stdint instead of md5.
74710
74711         * modules/md5: Depend on stdint, remove uint32_t.
74712
74713 2005-10-17  Simon Josefsson  <jas@extundo.com>
74714
74715         * modules/gc-sha1-tests: New file.
74716
74717         * tests/test-gc-sha1.c: New file.
74718
74719 2005-10-17  Simon Josefsson  <jas@extundo.com>
74720
74721         * m4/md5.m4: Remove call to uint32_t.m4.
74722
74723 2005-10-17  Simon Josefsson  <jas@extundo.com>
74724
74725         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74726
74727         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74728         md5.h.
74729
74730         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74731
74732         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74733
74734 2005-10-17  Simon Josefsson  <jas@extundo.com>
74735
74736         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74737
74738 2005-10-17  Simon Josefsson  <jas@extundo.com>
74739
74740         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74741
74742 2005-10-17  Simon Josefsson  <jas@extundo.com>
74743
74744         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74745
74746         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74747
74748 2005-10-17  Bruno Haible  <bruno@clisp.org>
74749
74750         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74751         that it can also be used in a test.
74752
74753 2005-10-16  Bruno Haible  <bruno@clisp.org>
74754
74755         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74756         TESTS_ENVIRONMENT, so that individual tests can augment it.
74757
74758         * gnulib-tool (func_create_testdir): Use an intermediate target for
74759         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74760         macros, like $(ALLOCA_H), which cannot be passed through the command
74761         line.
74762
74763 2005-10-15  Simon Josefsson  <jas@extundo.com>
74764
74765         * modules/rijndael-tests: New file.
74766
74767         * modules/rijndael: New file.
74768
74769 2005-10-15  Simon Josefsson  <jas@extundo.com>
74770
74771         * m4/rijndael.m4: New file.
74772
74773 2005-10-15  Simon Josefsson  <jas@extundo.com>
74774
74775         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74776
74777         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74778
74779 2005-10-14  Simon Josefsson  <jas@extundo.com>
74780
74781         * tests/test-arcfour.c: New file.
74782
74783         * modules/arcfour, modules/arcfour-tests: New files.
74784
74785 2005-10-14  Simon Josefsson  <jas@extundo.com>
74786
74787         * m4/arcfour.m4: New file.
74788
74789 2005-10-14  Simon Josefsson  <jas@extundo.com>
74790
74791         * lib/arcfour.h, lib/arcfour.c: New files.
74792
74793 2005-10-14  Roland McGrath  <roland@redhat.com>
74794
74795         Import from libc.  [BZ #1331]
74796         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74797         macro argument.
74798         Reported by Matej Vela <vela@debian.org>.
74799
74800 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74801
74802         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74803         include <wchar.h>; no longer needed.
74804
74805 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74806
74807         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74808
74809 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74810         and  Ulrich Drepper  <drepper@redhat.com>
74811
74812         Import from libc.
74813         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74814         instead of inline stream orientation test and two separate
74815         function calls.  Pay no attention to USE_IN_LIBIO.
74816
74817 2005-10-13  Simon Josefsson  <jas@extundo.com>
74818
74819         * modules/gc-hmac-md5-tests: New file.
74820
74821         * tests/test-gc-hmac-sha1.c: New file.
74822
74823         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74824
74825         * modules/gc-hmac-md5-tests: New file.
74826
74827         * tests/test-gc-md5.c: New file.
74828
74829         * modules/gc-md5-tests: New file.
74830
74831 2005-10-13  Simon Josefsson  <jas@extundo.com>
74832
74833         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74834         Move memory allocation outside of loop.
74835
74836 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74837
74838         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74839         intermediate directory is in a read-only file system.  Problem
74840         reported by Eric Blake.
74841
74842 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74843
74844         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74845
74846 2005-10-12  Simon Josefsson  <jas@extundo.com>
74847
74848         * tests/test-hmac-sha1.c: New file.
74849
74850         * modules/hmac-sha1-tests: New file.
74851
74852         * modules/hmac-sha1: New file.
74853
74854 2005-10-12  Simon Josefsson  <jas@extundo.com>
74855
74856         * modules/gc-sha1: New file.
74857
74858 2005-10-12  Simon Josefsson  <jas@extundo.com>
74859
74860         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74861
74862         * tests/test-gc-pbkdf2-sha1.c: New file.
74863
74864 2005-10-12  Simon Josefsson  <jas@extundo.com>
74865
74866         * modules/gc-md5, modules/gc-hmac-md5: New files.
74867
74868         * modules/gc (Files): Remove md5, memxor and hmac files.
74869
74870 2005-10-12  Simon Josefsson  <jas@extundo.com>
74871
74872         * m4/gc-pbkdf2-sha1.m4: New file.
74873
74874         * m4/gc-hmac-sha1.m4: New file.
74875
74876         * m4/gc-sha1: New file.
74877
74878         * m4/hmac-sha1.m4: New file.
74879
74880 2005-10-12  Simon Josefsson  <jas@extundo.com>
74881
74882         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74883
74884         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74885
74886 2005-10-12  Simon Josefsson  <jas@extundo.com>
74887
74888         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74889         suggested by Bruno Haible <bruno@clisp.org>.
74890
74891 2005-10-12  Simon Josefsson  <jas@extundo.com>
74892
74893         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74894
74895 2005-10-12  Simon Josefsson  <jas@extundo.com>
74896
74897         * lib/gc-pbkdf2-sha1.c: New file.
74898
74899         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74900
74901 2005-10-12  Simon Josefsson  <jas@extundo.com>
74902
74903         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74904
74905         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74906
74907 2005-10-12  Simon Josefsson  <jas@extundo.com>
74908
74909         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74910         GC_USE_HMAC_MD5, respectively.
74911
74912         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74913         (gc_md5): Fix typo.
74914
74915         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74916
74917         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74918
74919         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74920
74921 2005-10-12  Bruno Haible  <bruno@clisp.org>
74922
74923         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74924         Reported by Stepan Kasal <kasal@ucw.cz>.
74925
74926 2005-10-11  Simon Josefsson  <jas@extundo.com>
74927
74928         * tests/test-crc.c: New file.
74929
74930         * modules/crc, modules/crc-tests: New files.
74931
74932 2005-10-11  Simon Josefsson  <jas@extundo.com>
74933
74934         * m4/crc.m4: New file.
74935
74936 2005-10-11  Simon Josefsson  <jas@extundo.com>
74937
74938         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74939
74940         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74941
74942         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74943
74944 2005-10-11  Simon Josefsson  <jas@extundo.com>
74945
74946         * lib/crc.h, lib/crc.c: New files.
74947
74948         * lib/gc.h (gc_hash_buffer): Add doc.
74949
74950 2005-10-11  Bruno Haible  <bruno@clisp.org>
74951
74952         * modules/c-strcasestr: New file.
74953         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74954
74955 2005-10-11  Bruno Haible  <bruno@clisp.org>
74956
74957         * modules/c-strcase: New file.
74958         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74959
74960 2005-10-11  Bruno Haible  <bruno@clisp.org>
74961
74962         * lib/strcasecmp.c: Include limits.h.
74963         (strcasecmp): Avoid integer overflow on exotic platforms.
74964         * lib/strncasecmp.c: Include limits.h.
74965         (strncasecmp): Avoid integer overflow on exotic platforms.
74966         Reported by Paul Eggert.
74967
74968 2005-10-11  Bruno Haible  <bruno@clisp.org>
74969
74970         * lib/c-strcasestr.h: New file, from GNU gettext.
74971         * lib/c-strcasestr.c: New file, from GNU gettext.
74972
74973 2005-10-11  Bruno Haible  <bruno@clisp.org>
74974
74975         * lib/c-strcase.h: New file, from GNU gettext.
74976         * lib/c-strcasecmp.c: New file, from GNU gettext.
74977         * lib/c-strncasecmp.c: New file, from GNU gettext.
74978
74979 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74980
74981         * modules/mempcpy (License): GPL -> LGPL.
74982         * modules/strchrnul (License): Likewise.
74983         * modules/sysexits (License): Likewise.
74984
74985 2005-10-08  Simon Josefsson  <jas@extundo.com>
74986
74987         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74988
74989 2005-10-07  Simon Josefsson  <jas@extundo.com>
74990
74991         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74992
74993 2005-10-06  Simon Josefsson  <jas@extundo.com>
74994
74995         * tests/test-hmac-md5.c: New file.
74996
74997         * modules/hmac-md5-tests: New file.
74998
74999         * modules/hmac-md5: New file.
75000
75001 2005-10-06  Simon Josefsson  <jas@extundo.com>
75002
75003         * m4/hmac-md5.m4: New file.
75004
75005         * m4/memxor.m4: Require gl_C_RESTRICT.
75006
75007 2005-10-06  Simon Josefsson  <jas@extundo.com>
75008
75009         * lib/memxor.c (memxor): Avoid casts and warnings.
75010
75011 2005-10-06  Simon Josefsson  <jas@extundo.com>
75012
75013         * lib/hmac-md5.c: New file.
75014
75015         * lib/hmac.h: New file.
75016
75017 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75020         promotes to int, not unsigned int, to catch the AIX 5.3
75021         compiler bug.
75022
75023 2005-10-05  Simon Josefsson  <jas@extundo.com>
75024
75025         * modules/memxor: New file.
75026
75027         * modules/iconv (Files): Move config.rpath to havelib, it is used
75028         there.
75029
75030         * modules/havelib (Files): Add config.rpath.
75031
75032 2005-10-05  Simon Josefsson  <jas@extundo.com>
75033
75034         * m4/memxor.m4: New file.
75035
75036 2005-10-05  Simon Josefsson  <jas@extundo.com>
75037
75038         * lib/memxor.c (memxor): Fix compiler error.
75039
75040         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75041         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75042
75043         * lib/memxor.h, lib/memxor.c: New files.
75044
75045         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75046         we assume all systems have it, suggested by Jim Meyering
75047         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75048         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75049         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75050         same reasons.
75051
75052 2005-10-05  Simon Josefsson  <jas@extundo.com>
75053
75054         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75055
75056 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75059         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75060         needed, since the source code now assumes these .h files.
75061
75062 2005-10-05  Derek Price  <derek@ximbiot.com>
75063
75064         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75065
75066 2005-10-05  Bruno Haible  <bruno@clisp.org>
75067
75068         * modules/stdint (License): Change to LGPL.
75069
75070 2005-10-04  Simon Josefsson  <jas@extundo.com>
75071
75072         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75073         D. Baushke" <mdb@gnu.org>.
75074
75075 2005-10-04  Bruno Haible  <bruno@clisp.org>
75076
75077         * lib/verify.h (verify_true): Provide alternative definition for C++.
75078
75079 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75080
75081         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75082         (SSIZE_MAX): New macro, if not already defined.
75083         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75084         than 2 GiB.
75085
75086 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         Sync from coreutils.
75089         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75090         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75091         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75092         ULLONG_MAX doesn't work with 2.7.2.1.
75093
75094 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75095
75096         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75097         From Ben Pfaff.
75098
75099         * modules/exclude (Depends-on): Depend on verify.
75100         * modules/strtoimax (Depends-on): Likewise.
75101         * modules/utimecmp (Depends-on): Likewise.
75102
75103 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         * lib/exclude.c: Include verify.h.
75106         (verify): Remove.  All callers changed to use verify.h's version.
75107         * lib/strtoimax.c: Likewise.
75108         * lib/utimecmp.c: Likewis.e
75109
75110         Sync from coreutils.
75111         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75112         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75113         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75114         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75115         bother returning ENOSYS if settimeofday or stime fails; just let
75116         them return whatever errno they want to return.
75117         * lib/utimens.c: Include unistd.h, for dup2.
75118         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75119         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75120
75121 2005-10-02  Jim Meyering  <jim@meyering.net>
75122
75123         Sync from coreutils.
75124         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75125         from glibc-2.2.5 that fails for read-only files.
75126
75127 2005-10-02  Jim Meyering  <jim@meyering.net>
75128
75129         Sync from coreutils.
75130         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75131         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75132         `#if HAVE_CONFIG_H'.
75133         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75134         Remove AT_FDCWD test.
75135         Do not consume the fd unless successful.
75136         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75137         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75138         block, so that we don't even try to compile it if settimeofday is
75139         available.  This works around a compilation failure on OSF1 V5.1,
75140         due to stime requiring a `long int*' while tv_sec is `int'.
75141
75142 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75143
75144         Sync from coreutils.
75145         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75146         against `yes', rather than just testing for nonempty.
75147
75148 2005-10-01  Simon Josefsson  <jas@extundo.com>
75149
75150         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75151         and Darwin.
75152
75153         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75154         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75155         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75156         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75157         Check if struct addrinfo is declared.
75158
75159 2005-10-01  Simon Josefsson  <jas@extundo.com>
75160
75161         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75162         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75163         AI_* and EAI_* definitions.  Protect function declarations.
75164
75165 2005-10-01  Jim Meyering  <jim@meyering.net>
75166
75167         Sync from coreutils.
75168
75169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75170         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75171         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75173         in the inet and nsl libraries.  Required on Solaris 5.7.
75174
75175 2005-10-01  Jim Meyering  <jim@meyering.net>
75176
75177         Sync from coreutils.
75178         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75179         in the inet and nsl libraries.  Required on Solaris 5.7.
75180
75181 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75182
75183         * lib/getdelim.c (getdelim): Remove unused variables.
75184
75185 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75188         so that the code works even with ancient cpp.  Portability problem
75189         with GCC 2.7.2.1 reported by Thomas M.Ott.
75190
75191 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * modules/regex (Depends-on): Add strcase.
75194
75195         * modules/gethostname (Licence): Change from GPL to LGPL, since
75196         gethostname.c is a trivial implementation of a standard library
75197         function.
75198         * modules/poll (License): Change from GPL to LGPL, since it's
75199         derived from LGPL code.
75200
75201 2005-09-27  Jim Meyering  <jim@meyering.net>
75202
75203         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75204         HAVE_CONFIG_H.
75205
75206         * lib/intprops.h (signed_type_or_expr__): Define.
75207         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75208         for unsigned types.
75209
75210 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * lib/verify.h (verify_expr): Remove, replacing with:
75213         (verify_true): New macro that returns true instead of void.
75214         (verify_type__): Remove.
75215         (verify): Use verify_true rather than verify_type__.
75216
75217 2005-09-26  Bruno Haible  <bruno@clisp.org>
75218
75219         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75220         is necessary.
75221         (lib_SOURCES): Remove mbchar.c.
75222         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75223         (Files): Add m4/mbrtowc.m4.
75224         * modules/mbiter: Likewise.
75225         * modules/mbuiter: Likewise.
75226
75227 2005-09-26  Bruno Haible  <bruno@clisp.org>
75228
75229         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75230         compile mbchar.c if they are not both present.
75231         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75232         * m4/mbiter.m4 (gl_MBITER): Likewise.
75233         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75234         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75235         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75236
75237 2005-09-25  Jim Meyering  <jim@meyering.net>
75238
75239         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75240         also uses socklen_t.
75241
75242 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * lib/utimens.c (ENOSYS): Define if not already defined.
75245         (futimens): Support having a null PATH if the file descriptor
75246         is nonnegative.
75247
75248         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75249         Remove.
75250         (__attribute): Define to empty unless GCC 3.1 or later.
75251         This works around a core dump on OpenBSD 3.4, which has GCC
75252         2.95.3, which dumps core when given __attribute__(()).  It also
75253         simplifies other tests, since we really don't want to bother with
75254         worrying about which ancient version of GCC supported what.
75255         Original problem reported by Yoann Vandoorselaere, with part of
75256         the fix suggested by Derek Price.
75257
75258 2005-09-24  Jim Meyering  <jim@meyering.net>
75259
75260         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75261         so we can once again use a positive bitfield width of 1 -- now we
75262         don't have to explain why we were using a bitfield width of 2.
75263
75264 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75265
75266         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75267         and similarly for the other external symbols.  Problem reported
75268         by James Gallager.
75269
75270         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75271         bug reported by Jim Meyering.
75272
75273         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75274         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75275         not needed, since socklen is a prerequisite module.
75276
75277 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75278
75279         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75280         Problem reported by Eric Blake.
75281         (getaddrinfo): Initialize se so that it's not garbage.
75282         Redo internal storage allocation so that it doesn't make unportable
75283         assumptions about alignment.
75284         Fix a memory leak.
75285
75286         * lib/utimens.c (futimens): Use futimesat if available.
75287         Prefer it to futimes since it doesn't have the futimes bug.
75288
75289         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75290         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75291         Instead, declare a function that returns a pointer to an array,
75292         and use verify_type__ to declare the size of the array.
75293         Problem and germ of a solution reported by Bruno Haible.
75294         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75295         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75296
75297 2005-09-23  Jim Meyering  <jim@meyering.net>
75298
75299         Sync from coreutils.
75300         Correct build failure (socklen_t not defined) on at least
75301         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75302         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75303
75304 2005-09-23  Jim Meyering  <jim@meyering.net>
75305
75306         * modules/getaddrinfo (Depends-on): Add socklen.
75307
75308 2005-09-23  Bruno Haible  <bruno@clisp.org>
75309
75310         * tests/test-verify.c: New file.
75311
75312 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75313
75314         Sync from coreutils.
75315
75316         * modules/argmatch (Depends-on): Add verify.
75317         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75318         unistd-safer.
75319         * modules/save-cwd (Depends-on): Likewise.
75320
75321         * modules/openat (Files): Add lib/openat-die.c.
75322         (Depends-on): Remove error, exitfail.
75323         Add dirname.
75324
75325         * modules/verify: New file.
75326         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75327         with "verify" module.
75328
75329 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         Sync from coreutils.
75332
75333         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75334         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75335         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75336         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75337         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75338         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75339         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75340         Don't bother checking for string.h, stdlib.h, unistd.h.
75341         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75342         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75343         module's job.
75344         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75345         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75346
75347         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75348         (gl_GETDATE): Use it.
75349
75350         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75351
75352 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         Sync from coreutils.
75355
75356         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75357         stat-time.h.
75358         * lib/argmatch.h: Include verify.h
75359         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75360         (ARGMATCH_ASSERT): Remove; unused.
75361         * lib/canonicalize.c: Assume STDC_HEADERS.
75362         * lib/exclude.c: Include "strcase.h".
75363         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75364         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75365         and stdio-safer.h.
75366         (getusershell): Call fopen, not fopen_safer.
75367         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75368         Do not include unistd-safer.h.
75369         (save_cwd): Don't call fd_safer; no longer needed
75370         now that we include fcntl--.h.
75371
75372         * lib/getdate.y (relative_time): New type.
75373         (RELATIVE_TIME_0): New constant.
75374         (parser_control): Use relative_time instead of doing it ourselves.
75375         (%union): Add new relative_time rel member.
75376         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75377         Now typeless.
75378         (relunit, relunit_snumber): Now of type rel.
75379         (zone, rel, relunit, get_date): Adjust to above changes.
75380
75381         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75382         Do not include unistd-safer.h.
75383         (getloadavg): Don't call fd_safer; no longer needed
75384         now that we include fcntl--.h.
75385
75386         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75387         (make_dir_parents): Treat ENOSYS like EEXIST.
75388
75389         Improve quality of diagnostics on restore_cwd failure.
75390         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75391         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75392         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75393         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75394         each time through the loop.  Do not diagnose restore_cwd failure;
75395         that is the caller's job (and perhaps the caller does not care).
75396
75397         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75398         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75399         If the file already exists but is not a directory, don't bother
75400         to try to make its parents.
75401         Close potential file descriptor leak if we can't chdir("/") (!).
75402         Don't always return true if chdir($PWD) fails; return true only
75403         if the requested action was done successfully (except for the
75404         chdir($PWD)).
75405         Don't log final directory unless we actually made it.
75406         Refactor to avoid duplicate code to fix up permissions.
75407         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75408
75409         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75410         to make it a bit faster and (I hope) clearer.
75411         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75412         Fix bug in formats like %2N.
75413
75414         * lib/verify.h: New file.
75415
75416 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75417
75418         Sync from coreutils.
75419         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75420
75421 2005-09-22  Jim Meyering  <jim@meyering.net>
75422
75423         Sync from coreutils.
75424
75425         * m4/lstat.m4 (gl_FUNC_LSTAT):
75426         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75427         Remove obsolete comment.
75428         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75429         * m4/xstrtod.m4: Likewise.
75430
75431         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75432
75433 2005-09-22  Jim Meyering  <jim@meyering.net>
75434
75435         Sync from coreutils.
75436
75437         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75438
75439         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75440         the .tm_year member, since otherwise gcc-4.0 would now warn about
75441         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75442
75443         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75444         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75445
75446         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75447         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75448         when run in a time zone for which daylight savings time is in effect
75449         for the starting date.
75450
75451         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75452         stop us from restricting permissions of just-created absolute-named
75453         directories.
75454         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75455         to restore initial working directory.
75456         * lib/mkdir-p.c (make_dir_parents): New parameter:
75457         different_working_dir, to tell caller if/when we change the working
75458         directory and are unable to return to the initial one.
75459         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75460         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75461         `return false'.  This fixes a bug introduced on 2004-07-30.
75462
75463         * lib/openat.c (fdopendir): Be sure to close the supplied
75464         file descriptor before returning.  This makes our replacement
75465         implementation a little closer to Solaris's, where fdopendir
75466         ties the file descriptor to the returned DIR* pointer.
75467         * lib/openat.c (unlinkat): New function.
75468         * lib/openat.h (unlinkat): Add prototype.
75469         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75470         (openat_restore_fail): Rename from openat_restore_die.
75471         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75472
75473         Provide an alternative to exiting immediately upon save_cwd or
75474         restore_cwd failure.  Now, an application can arrange e.g.,
75475         to perform a longjump in that case.
75476         * lib/openat.c: Include dirname.h.
75477         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75478         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75479         and openat_restore_die rather than calling error directly.
75480         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75481
75482         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75483         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75484         define.
75485
75486         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75487         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75488                             int utc, int nanoseconds);
75489         Background:
75490         date should not have to allocate a megabyte of virtual memory to
75491         handle a format argument like +%1048575T.  When implemented with
75492         strftime, it must allocate such a buffer, use strftime to fill it
75493         in, print it, then free it.
75494         With fprintftime, it simply prints everything and exits.
75495         With no need for memory allocation, that's one fewer way to fail.
75496         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75497         optional field width, not before, so we accept %9:z, not %:9z.
75498         (my_strftime): Be sure to use L_('x') for literals.
75499
75500         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75501         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75502         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75503         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75504         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75505         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75506         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75507         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75508         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75509         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75510         * lib/xgethostname.c, lib/xreadlink.c:
75511         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75512
75513         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75514         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75515         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75516         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75517         and don't include <sys/file.h>).
75518
75519 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75520
75521         Sync from coreutils.
75522
75523         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75524         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75525         [!LDAV_DONE]: Avoid unused variable warning.
75526
75527 2005-09-21  Bruno Haible  <bruno@clisp.org>
75528
75529         * lib/unicodeio.h (unicode_to_mb): New declaration.
75530
75531 2005-09-20  Derek Price  <derek@ximbiot.com>
75532
75533         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75534         getaddrinfo.h.
75535
75536 2005-09-20  Bruno Haible  <bruno@clisp.org>
75537
75538         * gnulib-tool: Remove trailing slashes from the values specified for
75539         --source-base, --m4-base, --tests-base, --aux-dir.
75540         Suggested by Simon Josefsson <jas@extundo.com>.
75541
75542 2005-09-20  Bruno Haible  <bruno@clisp.org>
75543
75544         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75545         func_modules_to_filelist, func_import, func_create_testdir): Make all
75546         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75547         change when gnulib-tool is invoked in a different locale.
75548
75549 2005-09-19  Simon Josefsson  <jas@extundo.com>
75550
75551         * m4/socklen.m4: Fix typo.
75552
75553 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75554
75555         Use a consistent style for including <config.h>.
75556         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75557         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75558         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75559         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75560         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75561         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75562         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75563         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75564         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75565         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75566         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75567         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75568         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75569         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75570         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75571         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75572         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75573         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75574         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75575         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75576         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75577         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75578         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75579         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75580         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75581         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75582         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75583         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75584         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75585         lib/xstrtoumax.c, lib/yesno.c:
75586         Standardize inclusion of config.h.
75587         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75588         lib/inttostr.h:  Removed inclusion of config.h from header files.
75589         * lib/inttostr.c:  Adjusted in-tree users.
75590         * lib/timespec.h: Remove superfluous warning to include config.h.
75591         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75592         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75593         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75594         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75595         config.h with HAVE_CONFIG_H.
75596
75597 2005-09-19  Jim Meyering  <jim@meyering.net>
75598
75599         * modules/pathmax (License): Change to LGPL.
75600
75601 2005-09-19  Derek Price  <derek@ximbiot.com>
75602
75603         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75604
75605 2005-09-19  Bruno Haible  <bruno@clisp.org>
75606
75607         * gnulib-tool (import): Provide default for --tests-base.
75608
75609 2005-09-19  Bruno Haible  <bruno@clisp.org>
75610
75611         * doc/quote.texi: New file, extracted from gnulib.texi.
75612         * doc/ctime.texi: New file, extracted from gnulib.texi.
75613         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75614         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75615         * doc/gnulib.texi: Include them.
75616
75617 2005-09-18  Bruno Haible  <bruno@clisp.org>
75618
75619         Portability fix.
75620         * gnulib-tool (func_readlink): New function.
75621         (func_ln_if_changed): Use it.
75622
75623 2005-09-18  Bruno Haible  <bruno@clisp.org>
75624
75625         * gnulib-tool: Support --with-tests also with --import.
75626         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75627         (func_import): Use variables $testsbase and $inctests. Emit a
75628         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75629         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75630         SUBDIRS += $testsdir.
75631         (func_create_testdir): Update.
75632
75633 2005-09-18  Bruno Haible  <bruno@clisp.org>
75634
75635         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75636         instead of $dry_run.
75637         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75638         (func_ln_if_changed): Don't handle dry-run here.
75639         (func_import): In dry-run mode, detect more precisely which actions
75640         would be performed, and don't use "...ing" verbs.
75641
75642 2005-09-18  Bruno Haible  <bruno@clisp.org>
75643
75644         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75645         (func_import): Use join on two temporary files instead of three nested
75646         loops, in order to determine which files are new or old.
75647
75648 2005-09-18  Bruno Haible  <bruno@clisp.org>
75649
75650         * gnulib-tool (func_import): Comment out code that spits out the
75651         new files with --dry-run.
75652
75653 2005-09-18  Bruno Haible  <bruno@clisp.org>
75654
75655         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75656
75657 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75658
75659         * lib/stat-time.h: New file.
75660         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75661         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75662         in a different way.
75663         (timespec_cmp): New function.
75664         * lib/utimecmp.c: Include stat-time.h.
75665         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75666         members exist, not on the obsolescent ST_MTIM_NSEC.
75667         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75668
75669 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75670
75671         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75672
75673 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * MODULES.html.sh (File system functions): Add stat-time.
75676         * modules/stat-time: New file.
75677         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75678         is now done in a different way, by the stat-time module.
75679         * modules/utimecmp (Depends-on): Add stat-time.
75680
75681 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * m4/st_mtim.m4: Remove.  Superseded by...
75684         * m4/stat-time.m4: New file.
75685         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75686         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75687
75688 2005-09-15  Derek Price  <derek@ximbiot.com>
75689
75690         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75691
75692 2005-09-15  Derek Price  <derek@ximbiot.com>
75693
75694         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75695         * lib/regex_internal.c: Ditto, using this...
75696         (__GNUC_PREREQ): ...new macro.
75697         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75698         using...
75699         (__GNUC_PREREQ): ...this new macro.
75700
75701         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75702
75703 2005-09-15  Derek Price  <derek@ximbiot.com>
75704             Paul Eggert  <eggert@cs.ucla.edu>
75705
75706         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75707         changes, consolidating in...
75708         * lib/regex_internal.h: ...this file.
75709
75710 2005-09-13  Jim Meyering  <jim@meyering.net>
75711
75712         * lib/canon-host.c: Filter through gnu indent and reword comments
75713         slightly.
75714         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75715
75716 2005-09-13  Derek Price  <derek@ximbiot.com>
75717
75718         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75719         failure.
75720         Reported by Jim Meyering  <jim@meyering.net>.
75721
75722 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75723
75724         * lib/base64.c: Typo.
75725         (base64_encode): Put b64str in initialized data section.
75726
75727 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75728
75729         Merge glibc and coreutils changes into gnulib, plus a few
75730         extra fixes.
75731         * lib/md5.c: Use #error rather than a string.
75732         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75733         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75734         (__attribute__): Define to empty for non recent-GCC.
75735         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75736         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75737         Renamed from their non-__ counterparts, with new macros replacing
75738         them if not _LIBC.  Add __THROW attribute.
75739         (rol): Remove.
75740         (struct md5_ctx): Align buffer if using GCC.
75741         * lib/sha1.h (struct sha1_ctx): Likewise.
75742         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75743         The old name was backwards.
75744         (NOTSWAP): Remove; not used.
75745         (rol): New macro, moved here from md5.h.
75746         (sha1_process_block): Remove a FIXME that doesn't make sense.
75747
75748 2005-09-12  Derek Price  <derek@ximbiot.com>
75749
75750         Return usable errors from canon-host.
75751         * lib/canon-host.h: New file.
75752         * lib/canon-host.c (canon_host): Wrap...
75753         (canon_host_r): ...this new function, which now relies exclusively on
75754         getaddrinfo.
75755         (ch_strerror): New function.
75756         (last_cherror): New global.
75757         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75758         interface.
75759         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75760         void *.
75761         (freeaddrinfo): Free ai->ai_canonname when set.
75762
75763 2005-09-12  Derek Price  <derek@ximbiot.com>
75764
75765         Make canon-host require getaddrinfo.
75766         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75767         AC_LIBSOURCE canon-host.h.  Call...
75768         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75769         gl_GETADDRINFO.
75770         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75771
75772 2005-09-12  Derek Price  <derek@ximbiot.com>
75773
75774         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75775         LGPL.
75776         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75777
75778 2005-09-12  Derek Price  <derek@ximbiot.com>
75779
75780         * lib/gai_strerror.c: Include config.h when available.  Include
75781         getaddrinfo.h before other headers to test interface.
75782         Reported by Larry Jones <lawrence.jones@ugs.com>.
75783
75784 2005-09-12  Derek Price  <derek@ximbiot.com>
75785             Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         * modules/glob (Files): Add glob-libc.h.
75788
75789 2005-09-12  Derek Price  <derek@ximbiot.com>
75790             Paul Eggert  <eggert@cs.ucla.edu>
75791
75792         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75793         glob_.h, glob-libc.h.
75794         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75795
75796 2005-09-12  Derek Price  <derek@ximbiot.com>
75797             Paul Eggert  <eggert@cs.ucla.edu>
75798
75799         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75800         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75801         protecting things that should be done only in gnulib contexts.
75802         * lib/glob_.h: New file, containing only the glob things needed for
75803         gnulib.
75804         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75805         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75806         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75807         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75808         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75809         and to respect the namespace rules better.
75810
75811 2005-09-08  Simon Josefsson  <jas@extundo.com>
75812
75813         * modules/socklen: New file.
75814
75815 2005-09-08  Simon Josefsson  <jas@extundo.com>
75816
75817         * m4/socklen.m4: New file.
75818
75819 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75820
75821         * modules/utimens (Files): Add m4/utimbuf.m4, since
75822         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75823         Reported by Sergey Poznyakoff.
75824
75825 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75826
75827         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75828         definitions, since that's the preferred style in glibc.
75829         Fix a minor spacing issue, and update copyright notice to match
75830         glibc's.
75831
75832 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75835
75836 2005-09-06  Simon Josefsson  <jas@extundo.com>
75837
75838         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75839         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75840
75841 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75842
75843         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75844         warning.
75845
75846 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         * config/srclist.txt: Add glibc bug 1302.
75849
75850 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         Change bitset word type from unsigned int to unsigned long int,
75853         as this has better performance on typical 64-bit hosts.
75854         Port bitset code to hosts with unusual word sizes.
75855         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75856         (build_collating_symbol):
75857         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75858         argument is a bitset.  This is merely a style issue, but it makes
75859         it clearer that an entire array is expected.
75860         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75861         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75862         Port to the case where bitset_word is not the same as unsigned int.
75863         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75864         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75865         Likewise.
75866         * lib/regexec.c (check_dst_limits_calc_pos_1,
75867         check_subexp_matching_top):
75868         (build_trtable, group_nodes_into_DFAstates):
75869         Likewise.
75870         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75871         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75872         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75873         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75874         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75875         * lib/regcomp.c (optimize_subexps, lower_subexp):
75876         Work even if bitset_word has holes in its bitwise representation.
75877         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75878         * lib/regexec.c (check_dst_limits_calc_pos_1,
75879         check_subexp_matching_top):
75880         Likewise.
75881         * lib/regex_internal.c (re_string_reconstruct):
75882         Don't assume UCHAR_MAX == 255.
75883         * lib/regex_internal.h (bitset_set_all): Likewise.
75884         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75885         All uses changed.
75886         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75887         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75888         All uses changed.
75889         (BITSET_WORD_MAX): New macro.
75890         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75891         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75892         (bitset_empty, bitset_copy):
75893         Prefer sizeof (bitset) to multiplying it out ourselves.
75894         (bitset_not_merge): Remove; unused.
75895         (bitset_contain): Return bool, not unsigned int with one bit on.
75896         All callers changed.
75897         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75898         alignment than re_node_set; do this by defining a new internal
75899         type struct dests_alloc and using it to allocate memory.
75900
75901 2005-09-05  Bruno Haible  <bruno@clisp.org>
75902
75903         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75904         links.
75905
75906 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75907
75908         * modules/size_max (Makefile.am): Add size_max.h
75909
75910 2005-09-04  Derek Price  <derek@ximbiot.com>
75911
75912         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75913
75914 2005-09-03  Simon Josefsson  <jas@extundo.com>
75915
75916         * gnulib-tool: Fix typo.
75917
75918 2005-09-03  Simon Josefsson  <jas@extundo.com>
75919
75920         * config/srclist.txt: Add glibc bug 1293.
75921
75922 2005-09-03  Derek Price  <derek@ximbiot.com>
75923
75924         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75925         From Larry Jones <lawrence.jones@ugs.com>.
75926
75927 2005-09-02  Simon Josefsson  <jas@extundo.com>
75928
75929         * modules/socklen: New file.
75930
75931 2005-09-02  Simon Josefsson  <jas@extundo.com>
75932
75933         * modules/havelib: New module.
75934
75935         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75936         Use havelib.
75937
75938 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         Check for arithmetic overflow when calculating sizes, to prevent
75941         some buffer-overflow issues.  These patches are conservative, in the
75942         sense that when I couldn't determine whether an overflow was possible,
75943         I inserted a run-time check.
75944         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75945         macros.
75946         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75947         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75948         (re_xnrealloc, re_x2nrealloc): New inline functions.
75949         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75950         parse_bracket_exp):
75951         (build_equiv_class, build_charclass): Check for arithmetic overflow
75952         in size expression calculations.
75953         * lib/regex_internal.c (re_string_realloc_buffers):
75954         (build_wcs_upper_buffer, re_node_set_add_intersect):
75955         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75956         (re_dfa_add_node, register_state): Likewise.
75957         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75958         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75959         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75960         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75961
75962 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75965         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75966
75967 2005-09-02  Bruno Haible  <bruno@clisp.org>
75968
75969         Support for lib vs. lib64 distinction on biarch platforms.
75970         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75971         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75972         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75973
75974 2005-09-02  Bruno Haible  <bruno@clisp.org>
75975
75976         * gnulib-tool (import): In the other first-use case, provide defaults
75977         as well.
75978
75979 2005-09-02  Bruno Haible  <bruno@clisp.org>
75980
75981         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75982         patches not yet found in the latest gettext release.
75983
75984 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75987         to avoid a collision with bits/local_lim.h in glibc.
75988         All uses changed.  Problem reported by Dmitry V. Levin in
75989         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75990
75991         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75992         bugs in int versus size_t comparisons.
75993         (re_string_context_at): Fix bug where the code assumed that
75994         Idx is signed.
75995
75996         Use bool where appropriate.
75997         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75998         All callers changed.
75999         (calc_eclosure_iter): Likewise, for ROOT arg.
76000         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76001         (build_charclass_op): Likewise, for NON_MATCH arg.
76002         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76003         (re_string_construct_common): Likewise, for ICASE arg.
76004         * lib/regexec.c (re_search_2_stub, re_search_stub):
76005         Likewise, for RET_LEN arg.
76006         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76007         (set_regs): Likewise, for FL_BACKTRACK arg.
76008         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76009         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76010         (calc_eclosure_iter, parse_bracket_exp):
76011         Use bool for internal variables that are booleans.
76012         * lib/regexec.c (re_search_internal, check_matching,
76013         proceed_next_node):
76014         (set_regs, build_sifted_states, sift_states_bkref):
76015         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76016         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76017         (find_collation_sequence_value):
76018         Likewise.
76019         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76020         (re_node_set_compare):
76021         Return bool, not int. All callers changed.
76022         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76023         (build_trtable, check_node_accept): Likewise.
76024         * lib/regex_internal.h: Include stdbool.h.
76025
76026         Fix bugs uncovered when converting to bool.
76027         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76028         failure instead of charging ahead blindly.
76029         * lib/regex_internal.c (register_state): Likewise.
76030         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76031         for freeing internal storage.
76032         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76033         bitset pieces used as boolean, to avoid undefined behavior
76034         on hosts that do int overflow checking.
76035
76036 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76037
76038         * config/srclist.txt: Add glibc bugs 1285-1287.
76039
76040 2005-09-01  Jim Meyering  <jim@meyering.net>
76041
76042         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76043         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76044         Require gl_STAT_MACROS, too.
76045
76046 2005-09-01  Bruno Haible  <bruno@clisp.org>
76047
76048         * gnulib-tool (import): In the first-use case, provide defaults.
76049
76050 2005-09-01  Bruno Haible  <bruno@clisp.org>
76051
76052         * gnulib-tool (func_import): Remove the .tmp files.
76053
76054 2005-09-01  Bruno Haible  <bruno@clisp.org>
76055
76056         * gnulib-tool (func_import): Fix handling of symbolic links.
76057
76058 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76061         old glibc regex code mishandles strings longer than 2**31 bytes.
76062         This patch fixes this when the regex code is used in gnulib
76063         (i.e., outside glibc).
76064
76065         This patch should not affect the use of the regex code inside
76066         glibc.  No doubt this problem also needs to be handled for glibc
76067         as well, but the result will be an incompatible change to the
76068         glibc ABI, and the old ABI will have to be supported too.  That
76069         can be the the subject for another patch.
76070
76071         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76072         governing whether the rest of this patch is active.  By default,
76073         the macro is disabled and the patch has no effect.
76074         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76075         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76076         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76077         (re_match_2, re_set_registers): Use the new types.
76078         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76079         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76080         New macros.
76081         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76082         (re_string_context_at, bin_tree_t, re_dfastate_t):
76083         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76084         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76085         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76086         (re_string_char_size_at, re_string_wchar_at):
76087         (re_string_elem_size_at):
76088         Use the new types and macros to port to 64-bit hosts.
76089         Use unsigned types for internal values, so that the code
76090         mostly works even for arrays larger than SSIZE_MAX.
76091         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76092         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76093         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76094         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76095         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76096         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76097         (calc_inveclosure, parse_dup_op, build_range_exp):
76098         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76099         (fetch_number, create_token_tree, mark_opt_subexp):
76100         Likewise.
76101         * lib/regex_internal.c (re_string_construct_common,
76102         create_ci_newstate):
76103         (create_cd_newstate, re_string_allocate, re_string_construct):
76104         (re_string_realloc_buffers, build_wcs_upper_buffer):
76105         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76106         (re_string_reconstruct, re_string_peek_byte_case):
76107         (re_string_fetch_byte_case, re_string_context_at):
76108         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76109         (re_node_set_init_copy, re_node_set_add_intersect):
76110         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76111         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76112         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76113         (re_acquire_state, re_acquire_state_context, register_state):
76114         Likewise.
76115         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76116         search_cur_bkref_entry):
76117         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76118         (re_search_internal, re_search_2_stub, re_search_stub)
76119         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76120         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76121         (update_cur_sifted_state, check_dst_limits):
76122         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76123         (check_subexp_limits, sift_states_bkref, merge_state_array):
76124         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76125         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76126         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76127         (expand_bkref_cache, check_node_accept_bytes):
76128         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76129         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76130         (acquire_init_state_context, check_halt_node_context):
76131         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76132         (sift_states_backward, clean_state_log_if_needed):
76133         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76134         (find_recover_state, transit_state_sb, transit_state_mb):
76135         (transit_state_bkref, build_trtable, match_ctx_clean):
76136         Likewise.
76137         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76138         to work around an assumption that REG_MISSING is negative.
76139
76140         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76141         (seek_collating_symbol_entry) [defined _LIBC]:
76142         (lookup_collation_sequence_value) [defined _LIBC]:
76143         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76144         Use prototypes rather than old-style function definitions.
76145         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76146         (transit_state_sb) [0]:
76147         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76148
76149         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76150         rm_eo.
76151
76152         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76153         (optimize_subexps, lower_subexp):
76154         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76155         since the signed shift might overflow.  Use 1u<<31 instead.
76156         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76157         Likewise.
76158         * lib/regexec.c (check_dst_limits_calc_pos_1,
76159         check_subexp_matching_top): Likewise.
76160
76161         * lib/regcomp.c (optimize_subexps, lower_subexp):
76162         Use CHAR_BIT rather than 8, for clarity.
76163         * lib/regexec.c (check_dst_limits_calc_pos_1):
76164         (check_subexp_matching_top): Likewise.
76165         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76166         have to worry about portability issues when shifting it left.
76167         Remove no-longer-needed test for table_size > 0.
76168         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76169         in a word, as the resulting behavior is undefined.
76170         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76171         in one case, a <= should have been an <, and in another case the
76172         whole test was missing.
76173         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76174         the standard name CHAR_BIT.
76175         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76176         this is not true on one's complement and signed-magnitude hosts.
76177
76178         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76179         next_last_offset.
76180         (struct re_dfa_t): Remove unused member states_alloc.
76181         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76182
76183 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76184
76185         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76186         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76187         and large-file glibc and in 32-bit large-file Solaris.
76188
76189 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76192         lengths fit in regoff_t; this isn't true if regoff_t is the same
76193         width as size_t.
76194         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76195         (= START + RANGE) instead of RANGE.  This avoids overflow
76196         problems when regoff_t is the same width as size_t.
76197         All callers changed.
76198         (re_search_2_stub): Check for overflow when adding the
76199         sizes of the two strings.
76200         (re_search_stub): Check for overflow when adding START
76201         to RANGE; if it occurs, substitute the extreme value.
76202
76203 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76204
76205         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76206
76207 2005-08-31  Jim Meyering  <jim@meyering.net>
76208
76209         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76210         a pointer-to-const.
76211         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76212         (register_state): Likewise.
76213         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76214         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76215         (group_nodes_into_DFAstates): Likewise.
76216
76217 2005-08-31  Jim Meyering  <jim@meyering.net>
76218
76219         * check-module: Add a FIXME comment.
76220
76221 2005-08-31  Eric Blake  <ebb9@byu.net>
76222
76223         * modules/unistd-safer (Files): Add unistd--.h.
76224         * modules/stdio-safer (Files): Add stdio--.h.
76225
76226 2005-08-31  Derek Price  <derek@ximbiot.com>
76227
76228         * lib/getdelim.c (getdelim): Return EOF on EOF.
76229         Reported by Larry Jones <lawrence.jones@ugs.com>.
76230
76231 2005-08-31  Bruno Haible  <bruno@clisp.org>
76232
76233         Avoid unnecessary diffs in the generated lib/Makefile.am.
76234         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76235         the generated files.
76236         (func_import): Don't set cmd.
76237
76238 2005-08-31  Bruno Haible  <bruno@clisp.org>
76239
76240         * lib/strstr.c: Include <stddef.h>, for NULL.
76241         * lib/strcasestr.c: Likewise.
76242         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76243
76244 2005-08-31  Bruno Haible  <bruno@clisp.org>
76245
76246         * gnulib-tool: New option --macro-prefix.
76247         (func_import): Use macro_prefix.
76248         (import): Handle option --macro-prefix.
76249
76250 2005-08-31  Bruno Haible  <bruno@clisp.org>
76251
76252         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76253         Also use new variables cached_lgpl, cached_libtool.
76254
76255 2005-08-31  Bruno Haible  <bruno@clisp.org>
76256
76257         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76258         always instantiating them.
76259
76260 2005-08-31  Bruno Haible  <bruno@clisp.org>
76261
76262         * gnulib-tool (func_import): Read the previous cached settings
76263         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76264         earlier added by gnulib but are now dropped. Warn when a gnulib file
76265         overwrites a non-gnulib file.
76266
76267 2005-08-31  Bruno Haible  <bruno@clisp.org>
76268
76269         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76270         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76271         projects that don't keep autogenerated files in CVS. Put into
76272         actioncmd only the specified modules, not the transitive closure.
76273
76274 2005-08-31  Bruno Haible  <bruno@clisp.org>
76275
76276         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76277         Create directories that shall be filled.
76278         (import): Don't look for gl_* macros in configure.ac. Recurse across
76279         all directories containing a gnulib-cache.m4 files, if meaningful.
76280
76281 2005-08-31  Bruno Haible  <bruno@clisp.org>
76282
76283         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76284         (import): Set seen_libtool when we see gl_LIBTOOL.
76285
76286 2005-08-31  Bruno Haible  <bruno@clisp.org>
76287
76288         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76289         declaration macro definitions from generated gnulib.m4.
76290
76291 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76292
76293         * lib/iconvme.h: Add prototype for iconv_alloc.
76294
76295 2005-08-29  Simon Josefsson  <jas@extundo.com>
76296
76297         * lib/iconvme.c: Fix errno.
76298
76299 2005-08-29  Bruno Haible  <bruno@clisp.org>
76300
76301         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76302         that it works when the directory contains spaces.
76303
76304 2005-08-29  Bruno Haible  <bruno@clisp.org>
76305
76306         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76307
76308 2005-08-29  Bruno Haible  <bruno@clisp.org>
76309
76310         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76311         Emit more advice.
76312
76313 2005-08-29  Bruno Haible  <bruno@clisp.org>
76314         and Stepan Kasal  <kasal@ucw.cz>
76315
76316         * check-module: If more parameters are given, check each of them
76317         separately; add more exceptions, as noted by Jim Meyering.
76318         (check_module): New procedure.
76319         (%exempt_header): Now contains all exceptions.
76320
76321 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76322
76323         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76324
76325 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76326
76327         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76328
76329 2005-08-28  Bruno Haible  <bruno@clisp.org>
76330
76331         * m4/gnulib-tool.m4: New file.
76332
76333 2005-08-27  Jim Meyering  <jim@meyering.net>
76334
76335         * modules/unistd-safer (Files): Add pipe-safer.c.
76336         * modules/fcntl-safer (Files): Add creat-safer.c.
76337
76338 2005-08-27  Jim Meyering  <jim@meyering.net>
76339
76340         * m4/stdlib-safer.m4: New file.  From coreutils.
76341         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76342         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76343         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76344         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76345         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76346
76347 2005-08-27  Jim Meyering  <jim@meyering.net>
76348
76349         * lib/fopen-safer.c: Merge minor changes from coreutils.
76350         * lib/dup-safer.c: Likewise.
76351         * lib/fd-safer.c: Likewise.
76352
76353         Merge from coreutils.
76354         * lib/stdio--.h: New file.
76355         * lib/stdlib--.h: New file.
76356         * lib/mkstemp-safer.c: New file.
76357
76358         GNU tar needs these.
76359         * lib/pipe-safer.c: New file.
76360         * lib/creat-safer.c: New file.
76361         * lib/fcntl--.h (creat): Define to creat_safer.
76362         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76363         * lib/unistd--.h (pipe): Define to pipe_safer.
76364         * lib/unistd-safer.h: Declare pipe_safer.
76365
76366 2005-08-26  Simon Josefsson  <jas@extundo.com>
76367
76368         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76369         Haible <bruno@clisp.org>.
76370
76371 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76372
76373         * lib/regex_internal.h: Remove all references to
76374         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76375         or better.
76376         (bitset_not, bitset_merge, bitset_not_merge):
76377         (bitset_mask, re_string_allocate, re_string_construct):
76378         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76379         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76380         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76381         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76382         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76383         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76384         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76385         (re_acquire_state_context):
76386         Remove unnecessary forward decls.
76387         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76388         Put __attribute at function definition,
76389         now that the function decl has been removed.
76390         * lib/regex_internal.c (re_string_peek_byte_case):
76391         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76392         Likewise.
76393
76394 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76395
76396         * m4/regex.m4: Add AC_PREREQ(2.50).
76397         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76398
76399 2005-08-25  Simon Josefsson  <jas@extundo.com>
76400
76401         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76402         __fsetlocking.
76403
76404 2005-08-25  Simon Josefsson  <jas@extundo.com>
76405
76406         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76407         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76408         GLIBC specific code.
76409
76410 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76411
76412         Make regex safe for g++.  This fixes one real bug (an "err"
76413         that should have been "*err").  g++ problem reported by
76414         Sam Steingold.
76415         * lib/regex_internal.h (re_calloc): New macro, consistent with
76416         re_malloc etc.  All callers of calloc changed to use re_calloc.
76417         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76418         not int.  All callers changed.
76419         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76420         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76421         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76422         (find_recover_state): Change "err" to "*err"; this fixes what
76423         appears to be a real bug.
76424         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76425         versus int.
76426
76427 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76428
76429         * modules/regex (Depends-on): Add malloc, since the code
76430         assumes that !malloc(0) means failure.
76431
76432 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76435
76436         alloca modernization/simplification for regex.
76437         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76438         needs to be at the start of the file, and can be moved into
76439         regex_internal.h and simplified.
76440         * lib/regex_internal.h: Include <alloca.h>.
76441         (__libc_use_alloca) [!defined _LIBC]: New macro.
76442         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76443         now works outside glibc.
76444
76445 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76446
76447         * config/srclist.txt: Add glibc bugs 1241, 1245.
76448
76449 2005-08-25  Jim Meyering  <jim@meyering.net>
76450
76451         * lib/open-safer.c: Include <config.h>.
76452         Otherwise, we'd lose LARGEFILE support in any file using
76453         e.g. "fcntl--.h"
76454
76455 2005-08-25  Bruno Haible  <bruno@clisp.org>
76456
76457         * m4/minmax.m4: Require autoconf 2.52.
76458         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76459         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76460         alternatives of translit over the alphabet.
76461         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76462
76463 2005-08-24  Simon Josefsson  <jas@extundo.com>
76464
76465         * tests/test-getpass.c: New file.
76466
76467 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76468
76469         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76470         for GNU regex features.
76471
76472 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76475         * lib/regex.h (regerror): Likewise.
76476
76477         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76478         requires this.  (The code never needed it.)
76479
76480         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76481         All uses of recently-renamed identifiers changed to use the new,
76482         POSIX-compliant names.  The code will build and run just fine
76483         without these changes, but it's better to eat our own dog food
76484         and use the standard-conforming names.
76485
76486         * lib/regex.h: Fix a multitude of POSIX name space violations.
76487         These changes have an effect only for programs that define
76488         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76489         do not change anything for programs compiled in the normal way.
76490         Also, there is no effect on the ABI.
76491
76492         (_REGEX_SOURCE): New macro.
76493         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76494         defined and _GNU_SOURCE is not; this fixes a name space violation.
76495
76496         Rename the following macros to obey POSIX requirements.
76497         The old names are still visible as macros if _REGEX_SOURCE is defined.
76498         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76499         RE_BACKSLASH_ESCAPE_IN_LISTS.
76500         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76501         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76502         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76503         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76504         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76505         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76506         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76507         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76508         (REG_INTERVALS): renamed from RE_INTERVALS.
76509         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76510         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76511         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76512         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76513         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76514         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76515         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76516         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76517         RE_UNMATCHED_RIGHT_PAREN_ORD.
76518         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76519         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76520         (REG_DEBUG): renamed from RE_DEBUG.
76521         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76522         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76523         unusual, since we can't clash with the POSIX REG_ICASE.
76524         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76525         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76526         (REG_NO_SUB): renamed from RE_NO_SUB.
76527         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76528         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76529         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76530         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76531         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76532         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76533         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76534         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76535         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76536         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76537         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76538         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76539         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76540         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76541         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76542         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76543         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76544         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76545         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76546         (REG_FIXED): Renamed from REGS_FIXED.
76547         (REG_NREGS): Renamed from RE_NREGS.
76548
76549         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76550         of other REG_* macros, since POSIX says the user is allowed to
76551         #undef these macros selectively.
76552
76553         (reg_errcode_t): Update comment stating what other tables need
76554         to be consistent.
76555
76556         Rename the following enum values to obey POSIX requirements.
76557         The old names are still visible as macros.
76558         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76559         is not defined, since GNU is supposed to be a superset of POSIX as
76560         much as possible, and since we want reg_errcode_t to be a signed
76561         type for implementation consistency.
76562         (_REG_NOERROR): Renamed from REG_NOERROR.
76563         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76564         (_REG_BADPAT): Renamed from REG_BADPAT.
76565         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76566         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76567         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76568         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76569         (_REG_EBRACK): Renamed from REG_EBRACK.
76570         (_REG_EPAREN): Renamed from REG_EPAREN.
76571         (_REG_EBRACE): Renamed from REG_EBRACE.
76572         (_REG_BADBR): Renamed from REG_BADBR.
76573         (_REG_ERANGE): Renamed from REG_ERANGE.
76574         (_REG_ESPACE): Renamed from REG_ESPACE.
76575         (_REG_BADRPT): Renamed from REG_BADRPT.
76576         (_REG_EEND): Renamed from REG_EEND.
76577         (_REG_ESIZE): Renamed from REG_ESIZE.
76578         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76579         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76580         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76581         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76582         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76583
76584         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76585         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76586         changed.  But support the old name if the new one is not defined
76587         and if _REGEX_SOURCE.
76588
76589         Change the following member names in struct re_pattern_buffer.
76590         The old names are still supported if !_REGEX_SOURCE.
76591         The new names are always supported, regardless of _REGEX_SOURCE.
76592         (re_buffer): Renamed from buffer.
76593         (re_allocated): Renamed from allocated.
76594         (re_used): Renamed from used.
76595         (re_syntax): Renamed from syntax.
76596         (re_fastmap): Renamed from fastmap.
76597         (re_translate): Renamed from translate.
76598         (re_can_be_null): Renamed from can_be_null.
76599         (re_regs_allocated): Renamed from regs_allocated.
76600         (re_fastmap_accurate): Renamed from fastmap_accurate.
76601         (re_no_sub): Renamed from no_sub.
76602         (re_not_bol): Renamed from not_bol.
76603         (re_not_eol): Renamed from not_eol.
76604         (re_newline_anchor): Renamed from newline_anchor.
76605
76606         Change the following member names in struct re_registers.
76607         The old names are still supported if !_REGEX_SOURCE.
76608         The new names are always supported, regardless of _REGEX_SOURCE.
76609         (rm_num_regs): Renamed from num_regs.
76610         (rm_start): Renamed from start.
76611         (rm_end): Renamed from end.
76612
76613         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76614         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76615         Prepend __ to parameter names.
76616
76617         Undo yesterday's changes.
76618
76619 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76622         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76623         lib/regex.c.
76624
76625 2005-08-24  Jim Meyering  <jim@meyering.net>
76626
76627         Sync from coreutils.
76628         * m4/fcntl-safer.m4: New file.
76629
76630         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76631         and object files for this module.
76632
76633 2005-08-24  Jim Meyering  <jim@meyering.net>
76634
76635         Sync from coreutils.
76636         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76637
76638 2005-08-24  Jim Meyering  <jim@meyering.net>
76639
76640         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76641         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76642
76643 2005-08-24  Jim Meyering  <jim@meyering.net>
76644
76645         * modules/fcntl-safer: New module.
76646         * modules/fts (Depends-on): Add fcntl-safer.
76647         * MODULES.html.sh (File descriptor based Input/Output):
76648         Add fcntl-safer.
76649
76650 2005-08-24  Bruno Haible  <bruno@clisp.org>
76651
76652         Support for unit test modules.
76653         * modules/README: Mention tests modules.
76654         * modules/TEMPLATE-TESTS: New file.
76655         * gnulib-tool: New options --extract-tests-module, --with-tests and
76656         --tests-base (unused for the moment).
76657         (testsbase, inctests): New variables.
76658         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76659         (func_verify_module): Exclude TEMPLATE-TESTS.
76660         (func_verify_nontests_module, func_verify_tests_module): New functions.
76661         (func_get_dependencies): Add implicit dependency for tests modules.
76662         (func_get_tests_module): New function.
76663         (func_modules_transitive_closure): When --with-tests was specified,
76664         include the unit tests as well, unless explicitly avoided.
76665         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76666         (func_emit_tests_Makefile_am): New function.
76667         (func_create_testdir): When --with-tests was specified, emit a
76668         tests/ directory.
76669         * MODULES.html.sh (Future developments): Update.
76670
76671 2005-08-24  Bruno Haible  <bruno@clisp.org>
76672
76673         * modules/tls-tests: New file.
76674         * tests/test-tls.c: New file, from GNU gettext.
76675
76676 2005-08-24  Bruno Haible  <bruno@clisp.org>
76677
76678         * modules/lock-tests: New file.
76679         * tests/test-lock.c: New file, from GNU gettext.
76680
76681 2005-08-24  Bruno Haible  <bruno@clisp.org>
76682
76683         * lib/lock.h: Add multiple inclusion guard.
76684         * lib/tls.h: Add multiple inclusion guard.
76685
76686 2005-08-24  Bruno Haible  <bruno@clisp.org>
76687
76688         * gnulib-tool: Add support for the --aux-dir option to
76689         --create-testdir, --create-megatestdir, --test, --megatest.
76690         (func_create_testdir, func_create_megatestdir): Optionally emit a
76691         AC_CONFIG_AUX_DIR directive.
76692         (create-testdir, create-megatestdir, test, megatest): Provide a
76693         default value for $auxdir.
76694
76695 2005-08-24  Bruno Haible  <bruno@clisp.org>
76696
76697         * gnulib-tool (import): Use compound statement instead of subshell
76698         where possible.
76699
76700 2005-08-24  Bruno Haible  <bruno@clisp.org>
76701
76702         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76703
76704 2005-08-24  Bruno Haible  <bruno@clisp.org>
76705
76706         * gnulib-tool (func_version): Update.
76707
76708 2005-08-24  Bruno Haible  <bruno@clisp.org>
76709
76710         * gnulib-tool (func_import, func_create_testdir,
76711         func_create_megatestdir): Quote all autoconf macro arguments.
76712
76713 2005-08-24  Bruno Haible  <bruno@clisp.org>
76714
76715         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76716         option --force, because --force causes the aclocal.m4 of each
76717         subdirectory to be newer than the corresponding config.h.in.
76718
76719 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76720
76721         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76722         All contents moved to gl_REGEX.
76723         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76724         assume that it does.
76725
76726 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         * lib/regex.h (REG_NOSYS)
76729         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76730         Define, since POSIX requires it as of 2001.
76731         (_REG_ENOSYS)
76732         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76733         New private symbol, used to keep the enum signed in all cases.
76734         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76735         Youngman in
76736         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76737
76738         * lib/regex_internal.c (re_string_skip_chars, register_state):
76739         (calc_state_hash):
76740         Remove forward decls; no longer needed now that we use prototypes.
76741         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76742         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76743         (clean_state_log_if_needed): Likewise.
76744
76745 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76746
76747         * config/srclist.txt: Add glibc bugs 1231-1233.
76748
76749 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         Fix problems reported by Sam Steingold in
76752         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76753         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76754         assumed that reg_errcode_t is a signed type, which is not
76755         necessarily true if _XOPEN_SOURCE is not defined.
76756         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76757         since some compilers warn about it otherwise.
76758
76759 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76762         (init_word_char, create_initial_state, duplicate_node_closure):
76763         (fetch_token, peek_token_bracket, build_range_exp):
76764         (build_collating_symbol): Remove forward decls; no longer needed
76765         now that we use prototypes.
76766
76767         * lib/regcomp.c:
76768         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76769         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76770         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76771         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76772         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76773         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76774         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76775         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76776         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76777         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76778         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76779         (build_charclass, build_charclass_op, fetch_number, create_tree):
76780         (create_token_tree, mark_opt_subexp, duplicate_tree):
76781         Use prototypes rather than old-style definitions.
76782
76783         * lib/regex_internal.c:
76784         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76785         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76786         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76787         (re_string_reconstruct, re_string_peek_byte_case):
76788         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76789         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76790         (re_node_set_init_copy, re_node_set_add_intersect):
76791         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76792         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76793         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76794         (re_acquire_state, re_acquire_state_context, register_state):
76795         (create_ci_newstate, create_cd_newstate, free_state):
76796         Likewise.
76797         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76798         re_search_2):
76799         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76800         (re_search_internal, prune_impossible_nodes):
76801         (acquire_init_state_context, check_matching, static):
76802         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76803         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76804         (update_regs, sift_states_backward, build_sifted_states):
76805         (clean_state_log_if_needed, merge_state_array):
76806         (update_cur_sifted_state, add_epsilon_src_nodes):
76807         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76808         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76809         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76810         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76811         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76812         (check_arrival, check_arrival_add_next_nodes):
76813         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76814         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76815         (check_node_accept_bytes, check_node_accept, extend_buffers):
76816         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76817         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76818         (sift_ctx_init):
76819         Likewise.
76820
76821         * lib/regex_internal.h:
76822         (re_string_allocate, re_string_construct, re_string_reconstruct):
76823         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76824         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76825         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76826         (re_string_context_at, re_string_peek_byte_case):
76827         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76828         is defined, since we now use prototypes always.
76829
76830         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76831         C89 or better.  All uses removed.
76832
76833 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * config/srclist.txt: Add glibc bugs 1220-1227.
76836
76837 2005-08-20  Jim Meyering  <jim@meyering.net>
76838
76839         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76840         of unused local, dfa.
76841
76842 2005-08-20  Bruno Haible  <bruno@clisp.org>
76843
76844         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76845
76846 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76847
76848         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76849         (re_node_set_insert_last, re_dfa_add_node):
76850         Rename local variables to avoid GCC shadowing warnings.
76851
76852 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76855         [defined lint]: Suppress bogus uninitialized-variable warnings.
76856
76857         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76858         and let the caller return REG_ESPACE if out of space.  This
76859         removes an uninitialied-variable warning with GCC 4.0.1, and also
76860         avoids taking the address of a local variable.  All callers
76861         changed.
76862
76863 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76866         $LIBCSRC/posix/regexec.c.
76867         Add glibc bug 1217 for regcomp.c.
76868
76869 2005-08-19  Jim Meyering  <jim@meyering.net>
76870
76871         * lib/regexec.c (proceed_next_node): Redo local variables to
76872         avoid GCC shadowing warnings.
76873
76874 2005-08-18  Bruno Haible  <bruno@clisp.org>
76875
76876         * lib/strstr.c (strstr): Fix return value in multibyte case.
76877         * lib/strcasestr.c (strcasestr): Likewise.
76878
76879 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76880
76881         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76882
76883 2005-08-17  Jim Meyering  <jim@meyering.net>
76884
76885         Make the %s format (seconds since the epoch) work for a negative
76886         number and when used with a zero-padded field width, e.g. %015s.
76887
76888         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76889         label so that it precedes the code to set `digits'.  Otherwise,
76890         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76891         print `00-22'.  Now, it prints `-0022', as it should.
76892
76893 2005-08-17  Bruno Haible  <bruno@clisp.org>
76894
76895         * modules/strstr (Files): Add m4/mbrtowc.m4.
76896         (Depends-on): Add mbuiter.
76897
76898 2005-08-17  Bruno Haible  <bruno@clisp.org>
76899
76900         * modules/strcasestr: New file.
76901         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76902         strcasestr.
76903
76904 2005-08-17  Bruno Haible  <bruno@clisp.org>
76905
76906         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76907
76908 2005-08-17  Bruno Haible  <bruno@clisp.org>
76909
76910         * modules/mbuiter: New file.
76911         * MODULES.html.sh (Extended multibyte and wide character utilities):
76912         Add mbuiter.
76913
76914 2005-08-17  Bruno Haible  <bruno@clisp.org>
76915
76916         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76917         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76918
76919 2005-08-17  Bruno Haible  <bruno@clisp.org>
76920
76921         * m4/strcasestr.m4: New file.
76922
76923 2005-08-17  Bruno Haible  <bruno@clisp.org>
76924
76925         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76926         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76927
76928 2005-08-17  Bruno Haible  <bruno@clisp.org>
76929
76930         * lib/strcasestr.h: New file.
76931         * lib/strcasestr.c: New file.
76932
76933 2005-08-17  Bruno Haible  <bruno@clisp.org>
76934
76935         * lib/strcasecmp.c: Use mbuiter.h.
76936
76937 2005-08-17  Bruno Haible  <bruno@clisp.org>
76938
76939         * lib/mbuiter.h: New file.
76940
76941 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76944         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76945         and gl_GETOPT are both invoked via different paths (as happens
76946         with GNU tar CVS because it uses both argp and getopt), the former
76947         wins.
76948
76949 2005-08-16  Bruno Haible  <bruno@clisp.org>
76950
76951         * modules/tls: New file.
76952         * MODULES.html.sh (Multithreading): Add tls.
76953
76954 2005-08-16  Bruno Haible  <bruno@clisp.org>
76955
76956         * modules/strnlen1: New file.
76957         * MODULES.html.sh (String handling): Add strnlen1.
76958
76959 2005-08-16  Bruno Haible  <bruno@clisp.org>
76960
76961         * modules/strcase (Files): Add m4/mbrtowc.m4.
76962         (Depends-on): Add strnlen1, mbchar.
76963
76964 2005-08-16  Bruno Haible  <bruno@clisp.org>
76965
76966         * modules/mbiter: New file.
76967         * MODULES.html.sh (Extended multibyte and wide character utilities):
76968         Add mbiter.
76969
76970 2005-08-16  Bruno Haible  <bruno@clisp.org>
76971
76972         * modules/mbfile: New file.
76973         * MODULES.html.sh (Extended multibyte and wide character utilities):
76974         Add mbfile.
76975
76976 2005-08-16  Bruno Haible  <bruno@clisp.org>
76977
76978         * modules/mbchar: New file.
76979         * MODULES.html.sh (Extended multibyte and wide character utilities):
76980         New section.
76981
76982 2005-08-16  Bruno Haible  <bruno@clisp.org>
76983
76984         * m4/tls.m4: New file, from GNU gettext.
76985
76986 2005-08-16  Bruno Haible  <bruno@clisp.org>
76987
76988         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76989         always.
76990         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76991
76992 2005-08-16  Bruno Haible  <bruno@clisp.org>
76993
76994         * m4/mbiter.m4: New file.
76995
76996 2005-08-16  Bruno Haible  <bruno@clisp.org>
76997
76998         * m4/mbfile.m4: New file.
76999
77000 2005-08-16  Bruno Haible  <bruno@clisp.org>
77001
77002         * m4/mbchar.m4: New file.
77003
77004 2005-08-16  Bruno Haible  <bruno@clisp.org>
77005
77006         * lib/tls.h: New file, from GNU gettext.
77007         * lib/tls.c: New file, from GNU gettext.
77008
77009 2005-08-16  Bruno Haible  <bruno@clisp.org>
77010
77011         * lib/strnlen1.h: New file.
77012         * lib/strnlen1.c: New file.
77013
77014 2005-08-16  Bruno Haible  <bruno@clisp.org>
77015
77016         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77017         (mbi_init): Update.
77018         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77019         NUL byte, not after it.
77020
77021 2005-08-16  Bruno Haible  <bruno@clisp.org>
77022
77023         * lib/strcase.h (strcasecmp): Add note in comments.
77024         * lib/strncasecmp.c: Use code from strcasecmp.c.
77025         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77026         (strcasecmp): Work correctly in multibyte locales.
77027
77028 2005-08-16  Bruno Haible  <bruno@clisp.org>
77029
77030         * lib/mbiter.h: New file.
77031
77032 2005-08-16  Bruno Haible  <bruno@clisp.org>
77033
77034         * lib/mbfile.h: New file.
77035
77036 2005-08-16  Bruno Haible  <bruno@clisp.org>
77037
77038         * lib/mbchar.h: New file.
77039         * lib/mbchar.c: New file.
77040
77041 2005-08-16  Bruno Haible  <bruno@clisp.org>
77042
77043         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77044         the valid ones. Makes the comparison operations transitive:
77045         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77046         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77047
77048 2005-08-15  Simon Josefsson  <jas@extundo.com>
77049
77050         * modules/ssize_t (License): Change to 'unlimited'.
77051
77052         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77053
77054 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77057         Add comments for each pending glibc patch.
77058
77059 2005-08-15  Bruno Haible  <bruno@clisp.org>
77060
77061         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77062         __cplusplus is defined.
77063
77064 2005-08-14  Jim Meyering  <jim@meyering.net>
77065
77066         Sync from coreutils.
77067
77068         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77069         Use the hash-table-based cycle-detection code not just when
77070         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77071         Reported by James Youngman in
77072         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77073         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77074         FTS_TIGHT_CYCLE_CHECK.
77075         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77076         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77077         once again.
77078         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77079         * lib/fts.c (fd_safer): Remove decl.
77080         Include fcntl--.h rather than unistd-safer.h
77081         (fts_safe_changedir): Don't call fd_safer; no longer needed
77082         now that we include fcntl--.h.
77083
77084 2005-08-12  Simon Josefsson  <jas@extundo.com>
77085
77086         * modules/getndelim2: Use ssize_t module.
77087         * modules/getnline: Likewise.
77088         * modules/safe-read: Likewise.
77089         * modules/xreadlink: Likewise.
77090
77091         * modules/ssize_t: New file.
77092
77093 2005-08-12  Simon Josefsson  <jas@extundo.com>
77094
77095         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77096
77097 2005-08-12  Simon Josefsson  <jas@extundo.com>
77098
77099         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77100         ssize_t.
77101
77102 2005-08-12  Simon Josefsson  <jas@extundo.com>
77103
77104         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77105         readline, getdelim and check_version.
77106         (Support for systems lacking ISO C 99: Sizes of integer types):
77107         Add size_max.
77108
77109 2005-08-12  Bruno Haible  <bruno@clisp.org>
77110
77111         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77112
77113 2005-08-11  Simon Josefsson  <jas@extundo.com>
77114
77115         * modules/readline: New file.
77116
77117         * modules/strnlen (Files): Add strnlen.h.
77118
77119 2005-08-11  Simon Josefsson  <jas@extundo.com>
77120
77121         * m4/readline.m4: New file.
77122
77123 2005-08-11  Simon Josefsson  <jas@extundo.com>
77124
77125         * lib/readline.h, readline.c: New file.
77126
77127 2005-08-11  Simon Josefsson  <jas@extundo.com>
77128
77129         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77130         gl_AVOID.
77131
77132 2005-08-11  Bruno Haible  <bruno@clisp.org>
77133
77134         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77135
77136 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77137
77138         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77139
77140 2005-08-10  Simon Josefsson  <jas@extundo.com>
77141
77142         * tests/test-iconvme.c: New file.
77143
77144 2005-08-10  Simon Josefsson  <jas@extundo.com>
77145
77146         * m4/strnlen.m4: New file.
77147
77148         * m4/strndup.m4: Don't check for strnlen declaration, done in
77149         strnlen.m4.
77150
77151 2005-08-10  Simon Josefsson  <jas@extundo.com>
77152
77153         * lib/strndup.c: Use strnlen.h.
77154
77155         * lib/strnlen.h: New file.
77156
77157 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77158
77159         * README: Typos.
77160
77161 2005-08-02  Simon Josefsson  <jas@extundo.com>
77162
77163         * modules/readline: New file.
77164
77165 2005-08-02  Simon Josefsson  <jas@extundo.com>
77166
77167         * modules/getdelim: New file.
77168
77169         * modules/getline: Rewrite, don't use getndelim2.
77170
77171 2005-08-02  Simon Josefsson  <jas@extundo.com>
77172
77173         * m4/getline.m4: Separate out getdelim stuff into separate module.
77174
77175         * m4/getdelim.m4: New file.
77176
77177 2005-08-02  Simon Josefsson  <jas@extundo.com>
77178
77179         * lib/getline.h, getline.c: Rewrite.
77180
77181         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77182
77183 2005-07-31  Bruno Haible  <bruno@clisp.org>
77184
77185         * lib/lock.h (gl_lock_initializer): New macro.
77186         (gl_lock_define_initialized): Use it.
77187         (gl_rwlock_initializer): New macro.
77188         (gl_rwlock_define_initialized): Use it.
77189         (gl_recursive_lock_initializer): New macro.
77190         (gl_recursive_lock_define_initialized): Use it.
77191
77192 2005-07-30  Karl Berry  <karl@gnu.org>
77193
77194         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77195         Report from Ben Pfaff, regarding getopt.
77196
77197 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77200         normal way.
77201         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77202         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77203         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77204         (gl_GETOPT): Use the new macros.  Most of the implementation
77205         is moved to the new macros.  This is for programs like Emacs
77206         that don't want all the functionality of gl_GETOPT.
77207
77208 2005-07-26  Bruno Haible  <bruno@clisp.org>
77209
77210         * m4/lock.m4: Update from GNU gettext.
77211
77212 2005-07-26  Bruno Haible  <bruno@clisp.org>
77213
77214         * lib/lock.h: Update from GNU gettext.
77215         * lib/lock.c: Update from GNU gettext.
77216
77217 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77218
77219         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77220         obsolescent AC_TRY_RUN.  Include the default includes files, for
77221         'exit'.
77222
77223 2005-07-24  Bruno Haible  <bruno@clisp.org>
77224
77225         * modules/visibility: New file.
77226         * MODULES.html.sh (Misc): Add visibility.
77227
77228 2005-07-24  Bruno Haible  <bruno@clisp.org>
77229
77230         * m4/visibility.m4: New file.
77231
77232 2005-07-24  Bruno Haible  <bruno@clisp.org>
77233
77234         * doc/visibility.texi: New file.
77235
77236 2005-07-22  Bruno Haible  <bruno@clisp.org>
77237
77238         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77239         $(ALLOCA_H), redundant through BUILT_SOURCES.
77240         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77241         redundant through BUILT_SOURCES.
77242         * modules/byteswap (Makefile.am): Remove explicit dependency on
77243         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77244         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77245         $(FNMATCH_H), redundant through BUILT_SOURCES.
77246         * modules/getopt (Makefile.am): Remove explicit dependency on
77247         $(GETOPT_H), redundant through BUILT_SOURCES.
77248         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77249         redundant through BUILT_SOURCES.
77250         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77251         redundant through BUILT_SOURCES.
77252         * modules/stdbool (Makefile.am): Remove explicit dependency on
77253         $(STDBOOL_H), redundant through BUILT_SOURCES.
77254         * modules/stdint (Makefile.am): Remove explicit dependency on
77255         $(STDINT_H), redundant through BUILT_SOURCES.
77256         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77257         Remove explicit dependency on $(SYSEXITS_H).
77258         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77259
77260 2005-07-18  Simon Josefsson  <jas@extundo.com>
77261
77262         * lib/check-version.c (check_version): Accept identical versions too.
77263
77264 2005-07-18  Bruno Haible  <bruno@clisp.org>
77265
77266         * modules/lock: New file.
77267         * MODULES.html.sh (Multithreading): New section.
77268
77269 2005-07-18  Bruno Haible  <bruno@clisp.org>
77270
77271         * m4/lock.m4: New file, from GNU gettext.
77272
77273 2005-07-18  Bruno Haible  <bruno@clisp.org>
77274
77275         * lib/lock.h: New file, from GNU gettext.
77276         * lib/lock.c: New file, from GNU gettext.
77277
77278 2005-07-18  Bruno Haible  <bruno@clisp.org>
77279
77280         * lib/lock.h (gl_once_t): New type.
77281         (gl_once_define, gl_once): New macros.
77282         * lib/lock.c (fresh_once): New variable.
77283         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77284         functions.
77285
77286 2005-07-16  Simon Josefsson  <jas@extundo.com>
77287
77288         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77289         workaround, suggested by Bruno.
77290
77291 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77292
77293         * modules/xalloc (Depends-on): Add xalloc-die.
77294         * modules/xvasprintf (Depends-on): Add xalloc-die.
77295
77296 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77297
77298         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77299         with a minor change.
77300
77301 2005-07-15  Bruno Haible  <bruno@clisp.org>
77302
77303         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77304         When using lib/poll.c, define poll as rpl_poll.
77305
77306 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77307
77308         * modules/argp (Depends-on): Remove unlocked-io.
77309
77310 2005-07-14  Derek Price  <derek@ximbiot.com>
77311
77312         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77313         for glob symlink bug.
77314
77315 2005-07-14  Bruno Haible  <bruno@clisp.org>
77316
77317         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77318         Instead, test for *_unlocked function declarations directly.
77319
77320 2005-07-11  Simon Josefsson  <jas@extundo.com>
77321
77322         * modules/size_max: New file.
77323
77324         * modules/xsize: Depend on size_max module for size_max.m4.
77325
77326 2005-07-11  Simon Josefsson  <jas@extundo.com>
77327
77328         * lib/size_max.h: New file.
77329
77330 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77331
77332         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77333         copyright symbol and the year.
77334         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77335         (version_etc_va): Use parameterized copyright notice.
77336         Reword to conform to the current GNU coding standards.
77337
77338 2005-07-11  Karl Berry  <karl@gnu.org>
77339
77340         * doc/gnulib.texi (Quoting): new node.
77341         (Initial import): more info, from Patrice.
77342
77343 2005-07-11  Bruno Haible  <bruno@clisp.org>
77344
77345         * gnulib-tool (func_usage): Document option --avoid.
77346         (Command line options): Handle --avoid.
77347         (func_acceptable): New function.
77348         (func_modules_transitive_closure): Use it.
77349
77350 2005-07-11  Bruno Haible  <bruno@clisp.org>
77351
77352         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77353         Reported by Jim Meyering.
77354
77355 2005-07-10  Bruno Haible  <bruno@clisp.org>
77356
77357         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77358         Needed when size_t is smaller than 'unsigned int'.
77359         Reported by Paul Eggert.
77360
77361 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77362
77363         * modules/argp (Depends-on): Add unlocked-io
77364
77365 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77366
77367         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77368         block of defines.
77369
77370 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77371
77372         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77373         fix now.
77374
77375 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77376         and Paul Eggert  <eggert@cs.ucla.edu>
77377
77378         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77379         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77380
77381 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77382
77383         * modules/regex (Files): Add lib/regex_internal.c,
77384         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77385         (Depends-on): Add extensions.
77386         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77387
77388 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77389
77390         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77391         pathconf.
77392         * m4/same.m4 (gl_SAME): Likewise.
77393         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77394
77395         * m4/regex.m4: Adjust to new libc regex implementation.
77396         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77397         all the .c and .h parts of (the new) regex.
77398         Quote the m4 stuff better.
77399         Check for RE_ICASE bug of old gnulib.
77400         Check for REG_STARTEND of recent libc.
77401         Rename local variables from jm_* to gl_*.
77402         Quote operand of "test -f".
77403         Say "recent enough" version of libc, not "version 2".
77404         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77405         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77406         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77407         Remove check for btowc, isascii.
77408         Require AM_LANGINFO_CODESET.
77409
77410 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77411
77412         * lib/regex.c, regex.h: Sync from libc.
77413         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77414         * lib/regexec.c:
77415         New files, synced from libc, except that regex_internal.h
77416         currently has a small porting fix.
77417
77418 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77421         regex_internal.c, regexec.c.
77422         Add regex_internal.h too, but as a comment, since the libc version
77423         is currently broken in gnulib mode.
77424
77425 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         Support programs like Emacs that use gnulib but not gettext.
77428         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77429         * modules/gettext-h: New file.
77430         * modules/gettext (Files): Remove lib/gettext.h.
77431         (Depends-on): Add gettext-h.
77432         (Makefile.am): Remove lib_SOURCES.
77433         * modules/argmatch, modules/c-stack, modules/closeout:
77434         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77435         * modules/execute, modules/file-type, modules/getaddrinfo:
77436         * modules/getopt, modules/human, modules/javacomp:
77437         * modules/javaexec, modules/mkdir-p, modules/obstack:
77438         * modules/openat, modules/pagealign_alloc, modules/pipe:
77439         * modules/quotearg, modules/regex, modules/rpmatch:
77440         * modules/unicodeio, modules/userspec, modules/version-etc:
77441         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77442         * modules/xsetenv:
77443         Depend on gettext-h, not gettext.
77444
77445 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77446
77447         * gnulib-tool (func_import): Add support for 'public domain' license.
77448         * modules/alloca, modules/atexit, modules/memmove:
77449         Now public domain, not GPL.
77450         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77451         * modules/realloc, modules/strerror, modules/strtod:
77452         Now LGPL, not GPL.
77453
77454 2005-07-05  Bruno Haible  <bruno@clisp.org>
77455
77456         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77457         autoconf CVS. Needed for mingw.
77458
77459 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         Remove the dependency of the strftime module on the tzset module.
77462         * modules/strftime (Depends-on): Remove dependency on tzset.
77463
77464 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         Remove the dependency of the strftime module on the tzset module.
77467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77468         gl_FUNC_TZSET_CLOBBER.
77469
77470 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77471
77472         Remove the dependency of the strftime module on the tzset module.
77473         * lib/strftime.c (my_strftime)
77474         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77475         Copy the input structure, to work around some of the bug with
77476         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77477         Solaris releases, you should also use the tzset module, but we won't
77478         require it as a dependency any more since we don't want LGPLed code
77479         to depend on GPLed code.
77480
77481 2005-07-02  Jim Meyering  <jim@meyering.net>
77482
77483         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77484         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77485         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77486         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77487
77488 2005-07-02  Jim Meyering  <jim@meyering.net>
77489
77490         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77491
77492 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77493
77494         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77495         declares only 'struct timespec;' (!).
77496
77497 2005-07-01  Jim Meyering  <jim@meyering.net>
77498
77499         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77500         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77501         * lib/save-cwd.c, tempname.c:
77502         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77503         and don't include <sys/file.h>).
77504
77505 2005-06-29  Jim Meyering  <jim@meyering.net>
77506
77507         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77508         type name.  Use the variable name instead.
77509         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77510         Likewise.
77511
77512 2005-06-28  Simon Josefsson  <jas@extundo.com>
77513
77514         * modules/check-version (Files): Add check-version.m4.
77515
77516 2005-06-28  Simon Josefsson  <jas@extundo.com>
77517
77518         * m4/check-version.m4: New file, suggested by Jim Meyering
77519         <jim@meyering.net>.
77520
77521 2005-06-28  Simon Josefsson  <jas@extundo.com>
77522
77523         * lib/check-version.h, lib/check-version.c: New files.
77524
77525 2005-06-28  Simon Josefsson  <jas@extundo.com>
77526
77527         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77528         collision with global variable.  Better indentation.  Don't
77529         increment buffer pointer beyond buffer end.  Based on comments
77530         from Paul Eggert <eggert@cs.ucla.edu>.
77531
77532         * lib/base64.h: Indent.
77533
77534 2005-06-28  Simon Josefsson  <jas@extundo.com>
77535
77536         * doc/gnulib.texi (Library version handling): New section.
77537
77538 2005-06-28  Jim Meyering  <jim@meyering.net>
77539
77540         * check-module (find_included_lib_files): Hard-code another
77541         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77542         but modules/fts-lgpl (correctly) does not list those files.
77543
77544         * modules/canonicalize (Files): Add lib/pathmax.h.
77545
77546 2005-06-25  Simon Josefsson  <jas@extundo.com>
77547
77548         * modules/check-version: New file.
77549
77550 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77551
77552         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77553         initializer of struct addrinfo, as an indication that we don't
77554         care how many members the structure has.
77555
77556 2005-06-24  Derek Price  <derek@ximbiot.com>
77557         and Bruno Haible  <bruno@clisp.org>
77558
77559         Remove stat module & update lstat.
77560         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77561         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77562         * m4/stat.m4: Remove this file.
77563
77564 2005-06-24  Derek Price  <derek@ximbiot.com>
77565         and Bruno Haible  <bruno@clisp.org>
77566
77567         Remove stat module & update lstat.
77568         * lib/stat.c: Remove this file...
77569         (slash_aware_lstat): ...moving this content and its support...
77570         * lib/lstat.c (rpl_lstat): ...into here.
77571         * lib/lstat.h: New file.
77572
77573 2005-06-24  Derek Price  <derek@ximbiot.com>
77574         and Bruno Haible  <bruno@clisp.org>
77575
77576         Remove stat module & update lstat.
77577         * config/srclist.txt (libc sources): Remove stat.
77578
77579 2005-06-24  Derek Price  <derek@ximbiot.com>
77580         and Bruno Haible  <bruno@clisp.org>
77581
77582         Remove stat module & update lstat.
77583         * MODULES.html.sh (stat): Remove.
77584         * MODULES.html: Regenerated.
77585         * modules/lstat (Description): Correct function name.
77586         (Files): Add "lstat.h".
77587         (Depends-on): Remove stat, add xalloc, stat-macros.
77588         * modules/stat: Remove this file.
77589         (Include): Add "lstat.h", remove <sys/stat.h>.
77590
77591 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77592
77593         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77594         (ranged_convert): Don't save conversion in a temporary struct.
77595         This causes a warning with GCC 4.0.0, and anyway in the typical
77596         case it's not worth the extra 100 bytes or so of code.
77597         (ranged_convert, __mktime_internal): When calling a function via a
77598         pointer P, use P () rather than (*P) (), as we now assume C89 or
77599         better.
77600
77601 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77602
77603         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77604         "who -r" failed to give output.  Problem reported by Tim Waugh.
77605
77606         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77607         (xcalloc): Use it to avoid needless tests.
77608         Problem reported by Jim Meyering.
77609
77610 2005-06-20  Derek Price  <derek@ximbiot.com>
77611
77612         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77613         unnecessary for Autoconfs > 2.59c.
77614
77615 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77616
77617         * lib/argp.h (__option_is_short): Check upper limit of
77618         __key. Isprint() requires its argument to have the value
77619         of an unsigned char or EOF.
77620
77621 2005-06-16  Jim Meyering  <jim@meyering.net>
77622
77623         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77624         when either N or S is zero.
77625
77626 2005-06-16  Derek Price  <derek@ximbiot.com>
77627
77628         * m4/bison.m4: Declare YACC & YFLAGS precious.
77629
77630 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77631
77632         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77633         multibyte string or pattern, fall back on unibyte matching.
77634         Problem reported by James Youngman.
77635
77636 2005-06-08  Bruno Haible  <bruno@clisp.org>
77637
77638         * modules/csharpcomp: New file.
77639         * MODULES.html.sh (C#): Add csharpcomp.
77640
77641 2005-06-08  Bruno Haible  <bruno@clisp.org>
77642
77643         * m4/csharpcomp.m4: New file, from GNU gettext.
77644
77645 2005-06-08  Bruno Haible  <bruno@clisp.org>
77646
77647         * lib/csharpcomp.h: New file, from GNU gettext.
77648         * lib/csharpcomp.c: New file, from GNU gettext.
77649         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77650
77651 2005-06-08  Bruno Haible  <bruno@clisp.org>
77652
77653         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77654         warning on mingw.
77655
77656 2005-06-07  Derek Price  <derek@ximbiot.com>
77657
77658         Sync from CVS.
77659         * lib/glob_.h: Indent nested #ifdef.
77660
77661 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77662
77663         Sync from coreutils.
77664         Use "file name" when talking about file names, instead of "filename"
77665         or "path", as per the GNU coding standards.
77666         * lib/mkdir-p.c: Renamed from makepath.c.
77667         (make_dir_parents): Renamed from make_path.  All callers changed.
77668         * lib/mkdir-p.h: Likewise.  All includers changed.
77669         * lib/filenamecat.c: Renamed from path-concat.c.
77670         (file_name_concat): Renamed from path_concat.  All callers changed.
77671         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77672         * lib/filenamecat.h: Likewise.  All includers changed.
77673         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77674         in comments or local variable names.
77675         * lib/basename.c: Likewise.
77676         * lib/canonicalize.c, canonicalize.h: Likewise.
77677         * lib/dirname.c, dirname.h: Likewise.
77678         * lib/euidaccess.c: Likewise.
77679         * lib/exclude.c: Likewise
77680         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77681         * lib/fsusage.c, fsuage.h: Likewise.
77682         * lib/fts.c, fts_.h: Likewise.
77683         * lib/getcwd.c: Likewise.
77684         * lib/getloadavg.c: Likewise.
77685         * lib/mkstemp.c: Likewise.
77686         * lib/mountlist.c, mountlist.h: Likewise.
77687         * lib/openat.c, openat.h: Likewise.
77688         * lib/readlink-stub.c: Likewise.
77689         * lib/readutmp.c, readutmp.h: Likewise.
77690         * lib/rename.c: Likewise.
77691         * lib/rmdir.c: Likewise.
77692         * lib/same.c: Likewise.
77693         * lib/savedir.c: Likewise.
77694         * lib/stripslash.c: Likewise.
77695         * lib/tempname.c: Likewise.
77696         * lib/xreadlink.c: Likewise.
77697         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77698         All uses changed.
77699         * lib/exclude.h: Likewise.
77700
77701         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77702         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77703         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77704         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77705         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77706         files have been getting away with it for years (MORE/BSD 4.3
77707         is extinct now).
77708         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77709         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77710
77711         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77712         Define to 256, not 255, as per modern POSIX.
77713
77714 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         Sync from coreutils.
77717         Use "file name" when talking about file names, instead of "filename"
77718         or "path", as per the GNU coding standards.
77719         * MODULES.html.sh: mkdir-p renamed from makepath.
77720         filenamecat renamed from path-concat.
77721         * modules/filenamecat: Renamed from modules/path-concat.
77722         (Files): filenamecat.h and filenamecat.c renamed from
77723         path-concat.h and path-concat.c.
77724         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77725         (Include): filenamecat.h, not path-concat.h.
77726         * modules/mkdir-p: Renamed from modules/makepath.
77727         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77728         makepath.c.
77729         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77730         (Include): mkdir-p.h, not makepath.h.
77731
77732 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         Sync from coreutils.
77735         * m4/mkdir-p.m4: Renamed from makepath.m4.
77736         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77737         Rename files from makepath.c to mkdir-p.c, and from
77738         makepath.h to mkdir-p.h.
77739         * m4/filenamecat.m4: Renamed from path-concat.m4.
77740         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77741         Rename files from path-concat.c to filenamecat.c,
77742         and from path-concat.h to filenamecat.h.
77743         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77744         "file name" in local variables or comments.
77745         * m4/rename.m4: Likewise.
77746
77747 2005-06-01  Bruno Haible  <bruno@clisp.org>
77748
77749         * modules/csharpexec: New file.
77750         * MODULES.html.sh (C#): New section.
77751
77752 2005-06-01  Bruno Haible  <bruno@clisp.org>
77753
77754         * m4/csharp.m4: New file, from GNU gettext.
77755         * m4/csharpexec.m4: New file, from GNU gettext.
77756
77757 2005-06-01  Bruno Haible  <bruno@clisp.org>
77758
77759         * lib/csharpexec.h: New file, from GNU gettext.
77760         * lib/csharpexec.c: New file, from GNU gettext.
77761         * lib/csharpexec.sh.in: New file, from GNU gettext.
77762
77763 2005-05-31  Derek Price  <derek@ximbiot.com>
77764             Paul Eggert  <eggert@cs.ucla.edu>
77765
77766         Sync from cvs.
77767         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77768
77769 2005-05-31  Derek Price  <derek@ximbiot.com>
77770             Paul Eggert  <eggert@cs.ucla.edu>
77771
77772         Sync from cvs.
77773         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77774
77775 2005-05-29  Derek Price  <derek@ximbiot.com>
77776
77777         * config/srclist.txt (glob_.h, glob.c): Add these files.
77778
77779 2005-05-29  Derek Price  <derek@ximbiot.com>
77780
77781         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77782         * modules/glob: New file.
77783         * modules/getlogin_r: Add link to POSIX spec in description.
77784
77785 2005-05-29  Derek Price  <derek@ximbiot.com>
77786             Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         * m4/glob.m4: New file.
77789
77790 2005-05-29  Derek Price  <derek@ximbiot.com>
77791             Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * lib/glob_.h, lib/glob.c: New files.
77794
77795 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77798         * modules/fts-lgpl (Depends-on): Remove gettext.
77799
77800 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77803         and don't require gt_INTTYPES_PRI.
77804
77805 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77806
77807         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77808
77809         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77810         the configuration hassle isn't worth it.
77811         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77812         (LONGEST_MODIFIER, PRIuMAX): Remove.
77813
77814 2005-05-27  Bruno Haible  <bruno@clisp.org>
77815
77816         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77817
77818 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77819
77820         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77821         _POSIX_PTHREAD_SEMANTICS for Solaris.
77822
77823 2005-05-25  Derek Price  <derek@ximbiot.com>
77824
77825         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77826
77827 2005-05-25  Derek Price  <derek@ximbiot.com>
77828             Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77831         * lib/getlogin_r.c, getlogin_r.h: New files.
77832
77833 2005-05-25  Bruno Haible  <bruno@clisp.org>
77834             Derek Price  <derek@ximbiot.com>
77835
77836         * lib/getlogin_r.h: Simplify API documentation.
77837
77838 2005-05-23  Derek Price  <derek@ximbiot.com>
77839
77840         * modules/minmax (Files): Add m4/minmax.m4.
77841         (configure.ac): Add gl_MINMAX.
77842
77843 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77846         so that unistd-safer.h (GPL'ed code) need not be included.
77847
77848 2005-05-22  Bruno Haible  <bruno@clisp.org>
77849
77850         * m4/minmax.m4: New file.
77851         Based on a patch by Derek Price <derek@ximbiot.com>.
77852
77853 2005-05-22  Bruno Haible  <bruno@clisp.org>
77854
77855         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77856         (INT64_MIN): Fix definition.
77857         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77858
77859         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77860         NEED_SIGNED_INT_TYPES.
77861
77862         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77863         HAVE_SYSTEM_INTTYPES.
77864
77865 2005-05-22  Bruno Haible  <bruno@clisp.org>
77866
77867         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77868         Also include <sys/param.h> if it defines MIN, MAX.
77869         Based on a patch by Derek Price <derek@ximbiot.com>.
77870
77871 2005-05-21  Jim Meyering  <jim@meyering.net>
77872
77873         * modules/fts (Files): Add m4/inttypes-pri.m4.
77874         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77875
77876 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77877
77878         New fts module.
77879         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77880         (setup_dir, free_dir): New functions.
77881         (enter_dir, leave_dir): Define trivial
77882         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77883         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77884         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77885         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77886         Move to fts-cycle.c.
77887         (fts_open): Use setup_dir.
77888         (fts_close): Use free_dir.
77889         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77890         This adds a label and some gotos, but the alternatives were messier.
77891         Check for memory allocation failure when entering a dir.
77892         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77893         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77894         (FTS): New member fts_cycle, that is a union that contains the
77895         old active_dir_ht and cycle_state.  All uses changed to mention
77896         fts_cycle.ht and fts_cycle.state.
77897         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77898         fts.c, with the following changes:
77899         (setup_dir, free_dir): New functions.
77900         (enter_dir): Now returns bool.  Return true if successful, false
77901         if memory exhausted.  All callers changed.
77902         Do not bother partly cleaning up on
77903         memory allocation failure; that is free_dir's job.
77904         However, free ad if hash_insert fails, to avoid memory leak.
77905         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77906         fts->fts_options to see which union member to use.
77907
77908 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77909
77910         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77911         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77912
77913 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77916
77917 2005-05-20  Jim Meyering  <jim@meyering.net>
77918
77919         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77920         Now a macro, to pacify GCC.
77921
77922 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77923
77924         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77925         of -1.
77926
77927 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77928
77929         * lib/chown.c (rpl_chown): Return -1 on failure.
77930
77931 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77932
77933         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77934         Don't check for stddef.h.
77935         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77936         don't use its results.
77937         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77938         since we include them unconditionally.  Don't require
77939         AM_STDBOOL_H, since stdbool is a prerequisite.
77940         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77941         since we assume C89 or better.
77942         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77943         as we don't use their results.
77944         Don't check for fchdir, memmove, memset, strrchr, as we use
77945         them unconditionally.
77946         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77947         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77948
77949 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77950
77951         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77952         Include <stddef.h> unconditionally, since we assume C89 now.
77953         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77954         * lib/fts.c: Include fts_.h first, to check interface.
77955         Do not include intprops.h; no longer needed.
77956         Include cycle-check.h and hash.h, since fts_.h no longer does.
77957         Remove unnecessary casts of closedir to void.
77958         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77959         decide whether to decrement nlinks.
77960         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77961         (FTS): Use struct hash_table * instead of Hash_table, so that
77962         we no longer need to include hash.h here.
77963
77964 2005-05-18  Jim Meyering  <jim@meyering.net>
77965
77966         * modules/dirfd (License): Change to LGPL.  Most of the code
77967         is already in the public domain.
77968
77969 2005-05-18  Jim Meyering  <jim@meyering.net>
77970
77971         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77972         Reported by Yoann Vandoorselaere.
77973
77974 2005-05-17  Jim Meyering  <jim@meyering.net>
77975
77976         * m4/fts.m4: New file, from coreutils.
77977
77978 2005-05-17  Jim Meyering  <jim@meyering.net>
77979
77980         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77981
77982 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77983
77984         Sync from coreutils.
77985         * m4/unlinkdir.m4: New file.
77986
77987 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77988
77989         Sync from coreutils.
77990         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77991         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77992         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77993         White space changes only.
77994         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77995         special.
77996         * lib/yesno.c: Include getline.h, not ctype.h.
77997         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77998         Use getline to remove arbitrary restriction on response length.
77999
78000 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         * config/srclist-update: Spell out "Street" in FSF postal
78003         mail address; this is the style the FSF seems to prefer.
78004
78005         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78006         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78007         this updates FSF postal mail address.
78008
78009         Sync from coreutils.
78010         * modules/unlinkdir: New file.
78011         * modules/yesno (Depends-on): Add getline.
78012         * MODULES.html.sh (File system functions): Add unlinkdir.
78013
78014 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78015
78016         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78017         lib/strsep.h:
78018         Change the initial comment to refer to GPL, not LGPL.
78019         gnulib-tool will change it to LGPL as needed.
78020
78021         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78022         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78023         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78024         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78025         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78026         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78027         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78028         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78029         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78030         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78031         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78032         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78033         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78034         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78035         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78036         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78037         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78038         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78039         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78040         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78041         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78042         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78043         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78044         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78045         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78046         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78047         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78048         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78049         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78050         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78051         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78052         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78053         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78054         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78055         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78056         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78057         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78058         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78059         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78060         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78061         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78062         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78063         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78064         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78065         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78066         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78067         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78068         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78069         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78070         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78071         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78072         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78073         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78074         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78075         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78076         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78077         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78078         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78079         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78080         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78081         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78082         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78083         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78084         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78085         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78086         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78087         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78088         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78089         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78090         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78091         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78092         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78093         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78094         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78095         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78096         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78097         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78098         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78099         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78100         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78101         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78102         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78103         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78104         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78105         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78106         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78107         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78108         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78109         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78110         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78111         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78112         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78113         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78114         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78115         lib/yesno.c, lib/yesno.h:
78116         Update FSF postal mail address.
78117
78118 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78119
78120         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78121         tests/test-memmem.c, tests/test-stpncpy.c:
78122         Update FSF postal mail address.
78123
78124 2005-05-13  Bruno Haible  <bruno@clisp.org>
78125
78126         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78127         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78128         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78129         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78130         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78131         Add support for 64-bit integers in the MSVC compiler.
78132
78133 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78134
78135         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78136
78137 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78138
78139         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78140
78141 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78142
78143         * doc/getdate.texi (General date syntax): Don't say that date
78144         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78145         Problem reported by Nic Ferrier.
78146
78147 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78148
78149         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78150         specified in ai_socktype. Fix invalid ai_protocol
78151         check. ai_protocol is usually set to 0 or depending on
78152         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78153         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78154         ai_socktype / ai_protocol in the returned addrinfo structure.
78155
78156 2005-05-10  Simon Josefsson  <jas@extundo.com>
78157
78158         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78159         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78160
78161 2005-05-10  Karl Berry  <karl@gnu.org>
78162
78163         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78164         (from http://www.gnu.org/licenses).
78165         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78166         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78167         fdl.texi suffices.
78168
78169 2005-05-10  Karl Berry  <karl@gnu.org>
78170
78171         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78172         (COPYING.DOC): remove.
78173
78174         * config/srclist-update: new FSF address.
78175
78176 2005-05-10  Derek Price  <derek@ximbiot.com>
78177
78178         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78179         possible.
78180
78181 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78182             Bruno Haible  <bruno@clisp.org>
78183
78184         * modules/inet_ntop: New file.
78185         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78186         inet_ntop.
78187
78188 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78189             Bruno Haible  <bruno@clisp.org>
78190
78191         * m4/inet_ntop.m4: New file.
78192
78193 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78194             Bruno Haible  <bruno@clisp.org>
78195
78196         * lib/inet_ntop.h: New file.
78197         * lib/inet_ntop.c: New file, from glibc with modifications.
78198
78199 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78200
78201         * modules/time_r (License): Change to LGPL.
78202         * modules/extensions (License): Change to LGPL.  Actually,
78203         the license is more permissive than that, but currently gnulib-tool
78204         doesn't know how to handle more-permissive licenses.
78205
78206         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78207         Problem reported by Dave Love.
78208
78209 2005-05-08  Jim Meyering  <jim@meyering.net>
78210
78211         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78212         blank.
78213
78214 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * modules/argmatch (Depends-on): Add stdbool.
78217         * modules/backupfile (Depends-on): Likewise.
78218         * modules/chdir-long (Depends-on): Likewise.
78219         * modules/closeout (Depends-on): Likewise.
78220         * modules/cycle-check (Depends-on): Likewise.
78221         * modules/dirname (Depends-on): Likewise.
78222         * modules/fnmatch (Depends-on): Likewise.
78223         * modules/fsusage (Depends-on): Likewise.
78224         * modules/fwriteerror (Depends-on): Likewise.
78225         * modules/getcwd (Depends-on): Likewise.
78226         * modules/getloadavg (Depends-on): Likewise.
78227         * modules/hard-locale (Depends-on): Likewise.
78228         * modules/makepath (Depends-on): Likewise.
78229         * modules/mountlist (Depends-on): Likewise.
78230         * modules/nanosleep (Depends-on): Likewise.
78231         * modules/posixtm (Depends-on): Likewise.
78232         * modules/quotearg (Depends-on): Likewise.
78233         * modules/readtokens (Depends-on): Likewise.
78234         * modules/readtokens0 (Depends-on): Likewise.
78235         * modules/readutmp (Depends-on): Likewise.
78236         * modules/save-cwd (Depends-on): Likewise.
78237         * modules/strftime (Depends-on): Likewise.
78238         * modules/userspec (Depends-on): Likewise.
78239         * modules/utimecmp (Depends-on): Likewise.
78240         * modules/xgetcwd (Depends-on): Likewise.
78241         * modules/xnanosleep (Depends-on): Likewise.
78242         * modules/xstrtod (Depends-on): Likewise.
78243         * modules/yesno (Depends-on): Likewise.
78244
78245 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78246
78247         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78248         needless checks.
78249
78250 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78251
78252         Merge from coreutils.  Among other things,
78253         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78254         * lib/fd-safer.c: New file.
78255         * lib/fcntl-safer.h, open-safer.c: Remove.
78256         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78257         * lib/dup-safer.c: Include unistd-safer.h first.
78258         Don't include errno.h.
78259         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78260         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78261         * lib/file-type.c: Rely on file-type.h change.
78262         * lib/getloadavg.c: Include unistd-safer.h.
78263         (getloadavg): Use safer open.
78264         * lib/getusershell.c: Include "stdio-safer.h".
78265         (getusershell): Use safer fopen.
78266         * lib/long-options.c (long_options): Use NULL rather than 0.
78267         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78268         'free'.
78269         * lib/modechange.c: Likewise.
78270         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78271         (MODE_DONE): New constant.
78272         (struct mode_change): Remove 'next' member.
78273         (make_node_op_equals): New function; like the old one of the
78274         same name, except it allocates an array.
78275         (mode_compile, mode_create_from_ref): Use it.
78276         (mode_compile): Allocate result as an array, not a linked list.
78277         Parse octal string ourself, so that we catch mistakes like "+0".
78278         (mode_adjust): Arg is an array, not a linked list.
78279         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78280         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78281         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78282         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78283         Remove.  This is now stat-macros.h's job.
78284         (talloc): Remove.  All callers replaced by xalloc, so that
78285         our invokers don't have to worry about reporting memory failures.
78286         (make_node_op_equals): Remove.
78287         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78288         New constants.
78289         (struct mode_change): Moved here from modechange.h.
78290         (mode_append_entry): Remove.
78291         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78292         apps to have incorrect behavior.  Use simpler algorithm for head
78293         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78294         Detect more invalid usages rather than having somewhat-random behavior.
78295         Don't insert an "a=" action, as that leads to incorrect behavior.
78296         (mode_compile, mode_create_from_ref): Return NULL on error instead
78297         of an enum, since now there's only one way to have an error.  All
78298         callers changed.
78299         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78300         at the correct time.  Simplify calculation of "+u" and its ilk.
78301         Don't mishandle "+X".
78302         (mode_free): Remove "register" and localize decls.
78303         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78304         (struct mode_change): Move to modechange.c; callers don't
78305         need to see this stuff.
78306         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78307         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78308         (mode_change, mode_adjust): Reflect the new signatures noted above.
78309         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78310         that might redefine system include files.
78311         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78312         (my_usleep): Use NULL rather than (void *) 0.
78313         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78314         Use siginterrupt to specify that system calls should be interrupted.
78315         (rpl_nanosleep): Move initialization of suspended closer to call of
78316         my_usleep.
78317         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78318         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78319         (desirable_utmp_entry): New function.
78320         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78321         using x2nrealloc, to simplify logic.
78322         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78323         size calculation.  Do not assume utmp file is a regular file.
78324         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78325         (READ_UTMP_CHECK_PIDS): New constant.
78326         * lib/save-cwd.c: Include unistd-safer.h.
78327         (save_cwd): Use fd_safer.
78328         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78329         [!_LIBC] Include "stat-macros.h" instead.
78330         * lib/unistd-safer.h (fd_safer): New decl.
78331
78332 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78333
78334         * modules/getloadavg (Depends-on): Add unistd-safer.
78335         * modules/getusershell (Depends-on): Add stdio-safer.
78336         * modules/lstat (Depends-on): Remove xalloc.
78337         * modules/mkstemp (Depends-on): Add stat-macros.
78338         * modules/modechange (Depends-on): Remove xstrtol.
78339         Add stat-macros, xalloc.
78340         * modules/save-cwd (Depends-on): Add unistd-safer.
78341         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78342         * modules/unistd-safer (Files): Add lib/fd-safer.c
78343         (Makefile.am): Remove lib_SOURCES.
78344
78345         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78346         Remove fcntl-safer; unistd-safer supersedes it.
78347
78348 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78351         AC_HEADER_STAT.
78352         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78353         (gl_PREREQ_CHOWN): Remove.
78354         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78355         it.  Don't require AC_HEADER_STAT.
78356         (gl_PREREQ_LSTAT): Remove.
78357         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78358         Don't require AC_HEADER_STAT.
78359         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78360         (gl_PREREQ_RMDIR): Remove.
78361         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78362         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78363         the stat-macros module a prerequisite.
78364         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78365         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78366         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78367         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78368         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78369         variable names.
78370         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78371         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78372         variable prefixes.
78373         * m4/fcntl-safer.m4: Remove.
78374         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78375         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78376         Invoke gl_PREREQ_FD_SAFER.
78377         (gl_PREREQ_FD_SAFER): New macro.
78378         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78379         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78380         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78381         Remove duplicate call to AC_LIBOBJ(readutmp).
78382         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78383
78384         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78385         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78386
78387 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78388
78389         * MODULES.html.sh (Misc): Add byteswap.
78390
78391 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78392
78393         * modules/getcwd (Depends-on): Add extensions.
78394         * modules/openat (Depends-on): Likewise.
78395
78396 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78397
78398         * modules/byteswap: New file.
78399
78400 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78401
78402         * m4/byteswap.m4: New file.
78403
78404 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78405
78406         * lib/byteswap_.h: New file.
78407
78408 2005-04-25  Karl Berry  <karl@gnu.org>
78409
78410         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78411
78412 2005-04-25  Albert Chin  <china@thewrittenword.com>
78413
78414         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78415         Toolkit C bug.
78416
78417 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78418
78419         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78420         (func_ln_if_changed): Remove forcibly for no error message
78421         in case file does not exist.
78422
78423 2005-04-19  Simon Josefsson  <jas@extundo.com>
78424
78425         * gnulib-tool (Options): Make --symlink mean --symbolic.
78426
78427 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78428
78429         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78430
78431 2005-04-16  Simon Josefsson  <jas@extundo.com>
78432
78433         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78434
78435 2005-04-15  Simon Josefsson  <jas@extundo.com>
78436
78437         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78438
78439 2005-04-15  Simon Josefsson  <jas@extundo.com>
78440
78441         * gnulib-tool: Rename --symlink to --symbolic.
78442
78443 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78444
78445         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78446         symbolic links to files instead of copying/moving.  Add --aux-dir,
78447         specifying directory relative --dir where auxiliary build tools
78448         are placed.
78449
78450 2005-04-14  Bruno Haible  <bruno@clisp.org>
78451
78452         * modules/allocsa (License): Change to LGPL.
78453         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78454
78455 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78456
78457         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78458         that "UTC +1 second" continues to work.  Problem reported
78459         by Dmitry V. Levin.
78460         (relunit_snumber): New rule.
78461         (relunit): Use it.
78462
78463 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * lib/getdate.y (universal_time_zone_table): New constant.
78466         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78467         universal_time_zone_table.
78468         (lookup_zone): Prefer universal_time_zone_table to
78469         local_time_zone_table, so that "GMT" time stamps are allowed in
78470         London during the summer.  Problem reported by Ian Abbott.
78471
78472 2005-04-12  Jim Meyering  <jim@meyering.net>
78473
78474         * lib/human.c (humblock): Set *options even when returning due to
78475         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78476         warning from gcc-4.
78477
78478 2005-04-09  Jim Meyering  <jim@meyering.net>
78479
78480         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78481         -Wuninitialized: initialize tm0.tm_year.
78482
78483 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78484
78485         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78486         count, since there's no maximum.  All uses changed.
78487         Add member dsts_seen.
78488         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78489         not being INT_MAX.
78490         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78491         Use pc_rels_seen to decide whther a date is absolute.
78492
78493         * lib/getdate.y (number): Don't overwrite year.
78494         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78495         check.
78496
78497 2005-04-02  Simon Josefsson  <jas@extundo.com>
78498
78499         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78500         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78501
78502 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78503
78504         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78505         where no absolute path name can be longer than PATH_MAX.
78506
78507 2005-03-27  Jim Meyering  <jim@meyering.net>
78508
78509         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78510
78511 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78512
78513         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78514         "one's complement" -> "ones' complement" in comment, as per Knuth.
78515         "value of type" -> "type or expression" in comment.
78516         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78517
78518 2005-03-26  Jim Meyering  <jim@meyering.net>
78519
78520         Comment nits.
78521         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78522         Correct typos: s/or/of/.
78523
78524 2005-03-26  Jim Meyering  <jim@meyering.net>
78525
78526         * modules/check-include-files: Move to ../ and rename to...
78527         * check-module: ...this.
78528
78529 2005-03-25  Jim Meyering  <jim@meyering.net>
78530
78531         * modules/xvasprintf (Files): Add xalloc.h.
78532
78533 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         * modules/gettext (Files): config/config.rpath ->
78536         build-aux/config.rpath
78537         * modules/iconv (Files): Likewise.
78538         Problem reported by Oskar Liljeblad.
78539
78540 2005-03-23  Jim Meyering  <jim@meyering.net>
78541
78542         * modules/check-include-files: New script to check for
78543         missing dependencies, multiple includes, etc.
78544
78545         * modules/c-strtold (Depends-on): Add xalloc.
78546         * modules/c-strtod (Depends-on): Add xalloc.
78547         * modules/hash (Depends-on): Add xalloc.
78548         (Files): Remove lib/xalloc.h.
78549
78550         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78551         * modules/userspec (Files): Add lib/inttostr.h.
78552
78553 2005-03-23  Jim Meyering  <jim@meyering.net>
78554
78555         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78556
78557 2005-03-22  Jim Meyering  <jim@meyering.net>
78558
78559         * modules/stat-macros: New module.
78560         * modules/canonicalize, modules/euidaccess, modules/file-type,
78561         * modules/filemode, modules/lchown, modules/makepath,
78562         * modules/rmdir, modules/stat: Depend on new stat-macros module
78563         rather than listing lib/stat-macros.h manually.
78564         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78565
78566 2005-03-22  Jim Meyering  <jim@meyering.net>
78567
78568         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78569
78570 2005-03-22  Bruno Haible  <bruno@clisp.org>
78571
78572         * config/srclist.txt: Replace target directory 'config' with
78573         'build-aux'.
78574         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78575         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78576         ../build-aux/.
78577
78578 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * modules/chdir-long (Depends-on): Add mempcpy.
78581
78582         * modules/acl, modules/backupfile, modules/c-strtod,
78583         modules/c-strtold, modules/canon-host, modules/canonicalize,
78584         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78585         modules/exclude, modules/exitfail, modules/file-type,
78586         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78587         modules/getdate, modules/getline, modules/getpagesize,
78588         modules/getpass, modules/getugroups, modules/group-member,
78589         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78590         modules/inttostr, modules/long-options, modules/makepath,
78591         modules/md5, modules/memcasecmp, modules/memcoll,
78592         modules/modechange, modules/mountlist, modules/path-concat,
78593         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78594         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78595         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78596         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78597         modules/strftime, modules/strndup, modules/strverscmp,
78598         modules/timespec, modules/unlocked-io, modules/userspec,
78599         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78600         modules/yesno:
78601         Remove lib_SOURCES line from Makefile.am section, as this is now
78602         done automatically by the corresponding Autoconf macro.
78603
78604 2005-03-21  Jim Meyering  <jim@meyering.net>
78605
78606         Changes imported from coreutils.
78607
78608         * lib/cycle-check.c: Don't include xalloc.h.
78609
78610         * lib/path-concat.c: Don't include assert.h.
78611         (path_concat): Remove assertion that would have triggered
78612         for ABASE starting with more than one slash.
78613         Reported by Andreas Schwab.
78614
78615         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78616         properly when ABASE is an absolute file name.
78617         Correct the description of this function.
78618         Include <assert.h>.
78619         Add an assertion and a test driver.
78620         This fixes a bug introduced on 2004-07-02.
78621         Andreas Schwab reported the resulting failure of cp --parents:
78622         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78623
78624 2005-03-21  Jim Meyering  <jim@meyering.net>
78625
78626         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78627         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78628
78629 2005-03-21  Jim Meyering  <jim@meyering.net>
78630         and  Paul Eggert  <eggert@cs.ucla.edu>
78631
78632         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78633         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78634         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78635         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78636         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78637         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78638         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78639         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78640         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78641         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78642         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78643         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78644         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78645         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78646         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78647         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78648         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78649         for these modules.
78650
78651 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78652
78653         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78654         (which shouldn't happen), generate nothing instead of returning 0
78655         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78656
78657 2005-03-16  Bruno Haible  <bruno@clisp.org>
78658
78659         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78660         HAVE_LONGLONG_64BIT.
78661
78662 2005-03-16  Bruno Haible  <bruno@clisp.org>
78663
78664         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78665         HAVE_LONGLONG_64BIT.
78666
78667 2005-03-16  Bruno Haible  <bruno@clisp.org>
78668
78669         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78670         HAVE_LONGLONG_64BIT.
78671
78672 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78673
78674         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78675         reliably distinguish strftime failure from empty output on POSIX
78676         hosts.
78677
78678 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78681         (iconv_string): Don't guess a size-zero buffer, as that might cause
78682         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78683         result would be 'too large', where 'too large' is (heuristically)
78684         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78685         overflow concerns.  This will prevent some unwanted malloc failures
78686         when the inputs are very large.
78687
78688 2005-03-15  Karl Berry  <karl@gnu.org>
78689
78690         * config/srclist.txt (config.rpath): from gettext.
78691         * config/config.rpath: update.
78692
78693 2005-03-15  Bruno Haible  <bruno@clisp.org>
78694
78695         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78696         to 'negate'.
78697
78698         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78699         variable.
78700
78701         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78702         results.
78703
78704 2005-03-14  Simon Josefsson  <jas@extundo.com>
78705
78706         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78707         <fx@gnu.org>.
78708
78709 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78712         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78713         intprops.h.
78714         * lib/strtol.c: Likewise.
78715
78716 2005-03-14  Jim Meyering  <jim@meyering.net>
78717
78718         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78719         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78720         to be nonzero so that we (and caller) can detect the difference
78721         between a valid zero-length expansion and an error return, even
78722         when the underlying strftime fails before writing anything into
78723         that location.
78724
78725 2005-03-14  Bruno Haible  <bruno@clisp.org>
78726
78727         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78728         Update from GNU gettext 0.14.3.
78729
78730 2005-03-10  Jim Meyering  <jim@meyering.net>
78731
78732         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78733
78734 2005-03-10  Jim Meyering  <jim@meyering.net>
78735
78736         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78737         so that this module works on systems without fchdir.
78738
78739 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78740
78741         Factor int-properties macros into a single file, except for
78742         glibc-related files.
78743         * lib/intprops.h: New file.
78744         * lib/getloadavg.c: Include it instead of limits.h.
78745         (INT_STRLEN_BOUND): Remove.
78746         * lib/human.c: Include intprops.h.
78747         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78748         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78749         302/1000.
78750         * lib/inttostr.h: Include intprops.h instead of limits.h.
78751         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78752         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78753         for consistency with intprops.h.
78754         (time_t_is_integer, twos_complement_arithmetic): Use them.
78755         * lib/sig2str.h: Include <signal.h>, intprops.h.
78756         (INT_STRLEN_BOUND): Remove.
78757         * lib/strftime.c (TYPE_SIGNED): Remove.
78758         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78759         * lib/strtol.c: Adjust comments to match intprops.h.
78760         * lib/userspec.c: Include intprops.h.
78761         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78762         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78763         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78764         instead of rolling our own expressions.
78765         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78766
78767         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78768         instead of int.
78769         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78770         the right thing even if adding 1900 would overflow.  Similarly
78771         for tm_mon + 1 and tm_yday + 1.
78772         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78773         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78774         (DO_SIGNED_NUMBER): New macro.
78775         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78776
78777 2005-03-07  Bruno Haible  <bruno@clisp.org>
78778
78779         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78780
78781 2005-03-07  Bruno Haible  <bruno@clisp.org>
78782
78783         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78784
78785 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78786
78787         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78788         (func_import): Only replace files via --import when they have actually
78789         changed.
78790
78791 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78792
78793         * m4/mmap-anon.m4: New file.
78794         * m4/pagealign_alloc.m4: New file.
78795
78796 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78797             Bruno Haible  <bruno@clisp.org>
78798
78799         * modules/pagealign_alloc: New file.
78800         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78801
78802 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78803             Bruno Haible  <bruno@clisp.org>
78804
78805         * lib/pagealign_alloc.h: New file.
78806         * lib/pagealign_alloc.c: New file.
78807
78808 2005-03-03  Bruno Haible  <bruno@clisp.org>
78809
78810         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78811         Use an all-permissive copyright notice, recommended by RMS.
78812
78813 2005-03-02  Bruno Haible  <bruno@clisp.org>
78814
78815         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78816         of AIX, the replacement has to be done only after <string.h> is
78817         included, therefore not in config.h. stpncpy.h does the replacement,
78818         and stpncpy.c uses it.
78819
78820 2005-03-02  Bruno Haible  <bruno@clisp.org>
78821
78822         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78823         stpncpy.c uses it.
78824
78825 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78828         The workaround isn't strictly needed for POSIX conformance, and
78829         it's too much of a pain to configure and maintain.  We'll ask
78830         people to fix their kernels instead.
78831         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78832         (NANOSLEEP_BUG_WORKAROUND): Remove.
78833         (xnanosleep): Remove the workaround.
78834
78835 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78836
78837         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78838         Reported by Derek Price.
78839         (Include): Add "timespec.h".
78840
78841         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78842
78843 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78844
78845         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78846         to detect nanosleep bug.
78847
78848 2005-03-01  Bruno Haible  <bruno@clisp.org>
78849
78850         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78851
78852 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78853
78854         * modules/gethrxtime: New file.
78855         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78856         (Depends-on): Add gethrxtime.
78857         (configure.ac): Add gl_XNANOSLEEP.
78858         (Makefile.am): Remove lib_SOURCES line.
78859
78860 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78861
78862         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78863         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78864
78865 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78866
78867         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78868         * lib/timespec.h (gettime): Return void, since it always
78869         succeeds now.  All uses changed.
78870         * lib/gettime.c (gettime): Likewise.
78871         [HAVE_NANOTIME]: Prefer nanotime.
78872         Assume gettimeofday succeeds, as POSIX requires.
78873         Assime time () succeeds, since other code already does.
78874         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78875         (timespec_subtract): Remove.
78876         (NANOSLEEP_BUG_WORKAROUND): New constant.
78877         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78878         things considerably.  Use it only on GNU/Linux hosts, since the
78879         workaround shouldn't be needed elsewhere.
78880
78881 2005-02-24  Bruno Haible  <bruno@clisp.org>
78882
78883         * modules/gettext (Files): Add m4/glibc2.m4.
78884
78885 2005-02-24  Bruno Haible  <bruno@clisp.org>
78886
78887         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78888         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78889         * m4/progtest.m4:
78890         Update from GNU gettext 0.14.2.
78891         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78892
78893 2005-02-24  Bruno Haible  <bruno@clisp.org>
78894
78895         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78896         * lib/config.charset: Update from GNU gettext 0.14.2.
78897
78898 2005-02-24  Bruno Haible  <bruno@clisp.org>
78899
78900         * lib/gettext.h: Update from GNU gettext 0.14.2.
78901
78902 2005-02-23  Simon Josefsson  <jas@extundo.com>
78903
78904         * m4/iconvme.m4: New file.
78905
78906 2005-02-23  Jim Meyering  <jim@meyering.net>
78907
78908         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78909         change.
78910         Thanks to Bruno Haible for catching it.
78911
78912 2005-02-22  Simon Josefsson  <jas@extundo.com>
78913
78914         * modules/iconvme: New file.
78915
78916         * MODULES.html.sh: Add iconvme.
78917
78918 2005-02-22  Simon Josefsson  <jas@extundo.com>
78919
78920         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78921
78922 2005-02-22  Simon Josefsson  <jas@extundo.com>
78923
78924         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78925
78926 2005-02-22  Jim Meyering  <jim@meyering.net>
78927
78928         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78929         s/ifndef/ifdef/.
78930
78931 2005-02-20  Neil Conway  <neilc@samurai.com>
78932
78933         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78934         returned by OSX/Darwin if the specified buffer is not large
78935         enough for the hostname.
78936
78937 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78938
78939         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78940         pass it to _help, otherwise the latter coredumps trying to
78941         dereference state.root_argp.
78942
78943 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78944
78945         * modules/chdir-long (Depends-on): Add memrchr.
78946         * modules/memrchr (Files): Add lib/memrchr.h.
78947         (Include): "memrchr.h".
78948
78949 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78950
78951         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78952
78953 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78954
78955         * lib/memrchr.h: New file.
78956         * lib/chdir-long.c: Include it.
78957         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78958         Don't bother including stddef.h.
78959
78960 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78961
78962         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78963         inclusion.
78964         Include <sys/types.h>, for dev_t.
78965         (ME_DUMMY, ME_REMOTE): Move from here....
78966         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78967         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78968         Dmitry V. Levin.
78969         Include mountlist.h first, to test the interface.
78970
78971 2005-01-29  Bruno Haible  <bruno@clisp.org>
78972
78973         * lib/progname.c (program_name): Initialize.
78974         Needed when linking statically on MacOS X.
78975
78976 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         Sync from coreutils.
78979         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78980         (Depends-on): Add c-strtod.
78981         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78982
78983 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78984
78985         Sync from coreutils.
78986         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78987
78988         Remove files that are specific to coreutils.
78989         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78990
78991 2005-01-28  Bruno Haible  <bruno@clisp.org>
78992
78993         * modules/javacomp: New file.
78994         * MODULES.html.sh (Java): Add javacomp.
78995
78996 2005-01-28  Bruno Haible  <bruno@clisp.org>
78997
78998         * m4/javacomp.m4: New file, from GNU gettext.
78999
79000 2005-01-28  Bruno Haible  <bruno@clisp.org>
79001
79002         * lib/javacomp.sh.in: New file, from GNU gettext.
79003         * lib/javacomp.h: New file, from GNU gettext.
79004         * lib/javacomp.c: New file, from GNU gettext.
79005
79006 2005-01-26  Simon Josefsson  <jas@extundo.com>
79007
79008         * lib/gai_strerror.c: Use GPL in header.
79009
79010 2005-01-26  Bruno Haible  <bruno@clisp.org>
79011
79012         * modules/javaexec: New file.
79013         * MODULES.html.sh (Java): Add javaexec.
79014
79015 2005-01-26  Bruno Haible  <bruno@clisp.org>
79016
79017         * m4/javaexec.m4: New file, from GNU gettext.
79018
79019 2005-01-26  Bruno Haible  <bruno@clisp.org>
79020
79021         * lib/javaexec.sh.in: New file, from GNU gettext.
79022         * lib/javaexec.h: New file, from GNU gettext.
79023         * lib/javaexec.c: New file, from GNU gettext.
79024
79025 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79026
79027         * modules/lchown (Depends-on): Remove lchown.h
79028
79029 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79030
79031         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79032         must be defined if the header file was not found, in order
79033         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79034
79035 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79036
79037         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79038         initializers for struct pentry_state.
79039         (__argp_error): Check return value of __asprintf
79040         (__argp_failure): Translate error message
79041
79042         * lib/argp-parse.c: Removed braces around the expansion of N_()
79043
79044 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79045
79046         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79047         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79048         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79049         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79050         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79051         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79052         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79053         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79054         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79055         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79056         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79057         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79058         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79059         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79060         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79061         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79062         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79063         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79064         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79065         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79066         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79067         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79068         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79069         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79070         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79071         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79072         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79073         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79074         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79075         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79076         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79077         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79078         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79079         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79080         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79081         Use an all-permissive copyright notice, recommended by RMS.
79082
79083 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * modules/chdir-long (Depends-on): Remove mempcpy.
79086
79087 2005-01-21  Jim Meyering  <jim@meyering.net>
79088
79089         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79090         same value as for Solaris 9.
79091
79092         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79093         component length.  This included changing the parameter to be
79094         of type `char *' rather than `char const *'.
79095         * lib/chdir-long.h (chdir_long): Update prototype.
79096
79097         * lib/openat.c (fdopendir, fstatat): New functions.
79098         * lib/openat.h: Include headers required for use of DIR and struct
79099         stat.
79100         [AT_SYMLINK_NOFOLLOW]: Define.
79101         (fdopendir, fstatat): Add prototypes.
79102
79103 2005-01-21  Bruno Haible  <bruno@clisp.org>
79104
79105         * modules/classpath: New file.
79106         * MODULES.html.sh (Java): Add classpath.
79107
79108 2005-01-21  Bruno Haible  <bruno@clisp.org>
79109
79110         * lib/classpath.h: New file, from GNU gettext.
79111         * lib/classpath.c: New file, from GNU gettext.
79112
79113 2005-01-20  Simon Josefsson  <jas@extundo.com>
79114
79115         * modules/version-etc-fsf: New file.
79116
79117 2005-01-20  Simon Josefsson  <jas@extundo.com>
79118
79119         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79120         * lib/version-etc.c: Remove version_etc_copyright.
79121         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79122         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79123
79124 2005-01-20  Simon Josefsson  <jas@extundo.com>
79125
79126         * lib/base64.h (isbase64): Add.
79127
79128         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79129         using a unsigned prototype, don't inline.
79130         (base64_decode): Use it.
79131
79132 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79133
79134         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79135         it.
79136
79137 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79138
79139         * lib/save-cwd.c (save_cwd): Remove code to support the case
79140         where fchdir is missing or flaky.
79141
79142 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79143
79144         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79145
79146 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79147
79148         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79149         AC_LIBSOURCES now does this.
79150         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79151         with new ullong_max module.
79152
79153 2005-01-19  Bruno Haible  <bruno@clisp.org>
79154
79155         * modules/sh-quote: New file.
79156         * MODULES.html.sh (Executing programs): Add sh-quote.
79157
79158 2005-01-19  Bruno Haible  <bruno@clisp.org>
79159
79160         * lib/sh-quote.h: New file, from GNU gettext.
79161         * lib/sh-quote.c: New file, from GNU gettext.
79162
79163 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79164
79165         Merge from coreutils.
79166         * m4/ullong_max.m4: New file.
79167         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79168         (gl_MACROS): Assume localeconv exists.
79169
79170 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79171
79172         Merge changes from coreutils, as described below in several
79173         changelogs dated today.
79174
79175         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79176         (O_DIRECTORY): Remove; not needed here, since "." must be
79177         a directory.  All uses removed.
79178         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79179         universal on Suns, and we also need to test for IRIX.
79180         Revamp code to use 'if' rather than '#if'.
79181         Avoid unnecessary comparison of cwd->desc to 0.
79182
79183         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79184         for known valid error numbers rather than observed invalid ones.
79185
79186 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * modules/ullong_max: New file.
79189
79190         * modules/chdir-long, modules/openat: New files.
79191         * modules/save-cwd (Depends-on): Depend on chdir-long.
79192         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79193
79194 2005-01-18  Jim Meyering  <jim@meyering.net>
79195
79196         Merge from coreutils.
79197         * m4/chdir-long.m4, m4/openat.m4: New files.
79198         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79199         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79200         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79201         is sane and DOES follow symlinks.  Besides, testing 20 different
79202         systems found no broken chown implementations.
79203         Prompted by a change in rsync's copy of this macro.
79204         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79205
79206         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79207
79208         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79209         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79210         NULL-means-set-to-current-time semantics.
79211         Remove temporary file immediately, rather than waiting
79212         for configure's at-exit trap code to do it.
79213
79214 2005-01-18  Jim Meyering  <jim@meyering.net>
79215
79216         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79217
79218         * lib/utimens.c (futimens): Account for the fact that futimes
79219         can also fail with errno == ENOSYS or errno == ENOENT.
79220         Patch from Dmitry V. Levin.
79221
79222         Change the name of the robust chdir function from chdir to chdir_long.
79223         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79224         (restore_cwd): Use chdir_long, not chdir.
79225         * lib/chdir-long.c: Renamed from chdir.c.
79226         * lib/chdir-long.h: Renamed from chdir.h.
79227         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79228         Hurd.
79229
79230 2005-01-18  Bruno Haible  <bruno@clisp.org>
79231
79232         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79233         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79234         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79235         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79236         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79237         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79238         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79239         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79240         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79241         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79242         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79243         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79244         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79245         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79246         Use an all-permissive copyright notice, recommended by RMS.
79247
79248 2005-01-18  Bob Proulx  <bob@proulx.com>
79249
79250         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79251         simplify offsetof() macro construct to avoid compile failure with
79252         native HP-UX 11.0 ANSI C compiler.
79253
79254 2005-01-17  Bruno Haible  <bruno@clisp.org>
79255
79256         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79257         redundant because stpncpy.m4 takes care of it.
79258
79259 2005-01-17  Bruno Haible  <bruno@clisp.org>
79260
79261         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79262
79263 2005-01-17  Bruno Haible  <bruno@clisp.org>
79264
79265         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79266         used.
79267
79268 2005-01-17  Bruno Haible  <bruno@clisp.org>
79269
79270         * lib/fwriteerror.h (fwriteerror): Change specification to include
79271         fclose.
79272         * lib/fwriteerror.c: Include <stdbool.h>.
79273         (fwriteerror): At the end, close the file stream. Record whether
79274         stdout was already closed.
79275
79276 2005-01-17  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/execute.c (environ): Declare if needed.
79279         * lib/pipe.c (environ): Likewise.
79280         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79281
79282 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79283
79284         * modules/argp: Depend on vsnprintf
79285
79286 2005-01-10  Jim Meyering  <jim@meyering.net>
79287
79288         * modules/closeout (Depends-on): Add atexit.
79289
79290 2005-01-06  Bruno Haible  <bruno@clisp.org>
79291
79292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79293
79294 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79297         definitions to be after all include files, to avoid collisions.
79298         Problem reported by Bob Proulx.
79299
79300 2005-01-04  Jim Meyering  <jim@meyering.net>
79301
79302         Changes imported from coreutils.
79303         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79304         as the mkstemp template, use a temporary directory and an
79305         8.3-friendly template to avoid trouble on systems like DJGPP.
79306         Reported by Juan M. Guerrero via Stepan Kasal.
79307         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79308         close. Remove the temporary directory right away, rather than waiting
79309         for configure's at-exit trap code to do it.
79310         Suggestion from Stepan Kasal.
79311
79312 2005-01-01  Simon Josefsson  <jas@extundo.com>
79313
79314         * gnulib-tool: Print #include directives when --import'ing.
79315
79316 2004-12-28  Simon Josefsson  <jas@extundo.com>
79317
79318         * tests/test-base64.c: Include required header files.  Remove
79319         unused variables.
79320
79321 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79322
79323         * modules/error (Depends-on): Remove gettext.
79324
79325 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79326
79327         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79328         not needed.  This removes a dependency on the gettext module.
79329         [defined _LIBC]: Do not include <libintl.h>; not needed.
79330
79331 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79332
79333         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79334         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79335
79336 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79339         HAVE_DECL_STRTOLD.
79340
79341 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79342
79343         * modules/getdate (Depends-on): Remove alloca-opt.
79344
79345 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79346
79347         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79348
79349 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79350
79351         * lib/argp-parse.c: Include <stddef.h>.
79352         (alignof, alignto): New macros.
79353         (parser_init): Don't assume that void * is aligned sufficiently
79354         for struct option.
79355
79356         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79357         need to extend the stack.
79358         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79359         large.
79360
79361 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79362
79363         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79364
79365 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79366
79367         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79368         (2004-10-24) change.  Apparently this was a false alarm.
79369
79370         * modules/getdate: Depend on alloca-opt, not alloca.
79371
79372 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79373
79374         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79375         Remove now-obsolete comment about AIX.
79376         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79377         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79378         (YYMAXDEPTH): New macro.
79379
79380 2004-12-18  Simon Josefsson  <jas@extundo.com>
79381
79382         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79383
79384 2004-12-18  Bruno Haible  <bruno@clisp.org>
79385
79386         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79387
79388 2004-12-18  Bruno Haible  <bruno@clisp.org>
79389
79390         * lib/fatal-signal.c (fatal_signals): Make non-const.
79391         (init_fatal_signals): New function.
79392         (uninstall_handlers, install_handlers): Ignore signals that were set to
79393         SIG_IGN.
79394         (at_fatal_signal): Call init_fatal_signals.
79395         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79396         SIG_IGN.
79397         Reported by Paul Eggert.
79398
79399 2004-12-18  Bruno Haible  <bruno@clisp.org>
79400
79401         * doc/alloca.texi: New file.
79402         * doc/alloca-opt.texi: New file.
79403
79404 2004-12-17  Jim Meyering  <jim@meyering.net>
79405
79406         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79407         Otherwise, install-sh could exit with improper exit status when
79408         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79409
79410 2004-12-16  Simon Josefsson  <jas@extundo.com>
79411
79412         * tests/test-base64.c: Add license.
79413
79414 2004-12-15  Stepan Kasal  <address@hidden>
79415
79416         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79417
79418 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * modules/getcwd (Files): Add m4/d-ino.m4.
79421         Suggested by Mark D. Baushke.
79422
79423 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79424
79425         * lib/getdate.y (textint): New member "negative".
79426         (time_zone_hhmm): New function.
79427         Expect 14 shift-reduce conflicts, not 13.
79428         (o_colon_minutes): New rule.
79429         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79430         (yylex): Set the "negative" member of signed numbers.
79431
79432 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         * doc/getdate.texi (Time of day items, Time zone items):
79435         Describe new formats +00:00, UTC+00:00.
79436
79437 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79438
79439         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79440         spurious "-l"s.  Problem reported by Stepan Kasal.
79441
79442 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79443
79444         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79445         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79446
79447 2004-12-04  Simon Josefsson  <jas@extundo.com>
79448
79449         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79450         Vandoorselaere <yoann@prelude-ids.org>.
79451
79452 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79453
79454         Changes imported from coreutils.
79455         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79456         exist.
79457         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79458
79459 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         Changes imported from coreutils.
79462         * lib/hard-locale.c: Assume <locale.h> exists.
79463         Include "strdup.h".
79464         (GLIBC_VERSION): New macro.
79465         (hard_locale): Assume setlocale exists.
79466         Rewrite to avoid #ifdef.
79467         Use strdup rather than malloc + strcpy.
79468         * lib/human.c: Assume <locale.h> exists.
79469         (human_readable): Assume localeconv exists.
79470
79471 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79472
79473         * modules/hard-locale (Depends-on): Add strdup.
79474
79475 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79476
79477         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79478         convert T2, not T.  (Imported from libc.)
79479
79480 2004-11-30  Simon Josefsson  <jas@extundo.com>
79481
79482         * modules/restrict (License): Change to LGPL.
79483
79484 2004-11-30  Simon Josefsson  <jas@extundo.com>
79485
79486         * m4/restrict.m4: Add copyright and copying conditions.
79487
79488 2004-11-30  Simon Josefsson  <jas@extundo.com>
79489
79490         * m4/base64.m4: New file.
79491
79492 2004-11-30  Simon Josefsson  <jas@extundo.com>
79493
79494         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79495         base64.
79496
79497         * tests/test-base64.c: New file.
79498
79499         * modules/base64: New file.
79500
79501 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79504         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79505
79506         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79507
79508 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79511         (__getcwd.c): Don't restore errno; glibc doesn't.
79512         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79513         first, falling back to our code only if its results look suspicious.
79514         Ensure that the resulting buffer is only as large as necessary.
79515
79516         * lib/readutmp.c: Include readutmp.h first.
79517         Include <errno.h>, since readutmp.h no longer does that.
79518         * lib/readutmp.h: Don't include <errno.h>,
79519         <sys/param.h>, <time.h>; not needed to establish interface.
79520         (errno): Remove decl.
79521         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79522         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79523         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79524
79525 2004-11-28  Simon Josefsson  <jas@extundo.com>
79526
79527         * lib/base64.h, base64.c: New file.
79528
79529 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79532
79533 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79534
79535         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79536         (Depends-on): Remove pathmax, same.  Add mempcpy.
79537         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79538         (Makefile.am): Append getcwd.h to lib_SOURCES.
79539         (Include): Add getcwd.h.
79540         (Maintainer): Change from Jim Meyering to "all, glibc",
79541         since getdate now uses intended-for-glibc code.
79542         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79543         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79544
79545 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79548         HP's ANSI C compiler.
79549         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79550         Declaring int functions causes warnings on some modern systems and
79551         shouldn't be needed to compile on ancient ones.
79552         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79553         defined.
79554
79555         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79556         with the following changes.
79557         (__set_errno): Parenthesize properly.
79558         Include <stdbool.h>.
79559         (MIN, MAX, MATCHING_INO): New macros.
79560         (__getcwd): Define with prototype, not K&R form.
79561         Use heuristics to allocate default buffer on stack if possible.
79562         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79563         behavior, and to avoid the PATH_MAX limit when computing
79564         ../../../../...
79565         Use MATCHING_INO to compare inode number to file.
79566         Check for arithmetic overflow in size calculations.
79567         Fix bug in reallocation of dot array that caused getcwd to fail
79568         on directories nested deeper than 75.
79569         Be more careful about saving errno on error.
79570         Do not use realloc; use only free+malloc, as this is a bit
79571         more flexible and avoids a needless copy operation.
79572         Do not inspect st_dev and st_ino for symbolic links; POSIX
79573         doesn't specify the latter.
79574         Check for closedir errors.
79575         Avoid needless casts.
79576         Use "#ifdef weak_alias" around weak_alias, to be like other
79577         glibc code.
79578         The following changes to getcwd.c have effect only when used in
79579         gnulib; they have no effect inside glibc proper.
79580         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79581         as alloca isn't used.
79582         (alloca, __alloca): Likewise.
79583         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79584         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79585         unconditionally, as gnulib assumes C89 or better.
79586         Do not include <sys/param.h>.
79587         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79588         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79589         better.
79590         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79591         Include <dirent.h> in a way that is compatible with modern Autoconf.
79592         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79593         New macros, if not already defined.
79594         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79595         Use "_LIBC", not "defined _LIBC", for consistency.
79596         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79597         a mempcpy module.
79598         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79599         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79600         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79601         credit only to Jim Meyering and adjust the copyright dates.
79602         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79603         <stdlib.h>, <unistd.h>, "pathmax.h".
79604         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79605         (INITIAL_BUFFER_SIZE): Remove.
79606         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79607
79608 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79611         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79612         Use the _ONCE methods, for efficiency.
79613         Check for fcntl.h.  In test program, include <errno.h>
79614         and <fcntl.h> if available.  Remove old K&R cruft from
79615         test program.  Check for common errors in GNU/Linux,
79616         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79617         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79618         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79619         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79620         name accordingly.
79621         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79622         accommodate new getcwd.c.
79623         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79624         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79625         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79626         that's all we need now.
79627
79628 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79629
79630         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79631         argp-parse.c depends on getopt internals, that means we should
79632         always use our getopt, to be on the safe side.
79633         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79634         order not to spoil the result of an eventual previous invocation
79635         of gl_GETOPT_SUBSTITUTE.
79636
79637 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79638
79639         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79640         redefinition warnings. To avoid them, include the defines
79641         in `#if !defined __need_getopt ... #endif'. The only place
79642         where __getopt_argv_const is used is in definitions
79643         of getopt_long and getopt_long_only below, which are as well
79644         protected by `#ifndef __need_getopt'.
79645         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79646         __need_getopt after including <stdio.h> and <unistd.h> These
79647         headers might have defined it.
79648
79649 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79650
79651         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79652
79653 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79656         (futimens): New function, which uses futimes if available.
79657         (futimens, utimens): Support timespec==NULL, with same semantics
79658         as utime and utimens.
79659         * lib/utimens.h (futimens): New decl.
79660
79661 2004-11-23  Jim Meyering  <jim@meyering.net>
79662
79663         * lib/getopt_.h: Remove trailing blanks.
79664
79665 2004-11-23  Jim Meyering  <jim@meyering.net>
79666
79667         * lib/__fpending.c: Add comment.
79668
79669 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79670
79671         * modules/canonicalize (Depends-on): Add xreadlink.
79672         Problem reported by James Youngman.
79673
79674 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79675
79676         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79677         New macros.
79678         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79679         optopt): Use them instead of invoking ## directly; otherwise, the
79680         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79681
79682 2004-11-19  Bruno Haible  <bruno@clisp.org>
79683
79684         * lib/strtok_r.c: Move comments from here...
79685         * lib/strtok_r.h: ... to here.
79686
79687 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79690         implementations that mishandle size_t overflow.
79691
79692 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79693
79694         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79695         might fail.  Problem reported by Yoann Vandoorselaere.
79696         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79697         implementations that mishandle size_t overflow.
79698
79699 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79700
79701         * modules/canon-host (Depends-on): Add strdup.
79702
79703 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79704
79705         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79706
79707 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79708
79709         * lib/canon-host.c: Include "strdup.h".
79710         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79711         Use strdup instead of malloc/strcpy to duplicate strings.
79712
79713         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79714         (human_space_before_unit): New constant.
79715         * lib/human.c (human_readable): Support it.
79716
79717         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79718         (xgetcwd): Set errno correctly when failing.
79719         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79720         the failure is actually due to a PATH_MAX problem.
79721
79722         Further getopt changes to make it more likely that glibc will
79723         buy the changes back.
79724         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79725         (getopt): Use it, so to preserve glibc semantic
79726         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79727         when compiling for libc.
79728         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79729         (getopt_long, getopt_long_only): Use it.
79730
79731         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79732         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79733         (getopt): Argv is now char * const *, as per standard.
79734         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79735         not char *__getopt_argv_const *.
79736         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79737         _getopt_long_only_r): Likewise.
79738         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79739         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79740         _getopt_long_r, _getopt_long_only_r): Likewise.
79741         * lib/getopt_.h (__getopt_argv_const): Remove.
79742         (getopt): Argv is now char * const *, as per standard.
79743
79744         * lib/getdate.y (tORDINAL): New token.
79745         (day, relunit): Allow it for relative times.
79746         (relative_time_table): Use tORDINAL for ordinals.
79747
79748 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79749
79750         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79751         Document that "second" isn't allowed as an ordinal number.
79752
79753 2004-11-16  Jim Meyering  <jim@meyering.net>
79754
79755         * modules/closeout (Depends-on): Add fpending.
79756
79757 2004-11-15  Jim Meyering  <jim@meyering.net>
79758
79759         * lib/closeout.c: Include "__fpending.h" once again.
79760         Include <stdbool.h>.
79761         (close_stdout): Don't fail just because stdout was closed initially,
79762         since some programs don't write to stdout in the normal course of
79763         operation (other than --version and --help), and we don't want this
79764         function to make e.g. `touch file >&-' fail.
79765         But do fail if it was closed and someone has tried to write to it.
79766         E.g., `printf foo >&-' must fail.
79767
79768 2004-11-13  Jim Meyering  <jim@meyering.net>
79769
79770         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79771
79772 2004-11-12  Simon Josefsson  <jas@extundo.com>
79773
79774         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79775         small doc fix is still pending.
79776
79777 2004-11-11  Simon Josefsson  <jas@extundo.com>
79778
79779         * modules/strtok_r: New file.
79780
79781         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79782         strtok_r.
79783
79784 2004-11-11  Simon Josefsson  <jas@extundo.com>
79785
79786         * m4/strtok_r.m4: New file.
79787
79788         * m4/getopt.m4: Replace opterr.
79789
79790 2004-11-11  Simon Josefsson  <jas@extundo.com>
79791
79792         * lib/strtok_r.h, strtok_r.c: New file.
79793
79794 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79795
79796         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79797         of replacing opterr, getopt, etc.  This should handle the
79798         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79799
79800 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79801
79802         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79803         we can stop lying to compilers about the constness of argv when we
79804         are compiled outside glibc.
79805         (getopt, getopt_long, getopt_long_only): Use it.
79806         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79807         _getopt_internal, getopt): Likewise.
79808         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79809         _getopt_long_only_r): Likewise.
79810         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79811         _getopt_long_r, _getopt_long_only_r): Likewise.
79812
79813         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79814         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79815         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79816         the other external symbols.
79817         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79818         declaration, since the above renaming now works around collisions.
79819
79820 2004-11-11  Jim Meyering  <jim@meyering.net>
79821
79822         * lib/linebreak.c: Remove trailing blanks.
79823         * lib/alloca_.h: Likewise.
79824         * lib/acosl.c: Likewise.
79825         * lib/euidaccess.c: Likewise.
79826         * lib/allocsa.h: Likewise.
79827
79828 2004-11-10  Simon Josefsson  <jas@extundo.com>
79829
79830         * m4/getaddrinfo.m4: New file.
79831
79832 2004-11-10  Simon Josefsson  <jas@extundo.com>
79833
79834         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79835
79836 2004-11-10  Simon Josefsson  <jas@extundo.com>
79837
79838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79839         getaddrinfo.
79840
79841         * modules/getaddrinfo: New file.
79842
79843 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79844
79845         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79846
79847 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         * lib/mktime.c (SHR): New macro, which is a portable
79850         substitute for >> that should work even on Crays.
79851         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79852         Problem reported by Mark D. Baushke in
79853         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79854         * lib/getdate.y (SHR): Likewise.
79855         (tm_diff): Use it.
79856         * lib/strftime.c (SHR): Likewise.
79857         (tm_diff): Use it.
79858         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79859         quote_these_too, so that right shifts are well defined.  All uses
79860         changed.
79861
79862 2004-11-10  Jim Meyering  <jim@meyering.net>
79863
79864         Ensure that no close failure goes unreported.
79865         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79866         return early when it seems there's nothing to flush.
79867         Don't include __fpending.h.
79868
79869 2004-11-10  Jim Meyering  <jim@meyering.net>
79870
79871         * modules/closeout (Depends-on): Remove fpending.
79872
79873 2004-11-10  Jim Meyering  <jim@meyering.net>
79874
79875         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79876
79877 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79880         gl_FUNC_STRFTIME.
79881         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79882         and AC_REQUIRE when possible, to avoid duplicate checks.
79883         Check for <wchar.h>.
79884
79885 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79886
79887         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79888
79889 2004-11-09  Bruno Haible  <bruno@clisp.org>
79890
79891         * m4/sockpfaf.m4: New file.
79892
79893 2004-11-05  Bruno Haible  <bruno@clisp.org>
79894
79895         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79896         Reported by Mark D. Baushke <mdb@cvshome.org>.
79897
79898 2004-11-04  Bruno Haible  <bruno@clisp.org>
79899
79900         2004-09-11  Bruno Haible  <bruno@clisp.org>
79901                 * allocsa.valgrind: New file.
79902         2004-02-06  Bruno Haible  <bruno@clisp.org>
79903                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79904                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79905                 Reported by Christopher Seip <chris.seip@hp.com>.
79906
79907 2004-11-04  Bruno Haible  <bruno@clisp.org>
79908
79909         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79910         (Makefile.am): Distribute it.
79911
79912 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79913
79914         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79915         with errno == ERANGE if the buffer is too small.
79916         Problem reported by Mark D. Baushke.
79917
79918 2004-11-03  Albert Chin  <china@thewrittenword.com>
79919             Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79922         equivalent, substitute $ac_type for equivalent type rather than
79923         blindly using uint32_t *always* which won't work if uint32_t is not
79924         available.  Define _UINT32_T to work around typedef of uint32_t if
79925         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79926         2.5.1.
79927
79928 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * m4/jm-macros.m4: Sync from coreutils.
79931         (gl_MACROS): Check for mbrlen, for pathchk.
79932         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79933
79934 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * lib/xreadlink.c (MAXSIZE): New macro.
79937         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79938         size does not exceed MAXSIZE.  Avoid cast.
79939         As suggested by Mark D. Baushke in
79940         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79941         if readlink fails with buffer size just under MAXSIZE, try again
79942         with MAXSIZE.
79943
79944 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79945
79946         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79947
79948 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79949         and  Paul Eggert  <eggert@cs.ucla.edu>
79950
79951         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79952         (get_date): Overparenthesize to avoid GCC warning.
79953
79954 2004-11-02  Bruno Haible  <bruno@clisp.org>
79955
79956         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79957         returns void.
79958
79959 2004-11-02  Bruno Haible  <bruno@clisp.org>
79960
79961         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79962         function returns void.
79963
79964 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79967         fflush_unlocked, flockfile, funlockfile, funlockfile,
79968         fputs_unlocked, putc_unlocked.
79969
79970 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79973         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79974         already declared.
79975
79976 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79977
79978         * modules/getdate (Files): Add doc/getdate.texi.
79979         (Depends-on): Add setenv, xalloc.
79980
79981 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79982
79983         * lib/getdate.y: Add support for TZ="foo" within a date string.
79984         Fix some bugs near time_t boundaries.  Reject dates with
79985         out-of-range components, e.g., "Sept 31".
79986         Include <stdlib.h>, "setenv.h", "xalloc.h".
79987         (ISDIGIT_LOCALE): Remove; unused.
79988         Note that the TZ and time functions used here are not reentrant.
79989         (mktime_ok, get_tz): New functions.
79990         (TZBUFSIZE): New constant.
79991         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79992         This requires that we sometimes generate our own TZ="XXX..." setting.
79993
79994 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79995
79996         * doc/getdate.texi: New file, from coreutils with modifications for
79997         the new TZ parsing.
79998
79999 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80000
80001         * lib/mktime.c (not_equal_tm): Remove redundant check.
80002
80003 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * modules/regex (lib_SOURCES): Add regex.c.
80006         Reported by James Youngman in
80007         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80008
80009 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80010
80011         * lib/getdate.y: Use Bison 1.875 features, and some minor
80012         code cleanups.  This change does not affect semantics.
80013         Don't include <stdlib.h>; no longer needed.
80014         Don't include unlocked-io.h; only the "#if TEST" code uses
80015         stdio, and performance isn't crucial there.
80016         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80017         Bison 1.875 features as described below.
80018         All uses of "PC." replaced by "pc->".
80019         (YYSTYPE): Add a forward declaration.
80020         (yylex, yyerror): Use full prototypes in forward decls.
80021         Use "%pure-parser" rather than obsolescent "%pure_parser".
80022         Use %parse-param and %lex-param instead of obsolescent
80023         YYPARSE_PARAM and YYLEX_PARAM.
80024         (meridian_table, month_and_day_table, time_units_table,
80025         relative_time_table, time_zone_table, military_table,
80026         lookup_zone, lookup_word, get_date):
80027         Use NULL instead of 0 where appropriate.
80028         (to_hour): Avoid abort (), to avoid a dependency on
80029         stdlib.h.
80030         (yyerror, yylex): Now accepts parser_control * arg.
80031         (main) [TEST]: Use '\0' rather than 0 for char.
80032
80033 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80034
80035         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80036
80037 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80038
80039         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80040         It's now the caller's responsibility to handle the case where
80041         !HAVE_GETPAGESIZE && !defined getpagesize.
80042
80043         * lib/mktime.c (leapyear): Arg is long int, not int.
80044
80045 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80048
80049 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80050
80051         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80052         missing.  Problem reported by James Youngman.
80053
80054 2004-10-16  Simon Josefsson  <jas@extundo.com>
80055
80056         * gnulib-tool: Fix comments.  Fix parse problem.
80057         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80058
80059 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80060
80061         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80062         implementation of getopt_long.  Problem reported by Alexander Taler in:
80063         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80064
80065 2004-10-15  Bruno Haible  <bruno@clisp.org>
80066
80067         * gnulib-tool: Untabify. Initialize supplied_libname.
80068         (func_usage): More homogenous output.
80069         (func_modules_transitive_closure, func_modules_to_filelist,
80070         func_emit_lib_Makefile_am): New functions.
80071         (func_import): New function, extracted from big case statement. Use
80072         func_get_license, func_modules_transitive_closure,
80073         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80074         opt_lgpl. Don't use test -a, as it's not portable.
80075         (func_create_testdir): Use func_modules_transitive_closure,
80076         func_modules_to_filelist, func_emit_lib_Makefile_am.
80077
80078 2004-10-15  Bruno Haible  <bruno@clisp.org>
80079
80080         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80081
80082 2004-10-15  Bruno Haible  <bruno@clisp.org>
80083
80084         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80085         the portions belonging to each module.
80086         Suggested by Derek Robert Price <derek@ximbiot.com>.
80087
80088 2004-10-12  Simon Josefsson  <jas@extundo.com>
80089
80090         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80091         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80092         to real functions.
80093
80094 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80095
80096         * modules/vsnprintf: New file.
80097
80098 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80099
80100         * m4/vsnprintf.m4: New file.
80101
80102 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80103
80104         * lib/vsnprintf.h: New file.
80105         * lib/vsnprintf.c: New file.
80106
80107 2004-10-11  Bruno Haible  <bruno@clisp.org>
80108
80109         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80110         vsnprintf.
80111
80112 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80113
80114         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80115
80116 2004-10-07  Bruno Haible  <bruno@clisp.org>
80117
80118         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80119         fits into the provided buffer.
80120
80121 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80122
80123         * lib/diacrit.c, diacrit.h: Add GPL notice.
80124
80125         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80126         notice.
80127         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80128         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80129         This avoids a potential constant-folding bug.
80130
80131 2004-10-05  Bruno Haible  <bruno@clisp.org>
80132
80133         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80134         for the declaration of strsep.
80135
80136 2004-10-05  Bruno Haible  <bruno@clisp.org>
80137
80138         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80139
80140 2004-10-04  Simon Josefsson  <jas@extundo.com>
80141
80142         * modules/memmem: New file.
80143         * tests/test-memmem.c: New file.
80144         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80145
80146 2004-10-04  Simon Josefsson  <jas@extundo.com>
80147
80148         * m4/memmem.m4: New file.
80149
80150 2004-10-04  Simon Josefsson  <jas@extundo.com>
80151
80152         * lib/memmem.h: New file.
80153         * lib/memmem.c: New file, taken from glibc.
80154
80155 2004-10-04  Simon Josefsson  <jas@extundo.com>
80156
80157         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80158         '#ifdef USE_UNLOCKED_IO'.
80159
80160 2004-10-04  Simon Josefsson  <jas@extundo.com>
80161
80162         * config/srclist.txt: Add memmem from glibc.
80163
80164 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80165
80166         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80167
80168         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80169         modules/exclude, modules/getdate, modules/getline,
80170         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80171         modules/getusershell, modules/linebuffer, modules/md5,
80172         modules/mountlist, modules/posixtm, modules/readtokens,
80173         modules/readutmp, modules/regex, modules/sha1,
80174         modules/version-etc, modules/yesno:
80175         Remove dependency on unlocked-io.
80176
80177 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80178
80179         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80180
80181         * m4/unlocked-io.m4: Add copyright notice.
80182         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80183
80184 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80187         * lib/xmalloc.c (xmemdup): Likewise.
80188         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80189         XFREE): Remove these long-obsolescent macros.
80190         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80191         * lib/xstrdup.c: Remove.
80192
80193         * lib/regex.c (re_comp): Cast gettext return value to char *,
80194         Problem reported by Martin Neitzel via Mark D. Baushke.
80195
80196 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80199         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80200         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80201         regex.c, sha1.c, version-etc.c, yesno.c:
80202         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80203         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80204         the includer's responsibility.
80205
80206         Sync from coreutils.
80207
80208         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80209         points to the start of a string, as the C Standard says the
80210         resulting behavior is undefined.
80211
80212         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80213         simple -> simple_backups, numbered_existing ->
80214         numbered_existing_backups, numbered -> numbered_backups
80215         to avoid shadowing problems.  All uses changed.
80216         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80217         * lib/backupfile.c (check_extension, numbered_backup):
80218         Rename locals to avoid shadowing 'basename'.
80219         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80220         once.
80221
80222         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80223         * lib/.cvsignore: Add getopt.h.
80224
80225 2004-10-04  Bruno Haible  <bruno@clisp.org>
80226
80227         * modules/README: New file.
80228         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80229         not a module.
80230
80231 2004-10-02  Jim Meyering  <jim@meyering.net>
80232
80233         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80234
80235 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80236
80237         * modules/strsep: New file.
80238
80239 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80240
80241         * m4/strsep.m4: New file.
80242
80243 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80244
80245         * lib/strsep.h: New file.
80246         * lib/strsep.c: New file.
80247
80248 2004-10-01  Simon Josefsson  <jas@extundo.com>
80249
80250         * lib/snprintf.c (snprintf): Handle size==0.
80251
80252 2004-10-01  Simon Josefsson  <jas@extundo.com>
80253             Bruno Haible  <bruno@clisp.org>
80254
80255         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80256         (snprintf): Declare 'args'.
80257
80258 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80259
80260         * lib/snprintf.c: Remove comments as to why each header is needed.
80261
80262 2004-10-01  Bruno Haible  <bruno@clisp.org>
80263
80264         * MODULES.html.sh: Add strsep.
80265
80266 2004-09-30  Simon Josefsson  <jas@extundo.com>
80267
80268         * modules/snprintf: New file.
80269
80270 2004-09-30  Simon Josefsson  <jas@extundo.com>
80271
80272         * m4/snprintf.m4: New file.
80273
80274 2004-09-30  Simon Josefsson  <jas@extundo.com>
80275
80276         * lib/snprintf.h, lib/snprintf.c: New files.
80277
80278 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80279
80280         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80281         (hol_entry_help): Never translate an empty string.
80282         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80283         * lib/argp.h (OPTION_NO_TRANS): New option.
80284
80285 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80286
80287         * modules/argp (Maintainer): Replace Simon Josefsson
80288         by Sergey Poznyakoff.
80289
80290 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80291
80292         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80293         changes merged back into glibc.
80294
80295 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80298
80299 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80300
80301         * lib/xvasprintf.c: Include xalloc.h.
80302         (xvasprintf): Use xalloc_die, not xmalloc_die.
80303
80304 2004-09-29  Bruno Haible  <bruno@clisp.org>
80305
80306         * modules/alloca-opt: New file, derived from modules/alloca.
80307         * modules/allocsa: Depend on alloca-opt instead of alloca.
80308         * modules/setenv: Likewise.
80309         * modules/vasnprintf: Likewise.
80310         * MODULES.html.sh: Add alloca-opt.
80311
80312 2004-09-28  Simon Josefsson  <jas@extundo.com>
80313
80314         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80315         LGPL, and to replace license template from GPL to LGPL.
80316
80317 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * modules/dummy: Change license to LGPL.
80320
80321 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80322
80323         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80324
80325 2004-09-24  Simon Josefsson  <jas@extundo.com>
80326
80327         * modules/minmax (License): Change from GPL to LGPL.
80328
80329 2004-09-23  Simon Josefsson  <jas@extundo.com>
80330
80331         * gnulib-tool (--import): Typo.
80332
80333 2004-09-23  Simon Josefsson  <jas@extundo.com>
80334
80335         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80336
80337 2004-09-22  Bruno Haible  <bruno@clisp.org>
80338
80339         * modules/*: Add 'License' field.
80340         * gnulib-tool: Accept --extract-license option.
80341         (func_get_license): New function.
80342
80343 2004-09-21  Bruno Haible  <bruno@clisp.org>
80344
80345         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80346         Reported by Simon Josefsson.
80347
80348 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80349
80350         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80351         gl_AC_TYPE_LONG_LONG.
80352
80353 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80354
80355         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80356
80357 2004-09-18  Simon Josefsson  <jas@extundo.com>
80358         and  Paul Eggert  <eggert@cs.ucla.edu>
80359
80360         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80361         calls with autoreconf.  Define GL_LIB.
80362
80363 2004-09-14  Karl Berry  <karl@gnu.org>
80364
80365         * config/srclist.txt: unsync setenv.c, sigh.
80366
80367 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80368
80369         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80370         Problem reported by Bruno Haible in:
80371         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80372
80373 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80374
80375         * config/srclist.txt: Comment out argp-pvh.c.
80376
80377 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80378
80379         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80380         in case some system header has #define'd it.  Problem reported by
80381         Soeren D. Schulze in
80382         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80383
80384 2004-09-09  Karl Berry  <karl@gnu.org>
80385
80386         * regex.[ch]: delete from the root.  These were supposed to be
80387                 synced with emacs cvs, but this has not happened for about
80388                 a year, and anyway nothing else uses emacs regex.[ch].
80389                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80390                 lib/regex[.ch] is untouched.
80391
80392 2004-09-09  Bruno Haible  <bruno@clisp.org>
80393
80394         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80395
80396 2004-09-09  Bruno Haible  <bruno@clisp.org>
80397
80398         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80399         modifications.
80400         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80401
80402 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80403
80404         * modules/xvasprintf: New file.
80405         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80406
80407 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80408
80409         * lib/xvasprintf.h: New file.
80410         * lib/xvasprintf.c: New file.
80411         * lib/xasprintf.c: New file.
80412
80413 2004-09-08  Bruno Haible  <bruno@clisp.org>
80414
80415         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80416
80417 2004-09-08  Bruno Haible  <bruno@clisp.org>
80418
80419         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80420         length is > INT_MAX.
80421         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80422         more.
80423
80424 2004-09-08  Bruno Haible  <bruno@clisp.org>
80425
80426         * lib/stdint_.h: New file, taken from GNU clisp.
80427
80428 2004-09-08  Bruno Haible  <bruno@clisp.org>
80429             Oskar Liljeblad  <oskar@osk.mine.nu>
80430
80431         * modules/stdint: New file.
80432         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80433
80434 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80435
80436         Import from coreutils.
80437         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80438         strings on unbounded length.  alloca's performance benefits aren't
80439         that important here.
80440         (V_STRDUP): Remove.
80441         (parse_with_separator): New function, with most of the internals
80442         of the old parse_user_spec.  Allow user to omit both user and group,
80443         for compatibility with FreeBSD.
80444         Clone only the user name, not the entire spec.
80445         Do not set *uid, *gid unless entirely successful.
80446         Avoid memory leak in some failing cases.
80447         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80448         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80449         (parse_user_spec): Rewrite to use parse_with_separator.
80450
80451 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80452
80453         * modules/userspec: Don't depend on alloca.
80454
80455 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80456
80457         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80458
80459 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80460
80461         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80462         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80463         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80464
80465 2004-08-16  Simon Josefsson  <jas@extundo.com>
80466
80467         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80468         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80469         Add --dry-run for --import.
80470         Let user provided command line parameters override configure.ac
80471         settings.
80472
80473 2004-08-12  Simon Josefsson  <jas@extundo.com>
80474
80475         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80476         as discussed with Paul Eggert in threads rooted at
80477         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80478         and
80479         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80480         Before, the test was empty, and relied on ELIDE_CODE in source
80481         code.)
80482         (gl_PREREQ_GETOPT): New macro.
80483         (gl_GETOPT): Use them.
80484
80485 2004-08-12  Simon Josefsson  <jas@extundo.com>
80486
80487         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80488         * lib/getopt_.h: Renamed from getopt.h.
80489
80490 2004-08-12  Simon Josefsson  <jas@extundo.com>
80491
80492         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80493         Change default library name from libfoo to libgnu.
80494         Now, if you have a configure.ac that says:
80495                 gl_SOURCE_BASE(gl)
80496                 gl_M4_BASE(gl/m4)
80497                 gl_MODULES(error getopt etcetera)
80498                 gl_INIT
80499         you can import all you need by running:
80500                 ../gnulib/gnulib-tool --import
80501
80502         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80503         (Makefile.am): Rewrite, use logic from argz.
80504         (Include): Use <getopt.h> instead of "getopt.h".
80505
80506 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80507
80508         * modules/argp (Files): Add m4/unlocked-io.m4.
80509         (Depends-on): Add extensions.
80510
80511 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80512
80513         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80514         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80515         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80516         Check for program_invocation_name, program_invocation_short_name,
80517         flockfile, funlockfile, features.h, _getopt_long_only_r.
80518
80519 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80520
80521         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80522         its complicated substitute.
80523         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80524         and program_invocation_name.
80525         (__argp_basename) [!_LIBC]: Remove; the only use was
80526         replaced by its body.
80527         (__argp_short_program_name): Change condition from
80528         !defined __argp_short_program_name to
80529         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80530         to match argp-namefrob.h.
80531         (__argp_failure): Don't assume strerror_r returns char *.
80532         * lib/argp-parse.c (N_): Define unconditionally.
80533         (argp_default_options): Fill out initializers with 0 to avoid
80534         gcc warnings.
80535
80536 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80539         getopt1.c.
80540
80541 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         Merge from coreutils.
80544
80545         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80546
80547         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80548         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80549
80550 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80551
80552         Merge from coreutils.
80553
80554         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80555         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80556         for Reliant Unix 5.43.
80557
80558         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80559         (union fooround): Use uintmax_t, not long int.
80560         The rest is a merge from libc:
80561         [defined _LIBC]: Include <shlib-compat.h>.
80562         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80563
80564         * lib/settime.c (settime): Recode to avoid warning with
80565         Sun Forte C 6U2.
80566
80567         * lib/strverscmp.c: Convert to UTF-8.
80568
80569 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80572         m4/uintmax_t.m4.
80573
80574 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80575
80576         * modules/xalloc-die: New file.
80577         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80578
80579         * modules/md5 (Files): Add m4/uint32_t.m4.
80580         * modules/sha1: Renamed from modules/sha.
80581         (Files):
80582         Rename lib/sha.h to lib/sha1.h.
80583         Rename lib/sha.c to lib/sha1.c.
80584         Rename m4/sha.m4 to m4/sha1.m4.
80585         (lib_SOURCES): Likewise.
80586         (configure.ac): Rename gl_SHA to gl_SHA1.
80587         (Include): sha.h -> sha1.h.
80588
80589 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80590
80591         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80592         * m4/sha1.m4: Renamed from sha.m4.
80593         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80594
80595 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * lib/obstack.h (obstack_empty_p):
80598         Don't assume that chunk->contents is suitably aligned.
80599         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80600         Likewise. Problem reported by Benno in
80601         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80602
80603         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80604         readable.  This could be improved further but it'd take some work.
80605
80606 2004-08-08  Simon Josefsson  <jas@extundo.com>
80607
80608         * modules/xgethostname (Depends-on): Remove exit and error (not
80609         used).
80610
80611         * modules/getpass-gnu: Add getpass.h.
80612         (Depends-on): Add stdbool.
80613         * modules/getpass: Add getpass.h.
80614
80615 2004-08-08  Simon Josefsson  <jas@extundo.com>
80616
80617         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80618         Check getpass declaration.
80619
80620 2004-08-08  Simon Josefsson  <jas@extundo.com>
80621
80622         * lib/xgethostname.c: Don't include error.h (not used).
80623
80624         * lib/getpass.h: Add.
80625         * lib/getpass.c: Include getpass.h first.
80626
80627 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80628
80629         * lib/xalloc-die.c: New file.
80630         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80631         All uses removed.
80632         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80633         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80634         xalloc-die.c.
80635         (_, N_, xalloc_die): Move to xalloc-die.c.
80636         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80637         so that we needn't mess with xalloc_msg_memory_exhausted.
80638
80639         * lib/sha1.h: Renamed from sha.h.
80640         (SHA1_H): Renamed from _SHA_H.
80641         (sha1_ctx): Renamed from sha_ctx.
80642         (sha1_init_ctx): Renamed from sha_init_ctx.
80643         (sha1_process_block): Renamed from sha_process_block.
80644         (sha1_process_bytes): Renamed from sha_process_bytes.
80645         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80646         (sha1_read_ctx): Renamed from sha_read_ctx.
80647         (sha1_stream): Renamed from sha_stream.
80648         (sha1_buffer): Renamed from sha_buffer.
80649         * lib/sha1.c: Likewise; renamed from sha.c.
80650         Do not include <sys/types.h>.
80651         Include <stddef.h> rather than <stdlib.h>.
80652
80653 2004-08-08  Bruno Haible  <bruno@clisp.org>
80654
80655         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80656         FILESYSTEM_PREFIX_LEN.
80657         * lib/progreloc.c: Likewise.
80658         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80659
80660 2004-08-06  Simon Josefsson  <jas@extundo.com>
80661
80662         * modules/progname (Depends-on): Don't depend on stdbool.
80663
80664 2004-08-06  Simon Josefsson  <jas@extundo.com>
80665
80666         * modules/getsubopt: New file.
80667         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80668         getsubopt.
80669
80670 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         More merge from coreutils.
80673
80674         * m4/utimens.m4, m4/utimecmp.m4: New files.
80675         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80676         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80677         prereq.m4, sha.m4: Import changes from coreutils.
80678
80679 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80680
80681         More merge from coreutils.
80682         * modules/raise, modules/readtokens0, modules/utimens:
80683         * modules/utimecmp, module/xnanosleep: New files.
80684         * modules/strftime: Add lib/strftime.h.
80685         Change include from <time.h> to "strftime.h".
80686         * modules/yesno: Add lib/yesno.h.
80687         * modules/backupfile: Remove lib/addext.c.
80688         * modules/euidaccess: Add stat-macros.h.
80689         * modules/canonicalize, modules/euidaccess,
80690         modules/filemode, modules/lchown, modules/makepath,
80691         modules/rmdir, modules/stat: Likewise.
80692
80693 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80694
80695         Merge from tar.
80696         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80697         SIZE_MAX is a valid preprocessor constant.
80698         (__argp_basename): Change from "#ifndef _LIBC"
80699         to "#ifndef __argp_short_program_name", so that
80700         we don't compile these functions for tar.
80701
80702         More merges from coreutils.
80703         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80704         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80705         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80706         * lib/addext.c: Remove; no longer needed.
80707         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80708         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80709         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80710         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80711         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80712         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80713         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80714         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80715         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80716         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80717         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80718         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80719         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80720         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80721         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80722         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80723         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80724         Import changes from coreutils.
80725
80726 2004-08-05  Simon Josefsson  <jas@extundo.com>
80727
80728         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80729
80730 2004-08-05  Simon Josefsson  <jas@extundo.com>
80731
80732         * m4/getsubopt.m4: New file.
80733
80734 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         Merge from coreutils.
80737
80738         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80739         * m4/getcwd-path-max.m4: New files.
80740
80741         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80742         FILESYSTEM_PREFIX_LEN ->
80743         FILE_SYSTEM_PREFIX_LEN.
80744         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80745         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80746         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80747         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80748
80749         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80750         prerequisite modules now handle the DOS stuff.
80751         Don't check for unistd.h.
80752
80753 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80754
80755         Merge from coreutils.
80756
80757         * lib/.gdb-history: Remove; this doesn't belong here.
80758
80759         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80760         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80761         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80762         * lib/getcwd.c: New files.
80763
80764         * lib/dirname.h: Include <stdbool.h>.
80765         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80766         for consistency with POSIX terminology.  All uses changed.
80767         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80768         (strip_trailing_slashes): Use bool for booleans.
80769         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80770
80771         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80772         sometimes returns a positive errno value even when it succeeds.
80773         (print_errno_message) [!LIBC]: Fall back on strerror if
80774         __strerror_r fails.
80775
80776         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80777         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80778         (longest_relative_suffix): New function.
80779         (path_concat): Use it.  Assume first argument is not NULL.
80780         Port to DOS.  Omit redundant separators.
80781         Report an error instead of returning NULL.
80782         Use mempcpy instead of memcpy.
80783         (xpath_concat): Remove: not declared or used.
80784
80785         * lib/same.h: Include <stdbool.h>
80786         (same_name): Return bool, not int.
80787         * lib/same.c (same_name): Likewise.
80788         (errno): Don't declare; we assume C89 or better now.
80789
80790         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80791         if not already defined.
80792
80793         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80794         * lib/dup-safer.c (errno): Likewise.
80795
80796 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80797
80798         Merge from coreutils.
80799         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80800         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80801         * modules/path-concat: Don't depend on strdup.
80802
80803 2004-08-03  Simon Josefsson  <jas@extundo.com>
80804
80805         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80806         * lib/progname.h: Don't include stdbool.h.
80807
80808 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80811         * MODULES.html.sh (func_all_modules): Remove fatal.
80812
80813 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80814
80815         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80816
80817 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80818
80819         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80820         working.
80821
80822 2004-08-02  Simon Josefsson  <jas@extundo.com>
80823
80824         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80825         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80826         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80827
80828 2004-08-01  Simon Josefsson  <jas@extundo.com>
80829
80830         * lib/xgetdomainname.c: Include stdlib.h, for free().
80831
80832 2004-07-19  Bruno Haible  <bruno@clisp.org>
80833
80834         * MODULES.html.sh (func_all_modules): Add dummy.
80835
80836 2004-07-16  Simon Josefsson  <jas@extundo.com>
80837
80838         * modules/dummy: New file.
80839
80840 2004-07-16  Simon Josefsson  <jas@extundo.com>
80841
80842         * lib/dummy.c: New file.
80843
80844 2004-07-16  Bruno Haible  <bruno@clisp.org>
80845
80846         * lib/backupfile.h: Add extern "C" for C++.
80847         * lib/closeout.h: Likewise.
80848         * lib/copy-file.h: Likewise.
80849         * lib/findprog.h: Likewise.
80850         * lib/full-write.h: Likewise.
80851         * lib/pathname.h: Likewise.
80852         * lib/progname.h: Likewise.
80853         * lib/stpcpy.h: Likewise.
80854         * lib/stpncpy.h: Likewise.
80855         * lib/strcase.h: Likewise.
80856         * lib/strstr.h: Likewise.
80857         * lib/xalloc.h: Likewise.
80858
80859         * lib/mbswidth.h: Add extern "C" for C++.
80860         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80861
80862 2004-07-13  Robert Millan  <robertmh@gnu.org>
80863
80864         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80865
80866 2004-07-09  Simon Josefsson  <jas@extundo.com>
80867
80868         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80869         failed without this.)
80870
80871 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         * modules/chown (Files): Add lib/fchown-stub.c, since
80874         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80875
80876 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80877
80878         * lib/fchown-stub.c: New file.
80879
80880 2004-06-24  Jim Meyering  <jim@meyering.net>
80881
80882         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80883
80884 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80885
80886         * modules/argz: Omit "#include".
80887
80888         * MODULES.html.sh (func_all_modules): Add calloc, to match
80889         2004-06-01 addition of calloc module.
80890
80891 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80892
80893         * m4/argz.m4: New file, which is autoupdated from libtool.
80894
80895 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80898         libtool.
80899
80900 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80901
80902         * config/srclist-update: Don't insist on "USA." before the
80903         close-comment, as libtool omits the period and puts the */ on a
80904         separate line.
80905         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80906         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80907
80908 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80909
80910         * modules/argz: New file.
80911         * MODULES.html.sh (func_all_modules): Add argz.
80912
80913 2004-06-12  Jim Meyering  <jim@meyering.net>
80914         and  Paul Eggert  <eggert@cs.ucla.edu>
80915
80916         * modules/hash (Files): Add lib/xalloc.h.
80917         * modules/pipe (Depends-on): Add wait-process.
80918         * modules/stat (Depends-on): Add xalloc.
80919         * modules/userspec (Files): Add lib/userspec.h.
80920         * modules/xstrto
80921
80922         Upgrade from gettext-0.13.
80923         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80924         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80925         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80926
80927 2004-06-10  Jim Meyering  <jim@meyering.net>
80928
80929         * lib/calloc.c: New file.
80930
80931 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80932
80933         * lib/getdate.y (yylex): Allow space between sign and number.
80934         Problem reported by Dan Jacobson.
80935
80936 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80937
80938         Merge from coreutils CVS.
80939
80940         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80941         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80942         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80943         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80944         xstrtol.m4: Fix copyright date and/or serial number.
80945
80946         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80947         See if we need an fchown replacement.
80948         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80949         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80950         and use the replacement function if we detect either defect.
80951
80952         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80953         gl_UTIMECMP.
80954
80955 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80956         and  Jim Meyering  <jim@meyering.net>
80957
80958         Merge from coreutils CVS.
80959
80960         * lib/stat-macros.h: New file, with contents from file-type.h
80961         and coreutils' system.h.
80962         * lib/file-type.c: Include "stat-macros.h".
80963         * lib/file-type.h (file_type): Move all macro definitions to new file,
80964         stat-macros.h.
80965
80966         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80967         Wrap old code with this conditional.
80968         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80969         function that does not dereference symlinks.
80970         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80971
80972         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80973         dependency problems.
80974         (xreadlink): Accept new arg SIZE, for efficiency.
80975         All decls and uses changed.
80976         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80977
80978         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80979         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80980
80981         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80982         sysexits.h.
80983
80984 2004-06-01  Jim Meyering  <jim@meyering.net>
80985
80986         * m4/calloc.m4: New file.
80987
80988 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80989
80990         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80991         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80992         Also, fix a typo in a diagnostic.
80993
80994 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80995
80996         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80997         or AC_FUNC_REALLOC.
80998
80999 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81000
81001         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81002         macros to be defined.
81003         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81004         the allocator returns NULL because the requested size is zero.
81005
81006 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81007
81008         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81009         var.  Add comment explaining why libc still defines it.  This
81010         merges the following patch from glibc:
81011         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81012
81013 2004-05-20  Andreas Schwab  <schwab@suse.de>
81014
81015         * m4/free.m4: Replace free if it not known to work, not the other
81016         way round.
81017
81018 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81019
81020         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81021         present in glibc since revision 1.1 of this file.
81022         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81023         obstack_alignment_mask, obstack_alloc, obstack_base,
81024         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81025         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81026         obstack_grow0, obstack_init, obstack_int_grow,
81027         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81028         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81029         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81030         nonexistent functions.
81031
81032 2004-05-18  Karl Berry  <karl@gnu.org>
81033
81034         * config/srclist.txt: break link for vasnprintf.c.
81035
81036 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81037
81038         Port obstack to the AS/400, where pointers are 16 bytes wide and
81039         you cannot cast an integer to a valid pointer.  This patch is
81040         currently waiting to be integrated into glibc; see
81041         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81042
81043         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81044         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81045         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81046         (struct obstack): temp member is now a union of a pointer and
81047         an integer, instead of an integer.  All integer uses changed.
81048         This does not affect the physical layout of struct obstack,
81049         except on hosts (like the AS/400) where the size or alignment of
81050         void * is greater than that of ptrdiff_t.
81051         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81052         __STDC__)]: Store temporary in pointer member of union, not
81053         integer member.
81054         * lib/obstack.c: Include <stddef.h>, for offsetof.
81055         (struct fooalign): Remove; it doesn't need a name.
81056         (union fooround): Change double to long double, and add void *.
81057         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81058         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81059         not a macro.  Hence the values are always int; so remove all
81060         casts-to-int in uses.
81061
81062 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81063
81064         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81065         we can get this patch merged into glibc.
81066
81067 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81068             Paul Eggert  <eggert@cs.ucla.edu>
81069
81070         * m4/argp: Depend on alloca.
81071
81072 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81073             Paul Eggert  <eggert@cs.ucla.edu>
81074
81075         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81076         freecoding.
81077
81078 2004-05-17  Bruno Haible  <bruno@clisp.org>
81079
81080         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81081         precision that consists of a '.' followed by an empty digit string.
81082         Patch by Tor Lillqvist <tml@iki.fi>.
81083
81084 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81085
81086         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81087         for backward compatibility with older code.  We need our own
81088         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81089         it under some other name, and our alloca.h will define it.
81090
81091 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81092             Derek Price  <derek@ximbiot.com>
81093
81094         * lib/alloca.c: Include <alloca.h>, to get our interface.
81095         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81096         include <alloca.h> first.  Use C89 prototype for alloca; this
81097         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81098         Use #elif for simplicity, since we can assume C89 now.
81099         Don't try to source the system alloca.h since it will not be found
81100         and to prevent recursively including its replacement.
81101         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81102         * lib/regex.c: Likewise.
81103
81104 2004-05-16  Derek Price  <derek@ximbiot.com>
81105             Paul Eggert  <eggert@cs.ucla.edu>
81106
81107         getline cleanup.  This changes the getndelim2 API: both order of
81108         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81109         no delimiter).
81110
81111         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81112         interface does that.
81113         (getline): Always use getdelim, so that we don't have two
81114         copies of this code.
81115         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81116         if available.
81117         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81118         (GETNDELIM2_MAXIMUM): New macro.
81119         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81120         instead of the old practice of delim2==0.  All callers changed.
81121         Return -1 on overflow, instead of returning junk.
81122         Do not set *linesize unless allocation succeeds.
81123         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81124         that we include sys/types.h.
81125         * lib/getnline.h: Likewise.
81126         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81127         (getndelim2): Reorder arguments.
81128         * lib/getnline.c (getnline, getndelim):
81129         Don't discard the NMAX argument.
81130         (getnline): Invoke getndelim, to avoid code duplication.
81131         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81132         of (size_t) -1 by callers of the getnline family.
81133
81134 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81137         Check for gettimeofday.
81138         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81139         Check for settimeofday, stime.
81140
81141 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81142
81143         * lib/nanosleep.c (suspended): Change its type from int to
81144         sig_atomic_t volatile.
81145         (first_call): Make it private to rpl_nanosleep, and have it
81146         be zero initially as that's a bit faster.
81147         (my_usleep): Round up fractional times instead of truncating them,
81148         as this is the usual meaning for 'sleep'.
81149
81150         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81151         doesn't work.
81152         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81153         (ENOSYS): Define if not defined.
81154         (settime): Fall back on stime if it exists and settimeofday fails.
81155         But don't bother with fallbacks if a method fails with errno == EPERM.
81156
81157 2004-05-11  Jim Meyering  <jim@meyering.net>
81158
81159         Prior to this change, the save_cwd caller required read access to the
81160         current directory on most systems (ones with the fchdir function).
81161
81162         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81163         fails, try write-only, and finally, resort to using xgetcwd.
81164
81165 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * lib/obstack.c, obstack.h: Import changes from libc.
81168
81169 2004-04-28  Bruno Haible  <bruno@clisp.org>
81170
81171         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81172         also implicitly appends .exe to executables.
81173         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81174         accepts Windows pathnames.
81175         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81176         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81177         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81178         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81179         Reported by Derek Robert Price <derek@ximbiot.com>.
81180
81181 2004-04-21  Karl Berry  <karl@gnu.org>
81182
81183         * config/srclist.txt (localcharset.c): break sync.
81184
81185 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81186
81187         * m4/host-os.m4: Add a copyright notice.
81188
81189 2004-04-20  Jim Meyering  <jim@meyering.net>
81190
81191         Change UTILS_ to gl_ in AC_DEFINE'd names.
81192         Change utils_- and jm_-prefixed variables, too.
81193         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81194         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81196
81197         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81198         Don't emit trailing blanks.
81199         Also rename jm_-prefixed variables to have gl_ prefix.
81200
81201         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81202         Also rename jm_-prefixed variables to have gl_ prefix.
81203
81204         * m4/jm-macros.m4: Reflect the renamings.
81205         * m4/prereq.m4: Likewise.
81206
81207 2004-04-20  Jim Meyering  <jim@meyering.net>
81208
81209         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81210         memory.
81211
81212 2004-04-20  Jim Meyering  <jim@meyering.net>
81213             Bruno Haible  <bruno@clisp.org>
81214
81215         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81216         memory when realloc fails.
81217
81218 2004-04-19  Jim Meyering  <jim@meyering.net>
81219
81220         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81221         now that readutmp.c may call `free (0)'.
81222
81223 2004-04-19  Bruno Haible  <bruno@clisp.org>
81224
81225         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81226         * m4/inttypes_h.m4: Likewise.
81227         * m4/stdint_h.m4: Likewise.
81228         * m4/intmax_t.m4: Likewise.
81229         * m4/uintmax_t.m4: Likewise.
81230
81231 2004-04-18  Jim Meyering  <jim@meyering.net>
81232
81233         * m4/prereq.m4: Don't forbid jm_ prefix.
81234
81235         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81236         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81237         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81238         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81239         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81240         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81241         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81242         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81243         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81244         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81245         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81246         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81247         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81248         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81249         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81250         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81251         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81252         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81253         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81254
81255 2004-04-18  Jim Meyering  <jim@meyering.net>
81256
81257         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81258         failure, don't leak memory and do call END_UTMP_ENT.
81259
81260 2004-04-16  Jim Meyering  <jim@meyering.net>
81261
81262         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81263         coreutils' stat program.
81264         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81265
81266 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81267
81268         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81269         C89.
81270         (CHAR_BIT): Remove, since we assume C89.
81271         Include <stdint.h> if available, as per current Autoconf CVS advice.
81272
81273 2004-03-31  Jim Meyering  <jim@meyering.net>
81274
81275         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81276         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81277         * m4/xalloc.m4: Likewise.
81278
81279 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81280
81281         Merge from coreutils.
81282
81283         * m4/inttostr.m4: New file.
81284         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81285         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81286         Require gl_CLOCK_TIME.
81287         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81288
81289 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81290
81291         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81292         not bool, to be more consistent with Unix conventions.
81293         Suggested by Bruno Haible.
81294
81295         Merge from coreutils.
81296
81297         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81298         * lib/umaxtostr.c: New files.
81299
81300         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81301         the usual <time.h> dance.
81302         (get_date): Change signature to support fractional time stamps.
81303         All callers changed.
81304         * lib/getdate.y: Include "getdate.h" first, as we can now
81305         assume C89 and don't need to worry about 'const'.
81306         Similarly, include "unlocked-io.h" near start, not in middle.
81307         Include <limits.h>.
81308         (textint.value): Use long int rather than int.
81309         (textint.digits): Use size_t rather than int.
81310         (BILLION, LOG10_BILLION): New constants.
81311         (parser_control): New member rel_ns.  Members day_ordinal,
81312         time_zone, month, day, hour, minutes, rel_year, rel_month,
81313         rel_day, rel_hour, rel_minutes, rel_seconds
81314         are now long int, not int.  Member seconds is now struct timespec,
81315         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81316         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81317         not int.
81318         (%union.intval): Now long int, not int.
81319         New member timespec.
81320         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81321         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81322         (spec): Now is a timespec or an item list.
81323         (timespec, items): New nonterminals.
81324         (time, rel, relunit, number, get_date):
81325         Add support for fractional seconds.
81326         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81327         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81328         (to_hour): First arg is now long int, not int.
81329         (to_year): Returns long int, not int.
81330         Don't treat year -70 like 70.
81331         (tm_diff): Returns long int, not int.
81332         (lookup_word): Use bool instead of int when appropriate.
81333         (yylex): Use size_t for count, not int.
81334         Detect overflow when parsing large integer constants.
81335         Add support for fractions.
81336         (get_date): Make pointers 'const' if possible.
81337         Use more-portable code to detect integer overflow.
81338         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81339         Don't use ctime; it's not reliable if the year has >4 digits.
81340
81341         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81342         This is for compatibility with BSD.
81343
81344         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81345         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81346         From coreutils' system.h.
81347
81348         * lib/userspec.c: Don't include "posixver.h".
81349         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81350         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81351         compatible extension.  Simplify code by removing a boolean int
81352         that was always nonzero if a string was nonnull.
81353
81354 2004-03-30  Jim Meyering  <jim@meyering.net>
81355
81356         Merge from coreutils.
81357
81358         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81359         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81360         on some systems one must include <grp.h> before it.
81361         Reported by Christian Krackowizer.
81362
81363 2004-03-30  Jim Meyering  <jim@meyering.net>
81364
81365         Merge from coreutils.
81366
81367         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81368
81369         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81370         an empty input stream.
81371
81372         * lib/readtokens.c: Include <stdbool.h>.
81373         (readtoken): Use `size_t' rather than int/long.
81374         All callers adjusted.
81375         Use `bool' rather than `int' where appropriate.
81376         Use memset rather than an explicit loop.
81377         Use x2nrealloc rather than xrealloc.
81378         Allow the use of `\0' as a delimiter.
81379         (readtokens): Likewise.
81380         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81381
81382 2004-03-30  Jim Meyering  <jim@meyering.net>
81383
81384         * m4/realloc.m4: Remove file, since now it does no more than
81385         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81386         the `configure.ac' section of module/realloc.
81387         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81388
81389 2004-03-30  Bruno Haible  <bruno@clisp.org>
81390
81391         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81392         nonnull.
81393
81394 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81395
81396         Merge changes to getloadavg.c from coreutils and Emacs.
81397
81398         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81399         Define to an expression, not to the empty string.
81400         Include cloexec.h and xalloc.h.
81401         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81402         Use set_cloexec_flag rather than rolling our own.
81403         * lib/cloexec.c, lib/cloexec.h: New files.
81404
81405 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81406
81407         * m4/cloexec.m4: New file.
81408
81409 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81410
81411         * lib/getopt.h: Sync with libc CVS.
81412
81413 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81414             Bruno Haible  <bruno@clisp.org>
81415
81416         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81417         mbswidth.
81418
81419 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81420             Bruno Haible  <bruno@clisp.org>
81421
81422         * lib/mbswidth.h: Include <wchar.h> only if
81423         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81424         <wchar.h>.
81425         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81426
81427 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81428
81429         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81430         Sync with libc CVS.
81431         * lib/getopt_int.h: New file, also synced from libc.
81432
81433 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81434
81435         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81436         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81437         Bring back getopt.c, getopt.h, getopt1.c.
81438
81439 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81440
81441         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81442         All uses changed.  Check for sa_sigaction member; this fixes
81443         a bug first reported by Jason Andrade in
81444         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81445
81446 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81447
81448         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81449         '#if' expressions.  Unlike the code it replaces, it does not
81450         depend on (defined _SC_PAGESIZE).  However, it does depend on
81451         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81452         first reported by Jason Andrade in
81453         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81454
81455 2004-02-25  Simon Josefsson  <jas@extundo.com>
81456
81457         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81458
81459 2004-02-25  Simon Josefsson  <jas@extundo.com>
81460
81461         * lib/strdup.h: New file.
81462         * lib/strdup.c: Include it.
81463         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81464         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81465
81466 2004-02-23  Karl Berry  <karl@gnu.org>
81467
81468         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81469         (from fencepost.gnu.org:/gd/gnuorg).
81470
81471 2004-02-23  Karl Berry  <karl@gnu.org>
81472
81473         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81474         * config/srclist.txt: add maintain/standards documents.
81475
81476 2004-02-18  Bruno Haible  <bruno@clisp.org>
81477
81478         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81479         Reported by Derek Robert Price <derek@ximbiot.com>.
81480
81481 2004-02-16  Karl Berry  <karl@gnu.org>
81482
81483         * config/mkinstalldirs, install-sh: update from automake.
81484
81485 2004-02-06  Karl Berry  <karl@gnu.org>
81486
81487         * m4/po.m4: update from gettext 0.14.1.
81488
81489 2004-02-06  Karl Berry  <karl@gnu.org>
81490
81491         * lib/config.charset: update from gettext 0.14.1.
81492
81493 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81494
81495         Add comments and code, prompted by suggestions from Bruno Haible
81496         for sh-quote.
81497         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81498         describing the enum quoting_style values.
81499         * lib/quotearg.c (quotearg_alloc): New function.
81500         (quotearg_buffer_restyled): Treat lone { and } as special.
81501         Treat = as special.  Work around bug with older shells
81502         that "see" a '\' that is really the 2nd byte of a multibyte char.
81503         Quote empty string with shell_quoting_style.
81504
81505 2004-02-03  Bruno Haible  <bruno@clisp.org>
81506
81507         * m4/pipe.m4: New file, from GNU gettext.
81508
81509 2004-02-03  Bruno Haible  <bruno@clisp.org>
81510
81511         * lib/pipe.h: New file, from GNU gettext.
81512         * lib/pipe.c: New file, from GNU gettext.
81513
81514 2004-01-27  Bruno Haible  <bruno@clisp.org>
81515
81516         * m4/execute.m4: New file, from GNU gettext.
81517
81518 2004-01-27  Bruno Haible  <bruno@clisp.org>
81519
81520         * lib/execute.h: New file, from GNU gettext.
81521         * lib/execute.c: New file, from GNU gettext.
81522         * lib/w32spawn.h: New file, from GNU gettext.
81523
81524 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81525
81526         Merge from diffutils.
81527
81528         * lib/file-type.c (file_type): Add typed memory objects.
81529         * lib/file-type.h (S_TYPEISTMO): New macro.
81530
81531         * lib/c-stack.h (c_stack_action): Remove argv argument.
81532         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81533         (die): Don't calculate message unless segv_action returns.
81534         (get_stack_location, min_address_from_argv, max_address_from_argv,
81535         volatile stack_base, volatile_stack_size): Remove.
81536         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81537         that every segmentation violation is a stack overflow.  (Ouch!)
81538         See Debian bug 136249 (still outstanding) for more info about why
81539         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81540
81541 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81542
81543         Exit-status fix from coreutils.
81544
81545         Use exit_failure consistently in place of EXIT_FAILURE,
81546         so that program exit statuses are consistent on failure.
81547
81548         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81549         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81550         * lib/argmatch.h: Comment fix to match the above.
81551         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81552         Now a macro referring to exit_failure, instead of a separate
81553         variable.  Include "exitfail.h" to get it.
81554         * lib/xstrtol.h: Include "exitfail.h".
81555         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81556
81557         * lib/long-options.c (parse_long_options): Use prototype
81558         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81559         for clarity.
81560
81561 2004-01-21  Jim Meyering  <jim@meyering.net>
81562
81563         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81564         so as not to conflict with a different-sized __mktime_internal
81565         function in GNU libc.
81566         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81567         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81568
81569 2004-01-20  Karl Berry  <karl@gnu.org>
81570
81571         * config/config.guess: update from config.
81572
81573         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81574
81575 2004-01-20  Bruno Haible  <bruno@clisp.org>
81576
81577         Safer stack allocation.
81578         * lib/setenv.c: Include allocsa.h.
81579         (alloca): Remove fallback definition.
81580         (freea): Remove macro.
81581         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81582         instead of freea.
81583
81584 2004-01-20  Bruno Haible  <bruno@clisp.org>
81585
81586         * m4/eealloc.m4: New file, from GNU gettext.
81587
81588 2004-01-20  Bruno Haible  <bruno@clisp.org>
81589
81590         * m4/allocsa.m4: New file, from GNU gettext.
81591
81592 2004-01-20  Bruno Haible  <bruno@clisp.org>
81593
81594         * lib/xallocsa.h: New file, from GNU gettext.
81595         * lib/xallocsa.c: New file, from GNU gettext.
81596
81597 2004-01-20  Bruno Haible  <bruno@clisp.org>
81598
81599         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81600
81601 2004-01-20  Bruno Haible  <bruno@clisp.org>
81602
81603         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81604         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81605         specially.
81606
81607 2004-01-20  Bruno Haible  <bruno@clisp.org>
81608
81609         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81610         patch.
81611
81612 2004-01-20  Bruno Haible  <bruno@clisp.org>
81613
81614         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81615
81616 2004-01-20  Bruno Haible  <bruno@clisp.org>
81617
81618         * lib/eealloc.h: New file.
81619
81620 2004-01-20  Bruno Haible  <bruno@clisp.org>
81621
81622         * lib/binary-io.h: Avoid warnings on Cygwin.
81623
81624 2004-01-20  Bruno Haible  <bruno@clisp.org>
81625
81626         * lib/allocsa.h: New file, from GNU gettext.
81627         * lib/allocsa.c: New file, from GNU gettext.
81628
81629 2004-01-18  Karl Berry  <karl@gnu.org>
81630
81631         * doc/gpl.texi, doc/lgpl.texi: new files.
81632
81633 2004-01-18  Karl Berry  <karl@gnu.org>
81634
81635         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81636         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81637
81638 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81639
81640         Merge from coreutils.
81641
81642         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81643         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81644         (gl_DEFAULT_POSIX2_VERSION): Move
81645         the documentation from 'configure' into 'config.hin',
81646         so that 'configure --help' isn't burdened by it and
81647         we don't have to worry about its formatting there.
81648         Reword the documentation so that it's more succinct
81649         and can be run together into a single paragraph.
81650         * m4/same.m4 (gl_SAME): Check for pathconf.
81651
81652 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81653
81654         Merge from coreutils.
81655
81656         * lib/posixver.c: Include posixver.h.
81657
81658         * lib/same.c: Include <stdbool.h>, <limits.h>.
81659         (_POSIX_NAME_MAX): Define if not defined.
81660         (MIN): New macro.
81661         (same_name): If file names are silently truncated, report
81662         that the file names are the same if they are the same after
81663         the silent truncation.
81664
81665         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81666         conversion function.
81667         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81668         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81669         longer needed.
81670
81671 2004-01-15  Jim Meyering  <jim@meyering.net>
81672
81673         Merge from coreutils.
81674
81675         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81676         if no library is required.
81677         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81678         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81679         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81680         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81681         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81682         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81683         value, $ac_cv_search_crypt, if it's "none required".
81684         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81685         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81686         not gl_FUNC_GETLOADAVG.
81687         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81688         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81689
81690 2004-01-15  Jim Meyering  <jim@meyering.net>
81691
81692         Merge from coreutils.
81693
81694         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81695         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81696         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81697
81698         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81699         optional configure-time default.
81700
81701         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81702
81703         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81704
81705 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81706
81707         Merge from coreutils.
81708
81709         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81710         value, $ac_cv_search_nanosleep, if it's "none required".
81711
81712 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81713
81714         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81715         with like-named macro in fnmatch.c.
81716         (EXT): Use an internal constant instead.
81717
81718         Merge fnmatch patches from glibc.
81719         * lib/fnmatch.c (mbsinit): Remove define.
81720         Add libc_hidden_ver (__fnmatch, fnmatch).
81721         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81722         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81723
81724 2004-01-14  Karl Berry  <karl@gnu.org>
81725
81726         * config/install-sh: update from automake.
81727
81728 2004-01-13  Karl Berry  <karl@gnu.org>
81729
81730         * config/install-sh: update from automake.
81731
81732 2004-01-09  Karl Berry  <karl@gnu.org>
81733
81734         * config/install-sh: update from automake.
81735
81736 2004-01-05  Karl Berry  <karl@gnu.org>
81737
81738         * config/config.{sub,guess}: update from config.
81739
81740 2003-12-31  Karl Berry  <karl@gnu.org>
81741
81742         * config/depcomp: update from automake.
81743
81744 2003-12-14  Karl Berry  <karl@gnu.org>
81745
81746         * lib/config.charset: update from gettext-runtime.
81747
81748 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81749
81750         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81751         Bug reported by Alfred M. Szmidt.
81752
81753 2003-12-03  Bruno Haible  <bruno@clisp.org>
81754
81755         * m4/gettext.m4: Upgrade from gettext-0.13.
81756         * m4/po.m4: Upgrade from gettext-0.13.
81757         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81758         * m4/intmax.m4: New file, from gettext-0.13.
81759         * m4/printf-posix.m4: New file, from gettext-0.13.
81760
81761 2003-11-29  Karl Berry  <karl@gnu.org>
81762
81763         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81764
81765 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81766             Bruno Haible  <bruno@clisp.org>
81767
81768         * lib/printf-parse.h: Don't include sys/types.h.
81769         (ARG_NONE): New macro.
81770         (char_directive): Change type of *arg_index fields to size_t.
81771         * lib/printf-parse.c: Don't include sys/types.h.
81772         (SSIZE_MAX): Remove macro.
81773         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81774         Remove unnecessary overflow check.
81775         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81776         fields.
81777
81778 2003-11-25  Bruno Haible  <bruno@clisp.org>
81779
81780         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81781
81782 2003-11-25  Bruno Haible  <bruno@clisp.org>
81783
81784         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81785         gt_TYPE_SSIZE_T.
81786
81787 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81788
81789         * modules/alloca: Remove dependency on xalloc.
81790
81791 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81792
81793         * lib/alloca.c: Remove dependency on xalloc module.
81794         (xalloc_die): Remove.
81795         (memory_full) [!defined emacs]: New macro.
81796         [!defined emacs]: Don't include xalloc.h.
81797         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81798         address arithmetic overflows.  Change datatypes a bit to avoid
81799         unnecessary casts.
81800
81801 2003-11-22  Jim Meyering  <jim@meyering.net>
81802
81803         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81804         s/size/size_t/.
81805
81806 2003-11-21  Karl Berry  <karl@gnu.org>
81807
81808         * config/config.{sub,guess}: update from config.
81809
81810 2003-11-18  Karl Berry  <karl@gnu.org>
81811
81812         * config/config.{sub,guess}: update from config.
81813
81814         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81815
81816 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81817
81818         * README: Mention that S+T cannot overflow if S is the size of
81819         an existing object and T is sufficiently small.
81820
81821 2003-11-17  Jim Meyering  <jim@meyering.net>
81822
81823         On systems without utime and without a utimes function capable of
81824         dealing with a NULL struct utimbuf* argument, this utime replacement
81825         could -- in unusual circumstances -- leak a file descriptor.
81826         * lib/utime.c: Include <unistd.h> and <errno.h>.
81827         (utime_null): Be sure to close `fd' and to preserve errno.
81828         Reported by Geoff Collyer via Arnold Robbins.
81829
81830 2003-11-17  Bruno Haible  <bruno@clisp.org>
81831
81832         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81833         (Depends-on): Add xsize.
81834
81835 2003-11-17  Bruno Haible  <bruno@clisp.org>
81836
81837         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81838
81839 2003-11-17  Bruno Haible  <bruno@clisp.org>
81840
81841         * lib/vasnprintf.c (alloca): Remove fallback definition.
81842         (freea): Remove definition.
81843         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81844         Reported by Paul Eggert.
81845
81846 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81847             Bruno Haible  <bruno@clisp.org>
81848
81849         Protect against address arithmetic overflow.
81850         * lib/printf-args.h: Include stddef.h.
81851         (arguments): Change type of field 'count' to size_t.
81852         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81853         'unsigned int' where appropriate.
81854         * lib/printf-parse.h: Include sys/types.h.
81855         (char_directive): Change type of *arg_index fields to ssize_t.
81856         (char_directives): Change type of fields 'count', max_*_length to
81857         size_t.
81858         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81859         (SSIZE_MAX): Define fallback value.
81860         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81861         instead of 'int' where appropriate. Check a_allocated, d_allocated
81862         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81863         * lib/vasnprintf.c: Include xsize.h.
81864         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81865         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81866         overflow. Avoid wraparound when converting a width or precision from
81867         decimal to binary.
81868
81869 2003-11-16  Bruno Haible  <bruno@clisp.org>
81870
81871         Update from GNU gettext.
81872         * lib/printf-parse.c: Generalize to it can be compiled for wide
81873         strings.
81874         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81875         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81876         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81877         SNPRINTF): New macros.
81878         Don't include <alloca.h> if the file is used inside libintl.
81879         (local_wcslen): New function, for Solaris 2.5.1.
81880         (VASNPRINTF): Use it instead of wcslen.
81881
81882 2003-11-16  Bruno Haible  <bruno@clisp.org>
81883
81884         * lib/xsize.h (xmax): New function.
81885         (xsum, xsum3, xsum4): Declare as "pure" functions.
81886
81887 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81888
81889         * modules/xalloc (Files): Undo latest change, since xalloc.h
81890         no longer needs SIZE_MAX or PTRDIFF_MAX.
81891
81892 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81893
81894         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81895         gl_PTRDIFF_MAX.
81896
81897 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81898
81899         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81900         "return", to pacify some unknown compiler.  Problem reported
81901         by Joerg Schilling.
81902
81903 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81904
81905         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81906         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81907         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81908         heuristic is just as accurate as far as we know, and it removes a
81909         dependency on size_max.m4 and ptrdiff_max.m4.
81910
81911 2003-11-11  Bruno Haible  <bruno@clisp.org>
81912
81913         * modules/xsize (Files): Add m4/size_max.m4.
81914         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81915
81916 2003-11-11  Bruno Haible  <bruno@clisp.org>
81917
81918         * m4/size_max.m4: New file.
81919         * m4/ptrdiff_max.m4: New file.
81920         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81921         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81922         (gl_XALLOC): Invoke it.
81923
81924 2003-11-11  Bruno Haible  <bruno@clisp.org>
81925
81926         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81927         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81928         defined.
81929
81930 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81931
81932         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81933         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81934         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81935         From Bruno Haible.
81936         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81937         not (size_t) -1, since it's defined here.
81938
81939 2003-11-09  Karl Berry  <karl@gnu.org>
81940
81941         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81942
81943 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81944
81945         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81946         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81947         Reject sizes of exactly SIZE_MAX bytes.
81948         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81949         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81950
81951 2003-11-05  Bruno Haible  <bruno@clisp.org>
81952
81953         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81954         SIZE_MAX defined in <limits.h> on Solaris.
81955
81956 2003-11-04  Jim Meyering  <jim@meyering.net>
81957
81958         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81959         variable names, rather than @VAR@.
81960         * modules/poll: Likewise.
81961
81962 2003-11-04  Bruno Haible  <bruno@clisp.org>
81963
81964         * modules/xsize: New file.
81965         * modules/linebreak: Depend on xsize.
81966         * MODULES.html.sh (func_all_modules): Add xsize.
81967
81968 2003-11-04  Bruno Haible  <bruno@clisp.org>
81969
81970         * m4/xsize.m4: New file.
81971
81972 2003-11-04  Bruno Haible  <bruno@clisp.org>
81973
81974         * lib/xsize.h: New file.
81975         * lib/linebreak.c: Include xsize.h.
81976         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81977         argument for overflow.
81978         Suggested by Paul Eggert.
81979
81980 2003-11-03  Karl Berry  <karl@gnu.org>
81981
81982         * config/config.{guess,sub}: update from config.
81983
81984 2003-11-03  Jim Meyering  <jim@meyering.net>
81985
81986         * modules/userspec (lib_SOURCES): Add userspec.h.
81987         (Include): Add "userspec.h".
81988         Improve description.
81989
81990 2003-11-03  Jim Meyering  <jim@meyering.net>
81991
81992         * lib/userspec.c: Include "userspec.h".
81993         * lib/userspec.h: New file.
81994
81995 2003-11-03  Bruno Haible  <bruno@clisp.org>
81996
81997         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81998
81999 2003-11-03  Bruno Haible  <bruno@clisp.org>
82000
82001         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82002         available, to avoid (extremely rare) race condition.
82003         Suggested by Paul Eggert.
82004
82005 2003-11-02  Karl Berry  <karl@gnu.org>
82006
82007         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82008
82009 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82010
82011         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82012         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82013         (read_filesystem_list): Set and use me_type_malloced.
82014         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82015         whatever the type happens to be), for brevity and consistency.
82016         Check for size calculation overflow on Alphas running OSF/1.
82017
82018 2003-10-31  Jim Meyering  <jim@meyering.net>
82019
82020         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82021
82022         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82023
82024 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82025             Bruno Haible  <bruno@clisp.org>
82026
82027         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82028         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82029
82030 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82033         netbsd*-gnu*.  Suggested by Robert Millan.
82034
82035 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82036
82037         * modules/group-member: Depend on stdbool.
82038
82039 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82040
82041         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82042
82043 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82044
82045         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82046         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82047         after the 'gnu' in these cases.  This fixes some bugs in the
82048         previous change, and is based on suggestions by Robert Millan.
82049
82050 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82051
82052         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82053         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82054         no longer needed.
82055         * lib/quotearg.c (quotearg_n_options): Use it.
82056         * lib/group-member.c: Include <stdbool.h>.
82057         (free_group_info): Arg is now const *; don't free arg.
82058         (get_group_info): Now returns bool and accepts struct group_info *,
82059         rather than returning a malloc'ed struct group_info *.
82060         All uses changed.  Check for overflow in internal size calculation.
82061
82062         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82063         rather than xmalloc/xrealloc.
82064         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82065         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82066         conformance bug: the old code used a pointer after freeing the
82067         storage that it addressed.
82068         * lib/hash.c (hash_initialize): Simplify the code by using
82069         xalloc_oversized rather than doing it by hand.
82070         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82071         the buffer preserved.  Use free and xmalloc instead.
82072         * lib/quotearg.c (quotearg_n_options): Likewise.
82073         Use a simpler test for size overflow.  Don't use xalloc_oversized
82074         because unsigned int might be wider than size_t (!); this suggests
82075         that we should switch from unsigned int to size_t for slot numbers.
82076
82077 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82078
82079         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82080         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82081         NetBSD kernels.  Requested by Richard Stallman.
82082
82083 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82084
82085         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82086         to allocate the returned structure.  Do not allocate a subarray,
82087         as x2nrealloc will do that.
82088         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82089         instead of xnrealloc.
82090         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82091
82092 2003-10-27  Bruno Haible  <bruno@clisp.org>
82093
82094         * lib/stdbool_.h: Better support for BeOS.
82095
82096 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82097
82098         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82099         now uses inline.
82100
82101 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82102
82103         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82104         callers that want to do their own size-overflow checking.  Include
82105         <stdbool.h>, since xalloc_oversized returns bool.
82106         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82107         to use xalloc_oversized.
82108
82109         Add two functions x2realloc, x2nrealloc, for programs that grow
82110         arrays dynamically by doubling their sizes.
82111         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82112         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82113         New functions.
82114
82115         Port to C99 semantics for 'inline' of external functions.
82116         Bug reported by Bruno Haible.
82117         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82118         with the old contents of xnmalloc.
82119         (xnmalloc, xmalloc): Use it.
82120         (xnrealloc_inline): New static inline function,
82121         with the old contents of xnrealloc.
82122         (xnrealloc, xrealloc): Use it.
82123
82124         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82125         that.
82126
82127 2003-10-26  Karl Berry  <karl@gnu.org>
82128
82129         * config/srclist.txt (COPYING.DOC): no longer available from
82130         /gd/gnuorg; don't know where the ultimate source is.
82131
82132 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82133
82134         Fix several address-calculation bugs in the hash modules,
82135         plus some minor code cleanup.
82136
82137         * lib/hash.h: Include <stdbool.h>, for bool.
82138         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82139         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82140         hash_get_n_entries, hash_get_max_bucket_length,
82141         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82142         hash_rehash): Use size_t rather than unsigned.
82143         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82144         hash_get_n_buckets_used, hash_get_n_entries,
82145         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82146         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82147         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82148         Likewise.
82149         (SIZE_MAX): Define if not defined.
82150         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82151         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82152         hash_print):
82153         Use const * when possible.
82154         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82155         (check_tuning): Fix bug: if tuning parameters were very close to
82156         0 or 1, rounding errors could have caused subscript violations.
82157         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82158         (hash_initialize): Add 'fail:' label
82159         to free table and return NULL, and use it to simplify code.
82160         Use calloc rather than clearing the storage ourself.
82161         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82162         buffer size calculations.
82163         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82164         Include <stddef.h>, for size_t.
82165         * lib/hash-pjw.c (hash_pjw): Likewise.
82166         Switch to method described by Bruno Haible.
82167         Include <limits.h>, for CHAR_BIT.
82168         (SIZE_BITS): New macro.
82169
82170 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82171
82172         * m4/getline.m4 (AM_FUNC_GETLINE):
82173         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82174         hosts.  Problem reported by Derek Robert Price in
82175         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82176         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82177         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82178
82179 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82180
82181         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82182         ceiling the allocation at NMAX bytes rather than silently
82183         discarding input bytes before NMAX is reached.  This makes
82184         a difference only if NMAX exceeds SIZE_MAX / 2.
82185
82186         * lib/obstack.c: Merge from glibc.
82187         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82188         Add libc_hidden_def (_obstack_newchunk).
82189         (_obstack_free) [! defined _LIBC]: Remove.
82190         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82191         a clone of the function body.
82192         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82193         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82194
82195         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82196         glibc.
82197         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82198         arg to memcpy.
82199
82200         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82201         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82202         Don't use lvalue casts, as GCC plans to remove support for them
82203         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82204         was also present in the non-GCC version, indicating that this
82205         code had always been buggy and had never been widely used.
82206         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82207         Use the fast variant of each macro, rather than copying the
82208         definiens of the fast variant; that way, we'll be more likely to
82209         catch future bugs in the fast variants.
82210
82211 2003-10-20  Bruno Haible  <bruno@clisp.org>
82212
82213         * modules/wait-process: New file.
82214         * MODULES.html.sh (func_all_modules): Add wait-process.
82215
82216 2003-10-20  Bruno Haible  <bruno@clisp.org>
82217
82218         * m4/wait-process.m4: New file.
82219
82220 2003-10-20  Bruno Haible  <bruno@clisp.org>
82221
82222         * lib/wait-process.h: New file, from GNU gettext.
82223         * lib/wait-process.c: New file, from GNU gettext.
82224
82225 2003-10-19  Jim Meyering  <jim@meyering.net>
82226
82227         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82228         HPUX 10.20.
82229
82230 2003-10-18  Karl Berry  <karl@gnu.org>
82231
82232         * config/config.guess: update from config.
82233
82234 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82235
82236         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82237         (getgroups): First arg is int, not size_t.
82238         Don't let 'free' mangle errno.
82239
82240 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82241
82242         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82243
82244 2003-10-16  Karl Berry  <karl@gnu.org>
82245
82246         * config/config.{guess,sub}: update from config.
82247
82248 2003-10-16  Jim Meyering  <jim@meyering.net>
82249
82250         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82251         memcpy.
82252
82253 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82254
82255         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82256         (SIZE_MAX): Remove.
82257         (new_exclude, add_exclude_file): Initial size no longer needs to
82258         be a power of 2.
82259         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82260         our own address arithmetic overflow checking.
82261
82262         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82263         (fnmatch): Do not alloca more than 2000 wide characters;
82264         instead, use malloc for large buffers.
82265         Check for address arithmetic overflow, and return -1
82266         with errno set to ENOMEM in that case.
82267         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82268         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82269         instead, return -1.  Check for address arithmetic overflow.
82270
82271 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82272
82273         Handle invalid suffixes and overflow independently, so that
82274         callers can treat them independently as needed.  Fix some bugs in
82275         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82276         suffix for a human-readable blocksize.  The major caller-visible
82277         change is the addition of a new
82278         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82279         that both overflow and suffix chars were found.
82280
82281         * lib/human.c (humblock): Don't check separately for invalid suffix
82282         char; that is xstrtoumax's job (now that its bug is fixed).
82283         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82284         INTMAX_MAX]: New macros.
82285         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82286         TYPE_MAXIMUM): New macros.
82287         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82288         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82289         if overflow occurs, as it's what __strtol does and it's more useful
82290         in practice.
82291         (__xstrtol): If __strtol reports some error other than ERANGE,
82292         reflect it to the caller as LONGINT_INVALID.  If it reports
82293         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82294         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82295         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82296         value.
82297         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82298         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82299         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82300         [defined UINTMAX_MAX]: New macros.
82301
82302 2003-10-14  Bruno Haible  <bruno@clisp.org>
82303
82304         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82305
82306 2003-10-14  Bruno Haible  <bruno@clisp.org>
82307
82308         * m4/sig_atomic_t: New file, from GNU gettext.
82309         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82310
82311 2003-10-14  Bruno Haible  <bruno@clisp.org>
82312
82313         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82314         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82315         Also use volatile where needed.
82316
82317 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82318
82319         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82320         Change maintainer from Bruno Haible to 'all'.
82321
82322 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82323
82324         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82325
82326 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82327
82328         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82329         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82330         and define in terms of the other primitives.
82331         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82332         (SIZE_MAX): Define if not already defined.
82333         (array_size_overflow): New function.
82334         (xalloc_die): Abort instead of exiting if 'error' returns.
82335         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82336         (xmalloc, xrealloc): Use them.
82337         (xcalloc): Check for address arithmetic overflow.
82338         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82339         a bit faster than strcpy.
82340
82341 2003-10-10  Simon Josefsson  <jas@extundo.com>
82342
82343         * modules/argp (Depends-on): Add restrict and strcase.
82344
82345 2003-10-10  Simon Josefsson  <jas@extundo.com>
82346
82347         * m4/argp.m4: Add AC_C_INLINE.
82348
82349 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82350
82351         Merge getpass from libc, plus a few fixes.
82352
82353         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82354         Include <stdbool.h>.
82355         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82356         __fsetlocking to empty.
82357         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82358         do include <bits/libc-lock.h>.
82359         Do not include <fcntl.h>; not needed.
82360         [_LIBC]: Include <wchar.h>.
82361         (NOTCANCEL_MODE): New macro.
82362         (flockfile, funlockfile) [_LIBC]: New macros.
82363         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82364         [!_LIBC]: New macros.
82365         (call_fclose): New function.
82366         (getpass): Use it.  Save tty stream separately; this simplifies the
82367         code and makes it more reliable if stdin happens to equal stdout.
82368         Invoke __fsetlocking on tty.
82369         Handle thread cancellation if needed.
82370         Namespace cleanup (use __tcgetattr, __getline).
82371         Use bool for Booleans.
82372         [USE_IN_LIBIO]: Handle wide streams.
82373         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82374         stream might go where.
82375
82376         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82377         doesn't have to include <stdio.h> before us.
82378         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82379         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82380         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82381         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82382         if not declared, so that we can use getpass.c code from libc without
82383         rewriting it.
82384         (flockfile, ftrylockfile, funlockfile): New macros.
82385
82386 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82387
82388         * modules/getpass: Depend on stdbool.
82389
82390 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82391
82392         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82393
82394 2003-10-07  Karl Berry  <karl@gnu.org>
82395
82396         * config/config.{guess,sub}: update from config.
82397
82398 2003-10-06  Jim Meyering  <jim@meyering.net>
82399             Bruno Haible  <bruno@clisp.org>
82400
82401         This lets translators provide better translations for the
82402         "Written by ..." part of --version output.
82403         * lib/version-etc.h: Include stdarg.h.
82404         (version_etc_copyright): Declare as readonly.
82405         (version_etc): Make this function variadic with a NULL-terminated list
82406         of author name strings.
82407         (version_etc_va): New declaration.
82408         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82409         (version_etc_copyright): Declare as readonly.
82410         (version_etc_va): New function. Provide a different translatable string
82411         for each possible number of authors < 10. Abbreviate when there are 10
82412         authors or more.
82413         (version_etc): Make this function variadic. Call version_etc_va.
82414         Suggestion from Gary V. Vaughan.
82415
82416         * lib/long-options.h (parse_long_options): Change prototype: the
82417         authors string is moved to the end and becomes variadic.
82418         * lib/long-options.c: Include stdarg.h.
82419         (parse_long_options): Make this function variadic, too.
82420         Call version_etc_va, not version_etc.
82421
82422 2003-10-06  Bruno Haible  <bruno@clisp.org>
82423
82424         * modules/version-etc-2: Remove file.
82425         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82426
82427 2003-10-06  Bruno Haible  <bruno@clisp.org>
82428
82429         * modules/fatal-signal: New file.
82430         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82431
82432 2003-10-06  Bruno Haible  <bruno@clisp.org>
82433
82434         * m4/fatal-signal.m4: New file.
82435         * m4/signalblocking.m4: New file, from GNU gettext.
82436
82437 2003-10-06  Bruno Haible  <bruno@clisp.org>
82438
82439         * lib/version-etc-2.h: Remove file.
82440         * lib/version-etc-2.c: Remove file.
82441
82442 2003-10-06  Bruno Haible  <bruno@clisp.org>
82443
82444         * lib/fatal-signal.h: New file, from GNU gettext.
82445         * lib/fatal-signal.c: New file, from GNU gettext.
82446
82447 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82448
82449         * README: Rework advice for preventing empty .o files.
82450         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82451         not <sys/types.h>.
82452
82453 2003-10-04  Karl Berry  <karl@gnu.org>
82454
82455         * lib/argp*: update from libc.
82456
82457 2003-10-04  Karl Berry  <karl@gnu.org>
82458
82459         * config/config.{guess,sub}: update from config.
82460
82461 2003-10-02  Bruno Haible  <bruno@clisp.org>
82462
82463         * modules/lchown (Include): Add lchown.h.
82464         * modules/time_r (Include): Use "..." syntax.
82465         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82466
82467 2003-10-01  Simon Josefsson  <jas@extundo.com>
82468
82469         * MODULES.html.sh (func_all_modules): Move gethostname from section
82470         'based on' to section 'lacking' POSIX:2001.
82471
82472 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82473
82474         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82475         to output mode on the same stream.
82476
82477 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82478
82479         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82480         Fix arg typo in previous patch.
82481
82482 2003-09-28  Jim Meyering  <jim@meyering.net>
82483
82484         * lib/error.c: Correct cpp indentation.
82485
82486 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82487
82488         * modules/free: New file.
82489
82490 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82491
82492         * m4/free.m4: New file.
82493
82494 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82495
82496         * lib/minmax.h (MIN, MAX)
82497         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82498         Omit the special code that used __typeof__, since we worry that
82499         it could be more trouble than it's worth.  See:
82500         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82501         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82502
82503         * lib/free.c: New file.
82504
82505 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82506
82507         Trivial fixes to Makefile.am parts of module listings.
82508         * modules/strstr: Append strstr.h to lib_SOURCES.
82509         * modules/strcase: Likewise, for strcase.h.
82510
82511 2003-09-27  Karl Berry  <karl@gnu.org>
82512
82513         * config/mkinstalldirs: update from automake.
82514
82515 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82516
82517         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82518         (error_tail): Do not loop, reallocating temporary buffer, since
82519         the output cannot contain more wide characters than the input
82520         contains bytes, the size must be big enough already.  This avoids
82521         one potential size overflow calculation.  Check for size overflow
82522         when calculating temporary buffer size.  Free temporary buffer
82523         when done, if it was allocated with malloc; this plugs a memory
82524         leak.  Remove casts from void * to pointers, that are no longer
82525         needed now that we're assuming C89 or better.
82526
82527         Merge error changes from glibc.
82528
82529         * lib/error.c, error.h: Update copyright notice header to match glibc.
82530         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82531         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82532         Disable cancellation while printing error.
82533         * lib/error.h: Prepend __ to parameter names.
82534
82535 2003-09-26  Jim Meyering  <jim@meyering.net>
82536
82537         * lib/error.c (error_tail): Move some declarations
82538         into inner scope where the local variables are used.
82539
82540 2003-09-26  Bruno Haible  <bruno@clisp.org>
82541
82542         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82543         stpncpy().
82544         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82545
82546 2003-09-26  Bruno Haible  <bruno@clisp.org>
82547
82548         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82549         (stpncpy): Define as alias for gnu_stpncpy.
82550         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82551
82552 2003-09-25  Simon Josefsson  <jas@extundo.com>
82553
82554         * lib/xgetdomainname.h: New file.
82555         * lib/xgetdomainname.c: New file.
82556
82557 2003-09-25  Simon Josefsson  <jas@extundo.com>
82558             Bruno Haible  <bruno@clisp.org>
82559
82560         * modules/getdomainname: New file.
82561         * modules/xgetdomainname: New file.
82562         * MODULES.html.sh (func_all_modules): Add getdomainname,
82563         xgetdomainname.
82564
82565 2003-09-25  Simon Josefsson  <jas@extundo.com>
82566             Bruno Haible  <bruno@clisp.org>
82567
82568         * m4/getdomainname.m4: New file.
82569
82570 2003-09-25  Simon Josefsson  <jas@extundo.com>
82571             Bruno Haible  <bruno@clisp.org>
82572
82573         * lib/getdomainname.h: New file.
82574         * lib/getdomainname.c: New file.
82575
82576 2003-09-25  Karl Berry  <karl@gnu.org>
82577
82578         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82579
82580 2003-09-25  Karl Berry  <karl@gnu.org>
82581
82582         * config/install-sh: update from automake.
82583
82584 2003-09-25  Bruno Haible  <bruno@clisp.org>
82585
82586         * modules/version-etc-2: New file, from modules/version-etc with
82587         modifications.
82588         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82589
82590 2003-09-25  Bruno Haible  <bruno@clisp.org>
82591
82592         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82593         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82594
82595 2003-09-24  Simon Josefsson  <jas@extundo.com>
82596
82597         * modules/xgethostname: Add xgethostname.h.
82598
82599 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82600
82601         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82602         the buffer associated with the argument.  Bug reported by
82603         Simon Josefsson.
82604
82605 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82606
82607         * README: Document assumptions that 'int' is at least 32 bits
82608         wide, that integer arithmetic is 2's complement without overflow,
82609         that there are no holes in integer values, that adding sizes of
82610         two nonoverlapping objects can't overflow, and that all-bits-zero
82611         yields scalar zero.  Fix spelling and capitalization typos.
82612
82613 2003-09-19  Karl Berry  <karl@gnu.org>
82614
82615         * lib/argp.h: update from libc.
82616
82617 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82618
82619         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82620         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82621         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82622
82623 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82624
82625         * gnulib-tool: Use "test -h", not "test -L", for portability
82626         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82627         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82628         (sed_extract_prog): Issue s commands one-by-one, rather than
82629         using \| in one s command.
82630
82631 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82632
82633         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82634         input error, instead of returning NULL the next time we are called
82635         (and therefore losing track of errno).
82636
82637 2003-09-16  Bruno Haible  <bruno@clisp.org>
82638
82639         * gnulib-tool (func_create_testdir): Warn about duplicated
82640         dependencies.
82641
82642 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82643
82644         * modules/argmatch, modules/fatal, modules/obstack,
82645         modules/xalloc, modules/xgethostname: Sort dependencies by
82646         importance, not alphabetically.
82647
82648 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82649
82650         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82651         fails, so that the caller gets the proper errno.
82652
82653         * lib/readutmp.c (read_utmp): Likewise.
82654         Check for fstat error.  Close stream and free storage
82655         when failing.
82656
82657 2003-09-14  Karl Berry  <karl@gnu.org>
82658
82659         * config/srclist.txt (strdup.c): disable for c89 changes.
82660
82661 2003-09-14  Jim Meyering  <jim@meyering.net>
82662
82663         * lib/getloadavg.c: Correct cpp indentation.
82664         * lib/strdup.c: Likewise.
82665         * lib/vasnprintf.c: Likewise.
82666
82667 2003-09-14  Bruno Haible  <bruno@clisp.org>
82668
82669         * modules/fwriteerror: New file.
82670         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82671
82672 2003-09-14  Bruno Haible  <bruno@clisp.org>
82673
82674         * lib/fwriteerror.h: New file.
82675         * lib/fwriteerror.c: New file.
82676
82677 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82678
82679         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82680         modules/xgethostname, modules/xalloc: Depend on exit.
82681
82682 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82683
82684         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82685
82686         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82687         and AC_MINIX, too, so that their extensions are available.
82688
82689         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82690         This macro has been superseded by gl_BACKUPFILE.
82691
82692         More patches to assume C89 or better.
82693
82694         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82695
82696         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82697         unconditionally.
82698         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82699         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82700         Include <string.h>, <stdlib.h> unconditionally.
82701         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82702         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82703         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82704         headers or for string.h.
82705         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82706         or strtoul.
82707
82708         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82709         headers.
82710         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82711         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82712         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82713         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82714         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82715         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82716         memcpy, memset.
82717         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82718         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82719         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82720         strtol.
82721         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82722         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82723         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82724         strtoul.
82725
82726 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82727
82728         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82729         * lib/obstack.c [!defined _LIBC]: Likewise.
82730         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82731         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82732         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82733
82734         More changes to assume C89 or better.
82735
82736         * lib/error.c (error_tail): Assume vprintf.
82737
82738         * lib/argmatch.c (getenv): Remove decl.
82739         * lib/progreloc.c (get_full_program_name): Define via prototype.
82740         * lib/setenv.c (clearenv): Likewise.
82741         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82742         needed.
82743         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82744         (malloc, memcpy): Remove decls.
82745         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82746         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82747         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82748         (memcpy): Remove macro.
82749         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82750         (__P): Remove.  All uses removed.
82751         (PTR): Remove.  All uses changed to void *.
82752         (CHAR_BIT, NULL): Remove.
82753         (spaces, zeros, memset_space, memset_zero)
82754         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82755         Remove.
82756         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82757         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82758         Define with prototype.
82759         Remove now-unnecessary prototype decl.
82760         (extra_args_spec): Assume ANSI C.  All uses changed.
82761         (extra_args_spec_iso): Remove.
82762         (my_strftime, emacs_strftimeu): Define via prototype.
82763         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82764         unconditionally.
82765         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82766         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82767         (strtoul, strtol): Remove decls.
82768         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82769         LONG_MAX): Remove.
82770         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82771         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82772         (LOCALE_PARAM_PROTO): New macro.
82773         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82774         (INTERNAL (strtol), strtol): Define with a prototype.
82775         (PARAMS): Remove.  All uses removed.
82776         * lib/tempname.c: Include <string.h> unconditionally.
82777         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82778         * lib/xgethostname.c (main): Define with a prototype.
82779         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82780         Include <stdlib.h> unconditionally.
82781         (calloc, malloc, realloc, free): Remove decls.
82782         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82783         Include <stdlib.h> unconditionally.  Sort include file names.
82784         (strtod): Remove.
82785         (xstrtod): Define with a prototype.
82786         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82787         (strtol, strtoul): Remove decls.
82788
82789 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82790
82791         More patches to assume C89 or better.
82792         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82793         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82794         string.h, memchr, STDC_HEADERS.
82795
82796 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82797
82798         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82799         Include <stdlib.h>, <string.h> unconditionally.
82800         Remove now-unnecessary cast to char *.
82801         * lib/strnlen.c: Include <string.h> unconditionally.
82802         * lib/yesno.c (yesno): Define with a prototype.
82803
82804 2003-09-11  Bruno Haible  <bruno@clisp.org>
82805
82806         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82807
82808 2003-09-10  Jim Meyering  <jim@meyering.net>
82809
82810         * lib/error.c: Correct indentation of cpp directives.
82811
82812 2003-09-10  Bruno Haible  <bruno@clisp.org>
82813
82814         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82815         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82816         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82817         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82818         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82819         <stdlib.h> and <string.h> checks.
82820         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82821         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82822
82823 2003-09-10  Bruno Haible  <bruno@clisp.org>
82824
82825         * lib/strcspn.c: Include <string.h> unconditionally.
82826         * lib/strpbrk.c: Include <string.h> unconditionally.
82827         * lib/strstr.c: Include <string.h> unconditionally.
82828         * lib/unicodeio.c: Include <string.h> unconditionally.
82829         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82830         * lib/unsetenv.c: Likewise.
82831         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82832         * lib/yesno.c: Include <stdlib.h> unconditionally.
82833         (rpmatch): Add prototype.
82834
82835 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82836
82837         More patches to assume C89 or better.
82838         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82839         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82840         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82841         or for string.h.
82842         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82843         stdlib.h.
82844         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82845         C headers.
82846         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82847         string.h.
82848         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82849         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82850         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82851         or for string.h.
82852         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82853         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82854         C headers.
82855         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82856         memcpy.
82857         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82858         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82859         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82860         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82861         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82862         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82863         string.h, free.
82864         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82865         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82866         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82867         C headers, or for string.h.
82868         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82869         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82870         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82871         headers, memory.h, stdlib.h, string.h, strings.h.
82872         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82873         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82874         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82875         strchr.
82876         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82877         headers, memory.h, string.h.
82878         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82879         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82880         free.
82881         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82882         headers.
82883         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82884         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82885         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82886         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82887         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82888
82889 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82890
82891         More K&R removal.
82892
82893         * lib/acosl.c (main): Use a prototype.
82894         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82895         tanl.c: Likewise.
82896
82897         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82898
82899         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82900         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82901         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82902         with a prototype.
82903         * lib/getopt.c (const): Remove macro.
82904         Include <string.h> unconditionally.
82905         (my_index): Remove; all uses changed to strchr.
82906         (strlen): Remove decl.
82907         (exchange): Remove forward decl; no longer needed.
82908         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82909         Define with prototype.
82910         * lib/getopt1.c (const): Remove macro.
82911         (getopt_long, getopt_long_only, main): Define with prototype.
82912
82913         * lib/getugroups.c: Include <string.h> unconditionally.
82914
82915         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82916         (getusershell, setusershell, endusershell, readname, main):
82917         Define with prototypes.
82918
82919         * lib/group-member.c: Include group-member.h first.
82920         Include <stdlib.h> unconditionally.
82921
82922         * lib/hard-locale.c: Include hard-locale.h first.
82923         Include <stdlib.h>, <string.h> unconditionally.
82924
82925         * lib/hash.c (free, malloc): Remove decls.
82926         Include <stdlib.h> unconditionally.
82927
82928         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82929         (getenv): Do not declare.
82930
82931         * lib/idcache.c: Include <string.h> unconditionally.
82932
82933         * lib/long-options.c: Include long-options.h first, to test interface.
82934         Include <stdlib.h> unconditionally.
82935
82936         * lib/makepath.c: Include makepath.h first, to test interface.
82937         Include <stdlib.h> and <string.h> unconditionally.
82938
82939         * lib/linebuffer.c: Include <stdlib.h>.
82940         (free): Remove decl.
82941
82942         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82943         stddef.h. rpl_malloc returns void *, not char *.
82944         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82945         prototype.
82946
82947         * lib/md5.h: Include <limits.h> unconditionally.
82948         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82949         (__P): Remove; all uses removed.
82950         * lib/md5.c: Include "md5.h" first.
82951         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82952         md5_buffer, md5_process_bytes, md5_process_block):
82953         Define with prototypes.
82954         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82955         * lib/sha.c: Include "sha.h" first.
82956         Include <stdlib.h>, <string.h> unconditionally.
82957
82958         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82959         * lib/memcmp.c (__ptr_t): Likewise.
82960         * lib/memrchr.c (__ptr_t): Likewise.
82961         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82962         Include <string.h> unconditionally.
82963         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82964         * lib/memchr.c: Include <stdlib.h> unconditionally.
82965         * lib/memchr.c (LONG_MAX): Remove.
82966         * lib/memrchr.c (LONG_MAX): Likewise.
82967         * lib/memchr.c (__memchr): Define via a prototype.
82968         * lib/memrchr.c (__memrchr): Likewise.
82969         * lib/memcmp.c (__P): Remove, and remove all uses.
82970         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82971         Remove forward decls; no longer needed.
82972         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82973         Use types required by C89 in prototype.
82974
82975         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82976         * lib/savedir.c: Likewise.
82977         * lib/mkdir.c (free): Remove decl.
82978         * lib/rmdir.c (rmdir): Define with a prototype.
82979         * lib/savedir.c: Include savedir.h first, to test interface.
82980
82981         * lib/mktime.c (STDC_HEADERS): Remove.
82982         Include <stdlib.h>, <string.h> unconditionally.
82983
82984         * lib/modechange.c: Include <stdlib.h> unconditionally.
82985         (malloc): Remove decl.
82986
82987         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82988         (free): Remove decl.
82989
82990         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82991         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82992         (This type really should be intptr_t, but that's a C99ism.)
82993         (_obstack_memcpy): Remove: all uses changed to memcpy.
82994         Include <string.h> unconditionally.
82995         (struct obstack): Assume __STDC__ for types of members
82996         chunkfun, freefun, extra_arg.
82997         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82998         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82999         obstack_begin, obstack_specify_allocation,
83000         obstack_specify_allocation_with_arg, obstack_chunkfun,
83001         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83002         Remove unprototyped decls and the macros that use them.
83003         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83004         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83005         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83006         (defined __STDC__ && __STDC__)]:
83007         Remove nonprototyped code.
83008         Include <stdlib.h> unconditionally.
83009         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83010         _obstack_allocated_p, _obstack_free, obstack_free,
83011         _obstack_memory_used, print_and_abort):
83012         Define using prototypes.
83013         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83014         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83015         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83016         obstack_next_free, obstack_object_size, obstack_room) [0]:
83017         Remove unused, unprototyped code.
83018
83019         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83020
83021         * lib/physmem.c (physmem_total, physmem_available, main): Define
83022         with prototypes.
83023
83024         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83025         (main): Define with a prototype.
83026
83027         * lib/posixver.c (getenv): Remove decl.
83028
83029         * lib/putenv.c (malloc): Returns void *, not char *.
83030         Include <string.h> unconditionally.
83031         (strchr, memcpy, NULL): Do not define.
83032
83033         * lib/readtokens.c: Include readtokens.h first, to test interface.
83034         Include <stdlib.h>, <string.h> unconditionally.
83035         (init_tokenbuffer): Define with a prototype.
83036
83037         * lib/regex.c (PARAMS): Remove.  All uses removed.
83038         All uses of _RE_ARGS removed, too.
83039         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83040         unconditionally.
83041         (bzero): Assume memset exists.
83042         (memcmp, memcpy, NULL): Remove.
83043         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83044         char, or assignments to local vars of type signed char.
83045         (init_syntax_once, PREFIX(extract_number_and_incr),
83046         PREFIX(print_partial_compiled_pattern),
83047         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83048         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83049         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83050         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83051         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83052         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83053         wcs_compile_range, byte_compile_range, truncate_wchar,
83054         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83055         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83056         count_mbs_length, wcs_re_match_2_internal,
83057         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83058         PREFIX(alt_match_null_string_p),
83059         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83060         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83061         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83062         now-unnecessary declaration, if any.
83063         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83064         regcomp, regexec):
83065         Remove now-unnecessary casts among pointer types.
83066         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83067
83068         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83069         (free): Remove decl.
83070
83071         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83072
83073         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83074         (free): Remove decl.
83075
83076         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83077         * lib/xgetcwd.c: Likewise.
83078
83079         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83080         (free): Remove decl.
83081
83082         * lib/strchrnul.c (strchrnul): Define with a prototype.
83083         Fix bug: c_in was not converted to char before searching.
83084
83085         The following changes are not K&R related:
83086
83087         * lib/group-member.h: Include <sys/types.h>, so that this file is
83088         self-contained.
83089         * lib/makepath.h: Likewise.
83090
83091         * lib/getusershell.c (readname, default_index, line_size, readname):
83092         Use size_t, not int, for sizes.
83093         (readname): If the size overflows, report an error instead of
83094         looping forever.
83095
83096 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83097
83098         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83099         libc.
83100
83101 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83102
83103         * README: New section: portability guidelines.
83104
83105 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83106
83107         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83108         C89 spec.
83109
83110 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83111
83112         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83113
83114 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83115
83116         Assume C89 or better; remove K&R cruft.
83117         A few of these changes were first proposed by Derek Robert Price
83118         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83119
83120         * lib/addext.c: Include <string.h> unconditionally.
83121         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83122         Don't declare getenv or malloc.
83123
83124         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83125         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83126         (NULL): Remove.
83127         (find_stack_direction, alloca): Use prototypes.
83128
83129         * lib/atexit.c (atexit): Define using a prototype.
83130
83131         * lib/basename.c, dirname.c, stripslash.c:
83132         Include <string.h> unconditionally.
83133
83134         * lib/bcopy.c: Include <stddef.h>.
83135         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83136
83137         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83138
83139         * lib/error.h (error, error_at_line, error_print_progname)
83140         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83141         * lib/error.c: Include error.h first, to check interface.
83142         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83143         (VA_START): Remove; all uses changeed to va_start.
83144         (exit, strerror): Remove decls.
83145         (error_print_progname): Prototype uncondionally.
83146         Don't include <errno.h>; no longer needed.
83147         (private_strerror): Remove.
83148         (error_tail): Always define.
83149         (error, error_at_line): Assume C89 or better; always use prototypes.
83150         * lib/fatal.c: Include "fatal.h" first, to test interface.
83151         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83152         (VA_START): Remove; all uses changed to va_start.
83153         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83154         this case.
83155         (exit): Remove decl.
83156         (fatal): Prototype unconditionally.  Assume va_start works.
83157         Abort at end, to pacify gcc.
83158
83159         * lib/euidaccess.c (main): Define with a prototype.
83160
83161         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83162
83163         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83164
83165         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83166         prototypes.
83167         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83168         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83169         (getenv): Remove decl.
83170         (fnmatch): Define using a prototype.
83171         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83172         (FCT): Define using a prototype.
83173
83174         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83175
83176         * lib/gethostname.c: Include <stddef.h>.
83177         (gethostname): Define with prototype.  Length is size_t, not int.
83178
83179 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83180
83181         Assume C89 or better; remove K&R cruft.
83182         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83183         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83184         string.h, getenv, malloc.
83185         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83186         headers.
83187         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83188         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83189         do not check for strerror.
83190         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83191         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83192         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83193         do not check for doprnt or vprintf.
83194         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83195         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83196
83197 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83198
83199         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83200         getversion.c should have been removed then, but was accidentally
83201         preserved.
83202
83203         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83204         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83205
83206 2003-09-08  Karl Berry  <karl@gnu.org>
83207
83208         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83209                 config, forget about prep.
83210
83211         * config/depcomp, missing: update from automake.
83212
83213 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83214
83215         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83216         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83217
83218 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83219
83220         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83221         copy_tm_result.  Bug reported by Simon Josefsson in
83222         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83223
83224 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83225
83226         * m4/time_r.m4: New file.
83227         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83228         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83229         is. Check for timegm declaration.
83230         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83231         Do not check for gmtime_r.
83232         Replace mktime if __mktime_internal does not exist and if mktime
83233         hasn't been replaced already.
83234
83235 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83236
83237         * lib/time_r.c, lib/time_r.h: New files.
83238
83239         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83240         __localtime_r.
83241         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83242         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83243
83244         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83245         __gmtime_r.
83246         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83247         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83248         Include <time_r.h>.
83249
83250         * lib/timegm.c: Switch to glibc implementation, with the following
83251         changes:
83252         [defined HAVE_CONFIG_H]: Include <config.h>.
83253         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83254         (__mktime_internal) [!defined _LIBC]: New decl.
83255         (__gmtime_r) [!defined _LIBC]: New macro and function.
83256         (timegm): Use a prototype, since gnulib assumes C89.
83257         Do not bother declaring tmp to be const, as it's not really usefu.
83258         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83259         (timegm): Declare only if HAVE_DECL_TIMEGM.
83260
83261 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83262
83263         * MODULES.html.sh (func_all_modules): Add time_r.
83264         * modules/time_r: New file.
83265         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83266         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83267
83268 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83269
83270         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83271         Bug reported by Lute Kamstra in
83272         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83273
83274         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83275         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83276         course with correspondingly smaller numbers for tomorrow and
83277         yesterday.  From Tadayoshi Funaba.  Originally installed into
83278         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83279         coreutils merge?).
83280
83281 2003-08-31  Simon Josefsson  <jas@extundo.com>
83282
83283         * modules/timegm: New file.
83284         * MODULES.html.sh (func_all_modules): Add timegm.
83285
83286 2003-08-31  Simon Josefsson  <jas@extundo.com>
83287
83288         * m4/timegm.m4: New file.
83289
83290 2003-08-31  Simon Josefsson  <jas@extundo.com>
83291
83292         * lib/timegm.h: New file.
83293         * lib/timegm.c: New file.  Based on
83294         wget-1.8.2/src/http.c:mktime_from_utc.
83295
83296 2003-08-31  Karl Berry  <karl@gnu.org>
83297
83298         * lib/argp.h: update from libc.
83299
83300 2003-08-28  Bruno Haible  <bruno@clisp.org>
83301
83302         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83303         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83304         followed by '#define fnmatch fnmatch_posix' gives an error.
83305
83306 2003-08-28  Bruno Haible  <bruno@clisp.org>
83307
83308         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83309         warning on QNX, which defines O_BINARY to 000000.
83310
83311 2003-08-27  Jim Meyering  <jim@meyering.net>
83312
83313         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83314         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83315         would fail after 32.  Reported by Danny Levinson.  Details here:
83316         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83317
83318 2003-08-24  Bruno Haible  <bruno@clisp.org>
83319
83320         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83321         MSVC7 <stdio.h> is included later.
83322
83323 2003-08-22  Simon Josefsson  <jas@extundo.com>
83324
83325         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83326
83327 2003-08-20  Karl Berry  <karl@gnu.org>
83328
83329         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83330
83331 2003-08-20  Bruno Haible  <bruno@clisp.org>
83332
83333         * modules/progname: New file.
83334         * MODULES.html.sh (func_all_modules): Add progname.
83335
83336 2003-08-20  Bruno Haible  <bruno@clisp.org>
83337
83338         * lib/progname.h: New file, from GNU gettext.
83339         * lib/progname.c: New file, from GNU gettext.
83340         * lib/progreloc.c: New file, from GNU gettext.
83341
83342 2003-08-19  Jim Meyering  <jim@meyering.net>
83343
83344         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83345         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83346
83347 2003-08-19  Bruno Haible  <bruno@clisp.org>
83348
83349         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83350         more.
83351
83352 2003-08-19  Bruno Haible  <bruno@clisp.org>
83353
83354         * lib/xstrdup.c: Assume <string.h> exists.
83355
83356 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83357
83358         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83359         in makefile rules.
83360
83361 2003-08-18  Jim Meyering  <jim@meyering.net>
83362
83363         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83364         * m4/lib-ld.m4: Likewise.
83365
83366 2003-08-18  Jim Meyering  <jim@meyering.net>
83367
83368         * lib/setenv.h: Indent nested cpp directive.
83369         * lib/vasnprintf.c: Remove trailing blanks.
83370
83371 2003-08-17  Simon Josefsson  <jas@extundo.com>
83372
83373         * modules/xstrndup: New file.
83374         * MODULES.html.sh (func_all_modules): Add xstrndup.
83375
83376 2003-08-17  Simon Josefsson  <jas@extundo.com>
83377
83378         * modules/argp: Fix autoconf macro name. Add more dependencies.
83379
83380 2003-08-17  Simon Josefsson  <jas@extundo.com>
83381
83382         * m4/xstrndup.m4: New file.
83383
83384 2003-08-17  Simon Josefsson  <jas@extundo.com>
83385
83386         * m4/argp.m4: New file.
83387
83388 2003-08-17  Simon Josefsson  <jas@extundo.com>
83389             Bruno Haible  <bruno@clisp.org>
83390
83391         * lib/xstrndup.h: New file.
83392         * lib/xstrndup.c: New file.
83393
83394 2003-08-17  Bruno Haible  <bruno@clisp.org>
83395
83396         * modules/strndup (Files, Include): Add lib/strndup.h.
83397
83398 2003-08-17  Bruno Haible  <bruno@clisp.org>
83399
83400         * modules/euidaccess (Files): Add lib/euidaccess.h.
83401
83402 2003-08-17  Bruno Haible  <bruno@clisp.org>
83403
83404         * lib/strndup.h: New file.
83405
83406 2003-08-17  Bruno Haible  <bruno@clisp.org>
83407
83408         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83409         like AC_GNU_SOURCE.
83410         * modules/extensions (configure.ac): Comment out the invocation of
83411         gl_USE_SYSTEM_EXTENSIONS.
83412
83413 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83414
83415         Merges from coreutils, etc.
83416         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83417         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83418         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83419         fixing a typo.
83420         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83421         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83422
83423 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83424
83425         Document merge from coreutils.
83426         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83427         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83428         * modules/utime: Add m4/utimes-null.m4.
83429
83430 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83431
83432         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83433         space, undoing this 2003-08-12 change:
83434         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83435
83436 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83437
83438         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83439         strtoul.c from libc, undoing this 2003-08-12 change:
83440         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83441
83442 2003-08-16  Jim Meyering  <jim@meyering.net>
83443
83444         Merges from coreutils.
83445         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83446         prefix.  Adjust cache variables similarly.  Create 500 rather than
83447         just 300 files, to exercise bug on Darwin6.5, too.
83448         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83449         $missing_dir.
83450         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83451         AM_SYS_POSIX_TERMIOS.
83452         Reported by mkc@mathdogs.com.
83453         Also change use of $am_cv_sys_posix_termios
83454         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83455         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83456         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83457         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83458         in /proc/mounts until it finds one with matching device number.  This
83459         is unnecessary when the FILE argument *is* a mount point.  No stat call
83460         is necessary in that case.  So, disable the statvfs-testing code on
83461         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83462         as RedHat bug# 84846.
83463         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83464         to 1MB, so as not to render systems with no stack size limit (e.g.,
83465         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83466         Include <unistd.h>.  On some systems,
83467         it is required for the definition of _SC_PAGESIZE.
83468
83469 2003-08-16  Jim Meyering  <jim@meyering.net>
83470
83471         Merge from coreutils.
83472         * lib/xstrtoimax.c: #else #if -> #elif.
83473         * lib/xstrtoumax.c: Likewise.
83474
83475 2003-08-16  Jim Meyering  <jim@meyering.net>
83476
83477         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83478         * m4/utimes.m4: Removed.
83479         * m4/utimes-null.m4: Renamed from utimes.m4.
83480
83481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83482         to 1MB, so as not to render systems with no stack size limit (e.g.,
83483         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83484         Include <unistd.h>.  On some systems,
83485         it is required for the definition of _SC_PAGESIZE.
83486
83487 2003-08-16  Jim Meyering  <jim@meyering.net>
83488         and Paul Eggert  <eggert@cs.ucla.edu>
83489
83490         Merges from coreutils, etc.
83491
83492         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83493         using the latest version from cvs.  This avoids problems with #line
83494         directives using a vendor (Sun) compiler.
83495         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83496         Don't set GETGROUPS_LIB here; now it's
83497         done via getgroups.m4's wrapper function.
83498         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83499         rather than just in sh-util/configure.in, so that the
83500         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83501         same.
83502         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83503         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83504         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83505         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83506         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83507         Remove code that is now done by the newly-required macros.
83508         Append $(EXEEXT) to DF_PROG.
83509         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83510         Do not invoke or require the following here,
83511         since prereq.m4 or some gnulib .m4 now does this for us:
83512         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83513         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83514         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83515         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83516         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83517         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83518         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83519         AC_FUNC_OBSTACK.
83520         Do not replace the following functions, as this is now the job
83521         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83522         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83523         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83524         atexit getpass, strdup, getpagesize.
83525         Replace 'raise'.
83526         Do not check for the following functions, as this is now the job
83527         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83528         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83529         setregid.
83530         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83531         Check for sys/sysctl.h.
83532         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83533         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83534         of checking for ssize_t ourselves.
83535
83536         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83537         Require every macro that gnulib/modules/* suggests for us.
83538         (jm_PREREQ_ADDEXT): New macro.
83539         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83540         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83541
83542         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83543         (gl_PHYSMEM): Use it.
83544         Also check for `table' function.
83545         Check for new headers and functions.
83546         Add check for sys/sysmp.h.
83547         With suggestions from Kaveh Ghazi.
83548         Ignore headers that are present but cannot be compiled.  This
83549         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83550         C 5.4.
83551
83552 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83553
83554         Document merge from coreutils.
83555         * modules/userspec: Depend on posixver.
83556         * modules/strftime: Depend on tzset.
83557
83558 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83559
83560         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83561         rather than tab, after '#' in shell-script copyright notices.
83562         Suggested by Bruno Haible.
83563
83564 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83565
83566         * config/srclist-update: Use three spaces, rather than tab, after '#'
83567         in shell-script copyright notices.  Suggested by Bruno Haible.
83568         Remove unnecessary parenthesization in regular expression.
83569
83570 2003-08-15  Jim Meyering  <jim@meyering.net>
83571
83572         Merge from coreutils.
83573         * lib/xgethostname.c: Include <stdlib.h>.
83574         (xghostname): Don't exit for anything other than memory-related
83575         failure; just return NULL.
83576         * lib/userspec.c: Include "posixver.h".
83577         (parse_user_spec): Accept `.' as a separator only
83578         in pre-POSIX-200112 mode.
83579         * lib/strtoimax.c: Use #elif rather than #else #if.
83580         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83581         Remove function, now that we can rely on a working tzset function.
83582         [!_LIBC]: Ensure that the required autoconf test has been run.
83583         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83584         Use underlying_strftime for %r.
83585         * lib/sha.c: Merge in some clean-up and optimization changes from
83586         glibc.
83587         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83588         Ensure that it is a multiple of 64.
83589         Rearrange loop exit tests so as to avoid performing an
83590         additional fread after encountering an error or EOF.
83591         * lib/realloc.c: Update copyright date.
83592
83593 2003-08-15  Jim Meyering  <jim@meyering.net>
83594         and Paul Eggert  <eggert@twinsun.com>
83595
83596         Merge from coreutils.
83597         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83598         member but strut utmpx does not.  Needed for AIX 4.3.3.
83599         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83600
83601 2003-08-15  Jim Meyering  <jim@meyering.net>
83602         and Paul Eggert  <eggert@cs.ucla.edu>
83603
83604         Merges from coreutils, etc.
83605         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83606         Require gl_FUNC_TZSET_CLOBBER.
83607         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83608         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83609         members.
83610
83611 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83612
83613         Help the merge from coreutils.
83614         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83615         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83616         * m4/tzset.m4: Use it too.
83617
83618 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83619
83620         * modules/tzset: New file.
83621
83622 2003-08-14  Jim Meyering  <jim@meyering.net>
83623
83624         Merges from coreutils.
83625         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83626         variable names, rather than @FNMATCH_H@.
83627         * modules/alloca: Likewise for $(ALLOCA_H).
83628
83629         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83630         the three copies of the literal target, `fnmatch.h'.
83631         * modules/alloca (alloca.h): Likewise.
83632
83633 2003-08-14  Jim Meyering  <jim@meyering.net>
83634
83635         Merge from coreutils.
83636         * m4/tzset.m4: New file.
83637         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83638         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83639         otherwise, AIX 5.1 systems would end up using the latter.
83640         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83641         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83642         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83643         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83644
83645 2003-08-14  Jim Meyering  <jim@meyering.net>
83646
83647         Merge from coreutils.
83648         * lib/obstack.h: Whitespace changes.
83649         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83650         and xcalloc return values.
83651         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83652         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83653         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83654         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83655         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83656         error from mntctl.
83657         Use mntctl's return value to drive the entry-processing loop, since
83658         we can't rely on the value of the vmt_length member in the last
83659         entry.  On some systems doing so could result in exhausting
83660         virtual memory.  Based in part on a patch from Mike Jetzer.
83661
83662 2003-08-14  Jim Meyering  <jim@meyering.net>
83663         and Paul Eggert  <eggert@twinsun.com>
83664
83665         Merges from coreutils, plus other fixes.
83666         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83667         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83668         for credits and details.  Thanks to Kaveh Ghazi for helping
83669         to keep these files in sync.
83670         (ARRAY_SIZE): Define it.
83671         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83672         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83673         (memcasecmp): Don't assume size_t fits in unsigned int.
83674         Remove casts and duplicate code.
83675         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83676         (memcpy): Remove definition.
83677         Merge in some clean-up and optimization changes from glibc.
83678         [BLOCKSIZE]: Move definition to top of file.
83679         Ensure that it is a multiple of 64.
83680         Rearrange loop exit tests so as to avoid performing an
83681         additional fread after encountering an error or EOF.
83682         * lib/md5.h (md5_uintptr): Define.
83683         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83684         return to the initial working directory.  Preserve errno
83685         for caller.
83686         * lib/idcache.c: Include "xalloc.h".
83687         (xmalloc, xrealloc): Remove decls.
83688         (getuser): Remove casts no longer required in C89.
83689         * lib/human.c: Include stdio.h, for sprintf.
83690         * lib/group-member.c: Include "xalloc.h".
83691         (xmalloc, xrealloc): Remove decls.
83692         (get_group_info): Remove casts no longer required in C89.
83693         * lib/getusershell.c (readname): Remove casts no longer required in
83694         C89.
83695         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83696         * lib/getline.c: Whitespace fix, from coreutils.
83697
83698 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83699
83700         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83701         Check for isascii.
83702
83703         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83704         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83705         Undo previous (whitespace-only) change.
83706
83707 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83708
83709         * lib/exclude.c: Include <ctype.h>
83710         (IN_CTYPE_DOMAIN): New macro.
83711         (is_space): New fn.
83712         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83713         and empty lines.
83714
83715         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83716         Undo previous (whitespace-only) change.
83717
83718 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83719
83720         * config/srclist-update: Change update back to the old behavior,
83721         leaving whitespace alone.  Use one 'sed' command rather than a
83722         pipeline.
83723         (fixlicense): Now a variable, not a function.
83724         (remove_trailing_blanks): Remove.
83725         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83726         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83727         Undo previous (whitespace-only) change.
83728
83729 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83730
83731         Merge from coreutils.
83732         * modules/euidaccess: Add lib_SOURCES, include for new
83733         file euidaccess.h
83734
83735 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83736
83737         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83738         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83739         Normalize leading white space and remove trailing white space.
83740
83741         Merge from coreutils
83742         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83743
83744         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83745         0.12.1.  These files are now being upgraded automatically by
83746         ../config/srclist-update.
83747
83748 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83749
83750         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83751         Normalize leading white space and remove trailing white space.
83752         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83753         notice, as per ../config/srclist-update.
83754
83755         Merge from coreutils.
83756         * lib/euidaccess.h: New file.
83757         * lib/euidaccess.c: Include it.
83758         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83759         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83760         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83761
83762 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83763
83764         * config/srclist-update: Add copyright notice.
83765         (remove_id_lines, remove_trailing_blanks): New constants.
83766         (fixfile): Use them to normalize spacing a bit in copied files.
83767         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83768         Normalize leading white space and remove trailing white space.
83769
83770         * config/texinfo.tex: Sync with texinfo.
83771
83772         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83773         strtoul.c from libc, to merge coreutils whitespace changes.
83774
83775         * config/srclist.txt: Get the following m4 files from gettext:
83776         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83777         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83778         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83779         wint_t.m4.
83780
83781 2003-08-12  Karl Berry  <karl@gnu.org>
83782
83783         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83784         been made.
83785
83786 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83787
83788         * modules/gnu-source, m4/gnu-source.m4:
83789         Remove; we're assuming Autoconf 2.54 or later now.
83790         Suggested by Bruno Haible.
83791         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83792
83793 2003-08-11  Bruno Haible  <bruno@clisp.org>
83794
83795         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83796
83797 2003-08-11  Bruno Haible  <bruno@clisp.org>
83798
83799         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83800         (vasnprintf): Use it instead of wcslen.
83801
83802 2003-08-11  Bruno Haible  <bruno@clisp.org>
83803
83804         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83805         value to ensure that _Bool promotes to int. Use #define for _Bool when
83806         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83807
83808 2003-08-10  Karl Berry  <karl@gnu.org>
83809
83810         * lib/regex.h: update from libc (whitespace fix).
83811
83812 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83813
83814         Merge some files from coreutils.  These changes were
83815         originally made by Jim Meyering.
83816         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83817         many older Unixes require this.
83818         * lib/alloca.c (alloca): Remove cast to argument of free;
83819         no longer needed in C89.
83820         * lib/alloca_.h, regex.h: Fix white space to match
83821         what GNU indent does.
83822
83823 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83824
83825         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83826         apparently Emacs's Unicode mode got confused before my 2003-08-05
83827         checkin.
83828
83829 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83830
83831         * m4/extensions.m4: New file.
83832         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83833         Require gl_USE_SYSTEM_EXTENSIONS.
83834         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83835         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83836
83837 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83838
83839         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83840         * modules/extensions, modules/gnu-source: New files.
83841         * modules/timespec, modules/unlocked-io: Depend on extensions.
83842
83843 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83844
83845         * modules/restrict: New file.
83846         * MODULES.html.sh (func_all_modules): Add restrict.
83847         * modules/regex: Depend on restrict.
83848
83849 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83850
83851         * m4/restrict.m4: New file.
83852         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83853
83854 2003-08-07  Bruno Haible  <bruno@clisp.org>
83855
83856         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83857         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83858
83859 2003-08-07  Bruno Haible  <bruno@clisp.org>
83860
83861         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83862         makes the module 'getndelim2' compatible with the module 'getline'.
83863
83864 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83865
83866         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83867         byte with "\201" to avoid glitches when editing that source file
83868         with multi-gnome-terminal.
83869
83870 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83871
83872         * lib/bumpalloc.h: Remove.
83873
83874 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83875
83876         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83877         * modules/bumpalloc: Remove.
83878
83879 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83880
83881         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83882         GNU coding style.
83883
83884         Merge from coreutils.
83885         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83886         1. From glibc.
83887         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83888         from Karl Berry, implemented by Jim Meyering.
83889         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83890         from Dmitry V. Levin.
83891         Remove anachronistic cast of xrealloc.
83892         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83893         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83894         type. Otherwise, it wouldn't compile with at least /bin/cc on
83895         ymp-cray-unicos9.0.2.X.
83896         Combine two mostly-identical uses of alloca into one.
83897         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83898
83899 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83900
83901         [From Emacs.]
83902
83903         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83904         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83905         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83906         obsolete NLIST_NAME_UNION.
83907         [__GNU__]: Undef BSD and FSCALE.
83908         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83909
83910 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83911
83912         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83913         an enum type, so that it's guaranteed to promote to int.  See:
83914         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83915
83916 2003-08-03  Karl Berry  <karl@gnu.org>
83917
83918         * config/depcomp: update from automake.
83919
83920 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83921
83922         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83923         (strerror): Don't assume that a printable int fits in 14 bytes.
83924
83925 2003-07-31  Bruno Haible  <bruno@clisp.org>
83926
83927         * modules/getpass-gnu: New file.
83928         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83929
83930 2003-07-31  Bruno Haible  <bruno@clisp.org>
83931
83932         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83933
83934 2003-07-24  Karl Berry  <karl@gnu.org>
83935
83936         * config/missing: update from automake.
83937
83938 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83939             Bruno Haible  <bruno@clisp.org>
83940
83941         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83942         * lib/getline.c (getline, getdelim): Likewise.
83943         Remove _GNU_SOURCE define; now it's defined in config.h through
83944         m4/getline.m4.
83945
83946 2003-07-23  Karl Berry  <karl@gnu.org>
83947
83948         * config/config.sub: update from prep.
83949
83950 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83951
83952         * modules/xalloc (Depends-on): Add exitfail.
83953         * modules/xmemcoll: Likewise.
83954
83955 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83956
83957         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83958         over-parenthesization in macros.
83959
83960         Sync with coreutils.
83961
83962         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83963         required by C99.
83964
83965         Use `exit_failure' for xalloc and xmemcoll instead of their own
83966         private exit-failure variables.
83967         * lib/xalloc.h (xalloc_exit_failure): Remove.
83968         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83969         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83970         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83971         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83972         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83973
83974 2003-07-20  Jim Meyering  <jim@meyering.net>
83975
83976         * modules/closeout (Depends-on): Add exitfail.
83977         Suggestion from Bruno Haible.
83978
83979 2003-07-19  Karl Berry  <karl@gnu.org>
83980
83981         * config/config.sub: update from prep.
83982
83983 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83984
83985         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83986         Remove.
83987         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83988         to test that it can stand by itself.  Include "exitfail.h".
83989         Clients should set exit_failure instead.
83990         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83991
83992 2003-07-18  Bruno Haible  <bruno@clisp.org>
83993
83994         * modules/getndelim2: New file.
83995         * modules/getline: Share files with module getndelim2.
83996         * modules/getnline: Depend on getndelim2 instead of sharing files with
83997         it. Add getnline.c to lib_SOURCES.
83998         * MODULES.html.sh (func_all_modules): Add getndelim2.
83999
84000 2003-07-18  Bruno Haible  <bruno@clisp.org>
84001
84002         * m4/getndelim2.m4: New file.
84003         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84004         invoke gl_PREREQ_GETNDELIM2.
84005         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84006         gl_PREREQ_GETNDELIM2.
84007         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84008         gl_GETNDELIM2.
84009
84010 2003-07-18  Bruno Haible  <bruno@clisp.org>
84011
84012         * lib/getndelim2.h: New file.
84013         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84014         getndelim2.h.
84015         (getndelim2): Make non-static. Change return type to ssize_t.
84016         * lib/getline.h: Change argument names.
84017         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84018         * lib/getnline.c: Include getndelim2.h.
84019
84020 2003-07-18  Andreas Schwab  <schwab@suse.de>
84021
84022         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84023
84024 2003-07-17  Karl Berry  <karl@gnu.org>
84025
84026         * config/config.sub: update from prep.
84027
84028 2003-07-17  Bruno Haible  <bruno@clisp.org>
84029
84030         * modules/getnline: New file.
84031         * modules/getline: Add lib/getndelim2.c to source file list.
84032         * MODULES.html.sh (func_all_modules): Add getnline.
84033
84034 2003-07-17  Bruno Haible  <bruno@clisp.org>
84035
84036         * m4/getnline.m4: New file.
84037
84038 2003-07-17  Bruno Haible  <bruno@clisp.org>
84039
84040         * m4/Makefile.am.in: Remove file.
84041         * m4/Makefile.am: Remove file.
84042         * m4/Makefile.in: Remove file.
84043
84044 2003-07-17  Bruno Haible  <bruno@clisp.org>
84045
84046         * lib/getnline.h: New file.
84047         * lib/getnline.c: New file.
84048         * lib/getndelim2.c: New file, extracted from getline.c.
84049         (getndelim2): Renamed from getdelim2, with added nmax argument.
84050         * lib/getline.c: Include getndelim2.c.
84051         (getdelim2): Moved out to getndelim2.c.
84052         (getline, getdelim): Update.
84053
84054 2003-07-17  Bruno Haible  <bruno@clisp.org>
84055
84056         * lib/Makefile.am: Remove file.
84057         * lib/Makefile.in: Remove file.
84058
84059 2003-07-17  Bruno Haible  <bruno@clisp.org>
84060
84061         * configure.in: Remove file.
84062         * Makefile.in: Remove file.
84063
84064 2003-07-17  Bruno Haible  <bruno@clisp.org>
84065
84066         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84067
84068 2003-07-16  Karl Berry  <karl@gnu.org>
84069
84070         * config/srclist-update: was running fixlicense twice, which caused
84071                 texinfo.tex to be nullified for some reason.  Simplify,
84072                 $gplsrc is no longer needed as far as I can see?
84073
84074 2003-07-16  Jim Meyering  <jim@meyering.net>
84075
84076         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84077
84078 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84079
84080         * config/srclist.txt: Get the following files from gettext-runtime/intl
84081         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84082         ref-del.sin.  From Bruno Haible.
84083         * config/srclist-update (fixfile): Change grep pattern again, since the
84084         previous fix didn't work (there was another trailing $).  Use
84085         '[$]' to escape the $s.
84086
84087 2003-07-15  Karl Berry  <karl@gnu.org>
84088
84089         * lib/vasnprintf.c: update from gettext.
84090
84091 2003-07-15  Karl Berry  <karl@gnu.org>
84092
84093         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84094         gets expanded when surrounded by '$'.
84095
84096 2003-07-15  Jim Meyering  <jim@meyering.net>
84097
84098         * modules/save-cwd: Don't depend on error.  From Derek Price.
84099
84100 2003-07-15  Jim Meyering  <jim@meyering.net>
84101
84102         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84103
84104 2003-07-14  Simon Josefsson  <jas@extundo.com>
84105
84106         * modules/mempcpy: New file.
84107         * MODULES.html.sh (func_all_modules): Add mempcpy.
84108
84109 2003-07-14  Simon Josefsson  <jas@extundo.com>
84110
84111         * m4/mempcpy.m4: New file.
84112
84113 2003-07-14  Simon Josefsson  <jas@extundo.com>
84114
84115         * lib/mempcpy.h: New file.
84116         * lib/mempcpy.c: New file.
84117
84118 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84119
84120         * modules/getdate, modules/posixtm: Depend on mktime.
84121
84122 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84123
84124         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84125         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84126         unicodeio.c, unicodeio.h, unlocked-io.h:
84127         Switch from LGPL to GPL.
84128
84129 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84130
84131         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84132         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84133         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84134         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84135         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84136         updated automatically by ../config/srclist-update.  This changes
84137         their license from LPGL to GPL.
84138
84139 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84140
84141         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84142         assumed to refer to the root of the most recent stable gettext version.
84143         * config/srclistvars.sh: Add defaults for eggert.
84144         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84145         Match "This program" as well as "The program".  This is needed
84146         for gettext.
84147
84148 2003-07-14  Jim Meyering  <jim@meyering.net>
84149
84150         Don't emit diagnostics.  Let callers do that.
84151         * lib/save-cwd.c: Don't include "error.h".
84152         (save_cwd): Don't call error.  Ensure that errno is valid
84153         when returning nonzero.
84154
84155         * lib/save-cwd.h (restore_cwd): Update prototype.
84156         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84157         Simplify.  Don't call error upon failure.  Let callers do that.
84158         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84159         when auditing is enabled.  But don't bother updating the #if.
84160
84161 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84162
84163         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84164         it breaks C++ compilation.
84165         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84166
84167 2003-07-10  Simon Josefsson  <jas@extundo.com>
84168
84169         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84170
84171 2003-07-10  Jim Meyering  <jim@meyering.net>
84172
84173         * m4/clock_time.m4: Remove trailing blank.
84174         * m4/intmax_t.m4: Likewise.
84175
84176 2003-07-10  Jim Meyering  <jim@meyering.net>
84177
84178         * lib/vasnprintf.c: Remove trailing blanks.
84179         Make cpp indentation consistent.
84180
84181 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84182
84183         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84184         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84185         Switch from LGPL to GPL.
84186
84187 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84188
84189         * config/srclist.txt: Sort sublists.  Add
84190         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84191         that differ from gnulib for one reason or another; we'd like this list
84192         to be smaller but for now let's document what we have.
84193
84194 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84195
84196         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84197         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84198         and sweeter "eval x=$x".
84199         * config/srclist.txt: Get lib/argp* from glibc.
84200
84201 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84202
84203         * lib/mktime.c: Fix some boundary cases and remove need for floating
84204         point.
84205
84206         Issue a compile-time diagnostic if time_t is floating point, or if
84207         two's complement arithmetic is not in effect, or if arithmetic
84208         right shift does not propagate the sign.  These assumptions were
84209         all in the original code but they weren't checked.
84210
84211         (TIME_T_MIDPOINT, verify): New macros.
84212         (__isleap): Remove; it has integer overflow problems.
84213         (leapyear): New function, without those problems.
84214         (ydhms_tm_diff): Remove; splitting into two parts.
84215         (ydhms_diff): New function, containing the arithmetic part of
84216         the old ydhms_tm_diff function.  Issue a compile-time
84217         diagnostic if we are not using C99 integer division.
84218         Avoid casts when possible.
84219         (guess_time_tm): New function, containing the checking part of
84220         the old ydhms_tm_diff function.  Return the new value, rather than
84221         the difference between it and the old.  Accept a new argument T
84222         so that *T specifies the old value.  Check for overflow in the result.
84223
84224         (__mktime_internal): Use a time_t offset, not a long int offset.
84225         This undoes the 2003-06-04 change, which is no longer needed now
84226         that we have better overflow checking.
84227         (localtime_offset): Likewise.
84228
84229         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84230         and long are 64-bit but int is only 32-bit.
84231         (ydhms_diff): Use long int to store year1 and yday1.
84232         Issue a compile-time diagnostic if long int is not wide enough.
84233
84234         (__mktime_internal): Use long int to store adjusted year and yday.
84235         Use plain C rather than preprocessor commands, if that doesn't
84236         affect efficiency.
84237         Check for overflow (and try to repair) after each probe
84238         rather than checking only at the very end.  This avoids some bugs
84239         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84240         does not equal GMT offset at maximum time).
84241         Use integer to check for overflow rather than floating point; this
84242         is more portable to non-IEEE hosts, and is a tad faster.
84243         When we detect that we are oscillating between two values,
84244         don't check whether tm_isdst has the requested value, since
84245         we already know the answer.  When tm_isdst has the wrong value,
84246         use a different heuristic to find the right one, based on the
84247         extreme values actually observed in practice in tz2003a,
84248         rather than the (overly optimistic) "previous 3 calendar quarters".
84249
84250         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84251         "T const" to accommodate glibc style.
84252         (check_result): Use less-confusing report format.  "long" -> "long int.
84253         (main): Likewise.
84254         Don't loop if the iteration overflows time_t.
84255         Allow a negative step in the iteration.
84256
84257 2003-07-06  Karl Berry  <karl@gnu.org>
84258
84259         * config/depcomp: update from automake.
84260         * config/config.sub: update from prep.
84261
84262 2003-07-03  Karl Berry  <karl@gnu.org>
84263
84264         * config/config.guess: update from prep.
84265
84266 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84267
84268         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84269         xreadlink.c now includes it unconditionally.
84270
84271 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84272
84273         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84274         having it depend on HAVE_SYS_TYPES_H.
84275
84276 2003-07-01  Bruno Haible  <bruno@clisp.org>
84277
84278         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84279         <sys/types.h> should be sufficient.
84280         Reported by Paul Eggert.
84281
84282 2003-06-26  Karl Berry  <karl@gnu.org>
84283
84284         * config/depcomp: update from automake.
84285
84286 2003-06-26  Bruno Haible  <bruno@clisp.org>
84287
84288         * modules/human: Depend on module stdbool.
84289
84290 2003-06-25  Bruno Haible  <bruno@clisp.org>
84291
84292         * modules/readlink: New file.
84293         * modules/xreadlink: Depend on it.
84294         * MODULES.html.sh (func_all_modules): Add readlink.
84295
84296 2003-06-25  Bruno Haible  <bruno@clisp.org>
84297
84298         * m4/readlink.m4: New file.
84299
84300 2003-06-25  Bruno Haible  <bruno@clisp.org>
84301
84302         * lib/readlink.c: New file.
84303
84304 2003-06-22  Karl Berry  <karl@gnu.org>
84305
84306         * config/srclist.txt: update mkinstalldirs from automake.
84307         * config/mkinstalldirs: update.
84308
84309 2003-06-22  Bruno Haible  <bruno@clisp.org>
84310
84311         Portability to mingw32.
84312         * m4/ssize_t.m4: New file, from GNU gettext.
84313         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84314         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84315
84316 2003-06-22  Bruno Haible  <bruno@clisp.org>
84317
84318         * modules/safe-read: Add m4/ssize_t.m4.
84319         * modules/xreadlink: Add m4/ssize_t.m4.
84320
84321 2003-06-20  Bruno Haible  <bruno@clisp.org>
84322
84323         Assume C89, so PARAMS isn't needed.
84324         * lib/unicodeio.h (PARAMS): Remove.
84325         * lib/unicodeio.c: Don't use PARAMS.
84326
84327 2003-06-18  Karl Berry  <karl@gnu.org>
84328
84329         * config/config.{guess,sub}: update from prep.
84330
84331 2003-06-18  Jim Meyering  <jim@meyering.net>
84332
84333         Merge changes from coreutils.
84334         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84335         Remove explicit declarations of xmalloc and realloc.
84336         Include xalloc.h.
84337         (read_utmp): Remove anachronistic cast of xmalloc.
84338
84339 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84340
84341         Assume C89, so PARAMS isn't needed.
84342         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84343         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84344         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84345         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84346         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84347         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84348         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84349         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84350         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84351         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84352         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84353         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84354         no longer needed. Anyway, config.h should always be included before any
84355         other file.
84356
84357 2003-06-11  Simon Josefsson  <jas@extundo.com>
84358
84359         * modules/sysexits: New file.
84360         * MODULES.html.sh (func_all_modules): Add sysexits.
84361
84362 2003-06-11  Simon Josefsson  <jas@extundo.com>
84363
84364         * lib/sysexit_.h: New file.
84365
84366 2003-06-11  Derek Price  <derek@ximbiot.com>
84367
84368         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84369         necessary.
84370
84371 2003-06-11  Bruno Haible  <bruno@clisp.org>
84372
84373         * m4/sysexits.m4: New file.
84374
84375 2003-06-10  Simon Josefsson  <jas@extundo.com>
84376
84377         * lib/argp.h: New file, from glibc.
84378         * lib/argp-ba.c: New file, from glibc.
84379         * lib/argp-eexst.c: New file, from glibc.
84380         * lib/argp-fmtstream.c: New file, from glibc.
84381         * lib/argp-fmtstream.h: New file, from glibc.
84382         * lib/argp-fs-xinl.c: New file, from glibc.
84383         * lib/argp-help.c: New file, from glibc.
84384         * lib/argp-namefrob.h: New file, from glibc.
84385         * lib/argp-parse.c: New file, from glibc.
84386         * lib/argp-pv.c: New file, from glibc.
84387         * lib/argp-pvh.c: New file, from glibc.
84388         * lib/argp-xinl.c: New file, from glibc.
84389
84390 2003-06-10  Simon Josefsson  <jas@extundo.com>
84391
84392         * modules/strchrnul: New file.
84393
84394 2003-06-10  Simon Josefsson  <jas@extundo.com>
84395
84396         * modules/argp: New file.
84397
84398 2003-06-10  Simon Josefsson  <jas@extundo.com>
84399
84400         * m4/strchrnul.m4: New file.
84401
84402 2003-06-10  Simon Josefsson  <jas@extundo.com>
84403
84404         * lib/strchrnul.h: New file.
84405         * lib/strchrnul.c: New file.
84406
84407 2003-06-10  Bruno Haible  <bruno@clisp.org>
84408
84409         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84410
84411 2003-06-07  Karl Berry  <karl@gnu.org>
84412
84413         * config/config.{guess,sub}: update from prep.
84414
84415 2003-06-07  Jim Meyering  <jim@meyering.net>
84416
84417         * modules/strtod: Use $(...) notation, not @...@ for
84418         AC_REPLACE'd variables.
84419         * modules/localcharset: Likewise.
84420
84421 2003-06-07  Jim Meyering  <jim@meyering.net>
84422
84423         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84424         in place of my name in the copyright comment.
84425         Remove definition and uses of __P.
84426
84427         From coreutils.
84428         * lib/stat.c: Don't declare xmalloc explicitly.
84429         Instead, include "xalloc.h".
84430         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84431         xrealloc, and xcalloc return values.
84432         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84433         Improve comment.
84434         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84435
84436 2003-06-07  Bruno Haible  <bruno@clisp.org>
84437
84438         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84439         avoid AC_CONFIG_LINKS.
84440         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84441         fnmatch.h, to avoid AC_CONFIG_LINKS.
84442         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84443
84444 2003-06-07  Bruno Haible  <bruno@clisp.org>
84445
84446         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84447         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84448         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84449         directory.
84450         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84451         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84452         directory.
84453
84454 2003-06-06  Jim Meyering  <jim@meyering.net>
84455
84456         Merge from coreutils.
84457         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84458         Consolidate declarations and initializations of *_base* locals.
84459
84460         Merge from coreutils.
84461         This avoids a core dump on systems without GNU putenv,
84462         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84463         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84464         (unsetenv): New static function, from GNU libc.
84465         (rpl_putenv): Use it.
84466
84467         * lib/modechange.c: Remove trailing blanks.
84468
84469         Merge from coreutils.
84470         * lib/fsusage.c: Remove declaration of statfs.
84471         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84472
84473         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84474
84475 2003-06-06  Jim Meyering  <jim@meyering.net>
84476
84477         * lib/stdbool_.h: Renamed from stdbool.h.in.
84478
84479 2003-06-06  Jim Meyering  <jim@meyering.net>
84480             Bruno Haible  <bruno@clisp.org>
84481
84482         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84483         Adjust Makefile.am snippet not to redirect directly to target.
84484         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84485
84486 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84487
84488         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84489         mismatch, look in future quarters as well as past.  This fixes a
84490         bug when processing fall-backwards gaps immediately after a long
84491         period of daylight-saving time.
84492
84493         * lib/mktime.c: Assume freestanding C89 or better.
84494         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84495         (__P): Remove; not used.
84496         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84497         (mktime, not_equal_tm, print_tm, check_result,
84498         main): Use prototypes.  Use const * where appropriate.
84499         (main): Fix typo in testing code that uncovered by above changes.
84500         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84501
84502 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84503
84504         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84505         locale.h, localeconv.  This merges changes from coreutils.
84506
84507         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84508         It can be removed after the next Autoconf is released.
84509         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84510         needed.
84511
84512 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84513
84514         * lib/mktime.c: Fix Debian bug 177940
84515         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84516         (localtime_offset): Now long int, not time_t, because we want it
84517         to be guaranteed to be signed.  All uses changed.
84518         (__mktime_internal): If overflow would occur when adding offset,
84519         don't add it.
84520
84521         Merge 'human' changes from coreutils.  Rewrite to support
84522         locale-specific notations like thousands separators.
84523         * lib/human.c: Simplify authorship notice.
84524         Include human.h immediately after config.h.
84525         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84526         <limits.h>: Do not include, since human.h does.
84527         (SIZE_MAX, UINTMAX_MAX): New macros.
84528         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84529         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84530         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84531         (power_letter): Renamed from suffixes.
84532         (generate_suffix_backwards): Remove.
84533         (adjust_value): Now takes int style (because of human.h changes)
84534         and long double value (for greater precision on some platforms).
84535         (group_number): New function.
84536         (human_readable): Use it.  Use integer options, not enum.
84537         Put the options before the sizes in the arg list.
84538         Support all the new options.
84539         The old human_readable function has been removed;
84540         use inttostr.h instead.
84541         (human_readable, default_block_size, humblock):
84542         Use uintmax_t, not int, for block sizes.
84543         (human_readable_inexact, block_size_types): Remove.
84544         (block_size_opts): New constant.
84545         (human_options): Renamed from human_block_size, with new signature
84546         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84547         * lib/human.h: Add copyright and authorship notice.
84548         Include <limits.h> and <stdbool.h> unconditionally.
84549         (PARAMS): Remove.  All uses removed.
84550         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84551         (enum human_inexact_style): Remove tag; now a nameless enum.
84552         (human_floor, human_ceiling, human_round_to_even): Now have
84553         values 2, 0, 1 rather than -1, 1, 0.
84554         (human_group_digits, human_suppress_point_zero, human_autoscale,
84555         human_base_1024, human_SI, human_B): New constants.
84556         (human_readable_inexact, human_block_size): Remove.
84557         (human_readable): Size args are now uintmax_t, not int.
84558         (human_options): New decl.
84559
84560         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84561         unnecessary now that we assume C89 or better.  This change
84562         imported from coreutils.
84563
84564         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84565         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84566         in the 2003-05-30 sync from glibc.
84567
84568         .h files should stand alone, but we shouldn't include <sys/types.h>
84569         if we can get away with just <stddef.h>.
84570
84571         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84572         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84573         rather than <sys/types.h>, as we merely need size_t.
84574         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84575         to get size_t.
84576         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84577         Include <stdio.h>, to get FILE.
84578         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84579         memcasecmp.h has included <stddef.h> and all we need is size_t.
84580         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84581         our interface, instead of including <sys/types.h>
84582
84583 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84584
84585         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84586         now, as glibc mktime is buggy on non-glibc systems.
84587
84588 2003-06-03  Karl Berry  <karl@gnu.org>
84589
84590         * config/config.sub: update from prep.
84591
84592 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84593
84594         [from coreutils]
84595         Fix some minor time-related bugs with POSIX time arguments.
84596         Some valid time stamps were being rejected (notably -1, and
84597         time stamps before 1900 on 64-bit hosts).  And some invalid
84598         time stamps were being accepted, e.g. September 31.
84599
84600         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84601         that we can return (time_t) -1 successfully.
84602         * lib/posixtm.c: Likewise.
84603         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84604         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84605         (t): Remove static var.
84606         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84607         of static var.  All uses changed.
84608         (year): Do not reject years before 1900; they can occur with
84609         64-bit time_t.
84610         (posix_time_parse): Do not check for out-of-range components;
84611         that is now the caller's responsibility, since our checks were
84612         only approximations.
84613         (posixtime): Use mktime to check for out-of-range components,
84614         since it knows them exactly.
84615         If mktime returns (time_t) -1, check whether an error actually occurred
84616         by invoking localtime on -1.
84617         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84618         posixtime failures better.
84619         Improve the test data (in comments only).
84620
84621 2003-06-02  Karl Berry  <karl@gnu.org>
84622
84623         * config/mkinstalldirs (version): new variable.
84624         (--version): new option.
84625         (usage): improve message.
84626
84627 2003-05-30  Karl Berry  <karl@gnu.org>
84628
84629         * lib/mktime.c: update from libc.
84630
84631 2003-05-30  Bruno Haible  <bruno@clisp.org>
84632
84633         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84634         * config/config.rpath: Upgrade to gettext-0.12.1.
84635
84636 2003-05-30  Bruno Haible  <bruno@clisp.org>
84637
84638         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84639         * m4/nls.m4: New file, from gettext-0.12.1.
84640         * m4/po.m4: New file, from gettext-0.12.1.
84641         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84642
84643 2003-05-30  Bruno Haible  <bruno@clisp.org>
84644
84645         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84646         * lib/localcharset.h: Likewise.
84647         * lib/localcharset.c: Likewise.
84648
84649 2003-05-29  Karl Berry  <karl@gnu.org>
84650
84651         * config/config.rpath: update from gettext.
84652
84653 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84654
84655         Assume the headers required for C89 freestanding compilers.
84656         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84657         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84658         * m4/human.m4 (gl_HUMAN): Likewise.
84659         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84660         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84661         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84662         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84663         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84664         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84665
84666 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84667
84668         Assume the headers required for C89 freestanding compilers.
84669         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84670         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84671         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84672         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84673         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84674         define, since <limits.h> is guaranteed to do that.
84675         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84676         * lib/exclude.c: Include <stdbool.h> unconditionally.
84677         * lib/tempname.c: Include <stddef.h> unconditionally.
84678         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84679         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84680         <stddef.h> does that.
84681         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84682         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84683         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84684         needed.
84685         * lib/xstrtol.c: Likewise.
84686         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84687         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84688
84689         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84690         warnings on some platforms.
84691
84692         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84693         arbitrarily.
84694
84695 2003-05-26  Jim Meyering  <jim@meyering.net>
84696
84697         Merge in a change from coreutils:
84698         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84699         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84700         that condition, rather than `-1' which is slightly misleading.
84701         Change the name of the cache variable to have the gl_ prefix.
84702         Prompted by a patch from Richard Dawe for DJGPP.
84703
84704 2003-05-24  Karl Berry  <karl@gnu.org>
84705
84706         * config/config.guess: update from prep.
84707
84708 2003-05-22  Karl Berry  <karl@gnu.org>
84709
84710         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84711
84712 2003-05-20  Karl Berry  <karl@gnu.org>
84713
84714         * config/config.guess: update from prep.
84715
84716 2003-05-18  Karl Berry  <karl@gnu.org>
84717
84718         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84719         might actually be set by the user.
84720
84721         * config/depcomp, install-sh, mdate-sh: update from automake.
84722
84723 2003-05-17  Bruno Haible  <bruno@clisp.org>
84724
84725         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84726         invalid expansion for AC_EGREP_CPP.
84727         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84728         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84729         Suggested by Akim Demaille <akim@epita.fr> in
84730         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84731
84732 2003-05-12  Jim Meyering  <jim@meyering.net>
84733
84734         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84735         the space-padded-by-default conversion specifiers, %e, %k, %l.
84736
84737 2003-05-12  Bruno Haible  <bruno@clisp.org>
84738
84739         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84740         the string is longer than 4 KB.
84741
84742 2003-05-11  Karl Berry  <karl@gnu.org>
84743
84744         * config/config.{guess,sub}: update from prep.
84745
84746 2003-05-09  Bruno Haible  <bruno@clisp.org>
84747
84748         * modules/error: Add m4/strerror_r.m4 to file list.
84749
84750 2003-05-03  Bruno Haible  <bruno@clisp.org>
84751
84752         Upgrade to Unicode-4.0.
84753         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84754         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84755         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84756         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84757         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84758         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84759         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84760         Change width of U+E0100..U+E01EF from 1 to 0.
84761
84762 2003-04-25  Jim Meyering  <jim@meyering.net>
84763
84764         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84765         of type size_t, not int.
84766
84767 2003-04-25  Bruno Haible  <bruno@clisp.org>
84768
84769         * lib/copy-file.c: Include <stddef.h>, for size_t.
84770
84771 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84772
84773         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84774         code which expansion is under static control.  Patch imported from
84775         Akim Demaille's patch to Bison; see
84776         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84777
84778 2003-04-14  Bruno Haible  <bruno@clisp.org>
84779
84780         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84781
84782 2003-04-11  Jim Meyering  <jim@meyering.net>
84783
84784         Merge changes from Coreutils.
84785
84786         2003-03-22  Jim Meyering  <jim@meyering.net>
84787
84788         * lib/strftime.c (widen): Cast alloca return value to proper type.
84789
84790         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84791
84792         From GNU libc.
84793         * lib/strftime.c (my_strftime): Handle very large width
84794         specifications for numeric values correctly.  Improve checks for
84795         overflow.
84796
84797         2003-01-19  Jim Meyering  <jim@meyering.net>
84798
84799         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84800         definitions.
84801         (nl_get_alt_digit) [! defined my_strftime]: Define.
84802         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84803         _nl_get_alt_digit and _nl_get_walt_digit.
84804
84805         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84806         libc. These changes have no effect outside of _LIBC.
84807
84808 2003-04-10  Bruno Haible  <bruno@clisp.org>
84809
84810         * modules/findprog: New file.
84811         * MODULES.html.sh (func_all_modules): Add it.
84812
84813 2003-04-10  Bruno Haible  <bruno@clisp.org>
84814
84815         * m4/findprog.m4: New file.
84816         * m4/eaccess.m4: New file.
84817
84818 2003-04-10  Bruno Haible  <bruno@clisp.org>
84819
84820         * lib/findprog.h: New file, from GNU gettext.
84821         * lib/findprog.c: New file, from GNU gettext.
84822
84823 2003-04-05  Jim Meyering  <jim@meyering.net>
84824
84825         Merge changes from Coreutils.
84826
84827         * lib/exclude.h (PARAMS): Remove definition and uses.
84828         * lib/exclude.c: Remove uses of `PARAMS'.
84829
84830         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84831         Add test-cases for DOS filenames. Declare program_name.
84832         (main): Set up program_name.  Patch by Rich Dawe.
84833
84834         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84835         error from mntctl.
84836         Use mntctl's return value to drive the entry-processing loop, since
84837         we can't rely on the value of the vmt_length member in the last
84838         entry.  On some systems doing so could result in exhausting
84839         virtual memory.  Based in part on a patch from Mike Jetzer.
84840
84841 2003-04-04  Bruno Haible  <bruno@clisp.org>
84842
84843         * modules/linebreak: New file.
84844         * MODULES.html.sh (func_all_modules): Add it.
84845
84846 2003-04-04  Bruno Haible  <bruno@clisp.org>
84847
84848         * m4/linebreak.m4: New file.
84849
84850 2003-04-04  Bruno Haible  <bruno@clisp.org>
84851
84852         * lib/linebreak.h: New file, from GNU gettext.
84853         * lib/linebreak.c: New file, from GNU gettext with slight
84854         modifications.
84855         * lib/lbrkprop.h: New file, from GNU gettext.
84856
84857 2003-04-03  Bruno Haible  <bruno@clisp.org>
84858
84859         * modules/utf8-ucs4: New file.
84860         * modules/utf16-ucs4: New file.
84861         * modules/ucs4-utf8: New file.
84862         * modules/ucs4-utf16: New file.
84863         * MODULES.html.sh (func_all_modules): Add them.
84864
84865 2003-04-03  Bruno Haible  <bruno@clisp.org>
84866
84867         * m4/utf-ucs4.m4: New file.
84868         * m4/ucs4-utf.m4: New file.
84869
84870 2003-04-03  Bruno Haible  <bruno@clisp.org>
84871
84872         * lib/utf8-ucs4.h: New file, from GNU gettext.
84873         * lib/utf16-ucs4.h: New file, from GNU gettext.
84874         * lib/ucs4-utf8.h: New file, from GNU gettext.
84875         * lib/ucs4-utf16.h: New file, from GNU gettext.
84876
84877 2003-04-02  Bruno Haible  <bruno@clisp.org>
84878
84879         * modules/binary-io: New file.
84880         * MODULES.html.sh (func_all_modules): Add it.
84881
84882 2003-04-02  Bruno Haible  <bruno@clisp.org>
84883
84884         * lib/binary-io.h: New file, from GNU gettext.
84885
84886 2003-04-01  Bruno Haible  <bruno@clisp.org>
84887
84888         * modules/pathname: New file.
84889         * MODULES.html.sh (func_all_modules): Add it.
84890
84891 2003-04-01  Bruno Haible  <bruno@clisp.org>
84892
84893         * lib/pathname.h: New file, from GNU gettext.
84894         * lib/concatpath.c: New file, from GNU gettext.
84895
84896 2003-03-30  Bruno Haible  <bruno@clisp.org>
84897
84898         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84899
84900 2003-03-30  Bruno Haible  <bruno@clisp.org>
84901
84902         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84903         function chown() doesn't exist.
84904
84905 2003-03-28  Bruno Haible  <bruno@clisp.org>
84906
84907         * modules/copy-file: New file.
84908         * MODULES.html.sh (func_all_modules): Add it.
84909
84910 2003-03-28  Bruno Haible  <bruno@clisp.org>
84911
84912         * m4/copy-file.m4: New file.
84913
84914 2003-03-28  Bruno Haible  <bruno@clisp.org>
84915
84916         * lib/copy-file.h: New file, from GNU gettext.
84917         * lib/copy-file.c: New file, from GNU gettext.
84918
84919 2003-03-18  Jim Meyering  <jim@meyering.net>
84920
84921         * lib/quote.c (quote_n): Fix typo in comment.
84922
84923 2003-03-18  Bruno Haible  <bruno@clisp.org>
84924
84925         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84926         checking.
84927         * m4/onceonly_2_57.m4: Likewise.
84928
84929 2003-03-17  Bruno Haible  <bruno@clisp.org>
84930
84931         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84932         (m4_quote): Remove macro.
84933         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84934
84935 2003-03-14  Jim Meyering  <jim@meyering.net>
84936
84937         Merge changes from Coreutils.
84938         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84939         to be const, in order to avoid warnings.
84940         (obstack_room): Likewise.
84941         (obstack_empty_p): Likewise.
84942
84943 2003-03-14  Bruno Haible  <bruno@clisp.org>
84944
84945         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84946         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84947
84948 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84949
84950         Merge changes from Bison.
84951         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84952         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84953         when compiling Bison 1.875's `bitset bset = obstack_alloc
84954         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84955         * lib/hash.c: Include <stdbool.h> unconditionally.
84956
84957 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84958
84959         * m4/onceonly.m4 (m4_quote): New macro.
84960         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84961         Quote AC_FOREACH variable-expansions properly.
84962
84963 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84964
84965         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84966
84967 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84968
84969         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84970         Reported by Bruce Becker; see:
84971         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84972
84973 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84974             Bruno Haible  <bruno@clisp.org>
84975
84976         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84977         Reported by John Hughes, see
84978         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84979
84980 2003-02-20  Bruno Haible  <bruno@clisp.org>
84981
84982         * MODULES.html.sh (func_all_modules): Add poll.
84983
84984 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84985
84986         * modules/poll: New file.
84987
84988 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84989
84990         * lib/poll_.h: New file.
84991         * lib/poll.c: New file.
84992
84993 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84994
84995         * m4/poll.m4: New file.
84996
84997 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84998
84999         * modules/mathl: New file.
85000
85001 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85002
85003         * lib/mathl.h: New file.
85004         * lib/acosl.c: New file.
85005         * lib/asinl.c: New file.
85006         * lib/atanl.c: New file.
85007         * lib/ceill.c: New file.
85008         * lib/cosl.c: New file.
85009         * lib/expl.c: New file.
85010         * lib/floorl.c: New file.
85011         * lib/frexpl.c: New file.
85012         * lib/ldexpl.c: New file.
85013         * lib/logl.c: New file.
85014         * lib/sincosl.c: New file.
85015         * lib/sinl.c: New file.
85016         * lib/sqrtl.c: New file.
85017         * lib/tanl.c: New file.
85018         * lib/trigl.c: New file.
85019         * lib/trigl.h: New file.
85020
85021 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85022
85023         * m4/mathl.m4: New file.
85024
85025 2003-02-18  Bruno Haible  <bruno@clisp.org>
85026
85027         * MODULES.html.sh (func_all_modules): Add mathl.
85028
85029 2003-02-17  Bruno Haible  <bruno@clisp.org>
85030
85031         * modules/mkdtemp: New module.
85032         * MODULES.html.sh (func_all_modules): Add it.
85033
85034 2003-02-17  Bruno Haible  <bruno@clisp.org>
85035
85036         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85037
85038 2003-02-17  Bruno Haible  <bruno@clisp.org>
85039
85040         * lib/mkdtemp.h: New file, from GNU gettext.
85041         * lib/mkdtemp.c: New file, from GNU gettext.
85042
85043 2003-02-02  Jim Meyering  <jim@meyering.net>
85044
85045         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85046         e.g. glibc-2.2.93.
85047
85048 2003-01-31  Bruno Haible  <bruno@clisp.org>
85049
85050         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85051         'rpl_rename'.
85052         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85053         'rpl_strnlen'.
85054         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85055         'rpl_strtod'.
85056         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85057         'rpl_utime'.
85058
85059 2003-01-31  Bruno Haible  <bruno@clisp.org>
85060
85061         * lib/rename.c: #undef rename before defining rpl_rename.
85062         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85063
85064 2003-01-30  Bruno Haible  <bruno@clisp.org>
85065
85066         * modules/vasnprintf, modules/vasprintf: New modules.
85067         * MODULES.html.sh (func_all_modules): Add them.
85068
85069 2003-01-30  Bruno Haible  <bruno@clisp.org>
85070
85071         * m4/signed.m4: New file, from GNU gettext.
85072         * m4/longdouble.m4: New file, from GNU gettext.
85073         * m4/wchar_t.m4: New file, from GNU gettext.
85074         * m4/wint_t.m4: New file, from GNU gettext.
85075         * m4/vasnprintf.m4: New file.
85076         * m4/vasprintf.m4: New file.
85077
85078 2003-01-30  Bruno Haible  <bruno@clisp.org>
85079
85080         * lib/printf-args.h: New file, from GNU gettext.
85081         * lib/printf-args.c: New file, from GNU gettext.
85082         * lib/printf-parse.h: New file, from GNU gettext.
85083         * lib/printf-parse.c: New file, from GNU gettext.
85084         * lib/vasnprintf.h: New file, from GNU gettext.
85085         * lib/vasnprintf.c: New file, from GNU gettext.
85086         * lib/asnprintf.c: New file, from GNU gettext.
85087         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85088         * lib/vasprintf.c: New file, from GNU gettext.
85089         * lib/asprintf.c: New file, from GNU gettext.
85090
85091 2003-01-29  Bruno Haible  <bruno@clisp.org>
85092
85093         * modules/stpncpy: New module.
85094         * MODULES.html.sh (func_all_modules): Add it.
85095
85096 2003-01-29  Bruno Haible  <bruno@clisp.org>
85097
85098         * m4/stpncpy.m4: New file.
85099
85100 2003-01-29  Bruno Haible  <bruno@clisp.org>
85101
85102         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85103         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85104
85105 2003-01-28  Bruno Haible  <bruno@clisp.org>
85106
85107         * modules/c-ctype: New module.
85108         * MODULES.html.sh (func_all_modules): Add it.
85109
85110 2003-01-28  Bruno Haible  <bruno@clisp.org>
85111
85112         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85113         Paul Eggert.
85114         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85115         Paul Eggert.
85116
85117 2003-01-27  Bruno Haible  <bruno@clisp.org>
85118
85119         * modules/xsetenv: New module.
85120         * MODULES.html.sh (func_all_modules): Add it.
85121
85122 2003-01-27  Bruno Haible  <bruno@clisp.org>
85123
85124         * lib/xsetenv.h: New file, from GNU gettext.
85125         * lib/xsetenv.c: New file, from GNU gettext.
85126
85127 2003-01-23  Jim Meyering  <jim@meyering.net>
85128
85129         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85130         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85131
85132 2003-01-23  Bruno Haible  <bruno@clisp.org>
85133
85134         * modules/minmax: New module.
85135         * MODULES.html.sh (func_all_modules): Add it.
85136
85137 2003-01-23  Bruno Haible  <bruno@clisp.org>
85138
85139         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85140         Eggert.
85141
85142 2003-01-22  Bruno Haible  <bruno@clisp.org>
85143
85144         * modules/exit: New module.
85145         * MODULES.html.sh (func_all_modules): Add it.
85146
85147 2003-01-22  Bruno Haible  <bruno@clisp.org>
85148
85149         * lib/exit.h: New file, from GNU gettext.
85150
85151 2003-01-19  Bruno Haible  <bruno@clisp.org>
85152
85153         * gnulib-tool: Recognize option --extract-maintainer.
85154         (func_get_maintainer): New function.
85155         * modules/*: Add Maintainer entry.
85156
85157 2003-01-16  Jim Meyering  <jim@meyering.net>
85158
85159         * m4/regex.m4: The `regex' struct is both input and output.
85160         Initialize it before each use.  Patch by Tim Waugh.
85161
85162 2003-01-16  Bruno Haible  <bruno@clisp.org>
85163
85164         * MODULES.html.sh: Add a table of contents. Add the module name as
85165         leftmost column. Add hyperlinks.
85166
85167 2003-01-15  Bruno Haible  <bruno@clisp.org>
85168
85169         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85170
85171 2003-01-15  Bruno Haible  <bruno@clisp.org>
85172
85173         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85174         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85175         suffix.
85176
85177 2003-01-15  Bruno Haible  <bruno@clisp.org>
85178
85179         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85180
85181 2003-01-15  Bruno Haible  <bruno@clisp.org>
85182
85183         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85184         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85185
85186 2003-01-14  Jim Meyering  <jim@meyering.net>
85187
85188         * lib/same.c (same_name): Tweak a comment.
85189
85190 2003-01-14  Bruno Haible  <bruno@clisp.org>
85191
85192         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85193         when a string comparison is sufficient.
85194
85195 2003-01-14  Bruno Haible  <bruno@clisp.org>
85196
85197         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85198         'unsigned int'.
85199
85200 2003-01-14  Bruno Haible  <bruno@clisp.org>
85201
85202         * lib/hash-pjw.c: Add comment about low quality of this function.
85203
85204 2003-01-13  Bruno Haible  <bruno@clisp.org>
85205
85206         * modules/stpcpy: Distribute lib/stpcpy.h.
85207         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85208
85209 2003-01-13  Bruno Haible  <bruno@clisp.org>
85210
85211         * modules/*: Add a description.
85212         * modules/strpbrk: Fix Makefile.am snippet.
85213         * modules/strtoimax: Fix dependencies.
85214         * modules/strtoumax: Likewise.
85215
85216 2003-01-13  Bruno Haible  <bruno@clisp.org>
85217
85218         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85219         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85220         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85221
85222 2003-01-13  Bruno Haible  <bruno@clisp.org>
85223
85224         * gnulib-tool (func_create_testdir): Store config/* files in the main
85225         directory.
85226         * config.rpath: Move to ...
85227         * config/config.rpath: ... here.
85228         * modules/gettext: Contains config/config.rpath, not config.rpath.
85229         * modules/iconv: Likewise.
85230
85231 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85232
85233         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85234         to avoid collisions with libcurses and libreadline.
85235
85236         * m4/getstr.m4: Remove.
85237         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85238
85239 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85240
85241         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85242         to avoid collisions with libcurses and libreadline.
85243
85244         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85245         * lib/getstr.h, getstr.c: Remove.
85246         * lib/getline.c: Include "getline.h", to check interface.
85247         Move body of old getstr.c here: this defines MIN_CHUNK and
85248         declares getdelim2, which is renamed from getstr.
85249         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85250
85251         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85252         All uses changed.
85253         * lib/linebuffer.h: Likewise.
85254         (readline): Remove backward-compatibility macro.
85255
85256 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85257
85258         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85259         to avoid collisions with libcurses and libreadline.
85260         * getstr: Remove.
85261         * MODULES.html.sh: Remove getstr.
85262         * modules/getline: Depend on unlocked-io, not getstr.
85263
85264 2003-01-12  Jim Meyering  <jim@meyering.net>
85265
85266         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85267
85268 2003-01-10  Bruno Haible  <bruno@clisp.org>
85269
85270         * modules/alloca: Change Makefile.am requirements. Simplify Include
85271         requirements. Add lib/alloca_.h to file list.
85272
85273 2003-01-10  Bruno Haible  <bruno@clisp.org>
85274
85275         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85276
85277 2003-01-10  Bruno Haible  <bruno@clisp.org>
85278
85279         * lib/alloca_.h: New file.
85280         * lib/getdate.y: Unconditionally include alloca.h.
85281         * lib/makepath.c: Likewise.
85282         * lib/setenv.c: Likewise.
85283         * lib/userspec.c: Likewise.
85284
85285 2003-01-09  Karl Berry  <karl@gnu.org>
85286
85287         * MODULES.html.sh: include `dirname $0` in PATH, to find
85288         gnulib-tool.
85289
85290 2003-01-09  Bruno Haible  <bruno@clisp.org>
85291
85292         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85293         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85294
85295 2003-01-09  Bruno Haible  <bruno@clisp.org>
85296
85297         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85298
85299 2003-01-09  Bruno Haible  <bruno@clisp.org>
85300
85301         * lib/stdbool.h.in: New file.
85302
85303 2003-01-09  Bruno Haible  <bruno@clisp.org>
85304
85305         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85306         * MODULES.html.sh: Likewise.
85307
85308 2003-01-08  Jim Meyering  <jim@meyering.net>
85309
85310         * lib/full-write.c: Undefine and define-away `const' after inclusion
85311         of errno.h, not before.  Suggestion from Bruno Haible.
85312
85313 2003-01-08  Bruno Haible  <bruno@clisp.org>
85314
85315         * modules/full-read: Depend on full-write.
85316
85317 2003-01-08  Bruno Haible  <bruno@clisp.org>
85318
85319         * lib/safe-read.c: Include specification header first, to ensure its
85320         selfcontainedness.
85321         * lib/full-write.c: Likewise.
85322
85323 2003-01-07  Jim Meyering  <jim@meyering.net>
85324
85325         * lib/full-write.c: Rework so that it may serve to define full_read,
85326         too.
85327         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85328
85329 2003-01-07  Bruno Haible  <bruno@clisp.org>
85330
85331         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85332         <inttypes.h>.
85333         * lib/xstrtol.h: Likewise.
85334         * lib/xstrtoimax.c: Likewise.
85335         * lib/xstrtoumax.c: Likewise.
85336         * lib/human.h: Likewise.
85337
85338         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85339         on systems that have <inttypes.h> but not <stdint.h>.
85340
85341 2003-01-07  Bruno Haible  <bruno@clisp.org>
85342
85343         * MODULES.html.sh: Add copyright notice.
85344         (missed_files): Omit CVS directory entries.
85345         (func_module): Make it work with sed-3.02.
85346         * MODULES.txt: Remove file.
85347
85348 2003-01-06  Jim Meyering  <jim@meyering.net>
85349
85350         * lib/version-etc.c: Update year in translatable copyright string.
85351
85352 2003-01-03  Karl Berry  <karl@gnu.org>
85353
85354         * config/config.{guess,sub}: update from prep.
85355
85356 2003-01-02  Karl Berry  <karl@gnu.org>
85357
85358         * doc/COPYING.DOC: belatedly updated to 1.2.
85359
85360 2003-01-01  Karl Berry  <karl@gnu.org>
85361
85362         * gnulib-tool (func_verify_module): report module name $module in
85363         error message, not $1.
85364         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85365         be created, only if it doesn't exist.
85366         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85367
85368 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85369
85370         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85371
85372 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85373
85374         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85375         memcmp if strcoll doesn't work.
85376
85377 2002-12-31  Bruno Haible  <bruno@clisp.org>
85378
85379         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85380         nonempty.
85381
85382 2002-12-31  Bruno Haible  <bruno@clisp.org>
85383
85384         * lib/memcoll.c (STRCOLL): New macro.
85385         (memcoll): Use it.
85386
85387 2002-12-31  Bruno Haible  <bruno@clisp.org>
85388
85389         * lib/localcharset.h: New file.
85390         * lib/localcharset.c: Include it.
85391         * lib/unicodeio.c: Likewise.
85392
85393 2002-12-31  Bruno Haible  <bruno@clisp.org>
85394
85395         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85396         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85397
85398 2002-12-31  Bruno Haible  <bruno@clisp.org>
85399
85400         * lib/getline.h: Include <stddef.h>, for size_t.
85401
85402         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85403         * lib/unicodeio.c: Don't include <stddef.h>.
85404
85405 2002-12-31  Bruno Haible  <bruno@clisp.org>
85406
85407         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85408         HAVE_TM_ZONE.
85409
85410 2002-12-24  Karl Berry  <karl@gnu.org>
85411
85412         * config/config.guess: update from prep.
85413
85414 2002-12-24  Bruno Haible  <bruno@clisp.org>
85415
85416         General infrasructure.
85417         * m4/README: Rewritten.
85418         * m4/onceonly.m4: New file.
85419         * m4/onceonly_2_57.m4: New file.
85420
85421         Module atexit.
85422         * m4/atexit.m4: New file.
85423
85424         Module strtod.
85425         * m4/strtod.m4: New file.
85426
85427         Module strtol.
85428         * m4/strtol.m4: New file.
85429
85430         Module strtoul.
85431         * m4/strtoul.m4: New file.
85432
85433         Module memchr.
85434         * m4/memchr.m4: New file.
85435
85436         Module memcmp.
85437         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85438         (jm_FUNC_MEMCMP): Invoke it.
85439
85440         Module memcpy.
85441         * m4/memcpy.m4: New file.
85442
85443         Module memmove.
85444         * m4/memmove.m4: New file.
85445
85446         Module memset.
85447         * m4/memset.m4: New file.
85448
85449         Module strcspn.
85450         * m4/strcspn.m4: New file.
85451
85452         Module strpbrk.
85453         * m4/strpbrk.m4: New file.
85454
85455         Module strstr.
85456         * m4/strstr.m4: New file.
85457
85458         Module strerror.
85459         * m4/strerror.m4: New file.
85460
85461         Module mktime.
85462         * m4/mktime.m4: Renamed from jm-mktime.m4.
85463         (gl_PREREQ_MKTIME): New macro.
85464         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85465
85466         Module malloc.
85467         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85468         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85469         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85470
85471         Module realloc.
85472         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85473         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85474         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85475
85476         Module strftime.
85477         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85478         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85479         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85480         gl_TM_GMTOFF.
85481         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85482
85483         Module xalloc.
85484         * m4/xalloc.m4: New file.
85485
85486         Module alloca.
85487         * m4/alloca.m4: New file.
85488
85489         Module putenv.
85490         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85491         (jm_FUNC_PUTENV): Invoke it.
85492
85493         Module setenv.
85494         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85495         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85496         when invoked twice.
85497         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85498         gt_FUNC_SETENV.
85499
85500         Module memrchr.
85501         * m4/memrchr.m4: New file.
85502
85503         Module stpcpy.
85504         * m4/stpcpy.m4: New file.
85505
85506         Module strcase.
85507         * m4/strcase.m4: New file.
85508
85509         Module strdup.
85510         * m4/strdup.m4: New file.
85511
85512         Module strnlen.
85513         * m4/strnlen.m4: New file.
85514
85515         Module strndup.
85516         * m4/strndup.m4: New file.
85517
85518         Module xstrtod.
85519         * m4/xstrtod.m4: New file.
85520
85521         Module xstrtol.
85522         * m4/xstrtol.m4: New file.
85523
85524         Module getdate.
85525         * m4/getdate.m4: New file.
85526
85527         Module unlocked-io.
85528         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85529         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85530         * m4/jm-glibc-io.m4n: Remove file.
85531
85532         Module long-options.
85533         * m4/long-options.m4: New file.
85534
85535         Module md5.
85536         * m4/md5.m4: New file.
85537
85538         Module sha.
85539         * m4/sha.m4: New file.
85540
85541         Module getstr.
85542         * m4/getstr.m4: New file.
85543
85544         Module getline.
85545         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85546         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85547         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85548         simply getline. Infoke gl_PREREQ_GETLINE.
85549
85550         Module obstack.
85551         * m4/obstack.m4: New file.
85552
85553         Module hash.
85554         * m4/hash.m4: New file.
85555
85556         Module readtokens.
85557         * m4/readtokens.m4: New file.
85558
85559         Module strverscmp.
85560         * m4/strverscmp.m4: New file.
85561
85562         Module stdbool.
85563         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85564         OSF/1.
85565
85566         Module strtoll.
85567         * m4/strtoll.m4: New file.
85568
85569         Module strtoull.
85570         * m4/strtoull.m4: New file.
85571
85572         Module strtoimax.
85573         * m4/strtoimax.m4: New file.
85574
85575         Module strtoumax.
85576         * m4/strtoumax.m4: New file.
85577
85578         Module xstrtoimax.
85579         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85580         jm_AC_PREREQ_XSTRTOIMAX.
85581         Moved the strtol prerequisites to strtol.m4.
85582         Moved the strtoll prerequisites to strtoll.m4.
85583         Moved the strtoimax prerequisites to strtoimax.m4.
85584
85585         Module xstrtoumax.
85586         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85587         jm_AC_PREREQ_XSTRTOUMAX.
85588         Moved the strtoul prerequisites to strtoul.m4.
85589         Moved the strtoull prerequisites to strtoull.m4.
85590         Moved the strtoumax prerequisites to strtoumax.m4.
85591
85592         Module chown.
85593         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85594         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85595
85596         Module dup2.
85597         * m4/dup2.m4: New file.
85598
85599         Module ftruncate.
85600         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85601         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85602
85603         Module getgroups.
85604         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85605         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85606
85607         Module gettimeofday.
85608         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85609         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85610         gl_PREREQ_GETTIMEOFDAY.
85611
85612         Module mkdir.
85613         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85614         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85615
85616         Module mkstemp.
85617         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85618         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85619         jm_AC_TYPE_UINTMAX_T.
85620         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85621
85622         Module stat.
85623         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85624         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85625
85626         Module lstat.
85627         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85628         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85629
85630         Module timespec.
85631         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85632         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85633         * m4/st_mtim.m4: Indentation.
85634
85635         Module nanosleep.
85636         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85637         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85638         gl_PREREQ_NANOSLEEP.
85639
85640         Module regex.
85641         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85642         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85643         (gl_REGEX): New macro.
85644
85645         Module rename.
85646         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85647         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85648
85649         Module rmdir.
85650         * m4/rmdir.m4: New file.
85651
85652         Module utime.
85653         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85654         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85655         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85656
85657         Module dirname.
85658         * m4/dirname.m4: New file.
85659
85660         Module getopt.
85661         * m4/getopt.m4: New file.
85662
85663         Module unistd-safer.
85664         * m4/unistd-safer.m4: New file.
85665
85666         Module fnmatch.
85667         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85668         declaration.
85669         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85670         (gl_FUNC_FNMATCH_POSIX): New macro.
85671         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85672         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85673         simply fnmatch.
85674
85675         Module exclude.
85676         * m4/exclude.m4: New file.
85677
85678         Module human.
85679         * m4/human.m4: New file.
85680
85681         Module acl.
85682         * m4/acl.m4: Nop.
85683
85684         Module backupfile.
85685         * m4/backupfile.m4: New file.
85686         * m4/d-ino.m4: Indentation.
85687
85688         Module fsusage.
85689         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85690         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85691         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85692
85693         Module dirfd.
85694         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85695         requirements.
85696
85697         Module euidaccess.
85698         * m4/euidaccess.m4: New file.
85699
85700         Module file-type.
85701         * m4/file-type.m4: New file.
85702
85703         Module fileblocks.
85704         * m4/fileblocks.m4: New file.
85705
85706         Module filemode.
85707         * m4/filemode.m4: New file.
85708
85709         Module isdir.
85710         * m4/isdir.m4: New file.
85711
85712         Module lchown.
85713         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85714         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85715
85716         Module makepath.
85717         * m4/makepath.m4: New file.
85718
85719         Module modechange.
85720         * m4/modechange.m4: New file.
85721
85722         Module mountlist.
85723         * m4/mountlist.m4: New file.
85724         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85725         Indentation.
85726
85727         Module path-concat.
85728         * m4/path-concat.m4: New file.
85729
85730         Module pathmax.
85731         * m4/pathmax.m4: New file.
85732
85733         Module same.
85734         * m4/same.m4: New file.
85735
85736         Module save-cwd.
85737         * m4/save-cwd.m4: New file.
85738
85739         Module savedir.
85740         * m4/savedir.m4: New file.
85741
85742         Module xgetcwd.
85743         * m4/xgetcwd.m4: New file.
85744         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85745
85746         Module xreadlink.
85747         * m4/xreadlink.m4: New file.
85748
85749         Module safe-read.
85750         * m4/safe-read.m4: New file.
85751
85752         Module safe-write.
85753         * m4/safe-write.m4: New file.
85754
85755         Module closeout.
85756         * m4/closeout.m4: New file.
85757
85758         Module stdio-safer.
85759         * m4/stdio-safer.m4: New file.
85760
85761         Module getpass.
85762         * m4/getpass.m4: New file.
85763
85764         Module getugroups.
85765         * m4/getugroups.m4: New file.
85766
85767         Module group-member.
85768         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85769         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85770
85771         Module idcache.
85772         * m4/idcache.m4: New file.
85773
85774         Module userspec.
85775         * m4/userspec.m4: New file.
85776
85777         Module gettime.
85778         * m4/clock_time.m4: New file.
85779         * m4/gettime.m4: New file.
85780
85781         Module settime.
85782         * m4/settime.m4: New file.
85783
85784         Module posixtm.
85785         * m4/posixtm.m4: New file.
85786
85787         Module gethostname.
85788         * m4/gethostname.m4: New file.
85789
85790         Module canon-host.
85791         * m4/canon-host.m4: New file.
85792
85793         Module gettext.
85794         * m4/codeset.m4: New file, from gettext-0.11.5.
85795         * m4/gettext.m4: New file, from gettext-0.11.5.
85796         * m4/glibc21.m4: New file, from gettext-0.11.5.
85797         * m4/iconv.m4: New file, from gettext-0.11.5.
85798         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85799         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85800         * m4/inttypes.m4: New file, from gettext-0.11.5.
85801         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85802         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85803         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85804         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85805         * m4/lib-link.m4: New file, from gettext-0.11.5.
85806         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85807         * m4/progtest.m4: New file, from gettext-0.11.5.
85808         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85809         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85810         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85811
85812         Module localcharset.
85813         * m4/localcharset.m4: New file.
85814
85815         Module hard-locale.
85816         * m4/hard-locale.m4: New file.
85817
85818         Module mbswidth.
85819         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85820         onceonly macros.
85821         * m4/mbrtowc.m4: Add comment.
85822
85823         Module memcasecmp.
85824         * m4/memcasecmp.m4: New file.
85825
85826         Module memcoll.
85827         * m4/memcoll.m4: New file.
85828
85829         Module unicodeio.
85830         * m4/unicodeio.m4: New file.
85831
85832         Module rpmatch.
85833         * m4/rpmatch.m4: New file.
85834
85835         Module yesno.
85836         * m4/yesno.m4: New file.
85837
85838         Module exitfail.
85839         * m4/exitfail.m4: New file.
85840
85841         Module c-stack.
85842         * m4/c-stack.m4 (gl_C_STACK): New macro.
85843         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85844
85845         Module error.
85846         * m4/error.m4 (gl_ERROR): New macro.
85847         (jm_PREREQ_ERROR): Use onceonly macros.
85848
85849         Module fatal.
85850         * m4/fatal.m4: New file.
85851
85852         Module getloadavg.
85853         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85854         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85855
85856         Module getpagesize.
85857         * m4/getpagesize.m4: New file.
85858
85859         Module getusershell.
85860         * m4/getusershell.m4: New file.
85861
85862         Module physmem.
85863         * m4/physmem.m4: New file.
85864
85865         Module posixver.
85866         * m4/posixver.m4: New file.
85867
85868         Module quotearg.
85869         * m4/quotearg.m4: New file.
85870
85871         Module quote.
85872         * m4/quote.m4: New file.
85873
85874         Module readutmp.
85875         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85876
85877         Module sig2str.
85878         * m4/sig2str.m4: New file.
85879
85880         Other.
85881         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85882         ulonglong.m4.
85883         * m4/intmax_t.m4: New file.
85884         * m4/d-type.m4: Indentation.
85885         * m4/jm-macros.m4: Update.
85886         * m4/prereq.m4 (jm_PREREQ): Update.
85887         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85888         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85889         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85890         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85891         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85892         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85893         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85894         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85895         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85896         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85897         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85898         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85899         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85900         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85901         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85902         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85903         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85904         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85905         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85906
85907 2002-12-24  Bruno Haible  <bruno@clisp.org>
85908
85909         * MODULES.txt: Update according to m4/ changes.
85910
85911         Module gettext.
85912         * config.rpath: New file, from gettext-0.11.5.
85913
85914         * modules/*: New module descriptions.
85915         * gnulib-tool: New file.
85916         * MODULES.html.sh: New file.
85917
85918 2002-12-21  Karl Berry  <karl@gnu.org>
85919
85920         * doc/fdl.texi: update to version 1.2.
85921
85922 2002-12-19  Karl Berry  <karl@gnu.org>
85923
85924         * config/config.guess: update from prep.
85925
85926 2002-12-18  Bruno Haible  <bruno@clisp.org>
85927
85928         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85929         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85930
85931 2002-12-17  Bruno Haible  <bruno@clisp.org>
85932
85933         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85934         stdlib.h, string.h.
85935
85936 2002-12-17  Bruno Haible  <bruno@clisp.org>
85937
85938         * lib/canon-host.c (strdup): Remove unused declaration.
85939
85940         * lib/fsusage.c: Include full_read.h.
85941         (get_fs_usage): Use full_read instead of safe_read.
85942
85943         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85944
85945 2002-12-12  Karl Berry  <karl@gnu.org>
85946
85947         * config/config.guess: update from prep.
85948
85949 2002-12-11  Bruno Haible  <bruno@clisp.org>
85950
85951         * m4/setenv.m4: New file, from gettext-0.11.5.
85952
85953 2002-12-11  Bruno Haible  <bruno@clisp.org>
85954
85955         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85956         not unsetenv().
85957         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85958         modifications:
85959
85960         2002-12-11  Bruno Haible  <bruno@clisp.org>
85961
85962                 * setenv.c (alloca): Fall back to malloc.
85963                 (freea): New macro.
85964                 (setenv): Use freea() to free memory allocated with alloca().
85965
85966         2002-11-13  Bruno Haible  <bruno@clisp.org>
85967
85968                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85969                 function declarations.
85970                 * unsetenv.c (unsetenv): Likewise.
85971
85972         2002-03-04  Bruno Haible  <bruno@clisp.org>
85973
85974                 Portability to AIX 4.3.3.
85975                 * unsetenv.c: New file, extracted from setenv.c.
85976                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85977
85978         2001-12-20  Bruno Haible  <bruno@clisp.org>
85979
85980                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85981                 use malloc instead. For SunOS 4.
85982
85983         2001-12-11  Bruno Haible  <bruno@clisp.org>
85984
85985                 * setenv.c: Declare alloca.
85986                 (compar_fn_t): New typedef.
85987                 (KNOWN_VALUE, STORE_VALUE): Use it.
85988
85989         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85990         setenv.h.
85991
85992 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85993
85994         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85995         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85996         Choose values that are less likely to collide with system fnmatch
85997         options.
85998         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85999         defined (e.g., a pure POSIX system).
86000         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86001         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86002
86003 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86004
86005         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86006         a pain in practice to deal with generated m4 files.  This change
86007         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86008
86009         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86010         and jm-glibc-io.m4, as they are no longer a special case.
86011         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86012         kludge and the auto-generation stuff.  Check only whether the
86013         functions are declared, not whether they exist, since older hosts
86014         that don't declare the functions can't use the optimization anyway.
86015
86016 2002-12-06  Jim Meyering  <jim@meyering.net>
86017
86018         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86019
86020         Merge in changes from libc's misc/error.c, in preparation
86021         for the merge of gnulib's changes back into libc.
86022
86023         * lib/error.c (_): Define only if not already defined.
86024         Move definition to follow all #include directives.
86025         Include unlocked-io.h only if !_LIBC.
86026         [_LIBC]: Include <libio/libioP.h>.
86027         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86028         (fflush): Tweak definition to use INTUSE.
86029         (putc): Define.
86030
86031 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86032
86033         * lib/alloca.c [defined emacs]: Include "lisp.h".
86034         (xalloc_die) [defined emacs]: New macro.
86035         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86036         [! defined emacs]: Include <xalloc.h>.
86037         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86038         (pointer): Typedef to POINTER_TYPE *.
86039         (malloc): Remove decl; we now always use xmalloc.
86040         (alloca): Use old-style definition, since Emacs needs this.
86041         Check for arithmetic overflow when computing combined size.
86042
86043 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86044
86045         Do not generate unlocked-io.h automatically, since it's easier to
86046         maintain it by hand.
86047
86048         * lib/unlocked-io.h: New file, from GNU diffutils,
86049         but with proper copyright notice and attribution.
86050         * lib/gen-uio: Remove.
86051         * lib/Makefile.am: Add copyright notice.
86052         (libfetish_a_SOURCES): Add unlocked-io.h.
86053         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86054         (DISTCLEANFILES, io_functions): Remove macros.
86055         (EXTRA_DIST): Remove gen_uio.
86056         (unlocked-io.h): Remove rule.
86057
86058 2002-12-04  Jim Meyering  <jim@meyering.net>
86059
86060         Reflect the fact that stat.c and lstat.c are no longer generated.
86061         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86062         (DISTCLEANFILES): Likewise.
86063         (EXTRA_DIST): Likewise.
86064         (all_local): Don't depend on stat.c or lstat.c.
86065         (stat.c, lstat.c): Remove rules.
86066         (EXTRA_DIST): Remove xstat.in.
86067
86068         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86069         * lib/stat.c: New file.  Contents mostly from xstat.in.
86070         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86071         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86072
86073         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86074         too.
86075         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86076
86077 2002-12-03  Jim Meyering  <jim@meyering.net>
86078
86079         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86080         but not semantics, to minimize the differences between these two files.
86081         (safe_read): Change comment to mention SAFE_READ_ERROR.
86082
86083         * lib/safe-read.c (IS_EINTR): Define.
86084         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86085
86086 2002-12-02  Jim Meyering  <jim@meyering.net>
86087
86088         * lib/safe-read.c (EINTR): Define.
86089         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86090         (INT_MAX): Provide fallback.
86091         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86092
86093         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86094
86095 2002-12-02  Bruno Haible  <bruno@clisp.org>
86096
86097         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86098         Define, taken from safe-read.c.
86099         (INT_MAX): Provide fallback.
86100         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86101         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86102
86103         * lib/safe-read.c (EINTR): Remove definition.
86104         (safe_read): Don't use EINTR if it is absent.
86105
86106 2002-12-01  Jim Meyering  <jim@meyering.net>
86107
86108         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86109         zero.
86110         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86111
86112 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86113
86114         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86115         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86116         with `if (! (value < limit)) abort ();', for readability.
86117
86118 2002-11-26  Karl Berry  <karl@gnu.org>
86119
86120         * lib/strdup.c: copy from libc again, with jim's ok.
86121         * lib/.cppi-disable: re-add strdup.c
86122
86123 2002-11-25  Karl Berry  <karl@gnu.org>
86124
86125         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86126         instead of "strtol.c".
86127
86128 2002-11-25  Karl Berry  <karl@gnu.org>
86129
86130         * config/install-sh: update from automake for variable quoting, $0 in
86131         error msgs, etc.
86132
86133         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86134         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86135         entry.
86136
86137 2002-11-25  Jim Meyering  <jim@meyering.net>
86138
86139         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86140
86141 2002-11-24  Karl Berry  <karl@gnu.org>
86142
86143         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86144         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86145
86146 2002-11-24  Jim Meyering  <jim@meyering.net>
86147
86148         Update from coreutils:
86149
86150         * lib/mktime.c: Merge in changes from libc.
86151
86152         Avoid a link-time failure on some Linux systems.
86153         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86154         (otherwise).
86155         (__mon_yday): Declare with the STATIC attribute.
86156         (__mktime_internal): Likewise.
86157         Based on a report from Greg Schafer.
86158
86159 2002-11-23  Jim Meyering  <jim@meyering.net>
86160
86161         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86162         Use `unsigned', not `int', as type of index.
86163
86164         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86165
86166         * lib/fsusage.c: Remove unneeded parentheses around operands of
86167         `defined'.
86168
86169 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86170
86171         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86172         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86173         so that we can be included first.
86174         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86175         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86176         No need to include stddef.h or sys/types.h any more.
86177         Surround local include files with "", not "<>".
86178         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86179         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86180         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86181         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86182         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86183         (ISPRINT): Remove; no longer needed now that we assume C89.
86184
86185         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86186         Preserve errno.
86187
86188         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86189         quotearg_char): Use SIZE_MAX rather than
86190         (size_t) -1 when we are talking about "infinity".
86191
86192         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86193
86194 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86195
86196         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86197         hint that one should use `if (! x) abort ();' rather than `assert
86198         (x);', and anyway it's one less thing to worry about configuring.
86199         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86200         hash_rehash, hash_insert): Use abort rather than assert.
86201
86202 2002-11-22  Bruno Haible  <bruno@clisp.org>
86203
86204         * lib/safe-read.h: Assume C89. Add comments.
86205         (safe_read): Change return type to size_t.
86206         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86207         byte counts > SSIZE_MAX correctly.
86208         * lib/safe-write.h: New file.
86209         * lib/safe-write.c: New file.
86210         * lib/full-read.h: New file.
86211         * lib/full-read.c: New file.
86212         * lib/full-write.h: Assume C89. Add comments.
86213         * lib/full-write.c: Include safe-write.h.
86214         (full_write): Rewritten to use safe_write.
86215         Suggested by Jim Meyering and Paul Eggert.
86216
86217 2002-11-21  Jim Meyering  <jim@meyering.net>
86218
86219         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86220
86221         Merge in changes from the coreutils.
86222
86223         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86224         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86225         <stdint.h>.
86226         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86227         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86228         int.  Work more efficiently if X is the same width as uintmax_t.
86229         Do not compare X to -1, to avoid bogus compiler warning.
86230         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86231         Don't assume that f_frsize and f_bsize are the same type.
86232
86233         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86234         warning on FreeBSD.
86235
86236         * lib/makepath.c (make_path): Restore umask *before* creating the final
86237         component.
86238         (make_path): Minor reformatting.
86239
86240         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86241         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86242         HAVE_MALLOC/HAVE_REALLOC.
86243
86244         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86245         dummy ones.  At least on GNU/Linux systems, `auto' means something
86246         else.
86247         From Michael Stone.
86248
86249 2002-11-21  Bruno Haible  <bruno@clisp.org>
86250
86251         Remove case insensitive option matching.
86252         * lib/argmatch.h (argcasematch): Remove declaration.
86253         (ARGCASEMATCH): Remove macro.
86254         (__xargmatch_internal): Remove case_sensitive argument.
86255         (XARGMATCH): Update.
86256         (XARGCASEMATCH): Remove macro.
86257         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86258         case_sensitive argument.
86259         (argcasematch): Remove function.
86260         (__xargmatch_internal): Remove case_sensitive argument.
86261         (main): Use XARGMATCH instead of XARGCASEMATCH.
86262
86263         * lib/xmalloc.c: Change compile-time error message. Add comment about
86264         required autoconf version.
86265
86266 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86267
86268         Merge argmatch cleanups from Bison.  Assume C89.
86269
86270         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86271         Include stdlib.h, for EXIT_FAILURE.
86272         Always include <string.h>, since we assume C89.
86273         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86274         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86275         Include <stddef.h> instead, since it's all we need for size_t.
86276         (PARAMS): Remove.  All uses removed.
86277         (ARRAY_CARDINALITY): Do not bother to #undef.
86278         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86279         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86280         Remove unnecessary parentheses.
86281         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86282         Insert necessary parentheses.
86283         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86284         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86285
86286 2002-11-19  Bruno Haible  <bruno@clisp.org>
86287
86288         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86289         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86290
86291         * lib/mbswidth.h (PARAMS): Remove macro.
86292         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86293         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86294
86295         * lib/gcd.h (PARAMS): Remove macro.
86296         (gcd): Use ANSI C function declarations.
86297         * lib/gcd.c (gcd): Likewise.
86298
86299 2002-11-15  Bruno Haible  <bruno@clisp.org>
86300
86301         * lib/strcspn.c: Include <stddef.h>.
86302         (strcspn): Use ANSI C function declaration. Change return type to
86303         size_t. Use NULL.
86304         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86305         (strpbrk): Use NULL.
86306         * lib/strpbrk.h (PARAMS): Remove macro.
86307         (strpbrk): Use ANSI C function declaration.
86308         * lib/strstr.c: Don't include <sys/types.h>.
86309         * lib/strstr.h (PARAMS): Remove macro.
86310         (strstr): Use ANSI C function declarations.
86311
86312 2002-11-14  Karl Berry  <karl@gnu.org>
86313
86314         * config/mkinstalldirs: `do' on separate line, instead of
86315         `for var; do'.
86316
86317 2002-11-06  Bruno Haible  <bruno@clisp.org>
86318
86319         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86320         * lib/gcd.c (gcd): Likewise.
86321
86322 2002-11-05  Bruno Haible  <bruno@clisp.org>
86323
86324         * lib/gcd.h: New file, from gettext-0.11.5.
86325         * lib/gcd.c: New file, from gettext-0.11.5.
86326
86327 2002-11-05  Bruno Haible  <bruno@clisp.org>
86328
86329         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86330         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86331         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86332         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86333
86334         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86335         <libintl.h>.
86336         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86337         <libintl.h>.
86338
86339         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86340         * lib/human.c: Include gettext.h instead of <libintl.h>.
86341         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86342         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86343         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86344         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86345         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86346         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86347         (textdomain): Remove definition.
86348         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86349
86350         * lib/long-options.c: Remove include of <libintl.h> and definition of
86351         _.
86352         * lib/same.c: Remove include of <libintl.h> and definition of _.
86353
86354 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86355
86356         * lib/config.charset: A few additions for Solaris.
86357
86358 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86359
86360         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86361         * lib/localcharset.c (locale_charset): Declare as extern "C".
86362
86363 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86364
86365         * lib/config.charset: msdos in uk_UA uses CP1125.
86366
86367 2002-11-04  Bruno Haible  <bruno@clisp.org>
86368
86369         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86370         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86371         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86372         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86373         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86374
86375 2002-11-04  Bruno Haible  <bruno@clisp.org>
86376
86377         * lib/localcharset.c (locale_charset): Don't return an empty string.
86378
86379 2002-11-04  Bruno Haible  <bruno@clisp.org>
86380
86381         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86382         aliases.
86383
86384 2002-11-04  Bruno Haible  <bruno@clisp.org>
86385
86386         * lib/config.charset: Update for newest glibc. Add canonical names
86387         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86388
86389 2002-11-04  Bruno Haible  <bruno@clisp.org>
86390
86391         * lib/config.charset: Add support for NetBSD.
86392
86393 2002-11-04  Bruno Haible  <bruno@clisp.org>
86394
86395         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86396
86397 2002-11-01  Bruno Haible  <bruno@clisp.org>
86398
86399         * configure.in: Add AC_CONFIG_AUX_DIR call.
86400         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86401         test/Makefile.
86402         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86403
86404 2002-09-28  Karl Berry  <karl@gnu.org>
86405
86406         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86407         installed automake until the next release, since changes have been
86408         made.
86409
86410 2002-09-25  Karl Berry  <karl@gnu.org>
86411
86412         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86413         * lib/getopt*: copy from libc/posix.
86414         * lib/gettext.h: copy from gettext.
86415         * lib/.cppi-disable: add strdup.c, gettext.h.
86416
86417 2002-09-25  Karl Berry  <karl@gnu.org>
86418
86419         * config/srclist.txt: enable gettext.h check.
86420         * config/config.{guess,sub}: update from prep.
86421         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86422                 from automake 1.6.3.
86423         See srclist*.
86424
86425 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86426
86427         * regex.c (PATFETCH): Remove the translating fetch.
86428         (PATFETCH_RAW): Rename to PATFETCH.
86429         (set_image_of_range): New fun.
86430         (SET_RANGE_TABLE_WORK_AREA): Use it.
86431         (regex_compile): Don't translate the pattern chars so eagerly.
86432         Only do it when inserting an `exactn' bytecode or when handling
86433         a char-range.
86434         (mutually_exclusive_p): Avoid empty statement.
86435
86436 2002-07-06  Jim Meyering  <meyering@lucent.com>
86437
86438         * m4/README: Don't mention Makefile.am.in.
86439         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86440
86441 2002-07-01  Jim Meyering  <meyering@lucent.com>
86442
86443         * lib/c-stack.c: Include sys/time.h.
86444         From Volker Borchert.
86445
86446 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86447
86448         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86449
86450 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86451
86452         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86453         New macro.  Use it uniformly instead of
86454         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86455         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86456         reported by Vin Shelton.
86457
86458 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86459
86460         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86461         Do not assume SA_SIGINFO behavior.
86462         Bug reported by Jim Meyering on NetBSD 1.5.2.
86463
86464 2002-06-22  Jim Meyering  <meyering@lucent.com>
86465
86466         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86467         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86468
86469         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86470         now that configure.ac uses AC_GNU_SOURCE.
86471         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86472         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86473
86474         Update to latest tools.  Suggestions from Paul Eggert.
86475         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86476         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86477         * m4/fnmatch.m4: Likewise.
86478         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86479         to AC_HEADER_STDBOOL
86480
86481 2002-06-22  Jim Meyering  <meyering@lucent.com>
86482
86483         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86484         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86485
86486 2002-06-22  Jim Meyering  <meyering@lucent.com>
86487
86488         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86489
86490         * lib/exitfail.c, exitfail.h: Likewise.
86491         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86492
86493         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86494         of fnmatch.h.
86495         (EXTRA_DIST): Add fnmatch_loop.c.
86496         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86497
86498         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86499         * lib/fnmatch.c: Update from diffutils-2.8.2.
86500         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86501         * lib/fnmatch.h: Remove file.
86502
86503 2002-06-21  Jim Meyering  <meyering@lucent.com>
86504
86505         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86506         * m4/mbrtowc.m4: Likewise.
86507
86508         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86509         * m4/mbswidth.m4: Reflect name change:
86510         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86511         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86512
86513         * m4/lib-link.m4: Update from gettext-0.11.2.
86514         * m4/gettext.m4: Likewise.
86515
86516         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86517         From Alfred M. Szmidt.
86518
86519 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86520
86521         * lib/file-type.h: Report an error if neither S_ISREG nor
86522         S_IFREG is defined, instead of using a test specific to glibc
86523         2.2.  This should be safe, since POSIX requires S_ISREG and
86524         Unix Version 7 had S_IFREG.  We don't need to check for
86525         <sys/types.h> since we don't use any symbols that it defines.
86526
86527 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86528
86529         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86530         $@-t, so that each temporary file name is unique and valid in the first
86531         8 characters, for operation under DOS.
86532
86533 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86534
86535         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86536
86537 2002-06-15  Jim Meyering  <meyering@lucent.com>
86538
86539         Work even with DJGPP 2.03, which lacks support for symlinks.
86540         From Richard Dawe.
86541         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86542         is defined.
86543         * lib/lchown.c (S_ISLNK): Likewise.
86544
86545 2002-06-15  Jim Meyering  <meyering@lucent.com>
86546
86547         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86548         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86549         have been included before this file.
86550
86551 2002-06-14  Jim Meyering  <meyering@lucent.com>
86552
86553         * lib/file-type.h: Use the version from diffutils-2.8.2.
86554         * lib/file-type.c: Likewise.
86555
86556 2002-06-07  Jim Meyering  <meyering@lucent.com>
86557
86558         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86559         They're needed at least for NetBSD 1.5.2.
86560         ($statxfs_includes): Include those same headers.
86561         ($statxfs_includes): Include sys/vfs.h if available.
86562         ($statxfs_includes): Likewise for sys/statvfs.h.
86563         Check for the following members in both structs statfs and statvfs:
86564         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86565
86566 2002-06-01  Jim Meyering  <meyering@lucent.com>
86567
86568         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86569         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86570
86571 2002-05-28  Jim Meyering  <meyering@lucent.com>
86572
86573         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86574         Reported by Volker Borchert.
86575
86576 2002-05-27  Jim Meyering  <meyering@lucent.com>
86577
86578         Fix a problem seen only on nonconforming systems whereby ls.c's
86579         use of localtime, and then of gettimeofday would cause trouble:
86580         the localtime call used to initialize rpl_gettimeofday's save
86581         mechanism would clobber ls's current local time information so
86582         that in any long listing the first file would always be listed
86583         with date 1970-01-01.  Analysis by Volker Borchert.
86584
86585         * lib/gettimeofday.c (localtime): Undefine.
86586         (rpl_localtime): New function.
86587
86588 2002-05-27  Jim Meyering  <meyering@lucent.com>
86589
86590         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86591         localtime.
86592
86593         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86594         use the replacement function; it wouldn't resolve at link time.
86595         Reported by Volker Borchert.
86596
86597 2002-05-22  Jim Meyering  <meyering@lucent.com>
86598
86599         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86600         file-type.h.
86601         * lib/file-type.h: New file.
86602         * lib/file-type.c (file_type): New file/function.  Extracted from
86603         diffutils.
86604
86605 2002-04-30  Jim Meyering  <meyering@lucent.com>
86606
86607         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86608
86609 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86610
86611         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86612
86613 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86614
86615         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86616         Do not check for alloca.h (no longer used) or stdbool.h (was never
86617         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86618
86619 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86620
86621         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86622
86623 2002-04-29  Jim Meyering  <meyering@lucent.com>
86624
86625         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86626         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86627         Use AC_FUNC_STRNLEN here instead.
86628
86629         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86630         With autoconf-2.53a, it's part of AC_PROG_CC.
86631
86632 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86633
86634         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86635         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86636
86637 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86638
86639         * lib/sig2str.h, lib/sig2str.c: New files.
86640         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86641
86642 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86643
86644         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86645         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86646         of 127, since 64 is the largest conceivable number for ancient
86647         nonstandard hosts.
86648         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86649
86650 2002-04-28  Jim Meyering  <meyering@lucent.com>
86651
86652         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86653
86654 2002-04-24  Jim Meyering  <meyering@lucent.com>
86655
86656         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86657         (jm_PREREQ): Use it.
86658
86659         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86660         mach/mach.h fcntl.h.
86661         Check for this function: setlocale.
86662
86663 2002-04-24  Jim Meyering  <meyering@lucent.com>
86664
86665         * lib/gettext.h: New file, from Gettext.
86666         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86667         (libfetish_a_SOURCES): Add gettext.h.
86668
86669 2002-04-16  Jim Meyering  <meyering@lucent.com>
86670
86671         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86672         ut_pid, ut_id, ut_exit.
86673
86674 2002-04-16  Jim Meyering  <meyering@lucent.com>
86675
86676         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86677         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86678         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86679
86680 2002-04-12  Jim Meyering  <meyering@lucent.com>
86681
86682         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86683         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86684         existence of the getmntinfo function.  Needed for Darwin 5.3.
86685
86686         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86687         This is necessary at least on Darwin 5.3.
86688
86689         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86690         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86691         strnlen.o in the library, and that makes some versions of ranlib
86692         object.
86693
86694 2002-04-12  Jim Meyering  <meyering@lucent.com>
86695
86696         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86697
86698 2002-04-09  Jim Meyering  <meyering@lucent.com>
86699
86700         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86701         to be more precise.  Rather than saying we're checking whether the
86702         function `works', say what we're testing.
86703         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86704         Reported by Bruno Haible.
86705
86706 2002-03-10  Jim Meyering  <meyering@lucent.com>
86707
86708         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86709         Suggestion from Santiago Vila.
86710
86711 2002-03-08  Jim Meyering  <meyering@lucent.com>
86712
86713         * lib/rename.c: Mention that this wrapper is needed also on
86714         mips-dec-ultrix4.4 systems.
86715
86716 2002-03-02  Jim Meyering  <meyering@lucent.com>
86717
86718         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86719         not HAVE_CLOCK_SETTIME.
86720
86721 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86722
86723         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86724         Check for clock_settime.
86725
86726 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86727
86728         * lib/nanosleep.h: Rename to....
86729         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86730
86731         * lib/gettime.c: New file.
86732         * lib/settime.c: New file.
86733         * lib/stime.c: Remove.
86734
86735         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86736         timespec.h.  Remove nanosleep.h.
86737
86738 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86739
86740         * m4/acl.m4: New file.
86741         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86742         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86743
86744 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86745
86746         * lib/acl.c, lib/acl.h: New files.
86747         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86748
86749 2002-02-24  Jim Meyering  <meyering@lucent.com>
86750
86751         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86752         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86753         cause trouble.  Reported by Nelson Beebe.
86754
86755 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86756
86757         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86758         compilers that don't know that xalloc_die never returns.
86759
86760 2002-02-20  Jim Meyering  <meyering@lucent.com>
86761
86762         * lib/getdate.c: Regenerate using bison-1.33.
86763
86764 2002-02-17  Jim Meyering  <meyering@lucent.com>
86765
86766         * config/config.guess (main): Don't use `head -1'; it's no longer
86767         portable. Use `sed 1q' instead.
86768
86769 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86770
86771         * m4/codeset.m4: Upgrade to gettext-0.11.
86772         * m4/gettext.m4: Upgrade to gettext-0.11.
86773         * m4/glibc21.m4: Upgrade to gettext-0.11.
86774         * m4/iconv.m4: Upgrade to gettext-0.11.
86775         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86776         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86777         * m4/lib-ld.m4: New file, from gettext-0.11.
86778         * m4/lib-link.m4: New file, from gettext-0.11.
86779         * m4/lib-prefix.m4: New file, from gettext-0.11.
86780         * m4/progtest.m4: Upgrade to gettext-0.11.
86781
86782 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86783
86784         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86785         (jm_PREREQ): Use it.
86786
86787 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86788
86789         * lib/posixver.c, lib/posixver.h: New files.
86790         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86791
86792 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86793             Bruno Haible  <bruno@clisp.org>
86794
86795         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86796         (fwrite_success_callback): New declaration.
86797         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86798         print_unicode_char. Call failure callback instead of error.
86799         (fwrite_success_callback): New function.
86800         (exit_failure_callback): New function.
86801         (fallback_failure_callback): New function.
86802         (print_unicode_char): Call unicode_to_mb.
86803
86804 2002-01-26  Jim Meyering  <meyering@lucent.com>
86805
86806         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86807         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86808
86809 2002-01-26  Jim Meyering  <meyering@lucent.com>
86810
86811         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86812
86813 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86814
86815         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86816
86817 2002-01-22  Jim Meyering  <meyering@lucent.com>
86818
86819         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86820         Otherwise, some versions of automake would omit the rule that makes
86821         Makefile from Makefile.in.
86822
86823 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86824
86825         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86826         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86827         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86828         (memcoll): Set errno to zero if there is no error.
86829
86830         * lib/quotearg.c (quotearg_buffer_restyled):
86831         Fix bug with quoting buffers containing NUL when backslashing escapes.
86832         This bug was exposed by the other changes in this patch.
86833         (quotearg_n_options): New arg ARGSIZE.
86834         All callers changed.
86835         (quoting_options_from_style): New function.
86836         (quotearg_n_style): Use it.
86837         (quotearg_n_style_mem): New function.
86838
86839         * lib/quotearg.h (quotearg_n_style_mem): New function.
86840
86841 2002-01-19  Jim Meyering  <meyering@lucent.com>
86842
86843         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86844         Remove useless quotes: DF_PROG="df".
86845         * m4/strnlen.m4: New file.
86846
86847 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86848
86849         * lib/backupfile.c (ISDIGIT): Comment fix.
86850         * lib/getdate.y (ISDIGIT): Likewise.
86851         * lib/posixtm.c (ISDIGIT, year): Likewise.
86852         * lib/strverscmp.c (ISDIGIT): Likewise.
86853         * lib/userspec.c (ISDIGIT): Likewise.
86854
86855 2002-01-16  Jim Meyering  <meyering@lucent.com>
86856
86857         * lib/getdate.y: Add three semicolons, each just before a closing
86858         brace. Bison (as of version 1.31) no longer papers over that mistake.
86859
86860 2002-01-05  Jim Meyering  <meyering@lucent.com>
86861
86862         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86863
86864 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86865
86866         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86867         not silently exit merely because the output buffer happens to
86868         have nothing pending.
86869
86870 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86871
86872         See the big note in ../ChangeLog.
86873         * lib/human.c (suffixes): Prefer K to k for 1024.
86874         (generate_suffix_backwards): New function.
86875         (human_readable_inexact): Use it.
86876         * lib/xstrtol.c (__xstrtol): If there is no number but there
86877         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86878         Accept 'K' as well as 'k'.
86879
86880 2001-12-15  Jim Meyering  <meyering@lucent.com>
86881
86882         * lib/regex.h (__restrict_arr): Update from libc.
86883
86884         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86885         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86886         (STREQ): Define.
86887
86888 2001-12-14  Jim Meyering  <meyering@lucent.com>
86889
86890         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86891         Suggestion from Bruno Haible.
86892
86893 2001-12-10  Jim Meyering  <meyering@lucent.com>
86894
86895         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86896         xrealloc, Instead, include "xalloc.h".
86897         (initbuffer): Don't cast xmalloc return value to char*.
86898         (readline): Reword comment.
86899         Don't cast xrealloc return value to char*
86900         Return NULL, not 0.
86901
86902 2001-12-09  Jim Meyering  <meyering@lucent.com>
86903
86904         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86905         about `signed and unsigned type in conditional expression'.
86906         * lib/posixtm.c (posix_time_parse): Likewise.
86907
86908         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86909
86910         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86911         to avoid a pedantic warning.
86912
86913         * lib/getstr.c: Don't include assert.h.
86914         (getstr): Remove warning-evoking assertions.
86915         Return -1 if offset parameter is out of bounds.
86916         Change the type of a local from int to size_t.
86917
86918         * lib/strftime.c (my_strftime_localtime_r): Include this function
86919         definition in the `#if ! HAVE_TM_GMTOFF' block.
86920
86921         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86922         Include xalloc.h instead.
86923
86924 2001-12-02  Jim Meyering  <meyering@lucent.com>
86925
86926         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86927         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86928         included.
86929
86930         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86931         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86932
86933 2001-11-30  Akim Demaille  <akim@epita.fr>
86934
86935         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86936         before being defined.
86937
86938 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86939
86940         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86941         First arg is int, not unsigned.
86942         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86943         (SIZE_MAX, UINT_MAX): New macros.
86944         (quotearg_n_options): Abort if N is negative.
86945         Avoid overflow check on hosts where size_t is 64 bits and int
86946         is 32 bits, as overflow is impossible there.
86947         Fix off-by-one typo that caused unnecessary reallocation.
86948
86949 2001-11-27  Jim Meyering  <meyering@lucent.com>
86950
86951         * lib/tempname.c: Merge with version from libc.
86952         * lib/regex.c: Likewise.
86953
86954         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86955         systems for which STDC_HEADERS is 0, it was not included, resulting in
86956         a warning about an integer-to-pointer conversion problem with getenv.
86957         Reported by Volker Borchert.
86958
86959 2001-11-26  Jim Meyering  <meyering@lucent.com>
86960
86961         * lib/gtod.h: Remove file.
86962         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86963         * lib/gettimeofday.c: Don't include gtod.h.
86964         (GTOD_init): Remove function.
86965         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86966         Suggestion from Volker Borchert.
86967
86968 2001-11-23  Jim Meyering  <meyering@lucent.com>
86969
86970         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86971         it.
86972         * lib/hash.c (struct hash_table): Define it here instead.
86973
86974 2001-11-22  Jim Meyering  <meyering@lucent.com>
86975
86976         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86977
86978 2001-11-20  Jim Meyering  <meyering@lucent.com>
86979
86980         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86981         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86982
86983 2001-11-19  Jim Meyering  <meyering@lucent.com>
86984
86985         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86986         directory.  Use "conftestXXXXXX" as the template.
86987         Suggestion from Paul Eggert.
86988
86989         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86990         immediately, so the test doesn't mistakenly hit the max-open-files
86991         limit.
86992
86993 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86994
86995         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86996         (TEMPORARIES): New macro.
86997         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86998         removes an artificial limitation (e.g. HP-UX 10.20, where
86999         TMP_MAX is 17576).
87000
87001 2001-11-18  Jim Meyering  <meyering@lucent.com>
87002
87003         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87004
87005 2001-11-18  Jim Meyering  <meyering@lucent.com>
87006
87007         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87008         on SunOS 4.
87009
87010         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87011         files will be created before anything else.
87012
87013 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87014
87015         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87016         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87017
87018 2001-11-17  Jim Meyering  <meyering@lucent.com>
87019
87020         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87021         Prompted by a report from Bob Proulx.
87022
87023         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87024         Instead, require UTILS_FUNC_MKSTEMP.
87025
87026 2001-11-17  Jim Meyering  <meyering@lucent.com>
87027
87028         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87029         Now, that's done as part of AC_FUNC_STRTOD.
87030
87031 2001-11-17  Jim Meyering  <meyering@lucent.com>
87032
87033         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87034         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87035         rather than group writable.  Patch by Juan F. Codagnone.
87036
87037         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87038         xrealloc, Instead, include "xalloc.h".
87039
87040         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87041         Remove explicit declarations of xmalloc, xrealloc,
87042         and xstrdup.  Instead, include "xalloc.h".
87043
87044         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87045         unlocked-io.h.
87046         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87047         Likewise.
87048         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87049
87050         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87051         Reported by Padraig Brady.
87052
87053         * lib/mkstemp.c: #undef mkstemp.
87054         Include config.h.
87055         (rpl_mkstemp): Rename from mkstemp.
87056         Protoize.
87057
87058 2001-11-16  Jim Meyering  <meyering@lucent.com>
87059
87060         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87061         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87062         determine the amount of total physical memory, use pstat_getstatic.
87063         HPUX-11 doesn't define _SC_PHYS_PAGES.
87064         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87065         If sysconf couldn't be used to determine the amount of available
87066         physical memory, use both pstat_getstatic and pstat_getdynamic.
87067         Based on a patch from Bob Proulx.
87068
87069 2001-11-10  Jim Meyering  <meyering@lucent.com>
87070
87071         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87072         (jm_PREREQ): Use it.
87073
87074 2001-11-09  Jim Meyering  <meyering@lucent.com>
87075
87076         * m4/jm-macros.m4: Require autoconf-2.52f.
87077         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87078         Use these AC_-prefixed names, not the AM_-prefixed ones.
87079
87080         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87081
87082 2001-11-05  Jim Meyering  <meyering@lucent.com>
87083
87084         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87085
87086 2001-11-04  Jim Meyering  <meyering@lucent.com>
87087
87088         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87089         $DEFS.
87090
87091 2001-11-03  Jim Meyering  <meyering@lucent.com>
87092
87093         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87094         of AC_DEFUN.
87095
87096         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87097         know the name of the variable in the macro definition.
87098
87099 2001-11-03  Jim Meyering  <meyering@lucent.com>
87100
87101         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87102         in argmatch_to_argument call.
87103
87104         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87105         argument.
87106
87107         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87108         e.g., a fault due to an attempt to free a NULL pointer.
87109
87110 2001-11-01  Jim Meyering  <meyering@lucent.com>
87111
87112         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87113         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87114
87115 2001-11-01  Jim Meyering  <meyering@lucent.com>
87116
87117         * lib/dirfd.c, lib/dirfd.h: New files.
87118         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87119
87120         * lib/hash.c (hash_print) [TESTING]: Clean up.
87121
87122 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87123
87124         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87125         to avoid a warning if -Wall.
87126
87127 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87128
87129         * README: New file
87130         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87131         (per RMS's instructions, this is now the canonical source)
87132         * lgpl/, gpl/: New directories.
87133
87134 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87135
87136         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87137
87138 2001-10-21  Jim Meyering  <meyering@lucent.com>
87139
87140         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87141         this code would end up calling gettext even in packages built
87142         with --disable-nls.
87143         * lib/getopt.c (_): Likewise.
87144         * lib/regex.c (_): Likewise.
87145
87146 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87147
87148         * m4/error.m4 (jm_PREREQ_ERROR):
87149         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87150         AC_FUNC_STRERROR_R does that.
87151         Check for strerror declaration.
87152
87153         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87154         are supposed to have them these days.
87155         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87156         Merge changes from latest Autoconf CVS.
87157         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87158         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87159         POSIX decided to standardize on the int flavor of strerror_r.
87160
87161 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87162
87163         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87164         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87165         Use strerror_r that is only a macro, even if it is not a function.
87166         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87167         (private_strerror): Use prototypes, not old-style function definition.
87168         (print_errno_message): New function.
87169         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87170         char*-flavored one.
87171         (error_tail, error, error_at_line): Use it.
87172
87173 2001-10-11  Jim Meyering  <meyering@lucent.com>
87174
87175         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87176         and quote_n (1, ... to avoid clobbering a buffer.
87177
87178 2001-10-05  Jim Meyering  <meyering@lucent.com>
87179
87180         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87181         hash-pjw.h.
87182         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87183         * lib/hash-pjw.h: New file.
87184
87185 2001-09-30  Jim Meyering  <meyering@lucent.com>
87186
87187         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87188         `struct fsstat' has the `f_fstypename' member.
87189         Use that to define FS_TYPE, which is now used to make
87190         the getfsstat link test tighter.
87191
87192 2001-09-30  Jim Meyering  <meyering@lucent.com>
87193
87194         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87195         Include <sys/ucred.h>, for Apple Darwin.
87196         Include sys/mount.h and sys/fs_types.h only if available.
87197         (FS_TYPE): Define.
87198         (read_filesystem_list): Use FS_TYPE.
87199
87200 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87201
87202         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87203         a boolean context.
87204
87205 2001-09-29  Jim Meyering  <meyering@lucent.com>
87206
87207         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87208         [one-argument getmntent function]): Include stdio.h before mntent.h.
87209         SunOS 4.1.x needs it for the declaration of `FILE'.
87210         Patch by Volker Borchert.
87211
87212         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87213         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87214         sys/fs_types.h, and make the link-test for getfsstat guard #include
87215         directives with appropriate #if HAVE_*_H tests so that we can
87216         detect getfsstat on Apple Darwin1.3.7 systems.
87217         Reported by Nelson Beebe.
87218         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87219
87220 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87221
87222         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87223         #defines strtoimax.  Also treat the other strto* functions
87224         like strtoimax.
87225
87226         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87227         Check for strtoul and strtoumax,
87228         as those declarations are made even in the signed case.
87229         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87230         Likewise, for strtol and strtoimax.
87231
87232 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87233
87234         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87235         #defines strtoimax.  Also treat the other strto* functions
87236         like strtoimax.
87237
87238         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87239         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87240         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87241
87242 2001-09-26  Jim Meyering  <meyering@lucent.com>
87243
87244         Most macros in unlocked-io.h had the wrong number of arguments.
87245         * lib/gen-uio: New script.
87246         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87247         * lib/unlocked-io.hin: Remove file.
87248         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87249         rather than trying to embed it here.
87250         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87251         Reported by Padraig Brady.
87252
87253 2001-09-25  Volker Borchert  <bt@teknon.de>
87254
87255         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87256         `result'.
87257
87258 2001-09-24  Jim Meyering  <meyering@lucent.com>
87259
87260         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87261
87262 2001-09-23  Jim Meyering  <meyering@lucent.com>
87263
87264         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87265         instead of the mere test for existence of mntent.h.  The latter
87266         would get a false-positive on AIX 3.4 systems.
87267         In the outer getmntent if-block, don't die if neither of the getmntent
87268         tests succeeds.  Instead, just fall through and continue with the
87269         remaining tests.
87270
87271 2001-09-23  Jim Meyering  <meyering@lucent.com>
87272
87273         * lib/mountlist.c: Remove useless parentheses in #if directives.
87274         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87275         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87276
87277 2001-09-22  Jim Meyering  <meyering@lucent.com>
87278
87279         * m4/gettext.m4: New file.  From gettext.
87280         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87281         * m4/progtest.m4: Likewise
87282         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87283         * m4/glibc21.m4: Likewise.
87284
87285         * m4/libintl.m4: Remove.  No longer used.
87286
87287 2001-09-22  Jim Meyering  <meyering@lucent.com>
87288
87289         * lib/localcharset.c: Update from latest gettext.
87290         * lib/config.charset: Likewise.
87291
87292 2001-09-20  Jim Meyering  <meyering@lucent.com>
87293
87294         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87295         strtoimax.
87296         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87297         strtoumax.
87298
87299 2001-09-20  Jim Meyering  <meyering@lucent.com>
87300
87301         * lib/xstrtol.c (strtoimax): Guard declaration with
87302         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87303         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87304         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87305         (strtoumax): Likewise, for completeness (it wasn't necessary).
87306
87307 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87308
87309         * lib/strtoimax.c (HAVE_LONG_LONG):
87310         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87311         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87312         to work around bug in IBM C compiler.
87313
87314 2001-09-17  Jim Meyering  <meyering@lucent.com>
87315
87316         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87317         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87318         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87319         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87320         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87321         whenever the right hand side need not be expanded by the shell.
87322
87323 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87324
87325         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87326         library.  It's not correct, as some older glibcs are buggy.
87327         fnmatch wasn't fixed until glibc 2.2.
87328
87329         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87330         special shell magic here.
87331
87332 2001-09-16  Jim Meyering  <meyering@lucent.com>
87333
87334         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87335         * m4/jm-macros.m4: Require it.
87336
87337 2001-09-16  Jim Meyering  <meyering@lucent.com>
87338
87339         * lib/mkdir.c: New file.
87340
87341 2001-09-15  Jim Meyering  <meyering@lucent.com>
87342
87343         * m4/jm-macros.m4: Check for help2man.
87344
87345 2001-09-11  Jim Meyering  <meyering@lucent.com>
87346
87347         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87348         The body, by Paul Eggert, was moved here from configure.in.
87349         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87350
87351 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87352
87353         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87354         (jm_PREREQ): Use it.
87355
87356 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87357
87358         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87359         Use ssize_t, not int, to store result of readlink.
87360         Check for ssize_t overflow as well as size_t overflow,
87361         as POSIX says the result of readlink is implementation-defined
87362         when ssize_t overflows.
87363         Remove unnecessary cast to char*.
87364         Use free+malloc instead of realloc, as the storage doesn't need
87365         to be preserved and it's clearer and can be more efficient that way.
87366         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87367         * lib/xreadlink.h (xreadlink): Update prototype.
87368
87369 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87370
87371         * lib/xgetcwd.c: Revert some of the previous change; intead,
87372         fix the HAVE_GETCWD_NULL code to behave more like the
87373         !HAVE_GETCWD_NULL code used to.
87374
87375         Include "xalloc.h".
87376         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87377         invoke xalloc_die.
87378
87379 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87380
87381         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87382         sys/param.h, as pathmax.h includes them.
87383
87384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87385
87386         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87387         (jm_PREREQ_XGETCWD): New macro.
87388
87389         * m4/getcwd.m4: New file.
87390
87391 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87392
87393         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87394         like the HAVE_GETCWD_NULL code.
87395         Include pathmax.h if not HAVE_GETCWD.
87396         Do not include xalloc.h.
87397         (INITIAL_BUFFER_SIZE): New symbol.
87398         Do not use xmalloc / xrealloc, since the caller is responsible for
87399         handling errors.  Preserve errno around `free' during failure.
87400         Do not overrun buffer when using getwd.
87401
87402 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87403
87404         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87405         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87406         getcwd (NULL, 0).
87407
87408 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87409
87410         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87411         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87412         spotted by Jim Meyering.
87413
87414 2001-09-03  Jim Meyering  <meyering@lucent.com>
87415
87416         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87417         failure.
87418
87419 2001-09-02  Jim Meyering  <meyering@lucent.com>
87420
87421         * lib/error.c: Update from GNU libc.
87422
87423 2001-09-01  Jim Meyering  <meyering@lucent.com>
87424
87425         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87426         Used by df.
87427
87428 2001-09-01  Jim Meyering  <meyering@lucent.com>
87429
87430         * lib/xreadlink.c: New file.
87431         * lib/xreadlink.h: New file.
87432         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87433         xreadlink.h.
87434
87435         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87436         doesn't conflict with sparc Solaris 7's definition in
87437         /usr/include/sys/int_types.h.
87438
87439         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87440         files.
87441         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87442         and strncasecmp as r-values.  Unixware didn't have declarations.
87443
87444 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87445
87446         * lib/xstrtol.h: Add copyright notice.
87447         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87448         LONGINT_INVALID_SUFFIX_CHAR.
87449
87450 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87451
87452         * lib/xstrtol.c (strtoimax): New decl.
87453
87454 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87455
87456         * lib/xgetcwd.c: Don't include pathmax.h.
87457         Include stdlib.h and unistd.h if available.
87458         Include xalloc.h.
87459         (xmalloc, xstrdup, free): Remove decls.
87460         (xgetcwd): Don't assume sizes fit in unsigned.
87461         Check for overflow when computing sizes.
87462         Simplify reallocation code.
87463
87464 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87465
87466         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87467         a directory's st_size can have an arbitrary value, so the old
87468         usage could waste an arbitrary amount of memory.  All uses
87469         changed.
87470         * lib/savedir.h: Update prototype.
87471
87472 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87473
87474         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87475
87476         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87477         old strtoimax.c.
87478
87479         Also, make the following further changes to make this file's
87480         configuration more similar to that of strtol.c:
87481         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87482         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87483         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87484         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87485         changed to signed values.
87486
87487         And make the following changes as well:
87488         Fix copyright notice, as 1999 was missing.
87489         (verify): New macro.
87490         (strtoimax): Check sizes at compile-time, not run-time.
87491         Prefer strtol to strtoll if both work.
87492         (main): Remove; it was not that useful and was a pain to maintain.
87493
87494         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87495
87496 2001-08-31  Jim Meyering  <meyering@lucent.com>
87497
87498         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87499         Use an initial, malloc'd, buffer of length 128 rather than
87500         a statically allocated one of length 1024.
87501
87502 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87503
87504         Simplify code, partly by assuming autoconf 2.52 semantics.
87505
87506         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87507
87508         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87509         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87510         All uses removed.
87511         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87512         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87513         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87514         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87515         jm_AC_HEADER_INTTYPES_H.
87516         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87517
87518         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87519
87520         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87521         Quote first arg of AC_DEFUN.
87522         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87523         since they are needed to parse the include file even if we need
87524         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87525         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87526         but with opposite signedness.
87527
87528 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87529
87530         Merge 'exclude' changes from tar 1.13.22.
87531         This fixes one or two unlikely storage allocation overflow bugs,
87532         but doesn't change user-visible behavior otherwise.
87533
87534 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87535
87536         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87537         (jm_PREREQ_EXCLUDE): New macro.
87538
87539 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87540
87541         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87542         tm to be declared.
87543
87544 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87545
87546         * lib/hash.c: Remove '2001' from copyright notice.
87547
87548 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87549
87550         * lib/full-write.h: New file.
87551         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87552         * lib/full-write.c: Correct credits, as cccp.c no longer
87553         exists and anyway it was so heavily changed from the old cccp
87554         code as to be unrecognizable.  Include full-write.h.
87555         (full_write): Return size_t, with short writes meaning failure.
87556         All callers changed.  This fixes a bug with large buffers
87557         on 64-bit hosts.
87558         * lib/utime.c: Include full-write.h.
87559
87560 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87561
87562         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87563         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87564         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87565         Include if available.
87566         (<xalloc.h>): Include
87567         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87568         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87569         collide with FNM macros.
87570         (struct patopts): New struct.
87571         (struct exclude): Use it, as exclude patterns now come with options.
87572         (new_exclude): Support above changes.
87573         (new_exclude, add_exclude_file):
87574         Initial size must now be a power of two to simplify overflow checking.
87575         (free_exclude, fnmatch_no_wildcards): New function.
87576         (excluded_filename): No longer requires options arg, as the options
87577         are determined by add_exclude.  Now returns bool, not int.
87578         (excluded_filename, add_exclude):
87579         Add support for the fancy new exclusion options.
87580         (add_exclude, add_exclude_file): Now takes int options arg.
87581         Check for arithmetic overflow when computing sizes.
87582         (add_exclude_file): xrealloc might modify errno, so don't
87583         realloc until after errno might be used.
87584
87585         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87586         New macros.
87587         (free_exclude): New decl.
87588         (add_exclude, add_exclude_file): Now takes int options arg.
87589         (excluded_filename): No longer requires options arg, as the options
87590         are determined by add_exclude.  Now returns bool, not int.
87591
87592 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87593
87594         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87595
87596 2001-08-27  Jim Meyering  <meyering@lucent.com>
87597
87598         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87599
87600         * lib/version-etc.c (N_): Remove definition.
87601         Revert most of last change.
87602         Instead, simply don't mark the `Copyright...' string for translation.
87603         Based on advice from Paul Eggert.
87604
87605         * lib/strtoxmax.c: Tweak comment.
87606
87607 2001-08-26  Jim Meyering  <meyering@lucent.com>
87608
87609         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87610
87611         * m4/xstrtoimax.m4: New file.
87612         * m4/xstrtoumax.m4: Add comments explaining why we
87613         AC_REPLACE_FUNCS(strtol).
87614
87615 2001-08-26  Jim Meyering  <meyering@lucent.com>
87616
87617         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87618         of copyright with `%s' so translators don't get an untranslated
87619         message in 2002.
87620         (COPYRIGHT_YEAR): Define.
87621         (version_etc): Use fprintf rather than fputs.
87622         Suggestion from Ulrich Drepper.
87623
87624         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87625
87626         * lib/strtoll.c: New file, from GNU libc.
87627         * lib/xstrtoimax.c: New file.
87628
87629         * lib/xstrtol.h: Add xstrtoimax.
87630         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87631         * lib/strtoimax.c: New file.  Likewise, but first define
87632         STRTOUXMAX_SIGNED.
87633
87634         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87635         ...
87636         * lib/strtoxmax.c: ... then renamed to this.
87637
87638 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87639
87640         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87641         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87642         (jm_AC_TYPE_INTMAX_T): New macro.
87643         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87644
87645         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87646
87647         * m4/longlong.m4: Renamed from ulonglong.m4.
87648         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87649         * m4/uintmax_t.m4: Removed.
87650
87651 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87652
87653         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87654         Port to Solaris 8, where 'sed' requires a space after the 'r'
87655         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87656         Redirect output to $tmp just once.
87657
87658 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87659
87660         * lib/addext.c (<errno.h>): Include.
87661         (errno): Declare if not defined.
87662         (addext): Work correctly when pathconf returns -1 and leaves
87663         errno alone because there is no limit.  Also, work even if
87664         pathconf returns a value greater than SIZE_MAX.
87665
87666 2001-08-12  Jim Meyering  <meyering@lucent.com>
87667
87668         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87669         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87670         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87671         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87672         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87673         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87674         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87675         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87676         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87677         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87678         utime.m4, utimes.m4, xstrtoumax.m4:
87679         Quote the first argument in each use of AC_DEFUN.
87680
87681 2001-08-12  Jim Meyering  <meyering@lucent.com>
87682
87683         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87684         Simply `return getcwd (NULL, 0);'.
87685         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87686         Use 1300 as initial value for length, not PATH_MAX.
87687
87688         * lib/pathmax.h: Clean up cpp syntax.
87689
87690 2001-08-12  Jim Meyering  <meyering@lucent.com>
87691
87692         * lib/gettimeofday.c: New file.
87693         * lib/gtod.h: New file.
87694         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87695
87696 2001-08-05  Jim Meyering  <meyering@lucent.com>
87697
87698         * m4/jm-macros.m4: Require autoconf-2.52.
87699
87700 2001-08-04  Jim Meyering  <meyering@lucent.com>
87701
87702         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87703         stmt, to get in sync with glibc.
87704
87705 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87706
87707         The following changes are from gettext 0.10.39 as maintained by
87708         Bruno Haible.
87709
87710         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87711         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87712         with inverted sense.  All uses changed.
87713
87714         * lib/mbswidth.c: Don't include <limits.h>.
87715         Include <stdlib.h> and <string.h> unconditionally.
87716         (iswcntrl, mbsinit, ISCNTRL): New macros.
87717         (mbsnwidth): Use K&R style function declarations.
87718         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87719         can optimize it when MB_CUR_MAX == 1.
87720         The width of control characters is zero, not 1.
87721
87722 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87723
87724         The following changes are from gettext 0.10.39 as maintained by
87725         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87726
87727         * m4/codeset.m4: Upgrade to serial AM1.
87728         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87729         all uses changed.  Quote first arg of AC_DEFUN.
87730         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87731
87732         * m4/iconv.m4: Upgrade to serial AM2.
87733         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87734         Add --with-libconv-prefix.
87735         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87736         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87737         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87738         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87739         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87740
87741         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87742         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87743         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87744         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87745         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87746         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87747         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87748         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87749         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87750
87751         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87752         string.h any more.
87753
87754         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87755         not the default value.
87756
87757         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87758         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87759         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87760         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87761         Also check for iswcntrl, used for wcwidth fallback.
87762         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87763         to Autoconf 2.13.
87764
87765 2001-08-03  Jim Meyering  <meyering@lucent.com>
87766
87767         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87768         as it was in the original.  Reported by Paul Eggert.
87769
87770 2001-07-16  Jim Meyering  <meyering@lucent.com>
87771
87772         * m4/gettimeofday.m4: New file.
87773         Prompted by a report from Bernhard Baehr.
87774
87775 2001-07-15  Jim Meyering  <meyering@lucent.com>
87776
87777         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87778         stuff. Now it's in ../Makefile.cfg.
87779
87780 2001-07-15  Jim Meyering  <meyering@lucent.com>
87781
87782         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87783         (BUILT_SOURCES): Add unlocked-io.h.
87784         (io_functions): Define.
87785         (unlocked-io.h): New rule.
87786         (DISTCLEANFILES): Add unlocked-io.h.
87787         (all-local): Depend on unlocked-io.h, to ensure it is created.
87788
87789         * lib/unlocked-io.hin: New file
87790
87791         * lib/regex.c: Update from glibc.
87792
87793 2001-07-05  Jim Meyering  <meyering@lucent.com>
87794
87795         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87796         recommendation.
87797         (libfetish_a_SOURCES): Put all .h files here instead.
87798         Remove a thus-exposed (better checks in automake) duplicate and
87799         two unnecessary .h files.
87800
87801 2001-07-04  Jim Meyering  <meyering@lucent.com>
87802
87803         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87804         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87805         distcheck failure.
87806
87807 2001-07-02  Jim Meyering  <meyering@lucent.com>
87808
87809         The following changes were prompted by suggestions from Bruno Haible.
87810
87811         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87812         is now generated.
87813         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87814         definition of EXTRA_DIST.
87815         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87816         ensure that the generated file is created/updated whenever the list
87817         of $(unlocked_functions) is changed.
87818         (jm-glibc-io.m4): New rule.
87819         (unlocked-io.h): New rule -- currently unused.
87820
87821 2001-06-24  Jim Meyering  <meyering@lucent.com>
87822
87823         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87824         unmatched right bracket, rather than kludging it with an extra,
87825         falsely-matching quote in a comment.  Patch by Akim Demaille.
87826
87827 2001-06-11  Jim Meyering  <meyering@lucent.com>
87828
87829         * lib/regex.c: Update from GNU libc.
87830
87831 2001-05-27  Jim Meyering  <meyering@lucent.com>
87832
87833         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87834         Check for ut_type in struct utmp.
87835
87836 2001-05-27  Jim Meyering  <meyering@lucent.com>
87837
87838         * lib/readutmp.h (UT_TYPE): Define.
87839
87840 2001-05-24  Jim Meyering  <meyering@lucent.com>
87841
87842         * lib/argmatch.c: Include "quote.h".
87843         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87844         quote function.  Reported by Göran Uddeborg.
87845
87846 2001-05-22  Jim Meyering  <meyering@lucent.com>
87847
87848         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87849         now that we use the package-supplied version unconditionally.
87850         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87851
87852 2001-05-21  Jim Meyering  <meyering@lucent.com>
87853
87854         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87855         shell syntax errors.
87856
87857 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87858
87859         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87860
87861 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87862
87863         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87864         Don't bother to check library strftime, since
87865         we'll be using our own my_strftime function anyway.
87866         Define my_strftime instead of strftime.
87867
87868 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87869
87870         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87871         which is not yet declared.
87872
87873 2001-05-15  Jim Meyering  <meyering@lucent.com>
87874
87875         * m4/regex.m4: Use proper quoting so brackets appear in the test
87876         program.
87877         Reported by, and with help from, Bruno Haible.
87878
87879 2001-05-13  Jim Meyering  <meyering@lucent.com>
87880
87881         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87882         undefined.
87883
87884 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87885
87886         dirname code cleanup.  base_name now behaves more compatibly
87887         with POSIX basename when given file names that have trailing
87888         slashes, and similarly for dir_name.  Add new primitives
87889         base_len and dir_len.  Put the directory-name-related decls
87890         into dirname.h.
87891
87892         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87893         * lib/backupfile.c (base_name): Likewise.
87894         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87895         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87896         * lib/makepath.c (strip_trailing_slashes): Likewise.
87897         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87898         ISSLASH): Likewise.
87899         * lib/rename.c (strip_trailing_slashes): Likewise.
87900         * lib/same.c (base_name): Likewise.
87901         * lib/stripslash.c (ISSLASH): Likewise.
87902
87903         * lib/addext.c: Include <dirname.h> after size_t is defined.
87904         * lib/backupfile.c: Likewise.
87905
87906         * lib/addext.c (addext): Use base_len to trim redundant
87907         trailing slashes instead of doing it ourselves.
87908         But do not trim the last slash if it is not redundant.
87909
87910         * lib/backupfile.c (find_backup_file_name,
87911         max_backup_version): Use base_len instead of rolling it ourselves.
87912         Handle the case of "" and (on DOS) "C:" correctly.
87913
87914         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87915         needed. Include <string.h>, <dirname.h>.
87916         (base_name): Allow file names ending in slashes, other than names
87917         that are all slashes.  In this case, return the basename followed
87918         by the slashes.  This is more general, and can be used in places
87919         where the original base_name purposely had an assertion failure.
87920         (base_len): New function.
87921
87922         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87923         Do not include <assert.h>; no longer needed.
87924         Include xalloc.h.
87925         (memrchr): Remove decl.
87926         (dir_name_r): Remove.
87927         (dir_len): Renamed from dirlen.  All callers changed.
87928         Rewrite in terms of base_name, for simplicity and consistency.
87929         (dir_name): Never return NULL.  All callers changed.
87930         Do not include <stdlib.h> in test program; no longer needed.
87931         return 0; is fine for test program.
87932
87933         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87934         New macros.
87935         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87936
87937         * lib/path-concat.c (path_concat): Use base_len to compute
87938         base length, not strlen; this means we cannot rely on memcpy
87939         to null-terminate.
87940
87941         * lib/same.c (STREQ): Remove.
87942         (same_name): Handle the case where the basename ends in trailing '/'.
87943
87944         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87945         a slash was stripped.  Do not strip the last slash after a
87946         file system prefix.
87947
87948 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87949
87950         * lib/Makefile.am (libfetish_a_SOURCES):
87951         Add strftime.c, since we now compile it on all hosts.
87952
87953         * lib/strftime.c (my_strftime):
87954         Define to nstrftime if emacs, but only if my_strftime is not defined.
87955         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87956         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87957         Add one more extra argument: a nanoseconds value.
87958         All uses changed.
87959         (ns): New macro.
87960         (my_strftime function): Add %N format.
87961         (emacs_strftimeu): Renamed from emacs_strftime,
87962         with extra ut argument.
87963
87964 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87965
87966         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87967
87968 2001-04-21  Jim Meyering  <meyering@lucent.com>
87969
87970         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87971         doesn't interfere.
87972
87973 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87974
87975         * m4/ftruncate.m4: Check for chsize.
87976         Link with ftruncate.o unconditionally if ftruncate is missing.
87977         This was required when cross-compiling to i586-mingw32msvc.
87978
87979 2001-04-08  Jim Meyering  <meyering@lucent.com>
87980
87981         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87982         recomputed; that's necessary when the offset spans a DST transition.
87983         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87984
87985 2001-04-02  Jim Meyering  <meyering@lucent.com>
87986
87987         * lib/regex.h, regex.c: Update from GNU libc.
87988
87989 2001-03-24  Jim Meyering  <meyering@lucent.com>
87990
87991         * m4/jm-macros.m4: Require autoconf-2.49d.
87992
87993 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87994
87995         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87996
87997 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87998
87999         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88000
88001 2001-03-17  Jim Meyering  <meyering@lucent.com>
88002
88003         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88004         now that the version in autoconf is equivalent.
88005         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88006
88007         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88008         Suggestion from Akim Demaille.
88009
88010         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88011         (jm_PREREQ_TEMPNAME): New function.
88012
88013 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88014
88015         * lib/tempname.c (uint64_t): Define to uintmax_t if
88016         not defined, and if UINT64_MAX is not defined.
88017         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88018         Reported by John David Anglin.
88019
88020 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88021
88022         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88023         resolve alias if codeset is empty.
88024         * lib/config.charset (BeOS): Use wildcard syntax.
88025
88026 2001-03-13  Jim Meyering  <meyering@lucent.com>
88027
88028         * lib/path-concat.c (path_concat)
88029         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88030         concatenating e.g., `C:' and `foo'.
88031         From Bruno Haible.
88032
88033 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88034
88035         * lib/localcharset.c (locale_charset): Don't use
88036         setlocale(LC_CTYPE,NULL). Don't return NULL.
88037         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88038
88039 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88040
88041         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88042         support for DOS/DJGPP.
88043
88044 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88045
88046         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88047         lacks mkstemp.  Compile our own tempname.c if we compile our own
88048         mkstemp.c, as mkstemp relies on tempname.
88049
88050 2001-03-01  Jim Meyering  <meyering@lucent.com>
88051
88052         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88053         AH_VERBATIM really does output its argument verbatim.
88054
88055 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88056
88057         * lib/Makefile.am (libfetish_a_SOURCES):
88058         Add dup-safer.c, fopen-safer.c.
88059         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88060
88061         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88062         * lib/unistd-safer.h: New files.
88063
88064 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88065
88066         The mkstemp replacement is taken from glibc 2.2.2, with some
88067         portability fixes for use outside glibc, as follows:
88068
88069         * lib/tempname.c (struct_stat64): New macro.
88070         (direxists, __gen_tempname): Use it.
88071         This avoids a portability problem with Solaris 8.
88072
88073         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88074         (<stddef.h>, <stdint.h>, <string.h>):
88075         Include only if STDC_HEADERS || _LIBC.
88076         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88077         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88078         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88079         (__set_errno): Define this macro if <errno.h> doesn't.
88080         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88081         Define these macros if <stdio.h> doesn't.
88082         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88083         Define these macros if <sys/stat.h>
88084         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88085         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88086         __xstat64): Define if not _LIBC.
88087         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88088         (__gen_tempname): Invoke gettimeofday only if
88089         HAVE_GETTIMEOFDAY || _LIBC;
88090         otherwise, fall back on plain "time".
88091         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88092
88093         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88094
88095         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88096
88097 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88098
88099         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88100
88101 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88102
88103         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88104         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88105         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88106         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88107
88108 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88109
88110         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88111         Remove workaround macros for hosts that have mbrtowc but not
88112         mbstate_t, as we now insist on proper declarations for both
88113         before using mbrtowc.
88114
88115 2001-02-17  Jim Meyering  <meyering@lucent.com>
88116
88117         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88118         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88119         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88120         UnixWare 7.1.1.
88121
88122         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88123         rather than AC_CACHE_VAL.
88124
88125 2001-02-17  Jim Meyering  <meyering@lucent.com>
88126
88127         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88128         around included file name.
88129
88130         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88131
88132         * lib/strftime.c: Update from GNU libc (the only changes were to
88133         comments).
88134
88135 2001-02-17  Jim Meyering  <meyering@lucent.com>
88136
88137         * lib/regex.c: Update from libc.
88138
88139 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88140
88141         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88142         clash.
88143
88144 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88145
88146         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88147         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88148         Reported by Mark Hounschell via Paul Eggert.
88149
88150 2001-02-07  Jim Meyering  <meyering@lucent.com>
88151
88152         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88153
88154 2001-02-05  Jim Meyering  <meyering@lucent.com>
88155
88156         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88157         it includes the patch required for `large file' support with at least
88158         HP-UX's 10.20 /bin/cc.
88159
88160 2001-02-03  Jim Meyering  <meyering@lucent.com>
88161
88162         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88163         AS_IF, now that it works once again (mysteriously).
88164         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88165
88166 2001-01-30  Jim Meyering  <meyering@lucent.com>
88167
88168         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88169         * m4/chown.m4: Rename conftestchown to conftest.chown.
88170         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88171         s/conftestdir2/conftest.d2/.
88172         * m4/utimes.m4: s/conftestdata/conftest.data/
88173         Inspired by Pavel Roskin's change in autoconf.
88174
88175 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88176
88177         * lib/config.charset: Update for FreeBSD 4.2.
88178
88179 2001-01-27  Jim Meyering  <meyering@lucent.com>
88180
88181         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88182         a use of AS_IF.
88183         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88184
88185 2001-01-26  Jim Meyering  <meyering@lucent.com>
88186
88187         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88188         quotearg.c includes it.
88189
88190 2001-01-26  Jim Meyering  <meyering@lucent.com>
88191
88192         * lib/quotearg.c: Include stddef.h.
88193         * lib/quote.c: Include stddef.h.
88194         Reported by Axel Kittenberger.
88195
88196         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88197         line in double quotes so that it evokes a better diagnostic.
88198         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88199         Reported by Axel Kittenberger.
88200
88201 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88202
88203         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88204         as if it was a `charset'.
88205
88206 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88207
88208         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88209         has const.
88210
88211 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88212
88213         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88214         to avoid a warning.  Add back 'const' to inptr.
88215
88216 2001-01-20  Jim Meyering  <meyering@lucent.com>
88217
88218         Be sure that headers are checked before used in code compiled
88219         for the type checks.
88220         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88221         In place of that, invoke jm_CHECK_ALL_TYPES.
88222         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88223         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88224         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88225         The check for ssize_t was mistakenly run before the test for unistd.h.
88226
88227         The configure-time check for stdbool.h was missing.
88228         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88229         (jm_PREREQ_HASH): New function.
88230
88231 2001-01-17  Jim Meyering  <meyering@lucent.com>
88232
88233         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88234         for autoconf-2.49c.
88235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88236
88237 2001-01-16  Jim Meyering  <meyering@lucent.com>
88238
88239         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88240         From Bruno Haible.
88241
88242 2001-01-14  Jim Meyering  <meyering@lucent.com>
88243
88244         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88245         foo and bar.  Create conftestdir/ in the script, not in the C code.
88246         Remove directories in the script, not in the C code.
88247         Remove conftestdir{,2} before trying to create the directory.
88248         Make the entire configure script fail if the mkdir fails.
88249
88250 2001-01-14  Jim Meyering  <meyering@lucent.com>
88251
88252         * lib/rename.c: New file.  From Volker Borchert.
88253         Include stdlib.h, string.h or strings.h, and xalloc.h.
88254         Use strip_trailing_slashes rather than open-coding it.
88255
88256 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88257
88258         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88259
88260 2001-01-03  Jim Meyering  <meyering@lucent.com>
88261
88262         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88263         of local `inptr' to avoid warning with some system declarations of
88264         iconv.
88265
88266 2001-01-02  Volker Borchert  <bt@teknon.de>
88267
88268         * m4/rename.m4: New file.
88269         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88270
88271 2001-01-01  Jim Meyering  <meyering@lucent.com>
88272
88273         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88274         even on systems with utmpx.h.  It's necessary for the declaration of
88275         utmp's ut_user member.  Reported by Andreas Jaeger.
88276
88277         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88278         available. They are required for the declarations of getgrgid and
88279         getpwuid resp.
88280         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88281         Reported by Andreas Jaeger.
88282
88283 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88284
88285         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88286         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88287         so `make install' also works in VPATH builds.
88288
88289 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88290
88291         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88292         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88293         can be used in subdirectories.
88294
88295 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88296
88297         * lib/modechange.c: Do not assume that mode_t uses the
88298         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88299         the other-execute bit of FOO even if S_IXOTH != 1.
88300
88301         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88302         WOTH, XOTH, ALLM): New macros.
88303         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88304          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88305         Use them.
88306         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88307         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88308         (mode_compile):
88309         No need to use uintmax_t; unsigned long is long enough.
88310         Don't bother to get suffix since we don't use it.
88311
88312 2000-12-26  Jim Meyering  <meyering@lucent.com>
88313
88314         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88315         better with autoheader.
88316
88317 2000-12-24  Jim Meyering  <meyering@lucent.com>
88318
88319         * lib/hash.c (is_prime): Return explicit boolean values.
88320         (hash_get_first): Return NULL to appease Irix5.6's 89.
88321         Reported by Nelson Beebe.
88322
88323 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88324
88325         * lib/localcharset.c (locale_charset): Add support for Win32.
88326
88327 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88328
88329         * lib/physmem.h, lib/physmem.c: New files.
88330
88331         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88332         (noinst_HEADERS): Add physmem.h.
88333
88334         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88335         't' for compatibility with Solaris 8 sort.
88336
88337 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88338
88339         * lib/config.charset: Add support for BeOS.
88340
88341 2000-12-17  Jim Meyering  <meyering@lucent.com>
88342
88343         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88344         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88345
88346 2000-12-16  Jim Meyering  <meyering@lucent.com>
88347
88348         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88349         N and M) would have treated it like `chown N:N FILE'.
88350
88351         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88352
88353 2000-12-16  Jim Meyering  <meyering@lucent.com>
88354
88355         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88356         SHELLS_FILE to a file name that's useful on djgpp systems.
88357         Include stdlib.h.
88358         (ADDITIONAL_DEFAULT_SHELLS): Define.
88359         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88360         Based mostly on a patch from Prashant TR.
88361
88362 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88363
88364         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88365         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88366         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88367
88368 2000-12-08  Andreas Schwab  <schwab@suse.de>
88369
88370         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88371         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88372
88373 2000-12-07  Jim Meyering  <meyering@lucent.com>
88374
88375         * lib/stripslash.c (ISSLASH): Define.
88376         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88377         `/'.
88378         From Prashant TR.
88379
88380         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88381         (dir_name_r): Declare this function as static.
88382         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88383         manifest itself on a name containing a mix of slashes and
88384         backslashes.
88385         Make this function work with names starting with a DOS-style
88386         drive letter and colon prefix.
88387         (dir_name): Append `.' if necessary.
88388         Based mostly on patches from Prashant TR and Eli Zaretskii.
88389
88390         * lib/dirname.h (dir_name_r): Remove prototype.
88391
88392 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88393
88394         * m4/off_t-format.m4: Remove this file.
88395         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88396
88397 2000-12-06  Jim Meyering  <meyering@lucent.com>
88398
88399         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88400         replacement strtoull, we may well need the replacement strtoul, too.
88401         Check for declarations of strtoul and strtoull.
88402         Check for strtol.  Mainly as a cue to cause automake to include
88403         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88404         Check for limits.h -- strtol.c needs it.
88405
88406 2000-12-05  Jim Meyering  <meyering@lucent.com>
88407
88408         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88409
88410 2000-12-04  Jim Meyering  <meyering@lucent.com>
88411
88412         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88413         Also include memory.h, stdlib.h, unistd.h if appropriate.
88414         Reported by Andreas Jaeger (conflicting declaration of malloc).
88415
88416 2000-12-02  Jim Meyering  <meyering@lucent.com>
88417
88418         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88419         * m4/jm-macros.m4 (jm_MACROS): require it.
88420
88421 2000-12-02  Jim Meyering  <meyering@lucent.com>
88422
88423         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88424
88425 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88426
88427         * lib/memrchr.c: Include <config.h> before any system include file.
88428
88429 2000-11-30  Jim Meyering  <meyering@lucent.com>
88430
88431         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88432
88433 2000-11-30  Jim Meyering  <meyering@lucent.com>
88434
88435         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88436
88437 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88438
88439         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88440
88441 2000-11-26  Jim Meyering  <meyering@lucent.com>
88442
88443         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88444
88445 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88446
88447         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88448         size of (size_t) -1; it's not portable.
88449
88450 2000-11-17  Jim Meyering  <meyering@lucent.com>
88451
88452         * lib/strstr.c: Update from GNU libc.
88453
88454 2000-11-17  Akim Demaille  <akim@epita.fr>
88455
88456         * lib/obstack.h: Formatting changes.
88457         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88458         prevent type checking.
88459         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88460         cast the value to (void *): assigning a `foo *' to a `void *'
88461         variable is valid.
88462         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88463
88464 2000-11-16  Jim Meyering  <meyering@lucent.com>
88465
88466         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88467
88468 2000-11-11  Jim Meyering  <meyering@lucent.com>
88469
88470         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88471
88472 2000-11-10  Jim Meyering  <meyering@lucent.com>
88473
88474         * lib/obstack.h: Update from GNU libc.
88475         * lib/obstack.c: Likewise.
88476
88477 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88478
88479         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88480
88481 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88482
88483         * lib/getusershell.c (setusershell): Use rewind rather than
88484         fseek/fseeko, to avoid configuration hassles with fseeko.
88485         Don't bother opening SHELLS_FILE if shellstream is NULL;
88486         it's not necessary.
88487
88488 2000-11-05  Jim Meyering  <meyering@lucent.com>
88489
88490         * lib/makepath.h (make_dir): Declare.
88491         * lib/makepath.c (make_dir): Remove `static' attribute.
88492         Tweak a comment.
88493
88494 2000-11-04  Jim Meyering  <meyering@lucent.com>
88495
88496         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88497
88498 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88499
88500         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88501         last one in a bucket, advance to the next bucket.
88502
88503 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88504
88505         * lib/fnmatch.c: Do not comment out all the code if we are using
88506         the GNU C library, because in some cases we are replacing buggy
88507         code in the GNU C library itself.
88508
88509 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88510
88511         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88512         (regex_compile): Catch bogus \(\1\).
88513
88514 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88515
88516         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88517         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88518         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88519
88520 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88521
88522         * lib/error.h, getline.h, modechange.h:
88523         Remove "2000" from Copyright line, as the file hasn't been
88524         changed this year other than in the copyright notice.
88525
88526         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88527         was changed this year.
88528
88529 2000-10-29  Jim Meyering  <meyering@lucent.com>
88530
88531         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88532         renaming.
88533         * m4/ls-mntd-fs.m4: Likewise
88534
88535 2000-10-29  Jim Meyering  <meyering@lucent.com>
88536
88537         * lib/xstat.in: Fix grammar in comment.
88538
88539 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88540
88541         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88542         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88543         doesn't define __restrict_arr.
88544
88545 2000-10-28  Jim Meyering  <meyering@lucent.com>
88546
88547         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88548         (jm_PREREQ_MEMCHR): New function.
88549
88550 2000-10-28  Jim Meyering  <meyering@lucent.com>
88551
88552         * lib/memchr.c: Update from libc.
88553         Adjust for portability:
88554         [HAVE_STDLIB_H]: Include stdlib.h.
88555         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88556         Undef __memchr, too.
88557         [!weak_alias]: Define __memchr to memchr.
88558
88559         * lib/regex.c: Update from libc.
88560         * lib/regex.h: Likewise.
88561         * lib/getopt1.c: Likewise.
88562         * lib/memcmp.c: Likewise.
88563
88564         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88565         Avoid using fseek, when possible -- it's broken by design.
88566         Patch by Ulrich Drepper.
88567
88568 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88569
88570         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88571         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88572         Giving in to popular pressure to shut up the compiler with casts.
88573
88574 2000-10-26  Jim Meyering  <meyering@lucent.com>
88575
88576         * lib/strftime.c: Update from libc.
88577
88578 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88579
88580         * regex.c: More `unsigned char' -> `re_char' changes.
88581         Also change several `int' into `re_wchar_t'.
88582         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88583         (PUSH_FAILURE_POINTER): Don't cast any more.
88584         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88585         We want GCC to complain, since this piece of code makes
88586         re_match non-reentrant, which *should* be fixed.
88587         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88588         (EXTEND_BUFFER): Use RETALLOC.
88589         (SET_LIST_BIT): Don't cast.
88590         (re_wchar_t): New type.
88591         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88592         that those two functions will always properly return.
88593         (IMMEDIATE_QUIT_CHECK): Cast to void.
88594         (analyse_first): Use recursion rather than an explicit stack.
88595         (re_compile_fastmap): Can't fail anymore.
88596         (re_search_2): Don't check re_compile_fastmap for failure.
88597         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88598         Now also sets the new value (passed in a new argument).
88599         (re_match_2_internal): Use it.
88600         Also, use a new var `reg' of type size_t when looping through regs
88601         rather than reuse the inappropriate `mcnt'.
88602
88603 2000-10-25  Jim Meyering  <meyering@lucent.com>
88604
88605         * lib/obstack.c: Update from libc.
88606
88607 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88608
88609         * regex.c (regex_compile): Change the way of handling a range from
88610         a char less than 256 to a char not less than 256.
88611
88612 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88613
88614         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88615         NT-Emacs only.
88616         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88617         so that re_search functions only quit when callers expect them to.
88618
88619 2000-10-23  Jim Meyering  <meyering@lucent.com>
88620
88621         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88622         wrong.  That set_locale call must not have any side effects.
88623         From Paul Eggert.
88624
88625 2000-10-22  Jim Meyering  <meyering@lucent.com>
88626
88627         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88628         [CYCLIC]: Remove now-unused definition.
88629
88630         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88631         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88632         Suggestion from Ulrich Drepper.
88633
88634 2000-10-21  Jim Meyering  <meyering@lucent.com>
88635
88636         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88637         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88638         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88639
88640 2000-10-21  Jim Meyering  <meyering@lucent.com>
88641
88642         * lib/dirname.c (memrchr): Declare if necessary.
88643         (dir_name): Remove the restriction that there be no
88644         trailing slashes.  Now, this code skips past them, effectively
88645         ignoring them.
88646         [TEST_DIRNAME] (main): New unit tests.
88647
88648         * lib/memrchr.c: New file from GNU libc.
88649         Undef __memrchr, too.
88650         [!weak_alias]: Define __memrchr to memrchr.
88651         Guard weak_alias use with `#ifdef weak_alias'.
88652
88653 2000-10-21  Jim Meyering  <meyering@lucent.com>
88654
88655         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88656         (dir_name): Use dir_name_r.
88657         * lib/dirname.h (dir_name_r): Declare it.
88658
88659 2000-10-17  Jim Meyering  <meyering@lucent.com>
88660
88661         * lib/quote.h (PARAMS): Define and use.
88662         Reported by Akim Demaille.
88663
88664         * lib/getopt.c: Update from libc.
88665
88666 2000-10-16  Jim Meyering  <meyering@lucent.com>
88667
88668         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88669         setlocale.
88670         From Jan Fedak.
88671
88672 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88673
88674         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88675
88676 2000-09-25  Jim Meyering  <meyering@lucent.com>
88677
88678         * lib/md5.h (rol): Define (from GnuPG).
88679
88680         * lib/sha.c: Give credit (GnuPG) where due.
88681         (M): Use rol rather than open-coding it.
88682         Add a FIXME comment.
88683
88684 2000-09-21  Jim Meyering  <meyering@lucent.com>
88685
88686         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88687         Reported by Michael Stone.
88688
88689 2000-09-20  Jim Meyering  <meyering@lucent.com>
88690
88691         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88692         (noinst_HEADERS): Add sha.h.
88693         Based on code from Scott G. Miller and from GnuPG.
88694
88695 2000-09-18  Jim Meyering  <meyering@lucent.com>
88696
88697         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88698         LIBS. Otherwise, everyone ends up linking with -lelf for some
88699         configurations.
88700         Reported by Mike Stone.
88701
88702 2000-09-15  Jim Meyering  <meyering@lucent.com>
88703
88704         * lib/regex.c: Update from libc.
88705
88706 2000-09-10  Jim Meyering  <meyering@lucent.com>
88707
88708         * lib/getopt.c (_getopt_internal): Update from glibc.
88709
88710 2000-09-09  Jim Meyering  <meyering@lucent.com>
88711
88712         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88713         think it should be used as a general replacement for isascii.
88714         * lib/fnmatch.c: Likewise.
88715         * lib/mbswidth.c: Likewise
88716         * lib/regex.c: Likewise.
88717
88718         Don't use atoi.
88719         * lib/userspec.c: Include sys/param.h and limits.h.
88720         Include xstrtol.h.
88721         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88722         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88723         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88724         UID, GID.  Check range.
88725
88726 2000-09-06  Jim Meyering  <meyering@lucent.com>
88727
88728         * lib/getopt.c (_getopt_internal): Update from glibc.
88729
88730 2000-08-30  Jim Meyering  <meyering@lucent.com>
88731
88732         * lib/strftime.c: Merge in changes from GNU libc.
88733
88734 2000-08-26  Jim Meyering  <meyering@lucent.com>
88735
88736         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88737         * m4/fpending.m4: New file.
88738
88739 2000-08-26  Jim Meyering  <meyering@lucent.com>
88740
88741         * lib/closeout.c: Include "__fpending.h".
88742         (close_stdout_status): Return right away if there's nothing to flush.
88743
88744         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88745         * lib/__fpending.c: New file.
88746         * lib/__fpending.h: New file.
88747
88748 2000-08-20  Jim Meyering  <meyering@lucent.com>
88749
88750         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88751         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88752         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88753
88754 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88755
88756         Improve fileutils installation on systems where running
88757         programs (like install) can't be unlinked.
88758         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88759         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88760
88761 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88762
88763         Standardize on "memory exhausted" instead of "Memory exhausted"
88764         or "virtual memory exhausted".
88765         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88766         "virtual memory exhausted".
88767         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88768         our own message.
88769         * lib/userspec.c (parse_user_spec): Likewise.
88770         * lib/bumpalloc.h: comment fix
88771         * lib/same.c, userspec.c: Include xalloc.h.
88772
88773         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88774         not char *const and pointing to a constant array.
88775         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88776         (xrealloc): Comment fix.
88777
88778         * lib/userspec.c (parse_user_spec):
88779         Don't translate a message until just before returning,
88780         to avoid unnecessary translation.
88781
88782 2000-08-07  Jim Meyering  <meyering@lucent.com>
88783
88784         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88785         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88786         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88787         getgroups.c, gethostname.c, getopt.h, group-member.c,
88788         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88789         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88790         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88791         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88792         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88793         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88794         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88795         yesno.c: Back out Copyright date changes for each file with no change
88796         this year.  This eases coordination with other programs using the same
88797         source code modules.  From Paul Eggert.
88798
88799 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88800
88801         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88802         not char, for compatibility with glibc 2.1.3 strftime.c.
88803
88804 2000-08-03  Greg McGary  <greg@mcgary.org>
88805
88806         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88807         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88808         (EXTEND_BUFFER): Use them.
88809
88810 2000-08-01  Jim Meyering  <meyering@lucent.com>
88811
88812         * lib/dirname.c (ISSLASH): Define.
88813         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88814         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88815         both `\' and `/' may be use as path separators.
88816         Based on a patch from Prashant TR.
88817
88818 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88819
88820         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88821         slot vector a constant, since it might get modified.
88822
88823 2000-07-31  Jim Meyering  <meyering@lucent.com>
88824
88825         * lib/xmalloc.c: Use `virtual memory exhausted', not
88826         `Memory exhausted'.
88827         * lib/obstack.c (print_and_abort): Likewise.
88828
88829 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88830
88831         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88832         buffer, so that the caller can always quote one small
88833         component of a "memory exhausted" message in slot 0.
88834         From a suggestion by Jim Meyering.
88835
88836 2000-07-30  Jim Meyering  <meyering@lucent.com>
88837
88838         * lib/makepath.c (make_path): Quote the other instance, too.
88839
88840         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88841         (STATIC_BUF_SIZE): Define.
88842         (quotearg_n_options): Use only statically allocated storage when
88843         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88844         than STATIC_BUF_SIZE.
88845
88846 2000-07-29  Jim Meyering  <meyering@lucent.com>
88847
88848         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88849         * lib/dirname.c (dir_name): Likewise.
88850
88851         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88852         `/'.
88853
88854         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88855         (dir_name): Assert that there are no trailing slashes.
88856
88857 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88858
88859         * lib/mbswidth.h (mbswidth): Add a flags argument.
88860         (mbswidth): New declaration.
88861         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88862         * lib/mbswidth.c (mbswidth): Add a flags argument.
88863         (mbsnwidth): New function.
88864
88865 2000-07-24  Jim Meyering  <meyering@lucent.com>
88866
88867         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88868
88869 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88870
88871         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88872
88873 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88874
88875         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88876         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88877         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88878         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88879         invoke multibyte primitives.
88880
88881 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88882
88883         * lib/quotearg.c:
88884         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88885         so that mbstate_t is always defined.
88886
88887         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88888         be 1 in at least one GCC installation, and this configuration
88889         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88890         performance on hosts that have mbrtowc but have only unibyte
88891         locales, but I assume these hosts are rare.
88892
88893 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88894
88895         * lib/mbswidth.c (_XOPEN_SOURCE):
88896         Don't define; this causes problems on Solaris 7.
88897         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88898
88899 2000-07-23  Jim Meyering  <meyering@lucent.com>
88900
88901         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88902         too: getgrgid, getpwuid, getuid.
88903
88904 2000-07-23  Jim Meyering  <meyering@lucent.com>
88905
88906         * lib/basename.c (base_name): Add an assertion.
88907
88908 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88909
88910         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88911         shadow its mbsinit function.
88912
88913 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88914
88915         * lib/mbswidth.h: New file.
88916         * lib/mbswidth.c: New file.
88917         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88918         (noinst_HEADERS): Add mbswidth.h.
88919
88920 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88921
88922         * lib/config.charset: Add support for FreeBSD. Improve support for
88923         HP-UX and IRIX 6.
88924
88925 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88926
88927         * m4/mbswidth.m4: New file.
88928         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88929
88930 2000-07-15  Jim Meyering  <meyering@lucent.com>
88931
88932         * lib/makepath.c: Include quote.h.
88933         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88934         corresponding argument in a `quote (...)' call.
88935         Give better diagnostics.
88936
88937         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88938         (noinst_HEADERS): Add quote.h.
88939
88940         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88941         from tar's src/misc.c.
88942         * lib/quote.h: New file.  Prototypes for same.
88943
88944 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88945
88946         From a suggestion by Bruno Haible.
88947         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88948         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88949         to decide whether to define the BeOS workaround macro;
88950         this adjusts to the change to AC_MBSTATE_T.
88951
88952 2000-07-14  Jim Meyering  <meyering@lucent.com>
88953
88954         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88955         jm_AC_TYPE_UINTMAX_T.
88956
88957 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88958
88959         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88960
88961         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88962         quotearg_buffer_restyled): Add support for
88963         clocale_quoting_style.  Undo previous change to
88964         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88965         and "{RIGHT QUOTATION MARK}" msgids.
88966
88967 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88968
88969         From a suggestion by Bruno Haible.
88970         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88971         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88972         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88973         and mbstate_t, to a single-part test that simply defines mbstate_t.
88974         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88975         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88976
88977 2000-07-10  Jim Meyering  <meyering@lucent.com>
88978
88979         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88980
88981         * m4/gnu-source.m4: Output to confdefs.h directly.
88982         Suggestion from Akim Demaille.
88983
88984 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88985
88986         The old behavior of quoting `like this' doesn't look good with
88987         newer, ISO-style fonts.  See:
88988         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88989
88990         Instead, quote "like this" by default.  Let the translator
88991         tailor the locale-specific quoting behavior by providing
88992         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88993
88994         * lib/quotearg.c (N_): New macro.
88995         (gettext_default): New function.
88996         (quotearg_buffer_restyled): Use
88997         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88998         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88999
89000 2000-07-09  Jim Meyering  <meyering@lucent.com>
89001
89002         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89003         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89004
89005         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89007
89008 2000-07-09  Jim Meyering  <meyering@lucent.com>
89009
89010         * lib/Most files: Update copyright dates to include 2000.
89011
89012 2000-07-08  Jim Meyering  <meyering@lucent.com>
89013
89014         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89015         if not defined.
89016         (xgethostname): Remove now-unnecessary #ifdef.
89017         Move declaration of `err' into loop where it's used.
89018
89019 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89020         and Bruno Haible  <haible@clisp.cons.org>
89021
89022         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89023         only if the test for an object-type mbstate_t fails.  This
89024         prevents us from mistakenly reporting that mbstate_t is a
89025         system object type after we "#define mbstate_t int" to work
89026         around its lack.
89027
89028 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89029         and Bruno Haible  <haible@clisp.cons.org>
89030
89031         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89032
89033 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89034
89035         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89036         to strerror_r.
89037         Include <ctype.h> for use of isalpha.
89038
89039 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89040
89041         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89042         by allocating a larger buffer. Test the gethostname return value for
89043         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89044         returns an error and ENAMETOOLONG isn't defined.
89045
89046 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89047
89048         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89049         dimension.
89050
89051 2000-07-04  Jim Meyering  <meyering@lucent.com>
89052
89053         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89054         of the deprecated AC_CHECKING.
89055
89056 2000-07-04  Jim Meyering  <meyering@lucent.com>
89057
89058         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89059         Reported by Bruno Haible.
89060
89061 2000-07-04  Jim Meyering  <meyering@lucent.com>
89062
89063         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89064         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89065         lacks mbrtowc.
89066
89067 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89068
89069         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89070         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89071
89072 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89073         and Bruno Haible  <haible@clisp.cons.org>
89074
89075         * lib/quotearg.c (mbrtowc):
89076         Assign to *pwc, and return 1 only if result is nonzero.
89077         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89078
89079 2000-07-03  Jim Meyering  <meyering@lucent.com>
89080
89081         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89082
89083 2000-07-03  Jim Meyering  <meyering@lucent.com>
89084
89085         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89086         This is necessary to get a definition of e.g., UTMP_FILE on
89087         HP-UX 10.20.
89088         From Bob Proulx.
89089
89090 2000-07-02  Jim Meyering  <meyering@lucent.com>
89091
89092         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89093
89094         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89095         AC_LIBOBJ(function_name).
89096         * m4/chown.m4: Likewise.
89097         * m4/fnmatch.m4: Likewise.
89098         * m4/ftruncate.m4: Likewise.
89099         * m4/getgroups.m4: Likewise.
89100         * m4/getline.m4: Likewise.
89101         * m4/group-member.m4: Likewise.
89102         * m4/jm-macros.m4: Likewise.
89103         * m4/lstat.m4: Likewise.
89104         * m4/malloc.m4: Likewise.
89105         * m4/memcmp.m4: Likewise.
89106         * m4/nanosleep.m4: Likewise.
89107         * m4/putenv.m4: Likewise.
89108         * m4/realloc.m4: Likewise.
89109         * m4/regex.m4: Likewise.
89110         * m4/stat.m4: Likewise.
89111         * m4/strftime.m4: Likewise.
89112
89113 2000-07-02  Jim Meyering  <meyering@lucent.com>
89114
89115         * lib/quotearg.c (mbstate_t): Don't define here.
89116
89117 2000-07-02  Jim Meyering  <meyering@lucent.com>
89118
89119         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89120
89121 2000-07-01  Jim Meyering  <meyering@lucent.com>
89122
89123         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89124
89125 2000-07-01  Jim Meyering  <meyering@lucent.com>
89126
89127         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89128         problem.
89129
89130 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89131
89132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89133         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89134
89135 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89136
89137         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89138         per change in ../m4/ls-mntd-fs.m4.
89139         (read_filesystem_list): Ignore symbolic links.
89140
89141 2000-06-29  Jim Meyering  <meyering@lucent.com>
89142
89143         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89144         for declaration of strcmp.
89145
89146         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89147
89148         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89149         Avoid warning by casting result to `char *' to remove `const'.
89150
89151 2000-06-28  Jim Meyering  <meyering@lucent.com>
89152
89153         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89154         included by quotearg.c, for which we perform this test.  From
89155         Bruno Haible.
89156
89157 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89158
89159         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89160         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89161         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89162
89163 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89164
89165         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89166
89167 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89168
89169         savedir now sets errno on failure and invokes xmalloc to get memory.
89170         Fix a couple of other minor bugs while we're at it.
89171
89172         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89173         (NAMLEN): Remove macro.
89174         (malloc, realloc): Remove decls.
89175         (stpcpy): Likewise.
89176         ("xalloc.h"): Include.
89177         (NAME_SIZE_DEFAULT): New macro.
89178         (savedir): Use xmalloc / xrealloc to allocate memory.
89179         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89180         Skip "" directory entries.
89181         Use strlen to calculate directory entry length, since the old method
89182         is rarely used these days and isn't worth supporting.
89183         Don't use a pointer after freeing it.
89184         Check for integer overflow when calculating allocation size.
89185         Use memcpy to copy entries, instead of stpcpy.
89186         Set errno properly when returning NULL.
89187         Check for readdir error.
89188
89189 2000-06-26  Jim Meyering  <meyering@lucent.com>
89190
89191         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89192
89193 2000-06-25  Jim Meyering  <meyering@lucent.com>
89194
89195         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89196         Linux header bug when _XOPEN_SOURCE is defined to 500.
89197
89198 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89199
89200         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89201         deficiency.
89202
89203 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89204
89205         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89206         Include xalloc.h.
89207         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89208
89209 2000-06-24  Jim Meyering  <meyering@lucent.com>
89210
89211         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89212         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89213         for which strerror does return char*, but which lacks a conveniently
89214         accessible declaration of the function.  If the compile-test says
89215         strerror_r doesn't work, then resort to a `run'-test that works on
89216         BeOS and segfaults on DEC Unix.
89217
89218 2000-06-24  Jim Meyering  <meyering@lucent.com>
89219
89220         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89221
89222 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89223
89224         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89225         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89226
89227 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89228
89229         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89230         (mbrtowc, mbstate_t): Define substitutes if
89231         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89232         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89233         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89234
89235 2000-06-23  Jim Meyering  <meyering@lucent.com>
89236
89237         * m4/afs.m4: Add missing AC_MSG_RESULT.
89238         Reported by Bruno Haible.
89239
89240         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89241         Suggestion from Bruno Haible.
89242
89243 2000-06-23  Jim Meyering  <meyering@lucent.com>
89244
89245         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89246
89247 2000-06-21  Jim Meyering  <meyering@lucent.com>
89248
89249         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89250
89251 2000-06-21  Jim Meyering  <meyering@lucent.com>
89252
89253         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89254         (noinst_HEADERS): Add getstr.h.
89255
89256         * lib/getline.c (getstr): Move into a separate file.
89257         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89258         the following changes: new parameter, delim2; both delim[12]
89259         parameters have type `int', not `char'.  The latter would lose
89260         with 8-bit delimiters.
89261         * lib/getstr.h: New file.
89262
89263 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89264
89265         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89266         than 1024, return a memory chunk of least possible size, instead
89267         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89268         Use free/xmalloc instead of xrealloc to avoid copying for very long
89269         paths.
89270
89271 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89272
89273         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89274         the empty string.
89275
89276 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89277
89278         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89279         address, not strdup.  Include <stdlib.h> and don't declare free().
89280
89281 2000-06-19  Jim Meyering  <meyering@lucent.com>
89282
89283         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89284
89285 2000-06-18  Jim Meyering  <meyering@lucent.com>
89286
89287         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89288
89289         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89290         `checking whether...' message to be consistent with that of the
89291         lstat test.
89292
89293 2000-06-18  Jim Meyering  <meyering@lucent.com>
89294
89295         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89296         Besides, these days every porting target provides a mkdir function.
89297
89298         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89299         needed. (this snippet comes from src/system.h).
89300
89301 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89302
89303         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89304
89305 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89306
89307         * lib/human.c (adjust_value): New function.
89308         (human_readable_inexact): Apply rounding style even when
89309         printing approximate values.
89310
89311 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89312
89313         * lib/human.c (human_readable_inexact): Allow an input block
89314         size that is not a multiple of the output block size, and vice versa.
89315         Reported by Piergiorgio Sartor.
89316
89317 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89318
89319         * lib/getdate.y (get_date): Apply relative times after time
89320         zone indicator, not before.  Reported by Todd A. Jacobs.
89321
89322 2000-06-13  Jim Meyering  <meyering@lucent.com>
89323
89324         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89325
89326         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89327
89328 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89329
89330         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89331
89332 2000-06-12  Jim Meyering  <meyering@lucent.com>
89333
89334         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89335         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89336         optional argument.
89337         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89338         the optional argument, `lib'.
89339
89340 2000-06-08  Jim Meyering  <meyering@lucent.com>
89341
89342         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89343
89344 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89345
89346         Rewrite largefile configuration so that we don't need to run
89347         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89348         AC_CANONICAL_HOST in configure.in -- jmm]
89349
89350         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89351         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89352         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89353         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89354         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89355         All uses changed.
89356         Instead of inspecting the output of getconf, try to compile the
89357         test program without and with the macro definition.
89358         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89359         for getconf.  Instead, check for the needed flags by compiling
89360         test programs.
89361
89362 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89363
89364         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89365
89366 2000-06-04  Jim Meyering  <meyering@lucent.com>
89367
89368         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89369         SunOS 4.1.4 for which gid_t is an unsigned type.
89370
89371 2000-06-03  Jim Meyering  <meyering@lucent.com>
89372
89373         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89374         now that autoconf requires that.
89375
89376         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89377         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89378         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89379
89380 2000-06-03  Jim Meyering  <meyering@lucent.com>
89381
89382         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89383
89384 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89385
89386         * m4/glibc21.m4: New file.
89387         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89388
89389 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89390
89391         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89392         newer, don't install charset.alias.
89393         * lib/config.charset: Change the Linux/glibc rules so they become empty
89394         on glibc-2.1 or newer.
89395
89396 2000-06-02  Jim Meyering  <meyering@lucent.com>
89397
89398         * lib/mountlist.c: Back out last change.  Instead, do this...
89399         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89400         me_dummy member using the same `ignore'-testing code.
89401         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89402         fs_type strings.
89403         From Mark D. Roth.
89404
89405 2000-05-29  Jim Meyering  <meyering@lucent.com>
89406
89407         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89408         mounts with the `ignore' attribute.  Based on a patch from
89409         Mark D. Roth.
89410
89411 2000-05-28  Jim Meyering  <meyering@lucent.com>
89412
89413         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89414         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89415         * m4/stat.m4: Likewise.
89416         * m4/lstat.m4: Likewise.
89417         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89418
89419         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89420         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89421
89422 2000-05-26  Jim Meyering  <meyering@lucent.com>
89423
89424         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89425
89426 2000-05-24  Jim Meyering  <meyering@lucent.com>
89427
89428         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89429         autoconf requires that.
89430         * m4/lib-check.m4: Likewise.
89431         * m4/jm-macros.m4: Likewise.
89432         * m4/strftime.m4: Likewise.
89433
89434         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89435         AC_CHECK_DECLS, now that autoconf requires that.
89436
89437 2000-05-22  Jim Meyering  <meyering@lucent.com>
89438
89439         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89440         * m4/lstat.m4: Likewise.
89441
89442 2000-05-22  Jim Meyering  <meyering@lucent.com>
89443
89444         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89445
89446 2000-05-20  Jim Meyering  <meyering@lucent.com>
89447
89448         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89449         (jm_PREREQ): Use it.
89450
89451 2000-05-18  Jim Meyering  <meyering@lucent.com>
89452
89453         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89454         back, too, since it may have been modified by allocate_entry.
89455         (hash_delete): Rewrite to use neither the assignment operator
89456         nor the comma operator in an if-expression.
89457
89458 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89459
89460         * lib/closeout.c:
89461         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89462         Remove; no longer needed.
89463         "quotearg.h": Add include.
89464         (file_name): Do not bother to explicitly initialize to NULL; it's less
89465         efficient on some hosts.
89466         (close_stdout_status): Remove test as to whether stdout was already
89467         closed; it breaks for the case "echo x | sort >&-".
89468         Quote file name colons.
89469         Do not assume that _("write error") lacks format strings.
89470
89471 2000-05-15  Jim Meyering  <meyering@lucent.com>
89472
89473         * lib/version-etc.c (version_etc_copyright): Update the copyright
89474         string used in all --version output.
89475
89476 2000-05-14  Jim Meyering  <meyering@lucent.com>
89477
89478         * lib/closeout.c (close_stdout_set_file_name): New function.
89479         (close_stdout_status): Use new file-scoped global.
89480         Return right away if fstat says the stdout file descriptor is invalid.
89481         * lib/closeout.h (close_stdout_set_file_name): Declare.
89482
89483 2000-05-10  Jim Meyering  <meyering@lucent.com>
89484
89485         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89486         (close_stdout_set_status): New function.
89487         * lib/closeout.h (close_stdout_set_status): Declare.
89488
89489 2000-05-09  Jim Meyering  <meyering@lucent.com>
89490
89491         * m4/gettext.m4: Rename this...
89492         * m4/libintl.m4: ...to this.
89493
89494 2000-05-08  Jim Meyering  <meyering@lucent.com>
89495
89496         * lib/long-options.c: Don't include closeout.h.
89497         (parse_long_options): Don't call close_stdout for --version.
89498
89499 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89500
89501         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89502         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89503         2.1.3 bug.  This avoids a clash when files like regex.c define
89504         _GNU_SOURCE.
89505
89506 2000-05-06  Jim Meyering  <meyering@lucent.com>
89507
89508         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89509         (AC_REPLACE_FUNCS): Add strnlen.
89510
89511         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89512         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89513
89514         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89515         AC_SEARCH_LIBS call for nanosleep.
89516         (LIB_NANOSLEEP): Set and AC_SUBST.
89517
89518 2000-05-06  Jim Meyering  <meyering@lucent.com>
89519
89520         * lib/strnlen.c: Undefine __strnlen and strnlen.
89521         [!weak_alias]: Define __strnlen to strnlen.
89522
89523         * lib/atexit.c: New file, from libiberty.
89524
89525 2000-05-06  Jim Meyering  <meyering@lucent.com>
89526
89527         * lib/closeout.c (close_stdout_status): Also check for errors on the
89528         stderr stream.
89529
89530 2000-05-05  Jim Meyering  <meyering@lucent.com>
89531
89532         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89533         AC_SEARCH_LIBS call for clock_gettime.
89534         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89535
89536         * m4/search-libs.m4: Update from autoconf.
89537
89538         su doesn't work on Solaris 2.6.
89539         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89540         <shadow.h>.  Reported by Dragos Harabor.
89541
89542 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89543
89544         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89545         memcpy instead of xmalloc, xrealloc, path_concat.
89546         (locale_charset): Treat empty environment variables as absent.
89547         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89548
89549 2000-05-04  Jim Meyering  <meyering@lucent.com>
89550
89551         * lib/getopt.c: Update from glibc.
89552         * lib/obstack.c: Likewise.
89553         * lib/obstack.h: Likewise.
89554         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89555         file
89556
89557         * lib/regex.h: Likewise.
89558         * lib/strndup.c: Likewise.
89559         * lib/strnlen.c: New file, from glibc.
89560
89561 2000-05-03  Jim Meyering  <meyering@lucent.com>
89562
89563         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89564
89565 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89566
89567         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89568         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89569         compile-time test, rather than inspecting host and OS, to
89570         decide whether to define _LARGEFILE_SOURCE.
89571
89572 2000-05-01  Jim Meyering  <meyering@lucent.com>
89573
89574         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89575
89576         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89577         Based on a patch from Bruno Haible.
89578
89579 2000-05-01  Jim Meyering  <meyering@lucent.com>
89580
89581         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89582
89583 2000-04-29  Jim Meyering  <meyering@lucent.com>
89584
89585         * lib/path-concat.c: Declare strdup only if it's not defined.
89586         * lib/canon-host.c: Likewise.
89587
89588 2000-04-28  Jim Meyering  <meyering@lucent.com>
89589
89590         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89591         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89592         is included first, then limits.h is included by locale.h by libintl.h.
89593         From John David Anglin.
89594
89595 2000-04-25  Jim Meyering  <meyering@lucent.com>
89596
89597         * lib/makepath.c (S_IRWXUGO): Define.
89598         (make_path): Always perform explicit chmod if MODE specifies any
89599         of the `special' permission bits.  Prompted by a bug report against
89600         install from Mate Wierdl and Joost van Baal.
89601
89602 2000-04-18  Jim Meyering  <meyering@lucent.com>
89603
89604         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89605         (jm_PREREQ): Use it.
89606
89607 2000-04-18  Jim Meyering  <meyering@lucent.com>
89608
89609         * lib/README: New file.
89610
89611         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89612         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89613
89614 2000-04-17  Jim Meyering  <meyering@lucent.com>
89615
89616         Get it right :-)
89617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89618         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89619         Suggestion from Akim Demaille.
89620
89621 2000-04-17  Jim Meyering  <meyering@lucent.com>
89622
89623         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89624         the definition of it to rpl_strftime also defined-away the system's
89625         declaration.
89626
89627 2000-04-15  Jim Meyering  <meyering@lucent.com>
89628
89629         Use `C' to denote so-called `contiguous' files, the same way
89630         that tar does.
89631         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89632         (ftypelet): Use S_ISCTG.
89633         From Michael Deutschmann.
89634
89635 2000-04-14  Jim Meyering  <meyering@lucent.com>
89636
89637         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89638         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89639         clobbered.
89640
89641 2000-04-14  Jim Meyering  <meyering@lucent.com>
89642
89643         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89644
89645 2000-04-13  Jim Meyering  <meyering@lucent.com>
89646
89647         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89648         AH_VERBATIM to insert required #ifndef into config.h.in.
89649         Suggestion from Akim Demaille.
89650
89651 2000-04-12  Jim Meyering  <meyering@lucent.com>
89652
89653         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89654         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89655         Christian Krackowizer.
89656
89657         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89658         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89659         (AC_SYS_LARGEFILE): Require.
89660         (AM_C_PROTOTYPES): Require.
89661
89662 2000-04-08  Jim Meyering  <meyering@lucent.com>
89663
89664         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89665         names don't conflict.  Reported by Eli Zaretskii.
89666
89667 2000-04-07  Jim Meyering  <meyering@lucent.com>
89668
89669         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89670         sys/types.h, to work around system header problems on AIX 3.2.5.
89671         From Bruno Haible.
89672
89673 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89674
89675         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89676         bug.  Deal with the different error behavior of Irix iconv.
89677
89678 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89679
89680         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89681         IRIX if the installer said otherwise.
89682
89683 2000-04-05  Jim Meyering  <meyering@lucent.com>
89684
89685         Portability tweaks required for ultrix4.3.
89686         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89687         (jm_CHECK_DECLS): Add getutent to the list of functions.
89688         (_jm_DECL_HEADERS): Add utmpx.h.
89689         From John David Anglin.
89690
89691         * m4/strftime.m4: Back out the 2000-04-02 change.
89692         Instead of that change, simply undefine putenv in the test program.
89693
89694 2000-04-05  Jim Meyering  <meyering@lucent.com>
89695
89696         Portability tweaks required for ultrix4.3.
89697         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89698         getutent.
89699         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89700         * lib/canon-host.c: Declare strdup.
89701         * lib/path-concat.c: Likewise.
89702         From John David Anglin.
89703
89704 2000-04-04  Jim Meyering  <meyering@lucent.com>
89705
89706         Be more DOS 8.3-friendly.
89707         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89708         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89709         * lib/Makefile.am: Reflect renaming.
89710         Reported by Eli Zaretskii.
89711
89712         Use a temporary file name that won't clash with `charset.alias'
89713         in the DOS 8.3 name space.
89714         * lib/Makefile.am (charset_tmp): Define.
89715         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89716         (uninstall-local): Likewise.
89717         Reported by Eli Zaretskii.
89718
89719 2000-04-03  Jim Meyering  <meyering@lucent.com>
89720
89721         * m4/gettext.m4: Fix typo in comment.
89722
89723         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89724         textutils/configure.in).  Suggestion from Paul Eggert.
89725         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89726
89727 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89728
89729         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89730         variable in the shell rather than using putenv, which isn't
89731         portable.  This avoids the configure-time inter-test dependency
89732         on the potentially-renamed putenv function.
89733
89734 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89735
89736         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89737         before checking struct stat.st_blksize, so that
89738         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89739
89740 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89741
89742         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89743         since strftime.c uses HAVE_STRFTIME to decide whether to use
89744         the underlying strftime.
89745
89746 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89747
89748         * lib/time/strftime.c (my_strftime): Make sure we call the system
89749         strftime, not ourselves, when invoking the underlying strftime.
89750
89751 2000-03-24  Jim Meyering  <meyering@lucent.com>
89752
89753         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89754         (charset_alias): Define.
89755         (install-exec-local): Factor out common code.
89756         (uninstall-local): Split lines longer than 80.
89757         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89758         (SUFFIXES): Define.
89759         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89760         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89761
89762 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89763
89764         * lib/config.charset: Output a line containing "Packages using this
89765         file".
89766         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89767         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89768         ref-del.sed): New rules.
89769
89770 2000-03-17  Jim Meyering  <meyering@lucent.com>
89771
89772         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89773         Otherwise, include <strings.h>
89774
89775 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89776
89777         * lib/unicodeio.c (utf8_wctomb): New function.
89778         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89779         format instead of in UCS-4 with platform dependent endianness.
89780
89781 2000-03-10  Jim Meyering  <meyering@lucent.com>
89782
89783         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89784         From Marco Franzen.
89785
89786 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89787
89788         * lib/savedir.c (savedir): Work even if directory size is
89789         negative; this can happen with some screwy NFS configurations.
89790
89791 2000-03-06  Jim Meyering  <meyering@lucent.com>
89792
89793         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89794         if it's NULL (because we ran out of memory).  From Bruno Haible.
89795
89796 2000-03-05  Jim Meyering  <meyering@lucent.com>
89797
89798         * lib/localcharset.c ("path-concat.h"): Include.
89799         (get_charset_aliases): Use path_concat instead of ANSI string
89800         concatenation.
89801
89802         * lib/unicodeio.h (PARAMS): Define.
89803         Use it to guard prototype.
89804
89805 2000-03-04  Jim Meyering  <meyering@lucent.com>
89806
89807         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89808         for lib/localcharset.c.
89809
89810 2000-03-04  Jim Meyering  <meyering@lucent.com>
89811
89812         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89813         installing into it.
89814         (uninstall-local): Uncomment this rule so `make distcheck' works
89815         once again.
89816
89817         * lib/unicodeio.c (<errno.h>): Include it.
89818         (errno): Declare if not defined.
89819
89820         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89821
89822         * lib/config.charset: New version, incorporating remarks from a linux
89823         i18n mailing list.  From Bruno Haible.
89824
89825 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89826
89827         * m4/codeset.m4: New file.
89828         * m4/iconv.m4: New file.
89829         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89830
89831 2000-03-03  Jim Meyering  <meyering@lucent.com>
89832
89833         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89834
89835 2000-03-02  Jim Meyering  <meyering@lucent.com>
89836
89837         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89838         the messages come out on separate lines.
89839
89840         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89841         rather than jm_CHECK_DECLARATIONS.
89842         * m4/decl.m4: Remove now-unused file.
89843
89844         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89845         geteuid.
89846
89847 2000-03-02  Jim Meyering  <meyering@lucent.com>
89848
89849         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89850
89851 2000-03-01  Jim Meyering  <meyering@lucent.com>
89852
89853         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89854         * lib/unicodeio.c: Likewise.
89855
89856 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89857
89858         * lib/config.charset: New file.
89859         * lib/localcharset.c: New file.
89860         * lib/unicodeio.h, lib/unicodeio.c: New files.
89861         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89862         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89863         (noinst_HEADERS): Add unicodeio.h.
89864         (all-local, install-exec-local, charset.alias): New targets.
89865
89866 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89867
89868         * lib/quotearg.c (ALERT_CHAR): New macro.
89869         (quotearg_buffer_restyled): Use it.
89870
89871 2000-02-27  Jim Meyering  <meyering@lucent.com>
89872
89873         * m4/check-decl.m4: Add getenv to the list.
89874
89875 2000-02-27  Jim Meyering  <meyering@lucent.com>
89876
89877         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89878         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89879
89880         * lib/backupfile.c: Guard inclusion of stdlib.h with
89881         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89882         Declare malloc if needed.
89883
89884         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89885         `#ifndef HAVE_DECL..'
89886         now that autoconf always defines the HAVE_DECL_ symbols.
89887         * lib/human.c: Likewise.
89888         * lib/same.c: Likewise.
89889         * lib/strtoumax.c: Likewise.
89890
89891         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89892         declaration check was not run.
89893         * lib/hash.c: Likewise.
89894         * lib/human.c: Likewise.
89895         * lib/same.c: Likewise.
89896         * lib/strtoumax.c: Likewise.
89897
89898         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89899         `.', then first look up the entire `.'-containing string as a login
89900         name.
89901
89902 2000-02-23  Jim Meyering  <meyering@lucent.com>
89903
89904         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89905         in place of my hack.
89906
89907 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89908
89909         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89910         (textint): New typedef.
89911         (parser_control): Member year changed from int to textint.
89912         All uses changed.
89913         (YYSTYPE): Removed; replaced by %union with int and textint members.
89914         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89915         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89916         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89917         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89918         (date, number, to_year): Use width of number in digits, not its value,
89919         to determine whether it's a 2-digit year, or a 2-digit time.
89920         (yylex): Store number of digits of numeric tokens.
89921         Reported by John Kendall.
89922
89923         (parser_control): Changed from struct parser_control to typedef (for
89924         consistency).  All uses changed.
89925
89926         (tID): Removed; not used.
89927         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89928
89929 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89930
89931         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89932         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89933
89934 2000-02-12  Jim Meyering  <meyering@lucent.com>
89935
89936         * lib/userspec.c (ISDIGIT): Define it.
89937         (isdigit): Remove definition.
89938         (is_number): Use ISDIGIT, not isdigit.
89939         <libintl.h>: Include.
89940         (_ and N_): Define.
89941         (parse_user_spec): Mark translatable strings.
89942
89943 2000-02-10  Jim Meyering  <meyering@lucent.com>
89944
89945         With these changes, nanosleep.[ch] are finally enough like the other
89946         lib/* replacement files to compile on a few more losing systems.
89947
89948         * lib/nanosleep.h: Don't include config.h.
89949         Remove prototype from declaration of nanosleep.
89950         (PARAMS): Remove now-unneeded definition.
89951         * lib/nanosleep.c: #undef nanosleep.
89952         (rpl_nanosleep): Rename from nanosleep.
89953
89954 2000-02-10  Jim Meyering  <meyering@lucent.com>
89955
89956         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89957         gnu_nanosleep to rpl_nanosleep.
89958
89959 2000-02-09  Jim Meyering  <meyering@lucent.com>
89960
89961         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89962         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89963
89964 2000-02-08  Akim Demaille  <akim@epita.fr>
89965
89966         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89967         `[' and `]' and remove uses of `changequote'.
89968         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89969         (AC_SYS_LARGEFILE): Likewise.
89970         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89971         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89972         of changequote.
89973         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89974         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89975         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89976         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89977
89978 2000-02-05  Jim Meyering  <meyering@lucent.com>
89979
89980         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89981         Remove explicit use of AC_HEADER_TIME.  It is required by
89982         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89983         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89984         in autoconf whereby the expansion of the latter ended up preceding
89985         the expansion of its prerequisite, AC_HEADER_TIME.
89986         Reported by Volker Borchert.
89987
89988 2000-02-03  Jim Meyering  <meyering@lucent.com>
89989
89990         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89991
89992 2000-02-03  Jim Meyering  <meyering@lucent.com>
89993
89994         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89995         rather than with `#if HAVE_UTMPNAME'.
89996
89997 2000-02-02  Jim Meyering  <meyering@lucent.com>
89998
89999         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90000         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90001         Reported by Eli Zaretskii.
90002
90003 2000-02-01  Jim Meyering  <meyering@lucent.com>
90004
90005         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90006
90007 2000-01-31  Jim Meyering  <meyering@lucent.com>
90008
90009         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90010         functions.  Add the time.h and sys/time.h headers along with the
90011         AC_REQUIRE'ment of AC_HEADER_TIME.
90012
90013 2000-01-31  Jim Meyering  <meyering@lucent.com>
90014
90015         * lib/nanosleep.h (nanosleep): Guard declaration with
90016         `#if ! HAVE_DECL_NANOSLEEP'.
90017         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90018         the declaration in that vendor's sys/timers.h.
90019         Reported by Christian Krackowizer.
90020
90021         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90022         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90023         (ISPRINT): Likewise.
90024         Reported by Tom Tromey.
90025
90026 2000-01-30  Jim Meyering  <meyering@lucent.com>
90027
90028         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90029
90030         * m4/prereq.m4 (utmp_includes): Define.
90031         Check for ut_user and ut_name members in both struct utmpx
90032         and struct utmp.
90033
90034 2000-01-30  Jim Meyering  <meyering@lucent.com>
90035
90036         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90037         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90038         header files where only utmpx.ut_user is declared.
90039
90040         * lib/readutmp.h (UT_USER): Define.
90041
90042 2000-01-29  Jim Meyering  <meyering@lucent.com>
90043
90044         * m4/lib-check.m4: New file containing library-related checks from
90045         fileutils and sh-utils (textutils had none).
90046
90047 2000-01-28  Jim Meyering  <meyering@lucent.com>
90048
90049         * m4/perl.m4: Change format of warning message to look more like that
90050         from the missing script.  Suggestion from François Pinard.
90051
90052 2000-01-25  Jim Meyering  <meyering@lucent.com>
90053
90054         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90055         well as time.h in the compile check.
90056         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90057         Fix typo in cross-compiling case: s/yes/no/.
90058
90059 2000-01-23  Jim Meyering  <meyering@lucent.com>
90060
90061         * m4/jm-macros.m4: Move df-related tests here from
90062         fileutils/configure.in
90063
90064         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90065         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90066
90067         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90068         s/space/ac_fsusage_space/.
90069         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90070
90071         * m4/ftruncate.m4: New file (derived from part of
90072         fileutils/configure.in).
90073         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90074         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90075
90076         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90077         AC_SUBST these here, rather than just in sh-util/configure.in, so
90078         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90079         all the same.
90080         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90081         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90082         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90083         (AC_SUBST(POW_LIBM)): Likewise.
90084         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90085
90086 2000-01-23  Jim Meyering  <meyering@lucent.com>
90087
90088         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90089         obstack.c.
90090
90091 2000-01-22  Jim Meyering  <meyering@lucent.com>
90092
90093         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90094
90095         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90096
90097         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90098         configure.in
90099         (AC_CHECK_HEADERS): Likewise for sh-utils.
90100         (AC_CHECK_HEADERS): Likewise for textutils.
90101         Merge the three lists of headers.
90102
90103         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90104         from fileutils' configure.in.
90105
90106         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90107         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90108         check-decl.m4.
90109
90110         * m4/check-decl.m4: Use #if rather than #ifdef.
90111         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90112         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90113         (_jm_DECL_HEADERS): Define new function.
90114         (jm_CHECK_DECLARATIONS): Require it.
90115
90116 2000-01-22  Jim Meyering  <meyering@lucent.com>
90117
90118         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90119         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90120         Required for some AIX systems.  Reported by Christian Krackowizer.
90121         [TESTING] (main): New function.
90122
90123         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90124         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90125         letters.
90126
90127         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90128         iswprint.
90129
90130         * lib/strverscmp.c (ISDIGIT): Define.
90131         (strverscmp): Use ISDIGIT, not isdigit.
90132
90133 2000-01-19  Jim Meyering  <meyering@lucent.com>
90134
90135         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90136         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90137         defines `struct timespec' in <sys/time.h>
90138
90139         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90140         Thanks to Akim for explaining.
90141
90142 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90143
90144         * lib/nanosleep.c (nanosleep):
90145         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90146         POSIX.1 doesn't require SA_INTERRUPT and some systems
90147         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90148         it's been part of POSIX.1 since day 1 (in 1988).
90149
90150 2000-01-17  Jim Meyering  <meyering@lucent.com>
90151
90152         * lib/interlock: Remove unused file.  Reported by François Pinard.
90153
90154 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90155
90156         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90157         alert, backslash, formfeed, and vertical tab unnecessarily in
90158         shell quoting style.
90159
90160 2000-01-16  Jim Meyering  <meyering@lucent.com>
90161
90162         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90163         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90164         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90165         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90166
90167 2000-01-16  Jim Meyering  <meyering@lucent.com>
90168
90169         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90170         because the latter didn't work.
90171
90172 2000-01-15  Jim Meyering  <meyering@lucent.com>
90173
90174         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90175         (AC_REPLACE_FUNCS): Add memcpy and memset.
90176         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90177         Add strpbrk.
90178         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90179
90180 2000-01-12  Jim Meyering  <meyering@lucent.com>
90181
90182         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90183         (jm_PREREQ): Use it.
90184         (jm_PREREQ_READUTMP): New macro.
90185         (jm_PREREQ): Use it.
90186
90187 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90188
90189         Quote multibyte characters correctly.
90190         * m4/c-bs-a.m4: New file.
90191         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90192         (jm_PREREQ): Use it.
90193
90194 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90195
90196         * m4/uintmax_t.m4: Port to autoconf 2.13.
90197
90198 2000-01-08  Jim Meyering  <meyering@ascend.com>
90199
90200         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90201         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90202
90203 2000-01-04  Jim Meyering  <meyering@ascend.com>
90204
90205         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90206         jm_STRUCT_DIRENT_D_TYPE.
90207         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90208         jm_STRUCT_DIRENT_D_INO.
90209         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90210         jm_STRUCT_UTIMBUF.
90211         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90212         renamings.
90213         * m4/utime.m4: Likewise.
90214
90215         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90216         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90217
90218 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90219
90220         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90221         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90222
90223 2000-01-02  Jim Meyering  <meyering@ascend.com>
90224
90225         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90226         remember if this is necessary.
90227
90228 1999-12-26  Jim Meyering  <meyering@ascend.com>
90229
90230         * m4/jm-macros.m4: Use it here.
90231         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90232
90233 1999-12-23  Jim Meyering  <meyering@ascend.com>
90234
90235         * m4/jm-macros.m4: Check for clock_gettime (moved from
90236         fileutils/configure.in)
90237         Check for gettimeofday.
90238
90239 1999-12-20  Jim Meyering  <meyering@ascend.com>
90240
90241         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90242         autoconf-2.14a-1999-12-20.
90243
90244 1999-12-19  Jim Meyering  <meyering@ascend.com>
90245
90246         * m4/lstat-slash.m4: New file.
90247         * m4/jm-macros.m4: Use the new macro:
90248         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90249
90250 1999-12-07  Jim Meyering  <meyering@ascend.com>
90251
90252         * m4/perl.m4: Require that File::Compare be available, too.
90253         Too many systems seem to lack it.
90254
90255         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90256         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90257
90258 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90259
90260         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90261         problem with the QNX 4.25 shell, which doesn't propagate exit
90262         status of failed commands inside shell assignments.
90263
90264 1999-11-17  Jim Meyering  <meyering@ascend.com>
90265
90266         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90267
90268 1999-11-07  Jim Meyering  <meyering@ascend.com>
90269
90270         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90271
90272 1999-11-06  Jim Meyering  <meyering@ascend.com>
90273
90274         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90275         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90276
90277 1999-11-05  Jim Meyering  <meyering@ascend.com>
90278
90279         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90280         configure.in of textutils, fileutils, and sh-utils into this one
90281         (shared between those packages) file.
90282         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90283         AC_STRUCT_ST_BLKSIZE.
90284
90285 1999-11-03  Jim Meyering  <meyering@ascend.com>
90286
90287         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90288         of AC_CHECK_TYPE checks includes unistd.h.
90289         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90290         Suggestion from Akim Demaille.
90291
90292 1999-10-30  Jim Meyering  <meyering@ascend.com>
90293
90294         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90295         m4-quoted string.
90296         * m4/ls-mntd-fs.m4: Likewise.
90297         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90298         * m4/jm-winsz1.m4: Likewise.
90299
90300         * m4/const.m4: Remove file, since the fix made it into the experimental
90301         version of autoconf.
90302         * m4/mktime.m4: Likewise.
90303
90304         * m4/check-type.m4: Remove file, now that the latest version of
90305         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90306
90307         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90308         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90309         AC_CHECK_TYPE.
90310
90311 1999-10-04  Jim Meyering  <meyering@ascend.com>
90312
90313         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90314
90315 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90316
90317         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90318         2.95.1 bug with HP-UX 10.20.
90319
90320 1999-09-17  Jim Meyering  <meyering@ascend.com>
90321
90322         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90323         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90324         due to missing strdup (against sh-utils-2.0).
90325
90326 1999-08-29  Jim Meyering  <meyering@ascend.com>
90327
90328         * m4/jm-macros.m4: Require jm_BISON.
90329         * m4/bison.m4: New file.
90330
90331 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90332
90333         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90334         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90335
90336 1999-08-05  Jim Meyering  <meyering@ascend.com>
90337
90338         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90339         to avoid conflicts with `conftest' on 8+3 filesystems.
90340         Suggestion from Eli Zaretskii.
90341
90342 1999-08-04  Jim Meyering  <meyering@ascend.com>
90343
90344         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90345         fileutils and sh-utils (textutils's getline test was inadequate).
90346         (AM_FUNC_GETLINE): Run this test.
90347         (AC_CHECK_FUNCS): Check for getdelim.
90348         Reported by Bob Proulx.
90349
90350 1999-08-02  Jim Meyering  <meyering@ascend.com>
90351
90352         * m4/jm-macros.m4: Add a comment.
90353
90354 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90355
90356         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90357         <inttypes.h> defines strtoumax as a macro (and not as a
90358         function).
90359
90360 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90361
90362         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90363         that we can shift, multiply and divide unsigned long long
90364         values; Ultrix cc can't do it.
90365
90366 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90367
90368         * m4/mktime.m4: New file, which is a preview of what should appear
90369         in the next public autoconf release.
90370
90371 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90372
90373         * m4/lfs.m4: Remove this file.
90374         * m4/largefile.m4: New file.  It contains the old contents of
90375         lfs.m4, except that all names with prefix AC_LFS have been
90376         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90377         compatible with future autoconf versions.  Also, some minor m4
90378         quoting problems have been fixed.
90379
90380 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90381
90382         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90383         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90384         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90385         and simplify the shell code.
90386
90387 1999-08-01  Jim Meyering  <meyering@ascend.com>
90388
90389         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90390         m4.
90391
90392 1999-07-20  Jim Meyering  <meyering@ascend.com>
90393
90394         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90395
90396 1999-07-15  Jim Meyering  <meyering@ascend.com>
90397
90398         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90399
90400 1999-05-22  Jim Meyering  <meyering@ascend.com>
90401
90402         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90403
90404 1999-05-20  Jim Meyering  <meyering@ascend.com>
90405
90406         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90407         Add a colon after each `then' in case $4 is empty.
90408
90409 1999-05-16  Jim Meyering  <meyering@ascend.com>
90410
90411         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90412
90413 1999-05-10  Jim Meyering  <meyering@ascend.com>
90414
90415         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90416
90417         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90418         AC_FUNC_MKTIME.
90419
90420 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90421
90422         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90423
90424 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90425
90426         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90427         not CPPFLAGS, so that linking works correctly in IRIX.
90428
90429 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90430
90431         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90432
90433 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90434
90435         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90436         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90437         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90438         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90439         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90440
90441         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90442
90443 1999-04-20  Jim Meyering  <meyering@ascend.com>
90444
90445         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90446         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90447         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90448
90449 1999-04-18  Jim Meyering  <meyering@ascend.com>
90450
90451         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90452         * m4/jm-macros.m4: Use it.
90453
90454 1999-04-06  Jim Meyering  <meyering@ascend.com>
90455
90456         * m4/strftime.m4: Remove test for %f.
90457
90458 1999-03-29  Jim Meyering  <meyering@ascend.com>
90459
90460         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90461         superset of the AC_TYPE_* checks in the textutils, fileutils,
90462         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90463         AC_TYPE_PID_T.
90464
90465 1999-03-28  Jim Meyering  <meyering@ascend.com>
90466
90467         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90468         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90469         replaced e.g., in the *.sh files of the sh-utils.
90470
90471 1999-03-20  Jim Meyering  <meyering@ascend.com>
90472
90473         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90474         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90475         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90476
90477 1999-03-19  Jim Meyering  <meyering@ascend.com>
90478
90479         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90480
90481 1999-03-12  Jim Meyering  <meyering@ascend.com>
90482
90483         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90484
90485 1999-03-07  Jim Meyering  <meyering@ascend.com>
90486
90487         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90488         declared.
90489
90490 1999-02-17  Jim Meyering  <meyering@ascend.com>
90491
90492         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90493         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90494
90495 1999-02-07  Jim Meyering  <meyering@ascend.com>
90496
90497         * m4/group-member.m4: New file -- extracted from sh-utils'
90498         configure.in.
90499
90500         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90501         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90502
90503 1999-02-06  Jim Meyering  <meyering@ascend.com>
90504
90505         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90506         * m4/fnmatch.m4: Likewise.
90507         * m4/getgroups.m4: Likewise.
90508         * m4/lstat.m4: Likewise.
90509         * m4/malloc.m4: Likewise.
90510         * m4/putenv.m4: Likewise.
90511         * m4/realloc.m4: Likewise.
90512         * m4/regex.m4: Likewise.
90513         * m4/stat.m4: Likewise.
90514         * m4/strftime.m4: Likewise.
90515         Suggestion from Alain Magloire.
90516
90517         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90518         * m4/fnmatch.m4: Likewise.
90519         * m4/getgroups.m4: Likewise.
90520         * m4/getline.m4: Likewise.
90521         * m4/lstat.m4: Likewise.
90522         * m4/malloc.m4: Likewise.
90523         * m4/memcmp.m4: Likewise.
90524         * m4/putenv.m4: Likewise.
90525         * m4/realloc.m4: Likewise.
90526         * m4/regex.m4: Likewise.
90527         * m4/stat.m4: Likewise.
90528         * m4/strftime.m4: Likewise.
90529         Suggestion from Alain Magloire.
90530
90531         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90532         an argument.
90533
90534         * m4/regex.m4: Add a run-time Test for proper operation of
90535         re_compile_pattern.
90536
90537 1999-01-31  Jim Meyering  <meyering@ascend.com>
90538
90539         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90540
90541 1999-01-30  Jim Meyering  <meyering@ascend.com>
90542
90543         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90544
90545         * m4/jm-mktime.m4: Make this a wrapper around the official
90546         AM_FUNC_MKTIME rather than my private copy, now that the official one
90547         is up to date.
90548         * m4/mktime.m4: Remove file.
90549
90550         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90551         * m4/uptime.m4: Likewise.
90552         * m4/uintmax_t.m4: Likewise.
90553
90554 1999-01-28  Jim Meyering  <meyering@ascend.com>
90555
90556         * m4/jm-macros.m4: Use jm_AFS.
90557         * m4/afs.m4: New file (from fileutils' configure.in).
90558
90559         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90560         * m4/chown.m4: Likewise.
90561         * m4/d-ino.m4: Likewise.
90562         * m4/d-type.m4: Likewise.
90563         * m4/fnmatch.m4: Likewise.
90564         * m4/getgroups.m4: Likewise.
90565         * m4/gettext.m4: Likewise.
90566         * m4/jm-mktime.m4: Likewise.
90567         * m4/jm-winsz2.m4: Likewise.
90568         * m4/lcmessage.m4: Likewise.
90569         * m4/ls-mntd-fs.m4: Likewise.
90570         * m4/malloc.m4: Likewise.
90571         * m4/memcmp.m4: Likewise.
90572         * m4/putenv.m4: Likewise.
90573         * m4/realloc.m4: Likewise.
90574         * m4/st_mtim.m4: Likewise.
90575         * m4/strftime.m4: Likewise.
90576
90577 1999-01-16  Jim Meyering  <meyering@ascend.com>
90578
90579         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90580         (ARGMATCH_DIE_DECL): Define.
90581
90582 1999-01-12  Jim Meyering  <meyering@ascend.com>
90583
90584         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90585         Reported by Lars Hecking.
90586
90587 1999-01-10  Jim Meyering  <meyering@ascend.com>
90588
90589         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90590         gross kludge.
90591         * m4/inttypes_h.m4: Likewise.
90592         * m4/lstat.m4: Likewise.
90593         * m4/malloc.m4: Likewise.
90594         * m4/readdir.m4: Likewise.
90595         * m4/realloc.m4: Likewise.
90596         * m4/st_dm_mode.m4: Likewise.
90597         * m4/stat.m4: Likewise.
90598         * m4/utimbuf.m4: Likewise.
90599         * m4/utimes.m4: Likewise.
90600
90601         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90602         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90603         comments in config.h.in are meaningful.
90604
90605         * m4/jm-macros.m4: Require autoconf-2.13 here.
90606
90607         * m4/regex.m4: By default, don't use the included regex.c on systems
90608         with glibc 2.  Suggestion from Uli Drepper.
90609
90610 1999-01-02  Jim Meyering  <meyering@ascend.com>
90611
90612         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90613
90614 1998-12-18  Jim Meyering  <meyering@ascend.com>
90615
90616         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90617         Based on a suggestion from Lars Hecking.
90618
90619 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90620
90621         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90622
90623 1998-11-16  Jim Meyering  <meyering@ascend.com>
90624
90625         * m4/lfs.m4: Double-quote the `uname...` expression.
90626
90627 1998-11-14  Jim Meyering  <meyering@ascend.com>
90628
90629         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90630         * m4/stat.m4: Likewise.
90631
90632 1998-11-03  Jim Meyering  <meyering@ascend.com>
90633
90634         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90635         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90636
90637 1998-10-18  Jim Meyering  <meyering@ascend.com>
90638
90639         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90640
90641 1998-10-17  Jim Meyering  <meyering@ascend.com>
90642
90643         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90644         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90645         calls for those previously hard-coded headers.  Instead, take a new
90646         parameter.
90647         (jm_CHECK_DECLARATIONS): Reflect interface change.
90648         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90649         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90650
90651         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90652
90653 1998-10-14  Jim Meyering  <meyering@ascend.com>
90654
90655         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90656         instead of "TZ=America/Vancouver".  From Paul Eggert.
90657
90658 1998-10-11  Jim Meyering  <meyering@ascend.com>
90659
90660         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90661         This adds a test for a recently added compatibility fix for mktime.c.
90662         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90663
90664 1998-09-27  Jim Meyering  <meyering@ascend.com>
90665
90666         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90667
90668         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90669         ../configure.in, including a change from Gordon Matzigkeit to allow
90670         cross-compiling for the Hurd.
90671
90672         * m4/glibc.m4: New file/macro to test for the GNU C Library
90673         versions 1 and 2.  From Gordon Matzigkeit.
90674         Indent.
90675
90676 1998-09-21  Jim Meyering  <meyering@ascend.com>
90677
90678         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90679
90680 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90681
90682         Port nanosecond-resolution times to UnixWare 2.1.2 and
90683         pedantic Solaris 2.6.
90684
90685         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90686         AC_STRUCT_ST_MTIM.
90687         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90688         Generate name of ns member, instead of just 1 or undef.
90689         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90690
90691 1998-08-15  Jim Meyering  <meyering@ascend.com>
90692
90693         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90694         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90695         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90696         instead of jm_TYPE_SSIZE_T.
90697
90698 1998-08-12  Jim Meyering  <meyering@ascend.com>
90699
90700         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90701
90702 1998-08-02  Jim Meyering  <meyering@ascend.com>
90703
90704         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90705         in acconfig.h manually.
90706
90707 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90708
90709         * m4/st_mtim.m4: New file.
90710
90711 1998-07-28  Jim Meyering  <meyering@ascend.com>
90712
90713         * m4/utimes.m4: Undef stat.
90714
90715 1998-07-25  Jim Meyering  <meyering@ascend.com>
90716
90717         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90718         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90719
90720 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90721
90722         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90723         uid and gid actually remain unchanged.
90724
90725 1998-07-07  Jim Meyering  <meyering@ascend.com>
90726
90727         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90728
90729 1998-07-04  Jim Meyering  <meyering@ascend.com>
90730
90731         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90732         to prove that this macro can be used in packages without regex.c.
90733
90734 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90735
90736         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90737         is to be used.
90738
90739 1998-07-03  Jim Meyering  <meyering@ascend.com>
90740
90741         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90742
90743         * m4/gettext.m4: New file -- from gettext-0.10.35.
90744         * m4/lcmessage.m4: Likewise.
90745         * m4/progtest.m4: Likewise.
90746
90747         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90748         * m4/jm-macros.m4: Require the new macro.
90749
90750 1998-06-29  Jim Meyering  <meyering@ascend.com>
90751
90752         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90753         for the definition of NGROUPS (used in a system header included
90754         by sys/mount.h).
90755
90756 1998-06-28  Jim Meyering  <meyering@ascend.com>
90757
90758         * m4/ls-mntd-fs.m4: New file.
90759         * m4/fstypename.m4: New file.
90760
90761         * m4/jm-macros.m4: Require the new macro.
90762         * m4/jm-glibc-io.m4: New file.
90763
90764 1998-05-19  Jim Meyering  <meyering@ascend.com>
90765
90766         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90767         * m4/lchown.m4: New file.
90768
90769         * m4/Makefile.am.in: New file.
90770         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90771
90772 1998-05-14  Jim Meyering  <meyering@ascend.com>
90773
90774         * m4/Makefile.am (EXTRA_DIST): Add them.
90775         * m4/jm-macros.m4: New file.
90776         * m4/utimbuf.m4: New file.
90777
90778 1998-05-12  Jim Meyering  <meyering@ascend.com>
90779
90780         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90781
90782 1998-05-11  Jim Meyering  <meyering@ascend.com>
90783
90784         * m4/isc-posix.m4: New file.
90785
90786 1998-05-10  Jim Meyering  <meyering@ascend.com>
90787
90788         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90789
90790 1998-05-09  Jim Meyering  <meyering@ascend.com>
90791
90792         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90793         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90794         with automake.
90795
90796         * m4/ssize_t.m4: New file.
90797         * m4/mktime.m4: Remove file -- the new automake has this now.
90798
90799 1998-04-26  Jim Meyering  <meyering@ascend.com>
90800
90801         * m4/assert.m4: New file.
90802         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90803
90804 1998-04-05  Jim Meyering  <meyering@ascend.com>
90805
90806         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90807         (jm_PREREQ): Use it here.
90808
90809 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90810
90811         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90812         in acconfig.h.
90813
90814 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90815
90816         * m4/prereq.m4: New file.
90817         * m4/error.m4: New file.
90818         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90819
90820 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90821
90822         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90823         cache-check for the same variable -- that defeated the purpose of
90824         the test; the test program was never run.  This was a problem only
90825         on systems with losing getline functions -- HP-UX 10.20 is one.
90826         Reported by Bjorn Helgaas.
90827
90828 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90829
90830         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90831
90832 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90833
90834         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90835
90836         * m4/const.m4: New file.  Use an initializer in this declaration
90837         typedef int charset[2]; const charset x;
90838         Reported by Bob Glickstein.
90839
90840 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90841
90842         * m4/chown.m4: Fix reversed types on -1 args to chown.
90843         From Kaveh Ghazi.
90844
90845 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90846
90847         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90848         Add lseek and memchr.
90849
90850         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90851         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90852         have a 20-character limit on names.
90853
90854 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90855
90856         * m4/inttypes_h.m4: New file.
90857         * m4/uintmax_t.m4: New file.
90858         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90859
90860
90861         -----
90862
90863         Local Variables:
90864         coding: utf-8
90865         End:
90866
90867         Copyright (C) 1997-2012 Free Software Foundation, Inc.
90868
90869         Copying and distribution of this file, with or without
90870         modification, are permitted provided the copyright notice
90871         and this notice are preserved.