Fix for mingw with MSVC9.
[gnulib.git] / ChangeLog
1 2012-01-07  Simon Josefsson  <simon@josefsson.org>
2
3         Fix for mingw with MSVC9.
4         * m4/ld-version-script.m4: Check that compiler rejects version
5         scripts with syntax errors.  Reported by Bruno Haible
6         <bruno@clisp.org>.
7
8 2012-01-06  Bruno Haible  <bruno@clisp.org>
9
10         Talk about "native Windows API", not "Woe32".
11         * lib/accept4.c: Update comments to mention native Windows.
12         * lib/execute.c: Likewise.
13         * lib/fatal-signal.c: Likewise.
14         * lib/localcharset.c: Likewise.
15         * lib/nanosleep.c: Likewise.
16         * lib/nl_langinfo.c: Likewise.
17         * lib/pclose.c: Likewise.
18         * lib/pipe-filter-gi.c: Likewise.
19         * lib/pipe-filter-ii.c: Likewise.
20         * lib/pipe.c: Likewise.
21         * lib/pipe2.c: Likewise.
22         * lib/popen.c: Likewise.
23         * lib/progreloc.c: Likewise.
24         * lib/relocatable.c: Likewise.
25         * lib/sigaction.c: Likewise.
26         * lib/sigprocmask.c: Likewise.
27         * lib/spawn-pipe.h: Likewise.
28         * lib/spawn-pipe.c: Likewise.
29         * lib/spawni.c: Likewise.
30         * lib/stat-time.h: Likewise.
31         * lib/w32spawn.h: Likewise.
32         * tests/test-isatty.c: Likewise.
33         * lib/config.charset: More comments.
34         * doc/gnulib-intro.texi: Mention native Windows.
35         * doc/posix-functions/_Exit_C99.texi: Likewise.
36         * doc/posix-headers/fcntl.texi: Likewise.
37
38 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
39
40         argp: Avoid crash if translator uses % characters in a translation.
41         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
42         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43
44 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
45
46         doc: C11 and C++11 are now official
47         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
48         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
49         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
50         * modules/stdalign:
51         Replace references to draft C1X to C11, and to draft C++0X to C++11.
52
53 2012-01-06  Bruno Haible  <bruno@clisp.org>
54
55         uc-is-grapheme-break tests: Tweak.
56         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
57         message.
58
59 2012-01-06  Bruno Haible  <bruno@clisp.org>
60
61         test-init.sh: correct the test for diff -u
62         * tests/test-init.sh: Also redirect stdout to /dev/null.
63
64 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65
66         Use ', not `, for quoting output.
67         * build-aux/announce-gen (usage, sizes, print_news_deltas)
68         (print_changelog_deltas, get_tool_versions, main program):
69         * build-aux/git-version-gen:
70         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
71         * build-aux/move-if-change (help):
72         * build-aux/useless-if-before-free (usage, main program):
73         * check-module (parse_module_file, usage)
74         (find_included_lib_files, check_module):
75         * lib/argmatch.c (main) [TEST]:
76         * lib/argp-help.c (_help):
77         * lib/getopt1.c (main) [TEST]:
78         * lib/git-merge-changelog.c (usage):
79         * lib/xstrtol-error.c (xstrtol_error):
80         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
81         * m4/argz.m4 (gl_FUNC_ARGZ):
82         * m4/bison.m4 (gl_BISON):
83         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
84         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
85         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
86         * m4/fpending.m4 (gl_PREREQ_FPENDING):
87         * m4/gc-random.m4 (gl_GC_RANDOM):
88         * m4/intl.m4 (gt_CHECK_DECL):
89         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
90         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
91         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
92         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
93         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
94         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
95         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
96         * tests/test-dirname.c (main):
97         * tests/test-getpass.c (main):
98         * tests/test-iconvme.c (main):
99         * tests/test-parse-datetime.c (LOG):
100         * tests/test-xstrtoimax.sh:
101         * tests/test-xstrtol.sh:
102         * tests/test-xstrtoll.sh:
103         * tests/test-xstrtoumax.sh:
104         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
105         * top/GNUmakefile (abort-due-to-no-makefile):
106         Quote 'like this', not `like this', as per the recent change to
107         the GNU coding standards.
108
109 2012-01-05  Bruno Haible  <bruno@clisp.org>
110
111         strtoimax: Don't force a replacement on systems where intmax_t is int.
112         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
113         'intmax_t' is not larger than 'int'.
114         Reported by Pádraig Brady <P@draigBrady.com>.
115
116 2012-01-05  Bruno Haible  <bruno@clisp.org>
117
118         doc: Mention NetBSD bugs.
119         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
120         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
121
122 2012-01-05  Bruno Haible  <bruno@clisp.org>
123
124         strtoumax tests: Enhance tests.
125         * tests/test-strtoumax.c (main): Add tests for large values.
126
127 2012-01-05  Bruno Haible  <bruno@clisp.org>
128
129         strtoimax: Work around AIX 5.1 bug.
130         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
131         definition.
132         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
133         Set HAVE_STRTOIMAX.
134         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
135         REPLACE_STRTOIMAX.
136         * modules/inttypes-incomplete (Makefile.am): Substitute
137         REPLACE_STRTOIMAX.
138         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
139         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
140         (Depends-on): Update conditions.
141         * tests/test-strtoimax.c (main): Add tests for large values.
142         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
143
144 2012-01-05  Bruno Haible  <bruno@clisp.org>
145
146         inttypes: Modernize.
147         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
148         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
149         (Makefile.am): Update inttypes.h rule.
150
151 2012-01-05  Jim Meyering  <meyering@redhat.com>
152
153         init.sh: don't waste a subshell just to redirect stderr
154         * tests/init.sh: In testing for diff -u and diff -c, use a
155         stderr-redirecting exec inside `...` rather than a subshell.
156
157         test-init.sh: avoid failure on HP-UX 11.00
158         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
159         resolves to diff -c or cmp.  Reported by Bruno Haible.
160
161 2012-01-05  Bruno Haible  <bruno@clisp.org>
162
163         Tests for module 'strtoull'.
164         * modules/strtoull-tests: New file.
165         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
166
167 2012-01-05  Bruno Haible  <bruno@clisp.org>
168
169         Tests for module 'strtoll'.
170         * modules/strtoll-tests: New file.
171         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
172
173 2012-01-05  Bruno Haible  <bruno@clisp.org>
174
175         Tests for module 'strtoul'.
176         * modules/strtoul-tests: New file.
177         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
178
179 2012-01-05  Bruno Haible  <bruno@clisp.org>
180
181         Tests for module 'strtol'.
182         * modules/strtol-tests: New file.
183         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
184
185 2012-01-04  Jim Meyering  <meyering@redhat.com>
186
187         test-init.sh: accommodate Solaris 5.10's different diff -u output
188         * tests/test-init.sh: Also exempt @@ lines from the comparison
189         of diff output, since Solaris 5.10 and GNU diff formats differ.
190         Reported by Stefano Lattarini.
191
192 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
193
194         test-posixtm: don't assume signed integer wraparound
195         * tests/test-posixtm.c (main): Don't assume wraparound semantics
196         after signed integer overflow.  Inspired by (though it may not
197         fix) Bruno Haible's bug report in
198         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
199
200         Spell out "Windows 9x" and "Windows XP".
201         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
202         "Windows 9x" and "WinXP" with "Windows XP".
203
204 2012-01-04  Jim Meyering  <meyering@redhat.com>
205
206         test-vc-list-files-cvs.sh: remove obsolete comment
207         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
208         double exit.  Now that's all encapsulated via skip_ and Exit.
209
210 2012-01-04  Bruno Haible  <bruno@clisp.org>
211
212         Talk about "native Windows API", not "Win32".
213         * lib/classpath.c: Update comments to mention native Windows.
214         * lib/csharpexec.c: Likewise.
215         * lib/dup2.c: Likewise.
216         * lib/error.c: Likewise.
217         * lib/fcntl.c: Likewise.
218         * lib/filename.h: Likewise.
219         * lib/findprog.c: Likewise.
220         * lib/get-rusage-as.c: Likewise.
221         * lib/get-rusage-data.c: Likewise.
222         * lib/getpagesize.c: Likewise.
223         * lib/javaexec.c: Likewise.
224         * lib/msvc-inval.c: Likewise.
225         * lib/msvc-nothrow.c: Likewise.
226         * lib/nanosleep.c: Likewise.
227         * lib/nonblocking.c: Likewise.
228         * lib/printf-parse.c: Likewise.
229         * lib/setlocale.c: Likewise.
230         * lib/sigaction.c: Likewise.
231         * lib/strerror_r.c: Likewise.
232         * lib/tmpdir.c: Likewise.
233         * lib/vasnprintf.c: Likewise.
234         * lib/w32spawn.h: Likewise.
235         * lib/waitpid.c: Likewise.
236         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
237         * m4/locale-ar.m4: Likewise.
238         * m4/locale-fr.m4: Likewise.
239         * m4/locale-ja.m4: Likewise.
240         * m4/locale-tr.m4: Likewise.
241         * m4/locale-zh.m4: Likewise.
242         * m4/printf.m4: Likewise.
243         * tests/test-cloexec.c: Likewise.
244         * tests/test-copy-acl.sh: Likewise.
245         * tests/test-copy-file.sh: Likewise.
246         * tests/test-file-has-acl.sh: Likewise.
247         * tests/test-set-mode-acl.sh: Likewise.
248         * tests/test-dup-safer.c: Likewise.
249         * tests/test-dup2.c: Likewise.
250         * tests/test-dup3.c: Likewise.
251         * tests/test-fcntl.c: Likewise.
252         * tests/test-nonblocking-pipe.h: Likewise.
253         * tests/test-nonblocking-socket.h: Likewise.
254         * tests/test-pipe.c: Likewise.
255         * tests/test-pipe2.c: Likewise.
256         * tests/test-spawn-pipe-child.c: Likewise.
257         * doc/acl-resources.txt: Likewise.
258         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
259         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
260         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
261         * lib/localcharset.c: Update comments to mention native Windows.
262         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
263         * lib/localename.c: Likewise.
264         * lib/progreloc.c: Likewise.
265         * lib/relocatable.c: Likewise.
266         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
267         (windows_compute_revents): Renamed from win32_compute_revents.
268         (windows_compute_revents_socket): Renamed from
269         win32_compute_revents_socket.
270         * lib/select.c: Update comments to mention native Windows.
271         (windows_poll_handle): Renamed from win32_poll_handle.
272         * m4/threadlib.m4: Update comments to mention native Windows.
273         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
274         --enable-threads=windows instead of --enable-threads=win32. Set
275         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
276         * lib/glthread/lock.h: Update comments to mention native Windows.
277         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
278         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
279         USE_WIN32_THREADS.
280         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
281         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
282         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
283         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
284         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
285         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
286         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
287         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
288         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
289         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
290         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
291         * tests/test-tls.c: Likewise.
292         Rationale:
293         Microsoft renamed the "Win32 API" to "Windows API", as it is available
294         on both 32-bit and 64-bit Windows systems.
295         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
296         line of distinction is between "native Windows" on one side and Unix/
297         POSIX systems on the other side. More details in
298         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
299         Suggested by Paul Eggert.
300
301 2012-01-03  Bruno Haible  <bruno@clisp.org>
302
303         isatty: Support for MSVC 9.
304         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
305         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
306         (_isatty_nothrow): New function.
307         (isatty): Use it instead of _isatty.
308         (IsConsoleHandle): Add comment, from Paolo Bonzini.
309         * lib/poll.c (IsConsoleHandle): Likewise.
310         * lib/select.c (IsConsoleHandle): Likewise.
311         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
312         (gl_PREREQ_ISATTY): New macro.
313         * modules/isatty (Depends-on): Add msvc-inval.
314         (configure.ac): Invoke gl_PREREQ_ISATTY.
315
316 2012-01-03  Jim Meyering  <meyering@redhat.com>
317
318         maint.mk: remove temporary transition aid from over 1.5 years ago
319         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
320         purpose was to aid in the transition (avoiding silent malfunction)
321         from that old name to the new _sc_search_regexp.  This shim was
322         added by commit 219c504b.
323
324         init.sh: do not try to accommodate compare arguments starting with "-"
325         * tests/init.sh (compare_dev_null_): Do not try to accommodate
326         compare arguments that start with "-".  Besides, we do not worry
327         about this when invoking diff or cmp; why start now with sed?
328         Using "--" to separate options from argument would trigger sed
329         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
330         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
331
332 2012-01-02  Bruno Haible  <bruno@clisp.org>
333
334         Enhance tests for module 'isatty'.
335         * modules/isatty-tests (Depends-on): Add pipe-posix.
336         * tests/test-isatty.c: Include <fcntl.h>.
337         (DEV_NULL): New macro.
338         (main): Test the resut of isatty() also on regular files, pipes, and
339         /dev/null.
340
341         New module 'isatty'.
342         * lib/unistd.in.h (isatty): New declaration.
343         * lib/isatty.c: New file, based on an idea of
344         Bastien Roucariès <roucaries.bastien@gmail.com>.
345         * m4/isatty.m4: New file.
346         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
347         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
348         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
349         REPLACE_ISATTY.
350         * modules/isatty: New file.
351         * doc/posix-functions/isatty.texi: Mention the new module.
352         Suggested by Paolo Bonzini.
353
354 2012-01-02  Bruno Haible  <bruno@clisp.org>
355
356         canonicalize: Tweak 2011-12-29 commit.
357         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
358         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
359
360 2012-01-02  Jim Meyering  <meyering@redhat.com>
361
362         gitlog-to-changelog: describe input syntax in --help output
363         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
364
365         gitlog-to-changelog: fix typo in --help: show backslash before email @
366         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
367         in sources, but not in actual output.
368
369 2011-12-30  Jim Meyering  <meyering@redhat.com>
370
371         gitlog-to-changelog: don't malfunction when name contains %-directive
372         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
373         in a name string cause trouble.  E.g., with a user name of "%s",
374         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
375
376 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
377
378         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
379         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
380         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
381         the "  (tiny change)" notation that is appended to the standard
382         ChangeLog "date  name  email" header line.
383
384 2012-01-01  Jim Meyering  <meyering@redhat.com>
385
386         test-framework-sh: init.sh: fix "make dist" failure
387         When using gnulib-tool's --with-tests option and any module that
388         depends on test-framework-sh, "make dist" would fail due to the
389         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
390         in the gltests directory, and not in the gllib/ directory.
391         One way to work around that is to move the EXTRA_DIST += init.sh
392         from the primary module to the -tests one:
393         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
394         * modules/test-framework-sh (Makefile.am): ...not here.
395         Reported by Tom G. Christensen in
396         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
397
398         version-etc: update copyright year reported by --version
399         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
400
401 2011-12-31  Pádraig Brady  <P@draigBrady.com>
402
403         canonicalize: only stat() if required
404         * lib/canonicalize.c (canonicalize_filename_mode):
405         Avoid calling l?stat() when both CAN_MISSING,
406         and CAN_NOLINKS are set, as we neither need
407         to resolve symlinks or test component existence.
408
409 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
410
411         doc: cover st_ino issues once; add OpenVMS etc.
412         * doc/posix-functions/stat.texi (stat):
413         * doc/posix-functions/lstat.texi (lstat):
414         * doc/posix-functions/fstatat.texi (fstatat):
415         * doc/posix-functions/fstat.texi (fstat):
416         Move general 'struct stat' stuff to sys_stat.texi,
417         leaving behind a pointer.
418         * doc/posix-headers/sys_stat.texi (sys/stat.h):
419         Merge duplicate info about 'struct stat' problems into here.
420         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
421         and suggest partial workarounds.
422
423         same-inode: port to OpenVMS
424         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
425         three st_ino values.
426
427 2011-12-30  Pádraig Brady  <P@draigBrady.com>
428
429         canonicalize: fix references to stat() and lstat()
430         * lib/canonicalize.c (canonicalize_filename_mode):
431         Ensure references always resolve to a replacement
432         function if required (even via a macro).
433
434 2011-12-30  Jim Meyering  <meyering@redhat.com>
435
436         gitlog-to-changelog: remove a little duplication
437         * build-aux/gitlog-to-changelog (main): Grep @lines once,
438         rather than twice.
439
440 2011-12-29  Pádraig Brady  <P@draigBrady.com>
441
442         canonicalize: add support for not resolving symlinks
443         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
444         indicate we don't want to follow symlinks.  Also
445         provide CAN_MODE_MASK to aid setting these existing
446         mutually exclusive values.
447         * lib/canonicalize.c (canonicalize_filename_mode):
448         Extract the flags from can_mode parameter, which
449         are currently just used to select between stat()
450         and lstat().  Also ensure that mutually exclusive
451         values are flagged immediately as invalid.
452         * tests/test-canonicalize.c: Verify symlinks are
453         not followed, and that invalid flag combinations
454         are diagnosed.
455
456 2011-12-25  Jim Meyering  <meyering@redhat.com>
457
458         gitlog-to-changelog: do not clump multi-paragraph entries
459         Identical header lines (date,name,email+coauthors) are suppressed,
460         thus putting all entries with those same characteristics under
461         a single header.  However, when a log entry consists of two or
462         more paragraphs, it may not be clear where it starts and ends.
463         This change makes it so that such an entry is always separated
464         from others by a header line, even when that header would
465         otherwise be suppressed.
466         * build-aux/gitlog-to-changelog: Implement the above.
467         Inspired by a related request from Stefano Lattarini in
468         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
469
470 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
471
472         announce-gen: fix `cmd' typo in diagnostic
473         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
474         diagnostic: a missing '$' meant that the command was not output.
475
476 2011-12-23  Jim Meyering  <meyering@redhat.com>
477
478         test-framework-sh: distribute init.sh
479         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
480         Otherwise, "make -C gnulib-tests check" (at least in grep) would
481         fail due to the lack of init.sh.
482
483         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
484         * modules/atexit-tests: Rather than listing tests/init.sh,
485         now that there's a module for it, simply depend on that new module.
486         * modules/closein-tests: Likewise.
487         * modules/exclude-tests: Likewise.
488         * modules/getcwd-tests: Likewise.
489         * modules/perror-tests: Likewise.
490         * modules/pread-tests: Likewise.
491         * modules/pwrite-tests: Likewise.
492         * modules/vc-list-files-tests: Likewise.
493         * modules/verify-tests: Likewise.
494         * modules/xalloc-die-tests: Likewise.
495         * modules/xstrtoimax-tests: Likewise.
496         * modules/xstrtol-tests: Likewise.
497         * modules/xstrtoll-tests: Likewise.
498         * modules/xstrtoumax-tests: Likewise.
499         * modules/yesno-tests: Likewise.
500
501 2011-12-22  Jim Meyering  <meyering@redhat.com>
502
503         test-framework-sh: add minimal tests of init.sh's compare function
504         * modules/test-framework-sh-tests: New file.
505         * tests/test-init.sh: New file.
506
507         test-framework-sh: new module
508         * modules/test-framework-sh: New file.
509         * MODULES.html.sh (Support for maintaining and releasing projects):
510         List it.
511
512         init.sh: do not emit simulated diff output to stderr
513         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
514
515 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
516
517         .gitignore: ignore gnulib.dvi and regex.info
518         * doc/.gitignore:add gnulib.dvi and regex.info
519
520 2011-12-22  Jim Meyering  <meyering@redhat.com>
521
522         init.sh: correct previous change
523         * tests/init.sh (compare): My previous change was wrong.
524         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
525
526         init.sh: avoid unwarranted test failure when using "set -e"
527         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
528         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
529         a use like "compare exp out" would get evoke an unconditional failure.
530
531 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
532
533         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
534         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
535         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
536         autoreconf that did not.
537         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
538         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
539
540 2011-12-17  Jim Meyering  <meyering@redhat.com>
541
542         bootstrap: remove some now-unneeded code
543         This script arose back when gnulib-tool was young.
544         Since then, it has seen improvements that render much of this
545         script unnecessary.  In particular, it can now make symlinks
546         to the files it uses.  Also, I no longer see as much value in
547         marking files as read-only via comments.
548         If you relied on the symlink-creation feature of the preceding
549         version of this script, you can get most of that functionality
550         by adding the --symlink option to the definition of
551         gnulib_tool_option_extras in your bootstrap.conf file.
552         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
553         Run autopoint and libtoolize *before* gnulib-tool.
554         After it, run an abbreviated autoreconf, rather than a loop around
555         all tools.
556         (slirp, bt_mark_as_generated): Remove functions.
557
558 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
559
560         ftoastr: fix typo
561         * lib/ftoastr.h: Fix misspelling in comment.
562
563 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
564
565         * top/README-release: fix punctuation.
566
567 2011-12-17  Jim Meyering  <meyering@redhat.com>
568
569         bootstrap: correct the recent buildreq change
570         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
571         had no effect.
572         * build-aux/bootstrap (buildreq): Bracket each search term with
573         "*...*", so that the shell "case" statement works as intended.
574         Add comments.
575
576 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
577
578         build: let bootstrap resort to wget when downloading .po files
579         * build-aux/bootstrap (download_po_files): Fallback to wget when
580         downloading the .po files via rsync fails.  This is necessary to
581         bootstrap from behind a strict firewall.
582
583 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
584
585         stdint: don't assume C++11 when compiling with g++
586         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
588         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
589         work also in C++ before C++11, as that improperly inhibits
590         generating a substitute stdint.h for that case.
591
592 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
593
594         alloca: protect comment from gnulib-tool
595         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
596         that gnulib-tool doesn't think it's a license, and munge it to
597         say "GCC version 3".
598
599 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
600
601         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
602         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
603         $(abs_top_builddir) instead of $(top_builddir).
604
605 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
606
607         strftime-tests: also test nanoseconds
608         * tests/test-strftime.c (T): Add a test of %N.
609
610 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
611
612         inttypes, stdint: add C++11 support
613         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
614         when including inttypes.h and stdint.h.  Support this change to
615         the standard.
616         * doc/posix-headers/inttypes.texi (inttypes.h):
617         * doc/posix-headers/stdint.texi (stdint.h): Document this.
618         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
619         Define if not defined already, for the benefit of pre-C++11 hosts.
620         Define the standard format macros (e.g., PRId8) always.
621         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
622         Likewise, if __cpluspus.  Define the standard constant and limit
623         macros (e.g., INT8_C, INT8_MAX) always.
624         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
625         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
626         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
627         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
628         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
629         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
630         Likewise.
631
632 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
633
634         nonblocking tests: Fix test failure on Linux/PPC.
635         Suggested by Prerna Saxena in
636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
637         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
638         Set to 1100000.
639
640 2011-12-12  Jim Meyering  <meyering@redhat.com>
641
642         argmatch: don't hard-code `' when listing valid option arguments
643         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
644         use the quote function to add quotes.  Use fputs rather than
645         fprintf for the format string with no format directive.
646
647 2011-12-07  Eric Blake  <eblake@redhat.com>
648
649         bootstrap: detect tools required by gnulib-tool
650         * build-aux/bootstrap (buildreq): Provide minimum implicit
651         dependencies.
652         * DEPENDENCIES: Mention patch as a prereq.
653
654 2011-12-04  Bruno Haible  <bruno@clisp.org>
655
656         sethostname: Port to Windows platforms.
657         * lib/sethostname.c: Provide an alternate implementation for Windows
658         platforms.
659         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
660         (main): Skip the test if sethostname() fails with EPERM. On Windows
661         platforms, don't check the result of gethostname().
662
663 2011-12-04  Bruno Haible  <bruno@clisp.org>
664             Jim Meyering  <meyering@redhat.com>
665
666         tests: Avoid spurious error message on platforms without mktemp program.
667         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
668
669 2011-12-04  Bruno Haible  <bruno@clisp.org>
670
671         sethostname: Fix documentation.
672         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
673         "not fixed" section.
674
675 2011-12-03  Bruno Haible  <bruno@clisp.org>
676
677         gnulib-tool: Verify that the License field is present and non-empty.
678         * gnulib-tool (func_get_license_raw): New function, extracted from
679         func_get_license.
680         (func_get_license): Use it. Warn if the module is not a test module and
681         has no license.
682         Suggested by Jim Meyering.
683
684 2011-12-03  Bruno Haible  <bruno@clisp.org>
685
686         sethostname tests: Fix link error on mingw.
687         * tests/test-sethostname1.c: New file, extracted from
688         tests/test-sethostname.c.
689         * tests/test-sethostname2.c: New file, extracted from
690         tests/test-sethostname.c.
691         * tests/test-sethostname.c: Remove file.
692         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
693         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
694         (Depends-on): Add gethostname.
695         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
696         Link the latter with $(GETHOSTNAME_LIB).
697
698         sethostname tests: Fix compilation error on mingw.
699         * tests/test-sethostname.c: Don't include <sys/types.h>.
700         (geteuid): Use a dummy value without uid_t.
701         * modules/sethostname-tests (Depends-on): Remove sys_types.
702
703         sethostname tests: Avoid a gcc warning.
704         * tests/test-sethostname.c (main): Remove an unused variable.
705
706         Tweak last commit.
707         * modules/sethostname-tests (Files): Sort by decreasing importance.
708         (configure.ac): Check for geteuid.
709         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
710         the test when there's nothing to test. Drop an unnecessary cast.
711         Improve an error message. Verify that the final sethostname() call
712         succeeds.
713
714 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
715
716         Add a test suite for the sethostname module.
717         * modules/sethostname-tests: New file.  A test program
718         for the sethostname module.
719         * tests/test-sethostname.c: Likewise.
720
721 2011-12-03  Bruno Haible  <bruno@clisp.org>
722
723         Tweak last commit.
724         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
725         Fix preprocessor directives indentation. Fix typos.
726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
727         * modules/unistd (Makefile): Likewise.
728
729 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
730
731         Integrate the sethostname module into unistd.
732         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
733         into the unistd.h header.
734         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
735         preprocessor directives.
736         * modules/unistd: Setup the Makefile substitutions of the
737         SETHOSTNAME preprocessor directives.
738
739 2011-12-03  Bruno Haible  <bruno@clisp.org>
740
741         Tweak last commit.
742         * lib/sethostname.c: Don't include <string.h>.
743         (sethostname): No need to copy the argument string to the stack. Don't
744         call clearerr. Preserve errno when fprintf failed.
745         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
746         Don't invoke AC_REPLACE_FUNCS.
747         * modules/sethostname (Link): Remove empty section.
748         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
749         failure problem.
750
751 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
752
753         New module 'sethostname'.
754         * lib/sethostname.c (sethostname): New file.  Provide sethostname
755         for systems that lack it.
756         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
757         sethostname declaration and function.
758         * modules/sethostname: New file.  Define the sethostname module.
759
760 2011-12-03  Bruno Haible  <bruno@clisp.org>
761
762         Tweak last commit.
763         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
764
765 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
766
767         Split the HOST_NAME_MAX detection into a separate m4 macro.
768         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
769         macro so it can be used by the pending sethostname module.
770
771 2011-12-03  Bruno Haible  <bruno@clisp.org>
772
773         Fix module descriptions syntax.
774         * modules/argv-iter (License): Fix syntax.
775         * modules/di-set (License): Likewise.
776         * modules/ino-map (License): Likewise.
777         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
778
779 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
780
781         stdalign: port to Clang 3.0
782         Problem reported by Simon Josefsson in
783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
784         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
785         which has <stdalign.h> but which does not define alignof.
786         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
787
788 2011-12-01  Eric Blake  <eblake@redhat.com>
789
790         mktempd: silence dd usage
791         * build-aux/mktempd (rand_bytes): Silence dd.
792
793 2011-11-30  Simon Josefsson  <simon@josefsson.org>
794
795         manywarnings: Don't mention gcc version in docstring.
796         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
797         Jim Meyering <meyering@redhat.com>.
798
799 2011-11-30  Jim Meyering  <meyering@redhat.com>
800
801         hash: mark a few floating point constants with "f" suffix
802         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
803         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
804         floating point constants with "f", since they're destined to be
805         saved/used as "float"s.
806
807 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
808
809         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
810         * tests/test-float.c (test_long_double): Correct and re-enable the
811         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
812
813 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
814
815         Avoid subtracting two pointers that don't point into the same block.
816         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
817         only pointers into the same memory block are subtracted. We cannot
818         assume that sizeof (ptrdiff_t) == sizeof (void *).
819
820 2011-11-29  Eric Blake  <eblake@redhat.com>
821
822         maint.mk: add syntax check for use of compare from init.sh
823         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
824         moved here from coreutils.
825
826         manywarnings: drop -Wunsuffixed-float-constants
827         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
828         '1.0D', which is the only way to silence this warning for 'double'.
829
830 2011-11-29  Jim Meyering  <meyering@redhat.com>
831
832         hash: mark compute_bucket_size with the pure attribute
833         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
834
835         quotearg, propername: correct pragma guard expression
836         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
837         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
838
839 2011-11-28  Jim Meyering  <meyering@redhat.com>
840
841         propername: do not mark proper_name with the const attribute
842         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
843         since it examines data pointed to by its parameter.
844         * lib/propername.c (proper_name): Instead, add a pragma to suppress
845         the suggestion from -Wsuggest-attribute=const.
846
847         propername: mark one more function as const
848         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
849
850 2011-11-27  Jim Meyering  <meyering@redhat.com>
851
852         mark functions with const and pure attributes
853
854         Mark functions per suggestions from gcc-4.6 when using these options:
855         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
856         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
857         Follow these guidelines: when possible, apply the attribute to
858         an extern declaration, not to its definition.  Apply it to the
859         definition only when the definition is static.
860         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
861         * lib/argv-iter.h (argv_iter_n_args): Likewise.
862         * lib/base64.h (isbase64): Likewise.
863         * lib/basename-lgpl.c (last_component, base_len): Likewise.
864         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
865         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
866         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
867         (c_tolower, c_toupper): Likewise.
868         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
869         * lib/chdir-long.c (find_non_slash): Likewise.
870         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
871         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
872         * lib/file-type.h (file_type): Likewise.
873         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
874         * lib/filevercmp.c (verrevcmp): Likewise.
875         * lib/freadahead.h (freadahead): Likewise.
876         * lib/fts.c (fts_maxarglen): Likewise.
877         * lib/hash-pjw.h (hash_pjw): Likewise.
878         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
879         * lib/hash.c (is_prime, next_prime): Likewise.
880         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
881         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
882         (hash_table_ok, hash_get_first, hash_string): Likewise.
883         (compute_bucket_size): Likewise.
884         * lib/i-ring.h (i_ring_empty): Likewise.
885         * lib/isnan.c (isnanl): Likewise.
886         * lib/math.h (isnanl, rpl_isnanl): Likewise.
887         * lib/memcasecmp.h (memcasecmp): Likewise.
888         * lib/memchr2.h (memchr2): Likewise.
889         * lib/memcmp2.h (memcmp2): Likewise.
890         * lib/parse-datetime.y (lookup_zone): Likewise.
891         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
892         [!WINDOWS_SOCKETS]: Likewise.
893         * lib/strnlen1.h (strnlen1): Likewise.
894         * lib/uniwidth.in.h (uc_width): Likewise.
895         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
896         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
897         (quoting_options_from_style): Add a comment.
898         * lib/propername.h (proper_name): Add a comment.
899
900 2011-11-27  Bruno Haible  <bruno@clisp.org>
901
902         Remove unused macros from !_LIBC code in glibc-borrowed files.
903         * lib/fnmatch.c (STRCOLL): Remove macro.
904         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
905         * lib/glob.c (__stat, __readdir64): Remove macros.
906         * lib/tempname.c (__open64, __xstat64): Remove macros.
907         Suggested by Paul Eggert.
908
909 2011-11-27  Bruno Haible  <bruno@clisp.org>
910
911         getcwd: Fix link error on MSVC 9.
912         * modules/getcwd (Depends-on): Add readdir, rewinddir.
913
914 2011-11-27  Bruno Haible  <bruno@clisp.org>
915
916         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
917         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
918         HAVE_OPENDIR is 0.
919         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
920         HAVE_CLOSEDIR is 0.
921         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
922         is 0.
923         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
924
925 2011-11-27  Bruno Haible  <bruno@clisp.org>
926
927         getcwd: Fix bug from 2011-08-17.
928         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
929         platforms that need it.
930         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
931         code of 4 to be a failure, not a success. This ensures that
932         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
933
934 2011-11-27  Bruno Haible  <bruno@clisp.org>
935
936         binary-io tests: Avoid test failure on mingw when libtool is used.
937         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
938         Don't verify the size of t-bin-out1.tmp here.
939         * tests/test-binary-io.sh: Verify it here.
940         Reported by Simon Josefsson.
941
942 2011-11-26  Bruno Haible  <bruno@clisp.org>
943
944         Fix conflict between two instantiations of module 'unistd'.
945         * gnulib-tool (func_emit_autoconf_snippet): Substitute
946         ${include_guard_prefix} also in the autoconf snippet.
947         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
949         GNULIB_UNISTD_H_GETOPT.
950         * modules/getopt-posix (configure.ac): Set the
951         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
952         * modules/getopt-gnu (configure.ac): Likewise.
953         * modules/unistd (Makefile.am): Change the substitution value of
954         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
955         Reported by Simon Josefsson.
956
957 2011-11-25  Bruno Haible  <bruno@clisp.org>
958
959         pagealign_alloc: Doc and comments.
960         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
961         module.
962         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
963
964 2011-11-25  Jim Meyering  <meyering@redhat.com>
965
966         test-update-copyright.sh: avoid false-positive failure
967         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
968         around false positive failure on Cygwin/Windows.  The latter was
969         matching erroneously-created files with names like
970         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
971
972 2011-11-25  Simon Josefsson  <simon@josefsson.org>
973
974         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
975         * m4/valgrind-tests.m4: Check that the parameters that will be
976         used works, not just a subset of them.  Reported by Bruno Haible
977         <bruno@clisp.org>.
978
979 2011-11-24  Jim Meyering  <meyering@redhat.com>
980
981         test-stdalign.c: comment out long double tests
982         * tests/test-stdalign.c: Don't try to reduce alignment of long double
983         variables.  That provokes errors like this from gcc-4.7.0 20111124:
984         error: '_Alignas' specifiers cannot reduce alignment of \
985         'static_longdouble_alignas'.
986
987 2011-11-22  Jim Meyering  <meyering@redhat.com>
988
989         init.sh: make "compare /dev/null FILE" output more readable
990         * tests/init.sh (compare_): Document the preferred order of arguments.
991         (emit_diff_u_header_): New function.
992         (compare_dev_null_): Emit a simulated diff, rather than just the
993         contents of the unexpected file.  Suggestion from Bruno Haible.
994
995 2011-11-21  Jim Meyering  <meyering@redhat.com>
996             Eric Blake  <eblake@redhat.com>
997
998         init.sh: work around OSF/1 5.1's mishandling of /dev/null
999         * tests/init.sh: Make our compare function slightly more portable.
1000         Reported by Bruno Haible in
1001         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1002
1003 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1004
1005         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1006         before using it, in code that ends up in config.h.
1007
1008 2011-11-20  Bruno Haible  <bruno@clisp.org>
1009
1010         getcwd: Work around getcwd bug on AIX 5..7.
1011         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1012         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1013         Use a different value for gl_cv_func_getcwd_path_max. Move the
1014         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1015         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1016         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1017         Define HAVE_MINIMALLY_WORKING_GETCWD.
1018         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1019         where it is not even minimally working, that is, on AIX.
1020         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1021         m4/getcwd-path-max.m4.
1022         (main): Update exit code computation.
1023         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1024         getcwd does not handle long file names.
1025
1026 2011-11-20  Bruno Haible  <bruno@clisp.org>
1027
1028         getcwd: Fix bug from 2009-09-10.
1029         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1030         like "no".
1031
1032 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1033
1034         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1035
1036 2011-11-20  Bruno Haible  <bruno@clisp.org>
1037
1038         fma tests: Avoid shadowing local variables.
1039         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1040         expected.
1041
1042 2011-11-20  Bruno Haible  <bruno@clisp.org>
1043
1044         copysignf tests: Fix.
1045         * tests/test-copysignf.c: Fix signature check.
1046
1047 2011-11-20  Bruno Haible  <bruno@clisp.org>
1048
1049         fma: Remove unused code.
1050         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1051         unused macros.
1052
1053 2011-11-20  Bruno Haible  <bruno@clisp.org>
1054
1055         sethostname: Fix doc about AIX.
1056         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1057         sethostname; it has it.
1058
1059         sethostname: Mention more portability problems.
1060         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1061         problem.
1062         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1063
1064 2011-11-19  Bruno Haible  <bruno@clisp.org>
1065
1066         Depend on module fcntl-h when AT_FDCWD is used.
1067         * modules/utimens (Depends-on): Add fcntl-h.
1068         * modules/areadlinkat (Depends-on): Likewise.
1069         * modules/areadlinkat-with-size (Depends-on): Likewise.
1070         * modules/faccessat (Depends-on): Likewise.
1071         * modules/fchmodat (Depends-on): Likewise.
1072         * modules/fchownat (Depends-on): Likewise.
1073         * modules/getcwd (Depends-on): Likewise.
1074         * modules/mkdirat (Depends-on): Likewise.
1075         * modules/mkfifoat (Depends-on): Likewise.
1076         * modules/readlinkat (Depends-on): Likewise.
1077         * modules/symlinkat (Depends-on): Likewise.
1078         * modules/dup2-tests (Depends-on): Likewise.
1079         * modules/fdutimensat-tests (Depends-on): Likewise.
1080         * modules/futimens-tests (Depends-on): Likewise.
1081
1082 2011-11-19  Bruno Haible  <bruno@clisp.org>
1083
1084         euidaccess: Update a comment.
1085         * lib/euidaccess.c: Update comment about platforms with faccessat.
1086
1087 2011-11-19  Bruno Haible  <bruno@clisp.org>
1088
1089         openat: Fix file list.
1090         * modules/openat (Files): Remove lib/at-func.c.
1091
1092 2011-11-19  Bruno Haible  <bruno@clisp.org>
1093
1094         fstatat: Simplify.
1095         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1096         gnulib should define rpl_fstatat, there is a
1097         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1098
1099 2011-11-19  Bruno Haible  <bruno@clisp.org>
1100
1101         Ensure 'inline' can be used in tests/test-utimens-common.h.
1102         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1103         * modules/futimens-tests (configure.ac): Likewise.
1104         * modules/utimens-tests (configure.ac): Likewise.
1105         * modules/utimensat-tests (configure.ac): Likewise.
1106
1107 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1108
1109         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1110         not hash_insert0.
1111         (hash_insert_if_absent): Doc fix.
1112
1113 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1114
1115         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1116
1117 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         test-getcwd: disambiguate exit status
1120         * tests/test-getcwd.c (test_long_name): Return 0..7.
1121         (main): Exit with an unambiguous exit status.  The old
1122         code yielded a mysterious mixture of two failure codes.
1123
1124         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1125         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1126         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1127         rpl_fstatat or fstatat.  This should fix the other problem
1128         reported by Kai Habel in
1129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1130         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1132         and I reproduced it on a Solaris 8 host we still have in production.
1133
1134 2011-11-18  Jim Meyering  <meyering@redhat.com>
1135
1136         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1137         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1138         Add a sentence to the comment.
1139         (hash_insert0): New function that simply calls hash_insert_if_absent.
1140         * lib/hash.h (hash_insert_if_absent): Declare it.
1141         (hash_insert0): Add deprecation attribute.
1142         (_GL_ATTRIBUTE_DEPRECATED): Define.
1143         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1144         not hash_insert0.
1145         * NEWS: Mention it, even though it's not really an incompatible change.
1146
1147 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1148
1149         openat: avoid compilation failure due to lack of <errno.h> inclusion
1150         * lib/openat.c: Include <errno.h>.
1151
1152 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1153
1154         * modules/getcwd (Depends-on): Add fdopendir.
1155         This fixes one of the two problems reported by Kai Habel in
1156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1157
1158         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1159         stdalign problem reported by Ian Beckwith in
1160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1161         * modules/crypto/gc-arcfour (Depends-on):
1162         Depend conditionally on crypto/arcfour.
1163         * modules/crypto/gc-arctwo (Depends-on):
1164         Depend conditionally on crypto/arctwo.
1165         * modules/crypto/gc-des (Depends-on):
1166         Depend conditionally on crypto/des.
1167         * modules/crypto/gc-hmac-md5 (Depends-on):
1168         Depend conditionally on crypto/hmac-md5.
1169         * modules/crypto/gc-hmac-sha1 (Depends-on):
1170         Depend conditionally on crypto/hmac-sha1.
1171         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1172         * modules/crypto/gc-md4 (Depends-on):
1173         Depend conditionally on crypto/md4.
1174         * modules/crypto/gc-md5 (Depends-on):
1175         Depend conditionally on crypto/md5.
1176         * modules/crypto/gc-rijndael (Depends-on):
1177         Depend conditionally on crypto/rijndael.
1178         * modules/crypto/gc-sha1 (Depends-on):
1179         Depend conditionally on crypto/sha1.
1180         * modules/crypto/gc-arcfour:
1181         * modules/crypto/gc-arctwo:
1182         * modules/crypto/gc-des:
1183         * modules/crypto/gc-hmac-md5:
1184         * modules/crypto/gc-hmac-sha1:
1185         * modules/crypto/gc-md2:
1186         * modules/crypto/gc-md4:
1187         * modules/crypto/gc-md5:
1188         * modules/crypto/gc-rijndael:
1189         * modules/crypto/gc-sha1:
1190         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1191         now that the conditional dependencies do the work for us.
1192
1193 2011-11-17  Jim Meyering  <meyering@redhat.com>
1194
1195         tests: factor st_ctime-comparison out of two headers
1196         * tests/test-utimens-common.h (ctime_compare): Define.
1197         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1198         * tests/test-lutimens.h (test_lutimens): Likewise.
1199         * tests/test-utimens.h (test_utimens): Likewise.
1200
1201         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1202         Invoke the test program via an init.sh-using wrapper.
1203         * tests/test-getcwd.sh: New file.
1204         * modules/getcwd-tests (Files): Add it.
1205         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1206
1207 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1208
1209         gitlog-to-changelog: support multi-author commits.
1210         The FSF cares about keeping track of all authors of patches to its
1211         projects, but Git doesn't provide obvious support for multi-author
1212         changesets. Consensus seems to be forming around the use of extra
1213         Signed-off-by inspired lines in the log message formatted as
1214         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1215         multi-author commits between version control systems.
1216         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1217         log message and output in standard ChangeLog multi-author format.
1218         Reported by Peter Rosin <peda@lysator.liu.se>
1219
1220 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1221             Bruno Haible  <bruno@clisp.org>
1222
1223         Fix some modules' file list.
1224         * modules/fstatat (Files): Add m4/lstat.m4.
1225         * modules/openat (Files): Likewise.
1226         * modules/unlinkat (Files): Likewise.
1227
1228 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1229
1230         maint.mk: fix tight-scope.mk generation in VPATH builds.
1231         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1232         reference with $(srcdir) so that the file is found correctly even
1233         when running `make syntax-check' in a VPATH build.
1234
1235 2011-11-13  Bruno Haible  <bruno@clisp.org>
1236             Jim Meyering  <meyering@redhat.com>
1237
1238         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1239         * tests/init.sh (compare): Remove "No differences encountered" or
1240         synonymous output from the 'diff' program.
1241
1242 2011-11-13  Bruno Haible  <bruno@clisp.org>
1243
1244         Makefile: Tweak indentation.
1245         * Makefile: Use tab as first character in every line that contains rule
1246         commands.
1247
1248 2011-11-13  Bruno Haible  <bruno@clisp.org>
1249
1250         Syntax check for copyright statements.
1251         * check-copyright: New file.
1252         * Makefile (sc_check_copyright): New rule.
1253
1254 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1255
1256         * build-aux/git-version-gen: Add --prefix to configure the tag
1257         match string.
1258
1259 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1260
1261         * build-aux/git-version-gen: Add --help and --version.
1262
1263 2011-11-12  Jim Meyering  <meyering@redhat.com>
1264
1265         revamp the other test-exclude?.sh scripts to use init.sh, too
1266         * tests/test-exclude1.sh: Use init.sh.
1267         * tests/test-exclude2.sh: Likewise.
1268         * tests/test-exclude3.sh: Likewise.
1269         * tests/test-exclude4.sh: Likewise.
1270         * tests/test-exclude5.sh: Likewise.
1271         * tests/test-exclude6.sh: Likewise.
1272         * tests/test-exclude7.sh: Likewise.
1273         * tests/test-exclude8.sh: Likewise.
1274         * modules/exclude-tests (Files): List init.sh.
1275
1276         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1277         These shell scripts ignored failure of the binary test-exclude,
1278         so making the latter return 77 didn't cause them to be skipped.
1279         * tests/test-exclude5.sh: Exit with test-exclude's error status
1280         when that program fails.  Revamp to use init.sh.
1281         * tests/test-exclude2.sh: Likewise.
1282
1283         test-exclude: fix a typo
1284         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1285
1286 2011-11-11  Bruno Haible  <bruno@clisp.org>
1287
1288         obstack: Fix compilation error on MSVC 9.
1289         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1290
1291 2011-11-11  Jim Meyering  <meyering@redhat.com>
1292
1293         test-exclude: skip tests rather than failing on deficient systems
1294         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1295         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1296         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1297         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1298
1299 2011-11-10  Bruno Haible  <bruno@clisp.org>
1300
1301         ptsname_r test: Avoid gcc warning on glibc systems.
1302         * tests/test-ptsname_r.c (null_ptr): New function.
1303         (test_errors): Use it.
1304
1305 2011-11-10  Bruno Haible  <bruno@clisp.org>
1306
1307         ptsname_r: Avoid compilation error on OSF/1 5.1.
1308         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1310         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1311         function is not declared or incompatibly declared.
1312         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1313         * modules/ptsname_r (Depends-on, configure.ac): Update.
1314         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1315
1316 2011-11-10  Bruno Haible  <bruno@clisp.org>
1317
1318         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1319         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1320         When cross-compiling, guess yes on all platforms except AIX.
1321         Reported by Ludovic Courtès <ludo@gnu.org>.
1322
1323 2011-11-09  Bruno Haible  <bruno@clisp.org>
1324
1325         ptsname_r tests: Fix bugs.
1326         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1327         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1328
1329 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1330
1331         fstatat: work with cross-compilation
1332         Problem reported by Ludovic Courtès in
1333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1334         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1335         "cross-compiling" and assume the bug is present.  Replace
1336         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1337         an inverted sense, to be more conservative about our assumptions.
1338         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1339
1340 2011-11-09  Bruno Haible  <bruno@clisp.org>
1341
1342         Improve MODULES.html output.
1343         * modules/mkfifoat (Description): Use the word "function".
1344         * modules/readlinkat (Description): Likewise.
1345         * modules/symlinkat (Description): Likewise.
1346
1347 2011-11-09  Eric Blake  <eblake@redhat.com>
1348
1349         ptsname_r-tests: new test module
1350         * modules/ptsname_r-tests: New module.
1351         * tests/test-ptsname_r.c: New file.
1352
1353         ptsname_r: new module
1354         * modules/ptsname_r: New module.
1355         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1356         * lib/ptsname.c (__ptsname_r): Split...
1357         * lib/ptsname_r.c: ...into new file.
1358         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1359         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1360         * modules/stdlib (Makefile.am): Substitute witnesses.
1361         * lib/stdlib.in.h (ptsname_r): Declare it.
1362         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1363         * MODULES.html.sh (Misc): Likewise.
1364         * modules/ptsname (Depends-on): Alter dependency.
1365         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1366
1367 2011-11-09  Jim Meyering  <meyering@redhat.com>
1368
1369         announce-gen: be more concise when there's only one URL+tarball
1370         * build-aux/announce-gen (get_tool_versions): When you distribute
1371         only one type of tarball, combine the first two "Here are..."
1372         sections and make the key-checking grammar independent of
1373         how many tarballs there are.
1374
1375 2011-11-09  Eric Blake  <eblake@redhat.com>
1376
1377         openpty: provide a stub on mingw
1378         * lib/pty.in.h (includes): Provide forward declarations.
1379         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1380
1381         raise: fix mingw handling of SIGPIPE
1382         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1383
1384 2011-11-08  Bruno Haible  <bruno@clisp.org>
1385
1386         More conditional dependencies.
1387         * modules/faccessat (Depends-on): Add conditions.
1388         * modules/fchmodat (Depends-on): Likewise.
1389         * modules/fchownat (Depends-on): Likewise.
1390         * modules/fstatat (Depends-on): Likewise.
1391         * modules/mkfifoat (Depends-on): Likewise.
1392         * modules/readlinkat (Depends-on): Likewise.
1393         * modules/symlinkat (Depends-on): Likewise.
1394         * modules/unlinkat (Depends-on): Likewise.
1395         * modules/utimensat (Depends-on): Likewise.
1396         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1397         * modules/linkat (Depends-on): Refine the conditions.
1398         * modules/renameat (Depends-on): Likewise.
1399
1400 2011-11-08  Bruno Haible  <bruno@clisp.org>
1401
1402         faccessat: Move AC_LIBOBJ invocation to module description.
1403         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1404         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1405         invocation from here...
1406         * modules/faccessat (configure.ac): ... to here. Invoke
1407         gl_PREREQ_FACCESSAT.
1408
1409 2011-11-08  Bruno Haible  <bruno@clisp.org>
1410
1411         faccessat: Simplify autoconf macro.
1412         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1413         gl_FUNC_EUIDACCESS.
1414
1415 2011-11-08  Bruno Haible  <bruno@clisp.org>
1416
1417         renameat: Fix dependencies.
1418         * modules/renameat (Depends-on): Add stdbool.
1419
1420 2011-11-08  Bruno Haible  <bruno@clisp.org>
1421
1422         mkfifoat: Fix module description.
1423         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1424         not gl_UNISTD_MODULE_INDICATOR.
1425
1426 2011-11-08  Bruno Haible  <bruno@clisp.org>
1427
1428         fstatat: Remove unused dependency.
1429         * modules/fstatat (Depends-on): Remove fstat.
1430
1431 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1432
1433         GNUmakefile: behave when Makefile is missing.
1434         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1435
1436 2011-11-08  Bruno Haible  <bruno@clisp.org>
1437
1438         openat: Conditionalize dependencies.
1439         * lib/openat.c: Reduce the scope of some #includes.
1440         * modules/openat (Depends-on): Add conditions.
1441
1442 2011-11-07  Jim Meyering  <meyering@redhat.com>
1443
1444         maint.mk: extract GPG key ID without using a temporary file
1445         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1446         without using a temporary file.  Based on a suggestion from Werner Koch
1447         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1448
1449 2011-11-07  Eric Blake  <eblake@redhat.com>
1450
1451         grantpt: fix typo
1452         * lib/stdlib.in.h (grantpt): Check correct function.
1453
1454         maint.mk: silence new syntax check
1455         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1456
1457 2011-11-06  Bruno Haible  <bruno@clisp.org>
1458
1459         Doc about floating-point and math API.
1460         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1461         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1462
1463 2011-11-06  Bruno Haible  <bruno@clisp.org>
1464
1465         stdalign tests: Skip the test when compiled by Sun C.
1466         * tests/test-stdalign.c (main): Skip the test on Sun C.
1467
1468 2011-11-06  Bruno Haible  <bruno@clisp.org>
1469
1470         ansi-c++-opt: Complete the 2011-06-05 change.
1471         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1472         does not support namespaces, set the variable to "no", not to ":".
1473
1474 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1475
1476         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1477
1478 2011-11-06  Bruno Haible  <bruno@clisp.org>
1479
1480         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1481         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1482         (minus_zerol) [HP-UX]: New macro.
1483         (unary_minus) [HP-UX]: New function.
1484         (copysignl) [HP-UX]: Use unary_minus function.
1485
1486 2011-11-06  Bruno Haible  <bruno@clisp.org>
1487
1488         ldexp, ldexpf, ldexpl: Enhance tests.
1489         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1490         and tests/test-ldexpl.c.
1491         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1492         LDEXP, MIN_EXP, MAX_EXP): New macros.
1493         Include test-ldexp.h.
1494         (main): Just call test_function.
1495         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1496         infinity.h, nan.h.
1497         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1498         MAX_EXP): New macros.
1499         Include test-ldexp.h.
1500         (x, y): Remove variables.
1501         (main): Just call test_function.
1502         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1503         infinity.h, nan.h.
1504         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1505         MAX_EXP): New macros.
1506         Include test-ldexp.h.
1507         (x, y): Remove variables.
1508         (main): Just call test_function.
1509         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1510         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1511         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1512         (Depends-on): Add isnand-nolibm, signbit, float.
1513         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1514         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1515         (Depends-on): Add isnanf-nolibm, signbit, float.
1516
1517 2011-11-06  Bruno Haible  <bruno@clisp.org>
1518
1519         math tests: Cosmetics.
1520         * tests/test-math-c++.cc: Reorder declarations.
1521
1522 2011-11-05  Bruno Haible  <bruno@clisp.org>
1523
1524         fma*: Simplify test.
1525         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1526         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1527
1528         Tests for module 'fmal'.
1529         * modules/fmal-tests: New file.
1530         * tests/test-fmal1.c: New file.
1531         * tests/test-fmal2.c: New file.
1532
1533         New module 'fmal'.
1534         * lib/math.in.h (fmal): New declaration.
1535         * lib/fmal.c: New file.
1536         * m4/fmal.m4: New file.
1537         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1539         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1540         REPLACE_FMAL.
1541         * modules/fmal: New file.
1542         * doc/posix-functions/fmal.texi: Mention the new module and the various
1543         bugs.
1544
1545         Tests for module 'fmaf'.
1546         * modules/fmaf-tests: New file.
1547         * tests/test-fmaf1.c: New file.
1548         * tests/test-fmaf2.c: New file.
1549
1550         New module 'fmaf'.
1551         * lib/math.in.h (fmaf): New declaration.
1552         * lib/fmaf.c: New file.
1553         * m4/fmaf.m4: New file.
1554         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1556         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1557         REPLACE_FMAF.
1558         * modules/fmaf: New file.
1559         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1560         bugs.
1561
1562         Tests for module 'fma'.
1563         * modules/fma-tests: New file.
1564         * tests/test-fma1.c: New file.
1565         * tests/test-fma1.h: New file.
1566         * tests/test-fma2.c: New file.
1567         * tests/test-fma2.h: New file.
1568
1569         New module 'fma'.
1570         * lib/math.in.h (fma): New declaration.
1571         * lib/fma.c: New file.
1572         * m4/fma.m4: New file.
1573         * m4/fegetround.m4: New file.
1574         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1576         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1577         REPLACE_FMA.
1578         * modules/fma: New file.
1579         * doc/posix-functions/fma.texi: Mention the new module and the various
1580         bugs.
1581
1582         Extend gl_MATHFUNC.
1583         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1584         Support 'void' as argument type.
1585         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1586
1587 2011-11-05  Jim Meyering  <meyering@redhat.com>
1588
1589         maint.mk: also prohibit inclusion of dirent.h without use
1590         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1591
1592 2011-11-05  Bruno Haible  <bruno@clisp.org>
1593
1594         ldexpl tests: Avoid test failure on MSVC 9.
1595         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1596         value. Needed in order to enforce the conversion from a value greater
1597         than LDBL_MAX to Infinity.
1598
1599 2011-11-05  Bruno Haible  <bruno@clisp.org>
1600
1601         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1602         * modules/at-internal: New file, extracted from modules/openat.
1603         * modules/openat-h: New file.
1604         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1605         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1606         * modules/openat (Description): Add reference to POSIX function.
1607         (Files): Remove lib/openat.h, lib/openat-proc.c.
1608         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1609         intprops, unistd.
1610         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1611         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1612         gl_FCNTL_MODULE_INDICATOR.
1613         (Include): Remove unistd.h, openat.h.
1614         * modules/areadlinkat (Files): Add lib/at-func.c.
1615         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1616         openat-die, openat-h, save-cwd.
1617         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1618         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1619         openat-die, openat-h, save-cwd, unistd.
1620         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1621         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1622         openat-h, save-cwd. Remove fcntl-h, openat.
1623         * modules/fchmodat (Files): Remove lib/openat.h.
1624         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1625         openat, stdbool, unistd.
1626         * modules/fchownat (Files): Remove lib/openat.h.
1627         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1628         openat, stdbool, sys_stat.
1629         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1630         lib/openat-proc.c.
1631         (Depends-on): Add at-internal.
1632         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1633         * modules/fstatat (Files): Remove lib/openat.h.
1634         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1635         stdbool, unistd.
1636         * modules/fts (Depends-on): Add openat-h.
1637         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1638         openat.
1639         * modules/mkdirat (Files): Remove lib/openat.h.
1640         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1641         openat, stdbool, sys_stat.
1642         * modules/mkfifoat (Files): Add lib/at-func.c.
1643         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1644         openat-h, save-cwd. Remove fcntl-h, openat.
1645         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1646         * modules/readlinkat (Files): Add lib/at-func.c.
1647         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1648         openat-h, save-cwd. Remove fcntl-h, openat.
1649         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1650         openat.
1651         * modules/selinux-at (Files): Add lib/at-func.c.
1652         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1653         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1654         * modules/symlinkat (Files): Add lib/at-func.c.
1655         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1656         openat-h, save-cwd. Remove fcntl-h, openat.
1657         * modules/unlinkat (Files): Remove lib/openat.h.
1658         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1659         stdbool.
1660         * modules/utimensat (Files): Add lib/at-func.c.
1661         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1662         openat-die, openat-h, save-cwd.
1663         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1664         * modules/fdutimensat-tests (Depends-on): Add openat.
1665         * modules/fstatat-tests (Depends-on): Add openat-h.
1666         * modules/readlinkat-tests (Depends-on): Add openat.
1667         * modules/symlinkat-tests (Depends-on): Add openat.
1668
1669 2011-11-05  Bruno Haible  <bruno@clisp.org>
1670
1671         openat: Include <stdbool.h>.
1672         * lib/openat.c: Include <stdbool.h>.
1673
1674 2011-11-04  Bruno Haible  <bruno@clisp.org>
1675
1676         fchownat, renameat, unlinkat: Fix dependencies.
1677         * modules/fchownat (Depends-on): Add fstatat.
1678         * modules/renameat (Depends-on): Likewise.
1679         * modules/unlinkat (Depends-on): Likewise.
1680
1681 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1682
1683         openat: remove direct dependency on dirent
1684         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1685         and hasn't been needed ever since fdopendir was split into its own
1686         module on 2009-08-31.
1687         * modules/openat (Depends-on): Remove dirent.
1688
1689 2011-11-04  Bruno Haible  <bruno@clisp.org>
1690
1691         renameat: Optimize code size.
1692         * modules/renameat (configure.ac): Don't compile at-func2.c if
1693         REPLACE_RENAMEAT is 1.
1694
1695 2011-11-04  Bruno Haible  <bruno@clisp.org>
1696
1697         openat tests: Fix file list.
1698         * modules/openat-tests (Files): Add tests/test-open.h.
1699
1700 2011-11-04  Bruno Haible  <bruno@clisp.org>
1701
1702         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1703         * modules/fchmodat (Depends-on): Add openat-die.
1704         * modules/fchownat (Depends-on): Likewise.
1705         * modules/linkat (Depends-on): Likewise.
1706         * modules/renameat (Depends-on): Likewise.
1707         * modules/openat (Depends-on): Add dirent.
1708
1709 2011-11-04  Jim Meyering  <meyering@redhat.com>
1710
1711         at-func*.c: fix comments
1712         * lib/at-func2.c: Correct/improve first-line comment.
1713         * lib/at-func.c: Correct grammar in first-line comment.
1714
1715 2011-11-04  Bruno Haible  <bruno@clisp.org>
1716
1717         New module 'mkdirat', split off from module 'openat'.
1718         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1719         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1720         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1721         * modules/mkdirat: New file, extracted from modules/openat.
1722         * modules/openat (Files): Remove lib/mkdirat.c.
1723         (Depends-on): Remove mkdir.
1724         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1725         (Include): Remove <sys/stat.h>.
1726         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1727         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1728         tests/test-mkdir.h.
1729         (Depends-on): Remove ignore-value.
1730         (Makefile.am): Remove rules for test-mkdirat.
1731         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1732         of module 'openat'.
1733         * NEWS: Mention the change.
1734
1735 2011-11-04  Bruno Haible  <bruno@clisp.org>
1736
1737         closedir: Avoid warning on mingw.
1738         * lib/closedir.c: Include <unistd.h>.
1739
1740 2011-11-04  Bruno Haible  <bruno@clisp.org>
1741
1742         New module 'fstatat', split off from module 'openat'.
1743         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1744         defined.
1745         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1746         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1747         gl_FUNC_FSTATAT.
1748         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1749         * modules/fstatat: New file, extracted from modules/openat.
1750         * modules/openat (Files): Remove lib/fstatat.c.
1751         (Depends-on): Remove lstat.
1752         (configure.ac): Remove AC_LIBOBJ of fstatat.
1753         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1754         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1755         tests/test-lstat.h, tests/test-stat.h.
1756         (Depends-on): Remove getcwd-lgpl.
1757         (Makefile.am): Remove rules for test-fstatat.
1758         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1759         of module 'openat'.
1760         * NEWS: Mention the change.
1761         * modules/getcwd (Depends-on): Add fstatat.
1762         * modules/linkat (Depends-on): Likewise.
1763         * modules/mkfifoat-tests (Depends-on): Likewise.
1764         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1765
1766 2011-11-03  Bruno Haible  <bruno@clisp.org>
1767
1768         New module 'unlinkat', split off from module 'openat'.
1769         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1770         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1771         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1772         * modules/unlinkat: New file, extracted from modules/openat. Correct
1773         the dependency conditions.
1774         * modules/openat (Files): Remove lib/unlinkat.c.
1775         (Depends-on): Remove rmdir, unlink.
1776         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1777         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1778         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1779         tests/test-rmdir.h, tests/test-unlink.h.
1780         (Depends-on): Remove unlinkdir.
1781         (Makefile.am): Remove rules for test-unlinkat.
1782         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1783         of module 'openat'.
1784         * NEWS: Mention the change.
1785         * modules/linkat-tests (Depends-on): Add unlinkat.
1786         * modules/mkfifoat-tests (Depends-on): Likewise.
1787         * modules/readlinkat-tests (Depends-on): Likewise.
1788
1789 2011-11-02  Bruno Haible  <bruno@clisp.org>
1790
1791         New module 'fchmodat', split off from module 'openat'.
1792         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1793         defined.
1794         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1795         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1796         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1797         * modules/fchmodat: New file, extracted from modules/openat.
1798         * modules/openat (Files): Remove lib/fchmodat.c.
1799         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1800         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1801         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1802         (Makefile.am): Remove rules for test-fchmodat.
1803         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1804         of module 'openat'.
1805         * NEWS: Mention the change.
1806
1807 2011-11-02  Jim Meyering  <meyering@redhat.com>
1808
1809         putenv: indent #definition of "environ" to placate cppi
1810         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1811
1812         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1813         Git logs are often treated as immutable, because editing them
1814         changes the SHA1 checksums of all descendants.  Thus, errors in
1815         git logs tend to stay there forever.  However, when we generate
1816         a ChangeLog file -- typically for distribution -- from that git log,
1817         we can actually make corrections in the generated file.  The key
1818         lies in recording in machine-readable/applicable form the desired
1819         corrections.  See --help for description and an example.
1820         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1821         (usage): Describe it; alphabetize option descriptions.
1822         (main): Honor the new option, carefully.
1823
1824 2011-11-01  Jim Meyering  <meyering@redhat.com>
1825
1826         gitlog-to-changelog: avoid an infloop
1827         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1828         that ends up being empty.
1829
1830 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1831
1832         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1833         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1834         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1835         contains (possibly-quoted) backslashes.  This should avoid
1836         all-too-common shell bugs if COMPLICATED contains backslashes in
1837         the "wrong" places.  Reported by David Evans in
1838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1839         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1840         because we want ASCII ranges.  Is there some reason we don't use
1841         the C locale everywhere in this script?
1842         (func_module, top level): Avoid unwanted pathname expansion when
1843         $repo_url_prefix or $repo_url_suffix_repl contain shell
1844         metacharacters like '?' and '*'.
1845
1846 2011-11-01  Bruno Haible  <bruno@clisp.org>
1847
1848         fchownat: Improve description.
1849         * modules/fchownat (Description): Add link to function.
1850
1851 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1852
1853         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1854         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1856         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1857
1858 2011-11-01  Bruno Haible  <bruno@clisp.org>
1859
1860         alignof: Avoid collision with stdalign module.
1861         * lib/alignof.h (alignof): Remove macro.
1862         * NEWS: Mention the change.
1863         Reported by Paul Eggert.
1864
1865 2011-11-01  Bruno Haible  <bruno@clisp.org>
1866
1867         New module 'fchownat', split off from module 'openat'.
1868         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1869         defined.
1870         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1871         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1872         invoke gl_FUNC_FCHOWNAT.
1873         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1874         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1875         * modules/fchownat: New file, extracted from modules/openat.
1876         * modules/openat (Files): Remove lib/fchownat.c.
1877         (Depends-on): Remove lchown.
1878         (configure.ac): Remove AC_LIBOBJ of fchownat.
1879         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1880         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1881         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1882         (Depends-on): Remove mgetgroups, usleep, stat-time.
1883         (configure.ac): Remove test for getegid.
1884         (Makefile.am): Remove rules for test-fchownat.
1885         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1886         of module 'openat'.
1887         * NEWS: Mention the change.
1888
1889 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1890
1891         stdalign: port better to MSVC and to Sun C 5.11
1892         This fixes some of the problems reported by Bruno Haible in
1893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1894         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1895         shortcomings of MSVC and of Sun C 5.11.
1896         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1897         around __declspec arg.
1898         * modules/stdalign-tests (Files): Add tests/macros.h.
1899         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1900         Include macros.h, for ASSERT.
1901         (DECLARE_ALIGNED): Remove.
1902         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1903         to catch bug), and to 1 if not (simplifies the rest of the code).
1904         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1905         (CHECK_AUTO): Remove.
1906         (CHECK_ALIGNED): Check only the alignment of the static vars,
1907         since auto var alignment isn't supported by Sun C 5.11.
1908         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1909         ASSERT failures are easier to diagnose.
1910
1911 2011-10-31  Bruno Haible  <bruno@clisp.org>
1912
1913         doc about some IRIX 5.3 problems.
1914         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1915         on IRIX 5.3.
1916         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1917         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1918         5.3.
1919         * doc/posix-functions/grantpt.texi: Likewise.
1920         * doc/posix-functions/unlockpt.texi: Likewise.
1921         * doc/posix-functions/lgamma.texi: Likewise.
1922         * doc/posix-functions/nextafter.texi: Likewise.
1923         * doc/posix-functions/remainder.texi: Likewise.
1924         * doc/posix-functions/select.texi: Mention misplaced declaration on
1925         IRIX 5.3.
1926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1927
1928 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1929
1930         gitlog-to-changelog: fix git-log invocation.
1931         git-log mishandles date strings before 1970-01-01 UTC, and there is
1932         no use to specify --since=1970-01-01 by default anyway.
1933         * build-aux/gitlog-to-changelog: By default, when no --since option
1934         was given, do not specify explicit --since option to git-log.
1935
1936 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1937
1938         gitlog-to-changelog: new option --append-dot.
1939         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1940         first non-blank line of each commit message terminated with a dot.
1941
1942 2011-10-30  Bruno Haible  <bruno@clisp.org>
1943
1944         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1945         * lib/ffsl.h: Include <config.h>.
1946         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1947
1948 2011-10-30  Jim Meyering  <meyering@redhat.com>
1949
1950         GNUmakefile: reenable "make syntax-check" for most projects
1951         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1952         build-aux variable", "syntax-check" would do nothing but succeed with
1953         the "No version control files detected..." diagnostic (unless you
1954         happened to override _build-aux via cfg.mk).
1955         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1956         to precede inclusion of maint.mk.  Otherwise, these variables would
1957         be used undefined in any project that does not override the default.
1958
1959 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1960
1961         gitlog-to-changelog: treat a message with only blank lines as empty.
1962         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1963         trailing blank lines before the code that issues a warning about an
1964         empty commit message.
1965
1966 2011-10-30  Jim Meyering  <meyering@redhat.com>
1967
1968         test-parse-datetime.c: avoid new DST-related false positive test failure
1969         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1970         based on the time/date we'll convert, not the current time.
1971         Otherwise, the moment we cross a DST boundary like today's in
1972         Europe, (CEST to CET), that offset ends up being one hour off.
1973
1974 2011-10-27  Bruno Haible  <bruno@clisp.org>
1975
1976         fstat: Tweak documentation.
1977         * modules/fstat (Description): More precise description.
1978
1979 2011-10-27  Bruno Haible  <bruno@clisp.org>
1980
1981         Update documentation regarding 'largefile' module.
1982         * doc/posix-functions/fstat.texi: Tweak wording.
1983         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1984         problems with huge directories and/or small ino_t types.
1985         * doc/posix-functions/readdir.texi: Likewise.
1986         * doc/posix-functions/rewinddir.texi: Likewise.
1987
1988 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1989
1990         maint.mk: don't maintain a second build-aux variable.
1991         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1992         depends on GNUmakefile, which already maintains a cfg.mk
1993         overridable $(_build-aux) for projects with a non-standard
1994         build-aux directory location, although without the $(srcdir)
1995         prefix.  Use that variable consistently instead of introducing a
1996         second one.  Adjust all call sites.
1997
1998 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1999
2000         Add stdalign module and use it in other modules.
2001         This is based on a previous proposal by Bruno Haible
2002         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2003
2004         stdalign: new module
2005         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2006         * modules/stdalign: New files.
2007         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2008         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2009
2010         stdalign-tests: new module
2011         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2012
2013         argp: use stdalign
2014         * lib/argp-parse.c: Include <stdalign.h>.
2015         (alignof): Remove.
2016         * modules/argp (Depends-on): Add stdalign.
2017
2018         crypto libraries: use stdalign
2019         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2020         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2021         Do not include <stdlib.h> twice, in md4.c.
2022         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2023         because we are accessing a pointer's bit-pattern, not a size.
2024         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2025         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2026         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2027         * modules/crypto/sha512: Likewise.
2028
2029         sys_socket: use stdalign, not alignof
2030         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2031         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2032
2033 2011-10-27  Bruno Haible  <bruno@clisp.org>
2034
2035         raise test: Avoid a test failure on Linux/MIPS.
2036         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2037         because 99 is a valid signal on Linux/MIPS.
2038
2039 2011-10-27  Bruno Haible  <bruno@clisp.org>
2040
2041         nonblocking tests: Fix test failure on Linux/MIPS.
2042         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2043         Set to 270000.
2044
2045 2011-10-27  Bruno Haible  <bruno@clisp.org>
2046
2047         utimensat: Work around problem on Linux/hppa.
2048         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2049         values.
2050         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2051
2052 2011-10-25  Jim Meyering  <meyering@redhat.com>
2053
2054         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2055         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2056         after symbols like NULL, size_t, etc.
2057         Reported by Alfred M. Szmidt.
2058
2059         maint.mk: exempt ENODATA from a syntax-check rule
2060         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2061         from the sc_prohibit_always-defined_macros syntax-check rule.
2062         Add a comment.  See this for more details:
2063         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2064
2065 2011-10-23  Jim Meyering  <meyering@redhat.com>
2066
2067         fts: close parent dir FD before returning from post-traversal fts_read
2068         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2069         unlink A, even though an FD open on A remained.  This is suboptimal
2070         (holding a file descriptor open longer than needed), but otherwise not
2071         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2072         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2073         that represents a real problem: it causes the removal of A to fail
2074         with e.g., "rm: cannot remove `A': Device or resource busy"
2075
2076         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2077         directory file descriptors.  After completing the final, FTS_DP,
2078         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2079         cache, but then proceeded to add a new FD to it via the subsequent
2080         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2081         final file descriptor would be closed only via fts_close's call to
2082         fd_ring_clear.  Now, it is usually closed earlier, via the final
2083         FTS_DP-returning fts_read call.
2084         * lib/fts.c (restore_initial_cwd): New function, converted from
2085         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2086         Update callers.
2087         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2088         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2089
2090 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2091             Bruno Haible  <bruno@clisp.org>
2092             Jim Meyering  <jim@meyering.net>
2093
2094         readme-release: improve safety of release prep instructions.
2095         * README-release: Don't git pull all branches when only master
2096         is needed for the release process.
2097         Run make maintainer-clean before changing trees and merging.
2098         Don't try to run ./configure right after git pull in case files
2099         that influence the bootstrap process have changed, move the
2100         ./configure step to after running ./bootstrap.
2101         Don't bootstrap "one last time"... it's the first time!
2102
2103 2011-10-22  Bruno Haible  <bruno@clisp.org>
2104
2105         errno, strerror-override: Support for MSVC 10.
2106         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2107         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2108         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2109         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2110         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2111         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2112         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2113         Assign values compatible with MSVC 10.
2114         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2115         New macros.
2116         (GNULIB_defined_EWINSOCK): New macro.
2117         * lib/strerror-override.c (strerror_override): Update accordingly.
2118         * lib/strerror-override.h: Likewise.
2119         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2120         longer equal to the corresponding errno value.
2121         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2122
2123 2011-10-22  Bruno Haible  <bruno@clisp.org>
2124
2125         perror: Recognize when test program crashes.
2126         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2127         strerror, set gl_cv_func_perror_works to no.
2128         Reported by Daniel Richard G. <skunk@iskunk.org>.
2129
2130         perror: Fix indentation.
2131         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2132
2133 2011-10-22  Bruno Haible  <bruno@clisp.org>
2134
2135         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2136         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2137         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2138         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2139         functions, not as a macro.
2140         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2141         macros.
2142         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2143         absence of macro.
2144         Suggested by Eric Blake.
2145         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2146
2147 2011-10-21  Bruno Haible  <bruno@clisp.org>
2148
2149         relocatable-prog-wrapper: Don't leave object files behind.
2150         * build-aux/install-reloc: Re-synchronize list of .o files to be
2151         removed with list of compilation units.
2152
2153 2011-10-20  Bruno Haible  <bruno@clisp.org>
2154
2155         openpty, posix_openpt: Remove code duplication.
2156         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2157         * lib/openpty.c: Include <stdlib.h>.
2158         (openpty): Use posix_openpt on all platforms except IRIX.
2159         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2160
2161 2011-10-20  Bruno Haible  <bruno@clisp.org>
2162
2163         unlockpt: Detect invalid argument.
2164         * lib/unlockpt.c: Include <fcntl.h>.
2165         (unlockpt): Check whether fd is valid, using fcntl().
2166         * modules/unlockpt (Depends-on): Add fcntl-h.
2167
2168 2011-10-20  Bruno Haible  <bruno@clisp.org>
2169
2170         openpty: Avoid compilation error on AIX 6.1.
2171         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2172
2173 2011-10-20  Bruno Haible  <bruno@clisp.org>
2174
2175         posix_openpt: Support for OpenBSD.
2176         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2177         (posix_openpt) [OpenBSD]: New code.
2178         * lib/grantpt.c: Include <fcntl.h>.
2179         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2180         * modules/grantpt (Depends-on): Add fcntl-h.
2181
2182 2011-10-20  Bruno Haible  <bruno@clisp.org>
2183
2184         posix_openpt test: Coding style.
2185         * tests/test-posix_openpt.c: Use GNU coding style.
2186
2187 2011-10-20  Bruno Haible  <bruno@clisp.org>
2188
2189         grantpt: Support --avoid=pt_chown.
2190         * modules/grantpt (Files): Add lib/pty-private.h.
2191
2192 2011-10-20  Bruno Haible  <bruno@clisp.org>
2193
2194         posix_openpt: Fix autoconf macro.
2195         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2196         unneeded check for _getpty.
2197
2198 2011-10-20  Bruno Haible  <bruno@clisp.org>
2199
2200         openpty: Update comments.
2201         * lib/openpty.c: Add comments about Minix.
2202
2203 2011-10-19  Eric Blake  <eblake@redhat.com>
2204
2205         openpty: relax license
2206         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2207
2208         pt_chown: use configmake to simplify build
2209         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2210
2211         ptsname and others: relax license
2212         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2213         * modules/unlockpt (License): Likewise.
2214         * modules/pt_chown (License): Likewise.
2215         * modules/ptsname (License): Likewise.
2216         * modules/ttyname_r (License): Likewise.
2217
2218 2011-10-19  Jim Meyering  <meyering@redhat.com>
2219
2220         posix_openpt: remove spurious #endif
2221         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2222
2223 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2224
2225         maint.mk: Respect $(build_aux) in web-manual rule.
2226         * top/maint.mk (web-manual): Find gen-announce script in user's
2227         $(build_aux) directory instead of hard-coding 'build-aux'.
2228
2229 2011-10-19  Bruno Haible  <bruno@clisp.org>
2230
2231         posix_openpt: Fix compilation error.
2232         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2233         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2234         Mention the openpty module as an alternative.
2235
2236 2011-10-19  Bruno Haible  <bruno@clisp.org>
2237
2238         Support for old NeXTstep 3.3 frexp().
2239         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2240         execution time of the test to 5 seconds.
2241         Reported by Daniel Richard G. <skunk@iskunk.org>.
2242
2243 2011-10-19  Bruno Haible  <bruno@clisp.org>
2244
2245         Support for old NeXTstep 3.3 sed.
2246         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2247         part, use /.../, not \|...|. Escape periods in the header file name.
2248         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2249         Reported by Daniel Richard G. <skunk@iskunk.org>.
2250
2251 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2252
2253         Support for old NeXTstep 3.3 gcc.
2254         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2255         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2256         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2257         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2258         * lib/regex.h (_Restrict_arr_): Likewise.
2259         * lib/regex_internal.h (re_token_t): Likewise.
2260         * lib/regexec.c (check_node_accept_bytes): Likewise.
2261         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2262
2263 2011-10-18  Eric Blake  <eblake@redhat.com>
2264
2265         posix_openpt: new module
2266         * modules/posix_openpt: New module.
2267         * m4/posix_openpt.m4: New file.
2268         * lib/posix_openpt.c: Likewise.
2269         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2270         (gl_STDLIB_H_DEFAULTS): Set defaults.
2271         * modules/stdlib (Makefile.am): Substitute macros.
2272         * lib/stdlib.in.h (posix_openpt): Declare.
2273         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2274         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2275         * modules/posix_openpt-tests: New test module.
2276         * tests/test-posix_openpt.c: New test.
2277
2278 2011-10-15  Bruno Haible  <bruno@clisp.org>
2279
2280         xstrtoll: Fix compilation failure.
2281         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2282         from lib/strtol.c.
2283         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2284         some platforms.
2285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2286
2287 2011-10-15  Bruno Haible  <bruno@clisp.org>
2288
2289         vasnprintf: Optimize bit search operation.
2290         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2292         gl_DOUBLE_EXPONENT_LOCATION.
2293         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2294         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2295         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2296         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2297         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2298         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2299         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2300         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2301         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2302
2303 2011-10-15  Bruno Haible  <bruno@clisp.org>
2304
2305         vasnprintf: Fix comments.
2306         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2307
2308 2011-10-14  Bruno Haible  <bruno@clisp.org>
2309
2310         Tests for module 'integer_length_ll'.
2311         * modules/integer_length_ll-tests: New file.
2312         * tests/test-integer_length_ll.c: New file.
2313
2314         New module 'integer_length_ll'.
2315         * lib/integer_length_ll.c: New file.
2316         * modules/integer_length_ll: New file.
2317
2318 2011-10-14  Bruno Haible  <bruno@clisp.org>
2319
2320         Tests for module 'integer_length_l'.
2321         * modules/integer_length_l-tests: New file.
2322         * tests/test-integer_length_l.c: New file.
2323
2324         New module 'integer_length_l'.
2325         * lib/integer_length_l.c: New file.
2326         * modules/integer_length_l: New file.
2327
2328 2011-10-14  Bruno Haible  <bruno@clisp.org>
2329
2330         Tests for module 'integer_length'.
2331         * modules/integer_length-tests: New file.
2332         * tests/test-integer_length.c: New file.
2333
2334         New module 'integer_length'.
2335         * lib/integer_length.h: New file.
2336         * lib/integer_length.c: New file.
2337         * modules/integer_length: New file.
2338
2339 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2340
2341         popen: Fix dependency conditions.
2342         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2343
2344 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2345
2346         perror: Fix autoconf test.
2347         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2348         <stdlib.h> and <string.h>.
2349
2350 2011-10-14  Bruno Haible  <bruno@clisp.org>
2351
2352         ffsl: Optimize on 64-bit platforms.
2353         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2354         unrolling.
2355
2356 2011-10-13  Bruno Haible  <bruno@clisp.org>
2357
2358         ffsl: Optimize on 32-bit platforms.
2359         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2360         use ffs() without a loop.
2361
2362         ffsl, ffsll: Optimize for GCC.
2363         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2364         * lib/ffsl.c (GCC_BUILTIN): New macro.
2365         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2366
2367 2011-10-13  Bruno Haible  <bruno@clisp.org>
2368
2369         ffs, bcopy, memset: Support symbol renaming via config.h.
2370         * lib/ffs.c: Include <config.h>.
2371         * lib/bcopy.c: Likewise.
2372         * lib/memset.c: Likewise.
2373
2374 2011-10-10  Bruno Haible  <bruno@clisp.org>
2375
2376         atanl: Simplify for platforms where 'long double' == 'double'.
2377         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2378         alternative implementation.
2379         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2380         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2381         * modules/atanl (Depends-on): Add atan. Update conditions.
2382
2383 2011-10-10  Bruno Haible  <bruno@clisp.org>
2384
2385         acosl: Simplify for platforms where 'long double' == 'double'.
2386         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2387         alternative implementation.
2388         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2389         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2390         * modules/acosl (Depends-on): Add acos. Update conditions.
2391
2392 2011-10-10  Bruno Haible  <bruno@clisp.org>
2393
2394         asinl: Simplify for platforms where 'long double' == 'double'.
2395         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2396         alternative implementation.
2397         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2398         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2399         * modules/asinl (Depends-on): Add asin. Update conditions.
2400
2401 2011-10-10  Bruno Haible  <bruno@clisp.org>
2402
2403         tanl: Simplify for platforms where 'long double' == 'double'.
2404         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2405         implementation.
2406         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2407         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2408         * modules/tanl (Depends-on): Add tan. Update conditions.
2409         (configure.ac): Don't compile trigl.c if
2410         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2411
2412 2011-10-10  Bruno Haible  <bruno@clisp.org>
2413
2414         cosl: Simplify for platforms where 'long double' == 'double'.
2415         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2416         implementation.
2417         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2418         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2419         * modules/cosl (Depends-on): Add cos. Update conditions.
2420         (configure.ac): Don't compile sincosl.c and trigl.c if
2421         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2422
2423 2011-10-10  Bruno Haible  <bruno@clisp.org>
2424
2425         sinl: Simplify for platforms where 'long double' == 'double'.
2426         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2427         implementation.
2428         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2429         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2430         * modules/sinl (Depends-on): Add sin. Update conditions.
2431         (configure.ac): Don't compile sincosl.c and trigl.c if
2432         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2433
2434 2011-10-10  Bruno Haible  <bruno@clisp.org>
2435
2436         logl: Simplify for platforms where 'long double' == 'double'.
2437         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2438         implementation.
2439         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2440         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2441         * modules/logl (Depends-on): Add log. Update conditions.
2442
2443 2011-10-10  Bruno Haible  <bruno@clisp.org>
2444
2445         expl: Simplify for platforms where 'long double' == 'double'.
2446         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2447         implementation.
2448         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2449         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2450         * modules/expl (Depends-on): Add exp. Update conditions.
2451
2452 2011-10-10  Bruno Haible  <bruno@clisp.org>
2453
2454         sqrtl: Simplify for platforms where 'long double' == 'double'.
2455         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2456         alternative implementation.
2457         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2458         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2459         * modules/sqrtl (Depends-on): Update conditions.
2460
2461 2011-10-10  Bruno Haible  <bruno@clisp.org>
2462
2463         ldexpl: Simplify for platforms where 'long double' == 'double'.
2464         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2465         alternative implementation.
2466         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2467         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2468         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2469
2470 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2471
2472         ffsll: set correct witness
2473         * modules/ffsll (configure.ac): Fix typo.
2474
2475 2011-10-10  Bruno Haible  <bruno@clisp.org>
2476
2477         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2478         * lib/printf-frexpl.c: Include <config.h>.
2479         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2480         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2481         second time.
2482         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2483         gl_LONG_DOUBLE_VS_DOUBLE.
2484         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2485         conditions.
2486
2487 2011-10-10  Bruno Haible  <bruno@clisp.org>
2488
2489         frexpl: Simplify for platforms where 'long double' == 'double'.
2490         * lib/frexpl.c: Include <config.h>.
2491         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2492         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2493         time.
2494         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2495         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2496         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2497         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2498         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2499         conditions.
2500
2501 2011-10-10  Jim Meyering  <meyering@redhat.com>
2502
2503         test-renameat: don't leave behind a temporary file
2504         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2505           ERROR: files left in build directory after distclean:
2506           ./gltests/test-renameat.too
2507           make[1]: *** [distcleancheck] Error 1
2508         Reported by Tom G. Christensen.
2509
2510 2011-10-09  Bruno Haible  <bruno@clisp.org>
2511
2512         rint: Determine RINT_LIBM correctly on AIX 7.
2513         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2514         directly, not only through a function pointer. Also accept an optional
2515         4th argument with extra code.
2516         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2517         rintf() call by gcc when optimizing.
2518
2519         mathfunc.m4: Refactor.
2520         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2521         m4 variable.
2522
2523 2011-10-09  Bruno Haible  <bruno@clisp.org>
2524
2525         rintl: Simplify for platforms where 'long double' == 'double'.
2526         * lib/rintl.c: Include <config.h>.
2527         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2528         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2529         time.
2530         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2531         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2532         * modules/rintl (Depends-on): Add rint. Update conditions.
2533
2534 2011-10-09  Bruno Haible  <bruno@clisp.org>
2535
2536         roundl: Simplify for platforms where 'long double' == 'double'.
2537         * lib/roundl.c: Include <config.h>.
2538         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2539         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2540         time.
2541         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2542         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2543         * modules/roundl (Depends-on): Add round. Update conditions.
2544
2545 2011-10-09  Bruno Haible  <bruno@clisp.org>
2546
2547         truncl: Simplify for platforms where 'long double' == 'double'.
2548         * lib/truncl.c: Include <config.h>.
2549         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2550         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2551         time.
2552         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2553         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2554         * modules/truncl (Depends-on): Add trunc. Update conditions.
2555
2556 2011-10-09  Bruno Haible  <bruno@clisp.org>
2557
2558         ceill: Simplify for platforms where 'long double' == 'double'.
2559         * lib/ceill.c: Include <config.h>.
2560         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2561         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2562         time.
2563         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2564         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2565         * modules/ceill (Depends-on): Add ceil. Update conditions.
2566
2567 2011-10-09  Bruno Haible  <bruno@clisp.org>
2568
2569         floorl: Simplify for platforms where 'long double' == 'double'.
2570         * lib/floorl.c: Include <config.h>.
2571         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2572         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2573         time.
2574         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2575         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2576         * modules/floorl (Depends-on): Add floor. Update conditions.
2577
2578 2011-10-09  Bruno Haible  <bruno@clisp.org>
2579
2580         rint: Fix ordering constraints.
2581         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2582         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2583         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2584
2585 2011-10-09  Bruno Haible  <bruno@clisp.org>
2586
2587         copysignl: Simplify for platforms where 'long double' == 'double'.
2588         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2589         alternative.
2590         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2591         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2592         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2593
2594 2011-10-09  Bruno Haible  <bruno@clisp.org>
2595
2596         Tests for module 'rintl'.
2597         * modules/rintl-tests: New file.
2598         * tests/test-rintl.c: New file.
2599
2600         New module 'rintl'.
2601         * lib/math.in.h (rintl): New declaration.
2602         * lib/rintl.c: New file.
2603         * m4/rintl.m4: New file.
2604         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2606         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2607         * modules/rintl: New file.
2608         * tests/test-math-c++.cc: Check the declaration of rintl.
2609         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2610         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2611         * doc/posix-functions/rintl.texi: Mention the new module.
2612
2613 2011-10-09  Bruno Haible  <bruno@clisp.org>
2614
2615         Tests for module 'rintf'.
2616         * modules/rintf-tests: New file.
2617         * tests/test-rintf.c: New file.
2618
2619         New module 'rintf'.
2620         * lib/math.in.h (rintf): New declaration.
2621         * lib/rintf.c: New file.
2622         * m4/rintf.m4: New file.
2623         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2625         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2626         * modules/rintf: New file.
2627         * tests/test-math-c++.cc: Check the declaration of rintf.
2628         * doc/posix-functions/rintf.texi: Mention the new module.
2629
2630 2011-10-09  Bruno Haible  <bruno@clisp.org>
2631
2632         rint: Support for MSVC.
2633         * lib/math.in.h (rint): New declaration.
2634         * lib/rint.c: New file.
2635         * m4/rint.m4: New file.
2636         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2638         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2639         * modules/rint (Description): Fix.
2640         (Files): Add lib/rint.c, m4/rint.m4.
2641         (Depends-on): Add math.
2642         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2643         gl_MATH_MODULE_INDICATOR.
2644         * tests/test-math-c++.cc: Check the declaration of rint.
2645         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2646         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2647         * doc/posix-functions/rint.texi: Mention the replacement provided by
2648         the module.
2649
2650         rint tests: More tests.
2651         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2652         minus-zero.h, infinity.h, nan.h.
2653         (main): Skip the test if the current rounding mode is not standard. Add
2654         tests for negative numbers, minus zero, infinity, NaN.
2655         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2656         tests/nan.h.
2657         (Depends-on): Add isnand-nolibm.
2658
2659 2011-10-09  Bruno Haible  <bruno@clisp.org>
2660
2661         Tests for module 'copysignl'.
2662         * modules/copysignl-tests: New file.
2663         * tests/test-copysignl.c: New file.
2664
2665         New module 'copysignl'.
2666         * lib/math.in.h (copysignl): New declaration.
2667         * lib/copysignl.c: New file.
2668         * m4/copysignl.m4: New file.
2669         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2671         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2672         HAVE_COPYSIGNL.
2673         * modules/copysignl: New file.
2674         * tests/test-math-c++.cc: Check the declaration of copysignl.
2675         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2676         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2677         * doc/posix-functions/copysignl.texi: Mention the new module.
2678
2679 2011-10-09  Bruno Haible  <bruno@clisp.org>
2680
2681         Tests for module 'copysignf'.
2682         * modules/copysignf-tests: New file.
2683         * tests/test-copysignf.c: New file.
2684
2685         New module 'copysignf'.
2686         * lib/math.in.h (copysignf): New declaration.
2687         * lib/copysignf.c: New file.
2688         * m4/copysignf.m4: New file.
2689         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2690         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2691         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2692         HAVE_COPYSIGNF.
2693         * modules/copysignf: New file.
2694         * tests/test-math-c++.cc: Check the declaration of copysignf.
2695         * doc/posix-functions/copysignf.texi: Mention the new module.
2696
2697 2011-10-09  Bruno Haible  <bruno@clisp.org>
2698
2699         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2700         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2701         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2702         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2703         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2704         gl_SIGNAL_H_DEFAULTS.
2705
2706 2011-10-09  Bruno Haible  <bruno@clisp.org>
2707
2708         poll: Make macro safer.
2709         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2710         ac_cv_header_poll_h is not set.
2711
2712 2011-10-09  Bruno Haible  <bruno@clisp.org>
2713
2714         copysign: Provide replacement.
2715         * lib/math.in.h (copysign): New declaration.
2716         * lib/copysign.c: New file.
2717         * m4/copysign.m4: New file.
2718         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2720         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2721         HAVE_COPYSIGN.
2722         * modules/copysign (Description): Clarify.
2723         (Files): Add lib/copysign.c, m4/copysign.m4.
2724         (Depends-on): Add math, signbit.
2725         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2726         gl_MATH_MODULE_INDICATOR.
2727         * tests/test-math-c++.cc: Check the declaration of copysign.
2728         * doc/posix-functions/copysign.texi: Mention the effects of the module
2729         on Minix and MSVC.
2730
2731 2011-10-09  Bruno Haible  <bruno@clisp.org>
2732
2733         isinf: Ensure macro on AIX 5.1.
2734         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2735         macro.
2736         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2737
2738 2011-10-09  Bruno Haible  <bruno@clisp.org>
2739
2740         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2741         * modules/snprintf-posix-tests (configure.ac): Require
2742         gl_LONG_DOUBLE_VS_DOUBLE.
2743         * modules/sprintf-posix-tests (configure.ac): Likewise.
2744         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2745         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2746         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2747         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2748         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2749         tests on platforms where 'long double' is the same as 'double'.
2750         * tests/test-sprintf-posix.h (test_function): Likewise.
2751         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2752         * tests/test-vasprintf-posix.c (test_function): Likewise.
2753
2754         *printf: Fix for platforms where 'long double' == 'double'.
2755         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2756         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2757         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2758         * modules/fprintf-posix (Files): Likewise.
2759         * modules/obstack-printf-posix (Files): Likewise.
2760         * modules/snprintf-posix (Files): Likewise.
2761         * modules/sprintf-posix (Files): Likewise.
2762         * modules/vasnprintf (Files): Likewise.
2763         * modules/vasnprintf-posix (Files): Likewise.
2764         * modules/vasprintf-posix (Files): Likewise.
2765         * modules/vdprintf-posix (Files): Likewise.
2766         * modules/vfprintf-posix (Files): Likewise.
2767         * modules/vsnprintf-posix (Files): Likewise.
2768         * modules/vsprintf-posix (Files): Likewise.
2769         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2770         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2771         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2772         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2773         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2774         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2775         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2776
2777         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2778         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2779         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2780         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2781         'long double'.
2782         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2783
2784         isinf: Fix for platforms where 'long double' == 'double'.
2785         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2786         Don't blindly assume 80-bit 'long double'.
2787
2788         isfinite: Fix for platforms where 'long double' == 'double'.
2789         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2790         Don't blindly assume 80-bit 'long double'.
2791
2792         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2793         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2794         * modules/isfinite-tests (configure.ac): Require
2795         gl_LONG_DOUBLE_VS_DOUBLE.
2796         * modules/isinf-tests (configure.ac): Likewise.
2797         * modules/isnan-tests (configure.ac): Likewise.
2798         * modules/isnanl-tests (configure.ac): Likewise.
2799         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2800         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2801         tests on platforms where 'long double' is the same as 'double'.
2802         * tests/test-isinf.c (test_isinfl): Likewise.
2803         * tests/test-isnan.c (test_long_double): Likewise.
2804         * tests/test-isnanl.h (main): Likewise.
2805
2806 2011-10-08  Bruno Haible  <bruno@clisp.org>
2807
2808         Tests for module 'tanhf'.
2809         * modules/tanhf-tests: New file.
2810         * tests/test-tanhf.c: New file.
2811
2812         New module 'tanhf'.
2813         * lib/math.in.h (tanhf): New declaration.
2814         * lib/tanhf.c: New file.
2815         * m4/tanhf.m4: New file.
2816         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2818         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2819         * modules/tanhf: New file.
2820         * tests/test-math-c++.cc: Check the declaration of tanhf.
2821         * doc/posix-functions/tanhf.texi: Mention the new module.
2822
2823         tanh: Use a .m4 file.
2824         * m4/tanh.m4: New file.
2825         * modules/tanh (Files): Add it.
2826         (configure.ac): Just invoke gl_FUNC_TANH.
2827
2828 2011-10-08  Bruno Haible  <bruno@clisp.org>
2829
2830         Tests for module 'coshf'.
2831         * modules/coshf-tests: New file.
2832         * tests/test-coshf.c: New file.
2833
2834         New module 'coshf'.
2835         * lib/math.in.h (coshf): New declaration.
2836         * lib/coshf.c: New file.
2837         * m4/coshf.m4: New file.
2838         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2840         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2841         * modules/coshf: New file.
2842         * tests/test-math-c++.cc: Check the declaration of coshf.
2843         * doc/posix-functions/coshf.texi: Mention the new module.
2844
2845         cosh: Use a .m4 file.
2846         * m4/cosh.m4: New file.
2847         * modules/cosh (Files): Add it.
2848         (configure.ac): Just invoke gl_FUNC_COSH.
2849
2850 2011-10-08  Bruno Haible  <bruno@clisp.org>
2851
2852         Tests for module 'sinhf'.
2853         * modules/sinhf-tests: New file.
2854         * tests/test-sinhf.c: New file.
2855
2856         New module 'sinhf'.
2857         * lib/math.in.h (sinhf): New declaration.
2858         * lib/sinhf.c: New file.
2859         * m4/sinhf.m4: New file.
2860         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2862         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2863         * modules/sinhf: New file.
2864         * tests/test-math-c++.cc: Check the declaration of sinhf.
2865         * doc/posix-functions/sinhf.texi: Mention the new module.
2866
2867         sinh: Use a .m4 file.
2868         * m4/sinh.m4: New file.
2869         * modules/sinh (Files): Add it.
2870         (configure.ac): Just invoke gl_FUNC_SINH.
2871
2872 2011-10-08  Bruno Haible  <bruno@clisp.org>
2873
2874         Tests for module 'atan2f'.
2875         * modules/atan2f-tests: New file.
2876         * tests/test-atan2f.c: New file.
2877
2878         New module 'atan2f'.
2879         * lib/math.in.h (atan2f): New declaration.
2880         * lib/atan2f.c: New file.
2881         * m4/atan2f.m4: New file.
2882         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2884         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2885         * modules/atan2f: New file.
2886         * tests/test-math-c++.cc: Check the declaration of atan2f.
2887         * doc/posix-functions/atan2f.texi: Mention the new module.
2888
2889         atan2: Use a .m4 file.
2890         * m4/atan2.m4: New file.
2891         * modules/atan2 (Files): Add it.
2892         (configure.ac): Just invoke gl_FUNC_ATAN2.
2893
2894 2011-10-08  Bruno Haible  <bruno@clisp.org>
2895
2896         Tests for module 'atanf'.
2897         * modules/atanf-tests: New file.
2898         * tests/test-atanf.c: New file.
2899
2900         New module 'atanf'.
2901         * lib/math.in.h (atanf): New declaration.
2902         * lib/atanf.c: New file.
2903         * m4/atanf.m4: New file.
2904         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2906         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2907         * modules/atanf: New file.
2908         * tests/test-math-c++.cc: Check the declaration of atanf.
2909         * doc/posix-functions/atanf.texi: Mention the new module.
2910
2911         atan: Use a .m4 file.
2912         * m4/atan.m4: New file.
2913         * modules/atan (Files): Add it.
2914         (configure.ac): Just invoke gl_FUNC_ATAN.
2915
2916 2011-10-08  Bruno Haible  <bruno@clisp.org>
2917
2918         Tests for module 'acosf'.
2919         * modules/acosf-tests: New file.
2920         * tests/test-acosf.c: New file.
2921
2922         New module 'acosf'.
2923         * lib/math.in.h (acosf): New declaration.
2924         * lib/acosf.c: New file.
2925         * m4/acosf.m4: New file.
2926         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2928         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2929         * modules/acosf: New file.
2930         * tests/test-math-c++.cc: Check the declaration of acosf.
2931         * doc/posix-functions/acosf.texi: Mention the new module.
2932
2933         acos: Use a .m4 file.
2934         * m4/acos.m4: New file.
2935         * modules/acos (Files): Add it.
2936         (configure.ac): Just invoke gl_FUNC_ACOS.
2937
2938 2011-10-08  Bruno Haible  <bruno@clisp.org>
2939
2940         Tests for module 'asinf'.
2941         * modules/asinf-tests: New file.
2942         * tests/test-asinf.c: New file.
2943
2944         New module 'asinf'.
2945         * lib/math.in.h (asinf): New declaration.
2946         * lib/asinf.c: New file.
2947         * m4/asinf.m4: New file.
2948         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2950         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2951         * modules/asinf: New file.
2952         * tests/test-math-c++.cc: Check the declaration of asinf.
2953         * doc/posix-functions/asinf.texi: Mention the new module.
2954
2955         asin: Use a .m4 file.
2956         * m4/asin.m4: New file.
2957         * modules/asin (Files): Add it.
2958         (configure.ac): Just invoke gl_FUNC_ASIN.
2959
2960 2011-10-08  Bruno Haible  <bruno@clisp.org>
2961
2962         Tests for module 'tanf'.
2963         * modules/tanf-tests: New file.
2964         * tests/test-tanf.c: New file.
2965
2966         New module 'tanf'.
2967         * lib/math.in.h (tanf): New declaration.
2968         * lib/tanf.c: New file.
2969         * m4/tanf.m4: New file.
2970         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2972         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2973         * modules/tanf: New file.
2974         * tests/test-math-c++.cc: Check the declaration of tanf.
2975         * doc/posix-functions/tanf.texi: Mention the new module.
2976
2977         tan: Use a .m4 file.
2978         * m4/tan.m4: New file.
2979         * modules/tan (Files): Add it.
2980         (configure.ac): Just invoke gl_FUNC_TAN.
2981
2982 2011-10-08  Bruno Haible  <bruno@clisp.org>
2983
2984         Tests for module 'cosf'.
2985         * modules/cosf-tests: New file.
2986         * tests/test-cosf.c: New file.
2987
2988         New module 'cosf'.
2989         * lib/math.in.h (cosf): New declaration.
2990         * lib/cosf.c: New file.
2991         * m4/cosf.m4: New file.
2992         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2994         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2995         * modules/cosf: New file.
2996         * tests/test-math-c++.cc: Check the declaration of cosf.
2997         * doc/posix-functions/cosf.texi: Mention the new module.
2998
2999         cos: Use a .m4 file.
3000         * m4/cos.m4: New file.
3001         * modules/cos (Files): Add it.
3002         (configure.ac): Just invoke gl_FUNC_COS.
3003
3004 2011-10-08  Bruno Haible  <bruno@clisp.org>
3005
3006         Tests for module 'sinf'.
3007         * modules/sinf-tests: New file.
3008         * tests/test-sinf.c: New file.
3009
3010         New module 'sinf'.
3011         * lib/math.in.h (sinf): New declaration.
3012         * lib/sinf.c: New file.
3013         * m4/sinf.m4: New file.
3014         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3016         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3017         * modules/sinf: New file.
3018         * tests/test-math-c++.cc: Check the declaration of sinf.
3019         * doc/posix-functions/sinf.texi: Mention the new module.
3020
3021         sin: Use a .m4 file.
3022         * m4/sin.m4: New file.
3023         * modules/sin (Files): Add it.
3024         (configure.ac): Just invoke gl_FUNC_SIN.
3025
3026 2011-10-08  Bruno Haible  <bruno@clisp.org>
3027
3028         Tests for module 'powf'.
3029         * modules/powf-tests: New file.
3030         * tests/test-powf.c: New file.
3031
3032         New module 'powf'.
3033         * lib/math.in.h (powf): New declaration.
3034         * lib/powf.c: New file.
3035         * m4/powf.m4: New file.
3036         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3038         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3039         * modules/powf: New file.
3040         * tests/test-math-c++.cc: Check the declaration of powf.
3041         * doc/posix-functions/powf.texi: Mention the new module.
3042
3043         pow: Use a .m4 file.
3044         * m4/pow.m4: New file.
3045         * modules/pow (Files): Add it.
3046         (configure.ac): Just invoke gl_FUNC_POW.
3047
3048 2011-10-08  Bruno Haible  <bruno@clisp.org>
3049
3050         Tests for module 'log10f'.
3051         * modules/log10f-tests: New file.
3052         * tests/test-log10f.c: New file.
3053
3054         New module 'log10f'.
3055         * lib/math.in.h (log10f): New declaration.
3056         * lib/log10f.c: New file.
3057         * m4/log10f.m4: New file.
3058         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3060         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3061         * modules/log10f: New file.
3062         * tests/test-math-c++.cc: Check the declaration of log10f.
3063         * doc/posix-functions/log10f.texi: Mention the new module.
3064
3065         log10: Use a .m4 file.
3066         * m4/log10.m4: New file.
3067         * modules/log10 (Files): Add it.
3068         (configure.ac): Just invoke gl_FUNC_LOG10.
3069
3070 2011-10-08  Bruno Haible  <bruno@clisp.org>
3071
3072         Tests for module 'logf'.
3073         * modules/logf-tests: New file.
3074         * tests/test-logf.c: New file.
3075
3076         New module 'logf'.
3077         * lib/math.in.h (logf): New declaration.
3078         * lib/logf.c: New file.
3079         * m4/logf.m4: New file.
3080         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3081         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3082         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3083         * modules/logf: New file.
3084         * tests/test-math-c++.cc: Check the declaration of logf.
3085         * doc/posix-functions/logf.texi: Mention the new module.
3086
3087         log: Use a .m4 file.
3088         * m4/log.m4: New file.
3089         * modules/log (Files): Add it.
3090         (configure.ac): Just invoke gl_FUNC_LOG.
3091
3092 2011-10-08  Bruno Haible  <bruno@clisp.org>
3093
3094         Tests for module 'expf'.
3095         * modules/expf-tests: New file.
3096         * tests/test-expf.c: New file.
3097
3098         New module 'expf'.
3099         * lib/math.in.h (expf): New declaration.
3100         * lib/expf.c: New file.
3101         * m4/expf.m4: New file.
3102         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3103         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3104         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3105         * modules/expf: New file.
3106         * tests/test-math-c++.cc: Check the declaration of expf.
3107         * doc/posix-functions/expf.texi: Mention the new module.
3108
3109         exp: Use a .m4 file.
3110         * m4/exp.m4: New file.
3111         * modules/exp (Files): Add it.
3112         (configure.ac): Just invoke gl_FUNC_EXP.
3113
3114 2011-10-08  Bruno Haible  <bruno@clisp.org>
3115
3116         Tests for module 'sqrtf'.
3117         * modules/sqrtf-tests: New file.
3118         * tests/test-sqrtf.c: New file.
3119
3120         New module 'sqrtf'.
3121         * lib/math.in.h (sqrtf): New declaration.
3122         * lib/sqrtf.c: New file.
3123         * m4/sqrtf.m4: New file.
3124         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3126         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3127         * modules/sqrtf: New file.
3128         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3129         * doc/posix-functions/sqrtf.texi: Mention the new module.
3130
3131 2011-10-08  Bruno Haible  <bruno@clisp.org>
3132
3133         Tests: Avoid link failures w.r.t. libintl.
3134         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3135         $(LIBINTL).
3136         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3137         $(LIBINTL).
3138         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3139         against $(LIBINTL).
3140         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3141         $(LIBINTL).
3142         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3143         $(LIBINTL).
3144         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3145
3146 2011-10-08  Bruno Haible  <bruno@clisp.org>
3147
3148         pow tests: Defeat compiler optimizations.
3149         * tests/test-pow.c (main): Assign arguments to x and y before use.
3150
3151 2011-10-08  Bruno Haible  <bruno@clisp.org>
3152
3153         gnulib-tool: Improve last commit.
3154         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3155         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3156         ignore dependencies that are not among the modules list.
3157
3158 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3159
3160         gnulib-tool: don't follow dependencies to avoided modules
3161         This fixes a bug that is related to the previous one.
3162         * gnulib-tool (func_modules_transitive_closure)
3163         (func_emit_autoconf_snippets):
3164         Check whether a dependency is acceptable before using it.
3165         (--extract-dependencies): Report an error if --avoid is also used,
3166         since this combination of options is not yet supported.
3167
3168         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3169         Problem reported by Peter Dyballa in
3170         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3171         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3172         when echoing "$condition".
3173
3174 2011-10-07  Bruno Haible  <bruno@clisp.org>
3175
3176         Fix documentation about math functions on MacOS X.
3177         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3178         MacOS X 10.5.
3179         * doc/posix-functions/fdim.texi: Likewise.
3180         * doc/posix-functions/feclearexcept.texi: Likewise.
3181         * doc/posix-functions/fegetenv.texi: Likewise.
3182         * doc/posix-functions/fegetround.texi: Likewise.
3183         * doc/posix-functions/feholdexcept.texi: Likewise.
3184         * doc/posix-functions/feraiseexcept.texi: Likewise.
3185         * doc/posix-functions/fesetenv.texi: Likewise.
3186         * doc/posix-functions/fesetround.texi: Likewise.
3187         * doc/posix-functions/fetestexcept.texi: Likewise.
3188         * doc/posix-functions/feupdateenv.texi: Likewise.
3189         * doc/posix-functions/fmax.texi: Likewise.
3190         * doc/posix-functions/fmin.texi: Likewise.
3191         * doc/posix-functions/log2.texi: Likewise.
3192         * doc/posix-functions/modff.texi: Likewise.
3193         * doc/posix-functions/nan.texi: Likewise.
3194         * doc/posix-functions/nanf.texi: Likewise.
3195         * doc/posix-functions/nextafterf.texi: Likewise.
3196         * doc/posix-functions/remquo.texi: Likewise.
3197
3198 2011-10-07  Bruno Haible  <bruno@clisp.org>
3199
3200         modff: Drop assumption about library that defines modff.
3201         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3202         AC_CHECK_FUNCS.
3203         * modules/modff (Files): Add m4/mathfunc.m4.
3204
3205 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3206
3207         raise tests: Avoid a GCC warning.
3208         * tests/test-raise.c (handler): Use _Noreturn.
3209
3210 2011-10-07  Bruno Haible  <bruno@clisp.org>
3211
3212         Tests for module 'ldexpf'.
3213         * modules/ldexpf-tests: New file.
3214         * tests/test-ldexpf.c: New file.
3215
3216         New module 'ldexpf'.
3217         * lib/math.in.h (ldexpf): New declaration.
3218         * lib/ldexpf.c: New file.
3219         * m4/ldexpf.m4: New file.
3220         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3222         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3223         * modules/ldexpf: New file.
3224         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3225         * doc/posix-functions/ldexpf.texi: Mention the new module.
3226
3227 2011-10-06  Bruno Haible  <bruno@clisp.org>
3228
3229         frexpf: Work around problems on IRIX and mingw.
3230         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3232         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3233         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3234         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3235         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3236         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3237
3238 2011-10-06  Bruno Haible  <bruno@clisp.org>
3239
3240         fabsf: Drop assumption about library that defines fabsf.
3241         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3242         AC_CHECK_FUNCS.
3243         * modules/fabsf (Files): Add m4/mathfunc.m4.
3244
3245 2011-10-06  Bruno Haible  <bruno@clisp.org>
3246
3247         frexpf: Drop assumption about library that defines frexpf.
3248         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3249         'int *', 'float *', 'long double *', 'float', 'long double'.
3250         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3251         AC_CHECK_FUNCS.
3252         * modules/frexpf (Files): Add m4/mathfunc.m4.
3253
3254         Tests for module 'frexpf'.
3255         * modules/frexpf-tests: New file.
3256         * tests/test-frexpf.c: New file.
3257
3258         New module 'frexpf'.
3259         * lib/math.in.h (frexpf): New declaration.
3260         * lib/frexpf.c: New file.
3261         * m4/frexpf.m4: New file.
3262         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3264         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3265         * modules/frexpf: New file.
3266         * tests/test-math-c++.cc: Check the declaration of frexpf.
3267         * doc/posix-functions/frexpf.texi: Mention the new module.
3268
3269 2011-10-06  Bruno Haible  <bruno@clisp.org>
3270
3271         math: Sort function declarations of math.in.h.
3272         * lib/math.in.h (frexp, logb): Move declarations.
3273
3274 2011-10-05  Bruno Haible  <bruno@clisp.org>
3275
3276         Tests for module 'modff'.
3277         * modules/modff-tests: New file.
3278         * tests/test-modff.c: New file.
3279
3280         New module 'modff'.
3281         * lib/math.in.h (modff): New declaration.
3282         * lib/modff.c: New file.
3283         * m4/modff.m4: New file.
3284         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3286         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3287         * modules/modff: New file.
3288         * tests/test-math-c++.cc: Check the declaration of modff.
3289         * doc/posix-functions/modff.texi: Mention the new module.
3290
3291         modf tests: Make test sharper.
3292         * tests/test-modf.c (main): Strengthen upper bound.
3293
3294         modf: Use a .m4 file.
3295         * m4/modf.m4: New file.
3296         * modules/modf (Files): Add it.
3297         (configure.ac): Just invoke gl_FUNC_MODF.
3298
3299 2011-10-05  Bruno Haible  <bruno@clisp.org>
3300
3301         Tests for module 'fmodf'.
3302         * modules/fmodf-tests: New file.
3303         * tests/test-fmodf.c: New file.
3304
3305         New module 'fmodf'.
3306         * lib/math.in.h (fmodf): New declaration.
3307         * lib/fmodf.c: New file.
3308         * m4/fmodf.m4: New file.
3309         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3311         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3312         * modules/fmodf: New file.
3313         * tests/test-math-c++.cc: Check the declaration of fmodf.
3314         * doc/posix-functions/fmodf.texi: Mention the new module.
3315
3316         fmod: Use a .m4 file.
3317         * m4/fmod.m4: New file.
3318         * modules/fmod (Files): Add it.
3319         (configure.ac): Just invoke gl_FUNC_FMOD.
3320
3321 2011-10-05  Bruno Haible  <bruno@clisp.org>
3322
3323         Tests for module 'fabsf'.
3324         * modules/fabsf-tests: New file.
3325         * tests/test-fabsf.c: New file.
3326
3327         New module 'fabsf'.
3328         * lib/math.in.h (fabsf): New declaration.
3329         * lib/fabsf.c: New file.
3330         * m4/fabsf.m4: New file.
3331         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3333         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3334         * modules/fabsf: New file.
3335         * tests/test-math-c++.cc: Check the declaration of fabsf.
3336         * doc/posix-functions/fabsf.texi: Mention the new module.
3337
3338         fabs: Use a .m4 file.
3339         * m4/fabs.m4: New file.
3340         * modules/fabs (Files): Add it.
3341         (configure.ac): Just invoke gl_FUNC_FABS.
3342
3343 2011-10-05  Jim Meyering  <meyering@redhat.com>
3344
3345         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3346         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3347         ls -lL regression introduced in coreutils-8.12, it does so at the
3348         cost of an additional stat call in the common case.  Besides, now
3349         that the kernel change that prompted commit 95f7c57f has been reverted
3350         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3351         we have no use for commit 95f7c57f, "file-has-acl: use
3352         acl_extended_file_nofollow if available".
3353
3354 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3355
3356         file-has-acl: revert unintended change in behavior of ls -L
3357         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3358         derived from...
3359         (file_has_acl): ...code here.  Call it.
3360         This problem was introduced with 2011-07-22 commit 95f7c57f,
3361         "file-has-acl: use acl_extended_file_nofollow if available".
3362         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3363
3364 2011-10-03  Bruno Haible  <bruno@clisp.org>
3365
3366         poll: Avoid link errors on MSVC.
3367         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3368         * modules/poll (Depends-on): Add sockets.
3369         (Link): New section.
3370         * NEWS: Mention the change.
3371         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3372         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3373         $(LIB_POLL) instead of $(LIBSOCKET).
3374
3375 2011-10-03  Bruno Haible  <bruno@clisp.org>
3376
3377         sys_select tests: Fix link error on MSVC 9.
3378         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3379         with $(LIB_SELECT) instead of $(LIBSOCKET).
3380
3381 2011-10-03  Bruno Haible  <bruno@clisp.org>
3382
3383         sys_select: Fix compilation error on mingw.
3384         * lib/sys_select.in.h: On native Windows, include <io.h>.
3385
3386 2011-10-03  Bruno Haible  <bruno@clisp.org>
3387
3388         wmemset: Support for MSVC.
3389         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3390         whether wmemset() exists.
3391
3392 2011-10-03  Bruno Haible  <bruno@clisp.org>
3393
3394         wmemmove: Support for MSVC.
3395         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3396         whether wmemmove() exists.
3397
3398 2011-10-03  Bruno Haible  <bruno@clisp.org>
3399
3400         wmemcpy: Support for MSVC.
3401         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3402         whether wmemcpy() exists.
3403
3404 2011-10-03  Bruno Haible  <bruno@clisp.org>
3405
3406         wmemcmp: Support for MSVC.
3407         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3408         whether wmemcmp() exists.
3409
3410 2011-10-03  Bruno Haible  <bruno@clisp.org>
3411
3412         wmemchr: Support for MSVC.
3413         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3414         whether wmemchr() exists.
3415
3416 2011-10-03  Bruno Haible  <bruno@clisp.org>
3417
3418         glthread/*, strsignal: Support for MSVC.
3419         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3420         including <winsock.h> on MSVC 9.
3421         * lib/glthread/lock.h: Likewise.
3422         * lib/glthread/thread.h: Likewise.
3423         * lib/glthread/tls.h: Likewise.
3424         * lib/glthread/yield.h: Likewise.
3425         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3426         if HAVE_UNISTD_H is false.
3427         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3428
3429 2011-10-03  Bruno Haible  <bruno@clisp.org>
3430
3431         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3432         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3433         Set to 100000.
3434
3435 2011-10-03  Bruno Haible  <bruno@clisp.org>
3436
3437         acl: Fix specification.
3438         * lib/file-has-acl.c (file_has_acl): Fix specification.
3439
3440 2011-10-03  Bruno Haible  <bruno@clisp.org>
3441
3442         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3443         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3444         (compute_curr_prefix, shared_library_fullname,
3445         find_shared_library_fullname, get_shared_library_fullname, relocate):
3446         Use it together with PIC && INSTALLDIR.
3447         Reported by <jojelino@gmail.com>
3448         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3449
3450 2011-10-01  Jim Meyering  <meyering@redhat.com>
3451
3452         maint.mk: adjust a release-related rule not to require use of gzip
3453         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3454         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3455         projects that build only .tar.xz files.  Also fix an erroneous test.
3456
3457         test-linkat: don't leave behind a temporary file
3458         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3459         Otherwise, coreutils' "make distcheck" would fail with this:
3460           Only in /c/cu/tests/torture/coreutils/test/\
3461             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3462           make[2]: *** [my-distcheck] Error 1
3463
3464         float, math: add omitted file
3465         * lib/itold.c: Add file, required for yesterday's float change.
3466
3467 2011-10-01  Bruno Haible  <bruno@clisp.org>
3468
3469         isinf: Fix for OpenBSD/x86.
3470         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3471         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3472         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3473
3474 2011-10-01  Bruno Haible  <bruno@clisp.org>
3475
3476         isfinite: Fix syntax error in configure test.
3477         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3478
3479         isfinite: Fix typo.
3480         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3481         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3482
3483 2011-10-01  Bruno Haible  <bruno@clisp.org>
3484
3485         nonblocking tests: Fix test failure on Linux/IA-64.
3486         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3487         Set to 270000.
3488
3489 2011-10-01  Bruno Haible  <bruno@clisp.org>
3490
3491         mkfifoat tests: Fix a test failure on mingw.
3492         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3493         with error ENOSYS.
3494
3495 2011-09-30  Bruno Haible  <bruno@clisp.org>
3496
3497         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3498         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3499         'long double'. Set REPLACE_ITOLD.
3500         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3501         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3502         * lib/itold.c: New file.
3503         * modules/float (Files): Add lib/itold.c.
3504         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3505         (Makefile.am): Substitute REPLACE_ITOLD.
3506         * modules/math (Depends-on): Add float.
3507         (Makefile.am): Substitute REPLACE_ITOLD.
3508         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3509         * doc/posix-headers/math.texi: Likewise.
3510         * doc/posix-functions/logl.texi: Likewise.
3511
3512 2011-09-30  Bruno Haible  <bruno@clisp.org>
3513
3514         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3515         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3516         Set to 140000.
3517
3518 2011-09-30  Bruno Haible  <bruno@clisp.org>
3519
3520         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3521         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3522         invocation, say "right after AC_PROG_CC_STDC", not "right after
3523         AC_PROG_CC".
3524         Reported by Gary V. Vaughan <gary@gnu.org>.
3525
3526 2011-09-30  Bruno Haible  <bruno@clisp.org>
3527
3528         Centralize C99 requirement.
3529         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3530         * modules/stdarg (configure.ac-early): Invoke it instead of
3531         AC_PROG_CC_STDC.
3532         Reported by Gary V. Vaughan and Paul Eggert.
3533
3534 2011-09-29  Bruno Haible  <bruno@clisp.org>
3535
3536         float: Fix LDBL_MAX value on Linux/PowerPC.
3537         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3538         on Linux/PowerPC.
3539         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3540         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3541         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3542         platform.
3543         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3544
3545 2011-09-29  Bruno Haible  <bruno@clisp.org>
3546
3547         doc: Improve doc about gl_EARLY.
3548         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3549         AC_PROG_CC_STDC invocation.
3550         Reported by Gary V. Vaughan <gary@gnu.org>.
3551
3552 2011-09-28  Bruno Haible  <bruno@clisp.org>
3553
3554         fgetc, fputc, fread, fwrite tests: Fix link error.
3555         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3556         on non-MSVC platforms.
3557         * tests/test-fputc.c (main): Likewise.
3558         * tests/test-fread.c (main): Likewise.
3559         * tests/test-fwrite.c (main): Likewise.
3560         Reported by Jim Meyering.
3561
3562 2011-09-27  Bruno Haible  <bruno@clisp.org>
3563
3564         fputc, fwrite tests: Avoid test failure on MSVC.
3565         * tests/test-fgetc.c: Include msvc-inval.h.
3566         (main): Invoke gl_msvc_inval_ensure_handler.
3567         * tests/test-fputc.c: Include msvc-inval.h.
3568         (main): Invoke gl_msvc_inval_ensure_handler.
3569         * tests/test-fread.c: Include msvc-inval.h.
3570         (main): Invoke gl_msvc_inval_ensure_handler.
3571         * tests/test-fwrite.c: Include msvc-inval.h.
3572         (main): Invoke gl_msvc_inval_ensure_handler.
3573         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3574         * modules/fputc-tests (Depends-on): Likewise.
3575         * modules/fread-tests (Depends-on): Likewise.
3576         * modules/fwrite-tests (Depends-on): Likewise.
3577
3578 2011-09-27  Bruno Haible  <bruno@clisp.org>
3579
3580         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3581         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3582         (raise): Remove older, duplicated declaration.
3583         (_gl_raise_SIGPIPE): New declaration.
3584         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3585         (rpl_raise): Remove function.
3586         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3587         a gnulib-defined SIGPIPE here.
3588         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3589         'sigprocmask' has detected missing signal-blocking and the module
3590         'sigpipe' is enabled.
3591         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3592
3593 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3594
3595         base64-tests: avoid memory leak
3596         * tests/test-base64.c (main): Plug memory leak.
3597
3598         base32: new module
3599         * modules/base32: New module.
3600         * lib/base32.c: New file.
3601         * lib/base32.h: Likewise.
3602         * m4/base32.m4: Likewise.
3603         * modules/base32-tests: New test.
3604         * tests/test-base32.c: Likewise.
3605         * MODULES.html.sh (Misc): Mention it.
3606
3607 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3608
3609         gnulib: use more-standard license notice wording
3610         * gnulib-tool (func_emit_copyright_notice): When emitting a
3611         license notice into a file, use the standard wording as suggested
3612         by the current information for GNU maintainers, except say "file"
3613         rather than "program".  The new wording gives a license version
3614         number, which addresses an issue raised by Glenn Morris in
3615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3616         * m4/onceonly.m4: Use that same wording here, too.
3617
3618         dup2: minor simplification
3619         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3620         as lib/dup2.c no longer uses 'inline'.
3621
3622 2011-09-25  Bruno Haible  <bruno@clisp.org>
3623
3624         strings: Fix compilation error on MSVC.
3625         * lib/strings.in.h: Include <stddef.h> for size_t.
3626
3627 2011-09-25  Bruno Haible  <bruno@clisp.org>
3628
3629         fflush et al.: Document limitation on MSVC.
3630         * doc/posix-functions/fflush.texi: Document possible crash in handling
3631         mode other than DEFAULT_HANDLING.
3632         * doc/posix-functions/fgetc.texi: Likewise.
3633         * doc/posix-functions/fputc.texi: Likewise.
3634         * doc/posix-functions/fread.texi: Likewise.
3635         * doc/posix-functions/fwrite.texi: Likewise.
3636
3637 2011-09-25  Bruno Haible  <bruno@clisp.org>
3638
3639         msvc-inval: Allow three invalid parameter handling modes.
3640         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3641         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3642         macros.
3643         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3644         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3645         SANE_LIBRARY_HANDLING as a no-op.
3646         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3647         <stdlib.h>.
3648         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3649
3650 2011-09-25  Bruno Haible  <bruno@clisp.org>
3651
3652         msvc-inval: Make handler multithread-safe.
3653         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3654         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3655         declarations.
3656         (gl_msvc_inval_current): New declaration.
3657         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3658         Operate on the structure returned by gl_msvc_inval_current().
3659         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3660         Remove varaiables.
3661         (tls_index, tls_initialized): New variables.
3662         (not_per_thread): New variable.
3663         (gl_msvc_inval_current): New function.
3664         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3665         returned by gl_msvc_inval_current().
3666
3667 2011-09-25  Bruno Haible  <bruno@clisp.org>
3668
3669         msvc-inval: Install handler globally.
3670         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3671         !_MSC_VER.
3672         (gl_msvc_invalid_parameter_handler): Remove declaration.
3673         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3674         declarations.
3675         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3676         Install the handler globally, don't uninstall it.
3677         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3678         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3679         currently valid, call RaiseException instead.
3680         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3681         for !_MSC_VER.
3682
3683 2011-09-25  Bruno Haible  <bruno@clisp.org>
3684
3685         strerror_r-posix: Fix for MSVC 9.
3686         * lib/strerror_r.c (local_snprintf): New function.
3687         (snprintf): Define to local_snprintf, not to _snprintf.
3688
3689 2011-09-25  Bruno Haible  <bruno@clisp.org>
3690
3691         ftruncate: Support for MSVC 9.
3692         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3693         (chsize_nothrow): New function.
3694         (chsize): Redefine as a macro.
3695         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3696         * modules/ftruncate (Depends-on): Add msvc-inval.
3697
3698 2011-09-25  Bruno Haible  <bruno@clisp.org>
3699
3700         New module 'fstat'.
3701         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3702         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3703         * lib/fchdir.c (rpl_fstat): Remove function.
3704         * m4/fstat.m4: New file.
3705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3706         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3707         declared.
3708         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3709         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3710         * modules/fstat: New file.
3711         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3712         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3713         is set.
3714         * doc/posix-functions/fstat.texi: Mention the new module and the
3715         problem on MSVC.
3716         * NEWS: Mention the change.
3717         * modules/acl (Depends-on): Add fstat.
3718         * modules/chdir-safer (Depends-on): Likewise.
3719         * modules/chown (Depends-on): Likewise.
3720         * modules/copy-file (Depends-on): Likewise.
3721         * modules/fchdir (Depends-on): Likewise.
3722         * modules/fdopendir (Depends-on): Likewise.
3723         * modules/fopen (Depends-on): Likewise.
3724         * modules/fts (Depends-on): Likewise.
3725         * modules/getcwd (Depends-on): Likewise.
3726         * modules/isapipe (Depends-on): Likewise.
3727         * modules/linkat (Depends-on): Likewise.
3728         * modules/lseek (Depends-on): Likewise.
3729         * modules/mkdir-p (Depends-on): Likewise.
3730         * modules/open (Depends-on): Likewise.
3731         * modules/openat (Depends-on): Likewise.
3732         * modules/read-file (Depends-on): Likewise.
3733         * modules/renameat (Depends-on): Likewise.
3734         * modules/utimens (Depends-on): Likewise.
3735
3736 2011-09-25  Bruno Haible  <bruno@clisp.org>
3737
3738         linkat: Fix compilation on MSVC 9.
3739         * lib/linkat.c: Don't include <stdint.h>.
3740
3741 2011-09-25  Bruno Haible  <bruno@clisp.org>
3742
3743         fclose: Support for MSVC 9.
3744         * lib/fclose.c: Include msvc-inval.h.
3745         (fclose_nothrow): New function.
3746         (rpl_fclose): Use it.
3747         * modules/fclose (Depends-on): Add msvc-inval.
3748         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3749
3750 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3751
3752         dup2: minor simplifications
3753         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3754         that it's a performance win.
3755         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3756         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3757
3758 2011-09-24  Jim Meyering  <meyering@redhat.com>
3759
3760         test-futimens: avoid a warning from gcc -Wshadow
3761         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3762         to avoid a shadowing warning.
3763
3764 2011-09-24  Bruno Haible  <bruno@clisp.org>
3765
3766         fdopen: Support for MSVC 9.
3767         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3768         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3769         * lib/fdopen.c: Include msvc-inval.h.
3770         (fdopen_nothrow): New function.
3771         (rpl_fdopen): Use it.
3772         * modules/fdopen (Depends-on): Add msvc-inval.
3773         * modules/fclose-tests (Depends-on): Add fdopen.
3774         * modules/fflush-tests (Depends-on): Likewise.
3775         * modules/fgetc-tests (Depends-on): Likewise.
3776         * modules/fputc-tests (Depends-on): Likewise.
3777         * modules/fread-tests (Depends-on): Likewise.
3778         * modules/freopen-tests (Depends-on): Likewise.
3779         * modules/fseeko-tests (Depends-on): Likewise.
3780         * modules/ftello-tests (Depends-on): Likewise.
3781         * modules/fwrite-tests  (Depends-on): Likewise.
3782         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3783
3784 2011-09-24  Bruno Haible  <bruno@clisp.org>
3785
3786         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3787         * modules/fgetc-tests (Depends-on): Add unistd.
3788         * modules/fputc-tests (Depends-on): Likewise.
3789         * modules/fread-tests (Depends-on): Likewise.
3790         * modules/fwrite-tests (Depends-on): Likewise.
3791
3792 2011-09-24  Bruno Haible  <bruno@clisp.org>
3793
3794         dup: Simplify autoconf test.
3795         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3796         on gl_MSVC_INVAL's result.
3797
3798 2011-09-24  Bruno Haible  <bruno@clisp.org>
3799
3800         Tests for function fwrite().
3801         * modules/fwrite-tests: New file.
3802         * tests/test-fwrite.c: New file.
3803         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3804
3805         Tests for function fread().
3806         * modules/fread-tests: New file.
3807         * tests/test-fread.c: New file.
3808         * modules/stdio-tests (Depends-on): Add fread-tests.
3809
3810         Activate fputc tests.
3811         * modules/stdio-tests (Depends-on): Add fputc-tests.
3812
3813         Enhance fgetc, fputc tests.
3814         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3815         * tests/test-fputc.c (main): Likewise.
3816
3817 2011-09-24  Bruno Haible  <bruno@clisp.org>
3818
3819         write: Support for MSVC 9.
3820         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3821         is not 1.
3822         * lib/write.c (write_nothrow): New function.
3823         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3824         not 1. Use write_nothrow.
3825         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3826         invalid parameter handler.
3827         (gl_PREREQ_WRITE): New macro.
3828         * modules/write (Depends-on): Add msvc-inval.
3829         (configure.ac): Invoke gl_PREREQ_WRITE.
3830         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3831
3832 2011-09-24  Bruno Haible  <bruno@clisp.org>
3833
3834         read: Fix last commit.
3835         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3836
3837 2011-09-24  Bruno Haible  <bruno@clisp.org>
3838
3839         dup2: Fix last commit.
3840         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3841         (rpl_dup2): Disable fcntl workaround on native Windows.
3842
3843         sigprocmask: Make code safer.
3844         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3845         section that changes macro definitions for this compilation unit.
3846
3847 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3848
3849         dup2: clarify by coalescing Windows-specific material
3850         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3851         "msvc-nothrow.h"' to the Windows-specific section, so that the
3852         Emacs source need not contain these include files.
3853         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3854         Windows-specific fixes into this function rather than just the
3855         nothrow fix, as this shortens and clarifies the code.  Always
3856         define as a function, as that's a bit cleaner than having it be
3857         sometimes a function and sometimes a macro.
3858         (rpl_dup2): Move the Windows-specific stuff out of here and into
3859         ms_windows_dup2.  Don't protect the Haiku-related fix with
3860         "#if !defined __linux__", as the same code also works around
3861         a Linux kernel bug, and it doesn't add any system calls on any
3862         platform.  Add comment about FreeBSD 6.1.
3863
3864         sigprocmask: move #include directive
3865         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3866         Windows-specific section, so that the Emacs source need not
3867         contain msvc-inval.h.
3868
3869 2011-09-23  Bruno Haible  <bruno@clisp.org>
3870
3871         read: Support for MSVC 9.
3872         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3873         is not 1.
3874         * lib/read.c (read_nothrow): New function.
3875         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3876         read_nothrow.
3877         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3878         invalid parameter handler.
3879         (gl_PREREQ_READ): New macro.
3880         * modules/read (Depends-on): Add msvc-inval.
3881         (configure.ac): Invoke gl_PREREQ_READ.
3882         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3883
3884 2011-09-23  Bruno Haible  <bruno@clisp.org>
3885
3886         close: Support for MSVC 9.
3887         * lib/close.c: Include <errno.h>, msvc-inval.h.
3888         (close_nothrow): New function.
3889         (rpl_close): Use it.
3890         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3891         invalid parameter handler.
3892         * modules/close (Depends-on): Add msvc-inval.
3893         * modules/dup2-tests (Depends-on): Add close.
3894         * modules/dup3-tests (Depends-on): Likewise.
3895         * modules/fcntl-tests (Depends-on): Likewise.
3896         * modules/spawn-pipe-tests (Depends-on): Likewise.
3897         * modules/unistd-safer-tests (Depends-on): Likewise.
3898         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3899
3900 2011-09-23  Bruno Haible  <bruno@clisp.org>
3901
3902         New module 'dup'.
3903         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3904         Allow replacement.
3905         * lib/dup.c: New file.
3906         * lib/fchdir.c (rpl_dup): Remove function.
3907         * m4/dup.m4: New file.
3908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3909         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3910         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3911         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3912         * modules/dup: New file.
3913         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3914         'dup' module is in use.
3915         * modules/fdopendir (Depends-on): Add dup.
3916         * modules/fdutimensat-tests (Depends-on): Likewise.
3917         * modules/fts (Depends-on): Likewise.
3918         * modules/futimens-tests (Depends-on): Likewise.
3919         * modules/posix_spawnp-tests (Depends-on): Likewise.
3920         * modules/unistd-safer-tests (Depends-on): Likewise.
3921         * modules/utimens-tests (Depends-on): Likewise.
3922         * doc/posix-functions/dup.texi: Mention the new module and the problem
3923         on MSVC.
3924
3925 2011-09-23  Bruno Haible  <bruno@clisp.org>
3926
3927         getdtablesize: Support for MSVC 9.
3928         * lib/getdtablesize.c: Include msvc-inval.h.
3929         (_setmaxstdio_nothrow): New function.
3930         (_setmaxstdio): Redefine it.
3931         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3932         * modules/getdtablesize (Depends-on): Add msvc-inval.
3933         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3934
3935 2011-09-23  Bruno Haible  <bruno@clisp.org>
3936
3937         signal-h: Rename from signal.
3938         * modules/signal-h: Renamed from modules/signal.
3939         * modules/pthread_sigmask (Depends-on): Update.
3940         * modules/raise (Depends-on): Likewise.
3941         * modules/sigaction (Depends-on): Likewise.
3942         * modules/sigpipe (Depends-on): Likewise.
3943         * modules/sigprocmask (Depends-on): Likewise.
3944         * modules/sys_select (Depends-on): Likewise.
3945         * modules/signal-h-tests: Renamed from modules/signal-tests.
3946         (Files, Depends-on, Makefile.am): Update.
3947         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3948         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3949         (Files, Makefile.am): Update.
3950         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3951         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3952         * modules/signal: New placeholder file.
3953         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3954         * doc/posix-headers/signal.texi: Update.
3955         * NEWS: Mention the change.
3956
3957 2011-09-23  Bruno Haible  <bruno@clisp.org>
3958
3959         sigprocmask: Avoid crashes through signal() on MSVC 9.
3960         * lib/sigprocmask.c: Include msvc-inval.h.
3961         (signal_nothrow): New function.
3962         (signal): Redefine it.
3963         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3964         * modules/sigprocmask (Depends-on): Add msvc-inval.
3965         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3966
3967 2011-09-23  Bruno Haible  <bruno@clisp.org>
3968
3969         Tests for module 'raise'.
3970         * modules/raise-tests: New file.
3971         * tests/test-raise.c: New file.
3972
3973         raise: Support for MSVC.
3974         * lib/signal.in.h (raise): New declaration.
3975         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3976         for native Windows platforms.
3977         * m4/raise.m4: New file.
3978         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3979         HAVE_RAISE, REPLACE_RAISE.
3980         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3981         REPLACE_RAISE.
3982         * modules/raise (Status, Notice): Remove fields.
3983         (Files): Add m4/raise.m4.
3984         (Depends-on): Add signal, msvc-inval.
3985         (configure.ac): Use the common idioms.
3986         (Maintainer): Add me.
3987         * tests/test-signal-c++.cc: Check the signature of raise.
3988         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3989
3990 2011-09-23  Bruno Haible  <bruno@clisp.org>
3991
3992         pipe2: Fix compilation on pre-C99 compilers.
3993         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3994
3995 2011-09-23  Bruno Haible  <bruno@clisp.org>
3996
3997         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3998         * lib/msvc-nothrow.h: New file.
3999         * lib/msvc-nothrow.c: New file.
4000         * m4/msvc-nothrow.m4: New file.
4001         * modules/msvc-nothrow: New file.
4002         * lib/dup2.c: Include msvc-nothrow.h.
4003         (rpl_dup2): No need to protect _get_osfhandle call here.
4004         * lib/accept4.c: Include msvc-nothrow.h.
4005         * lib/error.c: Likewise.
4006         * lib/fcntl.c: Likewise.
4007         * lib/lseek.c: Likewise.
4008         * lib/nonblocking.c: Likewise.
4009         * lib/poll.c: Likewise.
4010         * lib/read.c: Likewise.
4011         * lib/select.c: Likewise.
4012         * lib/sockets.h: Likewise.
4013         * lib/sockets.c: Likewise.
4014         * lib/stdio-read.c: Likewise.
4015         * lib/stdio-write.c: Likewise.
4016         * lib/write.c: Likewise.
4017         * lib/w32sock.h: Likewise.
4018         * lib/w32spawn.h: Likewise.
4019         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4020         * lib/fsync.c: Likewise.
4021         * lib/isapipe.c: Likewise.
4022         * modules/dup2 (Depends-on): Add msvc-nothrow.
4023         * modules/accept4 (Depends-on): Likewise.
4024         * modules/error (Depends-on): Likewise.
4025         * modules/fcntl (Depends-on): Likewise.
4026         * modules/lseek (Depends-on): Likewise.
4027         * modules/nonblocking (Depends-on): Likewise.
4028         * modules/poll (Depends-on): Likewise.
4029         * modules/read (Depends-on): Likewise.
4030         * modules/select (Depends-on): Likewise.
4031         * modules/sockets (Depends-on): Likewise.
4032         * modules/sigpipe (Depends-on): Likewise.
4033         * modules/write (Depends-on): Likewise.
4034         * modules/accept (Depends-on): Likewise.
4035         * modules/bind (Depends-on): Likewise.
4036         * modules/connect (Depends-on): Likewise.
4037         * modules/gethostname (Depends-on): Likewise.
4038         * modules/getpeername (Depends-on): Likewise.
4039         * modules/getsockname (Depends-on): Likewise.
4040         * modules/getsockopt (Depends-on): Likewise.
4041         * modules/ioctl (Depends-on): Likewise.
4042         * modules/listen (Depends-on): Likewise.
4043         * modules/recv (Depends-on): Likewise.
4044         * modules/recvfrom (Depends-on): Likewise.
4045         * modules/send (Depends-on): Likewise.
4046         * modules/sendto (Depends-on): Likewise.
4047         * modules/setsockopt (Depends-on): Likewise.
4048         * modules/shutdown (Depends-on): Likewise.
4049         * modules/socket (Depends-on): Likewise.
4050         * modules/execute (Depends-on): Likewise.
4051         * modules/spawn-pipe (Depends-on): Likewise.
4052         * modules/flock (Depends-on): Likewise.
4053         * modules/fsync (Depends-on): Likewise.
4054         * modules/isapipe (Depends-on): Likewise.
4055         * tests/test-cloexec.c: Include msvc-nothrow.h.
4056         * tests/test-dup-safer.c: Likewise.
4057         * tests/test-dup2.c: Likewise.
4058         * tests/test-dup3.c: Likewise.
4059         * tests/test-fcntl.c: Likewise.
4060         * tests/test-pipe.c: Likewise.
4061         * tests/test-pipe2.c: Likewise.
4062         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4063         * modules/unistd-safer-tests (Depends-on): Likewise.
4064         * modules/dup2-tests (Depends-on): Likewise.
4065         * modules/dup3-tests (Depends-on): Likewise.
4066         * modules/fcntl-tests (Depends-on): Likewise.
4067         * modules/pipe-posix-tests (Depends-on): Likewise.
4068         * modules/pipe2-tests (Depends-on): Likewise.
4069
4070 2011-09-23  Bruno Haible  <bruno@clisp.org>
4071
4072         dup2: Make code more maintainable.
4073         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4074         (rpl_dup2): Use it.
4075         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4076         * modules/dup2 (configure.ac): Invoke it.
4077         Reported by Paul Eggert.
4078
4079 2011-09-23  Bruno Haible  <bruno@clisp.org>
4080
4081         msvc-inval: Fix compilation error.
4082         * lib/msvc-inval.h: Include <excpt.h>.
4083
4084 2011-09-23  Bruno Haible  <bruno@clisp.org>
4085
4086         mkdir: Tweak for MSVC 9.
4087         * lib/sys_stat.in.h: Update comments.
4088         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4089
4090         Tests for module 'chdir'.
4091         * modules/chdir-tests: New file.
4092         * tests/test-chdir.c: New file.
4093
4094         New module 'chdir'.
4095         * modules/chdir: New file.
4096         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4097         (chdir): New declaration.
4098         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4099         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4100         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4101         * tests/test-unistd-c++.cc: Check signature of chdir.
4102         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4103         * modules/chdir-long (Depends-on): Add chdir.
4104         * modules/fchdir (Depends-on): Likewise.
4105         * modules/rename (Depends-on): Likewise.
4106         * modules/savewd (Depends-on): Likewise.
4107
4108         rmdir: Support for mingw, MSVC 9.
4109         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4110         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4111
4112         getcwd: Tweak for MSVC 9.
4113         * lib/unistd.in.h: Update comments.
4114         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4115
4116 2011-09-22  Bruno Haible  <bruno@clisp.org>
4117
4118         strerror_r-posix: Avoid a link error on MSVC.
4119         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4120         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4121
4122 2011-09-22  Bruno Haible  <bruno@clisp.org>
4123
4124         select: Avoid link errors on MSVC.
4125         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4126         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4127         * modules/pselect (Link): Likewise.
4128         * NEWS: Mention the change.
4129         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4130         test-select-stdin against $(LIB_SELECT).
4131         * modules/pselect-tests (Makefile.am): Link test-pselect against
4132         $(LIB_SELECT).
4133
4134 2011-09-22  Bruno Haible  <bruno@clisp.org>
4135
4136         select: Avoid compilation error on MSVC.
4137         * lib/select.c: Don't include <stdbool.h>.
4138
4139 2011-09-21  Bruno Haible  <bruno@clisp.org>
4140
4141         Consolidate all uses of PATH_MAX in *.m4 files.
4142         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4143         macros.
4144         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4145         and gl_PATHMAX_SNIPPET.
4146         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4147         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4148         * modules/chdir-long (Files): Add m4/pathmax.m4.
4149         * modules/getcwd (Files): Likewise.
4150
4151 2011-09-21  Bruno Haible  <bruno@clisp.org>
4152
4153         ftruncate: Un-deprecate, concentrate on Win32 support.
4154         * modules/ftruncate (Status, Notice): Remove sections.
4155         (Depends-on): Add largefile.
4156         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4157         non-mingw platforms.
4158         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4159         include <io.h>.
4160         * modules/perror-tests (Depends-on): Add ftruncate.
4161         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4162         'ftruncate' module.
4163
4164 2011-09-21  Bruno Haible  <bruno@clisp.org>
4165
4166         Add dependencies to new dirent related modules.
4167         * modules/opendir (Depends-on): Add closedir.
4168         * modules/getcwd (Depends-on): Add opendir, closedir.
4169         * modules/dirent-safer-tests (Depends-on): Likewise.
4170         * modules/fdopendir-tests (Depends-on): Likewise.
4171         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4172         * modules/renameat-tests (Depends-on): Likewise.
4173
4174 2011-09-21  Bruno Haible  <bruno@clisp.org>
4175
4176         opendir: Avoid compilation error on mingw.
4177         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4178         * modules/opendir (Depends-on): Add unistd.
4179
4180 2011-09-21  Bruno Haible  <bruno@clisp.org>
4181
4182         ftruncate tests: Avoid a test failure on mingw.
4183         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4184
4185 2011-09-21  Bruno Haible  <bruno@clisp.org>
4186
4187         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4188         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4189         native Windows.
4190
4191 2011-09-21  Bruno Haible  <bruno@clisp.org>
4192
4193         New module 'fdopen'.
4194         * lib/stdio.in.h (fdopen): New declaration.
4195         * lib/fdopen.c: New file.
4196         * m4/fdopen.m4: New file.
4197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4198         REPLACE_FDOPEN.
4199         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4200         REPLACE_FDOPEN.
4201         * modules/fdopen: New file.
4202         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4203         * tests/test-stdio-c++.cc: Check signature of fdopen.
4204         * doc/posix-functions/fdopen.texi: Mention the new module.
4205
4206 2011-09-21  Bruno Haible  <bruno@clisp.org>
4207
4208         unlockpt tests: Avoid test failure on NetBSD 5.1.
4209         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4210         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4211
4212 2011-09-21  Bruno Haible  <bruno@clisp.org>
4213
4214         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4215         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4216         * tests/test-getlogin_r.c (main): Likewise.
4217
4218 2011-09-20  Bruno Haible  <bruno@clisp.org>
4219
4220         time tests: Don't require pid_t.
4221         * doc/posix-headers/time.texi: Revert last change.
4222         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4223         * tests/test-time.c: Comment out the check for pid_t.
4224
4225 2011-09-20  Bruno Haible  <bruno@clisp.org>
4226
4227         fsync tests: Avoid a test failure on mingw.
4228         * tests/test-fsync.c (main): Allow a failure with EIO.
4229
4230 2011-09-20  Bruno Haible  <bruno@clisp.org>
4231
4232         euidaccess: Update comments.
4233         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4234
4235 2011-09-20  Bruno Haible  <bruno@clisp.org>
4236
4237         Ensure EBADF returns for socket functions on mingw.
4238         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4239         descriptor is invalid.
4240         * lib/bind.c (rpl_bind): Likewise.
4241         * lib/connect.c (rpl_connect): Likewise.
4242         * lib/getpeername.c (rpl_getpeername): Likewise.
4243         * lib/getsockname.c (rpl_getsockname): Likewise.
4244         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4245         * lib/listen.c (rpl_listen): Likewise.
4246         * lib/recv.c (rpl_recv): Likewise.
4247         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4248         * lib/send.c (rpl_send): Likewise.
4249         * lib/sendto.c (rpl_sendto): Likewise.
4250         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4251         * lib/shutdown.c (rpl_shutdown): Likewise.
4252
4253 2011-09-20  Bruno Haible  <bruno@clisp.org>
4254
4255         select tests: EBADF tests.
4256         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4257         test_bad_fd): New functions.
4258         (test_function): Invoke also test_bad_fd.
4259
4260 2011-09-20  Bruno Haible  <bruno@clisp.org>
4261
4262         Tests for module 'posix_spawn_file_actions_addopen.
4263         * modules/posix_spawn_file_actions_addopen-tests: New file.
4264         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4265
4266         Tests for module 'posix_spawn_file_actions_adddup2'.
4267         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4268         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4269
4270         Tests for module 'posix_spawn_file_actions_addclose'.
4271         * modules/posix_spawn_file_actions_addclose-tests: New file.
4272         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4273
4274 2011-09-20  Bruno Haible  <bruno@clisp.org>
4275
4276         Tests for module 'unlockpt'.
4277         * modules/unlockpt-tests: New file.
4278         * tests/test-unlockpt.c: New file.
4279         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4280
4281         Tests for module 'grantpt'.
4282         * modules/grantpt-tests: New file.
4283         * tests/test-grantpt.c: New file.
4284         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4285
4286 2011-09-20  Bruno Haible  <bruno@clisp.org>
4287
4288         freopen tests: EBADF tests.
4289         * tests/test-freopen.c: Include errno.h, unistd.h.
4290         (main): Add tests for EBADF, commented out for the moment.
4291
4292         fclose tests: EBADF tests.
4293         * tests/test-fclose.c (main): Add tests for EBADF.
4294
4295         fflush tests: EBADF tests.
4296         * tests/test-fflush.c: Include errno.h, macros.h.
4297         (main): Add tests for EBADF.
4298
4299         ftello tests: EBADF tests.
4300         * tests/test-ftello4.sh: New file.
4301         * tests/test-ftello4.c: New file.
4302         * modules/ftello-tests (Files): Add them.
4303         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4304
4305         fseeko tests: EBADF tests.
4306         * tests/test-fseeko4.sh: New file.
4307         * tests/test-fseeko4.c: New file.
4308         * modules/fseeko-tests (Files): Add them.
4309         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4310
4311         Tests for function fputc().
4312         * modules/fputc-tests: New file.
4313         * tests/test-fputc.c: New file.
4314         * modules/stdio-tests (Depends-on): Add fputc-tests.
4315
4316         Tests for function fgetc().
4317         * modules/fgetc-tests: New file.
4318         * tests/test-fgetc.c: New file.
4319         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4320
4321         Tests for function fdopen().
4322         * modules/fdopen-tests: New file.
4323         * tests/test-fdopen.c: New file.
4324         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4325
4326         Tests for module 'vdprintf'.
4327         * modules/vdprintf-tests: New file.
4328         * tests/test-vdprintf.c: New file.
4329
4330         Tests for module 'dprintf'.
4331         * modules/dprintf-tests: New file.
4332         * tests/test-dprintf.c: New file.
4333
4334 2011-09-20  Bruno Haible  <bruno@clisp.org>
4335
4336         Tests for module 'ioctl'.
4337         * modules/ioctl-tests: New file.
4338         * tests/test-ioctl.c: New file.
4339
4340 2011-09-20  Bruno Haible  <bruno@clisp.org>
4341
4342         fcntl tests: EBADF tests.
4343         * tests/test-fcntl.c (main): Add more tests for EBADF.
4344
4345 2011-09-20  Bruno Haible  <bruno@clisp.org>
4346
4347         utimensat tests: EBADF tests.
4348         * tests/test-utimensat.c (main): Add tests for EBADF.
4349
4350         renameat tests: EBADF tests.
4351         * tests/test-renameat.c (main): Add tests for EBADF.
4352
4353         mkfifoat tests: EBADF tests.
4354         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4355
4356         readlinkat tests: EBADF tests.
4357         * tests/test-readlinkat.c (main): Add tests for EBADF.
4358
4359         symlinkat tests: EBADF tests.
4360         * tests/test-symlinkat.c (main): Add tests for EBADF.
4361
4362         linkat tests: EBADF tests.
4363         * tests/test-linkat.c (main): Add tests for EBADF.
4364
4365         Tests for module 'faccessat'.
4366         * modules/faccessat-tests: New file.
4367         * tests/test-faccessat.c: New file.
4368
4369         fdopendir tests: EBADF tests.
4370         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4371
4372         openat tests: EBADF tests.
4373         * tests/test-fchownat.c (main): Add tests for EBADF.
4374         * tests/test-fstatat.c (main): Likewise.
4375         * tests/test-mkdirat.c (main): Likewise.
4376         * tests/test-openat.c (main): Likewise.
4377         * tests/test-unlinkat.c (main): Likewise.
4378         * tests/test-fchmodat.c: New file.
4379         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4380         (Makefile.am): Also run 'test-fchmodat'.
4381
4382 2011-09-20  Bruno Haible  <bruno@clisp.org>
4383
4384         utimens, futimens, fdutimensat tests: EBADF tests.
4385         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4386
4387         Tests for function fstat().
4388         * modules/fstat-tests: New file.
4389         * tests/test-fstat.c: New file.
4390         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4391
4392 2011-09-20  Bruno Haible  <bruno@clisp.org>
4393
4394         test-ttyname_r tests: EBADF tests.
4395         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4396
4397         Tests for module 'isatty'.
4398         * modules/isatty-tests: New file.
4399         * tests/test-isatty.c: New file.
4400
4401         Tests for module 'write'.
4402         * modules/write-tests: New file.
4403         * tests/test-write.c: New file.
4404
4405         Tests for module 'read'.
4406         * modules/read-tests: New file.
4407         * tests/test-read.c: New file.
4408
4409         pwrite tests: EBADF tests.
4410         * tests/test-pwrite.c (main): Add tests for EBADF.
4411
4412         pread tests: EBADF tests.
4413         * tests/test-pread.c (main): Add tests for EBADF.
4414
4415         lseek tests: EBADF tests.
4416         * tests/test-lseek.c (main): Add more tests for EBADF.
4417
4418         Tests for module 'ftruncate'.
4419         * modules/ftruncate-tests: New file.
4420         * tests/test-ftruncate.sh: New file.
4421         * tests/test-ftruncate.c: New file.
4422
4423         fsync tests: EBADF tests.
4424         * tests/test-fsync.c (main): Add more tests for EBADF.
4425
4426         fdatasync tests: EBADF tests.
4427         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4428
4429         Tests for module 'fchown'.
4430         * modules/fchown-tests: New file.
4431         * tests/test-fchown.c: New file.
4432
4433         Tests for module 'fchmod'.
4434         * modules/fchmod-tests: New file.
4435         * tests/test-fchmod.c: New file.
4436
4437         fchdir tests: EBADF tests.
4438         * tests/test-fchdir.c (main): Add more tests for EBADF.
4439
4440         dup2 tests: EBADF tests.
4441         * tests/test-dup2.c (main): Add more tests for EBADF.
4442
4443         Tests for module 'dup'.
4444         * modules/dup-tests: New file.
4445         * tests/test-dup.c: New file.
4446
4447         Tests for module 'close'.
4448         * modules/close-tests: New file.
4449         * tests/test-close.c: New file.
4450
4451 2011-09-20  Bruno Haible  <bruno@clisp.org>
4452
4453         Tests for module 'shutdown'.
4454         * modules/shutdown-tests: New file.
4455         * tests/test-shutdown.c: New file.
4456
4457         Tests for module 'setsockopt'.
4458         * modules/setsockopt-tests: New file.
4459         * tests/test-setsockopt.c: New file.
4460
4461         Tests for module 'sendto'.
4462         * modules/sendto-tests: New file.
4463         * tests/test-sendto.c: New file.
4464
4465         Tests for module 'send'.
4466         * modules/send-tests: New file.
4467         * tests/test-send.c: New file.
4468
4469         Tests for module 'recvfrom'.
4470         * modules/recvfrom-tests: New file.
4471         * tests/test-recvfrom.c: New file.
4472
4473         Tests for module 'recv'.
4474         * modules/recv-tests: New file.
4475         * tests/test-recv.c: New file.
4476
4477         Tests for module 'listen'.
4478         * modules/listen-tests: New file.
4479         * tests/test-listen.c: New file.
4480
4481         Tests for module 'getsockopt'.
4482         * modules/getsockopt-tests: New file.
4483         * tests/test-getsockopt.c: New file.
4484
4485         Tests for module 'getsockname'.
4486         * modules/getsockname-tests: New file.
4487         * tests/test-getsockname.c: New file.
4488
4489         Tests for module 'getpeername'.
4490         * modules/getpeername-tests: New file.
4491         * tests/test-getpeername.c: New file.
4492
4493         Tests for module 'connect'.
4494         * modules/connect-tests: New file.
4495         * tests/test-connect.c: New file.
4496
4497         Tests for module 'bind'.
4498         * modules/bind-tests: New file.
4499         * tests/test-bind.c: New file.
4500
4501         accept4 tests: Fix for native Windows.
4502         * tests/test-accept4.c: Include sockets.h.
4503         (main): Invoke gl_sockets_startup.
4504         * modules/accept4-tests (Depends-on): Add sockets.
4505
4506         accept tests: Fix for native Windows.
4507         * tests/test-accept.c: Include sockets.h.
4508         (main): Invoke gl_sockets_startup.
4509         * modules/accept-tests (Depends-on): Add sockets.
4510
4511 2011-09-19  Bruno Haible  <bruno@clisp.org>
4512
4513         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4514         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4515         do...while(0).
4516         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4517         Suggested by Paul Eggert.
4518
4519 2011-09-19  Bruno Haible  <bruno@clisp.org>
4520
4521         sched: Ensure pid_t is defined.
4522         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4523         not define pid_t.
4524         * lib/sched.in.h: Include <sys/types.h>.
4525         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4527
4528 2011-09-19  Bruno Haible  <bruno@clisp.org>
4529
4530         msvc-inval: Ensure the entire expansion is a single statement.
4531         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4532         of braces.
4533
4534 2011-09-19  Jim Meyering  <meyering@redhat.com>
4535
4536         tests: use printf, not echo in init.sh's warn_ function
4537         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4538         misbehave when given strings containing a backslash or starting
4539         with e.g., -n.  James Youngman suggested setting IFS.
4540
4541 2011-09-19  Eric Blake  <eblake@redhat.com>
4542
4543         futimens: enhance test
4544         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4545         closed non-negative fd.
4546
4547         date: accept 'hence' as opposite of 'ago'
4548         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4549         * tests/test-parse-datetime.c (main): Enhance test.
4550         Suggested by Jesse Wilson.
4551
4552 2011-09-19  Jim Meyering  <meyering@redhat.com>
4553
4554         getcwd: don't fail in a deep directory on a system without openat
4555         Before this change, getcwd would fail when called from a directory
4556         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4557         the non-openat implementation used "..", "../..", "../../..", etc.
4558         to access ancestor directories.  With too many, that string would
4559         be longer than PATH_MAX.
4560         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4561         using gnulib's openat replacement.
4562         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4563         we're using the replacement function.
4564
4565 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4566
4567         maint.mk: avoid warnings from perl about missing files
4568         * top/maint.mk (def_sym_regex): Ignore files listed in
4569         $(gl_other_headers_) that do not exist, say because a project
4570         does not use a corresponding module.
4571
4572 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4573
4574         stat: use pathmax.h only if needed
4575         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4576         This is better for Emacs, which does not have a mingw port and
4577         therefore can avoid the pathmax module.
4578
4579         utimens: remove dependency on dup2
4580         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4581         to work around the Linux kernel bug.
4582         * modules/utimens (Depends-on): Remove dup2.
4583
4584 2011-09-18  Bruno Haible  <bruno@clisp.org>
4585
4586         inet_ntop, inet_pton: Look for it also in libresolv.
4587         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4588         libnsl, search for it in libresolv.
4589         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4590         Needed on Solaris 7.
4591
4592 2011-09-18  Bruno Haible  <bruno@clisp.org>
4593
4594         accept, accept4 tests: Avoid link error on Solaris.
4595         * modules/accept-tests (Makefile.am): Link test-accept against
4596         $(LIBSOCKET).
4597         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4598         $(LIBSOCKET).
4599
4600         accept4: Avoid link error on Solaris.
4601         * modules/accept4 (Link): New section.
4602
4603         socket functions: Avoid link errors on Solaris.
4604         * modules/accept (Depends-on): Add socketlib.
4605         (Link): New section.
4606         * modules/bind (Depends-on): Add socketlib.
4607         (Link): New section.
4608         * modules/connect (Depends-on): Add socketlib.
4609         (Link): New section.
4610         * modules/getpeername (Depends-on): Add socketlib.
4611         (Link): New section.
4612         * modules/getsockname (Depends-on): Add socketlib.
4613         (Link): New section.
4614         * modules/getsockopt (Depends-on): Add socketlib.
4615         (Link): New section.
4616         * modules/listen (Depends-on): Add socketlib.
4617         (Link): New section.
4618         * modules/recv (Depends-on): Add socketlib.
4619         (Link): New section.
4620         * modules/recvfrom (Depends-on): Add socketlib.
4621         (Link): New section.
4622         * modules/send (Depends-on): Add socketlib.
4623         (Link): New section.
4624         * modules/sendto (Depends-on): Add socketlib.
4625         (Link): New section.
4626         * modules/setsockopt (Depends-on): Add socketlib.
4627         (Link): New section.
4628         * modules/shutdown (Depends-on): Add socketlib.
4629         (Link): New section.
4630         * modules/socket (Depends-on): Add socketlib.
4631         (Link): New section.
4632
4633 2011-09-18  Bruno Haible  <bruno@clisp.org>
4634
4635         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4636         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4637         than 5 seconds.
4638         * modules/ptsname-tests (configure.ac): Test for alarm.
4639
4640 2011-09-18  Bruno Haible  <bruno@clisp.org>
4641
4642         posix_spawn_file_actions_add*: Fix module dependencies.
4643         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4644         posix_spawn_file_actions_init.
4645         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4646         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4647
4648 2011-09-18  Bruno Haible  <bruno@clisp.org>
4649
4650         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4651         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4652         * tests/test-renameat.c (main): Likewise.
4653
4654 2011-09-18  Bruno Haible  <bruno@clisp.org>
4655
4656         Tests for module 'accept4'.
4657         * modules/accept4-tests: New file.
4658         * tests/test-accept4.c: New file.
4659
4660 2011-09-18  Bruno Haible  <bruno@clisp.org>
4661
4662         Tests for module 'accept'.
4663         * modules/accept-tests: New file.
4664         * tests/test-accept.c: New file.
4665
4666 2011-09-18  Bruno Haible  <bruno@clisp.org>
4667
4668         dup2: Support for MSVC.
4669         * lib/dup2.c: Include msvc-inval.h.
4670         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4671         _get_osfhandle calls.
4672         * modules/dup2 (Depends-on): Add msvc-inval.
4673         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4674
4675         New module 'msvc-inval'.
4676         * lib/msvc-inval.h: New file.
4677         * lib/msvc-inval.c: New file.
4678         * m4/msvc-inval.m4: New file.
4679         * modules/msvc-inval: New file.
4680
4681 2011-09-17  Bruno Haible  <bruno@clisp.org>
4682
4683         Tests for module 'pclose'.
4684         * modules/pclose-tests: New file.
4685
4686         New module 'pclose'.
4687         * lib/stdio.in.h (pclose): New declaration.
4688         * lib/pclose.c: New file.
4689         * m4/pclose.m4: New file.
4690         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4691         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4692         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4693         * modules/pclose: New file.
4694         * modules/popen-tests (Depends-on): Add pclose.
4695         * modules/popen-safer-tests (Depends-on): Likewise.
4696         * doc/posix-functions/pclose.texi: Mention the new module.
4697
4698 2011-09-17  Bruno Haible  <bruno@clisp.org>
4699
4700         popen: Support for MSVC.
4701         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4702         * lib/popen.c (popen): Provide alternate definition for native Windows.
4703         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4705         * modules/popen (Depends-on, configure.ac): Update condition.
4706         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4707         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4708         fixed.
4709
4710 2011-09-17  Bruno Haible  <bruno@clisp.org>
4711
4712         isnanl, isnand, isnanf: Work around MSVC bug.
4713         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4714
4715 2011-09-17  Bruno Haible  <bruno@clisp.org>
4716
4717         sys_socket tests: Fix recent mistake.
4718         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4719
4720 2011-09-17  Bruno Haible  <bruno@clisp.org>
4721
4722         putenv: Support for MSVC.
4723         * modules/putenv (Depends-on): Add environ.
4724         * lib/putenv.c (environ): Disable declaration.
4725         * lib/unistd.in.h: Update comment.
4726
4727 2011-09-17  Bruno Haible  <bruno@clisp.org>
4728
4729         math: Avoid macro redefinition warnings on MSVC.
4730         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4731         Undefine before redefining.
4732
4733 2011-09-17  Bruno Haible  <bruno@clisp.org>
4734
4735         doc: Mention functions which are declared as macros.
4736         * doc/posix-functions/*[fl].texi: Mention that some functions are
4737         defined as macros with arguments only.
4738
4739 2011-09-17  Bruno Haible  <bruno@clisp.org>
4740
4741         Add dependencies to new dirent related modules.
4742         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4743         * modules/fts (Depends-on): Likewise.
4744         * modules/glob (Depends-on): Likewise.
4745         * modules/savedir (Depends-on): Likewise.
4746         * modules/scandir (Depends-on): Likewise.
4747         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4748         * modules/fdopendir (Depends-on): Add opendir.
4749
4750 2011-09-17  Bruno Haible  <bruno@clisp.org>
4751
4752         inet_pton: Support for MSVC on Windows Vista or newer.
4753         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4754         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4755         HAVE_DECL_INET_PTON is defined.
4756         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4757         On platforms with <winsock2.h>, test whether inet_pton is declared in
4758         <ws2tcpip.h>. If so, arrange to replace it.
4759         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4760         REPLACE_INET_PTON.
4761         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4762         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4763         (Depends-on, configure.ac): Update condition.
4764         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4765
4766 2011-09-17  Bruno Haible  <bruno@clisp.org>
4767
4768         inet_ntop: Support for MSVC on Windows Vista or newer.
4769         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4770         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4771         HAVE_DECL_INET_NTOP is defined.
4772         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4773         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4774         <ws2tcpip.h>. If so, arrange to replace it.
4775         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4776         REPLACE_INET_NTOP.
4777         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4778         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4779         (Depends-on, configure.ac): Update condition.
4780         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4781
4782 2011-09-16  Eric Blake  <eblake@redhat.com>
4783
4784         test-fsync: yet another enhancement
4785         * tests/test-fsync.c (main): Also test behavior on read-only text
4786         file.
4787
4788 2011-09-16  Bruno Haible  <bruno@clisp.org>
4789
4790         Enhance fsync, fdatasync tests.
4791         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4792         * tests/test-fdatasync.c (main): Likewise.
4793
4794 2011-09-16  Bruno Haible  <bruno@clisp.org>
4795
4796         Support for MSVC compiler: Ensure mode_t gets defined.
4797         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4798         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4800         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4801         * tests/test-fcntl-h.c: Check that mode_t is defined.
4802         * tests/test-sys_stat.c: Likewise.
4803         * tests/test-sys_types.c: Likewise.
4804         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4805         * doc/posix-headers/sys_stat.texi: Likewise.
4806         * doc/posix-headers/sys_types.texi: Likewise.
4807
4808 2011-09-16  Bruno Haible  <bruno@clisp.org>
4809
4810         sys_stat: Support for MSVC.
4811         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4812         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4813         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4814         MSVC.
4815
4816 2011-09-16  Bruno Haible  <bruno@clisp.org>
4817
4818         Support for MSVC compiler: Ensure off_t gets defined.
4819         * lib/unistd.in.h: Include <sys/types.h>.
4820         * tests/test-fcntl-h.c: Check that off_t is defined.
4821         * tests/test-sys_stat.c: Likewise.
4822         * tests/test-sys_types.c: Likewise.
4823
4824 2011-09-16  Eric Blake  <eblake@redhat.com>
4825
4826         fdatasync: port to Solaris
4827         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4828         * modules/fdatasync (Link): Document it.
4829         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4830
4831         fdatasync: port to MacOS X 10.7
4832         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4833         declared.
4834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4835         * modules/unistd (Makefile.am): Substitute it.
4836         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4837         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4838
4839         fdatasync: minor improvements
4840         * modules/fdatasync (Depends-on): Add condition for fsync.
4841         * lib/fdatasync.c (fdatasync): Add comment.
4842         * tests/test-unistd-c++.cc: Test fdatasync.
4843
4844         unistd: update refs to newer POSIX
4845         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4846         Suggested by Bruno Haible.
4847
4848         fdatasync: new module
4849         * modules/fsync (Description): Document difference to fdatasync.
4850         * modules/fdatasync: New module.
4851         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4852         * lib/fdatasync.c (fdatasync): Likewise.
4853         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4854         defaults.
4855         * modules/unistd (Makefile.am): Set witnesses.
4856         * lib/unistd.in.h (fdatasync): Declare.
4857         * MODULES.html.sh: Document it.
4858         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4859         * modules/fdatasync-tests: New test.
4860         * tests/test-fdatasync.c: Likewise.
4861
4862 2011-09-16  Eric Blake  <eblake@redhat.com>
4863
4864         test-fsync: enhance tests
4865         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4866         * tests/test-fsync.c (main): Enhance test.
4867
4868 2011-09-15  Bruno Haible  <bruno@clisp.org>
4869
4870         Support for MSVC compiler: Ensure ssize_t gets defined.
4871         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4872         * doc/posix-headers/stdio.texi: Likewise.
4873         * modules/stdio (Depends-on): Add ssize_t.
4874         * modules/sys_socket (Depends-on): Likewise.
4875         * modules/sys_types (Depends-on): Likewise.
4876         * modules/sys_uio (Depends-on): Likewise.
4877         * modules/unistd (Depends-on): Likewise.
4878         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4879         * tests/test-sys_types.c: Check that ssize_t is defined.
4880
4881 2011-09-14  Bruno Haible  <bruno@clisp.org>
4882
4883         Avoid using #, the m4 comment starter character, near brackets.
4884         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4885         delimiter character in sed expressions.
4886         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4887         Suggested by Eric Blake.
4888
4889         Properly quote AC_CHECK_DECLS' 4th argument.
4890         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4891         argument.
4892         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4893         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4894         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4895         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4896         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4897         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4898         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4899         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4900         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4901         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4902         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4903         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4904         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4905         * m4/isinf.m4 (gl_ISINF): Likewise.
4906         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4907         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4908         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4909         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4910         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4911         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4912         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4913         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4914         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4915         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4916         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4917         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4919         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4921         Reported by Eric Blake.
4922
4923         Properly quote AC_CHECK_DECL's 4th argument.
4924         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4925         argument.
4926         * m4/argp.m4 (gl_ARGP): Likewise.
4927         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4928         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4929         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4930         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4931         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4932         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4934         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4935         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4936         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4937         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4938         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4939         Reported by Eric Blake.
4940
4941 2011-09-14  Eric Blake  <eblake@redhat.com>
4942
4943         opendir: avoid compile warning
4944         * lib/opendir.c (includes): Always include errno.h.
4945         Reported by Tatsuro MATSUOKA.
4946
4947 2011-09-14  Jim Meyering  <meyering@redhat.com>
4948
4949         maint.mk: sc_tight_scope: propagate failure from sub-make
4950         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4951         Reported by Martin von Gagern.
4952
4953 2011-09-13  Bruno Haible  <bruno@clisp.org>
4954
4955         tempname: Support for MSVC.
4956         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4957         MSVC.
4958         * modules/tempname (Depends-on): Add fcntl-h.
4959
4960 2011-09-13  Bruno Haible  <bruno@clisp.org>
4961
4962         sys_time: Support for MSVC.
4963         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4964         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4965         include <winsock2.h>.
4966         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4967         function declarations that collide with POSIX.
4968         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4969         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4970
4971 2011-09-13  Bruno Haible  <bruno@clisp.org>
4972
4973         stat: Support for MSVC.
4974         * lib/stat.c: Include pathmax.h.
4975         * modules/stat (Depends-on): Add pathmax.
4976
4977         pathmax: Support for native Windows.
4978         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4979
4980 2011-09-12  Bruno Haible  <bruno@clisp.org>
4981
4982         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4983         * lib/dirent.in.h (struct dirent): New type.
4984         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4985         DT_WHT): New macros.
4986         (DIR): New type.
4987         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4988         (readdir, rewinddir): New declarations.
4989         * lib/dirent-private.h: New file.
4990         * lib/opendir.c: New file.
4991         * lib/readdir.c: New file.
4992         * lib/rewinddir.c: New file.
4993         * lib/closedir.c: New file.
4994         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4995         * m4/opendir.m4: New file.
4996         * m4/readdir.m4: New file.
4997         * m4/rewinddir.m4: New file.
4998         * m4/closedir.m4: New file.
4999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5000         REPLACE_CLOSEDIR here.
5001         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5002         readdir, rewinddir are declared.
5003         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5004         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5005         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5006         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5007         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5008         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5009         * modules/opendir: New file.
5010         * modules/readdir: New file.
5011         * modules/rewinddir: New file.
5012         * modules/closedir: New file.
5013         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5014         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5015         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5016         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5017         * NEWS: Mention the 'fchdir' change.
5018
5019 2011-09-11  Bruno Haible  <bruno@clisp.org>
5020
5021         asm-underscore.m4: Support for MSVC.
5022         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5023         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5024
5025 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5026
5027         Doc about crypt functions.
5028         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5029         needing for _GNU_SOURCE to get crypt.
5030         * doc/posix-functions/encrypt.texi: Likewise.
5031         * doc/posix-functions/setkey.texi: Likewise.
5032
5033 2011-09-11  Bruno Haible  <bruno@clisp.org>
5034
5035         doc: Update regarding MSVC 9.
5036         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5037         tested".
5038         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5039         * doc/posix-headers/*.texi: Likewise.
5040         * doc/pastposix-functions/*.texi: Likewise.
5041         * doc/glibc-functions/*.texi: Likewise.
5042         * doc/glibc-headers/*.texi: Likewise.
5043
5044 2011-09-11  Bruno Haible  <bruno@clisp.org>
5045
5046         unistd et al.: Don't assume <unistd.h> exists.
5047         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5048         does not exist.
5049         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5050         exist. But include <stdlib.h>.
5051         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5052         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5053         symlink() does not exist.
5054         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5055         include <io.h> instead.
5056         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5057         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5058         include <direct.h> instead.
5059         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5060         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5061         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5062         <io.h> instead.
5063         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5064         correctly if the system does not have hard links.
5065         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5066         <direct.h> instead.
5067         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5068         it when looking for function declarations.
5069         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5070         <direct.h> and <io.h> instead.
5071         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5072
5073 2011-09-11  Bruno Haible  <bruno@clisp.org>
5074
5075         strcase: Support for MSVC.
5076         * modules/strcase (Status, Notice): Remove obsoletion mark.
5077         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5078         * doc/posix-functions/strncasecmp.texi: Likewise.
5079
5080         strings: Don't assume <strings.h> exists.
5081         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5082         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5083         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5084         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5085
5086 2011-09-11  Bruno Haible  <bruno@clisp.org>
5087
5088         dirent: Don't assume <dirent.h> exists.
5089         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5090         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5091         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5092         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5093
5094 2011-09-11  Bruno Haible  <bruno@clisp.org>
5095
5096         Fix wint_t on MSVC.
5097         * lib/wchar.in.h (wint_t): On MSVC, override it.
5098         * lib/wctype.in.h (wint_t): Likewise.
5099         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5100         MSVC.
5101         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5102         * doc/posix-headers/wctype.texi: Likewise.
5103
5104 2011-09-11  Bruno Haible  <bruno@clisp.org>
5105
5106         sys_types: Fix typo.
5107         * lib/sys_types.in.h: Fix typo in comment.
5108         Reported by Paul Eggert.
5109
5110         Support for MSVC compiler: Ensure size_t gets defined.
5111         * modules/strings (Depends-on): Add 'sys_types'.
5112         * modules/sys_uio (Depends-on): Likewise.
5113         * lib/sys_uio.in.h: Update comment.
5114
5115         C++ tests for module 'sys_types'.
5116         * modules/sys_types-c++-tests: New file.
5117         * tests/test-sys_types-c++.cc: New file.
5118
5119         Tests for module 'sys_types'.
5120         * modules/sys_types-tests: New file.
5121         * tests/test-sys_types.c: New file.
5122
5123         New module 'sys_types'.
5124         * lib/sys_types.in.h: New file.
5125         * m4/sys_types_h.m4: New file.
5126         * modules/sys_types: New file.
5127         * doc/posix-headers/sys_types.texi: Mention the new module and the
5128         size_t problem on MSVC 9.
5129
5130 2011-09-11  Bruno Haible  <bruno@clisp.org>
5131
5132         Support for MSVC compiler: Avoid division by a literal 0.
5133         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5134         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5135         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5136         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5137         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5138         * tests/infinity.h: New file.
5139         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5140         on MSVC.
5141         * tests/test-ceilf1.c: Include infinity.h.
5142         (main): Use Infinityf.
5143         * tests/test-ceil1.c: Include infinity.h.
5144         (main): Use Infinityd.
5145         * tests/test-ceill.c: Include infinity.h.
5146         (main): Use Infinityl.
5147         * tests/test-dprintf-posix.c: Include infinity.h.
5148         (test_function): Use Infinityd.
5149         * tests/test-floorf1.c: Include infinity.h.
5150         (main): Use Infinityf.
5151         * tests/test-floor1.c: Include infinity.h.
5152         (main): Use Infinityd.
5153         * tests/test-floorl.c: Include infinity.h.
5154         (main): Use Infinityl.
5155         * tests/test-fprintf-posix.c: Include infinity.h.
5156         (test_function): Use Infinityd.
5157         * tests/test-frexp.c: Include infinity.h.
5158         (main): Use Infinityd.
5159         * tests/test-frexpl.c: Include infinity.h.
5160         (main): Use Infinityl.
5161         * tests/test-isfinite.c: Include infinity.h.
5162         (test_isfinitef): Use Infinityf.
5163         (test_isfinited): Use Infinityd.
5164         (test_isfinitel): Use Infinityl.
5165         * tests/test-isinf.c: Include infinity.h.
5166         (test_isinff): Use Infinityf.
5167         (test_isinfd): Use Infinityd.
5168         (test_isinfl): Use Infinityl.
5169         * tests/test-isnan.c: Include infinity.h.
5170         (test_float): Use Infinityf.
5171         (test_double): Use Infinityd.
5172         (test_long_double): Use Infinityl.
5173         * tests/test-isnanf.h: Include infinity.h.
5174         (main): Use Infinityf.
5175         * tests/test-isnand.h: Include infinity.h.
5176         (main): Use Infinityd.
5177         * tests/test-isnanl.h: Include infinity.h.
5178         (main): Use Infinityl.
5179         * tests/test-ldexpl.c: Include infinity.h.
5180         (main): Use Infinityl.
5181         * tests/test-printf-posix.h: Include infinity.h.
5182         (test_function): Use Infinityd.
5183         * tests/test-roundf1.c: Include infinity.h.
5184         (main): Use Infinityf.
5185         * tests/test-round1.c: Include infinity.h.
5186         (main): Use Infinityd.
5187         * tests/test-roundl.c: Include infinity.h.
5188         (main): Use Infinityl.
5189         * tests/test-signbit.c: Include infinity.h.
5190         (test_signbitf): Use Infinityf.
5191         (test_signbitd): Use Infinityd.
5192         (test_signbitl): Use Infinityl.
5193         * tests/test-snprintf-posix.h: Include infinity.h.
5194         (test_function): Use Infinityd, Infinityl.
5195         * tests/test-sprintf-posix.h: Include infinity.h.
5196         (test_function): Use Infinityd, Infinityl.
5197         * tests/test-truncf1.c: Include infinity.h.
5198         (main): Use Infinityf.
5199         * tests/test-trunc1.c: Include infinity.h.
5200         (main): Use Infinityd.
5201         * tests/test-truncl.c: Include infinity.h.
5202         (main): Use Infinityl.
5203         * tests/test-vasnprintf-posix.c: Include infinity.h.
5204         (test_function): Use Infinityd, Infinityl.
5205         * tests/test-vasprintf-posix.c: Include infinity.h.
5206         (test_function): Use Infinityd, Infinityl.
5207         * modules/ceilf-tests (Files): Add tests/infinity.h.
5208         * modules/ceil-tests (Files): Likewise.
5209         * modules/ceill-tests (Files): Likewise.
5210         * modules/dprintf-posix-tests (Files): Likewise.
5211         * modules/floorf-tests (Files): Likewise.
5212         * modules/floor-tests (Files): Likewise.
5213         * modules/floorl-tests (Files): Likewise.
5214         * modules/fprintf-posix-tests (Files): Likewise.
5215         * modules/frexp-tests (Files): Likewise.
5216         * modules/frexp-nolibm-tests (Files): Likewise.
5217         * modules/frexpl-tests (Files): Likewise.
5218         * modules/frexpl-nolibm-tests (Files): Likewise.
5219         * modules/isfinite-tests (Files): Likewise.
5220         * modules/isinf-tests (Files): Likewise.
5221         * modules/isnan-tests (Files): Likewise.
5222         * modules/isnanf-tests (Files): Likewise.
5223         * modules/isnanf-nolibm-tests (Files): Likewise.
5224         * modules/isnand-tests (Files): Likewise.
5225         * modules/isnand-nolibm-tests (Files): Likewise.
5226         * modules/isnanl-tests (Files): Likewise.
5227         * modules/isnanl-nolibm-tests (Files): Likewise.
5228         * modules/ldexpl-tests (Files): Likewise.
5229         * modules/printf-posix-tests (Files): Likewise.
5230         * modules/roundf-tests (Files): Likewise.
5231         * modules/round-tests (Files): Likewise.
5232         * modules/roundl-tests (Files): Likewise.
5233         * modules/signbit-tests (Files): Likewise.
5234         * modules/snprintf-posix-tests (Files): Likewise.
5235         * modules/sprintf-posix-tests (Files): Likewise.
5236         * modules/truncf-tests (Files): Likewise.
5237         * modules/trunc-tests (Files): Likewise.
5238         * modules/truncl-tests (Files): Likewise.
5239         * modules/vasnprintf-posix-tests (Files): Likewise.
5240         * modules/vasprintf-posix-tests (Files): Likewise.
5241         * modules/vdprintf-posix-tests (Files): Likewise.
5242         * modules/vfprintf-posix-tests (Files): Likewise.
5243         * modules/vprintf-posix-tests (Files): Likewise.
5244         * modules/vsnprintf-posix-tests (Files): Likewise.
5245         * modules/vsprintf-posix-tests (Files): Likewise.
5246         * modules/xprintf-posix-tests (Files): Likewise.
5247
5248 2011-09-11  Bruno Haible  <bruno@clisp.org>
5249
5250         Ensure pid_t gets defined.
5251         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5252         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5253         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5254         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5255         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5256         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5257         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5258         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5259         * tests/test-fcntl-h.c: Check that pid_t is defined.
5260         * tests/test-sched.c: Likewise.
5261         * tests/test-termios.c: Likewise.
5262         * tests/test-time.c: Likewise.
5263         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5264         * doc/posix-headers/signal.texi: Likewise.
5265         * doc/posix-headers/sys_types.texi: Likewise.
5266         * doc/posix-headers/time.texi: Likewise.
5267
5268 2011-09-11  Bruno Haible  <bruno@clisp.org>
5269
5270         acl: Fix compilation on Solaris 10 (older version).
5271         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5272         of ACE_EVERYONE.
5273         * lib/set-mode-acl.c (qset_acl): Likewise.
5274         Reported by Christian Jullien <eligis@orange.fr>.
5275
5276 2011-09-10  Bruno Haible  <bruno@clisp.org>
5277
5278         iconv, unsetenv: Add support for MSVC compiler.
5279         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5280         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5281
5282 2011-09-10  Bruno Haible  <bruno@clisp.org>
5283
5284         *printf: Add support for MSVC compiler.
5285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5286         handles the exception caused by the %n directive. When cross-compiling,
5287         guess no on native Windows.
5288         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5289         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5290         emulate it through vsnprintf.
5291         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5292         * doc/posix-functions/dprintf.texi: Update documentation regarding
5293         MSVC 9.
5294         * doc/posix-functions/fprintf.texi: Likewise.
5295         * doc/posix-functions/printf.texi: Likewise.
5296         * doc/posix-functions/snprintf.texi: Likewise.
5297         * doc/posix-functions/sprintf.texi: Likewise.
5298         * doc/posix-functions/swprintf.texi: Likewise.
5299         * doc/posix-functions/vdprintf.texi: Likewise.
5300         * doc/posix-functions/vfprintf.texi: Likewise.
5301         * doc/posix-functions/vprintf.texi: Likewise.
5302         * doc/posix-functions/vsnprintf.texi: Likewise.
5303         * doc/posix-functions/vsprintf.texi: Likewise.
5304         * doc/glibc-functions/asprintf.texi: Likewise.
5305         * doc/glibc-functions/obstack_printf.texi: Likewise.
5306         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5307         * doc/glibc-functions/vasprintf.texi: Likewise.
5308
5309 2011-09-10  Bruno Haible  <bruno@clisp.org>
5310
5311         nocrash: Add support for native Windows.
5312         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5313
5314 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5315             Bruno Haible  <bruno@clisp.org>
5316
5317         absolute-header, include-next: Add support for MSVC compiler.
5318         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5319         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5320         directory separator in #line directives.
5321         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5322         recognize also backslash as directory separator in #line directives.
5323
5324 2011-09-08  Jim Meyering  <meyering@redhat.com>
5325
5326         maint.mk: mark the post-release commit log with "maint: " prefix
5327         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5328         one-line commit-log summary.
5329
5330 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5331             Bruno Haible  <bruno@clisp.org>
5332
5333         Doc about crypt functions.
5334         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5335         systems.
5336         * doc/posix-functions/encrypt.texi: Likewise.
5337         * doc/posix-functions/setkey.texi: Likewise.
5338
5339 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5340
5341         * lib/gc.h: Fix copyright header.
5342
5343 2011-09-07  Bruno Haible  <bruno@clisp.org>
5344
5345         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5346         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5347         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5348
5349 2011-09-07  Bruno Haible  <bruno@clisp.org>
5350
5351         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5352         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5353         * lib/freopen.c: Likewise.
5354         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5355         * lib/lstat.c: Likewise.
5356         * lib/stat.c: Likewise.
5357         * lib/open.c: Use different syntax for include of <fcntl.h>.
5358         * lib/openat.c: Include fcntl.h again, explicitly.
5359
5360 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5361
5362         parse-datetime: document the newly accepted format
5363         * doc/parse-datetime.texi (Combined date and time of day items):
5364         New section.
5365
5366 2011-09-06  Bruno Haible  <bruno@clisp.org>
5367
5368         acl: Fix a test failure on newer Solaris 10 with ZFS.
5369         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5370         ENOSYS as no ACL.
5371         Reported by Jim Meyering.
5372
5373 2011-09-06  Bruno Haible  <bruno@clisp.org>
5374
5375         acl: Update for AIX >= 5.3 with NFS.
5376         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5377         ENOSYS as no ACL.
5378
5379         acl: Fix a test failure on AIX >= 5.3 with NFS.
5380         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5381         as no ACL.
5382
5383 2011-09-06  Bruno Haible  <bruno@clisp.org>
5384
5385         acl: Fix a test failure on IRIX 6.5 with NFS.
5386         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5387         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5388         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5389         * lib/copy-acl.c (qcopy_acl): Likewise.
5390
5391 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5392
5393         openat: port to AIX 7.1 with large files
5394         AIX 7.1 does a "#define openat open64at" if large files are in use,
5395         so we can't simply #undef openat.  Use the orig_openat trick (similar
5396         to orig_open in lib/open.c) to work around the problem.  Problem
5397         reported by Kevin Brott for GNU tar, in the thread containing
5398         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5399         * lib/openat.c (__need_system_fcntl_h): Define first.
5400         Include <fcntl.h> and <sys/types.h> before undefining.
5401         (orig_openat) [HAVE_OPENAT]: New inline function.
5402         (openat) [HAVE_OPENAT]: Do not undef.
5403         (rpl_openat): Use orig_openat, not openat.
5404
5405 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5406             Bruno Haible  <bruno@clisp.org>
5407
5408         acl: Avoid errors on NonStop Kernel.
5409         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5410         ENOTSUP errors.
5411
5412 2011-09-05  Bruno Haible  <bruno@clisp.org>
5413
5414         acl: Clean up Solaris code.
5415         * lib/acl-internal.h: Remove no-op #if.
5416         * lib/file-has-acl.c: Likewise.
5417         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5418         * lib/copy-acl.c (qcopy_acl): Likewise.
5419
5420 2011-09-05  Bruno Haible  <bruno@clisp.org>
5421
5422         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5423         binaries built on the original Solaris 10.
5424         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5425         trivial.
5426
5427 2011-09-05  Bruno Haible  <bruno@clisp.org>
5428
5429         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5430         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5431         10.
5432         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5433         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5434         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5435         instead of acl_get, facl_get, acl_set, facl_set.
5436
5437 2011-09-05  Bruno Haible  <bruno@clisp.org>
5438
5439         copy-file: Try unit tests on more file systems.
5440         * tests/test-copy-file-1.sh: New file.
5441         * tests/test-copy-file-2.sh: New file.
5442         * modules/copy-file-tests (Files): Add them.
5443         (Makefile.am): Add them to TESTS.
5444
5445         acl: Try unit tests on more file systems.
5446         * tests/test-file-has-acl-1.sh: New file.
5447         * tests/test-file-has-acl-2.sh: New file.
5448         * tests/test-set-mode-acl-1.sh: New file.
5449         * tests/test-set-mode-acl-2.sh: New file.
5450         * tests/test-copy-acl-1.sh: New file.
5451         * tests/test-copy-acl-2.sh: New file.
5452         * modules/acl-tests (Files): Add them.
5453         (Makefile.am): Add them to TESTS.
5454
5455 2011-09-04  Bruno Haible  <bruno@clisp.org>
5456
5457         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5458         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5459         10.
5460         (OLD_ALLOW, OLD_DENY): New macros.
5461         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5462         ACE_ACCESS_ALLOWED_ACE_TYPE.
5463         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5464         ACE_ACCESS_DENIED_ACE_TYPE.
5465         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5466         (NEW_ACE_EXECUTE): Fix value.
5467         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5468         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5469         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5470         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5471         NEW_ACE_SYNCHRONIZE): New macros.
5472         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5473         instead of acl_fromtext, acl_set, facl_set.
5474         Fixes a coreutils/tests/cp/perm failure.
5475
5476 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5477
5478         openat: test for fstatat (..., 0) bug
5479         Further testing with tar suggests that fstatat (..., 0)
5480         does not work in general, on AIX 7.1; see
5481         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5482         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5483         replacement fstatat (which is what older AIX releases were using
5484         anyway).
5485         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5486         use is now changed to orig_fstatat.  This was probably the right
5487         thing to do anyway.
5488         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5489         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5490         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5491         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5492         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5493         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5494         if the bug is found.
5495
5496         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5497         This tests for another fstatat bug on AIX 7.1:
5498         fstatat (AT_FDCWD, ..., 0) does not work.  See
5499         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5500         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5501         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5502         (rpl_fstatat): Adjust so that it works around either (or both)
5503         bugs if present.
5504         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5505
5506 2011-09-03  Karl Berry  <karl@gnu.org>
5507
5508         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5509         in index entries.
5510
5511 2011-09-02  Bruno Haible  <bruno@clisp.org>
5512
5513         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5514         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5515         values of AR, ARFLAGS, RANLIB.
5516         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5517
5518 2011-09-02  Bruno Haible  <bruno@clisp.org>
5519
5520         Find 'ar' program that fits with --host argument.
5521         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5522
5523 2011-09-02  Bruno Haible  <bruno@clisp.org>
5524
5525         tests: init.sh: Support any non-GNU diff.
5526         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5527         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5528         Solaris 8.
5529
5530 2011-09-02  Bruno Haible  <bruno@clisp.org>
5531
5532         tests: init.sh: work also with any non-GNU diff that supports -u
5533         * tests/init.sh: Relax check for diff -u support.
5534         Rather than checking for GNU diff via --version, simply check
5535         for support for -u itself.  Useful at least on OpenBSD 4.9,
5536         AIX 7.1, IRIX 6.5, and Solaris 10.
5537
5538 2011-09-01  Bruno Haible  <bruno@clisp.org>
5539
5540         strtoimax, strtoumax: Document problem on HP-UX 11.
5541         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5542         * doc/posix-functions/strtoumax.texi: Likewise.
5543
5544 2011-09-01  Bruno Haible  <bruno@clisp.org>
5545
5546         strtoumax: Avoid link error on OSF/1 with DTK cc.
5547         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5548         defined as a function.
5549         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5550         strtoumax is defined, not whether it is declared.
5551
5552 2011-09-01  Bruno Haible  <bruno@clisp.org>
5553
5554         strtoimax: Avoid link error on OSF/1 with DTK cc.
5555         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5556         defined as a function.
5557         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5558         strtoimax is defined, not whether it is declared.
5559
5560 2011-09-01  Bruno Haible  <bruno@clisp.org>
5561
5562         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5563         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5564         as a function.
5565         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5566         whether it is declared.
5567
5568 2011-09-01  Bruno Haible  <bruno@clisp.org>
5569
5570         imaxabs: Avoid link error on OSF/1 with DTK cc.
5571         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5572         as a function.
5573         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5574         whether it is declared.
5575
5576 2011-09-01  Bruno Haible  <bruno@clisp.org>
5577
5578         Tests for module 'strtoumax'.
5579         * modules/strtoumax-tests: New file.
5580         * tests/test-strtoumax.c: New file.
5581
5582         Tests for module 'strtoimax'.
5583         * modules/strtoimax-tests: New file.
5584         * tests/test-strtoimax.c: New file.
5585
5586         Tests for module 'imaxdiv'.
5587         * modules/imaxdiv-tests: New file.
5588         * tests/test-imaxdiv.c: New file.
5589
5590         Tests for module 'imaxabs'.
5591         * modules/imaxabs-tests: New file.
5592         * tests/test-imaxabs.c: New file.
5593
5594 2011-09-01  Bruno Haible  <bruno@clisp.org>
5595
5596         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5597         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5598         pthread_create.
5599
5600 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5601
5602         openat: work around AIX 7.1 fstatat issue
5603         This should fix the problem that was not properly fixed
5604         in the previous change, dated 2011-08-30.
5605         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5606         __need_system_stat_h defined.
5607         (orig_fstatat) [HAVE_FSTATAT]: New function.
5608         (rpl_fstatat): Go back to the old way of doing things,
5609         except call orig_fstatat instead of fstatat.
5610         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5611         Remove unnecessary check whether fstatat fills in st_size etc.
5612
5613 2011-09-01  Bruno Haible  <bruno@clisp.org>
5614
5615         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5616         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5617         just include the system's header.
5618
5619 2011-08-31  Jim Meyering  <meyering@redhat.com>
5620
5621         tests: avoid spurious assertion failure in test-float.c on ppc64
5622         * tests/test-float.c (test_long_double): Comment out an assertion,
5623         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5624         with gcc-4.4.4.
5625
5626         maint: indent with spaces, not TABs
5627         I need to get in the habit of running gnulib's "make check".
5628         Both of these would have been caught.
5629         * m4/largefile.m4: Indent with spaces, not TABs.
5630         * lib/parse-datetime.y (iso_8601_time): Likewise.
5631         Spotted by Pádraig Brady.
5632
5633         test-parse-datetime.c: accommodate a relatively strict gcc warning
5634         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5635         to avoid a warning from gcc's -Werror=missing-declarations.
5636         Insert a few spaces-before-funcall-parenthesis.
5637
5638 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5639
5640         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5641         The parser now accepts ISO 8601 date-time strings with "T" as the
5642         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5643         with a space between the date and time strings.  Now it also parses
5644         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5645         variants like "2004-02-29T16:21:42.333-07:00"
5646         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5647         of day representation using the 'T' separator character.
5648         * doc/parse-datetime.texi (General date syntax): replace use of
5649         deprecated --iso-8601 option with --rfc-3339 in example of date
5650         command output formats that can be parsed.
5651         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5652         lib/parse-datetime.y.
5653         (gmt_offset): New function.
5654         (main): Add additional test cases to validate ISO8601 extended
5655         date and time of day parsing.
5656
5657 2011-08-31  Bruno Haible  <bruno@clisp.org>
5658
5659         freopen: Documentation.
5660         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5661         name.
5662         Reported by Claudio Bley <claudio.bley@gmail.com>.
5663
5664 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5665
5666         freopen: Don't crash if the filename argument is NULL.
5667         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5668         NULL.
5669
5670 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5671
5672         openat: work around AIX 7.1 fstatat bug
5673         Problem reported by Kevin Brott for GNU tar, in the thread containing
5674         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5675         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5676         FSTATAT_ST_SIZE_ETC_BROKEN.
5677         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5678         rpl_fstatat.
5679         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5680         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5681         AC_CHECK_FUNCS_ONCE for fstatat.
5682         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5683         fchmodat, mkdirat, openat and unlinkat.
5684
5685 2011-08-30  Bruno Haible  <bruno@clisp.org>
5686
5687         Avoid endless recursions if config.h includes some header files.
5688         * lib/fopen.c (__need_FILE): Define already before including config.h.
5689         * lib/freopen.c (__need_FILE): Likewise.
5690         * lib/open.c (__need_system_fcntl_h): Likewise.
5691         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5692         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5693         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5694
5695 2011-08-25  Karl Berry  <karl@gnu.org>
5696
5697         * config/srclist.txt (ylwrap): new try.
5698         * build-aux/ylwrap: new file.
5699
5700 2011-08-23  Bruno Haible  <bruno@clisp.org>
5701
5702         tmpdir: Use a good default directory on native Windows.
5703         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5704         (P_tmpdir): Default to _P_tmpdir on native Windows.
5705         (path_search): On native Windows, try the value returned by GetTempPath
5706         before trying P_tmpdir.
5707         * modules/tmpdir (Depends-on): Add pathmax.
5708         Suggested by John Darrington <john@darrington.wattle.id.au>.
5709
5710 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5711
5712         doc: fix typo in README-release
5713         * top/README-release: Capitalize first word of a sentence.
5714
5715 2011-08-19  Jim Meyering  <meyering@redhat.com>
5716
5717         fts: do not exhaust memory when processing million-entry directories
5718         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5719         directory would require about 256*N bytes of memory.  Thus, it was
5720         easy to construct a directory too large to be processed by any of
5721         those tools.  With this change, fts' maximum memory utilization is
5722         now limited to around 30MB.
5723         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5724         (fts_read): When we've processed the final entry (i.e., when
5725         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5726         using the parent entry to read any remaining entries.  Dispatch
5727         depending on what fts_build returns:
5728         - NULL+stop, aka failure: stop
5729         - NULL otherwise: move up in the dir hierarchy
5730         - non-NULL: handle this new entry
5731         (fts_build): Declare and use new local, continue_readdir.
5732         Prepare to be called from fts_read, when the entries
5733         from a partially-read directory have just been exhausted.
5734         In that case, we'll skip the opendir and instead use the parent's
5735         fts_dirp and derive dir_fd from that.
5736         Finally, in the readdir loop, if we read max_entries entries,
5737         exit the loop ensuring *not* to call closedir.  This is required
5738         so that fts_dirp can be reused on a subsequent call.
5739         Prompted by Ben England's report of memory exhaustion in find
5740         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5741
5742         maint: fts: move decl of `dp' down into while loop; split a long line
5743         * lib/fts.c (fts_build): No semantic change.
5744
5745         fts: add/use new struct member, fts_dirp
5746         We are about to use this to manage any directory with
5747         too many entries to read all of them into memory at once.
5748         To do that, we'll need to save the DIR* pointer in each
5749         affected FTSENT struct.
5750         * lib/fts_.h: Include <dirent.h>.
5751         (struct FTSENT) [fts_dirp]: New member.
5752         * lib/fts.c (closedir_and_clear): Define.
5753         Use it in place of closedir so that we are sure to
5754         clear the new fts_dirp member when done with it.
5755         (fts_alloc): Initialize the new member.
5756         (fts_lfree): Free, if needed.
5757
5758         maint: fts: give __opendir2 a new parameter and rename
5759         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5760         than surreptitiously using sole caller's "dir_fd".
5761         (fts_opendir): Rename from __opendir2.
5762
5763         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5764         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5765
5766         maint: fts.c: correct off-by-one indentation
5767         * lib/fts.c (fts_build): Correct indentation, change style
5768         of a couple of block comments, and bracing style.
5769
5770         maint: fts.c: move __opendir2 #define "up" out of function body
5771         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5772
5773         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5774         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5775         out for a long time and besides was useful only on BSD systems.
5776
5777 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5778
5779         regex: port to Stratus OpenVOS
5780         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5781         define to empty, rather than attempting nonportable optimizations.
5782         Problem reported by Paul Green in:
5783         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5784         and fix suggested by Eric Blake in:
5785         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5786
5787 2011-08-17  Eric Blake  <eblake@redhat.com>
5788
5789         getcwd: fix test failures on mingw
5790         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5791         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5792         test if long directory cannot be created, and allow mingw errno.
5793
5794         getcwd-lgpl: fix m4 to match relaxed test for BSD
5795         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5796         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5797         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5798         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5799         signature problem.
5800
5801         getcwd: fix compilation on mingw64
5802         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5803         getcwd.
5804         Reported by Marc-André Lureau.
5805
5806         pipe2: silence compiler warning
5807         * lib/pipe2.c (pipe2): Hide label if it is not used.
5808
5809 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5810
5811         relocatable-prog: fix link error
5812         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5813         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5814         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5815         into modules/relocatable-lib without noticing that
5816         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5817         also needs to build relocatable.c.
5818
5819 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5820
5821         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5822         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5823         shell code: it contained a 'break' that was not in a loop.
5824         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5825         via a shell-language loop; this may have been true in old Autoconf
5826         versions, but it's not true in Autoconf 2.68.  I found this bug
5827         when testing coreutils git on Solaris 8, whose shell complains
5828         about the syntax error.
5829
5830 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5831
5832         * lib/base64.c: Fix comment to reference RFC 4648.
5833         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5834         <gvtulder@gmail.com>.
5835
5836 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5837
5838         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5839
5840         po/Makefile.in.in: fix make -q problem
5841         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5842         rule, since there's no file named 'check-macro-version' and its
5843         use as a file breaks make -q.
5844         (all): Don't depend on check-macro-version.
5845         (CHECK_MACRO_VERSION): New macro.
5846         (stamp-po): Use it.
5847
5848         configmake: fix make -q problem
5849         * modules/configmake (configmake.h): Update configmake.h's time stamp
5850         even if the file does not change.  Otherwise, 'make -q' fails.
5851         Problem reported by Simon Josefsson in
5852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5853
5854 2011-08-11  Jim Meyering  <meyering@redhat.com>
5855
5856         git-version-gen: correct the advice in a comment
5857         * build-aux/git-version-gen: Correct comment.
5858         Don't recommend to list .tarball-version in .gitignore.
5859
5860 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5861
5862         base64: fix off-by-one buffer size bug
5863         Problem and (trivial) fix reported by Gijs van Tulder in
5864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5865         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5866         * tests/test-base64.c (main): Catch the bug.
5867
5868 2011-08-10  Eric Blake  <eblake@redhat.com>
5869
5870         closein: correct comments
5871         * lib/closein.c (close_stdin): Improve comments.
5872
5873 2011-08-09  Bruno Haible  <bruno@clisp.org>
5874
5875         More tests for 'fseeko'.
5876         * tests/test-fseeko3.c: New file, from Eric Blake.
5877         * tests/test-fseeko3.sh: New file.
5878         * modules/fseeko-tests (Files): Add them.
5879         (TESTS): Add test-fseeko3.sh.
5880         (check_PROGRAMS): Add test-fseeko3.
5881
5882 2011-08-09  Eric Blake  <eblake@redhat.com>
5883
5884         fseeko: remove unneeded hack
5885         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5886
5887         fseeko: fix bug on glibc
5888         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5889         Reported by John W. Eaton.
5890
5891 2011-08-08  Bruno Haible  <bruno@clisp.org>
5892
5893         unictype/base: Fix interoperability with preinstalled libunistring.
5894         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5895         Reported by Simon Josefsson.
5896
5897 2011-08-08  Bruno Haible  <bruno@clisp.org>
5898
5899         iswblank: Detect declaration correctly.
5900         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5901         AC_CHECK_DECLS invocation.
5902
5903 2011-08-08  Bruno Haible  <bruno@clisp.org>
5904
5905         tcgetsid: Detect declaration correctly.
5906         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5907         AC_CHECK_DECLS invocation.
5908         Reported by Simon Josefsson.
5909
5910 2011-08-08  Eric Blake  <eblake@redhat.com>
5911
5912         largefile: fix typo that regressed large file support
5913         * modules/largefile (configure.ac-early): Fix section name.
5914
5915 2011-08-06  Karl Berry  <karl@gnu.org>
5916
5917         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5918         a separate module.
5919
5920 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5921
5922         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5923         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5924         get prototype for free.
5925
5926 2011-08-04  Bruno Haible  <bruno@clisp.org>
5927
5928         Tests for module 'pathmax'.
5929         * modules/pathmax-tests: New file.
5930         * tests/test-pathmax.c: New file.
5931
5932         canonicalize-lgpl: Support larger filenames on the Hurd.
5933         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5934         Reported by Paul Eggert.
5935
5936         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5937         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5938         * lib/chdir-long.h: Include pathmax.h.
5939         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5940         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5941         (PATH_MAX): Remove code that is done by pathmax.h.
5942         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5943         * lib/tmpfile.c: Add a comment.
5944         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5945         * modules/chdir-long (Depends-on): Add pathmax.
5946         * modules/getcwd (Depends-on): Add pathmax.
5947         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5948         is not defined.
5949         * doc/posix-headers/limits.texi: Mention the pathmax module.
5950         * NEWS: Mention the change.
5951
5952 2011-08-02  Bruno Haible  <bruno@clisp.org>
5953
5954         pthread_sigmask: Actually use results of gl_THREADLIB.
5955         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5956         gl_THREADLIB, not gl_[]THREADLIB.
5957         Reported by Eric Blake.
5958
5959 2011-08-02  Jim Meyering  <meyering@redhat.com>
5960
5961         maint.mk: relax the default _gl_TS_function_match regexp
5962         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5963         space between function name and "(" in an "extern" declaration.
5964         That would fail to match a decl with no space there: extern void foo();
5965
5966 2011-07-31  Iain Nicol  <iain@thenicols.net>
5967
5968         git-version-gen: document that EXTRA_DIST must include .version
5969         * build-aux/git-version-gen: In the how-to-use comment, document
5970         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5971         will fail when run from an unpacked distribution tarball.
5972
5973 2011-08-01  Bruno Haible  <bruno@clisp.org>
5974
5975         wctype-h: Fix last change.
5976         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5977         REPLACE_TOWLOWER to 0.
5978         Reported by Sam Steingold <sds@gnu.org>.
5979
5980 2011-07-31  Bruno Haible  <bruno@clisp.org>
5981
5982         frexpl: Update autoconf test.
5983         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5984         according to changes of 2011-06-20.
5985
5986 2011-07-31  Bruno Haible  <bruno@clisp.org>
5987
5988         sys_utsname: Add support for Minix.
5989         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5990         <sys/utsname.h>.
5991         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5992         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5993
5994 2011-07-31  Bruno Haible  <bruno@clisp.org>
5995
5996         strings: Add support for Minix.
5997         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5998         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5999         * doc/posix-headers/strings.texi: Document the Minix problem.
6000
6001 2011-07-31  Bruno Haible  <bruno@clisp.org>
6002
6003         wctype-h: Add support for Minix.
6004         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6005         REPLACE_TOWLOWER.
6006         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6007         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6008         REPLACE_ISWCNTRL.
6009
6010 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6011
6012         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6013         This is a performance improvement for 64-bit hosts: it causes the
6014         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6015
6016 2011-07-31  Bruno Haible  <bruno@clisp.org>
6017
6018         stdioext: Add support for Minix.
6019         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6020         * lib/fpurge.c (fpurge): Likewise.
6021         * lib/freadahead.c (freadahead): Likewise.
6022         * lib/freadable.c (freadable): Likewise.
6023         * lib/freading.c (freading): Likewise.
6024         * lib/freadptr.c (freadptr): Likewise.
6025         * lib/freadseek.c (freadptrinc): Likewise.
6026         * lib/fseeko.c (rpl_fseeko): Likewise.
6027         * lib/fseterr.c (fseterr): Likewise.
6028         * lib/fwritable.c (fwritable): Likewise.
6029         * lib/fwriting.c (fwriting): Likewise.
6030         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6031         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6032
6033 2011-07-31  Bruno Haible  <bruno@clisp.org>
6034
6035         errno: Port to Minix.
6036         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6037         ECONNABORTED are defined.
6038         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6039         GNULIB_defined_ECONNABORTED): New macros.
6040         * lib/strerror-override.h (strerror_override): Test also
6041         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6042         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6043         ECONNABORTED.
6044         * doc/posix-headers/errno.texi: Mention the Minix problem.
6045
6046 2011-07-31  Bruno Haible  <bruno@clisp.org>
6047
6048         Work around declaration collisions on Minix.
6049         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6050         defined, set REPLACE_MBSINIT.
6051         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6052         defined, set REPLACE_MBRTOWC.
6053         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6054         set REPLACE_MBRLEN.
6055         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6056         defined, set REPLACE_MBSRTOWCS.
6057         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6058         defined, set REPLACE_WCRTOMB.
6059         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6060         defined, set REPLACE_WCSRTOMBS.
6061
6062 2011-07-31  Bruno Haible  <bruno@clisp.org>
6063
6064         Add support for Minix with ACK compiler.
6065         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6066         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6067         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6068
6069 2011-07-31  Bruno Haible  <bruno@clisp.org>
6070
6071         Documentation about Minix.
6072         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6073         * doc/glibc-headers/*.texi: Likewise.
6074         * doc/posix-functions/*.texi: Likewise.
6075         * doc/glibc-functions/*.texi: Likewise.
6076
6077 2011-07-31  Bruno Haible  <bruno@clisp.org>
6078
6079         snippet/warn-on-use: Fix indentation.
6080         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6081
6082 2011-07-25  Jim Meyering  <meyering@redhat.com>
6083
6084         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6085         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6086         commands.
6087
6088 2011-07-27  Jim Meyering  <meyering@redhat.com>
6089
6090         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6091         * top/maint.mk (gl_extract_significant_defines_): Now that
6092         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6093         gnulib/lib/signal.in.h, and now that we recommend to
6094         define-if-undefined those two symbols in application code,
6095         we must filter them out of the "significant" list.
6096         This avoids a "make syntax-check" failure in coreutils.
6097
6098 2011-07-26  Eric Blake  <eblake@redhat.com>
6099
6100         warnings: add comments about previous patch
6101         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6102         * m4/include_next.m4: Likewise.
6103         * m4/warn-on-use.m4: Likewise.
6104         * m4/warnings.m4: Likewise, and simplify use.
6105         Suggested by Stefano Lattarini.
6106
6107         include-next, warnings: support older autoconf
6108         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6109         AS_VAR_PUSHDEF in a way that works with older autoconf.
6110         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6111         Reported by Daniel P. Berrange.
6112
6113 2011-07-25  Bruno Haible  <bruno@clisp.org>
6114
6115         fseek, ftell: Fix doc.
6116         * doc/posix-functions/fseek.texi: Reword statement about
6117         AC_SYS_LARGEFILE.
6118         * doc/posix-functions/ftell.texi: Likewise.
6119
6120 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6121             Bruno Haible  <bruno@clisp.org>
6122
6123         Add dependencies to the 'largefile' module.
6124         * modules/fopen (Depends-on): Add 'largefile'.
6125         * modules/freopen (Depends-on): Likewise.
6126         * modules/fseeko (Depends-on): Likewise.
6127         * modules/ftello (Depends-on): Likewise.
6128         * modules/glob (Depends-on): Likewise.
6129         * modules/lseek (Depends-on): Likewise.
6130         * modules/lstat (Depends-on): Likewise.
6131         * modules/mkostemp (Depends-on): Likewise.
6132         * modules/mkostemps (Depends-on): Likewise.
6133         * modules/mkstemp (Depends-on): Likewise.
6134         * modules/mkstemps (Depends-on): Likewise.
6135         * modules/open (Depends-on): Likewise.
6136         * modules/openat (Depends-on): Likewise.
6137         * modules/pread (Depends-on): Likewise.
6138         * modules/pwrite (Depends-on): Likewise.
6139         * modules/scandir (Depends-on): Likewise.
6140         * modules/stat (Depends-on): Likewise.
6141         * modules/tmpfile (Depends-on): Likewise.
6142         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6143         since the containing module now depends on the largefile module.
6144         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6145         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6146         off_t is fixed by gnulib.
6147         * doc/posix-functions/freopen.texi: Likewise.
6148         * doc/posix-functions/fseeko.texi: Likewise.
6149         * doc/posix-functions/fstatat.texi: Likewise.
6150         * doc/posix-functions/ftello.texi: Likewise.
6151         * doc/posix-functions/glob.texi: Likewise.
6152         * doc/posix-functions/lseek.texi: Likewise.
6153         * doc/posix-functions/lstat.texi: Likewise.
6154         * doc/posix-functions/mkstemp.texi: Likewise.
6155         * doc/posix-functions/open.texi: Likewise.
6156         * doc/posix-functions/openat.texi: Likewise.
6157         * doc/posix-functions/pread.texi: Likewise.
6158         * doc/posix-functions/pwrite.texi: Likewise.
6159         * doc/posix-functions/scandir.texi: Likewise.
6160         * doc/posix-functions/stat.texi: Likewise.
6161         * doc/posix-functions/tmpfile.texi: Likewise.
6162         * doc/glibc-functions/mkostemp.texi: Likewise.
6163         * doc/glibc-functions/mkostemps.texi: Likewise.
6164         * doc/glibc-functions/mkstemps.texi: Likewise.
6165
6166 2011-07-25  Bruno Haible  <bruno@clisp.org>
6167
6168         fcntl: Move AC_LIBOBJ invocation to module description.
6169         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6170         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6171
6172         fcntl: Remove call-in from fchdir.m4.
6173         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6175
6176         dup3: Remove potential call-in from fchdir.m4.
6177         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6179
6180         dup2: Move AC_LIBOBJ invocation to module description.
6181         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6182         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6183         Don't invoke AC_LIBOBJ.
6184         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6185
6186         dup2: Remove call-in from fchdir.m4.
6187         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6189
6190         fclose: Move AC_LIBOBJ invocation to module description.
6191         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6192         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6193         to 1.
6194         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6195
6196         fclose: Remove call-in from close.m4.
6197         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6198         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6199
6200         close: Move AC_LIBOBJ invocation to module description.
6201         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6202         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6203         1.
6204         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6205
6206         close: Remove call-in from fchdir.m4.
6207         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6209
6210         open: Move AC_LIBOBJ invocation to module description.
6211         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6212         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6213         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6214
6215         open: Remove call-in from fchdir.m4.
6216         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6218
6219         fchdir: Start to remove gl_REPLACE_* idiom.
6220         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6221         (gl_FUNC_FCHDIR): Invoke it.
6222
6223 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6224
6225         * lib/ftell.c (ftell): Comment out cast.
6226
6227         close: use gl_REPLACE_FCLOSE only if defined
6228         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6229         is defined.  The close module doesn't depend on the fclose module
6230         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6232         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6233
6234 2011-07-24  Jim Meyering  <meyering@redhat.com>
6235
6236         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6237         * tests/test-select.h (test_function): Declare as "static".
6238
6239 2011-07-24  Bruno Haible  <bruno@clisp.org>
6240
6241         doc: Mention the effects of AC_SYS_LARGEFILE.
6242         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6243         on this function.
6244         * doc/posix-functions/aio_error.texi: Likewise.
6245         * doc/posix-functions/aio_fsync.texi: Likewise.
6246         * doc/posix-functions/aio_read.texi: Likewise.
6247         * doc/posix-functions/aio_return.texi: Likewise.
6248         * doc/posix-functions/aio_suspend.texi: Likewise.
6249         * doc/posix-functions/aio_write.texi: Likewise.
6250         * doc/posix-functions/fgetpos.texi: Likewise.
6251         * doc/posix-functions/fopen.texi: Likewise.
6252         * doc/posix-functions/freopen.texi: Likewise.
6253         * doc/posix-functions/fsetpos.texi: Likewise.
6254         * doc/posix-functions/fstatvfs.texi: Likewise.
6255         * doc/posix-functions/ftruncate.texi: Likewise.
6256         * doc/posix-functions/ftw.texi: Likewise.
6257         * doc/posix-functions/getrlimit.texi: Likewise.
6258         * doc/posix-functions/glob.texi: Likewise.
6259         * doc/posix-functions/lio_listio.texi: Likewise.
6260         * doc/posix-functions/lockf.texi: Likewise.
6261         * doc/posix-functions/mkstemp.texi: Likewise.
6262         * doc/posix-functions/mmap.texi: Likewise.
6263         * doc/posix-functions/nftw.texi: Likewise.
6264         * doc/posix-functions/openat.texi: Likewise.
6265         * doc/posix-functions/opendir.texi: Likewise.
6266         * doc/posix-functions/posix_fadvise.texi: Likewise.
6267         * doc/posix-functions/posix_fallocate.texi: Likewise.
6268         * doc/posix-functions/pread.texi: Likewise.
6269         * doc/posix-functions/pwrite.texi: Likewise.
6270         * doc/posix-functions/readdir.texi: Likewise.
6271         * doc/posix-functions/readdir_r.texi: Likewise.
6272         * doc/posix-functions/rewinddir.texi: Likewise.
6273         * doc/posix-functions/scandir.texi: Likewise.
6274         * doc/posix-functions/seekdir.texi: Likewise.
6275         * doc/posix-functions/setrlimit.texi: Likewise.
6276         * doc/posix-functions/statvfs.texi: Likewise.
6277         * doc/posix-functions/telldir.texi: Likewise.
6278         * doc/posix-functions/tmpfile.texi: Likewise.
6279         * doc/posix-functions/truncate.texi: Likewise.
6280         * doc/glibc-functions/fallocate.texi: Likewise.
6281         * doc/glibc-functions/fstatfs.texi: Likewise.
6282         * doc/glibc-functions/fts_children.texi: Likewise.
6283         * doc/glibc-functions/fts_read.texi: Likewise.
6284         * doc/glibc-functions/getdirentries.texi: Likewise.
6285         * doc/glibc-functions/mkostemp.texi: Likewise.
6286         * doc/glibc-functions/mkostemps.texi: Likewise.
6287         * doc/glibc-functions/mkstemps.texi: Likewise.
6288         * doc/glibc-functions/preadv.texi: Likewise.
6289         * doc/glibc-functions/pwritev.texi: Likewise.
6290         * doc/glibc-functions/sendfile.texi: Likewise.
6291         * doc/glibc-functions/statfs.texi: Likewise.
6292
6293 2011-07-24  Bruno Haible  <bruno@clisp.org>
6294
6295         doc: Fix typo.
6296         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6297
6298 2011-07-24  Bruno Haible  <bruno@clisp.org>
6299
6300         doc: Mention fsusage.
6301         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6302
6303 2011-07-24  Bruno Haible  <bruno@clisp.org>
6304
6305         doc: Mention new glibc headers and functions.
6306         * doc/glibc-headers/gshadow.texi: New file.
6307         * doc/glibc-functions/endsgent.texi: New file.
6308         * doc/glibc-functions/fgetsgent.texi: New file.
6309         * doc/glibc-functions/fgetsgent_r.texi: New file.
6310         * doc/glibc-functions/getsgent.texi: New file.
6311         * doc/glibc-functions/getsgent_r.texi: New file.
6312         * doc/glibc-functions/getsgnam.texi: New file.
6313         * doc/glibc-functions/getsgnam_r.texi: New file.
6314         * doc/glibc-functions/putsgent.texi: New file.
6315         * doc/glibc-functions/setsgent.texi: New file.
6316         * doc/glibc-functions/sgetsgent.texi: New file.
6317         * doc/glibc-functions/sgetsgent_r.texi: New file.
6318         * doc/glibc-functions/malloc_info.texi: New file.
6319         * doc/glibc-functions/preadv.texi: New file.
6320         * doc/glibc-functions/pwritev.texi: New file.
6321         * doc/glibc-functions/register_printf_modifier.texi: New file.
6322         * doc/glibc-functions/register_printf_specifier.texi: New file.
6323         * doc/glibc-functions/register_printf_type.texi: New file.
6324         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6325         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6326         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6327         * doc/glibc-functions/pthread_getname_np.texi: New file.
6328         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6329         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6330         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6331         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6332         * doc/glibc-functions/pthread_setname_np.texi: New file.
6333         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6334         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6335         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6336         * doc/glibc-functions/qsort_r.texi: New file.
6337         * doc/glibc-functions/quick_exit.texi: New file.
6338         * doc/glibc-functions/syncfs.texi: New file.
6339         * doc/gnulib.texi: Include them.
6340         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6341         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6342         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6343         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6344         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6345         * doc/glibc-functions/execvpe.texi: Likewise.
6346
6347 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6348
6349         ftell: don't include <unistd.h>
6350         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6351         guaranteed to define off_t, and the ftell module depends on the
6352         stdio module.
6353
6354         ftell: do not assume wraparound signed arithmetic
6355         * lib/ftell.c: Include <limits.h>.
6356         (ftell): Don't assume wraparound signed arithmetic.
6357
6358 2011-07-24  Bruno Haible  <bruno@clisp.org>
6359
6360         close: No longer depend on module 'fclose'.
6361         * modules/close (Depends-on): Remove fclose.
6362         * NEWS: Mention the change.
6363         Suggested by Sam Steingold <sds@gnu.org>.
6364
6365 2011-07-24  Bruno Haible  <bruno@clisp.org>
6366
6367         fsusage: Enable large volume support on AIX >= 5.2.
6368         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6369         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6370         instead of STAT_STATVFS.
6371         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6372
6373         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6374         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6375         f_blocks field only on MacOS X.
6376
6377         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6379         * modules/fsusage (Depends-on): Add largefile.
6380
6381 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6382
6383         * README: Modernize discussion of signed integers.
6384         Assuming overflow wraparound is no longer safe.
6385         Mention ones' complement and signed magnitude.
6386
6387 2011-07-22  Bruno Haible  <bruno@clisp.org>
6388
6389         select tests, pselect tests: Refactor.
6390         * tests/test-select.h: New file, extracted from tests/test-select.c.
6391         (select_fn): New type.
6392         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6393         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6394         test_pipe): Add my_select argument.
6395         (test_function): Renamed from main. Add my_select argument.
6396         * tests/test-select.c: Move most code to tests/test-select.h. Include
6397         test-select.h.
6398         * modules/select-tests (Files): Add tests/test-select.h.
6399         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6400         (my_select, main): New functions.
6401         * modules/pselect-tests (Files): Add tests/test-select.h,
6402         tests/macros.h, tests/signature.h.
6403         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6404         (configure.ac): Check for <sys/wait.h>.
6405
6406 2011-07-22  Bruno Haible  <bruno@clisp.org>
6407
6408         sys_select tests: Check the signature of FD_*.
6409         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6410         signature tests from here...
6411         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6412         here.
6413         * modules/sys_select-tests (Files): Add tests/signature.h.
6414
6415 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6416
6417         largefile: new module, replacing large-inode
6418         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6419         * MODULES.html.sh: Add largefile, remove large-inode.
6420         * modules/largefile, m4/largefile.m4: New files.
6421         * modules/large-inode, m4/large-inode.m4: Remove.
6422
6423         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6424         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6425         implementations that use only 32 bits to count blocks.
6426         On typical hosts with 1024-byte blocks, this fails with file
6427         systems as small as 4 TiB.  Problem reported by Herb Wartens
6428         <http://debbugs.gnu.org/9140> and this should also fix a similar
6429         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6430
6431         large-inode: New module
6432         * MODULES.html.sh: Add it.
6433         * modules/large-inode, m4/large-inode.m4: New files.
6434
6435         extensions: Enable extensions on MacOS X 10.5 and later.
6436         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6437
6438 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6439
6440         file-has-acl: use acl_extended_file_nofollow if available
6441         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6442         (acl_extended_file): New macro.
6443         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6444         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6445
6446 2011-07-21  Bruno Haible  <bruno@clisp.org>
6447
6448         Declare system functions in a way that works with C++.
6449         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6450         declare fdopendir as extern "C".
6451         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6452         declare frexpl as extern "C".
6453         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6454         declare gai_strerror as extern "C".
6455         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6456         programs, declare gai_strerror as extern "C".
6457         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6458         declare getlogin_r as extern "C".
6459         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6460         as extern "C".
6461         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6462         declare ldexpl as extern "C".
6463         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6464         as extern "C".
6465         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6466         program, declare getmntinfo as extern "C".
6467         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6468         stpncpy as extern "C".
6469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6470         program, declare __xpg_strerror_r as extern "C".
6471         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6472         strndup as extern "C".
6473         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6474         declare memset and bzero as extern "C".
6475         Reported by Sam Steingold <sds@gnu.org>.
6476
6477 2011-07-12  Jim Meyering  <meyering@redhat.com>
6478
6479         maint.mk: prohibit inclusion of "verify.h" without use
6480         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6481
6482 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6483
6484         timer-time: A new module to check for timer_settime()
6485         * m4/timer_time.m4: Check for the posix function.
6486         * modules/timer-time: Add the new module.
6487         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6488         Mention it.
6489
6490 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6491             Bruno Haible  <bruno@clisp.org>
6492
6493         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6494         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6495         not defined, assume POSIX threads and look for pthread_sigmask in
6496         $LIBS, without changing $CPPFLAGS.
6497
6498 2011-07-19  Bruno Haible  <bruno@clisp.org>
6499
6500         strstr: Update cross-compilation guess.
6501         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6502         CPUs, guess no, in view of glibc
6503         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6504         Suggested by Eric Blake. Reported by Reuben Thomas.
6505
6506 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6507
6508         getopt-gnu: suppress core dumps from detection code
6509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6510         to suppress core dumps that may well occur on glibc systems.
6511         * modules/getopt-gnu: Depend on nocrash.
6512
6513 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6514
6515         pthread_sigmask: ensure usleep is declared
6516         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6517         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6518
6519 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6520
6521         doc: Document NonStop portability issues.
6522         * doc/posix-functions/sigaction.texi (sigaction):
6523         * doc/posix-headers/signal.texi (signal.h):
6524         Document NonStop.  See Joachim Schmitz in
6525         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6526
6527 2011-07-15  Bruno Haible  <bruno@clisp.org>
6528
6529         ffsl, ffsll: Avoid unportable behaviour.
6530         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6531
6532 2011-07-15  Bruno Haible  <bruno@clisp.org>
6533
6534         ffs: More tests.
6535         * tests/test-ffs.c (NBITS): New macro.
6536         (main): Add more tests.
6537         * tests/test-ffsl.c (NBITS): New macro.
6538         (main): Add more tests.
6539         * tests/test-ffsll.c (NBITS): New macro.
6540         (main): Add more tests.
6541
6542 2011-07-15  Eric Blake  <eblake@redhat.com>
6543
6544         ffsl, ffsll: new modules
6545         * modules/ffsl: New file.
6546         * modules/ffsll: Likewise.
6547         * m4/ffsl.m4: Likewise.
6548         * m4/ffsll.m4: Likewise.
6549         * lib/ffsl.c: Likewise.
6550         * lib/ffsl.h: Likewise.
6551         * lib/ffsll.c: Likewise.
6552         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6553         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6554         * modules/string (Makefile.am): Substitute witnesses.
6555         * lib/strings.in.h (ffsl, ffsll): Declare.
6556         * modules/ffsl-tests: New test file.
6557         * modules/ffsll-tests: Likewise.
6558         * tests/test-ffsl.c: Likewise.
6559         * tests/test-ffsll.c: Likewise.
6560         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6561         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6562         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6563
6564         ffs: fix m4 prerequisite
6565         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6566
6567         ffs: avoid undefined behavior
6568         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6569         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6570         Reported by Bruno Haible.
6571
6572 2011-07-12  Bruno Haible  <bruno@clisp.org>
6573
6574         pthread_sigmask: Rely on module 'threadlib'.
6575         * modules/pthread_sigmask (Depends-on): Add threadlib.
6576         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6577         is defined.
6578
6579 2011-07-12  Bruno Haible  <bruno@clisp.org>
6580
6581         regex: Depend on module 'strcase'.
6582         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6583
6584 2011-07-12  Jim Meyering  <meyering@redhat.com>
6585
6586         warn-on-use: fix typo in file name
6587         * modules/snippet/warn-on-use (Files): Correct file name:
6588         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6589
6590 2011-07-12  Bruno Haible  <bruno@clisp.org>
6591
6592         strings: Document module.
6593         * doc/posix-headers/strings.texi: Mention module 'strings'.
6594
6595 2011-07-12  Bruno Haible  <bruno@clisp.org>
6596
6597         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6598         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6599         (Files, Makefile.am): Update.
6600         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6601         * modules/stdlib (Depends-on): Update.
6602
6603 2011-07-12  Bruno Haible  <bruno@clisp.org>
6604
6605         * NEWS: Mention the changes.
6606
6607         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6608         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6609         (Files, Makefile.am): Update.
6610         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6611         * modules/arpa_inet (Depends-on): Update.
6612         * modules/ctype (Depends-on): Update.
6613         * modules/dirent (Depends-on): Update.
6614         * modules/fcntl-h (Depends-on): Update.
6615         * modules/glob (Depends-on): Update.
6616         * modules/iconv-h (Depends-on): Update.
6617         * modules/inttypes-incomplete (Depends-on): Update.
6618         * modules/langinfo (Depends-on): Update.
6619         * modules/locale (Depends-on): Update.
6620         * modules/math (Depends-on): Update.
6621         * modules/netdb (Depends-on): Update.
6622         * modules/poll-h (Depends-on): Update.
6623         * modules/pty (Depends-on): Update.
6624         * modules/search (Depends-on): Update.
6625         * modules/signal (Depends-on): Update.
6626         * modules/spawn (Depends-on): Update.
6627         * modules/stdio (Depends-on): Update.
6628         * modules/stdlib (Depends-on): Update.
6629         * modules/string (Depends-on): Update.
6630         * modules/strings (Depends-on): Update.
6631         * modules/sys_file (Depends-on): Update.
6632         * modules/sys_ioctl (Depends-on): Update.
6633         * modules/sys_select (Depends-on): Update.
6634         * modules/sys_socket (Depends-on): Update.
6635         * modules/sys_stat (Depends-on): Update.
6636         * modules/sys_time (Depends-on): Update.
6637         * modules/sys_times (Depends-on): Update.
6638         * modules/sys_utsname (Depends-on): Update.
6639         * modules/sys_wait (Depends-on): Update.
6640         * modules/termios (Depends-on): Update.
6641         * modules/time (Depends-on): Update.
6642         * modules/unistd (Depends-on): Update.
6643         * modules/wchar (Depends-on): Update.
6644         * modules/wctype-h (Depends-on): Update.
6645         * MODULES.html.sh (Support for building libraries and executables):
6646         Update.
6647
6648         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6649         * modules/snippet/unused-parameter: Renamed from
6650         modules/unused-parameter.
6651         (Files, Makefile.am): Update.
6652         * build-aux/snippet/unused-parameter.h: Renamed from
6653         build-aux/unused-parameter.h.
6654         * modules/selinux-h (Depends-on): Update.
6655         * modules/unistr/base (Depends-on): Update.
6656         * MODULES.html.sh (Core language properties): Update.
6657
6658         Rename module 'link-warning' to 'snippet/link-warning'.
6659         * modules/snippet/link-warning: Renamed from modules/link-warning.
6660         (Files, Makefile.am): Update.
6661         * build-aux/snippet/link-warning.h: Renamed from
6662         build-aux/link-warning.h.
6663         * MODULES.html.sh (Support for building libraries and executables):
6664         Update.
6665
6666         Rename module 'c++defs' to 'snippet/c++defs'.
6667         * modules/snippet/c++defs: Renamed from modules/c++defs.
6668         (Files, Makefile.am): Update.
6669         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6670         * modules/arpa_inet (Depends-on): Update.
6671         * modules/ctype (Depends-on): Update.
6672         * modules/dirent (Depends-on): Update.
6673         * modules/fcntl-h (Depends-on): Update.
6674         * modules/glob (Depends-on): Update.
6675         * modules/iconv-h (Depends-on): Update.
6676         * modules/langinfo (Depends-on): Update.
6677         * modules/locale (Depends-on): Update.
6678         * modules/math (Depends-on): Update.
6679         * modules/netdb (Depends-on): Update.
6680         * modules/poll-h (Depends-on): Update.
6681         * modules/pty (Depends-on): Update.
6682         * modules/search (Depends-on): Update.
6683         * modules/signal (Depends-on): Update.
6684         * modules/spawn (Depends-on): Update.
6685         * modules/stdio (Depends-on): Update.
6686         * modules/stdlib (Depends-on): Update.
6687         * modules/string (Depends-on): Update.
6688         * modules/strings (Depends-on): Update.
6689         * modules/sys_ioctl (Depends-on): Update.
6690         * modules/sys_select (Depends-on): Update.
6691         * modules/sys_socket (Depends-on): Update.
6692         * modules/sys_stat (Depends-on): Update.
6693         * modules/sys_time (Depends-on): Update.
6694         * modules/sys_wait (Depends-on): Update.
6695         * modules/termios (Depends-on): Update.
6696         * modules/time (Depends-on): Update.
6697         * modules/unistd (Depends-on): Update.
6698         * modules/wchar (Depends-on): Update.
6699         * modules/wctype-h (Depends-on): Update.
6700
6701         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6702         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6703         (Files, Makefile.am): Update.
6704         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6705         * modules/argv-iter (Depends-on): Update.
6706         * modules/arpa_inet (Depends-on): Update.
6707         * modules/dirent (Depends-on): Update.
6708         * modules/fcntl-h (Depends-on): Update.
6709         * modules/fnmatch (Depends-on): Update.
6710         * modules/getopt-posix (Depends-on): Update.
6711         * modules/glob (Depends-on): Update.
6712         * modules/iconv-h (Depends-on): Update.
6713         * modules/inttypes-incomplete (Depends-on): Update.
6714         * modules/locale (Depends-on): Update.
6715         * modules/math (Depends-on): Update.
6716         * modules/netdb (Depends-on): Update.
6717         * modules/search (Depends-on): Update.
6718         * modules/signal (Depends-on): Update.
6719         * modules/spawn (Depends-on): Update.
6720         * modules/stdio (Depends-on): Update.
6721         * modules/stdlib (Depends-on): Update.
6722         * modules/string (Depends-on): Update.
6723         * modules/strings (Depends-on): Update.
6724         * modules/sys_socket (Depends-on): Update.
6725         * modules/sys_stat (Depends-on): Update.
6726         * modules/sys_time (Depends-on): Update.
6727         * modules/sys_times (Depends-on): Update.
6728         * modules/sys_utsname (Depends-on): Update.
6729         * modules/time (Depends-on): Update.
6730         * modules/unistd (Depends-on): Update.
6731         * modules/wchar (Depends-on): Update.
6732         * MODULES.html.sh (Support for building libraries and executables):
6733         Update.
6734
6735 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6736
6737         Improvements on _Noreturn and related modules.
6738
6739         modules/_Exit-tests: test _Noreturn too
6740         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6741         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6742         (main): Use them.
6743
6744         stdnoreturn, stdnoreturn-tests: remove modules
6745         They're not needed here and a bit premature for use elsewhere.  See
6746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6747         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6748         * tests/test-stdnoreturn.c: Remove files.
6749         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6750         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6751         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6752         and using noreturn.
6753         * modules/openat, modules/sigpipe-die, modules/xalloc:
6754         * modules/xmemdup0, modules/xstrtol:
6755         Remove dependency on stdnoreturn.
6756
6757         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6758         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6759         Reparenthesize to avoid GCC warning.
6760         Support Microsoft's syntax.
6761         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6762
6763         _Noreturn-tests: remove module
6764         * modules/_Noreturn-tests: Remove.
6765         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6766         * tests/test-_Noreturn.c: Remove.
6767         * tests/test-stdnoreturn.c: Merge from the old
6768         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6769
6770 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6771
6772         _Noreturn, stdnoreturn, and related modules.
6773
6774         * top/maint.mk: Adjust to new noreturn support.
6775         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6776         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6777
6778         xalloc: use stdnoreturn.h
6779         * lib/xalloc.h: Include <stdnoreturn.h>.
6780         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6781         * modules/xalloc (Depends-on): Add stdnoreturn.
6782
6783         xstrtol: use stdnoreturn.h
6784         * lib/xstrtol.h: Include <stdnoreturn.h>.
6785         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6786         * modules/xstrtol (Depends-on): Add stdnoreturn.
6787
6788         xmemdup0: use stdnoreturn.h
6789         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6790         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6791         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6792
6793         sigpipe-die: use stdnoreturn.h
6794         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6795         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6796         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6797
6798         openat: use stdnoreturn.h
6799         * lib/openat.h: Include <stdnoreturn.h>.
6800         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6801         * modules/openat (Depends-on): Add stdnoreturn.
6802
6803         * lib/openat-die.c (openat_save_fail): Modernize comment.
6804
6805         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6806
6807         * lib/glthread/thread.h: Modernize comment.
6808
6809         obstack: use _Noreturn
6810         * lib/obstack.c (__attribute__): Remove macro.
6811         (print_and_abort): Use _Noreturn.
6812
6813         c-stack: use _Noreturn
6814         * lib/c-stack.c (die, overflow_handler, segv_handler):
6815         Use _Noreturn rather than __attribute__((noreturn)).
6816
6817         argmatch-tests, exclude_tests: use _Noreturn
6818         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6819         Remove.
6820         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6821
6822         stdlib: use _Noreturn
6823         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6824         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6825         * modules/stdlib (Depends-on): Add _Noreturn.
6826         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6827
6828         stdnoreturn-tests: new module
6829         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6830
6831         stdnoreturn: new module
6832         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6833         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6834
6835         _Noreturn-tests: new module
6836         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6837
6838         _Noreturn: new module
6839         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6840         New section, mentioning it.
6841         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6842
6843         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6844
6845 2011-07-11  Eric Blake  <eblake@redhat.com>
6846
6847         ffs: new module
6848         * modules/ffs: New file.
6849         * m4/ffs.m4: Likewise.
6850         * lib/ffs.c: Likewise.
6851         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6852         * modules/strings (Makefile.am): Substitute witness.
6853         (Depends-on): Add c++defs.
6854         * lib/strings.in.h (ffs): Declare.
6855         * modules/ffs-tests: New test file.
6856         * tests/test-ffs.c: Test new module.
6857         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6858         * doc/posix-functions/ffs.texi (ffs): Likewise.
6859
6860         regex: avoid compiler warning
6861         * lib/regex.c (includes): Include <strings.h>, for use of
6862         strcasecmp in regcomp.c.
6863         Reported by Joachim Schmitz.
6864
6865 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6866
6867         stdint: respect system's intmax_t if INTMAX_MAX
6868         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6869         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6870         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6871         long but int64_t is long long, and where we will clash with the
6872         system intmax_t if we override it.  See
6873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6874         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6875         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6876         similarly for UINTMAX_C.
6877
6878 2011-07-08  Bruno Haible  <bruno@clisp.org>
6879
6880         pthread_sigmask tests: Avoid a compiler warning.
6881         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6882         non-zero.
6883
6884         sigprocmask tests: A better way to avoid a compiler warning.
6885         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6886         (main): Complain if system() returns non-zero.
6887         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6888
6889 2011-07-08  Bruno Haible  <bruno@clisp.org>
6890
6891         pthread_sigmask: Work around IRIX bug.
6892         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6893         bug.
6894         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6895         there may be unblocked pending signals.
6896         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6897
6898 2011-07-08  Bruno Haible  <bruno@clisp.org>
6899
6900         pthread_sigmask: Work around Cygwin bug.
6901         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6902         bug.
6903         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6904         the system's pthread_sigmask function.
6905         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6906
6907 2011-07-08  Bruno Haible  <bruno@clisp.org>
6908
6909         pthread_sigmask: Work around bug in single-threaded implementation.
6910         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6911         FreeBSD, HP-UX, Solaris bug.
6912         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6913         * lib/pthread_sigmask.c: Include <stddef.h>.
6914         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6915         the system's pthread_sigmask function.
6916         * modules/pthread_sigmask (configure.ac): Invoke
6917         gl_PREREQ_PTHREAD_SIGMASK.
6918         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6919         HP-UX, Solaris.
6920
6921 2011-07-08  Eric Blake  <eblake@redhat.com>
6922
6923         test-sigprocmask: avoid compiler warning
6924         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6925         * tests/test-sigprocmask.c (main): Use it to silence warning.
6926         Reported by Jim Meyering.
6927
6928         test-snprintf: avoid compiler warning
6929         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6930         * tests/test-vsnprintf.c (main): Likewise.
6931         Reported by Jim Meyering.
6932
6933 2011-07-08  Bruno Haible  <bruno@clisp.org>
6934
6935         Tests for module 'pthread_sigmask'.
6936         * modules/pthread_sigmask-tests: New file.
6937         * tests/test-pthread_sigmask1.c: New file, based on
6938         tests/test-sigprocmask.c.
6939         * tests/test-pthread_sigmask2.c: New file.
6940
6941 2011-07-08  Jim Meyering  <meyering@redhat.com>
6942
6943         test-getopt.h: avoid warning about an unused variable
6944         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6945
6946 2011-07-07  Jim Meyering  <meyering@redhat.com>
6947
6948         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6949         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6950         now that it no longer contains leading TABs.
6951         Remove unused "url=FIXME" statement.
6952
6953 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6954
6955         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6956         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6957         When gl_THREADLIB is not in use, assume that the POSIX sematics
6958         are desired.  This is better for Emacs, which uses POSIX semantics
6959         on GNUish and/or POSIXish platforms, and does not use threads at
6960         all otherwise.
6961
6962         pthread_sigmask: fix typo when testing for libraries
6963         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6964         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6965
6966 2011-07-08  Eric Blake  <eblake@redhat.com>
6967
6968         fts: introduce FTS_NOATIME
6969         * lib/fts_.h (FTS_NOATIME): New bit flag.
6970         (FTS_OPTIONMASK): Adjust.
6971         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6972         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6973
6974 2011-07-08  Bruno Haible  <bruno@clisp.org>
6975
6976         Tests for module 'thread'.
6977         * modules/thread-tests: New file.
6978         * tests/test-thread_self.c: New file.
6979         * tests/test-thread_create.cc: New file.
6980
6981 2011-07-08  Bruno Haible  <bruno@clisp.org>
6982
6983         thread: Avoid gcc warnings when using gl_thread_self().
6984         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6985         'void *'.
6986         (gl_thread_self_pointer): Update.
6987
6988 2011-07-07  Bruno Haible  <bruno@clisp.org>
6989
6990         signal-c++-tests: Check declaration of pthread_sigmask.
6991         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6992         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6993         $(LIB_PTHREAD_SIGMASK).
6994
6995 2011-07-07  Bruno Haible  <bruno@clisp.org>
6996
6997         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6998         * lib/signal.in.h (pthread_sigmask): Override if
6999         REPLACE_PTHREAD_SIGMASK is 1.
7000         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7001         REPLACE_PTHREAD_SIGMASK.
7002         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7003         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7004         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7005         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7006         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7007
7008 2011-07-07  Bruno Haible  <bruno@clisp.org>
7009
7010         pthread_sigmask: Ensure declaration in <signal.h>.
7011         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7012         include <pthread.h>.
7013         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7014         problem.
7015
7016 2011-07-07  Bruno Haible  <bruno@clisp.org>
7017
7018         pthread_sigmask: Document the module.
7019         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7020
7021 2011-07-07  Bruno Haible  <bruno@clisp.org>
7022
7023         pthread_sigmask: Follow gnulib conventions.
7024         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7025         gl_PTHREAD_SIGMASK.
7026         * modules/pthread_sigmask (configure.ac): Update.
7027
7028 2011-07-07  Bruno Haible  <bruno@clisp.org>
7029
7030         pthread_sigmask: Make declaration C++ safe.
7031         * lib/signal.in.h: In two special conditions, just do an #include_next.
7032         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7033         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7034         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7035         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7036         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7037         not REPLACE_PTHREAD_MASK.
7038         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7039         not REPLACE_PTHREAD_MASK.
7040         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7041
7042 2011-07-07  Bruno Haible  <bruno@clisp.org>
7043
7044         pthread_sigmask: Fix return value.
7045         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7046         * lib/pthread_sigmask.c: New file.
7047         * modules/pthread_sigmask (Files): Add it.
7048         (configure.ac): Invoke AC_LIBOBJ.
7049
7050 2011-07-07  Eric Blake  <eblake@redhat.com>
7051
7052         getopt: more portable argv creation
7053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7054         const, use char arrays rather than strings.
7055         Suggested by Paul Eggert.
7056
7057 2011-07-07  Bruno Haible  <bruno@clisp.org>
7058
7059         Tests for module 'sigprocmask'.
7060         * modules/sigprocmask-tests: New file.
7061         * tests/test-sigprocmask.c: New file.
7062
7063 2011-07-07  Bruno Haible  <bruno@clisp.org>
7064
7065         float tests: Tweak.
7066         * tests/test-float.c (main): Tweak skip message.
7067
7068 2011-07-07  Eric Blake  <eblake@redhat.com>
7069
7070         getopt: avoid compiler warning during configure
7071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7072         assigning string literals to non-const pointer.
7073
7074         getopt-gnu: avoid crash in glibc getopt
7075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7076         * tests/test-getopt.h (test_getopt): Enhance test.
7077         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7078         * doc/posix-functions/getopt.texi (getopt): Document it.
7079         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7080         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7081         Likewise.
7082
7083 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7084
7085         getopt: handle W; without long options in getopt [BZ #12922]
7086         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7087         but no long options are defined, just return 'W'.
7088
7089 2011-07-07  Bruno Haible  <bruno@clisp.org>
7090
7091         Avoid literal tabs.
7092         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7093         variable containing a tab instead of a literal tab.
7094         Reported by Jim Meyering.
7095
7096 2011-07-07  Bruno Haible  <bruno@clisp.org>
7097
7098         Comments.
7099         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7100
7101 2011-07-06  Bruno Haible  <bruno@clisp.org>
7102
7103         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7104         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7105         <winsock2.h>.
7106         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7107         lib/sys_socket.in.h.
7108         (close, gethostname): Hide declarations from <winsock2.h>.
7109         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7110         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7111         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7112         (select): Don't override if gnulib's <sys/select.h> was already
7113         included.
7114         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7115         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7116         setsockopt, shutdown, select): Tweak indentation.
7117
7118 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7119
7120         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7121         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7122         in an application that does not use the sys_select module.
7123
7124 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7125
7126         poll: do not return 0 on timeout=-1
7127         * lib/poll.c: Loop with yield if no events occured
7128
7129 2011-07-06  Eric Blake  <eblake@redhat.com>
7130
7131         pthread_sigmask: always replace when not using pthread
7132         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7133         replacement when using some threading other than pthread.  Fix
7134         logic bug.
7135
7136 2011-07-06  Bruno Haible  <bruno@clisp.org>
7137
7138         Comments.
7139         * m4/printf.m4: Update comments about mingw.
7140
7141 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7142
7143         sys_select: define sigset_t more portably
7144         * lib/sys_select.in.h: Always include <sys/types.h>, since
7145         we now need sigset_t and mingw defines it there.
7146         Include <signal.h> before split inclusion guard, to avoid
7147         mishaps on Solaris, whose <signal.h> eventually includes us.
7148         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7149         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7150         which come from ...
7151         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7152         gl_CHECK_TYPE_SIGSET_T.
7153         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7154         does the real work.
7155         * modules/sys_select (Depends-on): Add 'signal'.
7156
7157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7158         Suggested by Bruno Haible.
7159
7160         pselect: Use pthread_sigmask, not sigprocmask.
7161         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7162         multithreaded apps better than sigprocmask does.
7163         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7164         sigprocmask directly.
7165
7166 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7167
7168         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7169         Don't #undef,  since we don't need any underlying pselect.
7170         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7171         (Depends-on): Add select.
7172         (Link): Add $(LIBSOCKET).
7173         These changes suggested by Bruno Haible.
7174
7175         pselect: document better
7176         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7177         * doc/posix-functions/pselect.texi (pselect): Document new module.
7178
7179         pthread_sigmask: new module
7180         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7181         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7182         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7183         This is done only as a macro; I don't know how well that'll
7184         work for C++.  Move <sys/types.h> include before the include_next,
7185         to avoid mishap on Solaris.
7186         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7187         * modules/signal (Makefile.am): Substitute the check's results.
7188         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7189
7190         test-pselect: new module
7191         * modules/pselect-tests, tests/test-pselect.c: New files.
7192         * tests/test-select.c, tests/test-sys_select-c++.cc:
7193         If TEST_PSELECT is defined, test pselect instead of testing select.
7194
7195         * tests/test-sys_select.c (sigset_t): Test for it, too.
7196         Suggested by Bruno Haible.
7197
7198 2011-07-05  Eric Blake  <eblake@redhat.com>
7199
7200         snprintf: guarantee %1$d, for libintl
7201         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7202         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7203         * doc/posix-functions/snprintf.texi (snprintf): Update.
7204         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7205         * tests/test-snprintf.c (main): Enhance test.
7206         * tests/test-vsnprintf.c (main): Likewise.
7207
7208 2011-07-05  Jim Meyering  <meyering@redhat.com>
7209
7210         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7211         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7212         per Bruno's request, to accommodate this idiom (no space after "#")
7213         even when the function is inside an #if block:
7214         char *
7215         gets (char *s)
7216         #undef gets
7217         {
7218           ...
7219         }
7220
7221 2011-07-04  Jim Meyering  <meyering@redhat.com>
7222
7223         maint: indent with spaces, not TABs, and add a rule to check this
7224         * tests/test-userspec.c: Indent with spaces, not TABs.
7225         * tests/test-argp.c: Likewise.
7226         * tests/test-c-stack2.sh: Likewise.
7227         * tests/test-parse-duration.sh: Likewise
7228         * m4/strtod.m4: Likewise.
7229         * m4/alloca.m4: Likewise.
7230         * m4/pselect.m4: Likewise.
7231         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7232
7233 2011-07-03  Jim Meyering  <meyering@redhat.com>
7234
7235         maint.mk: correct omissions in prohibit_argmatch_without_use check
7236         This rule would mistakenly report that argmatch.h is included without
7237         use even when both the argmatch and invalid_arg macro were used.
7238         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7239         of argmatch and invalid_arg.
7240
7241 2011-07-03  Bruno Haible  <bruno@clisp.org>
7242
7243         Comments about EINTR.
7244         * lib/safe-read.h: Explain the purpose of this module.
7245         * lib/safe-write.h: Likewise.
7246         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7247         module.
7248         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7249         module.
7250         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7251
7252 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7253
7254         xnanosleep: Rewrite to use new dtotimespec module.
7255         It has the conversion code that used to be in xnanosleep.
7256         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7257         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7258         (TIME_T_MAX): Remove.
7259         (xnanosleep): Rewrite in terms of dtotimespec.
7260         * modules/xnanosleep (Depends-on): Add dtotimespec.
7261         Remove intprops, stdbool.
7262
7263         timespec-add, timespec-sub: new modules
7264         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7265         * lib/timespec-add.c, lib/timespec-sub.c:
7266         * modules/timespec-add, modules/timespec-sub: New files.
7267
7268         dtotimespec: new module
7269         * lib/timespec.h (dtotimespec): New decl.
7270         * lib/dtotimespec.c, modules/dtotimespec: New files.
7271
7272         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7273
7274         pselect: new module
7275         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7276         (pselect): New decls.
7277         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7278         since the standard pselect decl uses 'restrict'.
7279         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7280         HAVE_PSELECT, REPLACE_PSELECT.
7281         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7282         HAVE_PSELECT, REPLACE_PSELECT.
7283         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7284
7285         sys_select: don't depend on sys_socket
7286         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7288         This fix works on GNU and GNU-like platforms, but has not been tested
7289         on native Windows.
7290         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7292         gl_HEADER_SYS_SOCKET.
7293         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7294         gl_PREREQ_SYS_H_WINSOCK2.
7295
7296 2011-06-29  Eric Blake  <eblake@redhat.com>
7297
7298         pipe2: fix C89 compile problem
7299         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7300         Reported by Bruno Haible.
7301
7302         pipe, pipe2: don't corrupt fd on error
7303         * lib/pipe.c (pipe): Leave fd unchanged on error.
7304         * lib/pipe2.c (pipe2): Likewise.
7305         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7306         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7307
7308 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7309
7310         mmap-anon: do not use regular expressions inadvertently
7311         * m4/mmap-anon.m4: Remove trailing period from strings sought
7312         in the output.
7313
7314 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7315
7316         nanosleep: fix integer overflow problem
7317         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7318         arithmetic wraps around on overflow.
7319
7320         nanosleep: simplify carrying
7321         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7322         first call to the underyling nanosleep, not for the last one.
7323         This doesn't fix any bugs, but it simplifies the computation of
7324         the remaining delay.  Found while auditing integer overflow issues.
7325
7326         dup2: remove test for existence of fcntl
7327         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7328         "#if HAVE_FCNTL", in the configure-time test program.
7329         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7330         and therefore speeds up "configure" a bit.  Found while
7331         adding the dup2 module to Emacs.
7332
7333 2011-06-24  Eric Blake  <eblake@redhat.com>
7334
7335         maint.mk: enhance useless header checks
7336         * top/maint.mk (_sc_header_without_use): Check both include
7337         styles.
7338         (sc_prohibit_assert_without_use)
7339         (sc_prohibit_close_stream_without_use)
7340         (sc_prohibit_getopt_without_use)
7341         (sc_prohibit_quotearg_without_use)
7342         (sc_prohibit_quote_without_use)
7343         (sc_prohibit_long_options_without_use)
7344         (sc_prohibit_inttostr_without_use)
7345         (sc_prohibit_ignore_value_without_use)
7346         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7347         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7348         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7349         (sc_prohibit_hash_pjw_without_use)
7350         (sc_prohibit_safe_read_without_use)
7351         (sc_prohibit_argmatch_without_use)
7352         (sc_prohibit_canonicalize_without_use)
7353         (sc_prohibit_root_dev_ino_without_use)
7354         (sc_prohibit_openat_without_use)
7355         (sc_prohibit_c_ctype_without_use)
7356         (sc_prohibit_signal_without_use)
7357         (sc_prohibit_stdio--_without_use)
7358         (sc_prohibit_stdio-safer_without_use)
7359         (sc_prohibit_strings_without_use)
7360         (sc_prohibit_intprops_without_use)
7361         (sc_prohibit_stddef_without_use)
7362         (sc_prohibit_xfreopen_without_use): Update clients.
7363
7364 2011-06-24  Jim Meyering  <meyering@redhat.com>
7365
7366         syntax-check: keep one maint.mk rule in sync with its header
7367         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7368         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7369         I prefer to avoid temporary files here, so use <(...), but that
7370         is not supported by /bin/sh, so...
7371         (SHELL): Define to /bin/bash.
7372
7373 2011-06-24  Eric Blake  <eblake@redhat.com>
7374
7375         maint.mk: update sc_prohibit_intprops_without_use
7376         * top/maint.mk (_intprops_names): Match recent changes.
7377
7378 2011-06-24  Bruno Haible  <bruno@clisp.org>
7379
7380         strerror-override: No-op tweak.
7381         * lib/strerror-override.h (strerror_override): Reorder conditions,
7382         for consistency with lib/strerror-override.c.
7383
7384 2011-06-23  Eric Blake  <eblake@redhat.com>
7385
7386         maint.mk: test further PATH_MAX issues
7387         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7388         (sc_prohibit_path_max_allocation): ...and also test alloca.
7389         Suggested by Jim Meyering.
7390
7391 2011-06-22  Eric Blake  <eblake@redhat.com>
7392
7393         maint.mk: add syntax-check to avoid char[PATH_MAX]
7394         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7395
7396         stat: be robust to PATH_MAX definition
7397         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7398         * modules/stat (Depends-on): Add verify.
7399
7400         link: work around IRIX bug
7401         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7402         * lib/link.c (rpl_link): Work around it.
7403         * tests/test-link.h (test_link): Enhance test.
7404         * doc/posix-functions/link.texi (link): Document the bug.
7405
7406         getopt: silence clang warning
7407         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7408         dereference.
7409         Reported by Gustavo Martin Domato.
7410
7411 2011-06-22  Jim Meyering  <meyering@redhat.com>
7412
7413         bootstrap: do not insert a blank line into each .gitignore file
7414         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7415
7416 2011-06-21  Eric Blake  <eblake@redhat.com>
7417
7418         perror: test for output mismatch
7419         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7420         perror on IRIX.
7421
7422         strerror_r: fix OpenBSD behavior on out-of-range
7423         * lib/strerror_r.c (strerror_r): Always use maximal string.
7424         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7425
7426         strerror_r: fix OpenBSD behavior on 0
7427         * lib/strerror-override.c (strerror_override): Also override 0
7428         when needed.
7429         * lib/strerror-override.h (strerror_override): Likewise.
7430         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7431         earlier.
7432         * lib/strerror_r.c (strerror_r): Likewise.
7433         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7434         behavior...
7435         (gl_FUNC_STRERROR_0): ...into new macro.
7436         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7437         is overridden.
7438         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7439         * modules/strerror-override (Files): Add strerror.m4.
7440         (configure.ac): Also provide override for 0 when needed.
7441         * doc/posix-functions/strerror.texi (strerror): Document this.
7442         * doc/posix-functions/perror.texi (perror): Likewise.
7443
7444         perror: adjust array size
7445         * modules/perror (Depends-on): Add strerror-override.
7446         * lib/perror.c (perror): Use it to avoid magic number.
7447
7448         strerror-override: reduce size
7449         * lib/strerror-override.c (strerror_override): Use fewer lines.
7450
7451 2011-06-20  Bruno Haible  <bruno@clisp.org>
7452
7453         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7454         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7455
7456 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7457
7458         alloca: port to compilers that can optimize like GCC 4.6.0
7459         * lib/alloca.c (find_stack_direction): New signature, taken from
7460         Autoconf git.  This works with GCC 4.6.0.  This code should never
7461         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7462         be used with other compilers that optimize as well as GCC 4.6.0 does.
7463         (alloca): Adjust to new signature.
7464         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7465         New macro, which patches Autoconf in a similar way.
7466
7467         c-stack: stop worrying about stack direction
7468         * lib/c-stack.c (find_stack_direction): Remove.
7469         (segv_handler): Don't worry about stack direction growth, as it's
7470         too much of a pain to configure this correctly, given how compilers
7471         are optimizing-away our stack-growth detection code.  Instead, assume
7472         that any access to just before or just after the stack is OK.
7473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7474         Don't require AC_FUNC_ALLOCA; no longer needed.
7475
7476 2011-06-20  Eric Blake  <eblake@redhat.com>
7477
7478         test-stat: don't allocate PATH_MAX bytes
7479         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7480         PATH_MAX-sized buffer.
7481         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7482         * modules/stat-tests (Depends-on): Likewise.
7483         * tests/test-fstatat.c (includes): Drop pathmax.h.
7484         * tests/test-stat.c (includes): Likewise.
7485         Reported by Bruno Haible.
7486
7487 2011-06-20  Bruno Haible  <bruno@clisp.org>
7488
7489         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7490         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7491         * lib/float.c: New file.
7492         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7493         REPLACE_FLOAT_LDBL.
7494         * modules/float (Files): Add lib/float.c.
7495         (configure.ac): Invoke AC_LIBOBJ.
7496         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7497
7498 2011-06-20  Bruno Haible  <bruno@clisp.org>
7499
7500         Tests for module 'float'.
7501         * modules/float-tests: New file.
7502         * tests/test-float.c: New file.
7503
7504 2011-06-19  Bruno Haible  <bruno@clisp.org>
7505
7506         isinf: Coding style.
7507         * lib/isinf.c: Use GNU coding style.
7508
7509 2011-06-19  Bruno Haible  <bruno@clisp.org>
7510
7511         linkat test: Avoid test failure on AIX 7.1.
7512         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7513         * tests/test-link.h (test_link): Likewise.
7514
7515 2011-06-19  Bruno Haible  <bruno@clisp.org>
7516
7517         pread test: Avoid test failure on OpenBSD 4.9.
7518         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7519
7520 2011-06-19  Bruno Haible  <bruno@clisp.org>
7521
7522         sprintf-posix: Fix test failure on AIX 7.1.
7523         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7524         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7525         on AIX.
7526         * doc/posix-functions/fprintf.texi: Likewise.
7527         * doc/posix-functions/printf.texi: Likewise.
7528         * doc/posix-functions/snprintf.texi: Likewise.
7529         * doc/posix-functions/sprintf.texi: Likewise.
7530         * doc/posix-functions/vdprintf.texi: Likewise.
7531         * doc/posix-functions/vfprintf.texi: Likewise.
7532         * doc/posix-functions/vprintf.texi: Likewise.
7533         * doc/posix-functions/vsnprintf.texi: Likewise.
7534         * doc/posix-functions/vsprintf.texi: Likewise.
7535
7536 2011-06-19  Bruno Haible  <bruno@clisp.org>
7537
7538         roundl-ieee: Fix test failure on AIX 7.1.
7539         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7540         * doc/posix-functions/roundl.texi: Mention problem with negative
7541         arguments.
7542
7543 2011-06-19  Bruno Haible  <bruno@clisp.org>
7544
7545         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7546         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7547         * doc/posix-functions/round.texi: Mention problem with negative
7548         arguments.
7549         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7550
7551 2011-06-19  Bruno Haible  <bruno@clisp.org>
7552
7553         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7554         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7555         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7556         * doc/posix-functions/roundf.texi: Mention problem with negative
7557         arguments.
7558         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7559
7560 2011-06-19  Bruno Haible  <bruno@clisp.org>
7561
7562         ceilf-ieee: Work around bug on MacOS X 10.5.
7563         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7564
7565         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7566         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7567         IEEE compliant, avoid compiler optimizations.
7568         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7569         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7570         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7571         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7572         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7573         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7574         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7575         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7576         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7577         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7578
7579 2011-06-19  Bruno Haible  <bruno@clisp.org>
7580
7581         ceilf-ieee: Work around bug on AIX 7.1.
7582         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7583         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7584
7585 2011-06-19  Bruno Haible  <bruno@clisp.org>
7586
7587         ceil-ieee: Work around bug on AIX 7.1.
7588         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7589         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7590
7591 2011-06-18  Bruno Haible  <bruno@clisp.org>
7592
7593         fsync test: Avoid test failure on MacOS X and AIX.
7594         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7595         EINVAL.
7596
7597 2011-06-18  Bruno Haible  <bruno@clisp.org>
7598
7599         openat, fdopendir tests: Fix link errors.
7600         * modules/openat-tests (Depends-on): Add progname.
7601         * modules/fdopendir-tests (Depends-on): Likewise.
7602         * tests/test-fchownat.c: Include progname.h.
7603         (main): Call set_program_name.
7604         * tests/test-fstatat.c: Include progname.h.
7605         (main): Call set_program_name.
7606         * tests/test-mkdirat.c: Include progname.h.
7607         (main): Call set_program_name.
7608         * tests/test-openat.c: Include progname.h.
7609         (main): Call set_program_name.
7610         * tests/test-unlinkat.c: Include progname.h.
7611         (main): Call set_program_name.
7612         * tests/test-fdopendir.c: Include progname.h.
7613         (main): Call set_program_name.
7614
7615 2011-06-18  Bruno Haible  <bruno@clisp.org>
7616
7617         Doc update.
7618         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7619         HP-UX.
7620         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7621
7622 2011-06-18  Bruno Haible  <bruno@clisp.org>
7623
7624         getcwd tests: Avoid compilation error on HP-UX 11.31.
7625         * modules/getcwd-tests (Depends-on): Add pathmax.
7626         * tests/test-getcwd.c: Include pathmax.h.
7627
7628 2011-06-18  Bruno Haible  <bruno@clisp.org>
7629
7630         isfinite, isinf: Fix link error on AIX 6 and 7.
7631         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7632         needed, also test the macro with a 'float' argument.
7633         * m4/isinf.m4 (gl_ISINF): Likewise.
7634
7635 2011-06-18  Bruno Haible  <bruno@clisp.org>
7636
7637         getloadavg: Don't clobber LIBS. Regression from previous commit.
7638         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7639         AC_CHECK_LIB from here...
7640         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7641         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7642         gl_func_getloadavg_done.
7643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7644
7645 2011-06-18  Bruno Haible  <bruno@clisp.org>
7646
7647         clean-temp: Improve documentation.
7648         * lib/clean-temp.h: Explain better how to use this module.
7649         Reported by John Darrington <john@darrington.wattle.id.au>.
7650
7651 2011-06-17  Bruno Haible  <bruno@clisp.org>
7652
7653         pread, pwrite: Avoid cc warning on AIX.
7654         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7655         (pwrite): Likewise.
7656
7657 2011-06-17  Bruno Haible  <bruno@clisp.org>
7658
7659         spawn-pipe tests: Fix link error.
7660         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7661         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7662
7663 2011-06-17  Bruno Haible  <bruno@clisp.org>
7664
7665         Tests: Remove unnecessary dependency.
7666         * modules/canonicalize-tests (Depends-on): Remove progname.
7667         * modules/chown-tests (Depends-on): Likewise.
7668         * modules/dirname-tests (Depends-on): Likewise.
7669         * modules/fdopendir-tests (Depends-on): Likewise.
7670         * modules/fdutimensat-tests (Depends-on): Likewise.
7671         * modules/hash-tests (Depends-on): Likewise.
7672         * modules/lchown-tests (Depends-on): Likewise.
7673         * modules/linkat-tests (Depends-on): Likewise.
7674         * modules/renameat-tests (Depends-on): Likewise.
7675         * modules/spawn-pipe-tests (Depends-on): Likewise.
7676         * modules/utimensat-tests (Depends-on): Likewise.
7677
7678 2011-06-17  Bruno Haible  <bruno@clisp.org>
7679
7680         spawn-pipe tests: Fix link error.
7681         * tests/test-spawn-pipe-child.c: Undefine fflush.
7682
7683 2011-06-17  Bruno Haible  <bruno@clisp.org>
7684
7685         Fix tests link errors.
7686         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7687         * modules/chown-tests (Makefile.am): Don't link test-chown with
7688         LIBINTL.
7689         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7690         LIBINTL.
7691         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7692         LIBINTL.
7693         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7694         LIBINTL.
7695
7696 2011-06-16  Bruno Haible  <bruno@clisp.org>
7697
7698         crypto/gc-sha1: Fix recent regression.
7699         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7700         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7701
7702         crypto/gc-md5: Fix recent regression.
7703         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7704
7705         crypto/gc-md4: Fix recent regression.
7706         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7707         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7708
7709         crypto/gc-arctwo: Fix recent regression.
7710         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7711         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7712
7713         crypto/gc-rijndael: Fix recent regression.
7714         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7715         (configure.ac): Invoke AC_LIBOBJ here.
7716         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7718
7719         crypto/gc-hmac-sha1: Fix recent regression.
7720         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7721         (configure.ac): Invoke AC_LIBOBJ here.
7722         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7724
7725         crypto/gc-hmac-md5: Fix recent regression.
7726         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7727         (configure.ac): Invoke AC_LIBOBJ here.
7728         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7730
7731         crypto/gc-des: Fix recent regression.
7732         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7733         (configure.ac): Invoke AC_LIBOBJ here.
7734         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7736
7737         crypto/gc-arcfour: Fix recent regression.
7738         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7739         (configure.ac): Invoke AC_LIBOBJ here.
7740         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7742
7743 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7744
7745         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7746         After the 2011-05-21 change, this macro requires
7747         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7748         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7749
7750 2011-06-16  Bruno Haible  <bruno@clisp.org>
7751
7752         fprintftime: Move AC_LIBOBJ invocations to module description.
7753         * m4/fprintftime.m4: Remove file.
7754         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7755         (configure.ac): Remove gl_FPRINTFTIME call.
7756         (Makefile.am): Augment lib_SOURCES.
7757         Reported by Jim Meyering.
7758
7759 2011-06-16  Bruno Haible  <bruno@clisp.org>
7760
7761         tmpfile-safer: Finish 2011-05-23 commit.
7762         * m4/stdio-safer.m4: Really remove file.
7763         Reported by Jim Meyering.
7764
7765 2011-06-16  Bruno Haible  <bruno@clisp.org>
7766
7767         syntax-check: Fix typo.
7768         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7769         printf-posix.m4.
7770         Reported by Jim Meyering.
7771
7772 2011-06-13  Jim Meyering  <meyering@redhat.com>
7773
7774         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7775         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7776
7777 2011-05-23  Bruno Haible  <bruno@clisp.org>
7778
7779         yesno: Move AC_LIBOBJ invocations to module description.
7780         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7781         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7782
7783 2011-05-23  Bruno Haible  <bruno@clisp.org>
7784
7785         xstrtol: Move AC_LIBOBJ invocations to module description.
7786         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7787         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7788
7789 2011-05-23  Bruno Haible  <bruno@clisp.org>
7790
7791         xstrtold: Move AC_LIBOBJ invocations to module description.
7792         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7793         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7794
7795 2011-05-23  Bruno Haible  <bruno@clisp.org>
7796
7797         xstrtod: Move AC_LIBOBJ invocations to module description.
7798         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7799         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7800
7801 2011-05-23  Bruno Haible  <bruno@clisp.org>
7802
7803         xnanosleep: Move AC_LIBOBJ invocations to module description.
7804         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7805         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7806
7807 2011-05-23  Bruno Haible  <bruno@clisp.org>
7808
7809         xgetcwd: Move AC_LIBOBJ invocations to module description.
7810         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7811         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7812
7813 2011-05-23  Bruno Haible  <bruno@clisp.org>
7814
7815         xalloc: Move AC_LIBOBJ invocations to module description.
7816         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7817         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7818
7819 2011-05-23  Bruno Haible  <bruno@clisp.org>
7820
7821         write-any-file: Move AC_LIBOBJ invocations to module description.
7822         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7823         invocation.
7824         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7825
7826 2011-05-23  Bruno Haible  <bruno@clisp.org>
7827
7828         utimens: Move AC_LIBOBJ invocations to module description.
7829         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7830         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7831
7832 2011-05-23  Bruno Haible  <bruno@clisp.org>
7833
7834         utimecmp: Move AC_LIBOBJ invocations to module description.
7835         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7836         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7837
7838 2011-05-23  Bruno Haible  <bruno@clisp.org>
7839
7840         userspec: Move AC_LIBOBJ invocations to module description.
7841         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7842         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7843
7844 2011-05-23  Bruno Haible  <bruno@clisp.org>
7845
7846         unlinkdir: Move AC_LIBOBJ invocations to module description.
7847         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7848         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7849
7850 2011-05-23  Bruno Haible  <bruno@clisp.org>
7851
7852         unistd-safer: Move AC_LIBOBJ invocations to module description.
7853         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7854         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7855
7856 2011-05-23  Bruno Haible  <bruno@clisp.org>
7857
7858         tempname: Move AC_LIBOBJ invocations to module description.
7859         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7860         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7861
7862 2011-05-23  Bruno Haible  <bruno@clisp.org>
7863
7864         strftime: Move AC_LIBOBJ invocations to module description.
7865         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7866         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7867
7868 2011-05-23  Bruno Haible  <bruno@clisp.org>
7869
7870         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7871         * m4/stdlib-safer.m4: Remove file.
7872         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7873         (configure.ac): Remove gl_STDLIB_SAFER call.
7874         (Makefile.am): Augment lib_SOURCES.
7875
7876 2011-05-23  Bruno Haible  <bruno@clisp.org>
7877
7878         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7879         * m4/stdio-safer.m4: Remove file.
7880         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7881         (configure.ac): Remove gl_TMPFILE_SAFER call.
7882         (Makefile.am): Augment lib_SOURCES.
7883
7884 2011-05-23  Bruno Haible  <bruno@clisp.org>
7885
7886         popen-safer: Move AC_LIBOBJ invocations to module description.
7887         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7888         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7889         (configure.ac): Remove gl_POPEN_SAFER call.
7890         (Makefile.am): Augment lib_SOURCES.
7891
7892 2011-05-23  Bruno Haible  <bruno@clisp.org>
7893
7894         freopen-safer: Move AC_LIBOBJ invocations to module description.
7895         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7896         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7897         (configure.ac): Remove gl_FREOPEN_SAFER call.
7898         (Makefile.am): Augment lib_SOURCES.
7899
7900 2011-05-23  Bruno Haible  <bruno@clisp.org>
7901
7902         fopen-safer: Move AC_LIBOBJ invocations to module description.
7903         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7904         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7905         (configure.ac): Remove gl_FOPEN_SAFER call.
7906         (Makefile.am): Augment lib_SOURCES.
7907
7908 2011-05-23  Bruno Haible  <bruno@clisp.org>
7909
7910         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7911         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7912         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7913
7914 2011-05-23  Bruno Haible  <bruno@clisp.org>
7915
7916         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7917         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7918         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7919
7920 2011-05-23  Bruno Haible  <bruno@clisp.org>
7921
7922         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7923         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7924         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7925
7926 2011-05-23  Bruno Haible  <bruno@clisp.org>
7927
7928         settime: Move AC_LIBOBJ invocations to module description.
7929         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7930         * modules/settime (Makefile.am): Augment lib_SOURCES.
7931
7932 2011-05-23  Bruno Haible  <bruno@clisp.org>
7933
7934         savedir: Move AC_LIBOBJ invocations to module description.
7935         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7936         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7937
7938 2011-05-23  Bruno Haible  <bruno@clisp.org>
7939
7940         save-cwd: Move AC_LIBOBJ invocations to module description.
7941         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7942         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7943
7944 2011-05-23  Bruno Haible  <bruno@clisp.org>
7945
7946         same: Move AC_LIBOBJ invocations to module description.
7947         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7948         * modules/same (Makefile.am): Augment lib_SOURCES.
7949
7950 2011-05-23  Bruno Haible  <bruno@clisp.org>
7951
7952         safe-write: Move AC_LIBOBJ invocations to module description.
7953         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7954         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7955         instead of gl_SAFE_WRITE.
7956         (Makefile.am): Augment lib_SOURCES.
7957
7958 2011-05-23  Bruno Haible  <bruno@clisp.org>
7959
7960         safe-read: Move AC_LIBOBJ invocations to module description.
7961         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7962         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7963         of gl_SAFE_READ.
7964         (Makefile.am): Augment lib_SOURCES.
7965
7966 2011-05-23  Bruno Haible  <bruno@clisp.org>
7967
7968         safe-alloc: Move AC_LIBOBJ invocations to module description.
7969         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7970         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7971
7972 2011-05-23  Bruno Haible  <bruno@clisp.org>
7973
7974         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7975         * m4/rijndael.m4: Remove file.
7976         * modules/crypto/rijndael (Files): Remove it.
7977         (configure.ac): Remove gl_RIJNDAEL call.
7978         (Makefile.am): Augment lib_SOURCES.
7979
7980 2011-05-23  Bruno Haible  <bruno@clisp.org>
7981
7982         readtokens: Move AC_LIBOBJ invocations to module description.
7983         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7984         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7985
7986 2011-05-23  Bruno Haible  <bruno@clisp.org>
7987
7988         read-file: Move AC_LIBOBJ invocations to module description.
7989         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7990         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7991         of gl_FUNC_READ_FILE.
7992         (Makefile.am): Augment lib_SOURCES.
7993
7994 2011-05-23  Bruno Haible  <bruno@clisp.org>
7995
7996         quotearg: Move AC_LIBOBJ invocations to module description.
7997         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7998         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7999
8000 2011-05-23  Bruno Haible  <bruno@clisp.org>
8001
8002         quote: Move AC_LIBOBJ invocations to module description.
8003         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8004         * modules/quote (Makefile.am): Augment lib_SOURCES.
8005
8006 2011-05-23  Bruno Haible  <bruno@clisp.org>
8007
8008         posixver: Move AC_LIBOBJ invocations to module description.
8009         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8010         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8011
8012 2011-05-23  Bruno Haible  <bruno@clisp.org>
8013
8014         posixtm: Move AC_LIBOBJ invocations to module description.
8015         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8016         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8017
8018 2011-05-23  Bruno Haible  <bruno@clisp.org>
8019
8020         physmem: Move AC_LIBOBJ invocations to module description.
8021         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8022         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8023
8024 2011-05-23  Bruno Haible  <bruno@clisp.org>
8025
8026         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8027         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8028         invocation.
8029         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8030
8031 2011-05-23  Bruno Haible  <bruno@clisp.org>
8032
8033         mpsort: Move AC_LIBOBJ invocations to module description.
8034         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8035         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8036
8037 2011-05-23  Bruno Haible  <bruno@clisp.org>
8038
8039         modechange: Move AC_LIBOBJ invocations to module description.
8040         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8041         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8042
8043 2011-05-23  Bruno Haible  <bruno@clisp.org>
8044
8045         mkdir-p: Move AC_LIBOBJ invocations to module description.
8046         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8047         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8048
8049 2011-05-23  Bruno Haible  <bruno@clisp.org>
8050
8051         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8052         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8053         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8054
8055 2011-05-23  Bruno Haible  <bruno@clisp.org>
8056
8057         mgetgroups: Move AC_LIBOBJ invocations to module description.
8058         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8059         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8060
8061 2011-05-23  Bruno Haible  <bruno@clisp.org>
8062
8063         memxor: Move AC_LIBOBJ invocations to module description.
8064         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8065         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8066
8067 2011-05-23  Bruno Haible  <bruno@clisp.org>
8068
8069         memcoll: Move AC_LIBOBJ invocations to module description.
8070         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8071         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8072
8073 2011-05-23  Bruno Haible  <bruno@clisp.org>
8074
8075         memcasecmp: Move AC_LIBOBJ invocations to module description.
8076         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8077         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8078
8079 2011-05-23  Bruno Haible  <bruno@clisp.org>
8080
8081         crypto/md5: Move AC_LIBOBJ invocations to module description.
8082         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8083         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8084
8085 2011-05-23  Bruno Haible  <bruno@clisp.org>
8086
8087         crypto/md4: Move AC_LIBOBJ invocations to module description.
8088         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8089         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8090
8091 2011-05-23  Bruno Haible  <bruno@clisp.org>
8092
8093         crypto/md2: Move AC_LIBOBJ invocations to module description.
8094         * m4/md2.m4: Remove file.
8095         * modules/crypto/md2 (Files): Remove it.
8096         (configure.ac): Remove gl_MD2 call.
8097         (Makefile.am): Augment lib_SOURCES.
8098
8099 2011-05-23  Bruno Haible  <bruno@clisp.org>
8100
8101         long-options: Move AC_LIBOBJ invocations to module description.
8102         * m4/long-options.m4: Remove file.
8103         * modules/long-options (Files): Remove it.
8104         (configure.ac): Remove gl_LONG_OPTIONS call.
8105         (Makefile.am): Augment lib_SOURCES.
8106
8107 2011-05-23  Bruno Haible  <bruno@clisp.org>
8108
8109         i-ring: Move AC_LIBOBJ invocations to module description.
8110         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8111         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8112
8113 2011-05-23  Bruno Haible  <bruno@clisp.org>
8114
8115         idcache: Move AC_LIBOBJ invocations to module description.
8116         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8117         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8118
8119 2011-05-23  Bruno Haible  <bruno@clisp.org>
8120
8121         human: Move AC_LIBOBJ invocations to module description.
8122         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8123         * modules/human (Makefile.am): Augment lib_SOURCES.
8124
8125 2011-05-23  Bruno Haible  <bruno@clisp.org>
8126
8127         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8128         * m4/hmac-sha1.m4: Remove file.
8129         * modules/crypto/hmac-sha1 (Files): Remove it.
8130         (configure.ac): Remove gl_HMAC_SHA1 call.
8131         (Makefile.am): Augment lib_SOURCES.
8132
8133 2011-05-23  Bruno Haible  <bruno@clisp.org>
8134
8135         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8136         * m4/hmac-md5.m4: Remove file.
8137         * modules/crypto/hmac-md5 (Files): Remove it.
8138         (configure.ac): Remove gl_HMAC_MD5 call.
8139         (Makefile.am): Augment lib_SOURCES.
8140
8141 2011-05-23  Bruno Haible  <bruno@clisp.org>
8142
8143         hash: Move AC_LIBOBJ invocations to module description.
8144         * m4/hash.m4: Remove file.
8145         * modules/hash (Files): Remove it.
8146         (configure.ac): Remove gl_HASH call.
8147         (Makefile.am): Augment lib_SOURCES.
8148
8149 2011-05-23  Bruno Haible  <bruno@clisp.org>
8150
8151         hard-locale: Move AC_LIBOBJ invocations to module description.
8152         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8153         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8154
8155 2011-05-23  Bruno Haible  <bruno@clisp.org>
8156
8157         getugroups: Move AC_LIBOBJ invocations to module description.
8158         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8159         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8160
8161 2011-05-23  Bruno Haible  <bruno@clisp.org>
8162
8163         gettime: Move AC_LIBOBJ invocations to module description.
8164         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8165         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8166
8167 2011-05-23  Bruno Haible  <bruno@clisp.org>
8168
8169         getndelim2: Move AC_LIBOBJ invocations to module description.
8170         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8171         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8172
8173 2011-05-23  Bruno Haible  <bruno@clisp.org>
8174
8175         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8176         * m4/gc-pbkdf2-sha1.m4: Remove file.
8177         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8178         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8179         (Makefile.am): Augment lib_SOURCES.
8180
8181 2011-05-23  Bruno Haible  <bruno@clisp.org>
8182
8183         fts: Move AC_LIBOBJ invocations to module description.
8184         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8185         * modules/fts (configure.ac): ... to here.
8186
8187 2011-05-23  Bruno Haible  <bruno@clisp.org>
8188
8189         file-type: Move AC_LIBOBJ invocations to module description.
8190         * m4/file-type.m4: Remove file.
8191         * modules/file-type (Files): Remove it.
8192         (configure.ac): Remove gl_FILE_TYPE call.
8193         (Makefile.am): Augment lib_SOURCES.
8194
8195 2011-05-23  Bruno Haible  <bruno@clisp.org>
8196
8197         filenamecat*: Respect rules for use of AC_LIBOBJ.
8198         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8199         Remove AC_LIBOBJ invocation.
8200         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8201         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8202
8203 2011-05-23  Bruno Haible  <bruno@clisp.org>
8204
8205         filemode: Move AC_LIBOBJ invocations to module description.
8206         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8207         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8208
8209 2011-05-23  Bruno Haible  <bruno@clisp.org>
8210
8211         openat-safer: Move AC_LIBOBJ invocations to module description.
8212         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8213         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8214
8215 2011-05-23  Bruno Haible  <bruno@clisp.org>
8216
8217         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8218         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8219         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8220
8221 2011-05-23  Bruno Haible  <bruno@clisp.org>
8222
8223         exclude: Move AC_LIBOBJ invocations to module description.
8224         * m4/exclude.m4: Remove file.
8225         * modules/exclude (Files): Remove it.
8226         (configure.ac): Remove gl_EXCLUDE call.
8227         (Makefile.am): Augment lib_SOURCES.
8228
8229 2011-05-23  Bruno Haible  <bruno@clisp.org>
8230
8231         dirname*: Respect rules for use of AC_LIBOBJ.
8232         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8233         invocations.
8234         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8235         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8236
8237 2011-05-23  Bruno Haible  <bruno@clisp.org>
8238
8239         dirent-safer: Move AC_LIBOBJ invocations to module description.
8240         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8241         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8242
8243 2011-05-23  Bruno Haible  <bruno@clisp.org>
8244
8245         crypto/des: Move AC_LIBOBJ invocations to module description.
8246         * m4/des.m4: Remove file.
8247         * modules/crypto/des (Files): Remove it.
8248         (configure.ac): Remove gl_DES call.
8249         (Makefile.am): Augment lib_SOURCES.
8250
8251 2011-05-23  Bruno Haible  <bruno@clisp.org>
8252
8253         cycle-check: Move AC_LIBOBJ invocations to module description.
8254         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8255         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8256
8257 2011-05-23  Bruno Haible  <bruno@clisp.org>
8258
8259         c-strtold: Move AC_LIBOBJ invocations to module description.
8260         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8261         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8262
8263 2011-05-23  Bruno Haible  <bruno@clisp.org>
8264
8265         c-strtod: Move AC_LIBOBJ invocations to module description.
8266         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8267         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8268
8269 2011-05-23  Bruno Haible  <bruno@clisp.org>
8270
8271         crc: Move AC_LIBOBJ invocations to module description.
8272         * m4/crc.m4: Remove file.
8273         * modules/crc (Files): Remove it.
8274         (configure.ac): Remove gl_CRC call.
8275         (Makefile.am): Augment lib_SOURCES.
8276
8277 2011-05-23  Bruno Haible  <bruno@clisp.org>
8278
8279         close-stream: Move AC_LIBOBJ invocations to module description.
8280         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8281         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8282
8283 2011-05-23  Bruno Haible  <bruno@clisp.org>
8284
8285         closeout: Move AC_LIBOBJ invocations to module description.
8286         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8287         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8288
8289 2011-05-23  Bruno Haible  <bruno@clisp.org>
8290
8291         closein: Move AC_LIBOBJ invocations to module description.
8292         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8293         * modules/closein (Makefile.am): Augment lib_SOURCES.
8294
8295 2011-05-23  Bruno Haible  <bruno@clisp.org>
8296
8297         cloexec: Move AC_LIBOBJ invocations to module description.
8298         * m4/cloexec.m4: Remove file.
8299         * modules/cloexec (Files): Remove it.
8300         (configure.ac): Remove gl_CLOEXEC call.
8301         (Makefile.am): Augment lib_SOURCES.
8302
8303 2011-05-23  Bruno Haible  <bruno@clisp.org>
8304
8305         check-version: Move AC_LIBOBJ invocations to module description.
8306         * m4/check-version.m4: Remove file.
8307         * modules/check-version (Files): Remove it.
8308         (configure.ac): Remove gl_CHECK_VERSION call.
8309         (Makefile.am): Augment lib_SOURCES.
8310
8311 2011-05-23  Bruno Haible  <bruno@clisp.org>
8312
8313         chdir-safer: Move AC_LIBOBJ invocations to module description.
8314         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8315         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8316
8317 2011-05-23  Bruno Haible  <bruno@clisp.org>
8318
8319         canonicalize: Move AC_LIBOBJ invocations to module description.
8320         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8321         AC_LIBOBJ invocation.
8322         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8323
8324 2011-05-23  Bruno Haible  <bruno@clisp.org>
8325
8326         canon-host: Move AC_LIBOBJ invocations to module description.
8327         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8328         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8329         instead of gl_CANON_HOST.
8330         (Makefile.am): Augment lib_SOURCES.
8331
8332 2011-05-23  Bruno Haible  <bruno@clisp.org>
8333
8334         backupfile: Move AC_LIBOBJ invocations to module description.
8335         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8336         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8337
8338 2011-05-23  Bruno Haible  <bruno@clisp.org>
8339
8340         argmatch: Move AC_LIBOBJ invocations to module description.
8341         * m4/argmatch.m4: Remove file.
8342         * modules/argmatch (Files): Remove it.
8343         (configure.ac): Remove gl_ARGMATCH call.
8344         (Makefile.am): Augment lib_SOURCES.
8345
8346 2011-05-23  Bruno Haible  <bruno@clisp.org>
8347
8348         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8349         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8350         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8351
8352 2011-05-23  Bruno Haible  <bruno@clisp.org>
8353
8354         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8355         * m4/arcfour.m4: Remove file.
8356         * modules/crypto/arcfour (Files): Remove it.
8357         (configure.ac): Remove gl_ARCFOUR call.
8358         (Makefile.am): Augment lib_SOURCES.
8359
8360 2011-05-22  Bruno Haible  <bruno@clisp.org>
8361
8362         write: Move AC_LIBOBJ invocations to module description.
8363         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8364         * modules/write (configure.ac): ... to here.
8365
8366 2011-05-22  Bruno Haible  <bruno@clisp.org>
8367
8368         wmemset: Move AC_LIBOBJ invocations to module description.
8369         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8370         here...
8371         * modules/wmemset (configure.ac): ... to here.
8372
8373 2011-05-22  Bruno Haible  <bruno@clisp.org>
8374
8375         wmemmove: Move AC_LIBOBJ invocations to module description.
8376         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8377         here...
8378         * modules/wmemmove (configure.ac): ... to here.
8379
8380 2011-05-22  Bruno Haible  <bruno@clisp.org>
8381
8382         wmemcpy: Move AC_LIBOBJ invocations to module description.
8383         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8384         here...
8385         * modules/wmemcpy (configure.ac): ... to here.
8386
8387 2011-05-22  Bruno Haible  <bruno@clisp.org>
8388
8389         wmemcmp: Move AC_LIBOBJ invocations to module description.
8390         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8391         here...
8392         * modules/wmemcmp (configure.ac): ... to here.
8393
8394 2011-05-22  Bruno Haible  <bruno@clisp.org>
8395
8396         wmemchr: Move AC_LIBOBJ invocations to module description.
8397         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8398         here...
8399         * modules/wmemchr (configure.ac): ... to here.
8400
8401 2011-05-22  Bruno Haible  <bruno@clisp.org>
8402
8403         wcswidth: Move AC_LIBOBJ invocations to module description.
8404         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8405         here...
8406         * modules/wcswidth (configure.ac): ... to here.
8407
8408 2011-05-22  Bruno Haible  <bruno@clisp.org>
8409
8410         wcwidth: Respect rules for use of AC_LIBOBJ.
8411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8412         invocation from here...
8413         * modules/wcwidth (configure.ac): ... to here.
8414         (Depends-on): Update conditions.
8415
8416 2011-05-22  Bruno Haible  <bruno@clisp.org>
8417
8418         wctype: Move AC_LIBOBJ invocations to module description.
8419         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8420         invocation from here...
8421         * modules/wctype (configure.ac): ... to here.
8422         (Depends-on): Update conditions.
8423
8424 2011-05-22  Bruno Haible  <bruno@clisp.org>
8425
8426         wctrans: Move AC_LIBOBJ invocations to module description.
8427         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8428         invocation from here...
8429         * modules/wctrans (configure.ac): ... to here.
8430
8431 2011-05-22  Bruno Haible  <bruno@clisp.org>
8432
8433         wctomb: Move AC_LIBOBJ invocations to module description.
8434         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8435         invocations from here...
8436         * modules/wctomb (configure.ac): ... to here.
8437
8438 2011-05-22  Bruno Haible  <bruno@clisp.org>
8439
8440         wctob: Move AC_LIBOBJ invocations to module description.
8441         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8442         gl_PREREQ_WCTOB invocations from here...
8443         * modules/wctob (configure.ac): ... to here.
8444         (Depends-on): Update conditions.
8445
8446 2011-05-22  Bruno Haible  <bruno@clisp.org>
8447
8448         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8449         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8450         here...
8451         * modules/wcsxfrm (configure.ac): ... to here.
8452
8453 2011-05-22  Bruno Haible  <bruno@clisp.org>
8454
8455         wcstok: Move AC_LIBOBJ invocations to module description.
8456         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8457         * modules/wcstok (configure.ac): ... to here.
8458
8459 2011-05-22  Bruno Haible  <bruno@clisp.org>
8460
8461         wcsstr: Move AC_LIBOBJ invocations to module description.
8462         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8463         * modules/wcsstr (configure.ac): ... to here.
8464
8465 2011-05-22  Bruno Haible  <bruno@clisp.org>
8466
8467         wcsspn: Move AC_LIBOBJ invocations to module description.
8468         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8469         * modules/wcsspn (configure.ac): ... to here.
8470
8471 2011-05-22  Bruno Haible  <bruno@clisp.org>
8472
8473         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8474         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8475         gl_PREREQ_WCSRTOMBS invocations from here...
8476         * modules/wcsrtombs (configure.ac): ... to here.
8477
8478 2011-05-22  Bruno Haible  <bruno@clisp.org>
8479
8480         wcsrchr: Move AC_LIBOBJ invocations to module description.
8481         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8482         here...
8483         * modules/wcsrchr (configure.ac): ... to here.
8484
8485 2011-05-22  Bruno Haible  <bruno@clisp.org>
8486
8487         wcspbrk: Move AC_LIBOBJ invocations to module description.
8488         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8489         here...
8490         * modules/wcspbrk (configure.ac): ... to here.
8491
8492 2011-05-22  Bruno Haible  <bruno@clisp.org>
8493
8494         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8495         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8496         gl_PREREQ_WCSNRTOMBS invocations from here...
8497         * modules/wcsnrtombs (configure.ac): ... to here.
8498
8499 2011-05-22  Bruno Haible  <bruno@clisp.org>
8500
8501         wcsnlen: Move AC_LIBOBJ invocations to module description.
8502         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8503         here...
8504         * modules/wcsnlen (configure.ac): ... to here.
8505
8506 2011-05-22  Bruno Haible  <bruno@clisp.org>
8507
8508         wcsncpy: Move AC_LIBOBJ invocations to module description.
8509         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8510         here...
8511         * modules/wcsncpy (configure.ac): ... to here.
8512
8513 2011-05-22  Bruno Haible  <bruno@clisp.org>
8514
8515         wcsncmp: Move AC_LIBOBJ invocations to module description.
8516         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8517         here...
8518         * modules/wcsncmp (configure.ac): ... to here.
8519
8520 2011-05-22  Bruno Haible  <bruno@clisp.org>
8521
8522         wcsncat: Move AC_LIBOBJ invocations to module description.
8523         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8524         here...
8525         * modules/wcsncat (configure.ac): ... to here.
8526
8527 2011-05-22  Bruno Haible  <bruno@clisp.org>
8528
8529         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8530         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8531         from here...
8532         * modules/wcsncasecmp (configure.ac): ... to here.
8533
8534 2011-05-22  Bruno Haible  <bruno@clisp.org>
8535
8536         wcslen: Move AC_LIBOBJ invocations to module description.
8537         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8538         * modules/wcslen (configure.ac): ... to here.
8539
8540 2011-05-22  Bruno Haible  <bruno@clisp.org>
8541
8542         wcsdup: Move AC_LIBOBJ invocations to module description.
8543         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8544         * modules/wcsdup (configure.ac): ... to here.
8545
8546 2011-05-22  Bruno Haible  <bruno@clisp.org>
8547
8548         wcscspn: Move AC_LIBOBJ invocations to module description.
8549         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8550         here...
8551         * modules/wcscspn (configure.ac): ... to here.
8552
8553 2011-05-22  Bruno Haible  <bruno@clisp.org>
8554
8555         wcscpy: Move AC_LIBOBJ invocations to module description.
8556         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8557         * modules/wcscpy (configure.ac): ... to here.
8558
8559 2011-05-22  Bruno Haible  <bruno@clisp.org>
8560
8561         wcscoll: Move AC_LIBOBJ invocations to module description.
8562         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8563         here...
8564         * modules/wcscoll (configure.ac): ... to here.
8565
8566 2011-05-22  Bruno Haible  <bruno@clisp.org>
8567
8568         wcscmp: Move AC_LIBOBJ invocations to module description.
8569         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8570         * modules/wcscmp (configure.ac): ... to here.
8571
8572 2011-05-22  Bruno Haible  <bruno@clisp.org>
8573
8574         wcschr: Move AC_LIBOBJ invocations to module description.
8575         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8576         * modules/wcschr (configure.ac): ... to here.
8577
8578 2011-05-22  Bruno Haible  <bruno@clisp.org>
8579
8580         wcscat: Move AC_LIBOBJ invocations to module description.
8581         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8582         * modules/wcscat (configure.ac): ... to here.
8583
8584 2011-05-22  Bruno Haible  <bruno@clisp.org>
8585
8586         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8587         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8588         here...
8589         * modules/wcscasecmp (configure.ac): ... to here.
8590
8591 2011-05-22  Bruno Haible  <bruno@clisp.org>
8592
8593         wcrtomb: Move AC_LIBOBJ invocations to module description.
8594         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8595         invocations from here...
8596         * modules/wcrtomb (configure.ac): ... to here.
8597
8598 2011-05-22  Bruno Haible  <bruno@clisp.org>
8599
8600         wcpncpy: Move AC_LIBOBJ invocations to module description.
8601         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8602         here...
8603         * modules/wcpncpy (configure.ac): ... to here.
8604
8605 2011-05-22  Bruno Haible  <bruno@clisp.org>
8606
8607         wcpcpy: Move AC_LIBOBJ invocations to module description.
8608         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8609         * modules/wcpcpy (configure.ac): ... to here.
8610
8611 2011-05-22  Bruno Haible  <bruno@clisp.org>
8612
8613         waitpid: Move AC_LIBOBJ invocations to module description.
8614         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8615         invocation from here...
8616         * modules/waitpid (configure.ac): ... to here.
8617
8618 2011-05-22  Bruno Haible  <bruno@clisp.org>
8619
8620         utimensat: Move AC_LIBOBJ invocations to module description.
8621         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8622         here...
8623         * modules/utimensat (configure.ac): ... to here.
8624
8625 2011-05-22  Bruno Haible  <bruno@clisp.org>
8626
8627         usleep: Move AC_LIBOBJ invocations to module description.
8628         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8629         here...
8630         * modules/usleep (configure.ac): ... to here.
8631
8632 2011-05-22  Bruno Haible  <bruno@clisp.org>
8633
8634         unlockpt: Move AC_LIBOBJ invocations to module description.
8635         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8636         gl_PREREQ_UNLOCKPT invocations from here...
8637         * modules/unlockpt (configure.ac): ... to here.
8638
8639 2011-05-22  Bruno Haible  <bruno@clisp.org>
8640
8641         unlink: Respect rules for use of AC_LIBOBJ.
8642         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8643         * modules/unlink (configure.ac): ... to here.
8644
8645 2011-05-22  Bruno Haible  <bruno@clisp.org>
8646
8647         uname: Move AC_LIBOBJ invocations to module description.
8648         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8650         here...
8651         * modules/uname (configure.ac): ... to here.
8652
8653 2011-05-22  Bruno Haible  <bruno@clisp.org>
8654
8655         ttyname_r: Move AC_LIBOBJ invocations to module description.
8656         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8657         gl_PREREQ_TTYNAME_R invocations from here...
8658         * modules/ttyname_r (configure.ac): ... to here.
8659
8660 2011-05-22  Bruno Haible  <bruno@clisp.org>
8661
8662         tsearch: Move AC_LIBOBJ invocations to module description.
8663         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8664         invocations from here...
8665         * modules/tsearch (configure.ac): ... to here.
8666
8667 2011-05-22  Bruno Haible  <bruno@clisp.org>
8668
8669         towctrans: Move AC_LIBOBJ invocations to module description.
8670         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8671         AC_LIBOBJ invocation from here...
8672         * modules/towctrans (configure.ac): ... to here.
8673
8674 2011-05-22  Bruno Haible  <bruno@clisp.org>
8675
8676         tmpfile: Move AC_LIBOBJ invocations to module description.
8677         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8678         invocations from here...
8679         * modules/tmpfile (configure.ac): ... to here.
8680
8681 2011-05-22  Bruno Haible  <bruno@clisp.org>
8682
8683         times: Move AC_LIBOBJ invocations to module description.
8684         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8685         * modules/times (configure.ac): ... to here.
8686
8687 2011-05-22  Bruno Haible  <bruno@clisp.org>
8688
8689         time_r: Move AC_LIBOBJ invocations to module description.
8690         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8691         invocations from here...
8692         * modules/time_r (configure.ac): ... to here.
8693
8694 2011-05-22  Bruno Haible  <bruno@clisp.org>
8695
8696         timegm: Move AC_LIBOBJ invocations to module description.
8697         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8698         invocations from here...
8699         * modules/timegm (configure.ac): ... to here.
8700
8701 2011-05-22  Bruno Haible  <bruno@clisp.org>
8702
8703         tcgetsid: Move AC_LIBOBJ invocations to module description.
8704         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8705         and gl_PREREQ_TCGETSID invocations from here...
8706         * modules/tcgetsid (configure.ac): ... to here.
8707         (Depends-on): Update conditions.
8708
8709 2011-05-22  Bruno Haible  <bruno@clisp.org>
8710
8711         symlinkat: Move AC_LIBOBJ invocations to module description.
8712         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8713         here...
8714         * modules/symlinkat (configure.ac): ... to here.
8715
8716 2011-05-22  Bruno Haible  <bruno@clisp.org>
8717
8718         symlink: Move AC_LIBOBJ invocations to module description.
8719         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8720         here...
8721         * modules/symlink (configure.ac): ... to here.
8722
8723 2011-05-22  Bruno Haible  <bruno@clisp.org>
8724
8725         strverscmp: Move AC_LIBOBJ invocations to module description.
8726         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8728         from here...
8729         * modules/strverscmp (configure.ac): ... to here.
8730
8731 2011-05-22  Bruno Haible  <bruno@clisp.org>
8732
8733         strtok_r: Move AC_LIBOBJ invocations to module description.
8734         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8735         and gl_PREREQ_STRTOK_R invocations from here...
8736         * modules/strtok_r (configure.ac): ... to here.
8737         (Depends-on): Update conditions.
8738
8739 2011-05-22  Bruno Haible  <bruno@clisp.org>
8740
8741         strtoumax: Move AC_LIBOBJ invocations to module description.
8742         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8743         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8744         from here...
8745         * modules/strtoumax (configure.ac): ... to here.
8746
8747 2011-05-22  Bruno Haible  <bruno@clisp.org>
8748
8749         strtoimax: Move AC_LIBOBJ invocations to module description.
8750         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8751         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8752         from here...
8753         * modules/strtoimax (configure.ac): ... to here.
8754
8755 2011-05-22  Bruno Haible  <bruno@clisp.org>
8756
8757         strtoull: Move AC_LIBOBJ invocations to module description.
8758         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8759         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8760         from here...
8761         * modules/strtoull (configure.ac): ... to here.
8762
8763 2011-05-22  Bruno Haible  <bruno@clisp.org>
8764
8765         strtoll: Move AC_LIBOBJ invocations to module description.
8766         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8767         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8768         here...
8769         * modules/strtoll (configure.ac): ... to here.
8770
8771 2011-05-22  Bruno Haible  <bruno@clisp.org>
8772
8773         strtoul: Move AC_LIBOBJ invocations to module description.
8774         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8775         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8776         * modules/strtoul (configure.ac): ... to here.
8777
8778 2011-05-22  Bruno Haible  <bruno@clisp.org>
8779
8780         strtol: Move AC_LIBOBJ invocations to module description.
8781         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8782         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8783         * modules/strtol (configure.ac): ... to here.
8784
8785 2011-05-22  Bruno Haible  <bruno@clisp.org>
8786
8787         strtod: Move AC_LIBOBJ invocations to module description.
8788         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8789         invocations from here...
8790         * modules/strtod (configure.ac): ... to here.
8791
8792 2011-05-22  Bruno Haible  <bruno@clisp.org>
8793
8794         strstr*: Move AC_LIBOBJ invocations to module description.
8795         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8796         invocations from here...
8797         * modules/strstr-simple (configure.ac): ... to here.
8798         * modules/strstr (configure.ac): ... and here.
8799
8800 2011-05-22  Bruno Haible  <bruno@clisp.org>
8801
8802         strsignal: Move AC_LIBOBJ invocations to module description.
8803         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8804         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8805         * modules/strsignal (configure.ac): ... to here.
8806         (Depends-on): Update conditions.
8807
8808 2011-05-22  Bruno Haible  <bruno@clisp.org>
8809
8810         strsep: Move AC_LIBOBJ invocations to module description.
8811         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8812         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8813         here...
8814         * modules/strsep (configure.ac): ... to here.
8815
8816 2011-05-22  Bruno Haible  <bruno@clisp.org>
8817
8818         strptime: Move AC_LIBOBJ invocations to module description.
8819         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8820         gl_PREREQ_STRPTIME invocations from here...
8821         * modules/strptime (configure.ac): ... to here.
8822
8823 2011-05-22  Bruno Haible  <bruno@clisp.org>
8824
8825         strpbrk: Move AC_LIBOBJ invocations to module description.
8826         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8828         here...
8829         * modules/strpbrk (configure.ac): ... to here.
8830
8831 2011-05-22  Bruno Haible  <bruno@clisp.org>
8832
8833         strnlen: Move AC_LIBOBJ invocations to module description.
8834         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8835         invocations from here...
8836         * modules/strnlen (configure.ac): ... to here.
8837
8838 2011-05-22  Bruno Haible  <bruno@clisp.org>
8839
8840         strndup: Move AC_LIBOBJ invocations to module description.
8841         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8842         invocations from here...
8843         * modules/strndup (configure.ac): ... to here.
8844         (Depends-on): Update conditions.
8845
8846 2011-05-22  Bruno Haible  <bruno@clisp.org>
8847
8848         strncat: Move AC_LIBOBJ invocations to module description.
8849         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8850         invocations from here...
8851         * modules/strncat (configure.ac): ... to here.
8852
8853 2011-05-22  Bruno Haible  <bruno@clisp.org>
8854
8855         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8856         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8857         invocations from here...
8858         * modules/strdup (configure.ac): ... to here.
8859         * modules/strdup-posix (configure.ac): ... and here.
8860
8861 2011-05-22  Bruno Haible  <bruno@clisp.org>
8862
8863         strcspn: Move AC_LIBOBJ invocations to module description.
8864         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8865         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8866         here...
8867         * modules/strcspn (configure.ac): ... to here.
8868
8869 2011-05-22  Bruno Haible  <bruno@clisp.org>
8870
8871         strchrnul: Move AC_LIBOBJ invocations to module description.
8872         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8873         gl_PREREQ_STRCHRNUL invocations from here...
8874         * modules/strchrnul (configure.ac): ... to here.
8875
8876 2011-05-22  Bruno Haible  <bruno@clisp.org>
8877
8878         strcasestr*: Move AC_LIBOBJ invocations to module description.
8879         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8880         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8881         * modules/strcasestr-simple (configure.ac): ... to here.
8882         * modules/strcasestr (configure.ac): ... and here.
8883
8884 2011-05-22  Bruno Haible  <bruno@clisp.org>
8885
8886         strcase: Move AC_LIBOBJ invocations to module description.
8887         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8888         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8889         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8890         gl_PREREQ_STRNCASECMP invocations from here...
8891         * modules/strcase (configure.ac): ... to here.
8892
8893 2011-05-22  Bruno Haible  <bruno@clisp.org>
8894
8895         stpncpy: Move AC_LIBOBJ invocations to module description.
8896         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8897         here...
8898         * modules/stpncpy (configure.ac): ... to here.
8899
8900 2011-05-22  Bruno Haible  <bruno@clisp.org>
8901
8902         stpcpy: Move AC_LIBOBJ invocations to module description.
8903         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8904         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8905         here...
8906         * modules/stpcpy (configure.ac): ... to here.
8907
8908 2011-05-21  Bruno Haible  <bruno@clisp.org>
8909
8910         stat: Move AC_LIBOBJ invocations to module description.
8911         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8912         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8913         here...
8914         * modules/stat (configure.ac): ... to here.
8915
8916 2011-05-21  Bruno Haible  <bruno@clisp.org>
8917
8918         sleep: Move AC_LIBOBJ invocations to module description.
8919         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8920         * modules/sleep (configure.ac): ... to here.
8921
8922 2011-05-21  Bruno Haible  <bruno@clisp.org>
8923
8924         signbit: Move AC_LIBOBJ invocations to module description.
8925         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8926         * modules/signbit (configure.ac): ... to here.
8927
8928 2011-05-21  Bruno Haible  <bruno@clisp.org>
8929
8930         sigprocmask: Move AC_LIBOBJ invocations to module description.
8931         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8932         gl_PREREQ_SIGPROMASK invocations from here...
8933         * modules/sigprocmask (configure.ac): ... to here.
8934
8935 2011-05-21  Bruno Haible  <bruno@clisp.org>
8936
8937         sigaction: Move AC_LIBOBJ invocations to module description.
8938         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8939         gl_PREREQ_SIGACTION invocations from here...
8940         * modules/sigaction (configure.ac): ... to here.
8941
8942 2011-05-21  Bruno Haible  <bruno@clisp.org>
8943
8944         sig2str: Move AC_LIBOBJ invocations to module description.
8945         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8946         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8947         here...
8948         * modules/sig2str (configure.ac): ... to here.
8949
8950 2011-05-21  Bruno Haible  <bruno@clisp.org>
8951
8952         setlocale: Move AC_LIBOBJ invocations to module description.
8953         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8954         gl_PREREQ_SETLOCALE invocations from here...
8955         * modules/setlocale (configure.ac): ... to here.
8956
8957 2011-05-21  Bruno Haible  <bruno@clisp.org>
8958
8959         unsetenv: Move AC_LIBOBJ invocations to module description.
8960         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8961         and gl_PREREQ_UNSETENV invocations from here...
8962         * modules/unsetenv (configure.ac): ... to here.
8963         (Depends-on): Update.
8964
8965 2011-05-21  Bruno Haible  <bruno@clisp.org>
8966
8967         setenv: Move AC_LIBOBJ invocations to module description.
8968         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8969         here...
8970         * modules/setenv (configure.ac): ... to here.
8971
8972 2011-05-21  Bruno Haible  <bruno@clisp.org>
8973
8974         selinux-h: Move AC_LIBOBJ invocations to module description.
8975         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8976         AC_LIBOBJ invocation from here...
8977         * modules/selinux-h (configure.ac): ... to here.
8978
8979 2011-05-21  Bruno Haible  <bruno@clisp.org>
8980
8981         select: Respect rules for use of AC_LIBOBJ.
8982         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8983         here...
8984         * modules/select (configure.ac): ... to here.
8985
8986 2011-05-21  Bruno Haible  <bruno@clisp.org>
8987
8988         scandir: Move AC_LIBOBJ invocations to module description.
8989         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8990         invocations from here...
8991         * modules/scandir (configure.ac): ... to here.
8992
8993 2011-05-21  Bruno Haible  <bruno@clisp.org>
8994
8995         rpmatch: Move AC_LIBOBJ invocations to module description.
8996         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8997         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8998         here...
8999         * modules/rpmatch (configure.ac): ... to here.
9000
9001 2011-05-21  Bruno Haible  <bruno@clisp.org>
9002
9003         rmdir: Respect rules for use of AC_LIBOBJ.
9004         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9005         * modules/rmdir (configure.ac): ... to here.
9006
9007 2011-05-21  Bruno Haible  <bruno@clisp.org>
9008
9009         renameat: Move AC_LIBOBJ invocations to module description.
9010         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9011         here...
9012         * modules/renameat (configure.ac): ... to here.
9013
9014 2011-05-21  Bruno Haible  <bruno@clisp.org>
9015
9016         rename: Respect rules for use of AC_LIBOBJ.
9017         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9018         here...
9019         * modules/rename (configure.ac): ... to here.
9020
9021 2011-05-21  Bruno Haible  <bruno@clisp.org>
9022
9023         remove: Move AC_LIBOBJ invocations to module description.
9024         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9025         here...
9026         * modules/remove (configure.ac): ... to here.
9027
9028 2011-05-21  Bruno Haible  <bruno@clisp.org>
9029
9030         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9031         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9032         macro.
9033         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9034         * modules/relocatable-lib (configure.ac): ... to here.
9035         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9036         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9037
9038 2011-05-21  Bruno Haible  <bruno@clisp.org>
9039
9040         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9041         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9042         here...
9043         * modules/relocatable-prog (configure.ac): ... to here.
9044
9045 2011-05-21  Bruno Haible  <bruno@clisp.org>
9046
9047         regex: Move AC_LIBOBJ invocations to module description.
9048         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9049         invocations from here...
9050         * modules/regex (configure.ac): ... to here.
9051
9052 2011-05-21  Bruno Haible  <bruno@clisp.org>
9053
9054         realloc-*: Move AC_LIBOBJ invocations to module description.
9055         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9056         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9057         AC_LIBOBJ invocations from here...
9058         * modules/realloc-gnu (configure.ac): ... to here.
9059         * modules/realloc-posix (configure.ac): ... and here.
9060
9061 2011-05-21  Bruno Haible  <bruno@clisp.org>
9062
9063         readutmp: Move AC_LIBOBJ invocations to module description.
9064         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9065         * modules/readutmp (configure.ac): ... to here.
9066
9067 2011-05-21  Bruno Haible  <bruno@clisp.org>
9068
9069         readlinkat: Move AC_LIBOBJ invocations to module description.
9070         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9071         here...
9072         * modules/readlinkat (configure.ac): ... to here.
9073
9074 2011-05-21  Bruno Haible  <bruno@clisp.org>
9075
9076         readlink: Move AC_LIBOBJ invocations to module description.
9077         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9078         gl_PREREQ_READLINK invocations from here...
9079         * modules/readlink (configure.ac): ... to here.
9080
9081 2011-05-21  Bruno Haible  <bruno@clisp.org>
9082
9083         readline: Move AC_LIBOBJ invocations to module description.
9084         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9085         gl_PREREQ_READLINE invocations from here...
9086         * modules/readline (configure.ac): ... to here.
9087
9088 2011-05-21  Bruno Haible  <bruno@clisp.org>
9089
9090         read: Move AC_LIBOBJ invocations to module description.
9091         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9092         * modules/read (configure.ac): ... to here.
9093
9094 2011-05-21  Bruno Haible  <bruno@clisp.org>
9095
9096         rawmemchr: Move AC_LIBOBJ invocations to module description.
9097         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9099         from here...
9100         * modules/rawmemchr (configure.ac): ... to here.
9101
9102 2011-05-21  Bruno Haible  <bruno@clisp.org>
9103
9104         random_r: Move AC_LIBOBJ invocations to module description.
9105         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9106         gl_PREREQ_RANDOM_R invocations from here...
9107         * modules/random_r (configure.ac): ... to here.
9108
9109 2011-05-21  Bruno Haible  <bruno@clisp.org>
9110
9111         pwrite: Move AC_LIBOBJ invocations to module description.
9112         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9113         * modules/pwrite (configure.ac): ... to here.
9114
9115 2011-05-21  Bruno Haible  <bruno@clisp.org>
9116
9117         putenv: Move AC_LIBOBJ invocations to module description.
9118         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9119         * modules/putenv (configure.ac): ... to here.
9120
9121 2011-05-21  Bruno Haible  <bruno@clisp.org>
9122
9123         login_tty: Move AC_LIBOBJ invocations to module description.
9124         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9125         * modules/login_tty (configure.ac): ... to here.
9126
9127 2011-05-21  Bruno Haible  <bruno@clisp.org>
9128
9129         openpty: Move AC_LIBOBJ invocations to module description.
9130         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9131         * modules/openpty (configure.ac): ... to here.
9132
9133 2011-05-21  Bruno Haible  <bruno@clisp.org>
9134
9135         forkpty: Move AC_LIBOBJ invocations to module description.
9136         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9137         * modules/forkpty (configure.ac): ... to here.
9138
9139 2011-05-21  Bruno Haible  <bruno@clisp.org>
9140
9141         ptsname: Move AC_LIBOBJ invocations to module description.
9142         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9143         invocations from here...
9144         * modules/ptsname (configure.ac): ... to here.
9145
9146 2011-05-21  Bruno Haible  <bruno@clisp.org>
9147
9148         pread: Move AC_LIBOBJ invocations to module description.
9149         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9150         * modules/pread (configure.ac): ... to here.
9151
9152 2011-05-21  Bruno Haible  <bruno@clisp.org>
9153
9154         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9155         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9156         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9157         * modules/posix_spawn (configure.ac): ... to here.
9158         * modules/posix_spawnp (configure.ac): ... and here.
9159
9160 2011-05-21  Bruno Haible  <bruno@clisp.org>
9161
9162         popen: Move AC_LIBOBJ invocations to module description.
9163         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9164         invocations from here...
9165         * modules/popen (configure.ac): ... to here.
9166
9167 2011-05-21  Bruno Haible  <bruno@clisp.org>
9168
9169         poll: Move AC_LIBOBJ invocations to module description.
9170         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9171         invocations from here...
9172         * modules/poll (configure.ac): ... to here.
9173
9174 2011-05-21  Bruno Haible  <bruno@clisp.org>
9175
9176         pipe-posix: Move AC_LIBOBJ invocations to module description.
9177         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9178         * modules/pipe-posix (configure.ac): ... to here.
9179
9180 2011-05-21  Bruno Haible  <bruno@clisp.org>
9181
9182         openat: Respect rules for use of AC_LIBOBJ.
9183         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9184         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9185         * modules/openat (configure.ac): ... to here.
9186
9187 2011-05-21  Bruno Haible  <bruno@clisp.org>
9188
9189         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9190         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9191         invocation from here...
9192         * modules/obstack-printf (configure.ac): ... to here.
9193         * modules/obstack-printf-posix (configure.ac): ... and here.
9194
9195 2011-05-21  Bruno Haible  <bruno@clisp.org>
9196
9197         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9198         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9199         from here...
9200         * modules/nl_langinfo (configure.ac): ... to here.
9201
9202 2011-05-21  Bruno Haible  <bruno@clisp.org>
9203
9204         nanosleep: Move AC_LIBOBJ invocations to module description.
9205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9206         gl_PREREQ_NANOSLEEP invocations from here...
9207         * modules/nanosleep (configure.ac): ... to here.
9208
9209 2011-05-21  Bruno Haible  <bruno@clisp.org>
9210
9211         mountlist: Move AC_LIBOBJ invocations to module description.
9212         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9213         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9214         * modules/mountlist (configure.ac): ... to here.
9215
9216 2011-05-21  Bruno Haible  <bruno@clisp.org>
9217
9218         mktime: Respect rules for use of AC_LIBOBJ.
9219         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9220         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9221         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9222         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9223         * modules/mktime (configure.ac): ... to here.
9224         * modules/mktime-internal (configure.ac): ... and here.
9225         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9226
9227 2011-05-21  Bruno Haible  <bruno@clisp.org>
9228
9229         mkstemps: Move AC_LIBOBJ invocations to module description.
9230         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9231         here...
9232         * modules/mkstemps (configure.ac): ... to here.
9233
9234 2011-05-21  Bruno Haible  <bruno@clisp.org>
9235
9236         mkstemp: Move AC_LIBOBJ invocations to module description.
9237         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9238         gl_PREREQ_MKSTEMP invocations from here...
9239         * modules/mkstemp (configure.ac): ... to here.
9240
9241 2011-05-21  Bruno Haible  <bruno@clisp.org>
9242
9243         mkostemps: Move AC_LIBOBJ invocations to module description.
9244         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9245         here...
9246         * modules/mkostemps (configure.ac): ... to here.
9247
9248 2011-05-21  Bruno Haible  <bruno@clisp.org>
9249
9250         mkostemp: Move AC_LIBOBJ invocations to module description.
9251         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9252         gl_PREREQ_MKOSTEMP invocations from here...
9253         * modules/mkostemp (configure.ac): ... to here.
9254
9255 2011-05-21  Bruno Haible  <bruno@clisp.org>
9256
9257         mknod: Move AC_LIBOBJ invocations to module description.
9258         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9259         * modules/mknod (configure.ac): ... to here.
9260
9261 2011-05-21  Bruno Haible  <bruno@clisp.org>
9262
9263         mkfifoat: Move AC_LIBOBJ invocations to module description.
9264         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9265         here...
9266         * modules/mkfifoat (configure.ac): ... to here.
9267
9268 2011-05-21  Bruno Haible  <bruno@clisp.org>
9269
9270         mkfifo: Respect rules for use of AC_LIBOBJ.
9271         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9272         here...
9273         * modules/mkfifo (configure.ac): ... to here.
9274
9275 2011-05-21  Bruno Haible  <bruno@clisp.org>
9276
9277         mkdtemp: Move AC_LIBOBJ invocations to module description.
9278         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9279         invocations from here...
9280         * modules/mkdtemp (configure.ac): ... to here.
9281
9282 2011-05-21  Bruno Haible  <bruno@clisp.org>
9283
9284         mkdir: Move AC_LIBOBJ invocations to module description.
9285         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9286         * modules/mkdir (configure.ac): ... to here.
9287
9288 2011-05-21  Bruno Haible  <bruno@clisp.org>
9289
9290         memset: Move AC_LIBOBJ invocations to module description.
9291         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9292         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9293         here...
9294         * modules/memset (configure.ac): ... to here.
9295
9296 2011-05-21  Bruno Haible  <bruno@clisp.org>
9297
9298         memrchr: Move AC_LIBOBJ invocations to module description.
9299         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9300         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9301         here...
9302         * modules/memrchr (configure.ac): ... to here.
9303
9304 2011-05-21  Bruno Haible  <bruno@clisp.org>
9305
9306         mempcpy: Move AC_LIBOBJ invocations to module description.
9307         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9309         here...
9310         * modules/mempcpy (configure.ac): ... to here.
9311
9312 2011-05-21  Bruno Haible  <bruno@clisp.org>
9313
9314         memmove: Move AC_LIBOBJ invocations to module description.
9315         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9316         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9317         here...
9318         * modules/memmove (configure.ac): ... to here.
9319
9320 2011-05-21  Bruno Haible  <bruno@clisp.org>
9321
9322         memmem*: Move AC_LIBOBJ invocations to module description.
9323         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9324         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9325         here...
9326         (gl_FUNC_MEMMEM): ... and here...
9327         * modules/memmem-simple (configure.ac): ... to here.
9328         * modules/memmem (configure.ac): ... and here.
9329
9330 2011-05-21  Bruno Haible  <bruno@clisp.org>
9331
9332         memcpy: Move AC_LIBOBJ invocations to module description.
9333         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9334         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9335         here...
9336         * modules/memcpy (configure.ac): ... to here.
9337
9338 2011-05-21  Bruno Haible  <bruno@clisp.org>
9339
9340         memcmp: Simplify autoconf macro.
9341         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9342         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9343         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9344
9345 2011-05-21  Bruno Haible  <bruno@clisp.org>
9346
9347         memcmp: Move AC_LIBOBJ invocations to module description.
9348         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9349         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9350         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9351         * modules/memcmp (configure.ac): ... to here.
9352         (Depends-on): Update conditions.
9353
9354 2011-05-21  Bruno Haible  <bruno@clisp.org>
9355
9356         memchr: Respect rules for use of AC_LIBOBJ.
9357         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9358         invocations from here...
9359         * modules/memchr (configure.ac): ... to here.
9360
9361 2011-05-21  Bruno Haible  <bruno@clisp.org>
9362
9363         mbtowc: Move AC_LIBOBJ invocations to module description.
9364         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9365         invocations from here...
9366         * modules/mbtowc (configure.ac): ... to here.
9367
9368 2011-05-21  Bruno Haible  <bruno@clisp.org>
9369
9370         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9371         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9372         gl_PREREQ_MBSRTOWCS invocations from here...
9373         * modules/mbsrtowcs (configure.ac): ... to here.
9374
9375 2011-05-21  Bruno Haible  <bruno@clisp.org>
9376
9377         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9378         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9379         gl_PREREQ_MBSNRTOWCS invocations from here...
9380         * modules/mbsnrtowcs (configure.ac): ... to here.
9381
9382 2011-05-21  Bruno Haible  <bruno@clisp.org>
9383
9384         mbsinit: Move AC_LIBOBJ invocations to module description.
9385         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9386         invocations from here...
9387         * modules/mbsinit (configure.ac): ... to here.
9388
9389 2011-05-21  Bruno Haible  <bruno@clisp.org>
9390
9391         mbrlen: Move AC_LIBOBJ invocations to module description.
9392         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9393         invocations from here...
9394         * modules/mbrlen (configure.ac): ... to here.
9395
9396 2011-05-21  Bruno Haible  <bruno@clisp.org>
9397
9398         mbrtowc: Respect rules for use of AC_LIBOBJ.
9399         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9400         invocations from here...
9401         * modules/mbrtowc (configure.ac): ... to here.
9402
9403 2011-05-21  Bruno Haible  <bruno@clisp.org>
9404
9405         malloc-*: Move AC_LIBOBJ invocations to module description.
9406         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9407         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9408         AC_LIBOBJ invocations from here...
9409         * modules/malloc-gnu (configure.ac): ... to here.
9410         * modules/malloc-posix (configure.ac): ... and here.
9411
9412 2011-05-21  Bruno Haible  <bruno@clisp.org>
9413
9414         lstat, openat: Respect rules for use of AC_LIBOBJ.
9415         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9416         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9417         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9418         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9419         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9420         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9421         here.
9422         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9423
9424 2011-05-21  Bruno Haible  <bruno@clisp.org>
9425
9426         lseek: Move AC_LIBOBJ invocations to module description.
9427         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9428         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9429         * modules/lseek (configure.ac): ... to here.
9430
9431 2011-05-21  Bruno Haible  <bruno@clisp.org>
9432
9433         linkat: Move AC_LIBOBJ invocations to module description.
9434         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9435         here...
9436         * modules/linkat (configure.ac): ... to here.
9437
9438 2011-05-21  Bruno Haible  <bruno@clisp.org>
9439
9440         link: Respect rules for use of AC_LIBOBJ.
9441         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9442         * modules/link (configure.ac): ... to here.
9443
9444 2011-05-21  Bruno Haible  <bruno@clisp.org>
9445
9446         lchown: Move AC_LIBOBJ invocations to module description.
9447         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9448         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9449         * modules/lchown (configure.ac): ... to here.
9450
9451 2011-05-21  Bruno Haible  <bruno@clisp.org>
9452
9453         iswctype: Move AC_LIBOBJ invocations to module description.
9454         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9455         here...
9456         * modules/iswctype (configure.ac): ... to here.
9457
9458 2011-05-21  Bruno Haible  <bruno@clisp.org>
9459
9460         iswblank: Move AC_LIBOBJ invocations to module description.
9461         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9462         here...
9463         * modules/iswblank (configure.ac): ... to here.
9464
9465 2011-05-21  Bruno Haible  <bruno@clisp.org>
9466
9467         atanl: Move AC_LIBOBJ invocations to module description.
9468         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9469         * modules/atanl (configure.ac): ... to here.
9470
9471 2011-05-21  Bruno Haible  <bruno@clisp.org>
9472
9473         acosl: Move AC_LIBOBJ invocations to module description.
9474         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9475         * modules/acosl (configure.ac): ... to here.
9476
9477 2011-05-21  Bruno Haible  <bruno@clisp.org>
9478
9479         asinl: Respect rules for use of AC_LIBOBJ.
9480         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9481         * modules/asinl (configure.ac): ... to here.
9482
9483 2011-05-21  Bruno Haible  <bruno@clisp.org>
9484
9485         tanl: Move AC_LIBOBJ invocations to module description.
9486         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9487         * modules/tanl (configure.ac): ... to here.
9488
9489 2011-05-21  Bruno Haible  <bruno@clisp.org>
9490
9491         cosl: Move AC_LIBOBJ invocations to module description.
9492         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9493         * modules/cosl (configure.ac): ... to here.
9494
9495 2011-05-21  Bruno Haible  <bruno@clisp.org>
9496
9497         sinl: Move AC_LIBOBJ invocations to module description.
9498         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9499         * modules/sinl (configure.ac): ... to here.
9500
9501 2011-05-21  Bruno Haible  <bruno@clisp.org>
9502
9503         logl: Move AC_LIBOBJ invocations to module description.
9504         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9505         * modules/logl (configure.ac): ... to here.
9506
9507 2011-05-21  Bruno Haible  <bruno@clisp.org>
9508
9509         expl: Move AC_LIBOBJ invocations to module description.
9510         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9511         * modules/expl (configure.ac): ... to here.
9512
9513 2011-05-21  Bruno Haible  <bruno@clisp.org>
9514
9515         roundl: Move AC_LIBOBJ invocations to module description.
9516         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9517         * modules/roundl (configure.ac): ... to here.
9518
9519 2011-05-21  Bruno Haible  <bruno@clisp.org>
9520
9521         round: Move AC_LIBOBJ invocations to module description.
9522         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9523         * modules/round (configure.ac): ... to here.
9524
9525 2011-05-21  Bruno Haible  <bruno@clisp.org>
9526
9527         roundf: Move AC_LIBOBJ invocations to module description.
9528         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9529         * modules/roundf (configure.ac): ... to here.
9530
9531 2011-05-21  Bruno Haible  <bruno@clisp.org>
9532
9533         truncl: Move AC_LIBOBJ invocations to module description.
9534         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9535         * modules/truncl (configure.ac): ... to here.
9536
9537 2011-05-21  Bruno Haible  <bruno@clisp.org>
9538
9539         trunc: Move AC_LIBOBJ invocations to module description.
9540         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9541         * modules/trunc (configure.ac): ... to here.
9542
9543 2011-05-21  Bruno Haible  <bruno@clisp.org>
9544
9545         truncf: Move AC_LIBOBJ invocations to module description.
9546         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9547         * modules/truncf (configure.ac): ... to here.
9548
9549 2011-05-21  Bruno Haible  <bruno@clisp.org>
9550
9551         ceill: Move AC_LIBOBJ invocations to module description.
9552         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9553         * modules/ceill (configure.ac): ... to here.
9554
9555 2011-05-21  Bruno Haible  <bruno@clisp.org>
9556
9557         ceil: Move AC_LIBOBJ invocations to module description.
9558         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9559         * modules/ceil (configure.ac): ... to here.
9560
9561 2011-05-21  Bruno Haible  <bruno@clisp.org>
9562
9563         ceilf: Move AC_LIBOBJ invocations to module description.
9564         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9565         * modules/ceilf (configure.ac): ... to here.
9566
9567 2011-05-21  Bruno Haible  <bruno@clisp.org>
9568
9569         floorl: Respect rules for use of AC_LIBOBJ.
9570         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9571         * modules/floorl (configure.ac): ... to here.
9572
9573 2011-05-21  Bruno Haible  <bruno@clisp.org>
9574
9575         floor: Respect rules for use of AC_LIBOBJ.
9576         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9577         * modules/floor (configure.ac): ... to here.
9578
9579 2011-05-21  Bruno Haible  <bruno@clisp.org>
9580
9581         floorf: Move AC_LIBOBJ invocations to module description.
9582         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9583         * modules/floorf (configure.ac): ... to here.
9584
9585 2011-05-20  Bruno Haible  <bruno@clisp.org>
9586
9587         sqrtl: Respect rules for use of AC_LIBOBJ.
9588         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9589         * modules/sqrtl (configure.ac): ... to here.
9590
9591 2011-05-20  Bruno Haible  <bruno@clisp.org>
9592
9593         ldexpl: Respect rules for use of AC_LIBOBJ.
9594         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9595         * modules/ldexpl (configure.ac): ... to here.
9596
9597 2011-05-20  Bruno Haible  <bruno@clisp.org>
9598
9599         frexpl*: Respect rules for use of AC_LIBOBJ.
9600         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9601         invocation from here...
9602         * modules/frexpl (configure.ac): ... to here.
9603         * modules/frexpl-nolibm (configure.ac): ... and here.
9604
9605 2011-05-20  Bruno Haible  <bruno@clisp.org>
9606
9607         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9608         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9609         invocation from here...
9610         * modules/frexp (configure.ac): ... to here.
9611         * modules/frexp-nolibm (configure.ac): ... and here.
9612
9613 2011-05-20  Bruno Haible  <bruno@clisp.org>
9614
9615         isnan: Respect rules for use of AC_LIBOBJ.
9616         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9617         invocations here.
9618         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9619         REPLACE_ISNAN.
9620         * modules/isnand (configure.ac): Likewise.
9621         * modules/isnanl (configure.ac): Likewise.
9622
9623 2011-05-20  Bruno Haible  <bruno@clisp.org>
9624
9625         isnanl*: Respect rules for use of AC_LIBOBJ.
9626         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9627         invocation from here...
9628         * modules/isnanl (configure.ac): ... to here.
9629         * modules/isnanl-nolibm (configure.ac): ... and here.
9630
9631 2011-05-20  Bruno Haible  <bruno@clisp.org>
9632
9633         isnand*: Move AC_LIBOBJ invocations to module description.
9634         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9635         invocation from here...
9636         * modules/isnand (configure.ac): ... to here.
9637         * modules/isnand-nolibm (configure.ac): ... and here.
9638
9639 2011-05-20  Bruno Haible  <bruno@clisp.org>
9640
9641         isnanf*: Move AC_LIBOBJ invocations to module description.
9642         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9643         invocation from here...
9644         * modules/isnanf (configure.ac): ... to here.
9645         * modules/isnanf-nolibm (configure.ac): ... and here.
9646
9647 2011-05-20  Bruno Haible  <bruno@clisp.org>
9648
9649         isnan*: Separate the AC_LIBOBJ invocations.
9650         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9651         AC_LIBOBJ invocation.
9652         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9653         here.
9654         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9655         AC_LIBOBJ invocation.
9656         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9657         here.
9658         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9659         AC_LIBOBJ invocation.
9660         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9661         here.
9662         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9663
9664 2011-05-08  Bruno Haible  <bruno@clisp.org>
9665
9666         isinf: Move AC_LIBOBJ invocations to module description.
9667         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9668         * modules/isinf (configure.ac): ... to here.
9669
9670 2011-05-08  Bruno Haible  <bruno@clisp.org>
9671
9672         isfinite: Move AC_LIBOBJ invocations to module description.
9673         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9674         * modules/isfinite (configure.ac): ... to here.
9675
9676 2011-05-08  Bruno Haible  <bruno@clisp.org>
9677
9678         isblank: Move AC_LIBOBJ invocations to module description.
9679         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9680         here...
9681         * modules/isblank (configure.ac): ... to here.
9682
9683 2011-05-08  Bruno Haible  <bruno@clisp.org>
9684
9685         isapipe: Move AC_LIBOBJ invocations to module description.
9686         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9687         gl_PREREQ_ISAPIPE invocations from here...
9688         * modules/isapipe (configure.ac): ... to here.
9689         (Depends-on): Update condition.
9690
9691 2011-05-08  Bruno Haible  <bruno@clisp.org>
9692
9693         ioctl: Move AC_LIBOBJ invocations to module description.
9694         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9695         invocations from here...
9696         * modules/ioctl (configure.ac): ... to here.
9697         (Depends-on): Update condition.
9698
9699 2011-05-08  Bruno Haible  <bruno@clisp.org>
9700
9701         imaxdiv: Move AC_LIBOBJ invocations to module description.
9702         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9703         invocations from here...
9704         * modules/imaxdiv (configure.ac): ... to here.
9705
9706 2011-05-08  Bruno Haible  <bruno@clisp.org>
9707
9708         imaxabs: Move AC_LIBOBJ invocations to module description.
9709         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9710         invocations from here...
9711         * modules/imaxabs (configure.ac): ... to here.
9712
9713 2011-05-08  Bruno Haible  <bruno@clisp.org>
9714
9715         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9716         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9717         AC_LIBOBJ invocations from here...
9718         * modules/getaddrinfo (configure.ac): ... to here.
9719         (Depends-on): Add conditions.
9720
9721 2011-05-08  Bruno Haible  <bruno@clisp.org>
9722
9723         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9724         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9725         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9726         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9727         (gl_PREREQ_INET_PTON): ... from here.
9728         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9729         gl_PREREQ_INET_PTON here.
9730         (Depends-on): Update condition.
9731
9732 2011-05-08  Bruno Haible  <bruno@clisp.org>
9733
9734         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9735         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9736         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9737         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9738         (gl_PREREQ_INET_NTOP): ... from here.
9739         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9740         gl_PREREQ_INET_NTOP here.
9741         (Depends-on): Update condition.
9742
9743 2011-05-08  Bruno Haible  <bruno@clisp.org>
9744
9745         iconv_open: Move AC_LIBOBJ invocations to module description.
9746         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9747         AC_LIBOBJ invocations from here...
9748         * modules/iconv_open (configure.ac): ... to here.
9749
9750 2011-05-08  Bruno Haible  <bruno@clisp.org>
9751
9752         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9753         If module 'iconv_open' is among the main modules and module
9754         'iconv_open-utf' is among the tests dependencies, then
9755         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9756         return the special iconv_t values. Therefore iconv() and iconv_close()
9757         must support these special iconv_t values, already in lib, not only in
9758         tests.
9759         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9760         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9761         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9762         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9763         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9764         (Depends-on): Add the dependencies of iconv_open-utf.
9765         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9766         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9767         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9768
9769 2011-05-08  Bruno Haible  <bruno@clisp.org>
9770
9771         group-member: Move AC_LIBOBJ invocations to module description.
9772         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9773         gl_PREREQ_GROUP_MEMBER invocations from here...
9774         * modules/group-member (configure.ac): ... to here.
9775
9776 2011-05-08  Bruno Haible  <bruno@clisp.org>
9777
9778         grantpt: Move AC_LIBOBJ invocations to module description.
9779         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9780         invocations from here...
9781         * modules/grantpt (configure.ac): ... to here.
9782
9783 2011-05-08  Bruno Haible  <bruno@clisp.org>
9784
9785         glob: Move AC_LIBOBJ invocations to module description.
9786         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9787         from here...
9788         * modules/glob (configure.ac): ... to here.
9789
9790 2011-05-08  Bruno Haible  <bruno@clisp.org>
9791
9792         getusershell: Move AC_LIBOBJ invocations to module description.
9793         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9794         Move AC_LIBOBJ invocation from here...
9795         * modules/getusershell (configure.ac): ... to here.
9796         (Depends-on): Update condition.
9797
9798 2011-05-08  Bruno Haible  <bruno@clisp.org>
9799
9800         gettimeofday: Move AC_LIBOBJ invocations to module description.
9801         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9802         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9803         gl_PREREQ_GETTIMEOFDAY invocations from here...
9804         * modules/gettimeofday (configure.ac): ... to here.
9805
9806 2011-05-08  Bruno Haible  <bruno@clisp.org>
9807
9808         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9809         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9810         just gl_FUNC_TZSET.
9811         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9812         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9813         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9814         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9815
9816 2011-05-08  Bruno Haible  <bruno@clisp.org>
9817
9818         getsubopt: Move AC_LIBOBJ invocations to module description.
9819         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9820         gl_PREREQ_GETSUBOPT invocations from here...
9821         * modules/getsubopt (configure.ac): ... to here.
9822
9823 2011-05-08  Bruno Haible  <bruno@clisp.org>
9824
9825         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9826         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9827         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9828         * modules/getpass-gnu (configure.ac): ... to here.
9829
9830 2011-05-08  Bruno Haible  <bruno@clisp.org>
9831
9832         getpass: Move AC_LIBOBJ invocations to module description.
9833         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9834         gl_PREREQ_GETPASS invocations from here...
9835         * modules/getpass (configure.ac): ... to here.
9836
9837 2011-05-08  Bruno Haible  <bruno@clisp.org>
9838
9839         getpagesize: Move AC_LIBOBJ invocations to module description.
9840         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9841         from here...
9842         * modules/getpagesize (configure.ac): ... to here.
9843
9844 2011-05-08  Bruno Haible  <bruno@clisp.org>
9845
9846         getopt: Move AC_LIBOBJ invocations to module description.
9847         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9848         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9849         invocations from here...
9850         * modules/getopt-gnu (configure.ac): ... to here.
9851         * modules/getopt-posix (configure.ac): ... and here.
9852         (Depends-on): Update condition.
9853
9854 2011-05-08  Bruno Haible  <bruno@clisp.org>
9855
9856         getopt, argp: Respect rules for use of AC_LIBOBJ.
9857         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9858         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9859         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9860         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9861
9862 2011-05-08  Bruno Haible  <bruno@clisp.org>
9863
9864         getlogin_r: Move AC_LIBOBJ invocations to module description.
9865         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9866         gl_PREREQ_GETLOGIN_R invocations from here...
9867         * modules/getlogin_r (configure.ac): ... to here.
9868
9869 2011-05-08  Bruno Haible  <bruno@clisp.org>
9870
9871         getlogin: Move AC_LIBOBJ invocations to module description.
9872         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9873         here...
9874         * modules/getlogin (configure.ac): ... to here.
9875
9876 2011-05-08  Bruno Haible  <bruno@clisp.org>
9877
9878         getloadavg: Move AC_LIBOBJ invocations to module description.
9879         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9880         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9881         * modules/getloadavg (configure.ac): ... to here.
9882
9883 2011-05-08  Bruno Haible  <bruno@clisp.org>
9884
9885         gethrxtime: Move AC_LIBOBJ invocations to module description.
9886         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9887         LIB_GETHRXTIME from here...
9888         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9889         invocations from here...
9890         * modules/gethrxtime (configure.ac): ... to here.
9891
9892 2011-05-08  Bruno Haible  <bruno@clisp.org>
9893
9894         gethostname: Move AC_LIBOBJ invocations to module description.
9895         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9896         gl_PREREQ_GETHOSTNAME invocations from here...
9897         * modules/gethostname (configure.ac): ... to here.
9898
9899 2011-05-08  Bruno Haible  <bruno@clisp.org>
9900
9901         getgroups: Move AC_LIBOBJ invocations to module description.
9902         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9903         here...
9904         * modules/getgroups (configure.ac): ... to here.
9905
9906 2011-05-08  Bruno Haible  <bruno@clisp.org>
9907
9908         getdtablesize: Move AC_LIBOBJ invocations to module description.
9909         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9910         invocation from here...
9911         * modules/getdtablesize (configure.ac): ... to here.
9912
9913 2011-05-08  Bruno Haible  <bruno@clisp.org>
9914
9915         getdomainname: Move AC_LIBOBJ invocations to module description.
9916         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9917         gl_PREREQ_GETDOMAINNAME invocations from here...
9918         * modules/getdomainname (configure.ac): ... to here.
9919
9920 2011-05-08  Bruno Haible  <bruno@clisp.org>
9921
9922         getline: Move AC_LIBOBJ invocations to module description.
9923         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9924         invocations from here...
9925         * modules/getline (configure.ac): ... to here.
9926
9927 2011-05-08  Bruno Haible  <bruno@clisp.org>
9928
9929         getline: Simplify.
9930         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9931         It's already handled through the module dependency.
9932
9933 2011-05-08  Bruno Haible  <bruno@clisp.org>
9934
9935         getdelim: Move AC_LIBOBJ invocations to module description.
9936         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9937         and gl_PREREQ_GETDELIM invocations from here...
9938         * modules/getdelim (configure.ac): ... to here.
9939         (Depends-on): Fix condition.
9940
9941 2011-05-08  Bruno Haible  <bruno@clisp.org>
9942
9943         getcwd: Move AC_LIBOBJ invocations to module description.
9944         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9945         invocations from here...
9946         * modules/getcwd (configure.ac): ... to here.
9947
9948 2011-05-08  Bruno Haible  <bruno@clisp.org>
9949
9950         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9951         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9952         here...
9953         * modules/getcwd-lgpl (configure.ac): ... to here.
9954
9955 2011-05-07  Bruno Haible  <bruno@clisp.org>
9956
9957         crypto/gc: Move AC_LIBOBJ invocations to module description.
9958         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9959         * modules/crypto/gc (configure.ac): ... to here.
9960
9961 2011-05-07  Bruno Haible  <bruno@clisp.org>
9962
9963         fwriting: Move AC_LIBOBJ invocations to module description.
9964         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9965         here...
9966         * modules/fwriting (configure.ac): ... to here.
9967
9968 2011-05-07  Bruno Haible  <bruno@clisp.org>
9969
9970         fwritable: Move AC_LIBOBJ invocations to module description.
9971         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9972         here...
9973         * modules/fwritable (configure.ac): ... to here.
9974
9975 2011-05-07  Bruno Haible  <bruno@clisp.org>
9976
9977         futimens: Move AC_LIBOBJ invocations to module description.
9978         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9979         here...
9980         * modules/futimens (configure.ac): ... to here.
9981
9982 2011-05-07  Bruno Haible  <bruno@clisp.org>
9983
9984         ftruncate: Move AC_LIBOBJ invocations to module description.
9985         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9986         gl_PREREQ_FTRUNCATE invocations from here...
9987         * modules/ftruncate (configure.ac): ... to here.
9988
9989 2011-05-07  Bruno Haible  <bruno@clisp.org>
9990
9991         fsync: Move AC_LIBOBJ invocations to module description.
9992         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9993         invocations from here...
9994         * modules/fsync (configure.ac): ... to here.
9995
9996 2011-05-07  Bruno Haible  <bruno@clisp.org>
9997
9998         fsusage: Move AC_LIBOBJ invocations to module description.
9999         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10000         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10001         * modules/fsusage (configure.ac): ... to here.
10002
10003 2011-05-07  Bruno Haible  <bruno@clisp.org>
10004
10005         freopen: Move AC_LIBOBJ invocations to module description.
10006         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10007         invocations from here...
10008         * modules/freopen (configure.ac): ... to here.
10009
10010 2011-05-07  Bruno Haible  <bruno@clisp.org>
10011
10012         free: Move AC_LIBOBJ invocations to module description.
10013         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10014         invocations from here...
10015         * modules/free (configure.ac): ... to here.
10016
10017 2011-05-07  Bruno Haible  <bruno@clisp.org>
10018
10019         freadable: Move AC_LIBOBJ invocations to module description.
10020         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10021         here...
10022         * modules/freadable (configure.ac): ... to here.
10023
10024 2011-05-07  Bruno Haible  <bruno@clisp.org>
10025
10026         fpurge: Move AC_LIBOBJ invocations to module description.
10027         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10028         invocations from here...
10029         * modules/fpurge (configure.ac): ... to here.
10030
10031 2011-05-07  Bruno Haible  <bruno@clisp.org>
10032
10033         fpending: Move AC_LIBOBJ invocations to module description.
10034         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10035         gl_FUNC_FPENDING.
10036         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10037         invocations from here...
10038         * modules/fpending (configure.ac): ... to here.
10039
10040 2011-05-07  Bruno Haible  <bruno@clisp.org>
10041
10042         fopen: Move AC_LIBOBJ invocations to module description.
10043         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10044         invocations from here...
10045         * modules/fopen (configure.ac): ... to here.
10046
10047 2011-05-07  Bruno Haible  <bruno@clisp.org>
10048
10049         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10050         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10051         gl_FUNC_FNMATCH_POSIX.
10052         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10053         invocations from here...
10054         * modules/fnmatch (configure.ac): ... to here.
10055         * modules/fnmatch-gnu (configure.ac): ... and here.
10056
10057 2011-05-07  Bruno Haible  <bruno@clisp.org>
10058
10059         flock: Move AC_LIBOBJ invocations to module description.
10060         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10061         invocations from here...
10062         * modules/flock (configure.ac): ... to here.
10063
10064 2011-05-07  Bruno Haible  <bruno@clisp.org>
10065
10066         fileblocks: Move AC_LIBOBJ invocations to module description.
10067         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10068         gl_PREREQ_FILEBLOCKS invocations from here...
10069         * modules/fileblocks (configure.ac): ... to here.
10070
10071 2011-05-06  Bruno Haible  <bruno@clisp.org>
10072
10073         fflush: Move AC_LIBOBJ invocations to module description.
10074         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10075         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10076         invocations from here...
10077         * modules/fflush (configure.ac): ... to here.
10078
10079 2011-05-06  Bruno Haible  <bruno@clisp.org>
10080
10081         fdopendir: Move AC_LIBOBJ invocations to module description.
10082         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10083         here...
10084         * modules/fdopendir (configure.ac): ... to here.
10085         (Depends-on): Improve conditions.
10086
10087 2011-05-06  Bruno Haible  <bruno@clisp.org>
10088
10089         _Exit: Move AC_LIBOBJ invocations to module description.
10090         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10091         invocations from here...
10092         * modules/_Exit (configure.ac): ... to here.
10093
10094 2011-05-21  Bruno Haible  <bruno@clisp.org>
10095
10096         euidaccess: Respect rules for use of AC_LIBOBJ.
10097         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10099         from here...
10100         * modules/euidaccess (configure.ac): ... to here.
10101
10102 2011-05-06  Bruno Haible  <bruno@clisp.org>
10103
10104         error: Move AC_LIBOBJ invocations to module description.
10105         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10106         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10107         invocations from here...
10108         * modules/error (configure.ac): ... to here.
10109
10110 2011-05-06  Bruno Haible  <bruno@clisp.org>
10111
10112         duplocale: Move AC_LIBOBJ invocations to module description.
10113         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10114         gl_PREREQ_DUPLOCALE invocations from here...
10115         * modules/duplocale (configure.ac): ... to here.
10116
10117 2011-05-05  Bruno Haible  <bruno@clisp.org>
10118
10119         dirfd: Move AC_LIBOBJ invocations to module description.
10120         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10121         gl_FUNC_DIRFD.
10122         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10123         here...
10124         * modules/dirfd (configure.ac): ... to here.
10125         (Depends-on): Fix condition.
10126
10127 2011-05-05  Bruno Haible  <bruno@clisp.org>
10128
10129         chown: Respect rules for use of AC_LIBOBJ.
10130         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10131         * modules/chown (configure.ac): ... to here.
10132
10133 2011-05-05  Bruno Haible  <bruno@clisp.org>
10134
10135         chdir-long: Move AC_LIBOBJ invocations to module description.
10136         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10137         gl_PREREQ_CHDIR_LONG invocations from here...
10138         * modules/chdir-long (configure.ac): ... to here.
10139
10140 2011-05-05  Bruno Haible  <bruno@clisp.org>
10141
10142         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10143         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10144         from here...
10145         * modules/canonicalize-lgpl (configure.ac): ... to here.
10146
10147 2011-05-05  Bruno Haible  <bruno@clisp.org>
10148
10149         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10150         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10151         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10152         REPLACE_CALLOC.
10153         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10154         * modules/calloc-gnu (configure.ac): Likewise.
10155
10156 2011-05-05  Bruno Haible  <bruno@clisp.org>
10157
10158         btowc: Move AC_LIBOBJ invocations to module description.
10159         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10160         invocations from here...
10161         * modules/btowc (configure.ac): ... to here.
10162
10163 2011-05-21  Bruno Haible  <bruno@clisp.org>
10164
10165         atexit: Move AC_LIBOBJ invocations to module description.
10166         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10167         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10168         here...
10169         * modules/atexit (configure.ac): ... to here.
10170
10171 2011-05-05  Bruno Haible  <bruno@clisp.org>
10172
10173         atoll: Move AC_LIBOBJ invocations to module description.
10174         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10175         invocations from here...
10176         * modules/atoll (configure.ac): ... to here.
10177
10178 2011-05-05  Bruno Haible  <bruno@clisp.org>
10179
10180         argz: Move AC_LIBOBJ invocations to module description.
10181         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10182         * modules/argz (configure.ac): ... to here.
10183
10184 2011-05-05  Bruno Haible  <bruno@clisp.org>
10185
10186         alphasort: Move AC_LIBOBJ invocations to module description.
10187         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10188         gl_PREREQ_ALPHASORT invocations from here...
10189         * modules/alphasort (configure.ac): ... to here.
10190
10191 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10192
10193         verify: new macro verify_expr; verify_true deprecated
10194         * NEWS: Mention this.
10195         * doc/verify.texi (Compile-time Assertions): Document this.
10196         * lib/verify.h (verify_true): Deprecate.
10197         (verify_expr): New macro.
10198         * tests/test-verify.c (function): Test verify_expr.
10199
10200 2011-06-14  Jim Meyering  <meyering@redhat.com>
10201
10202         init.sh: give more portable redirection-related advice in a comment
10203         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10204         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10205         for lots of discussion.  Stefano Lattarini suggested the solution
10206         of putting "9>&2" after the command.  Reported by Bruno Haible.
10207
10208 2011-06-13  Bruno Haible  <bruno@clisp.org>
10209
10210         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10211         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10212         'none'.
10213
10214 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10215
10216         ftoastr: use strtof only if HAVE_STRTOF
10217         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10219         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10220         * modules/ftoastr (configure.ac): Check for strtof.
10221
10222 2011-06-13  Bruno Haible  <bruno@clisp.org>
10223
10224         gnulib-tool: Addendum to 2011-06-08 commit.
10225         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10226         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10227
10228 2011-06-13  Bruno Haible  <bruno@clisp.org>
10229
10230         fseeko: Provide a non-inline replacement of fseek().
10231         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10232         * modules/fseeko (Depends-on): Add fseek.
10233         * modules/fseek (License): Change to LGPLv2+.
10234
10235 2011-06-13  Bruno Haible  <bruno@clisp.org>
10236
10237         ftello: Provide a non-inline replacement of ftell().
10238         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10239         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10240         not have ftello() (such as on mingw).
10241         * modules/ftello (Depends-on): Add ftell.
10242         * modules/ftell (License): Change to LGPLv2+.
10243
10244 2011-05-07  Bruno Haible  <bruno@clisp.org>
10245
10246         ftell: Move AC_LIBOBJ invocations to module description.
10247         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10248         * modules/ftell (configure.ac): ... to here.
10249
10250 2011-05-07  Bruno Haible  <bruno@clisp.org>
10251
10252         ftello: Respect rules for use of AC_LIBOBJ.
10253         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10254         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10255         here...
10256         * modules/ftello (configure.ac): ... to here.
10257
10258 2011-05-07  Bruno Haible  <bruno@clisp.org>
10259
10260         fseeko: Simplify.
10261         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10262         (gl_FUNC_FSEEKO): Inline it here.
10263
10264 2011-05-07  Bruno Haible  <bruno@clisp.org>
10265
10266         fseek: Move AC_LIBOBJ invocations to module description.
10267         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10268         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10269         * modules/fseek (configure.ac): ... to here.
10270
10271 2011-05-07  Bruno Haible  <bruno@clisp.org>
10272
10273         fseek: Respect rules for use of AC_LIBOBJ.
10274         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10275         here...
10276         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10277
10278 2011-05-07  Bruno Haible  <bruno@clisp.org>
10279
10280         fseeko: Respect rules for use of AC_LIBOBJ.
10281         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10282         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10283         here...
10284         * modules/fseeko (configure.ac): ... to here.
10285
10286 2011-06-13  Bruno Haible  <bruno@clisp.org>
10287
10288         gnulib-tool: Allow comments in the 'Depends-on' section.
10289         * doc/gnulib.texi (Module description): Mention comment syntax in the
10290         Depends-on section.
10291         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10292
10293 2011-06-13  Bruno Haible  <bruno@clisp.org>
10294
10295         file-set.h: guard __attibute__ use, now that it's not always defined
10296         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10297         versions that support it.  This fixes a coreutils build failure with
10298         the vendor cc on HP-UX 11.31.
10299
10300 2011-06-12  Bruno Haible  <bruno@clisp.org>
10301
10302         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10303         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10304         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10305         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10306         (acl, aclsort): New declarations.
10307         (aclv_nontrivial): New declaration.
10308         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10309         (file_has_acl): Read also the second kind of HP-UX ACLs.
10310         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10311         kind of HP-UX ACLs if the first kind fails.
10312         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10313         second kind of HP-UX ACLs.
10314         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10315         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10316         agree.
10317         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10318         hpuxjfs.
10319         Handle hpuxjfs.
10320         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10321         hpuxjfs.
10322         Handle hpuxjfs.
10323         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10324         (func_test_same_acls): Use both lsacl and getacl.
10325         Handle hpuxjfs.
10326         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10327         (func_test_same_acls): Use both lsacl and getacl.
10328         Handle hpuxjfs.
10329
10330 2011-06-12  Bruno Haible  <bruno@clisp.org>
10331
10332         acl: Complete the 2010-08-10 fix.
10333         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10334         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10335         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10336         explicitly.
10337         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10338         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10339
10340 2011-06-12  Bruno Haible  <bruno@clisp.org>
10341
10342         spawn-pipe tests: Comments.
10343         * tests/test-spawn-pipe-child.c (main): Update comment.
10344         Reported by James Youngman <jay@gnu.org>.
10345
10346 2011-06-11  James Youngman  <jay@gnu.org>
10347
10348         New module 'stat-size'.
10349         * modules/stat-size: New module.  Provides macros for accessing
10350         file size information in instances of struct stat.  Depends on the
10351         fileblocks module because it calls st_blocks.
10352         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10353         * doc/gnulib.texi: Include stat-size.texi.
10354         * doc/stat-size.texi: Documentation for this module.
10355         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10356         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10357         AC_STRUCT_ST_BLOCKS.
10358
10359 2011-06-09  Bruno Haible  <bruno@clisp.org>
10360
10361         thread: Support pthreads-win32.
10362         * lib/glthread/thread.h (gl_thread_self): Define differently on
10363         pthreads-win32.
10364         (gl_null_thread): New declaration.
10365         (gl_thread_self_pointer): New macro.
10366         * lib/glthread/thread.c (gl_null_thread): New constant.
10367         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10368         gl_thread_self.
10369         * tests/test-tls.c: Likewise.
10370         Suggested by Paul Eggert. Reported by Eric Blake.
10371
10372 2011-06-09  Bruno Haible  <bruno@clisp.org>
10373
10374         thread: Fix confusion between NULL and 0.
10375         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10376         Reported by Paul Eggert.
10377
10378 2011-06-09  Bruno Haible  <bruno@clisp.org>
10379
10380         spawn-pipe tests: Avoid test failure on HP-UX 11.
10381         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10382         is closed.
10383
10384 2011-06-09  Bruno Haible  <bruno@clisp.org>
10385
10386         acl tests: Fix compilation error on HP-UX 11.
10387         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10388
10389 2011-06-09  Bruno Haible  <bruno@clisp.org>
10390
10391         rmdir: Avoid test failure on HP-UX 10.20.
10392         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10393         EEXIST.
10394
10395 2011-06-08  Eric Blake  <eblake@redhat.com>
10396
10397         perror: fix test on mingw
10398         * modules/perror-tests (Depends-on): Add dup2.
10399
10400         strerror_r-posix: fix on MacOS
10401         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10402         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10403         logic bug.
10404         * lib/strerror_r.c (strerror_r): Fix the bug.
10405         * lib/strerror.c (strerror): Likewise.
10406         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10407         problem.
10408         * doc/posix-functions/strerror.texi (strerror): Likewise.
10409         * doc/posix-functions/perror.texi (perror): Likewise.
10410         * tests/test-strerror.c (main): Enhance test.
10411         * tests/test-strerror_r.c (main): Likewise.
10412
10413 2011-06-08  Bruno Haible  <bruno@clisp.org>
10414
10415         gnulib-tool: Better isolation between different gnulib-tool invocations.
10416         * gnulib-tool: New option --witness-c-macro.
10417         (witness_c_macro): New variable.
10418         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10419         AM_CPPFLAGS define it as a C macro.
10420         (func_emit_tests_Makefile_am): Likewise.
10421         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10422         read it from there.
10423         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10424         m4_define, not AC_DEFUN.
10425         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10426         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10427         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10428         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10429         s|...|...|, to substitute the values of the GNULIB_* module indicator
10430         variables.
10431         * modules/dirent (Makefile.am): Likewise.
10432         * modules/fcntl-h (Makefile.am): Likewise.
10433         * modules/iconv-h (Makefile.am): Likewise.
10434         * modules/langinfo (Makefile.am): Likewise.
10435         * modules/locale (Makefile.am): Likewise.
10436         * modules/math (Makefile.am): Likewise.
10437         * modules/netdb (Makefile.am): Likewise.
10438         * modules/poll-h (Makefile.am): Likewise.
10439         * modules/pty (Makefile.am): Likewise.
10440         * modules/search (Makefile.am): Likewise.
10441         * modules/signal (Makefile.am): Likewise.
10442         * modules/spawn (Makefile.am): Likewise.
10443         * modules/stdio (Makefile.am): Likewise.
10444         * modules/stdlib (Makefile.am): Likewise.
10445         * modules/string (Makefile.am): Likewise.
10446         * modules/sys_ioctl (Makefile.am): Likewise.
10447         * modules/sys_select (Makefile.am): Likewise.
10448         * modules/sys_socket (Makefile.am): Likewise.
10449         * modules/sys_stat (Makefile.am): Likewise.
10450         * modules/sys_times (Makefile.am): Likewise.
10451         * modules/sys_utsname (Makefile.am): Likewise.
10452         * modules/sys_wait (Makefile.am): Likewise.
10453         * modules/termios (Makefile.am): Likewise.
10454         * modules/time (Makefile.am): Likewise.
10455         * modules/unistd (Makefile.am): Likewise.
10456         * modules/wchar (Makefile.am): Likewise.
10457
10458 2011-06-08  Eric Blake  <eblake@redhat.com>
10459
10460         strerror: simplify replacement
10461         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10462         * modules/strerror (configure.ac): No prereqs needed here...
10463         * modules/strerror-override (configure.ac): ...but this needs it.
10464         (Files): Add file for needed prereq macro.
10465
10466 2011-06-08  Bruno Haible  <bruno@clisp.org>
10467
10468         strerror_r-posix: Tweaks.
10469         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10470         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10471         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10472         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10473         (gl_FUNC_STRERROR_R): ... to here.
10474         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10475
10476 2011-06-07  Eric Blake  <eblake@redhat.com>
10477
10478         perror: document fixed bugs
10479         * doc/posix-functions/perror.texi (perror): Document recent
10480         patches.
10481
10482 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10483
10484         stat-time: get_stat_birthtime failure is better-defined
10485         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10486         return a timestamp whose tv_sec and tv_nsec values are both -1.
10487         Previously, the spec said only that the tv_nsec value was negative.
10488         This upward-compatible change simplifies GNU tar a bit.
10489
10490 2011-06-07  Eric Blake  <eblake@redhat.com>
10491
10492         strerror_r-posix: work around cygwin 1.7.9
10493         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10494         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10495         bug without replacing strerror_r.
10496         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10497         strerror_r is buggy, but without requiring strerror_r compilation.
10498         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10499
10500         test-perror: relax test to ignore cygwin bug
10501         * tests/test-perror2.c (main): Relax test on requiring detection
10502         of stream errors, and use unbuffered stream.
10503         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10504         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10505         * doc/posix-functions/fputc.texi (fputc): Likewise.
10506         * doc/posix-functions/fputs.texi (fputs): Likewise.
10507         * doc/posix-functions/fputws.texi (fputws): Likewise.
10508         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10509         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10510         * doc/posix-functions/getopt.texi (getopt): Likewise.
10511         * doc/posix-functions/perror.texi (perror): Likewise.
10512         * doc/posix-functions/printf.texi (printf): Likewise.
10513         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10514         * doc/posix-functions/psignal.texi (psignal): Likewise.
10515         * doc/posix-functions/putc.texi (putc): Likewise.
10516         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10517         Likewise.
10518         * doc/posix-functions/putchar.texi (putchar): Likewise.
10519         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10520         Likewise.
10521         * doc/posix-functions/puts.texi (puts): Likewise.
10522         * doc/posix-functions/putwc.texi (putwc): Likewise.
10523         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10524         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10525         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10526         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10527         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10528         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10529         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10530         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10531
10532 2011-05-22  Bruno Haible  <bruno@clisp.org>
10533
10534         strerror: Move AC_LIBOBJ invocations to module description.
10535         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10536         gl_PREREQ_STRERROR invocations from here...
10537         * modules/strerror (configure.ac): ... to here.
10538
10539 2011-05-21  Bruno Haible  <bruno@clisp.org>
10540
10541         perror: Use common idiom.
10542         * modules/perror (configure.ac): Reorder statements.
10543
10544 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10545
10546         tests: fix usage message in 'mktempd_'
10547         * tests/init.sh (mktempd_): In the usage message, use literal
10548         'mktempd_', not '$ME' (which is even undefined), as the name of
10549         the subroutine.
10550
10551 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10552
10553         tests init: new function 'fatal_', for hard errors
10554         Before this patch, the only way offered by tests/init.sh to
10555         properly signal a hard error was the `framework_failure_'
10556         function.  But the error message issued by that function,
10557         as its name would suggest, refers to a set-up failure in the
10558         testsuite, while hard errors can obviously also be due to
10559         other reasons.  The best way to fix this inconsistency is to
10560         introduce a new function with a more general error message.
10561         * tests/init.sh (fatal_): New function.
10562
10563 2011-06-06  Eric Blake  <eblake@redhat.com>
10564
10565         canonicalize-lgpl: use common idiom
10566         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10567         over newer POSIX -Rf.
10568         Reported by Bruno Haible.
10569
10570         canonicalize-lgpl: work around AIX realpath bug
10571         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10572         * doc/posix-functions/realpath.texi (realpath): Document it.
10573         Reported by Bruno Haible.
10574
10575         strerror: work around FreeBSD bug
10576         * lib/strerror.c (strerror): Special case 0.
10577         Reported by Bruno Haible.
10578
10579         strerror-override: avoid bloating errno module
10580         * modules/errno (Files, configure.ac): Move replacement strings...
10581         * modules/strerror-override: ...to new module.
10582         * modules/strerror (Depends-on): Add strerror-override.
10583         * modules/strerror_r-posix (Depends-on): Likewise.
10584         * MODULES.html.sh: Document new module.
10585         Reported by Bruno Haible.
10586
10587 2011-06-06  Bruno Haible  <bruno@clisp.org>
10588
10589         spawn-pipe tests: Rename program.
10590         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10591         * tests/test-spawn-pipe-child.c: Update comment.
10592         * tests/test-spawn-pipe.sh: Update.
10593         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10594
10595         spawn-pipe tests: Link the child program only against libc.
10596         * tests/test-spawn-pipe-child.c: New file, extracted from
10597         tests/test-spawn-pipe.c.
10598         (main): Expect only one argument.
10599         (is_open): New function, copied from tests/test-pipe.c.
10600         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10601         (child_main): Remove function.
10602         (test_pipe): Pass only one argument to the child program.
10603         (main): Remove child process code. Expect the child program's name as
10604         first argument.
10605         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10606         argument.
10607         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10608         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10609         test-spawn-pipe-child against no libraries.
10610
10611 2011-06-06  Bruno Haible  <bruno@clisp.org>
10612
10613         careadlinkat: Avoid mismatch between ssize_t and int.
10614         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10615         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10616
10617 2011-06-06  Jim Meyering  <meyering@redhat.com>
10618
10619         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10620         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10621         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10622
10623 2011-06-05  Bruno Haible  <bruno@clisp.org>
10624
10625         ansi-c++-opt: Interoperability with libtool.
10626         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10627         set the variable to "no", not to ":".
10628         * NEWS: Mention the change.
10629
10630 2011-06-05  Bruno Haible  <bruno@clisp.org>
10631
10632         acl: Fix test failure on AIX 7.
10633         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10634         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10635
10636 2011-06-05  Bruno Haible  <bruno@clisp.org>
10637
10638         pipe-filter-ii: Fix test failure on AIX and IRIX.
10639         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10640         with EAGAIN, retry with a smaller buffer size.
10641
10642 2011-06-05  Bruno Haible  <bruno@clisp.org>
10643
10644         localename: Fix link dependencies.
10645         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10646         * modules/localename-tests (Makefile.am): Link test-localename with
10647         $(LIBTHREAD).
10648
10649 2011-06-05  Bruno Haible  <bruno@clisp.org>
10650
10651         error: Avoid gcc warning.
10652         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10653
10654 2011-06-05  Bruno Haible  <bruno@clisp.org>
10655
10656         unsetenv: Avoid gcc warning.
10657         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10658
10659 2011-06-05  Bruno Haible  <bruno@clisp.org>
10660
10661         setenv: Avoid gcc warning.
10662         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10663
10664 2011-06-05  Bruno Haible  <bruno@clisp.org>
10665
10666         sys_select: Ensure memset is declared also on AIX 7.
10667         * lib/sys_select.in.h: Include <string.h> also on AIX.
10668         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10669         self-contained also on AIX 7.1.
10670
10671 2011-06-04  Jim Meyering  <meyering@redhat.com>
10672
10673         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10674         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10675         function name, "error".
10676         (_gl_translatable_diag_func_re): New configurable variable.
10677
10678 2011-06-04  Bruno Haible  <bruno@clisp.org>
10679
10680         getopt: Avoid gcc warning.
10681         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10682
10683 2011-06-04  Bruno Haible  <bruno@clisp.org>
10684
10685         strerror_r: Fix comments.
10686         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10687         commit.
10688
10689 2011-06-04  Bruno Haible  <bruno@clisp.org>
10690
10691         perror: Fix compilation error.
10692         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10693         Undefine fprintf, not sprintf.
10694         * modules/perror (Depends-on): Remove intprops, verify.
10695
10696 2011-06-04  Bruno Haible  <bruno@clisp.org>
10697
10698         setlocale: Enable replacement on Cygwin 1.5.
10699         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10700         Cygwin 1.5.x.
10701         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10702         LC_CTYPE category also exists on Cygwin 1.5.x.
10703
10704 2011-06-04  Bruno Haible  <bruno@clisp.org>
10705
10706         strerror-override: Don't disable symbol renamings.
10707         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10708         * lib/strerror-override.c: Include config.h.
10709         (strerror_override): Don't undefine.
10710
10711 2011-06-03  Bruno Haible  <bruno@clisp.org>
10712
10713         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10714         * lib/localename.h: Update copyright header.
10715         * lib/localename.c: Likewise.
10716         * lib/relocatable.h: Likewise.
10717         * lib/relocatable.c: Likewise.
10718
10719 2011-06-02  Bruno Haible  <bruno@clisp.org>
10720
10721         doc: Fix a module name.
10722         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10723
10724 2011-06-02  Bruno Haible  <bruno@clisp.org>
10725
10726         pipe2: Remove dependency on 'nonblocking' module.
10727         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10728         O_NONBLOCK is defined by gnulib.
10729         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10730         is zero.
10731         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10732         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10733         defined by gnulib.
10734         (get_nonblocking_flag): New function.
10735         (main): Test O_NONBLOCK flag only if it is nonzero.
10736         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10737
10738 2011-06-03  Jim Meyering  <meyering@redhat.com>
10739
10740         maint: three new prohibit-header-without-use rules
10741         Prohibit use of cloexec.h, posixver.h, same.h without use.
10742         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10743         (sc_prohibit_posixver_without_use): Likewise.
10744         (sc_prohibit_same_without_use): Likewise.
10745
10746 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10747
10748         allocator: 'die' routine is now given requested size
10749         * lib/allocator.h (struct allocator.die): New size arg.
10750         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10751         If the actual problem is an ssize_t limitation, not a size_t or
10752         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10753
10754 2011-06-01  Eric Blake  <eblake@redhat.com>
10755
10756         strerror: drop strerror_r dependency
10757         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10758         * lib/strerror-override.c (strerror_override): ...to new file.
10759         * lib/strerror-override.h: Add prototype.
10760         * lib/strerror-impl.h: Delete.
10761         * lib/strerror.c (strerror): New implementation.
10762         * modules/errno (Files): Add new files.
10763         (configure.ac): Compile new file as appropriate.
10764         * modules/strerror (Files): Drop unused file.
10765         (Depends-on): Drop strerror_r-posix.
10766         * MODULES.html.sh: Document strerror_r-posix.
10767         Requested by Sam Steingold.
10768
10769         perror: call strerror_r directly
10770         * modules/perror (Files): Drop strerror-impl.h.
10771         * lib/perror.c (perror): Use our own stack buffer, rather than
10772         calling a wrapper that uses static storage.
10773         * doc/posix-functions/perror.texi (perror): Document a limitation
10774         of our replacement.
10775
10776         strerror_r: fix includes for FreeBSD
10777         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10778         since we use abort on some platforms.
10779         Reported by Matthias Bolte.
10780
10781 2011-05-31  Bruno Haible  <bruno@clisp.org>
10782
10783         Fix link errors in tests: openat-die uses gettext-h.
10784         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10785         against $(LIBINTL).
10786         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10787         against $(LIBINTL).
10788         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10789         $(LIBINTL).
10790         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10791         against $(LIBINTL).
10792         * modules/linkat-tests (Makefile.am): Link test-linkat against
10793         $(LIBINTL).
10794         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10795         $(LIBINTL).
10796         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10797         against $(LIBINTL).
10798         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10799         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10800         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10801         $(LIBINTL).
10802         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10803         $(LIBINTL).
10804         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10805         $(LIBINTL).
10806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10807
10808 2011-05-31  Bruno Haible  <bruno@clisp.org>
10809
10810         Fix link errors in tests: wait-process uses gettext-h.
10811         * modules/nonblocking-pipe-tests (Makefile.am): Set
10812         test_nonblocking_pipe_main_LDADD.
10813         * modules/nonblocking-socket-tests (Makefile.am): Link
10814         test-nonblocking-socket-main against $(LIBINTL).
10815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10816
10817 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10818
10819         assert-h: work around 'verify' incompatibility
10820         * lib/verify.h: Use @...@ directives, not ifdef.
10821         * modules/assert-h (assert.h): Implement the directives.
10822         (assert.h): Substitute the symbol-prefix more consistently.
10823
10824 2011-05-29  Jim Meyering  <meyering@redhat.com>
10825
10826         trim: remove three superfluous assignments
10827         * lib/trim.c (trim2): Remove three superfluous assignments
10828         and correct brace positioning.
10829
10830 2011-05-29  Bruno Haible  <bruno@clisp.org>
10831
10832         wctype-h: Avoid namespace pollution on Solaris 2.6.
10833         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10834         identifiers.
10835         * doc/posix-headers/wctype.texi: Mention the problem.
10836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10837
10838 2011-05-28  Jim Meyering  <meyering@redhat.com>
10839
10840         parse-datetime.y: accommodate -Wstrict-overflow
10841         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10842         placate -Wstrict-overflow.
10843
10844         trim: avoid a warning from -O2 -Wstrict-overflow
10845         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10846
10847 2011-05-29  Bruno Haible  <bruno@clisp.org>
10848
10849         gnulib-tool: Fix bug in yesterday's commit.
10850         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10851         twice.
10852
10853 2011-05-29  Bruno Haible  <bruno@clisp.org>
10854
10855         Allow multiple gnulib generated include files to be combined.
10856         * gnulib-tool (func_compute_include_guard_prefix): New function.
10857         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10858         ${gl_include_guard_prefix} references.
10859         (func_import, func_create_testdir): Invoke
10860         func_compute_include_guard_prefix.
10861         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10862         * lib/ctype.in.h: Likewise.
10863         * lib/dirent.in.h: Likewise.
10864         * lib/errno.in.h: Likewise.
10865         * lib/fcntl.in.h: Likewise.
10866         * lib/float.in.h: Likewise.
10867         * lib/getopt.in.h: Likewise.
10868         * lib/iconv.in.h: Likewise.
10869         * lib/langinfo.in.h: Likewise.
10870         * lib/locale.in.h: Likewise.
10871         * lib/math.in.h: Likewise.
10872         * lib/netdb.in.h: Likewise.
10873         * lib/netinet_in.in.h: Likewise.
10874         * lib/poll.in.h: Likewise.
10875         * lib/pthread.in.h: Likewise.
10876         * lib/pty.in.h: Likewise.
10877         * lib/sched.in.h: Likewise.
10878         * lib/se-selinux.in.h: Likewise.
10879         * lib/search.in.h: Likewise.
10880         * lib/signal.in.h: Likewise.
10881         * lib/spawn.in.h: Likewise.
10882         * lib/stdarg.in.h: Likewise.
10883         * lib/stddef.in.h: Likewise.
10884         * lib/stdint.in.h: Likewise.
10885         * lib/stdio.in.h: Likewise.
10886         * lib/stdlib.in.h: Likewise.
10887         * lib/string.in.h: Likewise.
10888         * lib/strings.in.h: Likewise.
10889         * lib/sys_file.in.h: Likewise.
10890         * lib/sys_ioctl.in.h: Likewise.
10891         * lib/sys_select.in.h: Likewise.
10892         * lib/sys_socket.in.h: Likewise.
10893         * lib/sys_stat.in.h: Likewise.
10894         * lib/sys_time.in.h: Likewise.
10895         * lib/sys_times.in.h: Likewise.
10896         * lib/sys_uio.in.h: Likewise.
10897         * lib/sys_utsname.in.h: Likewise.
10898         * lib/sys_wait.in.h: Likewise.
10899         * lib/sysexits.in.h: Likewise.
10900         * lib/termios.in.h: Likewise.
10901         * lib/time.in.h: Likewise.
10902         * lib/unistd.in.h: Likewise.
10903         * lib/wchar.in.h: Likewise.
10904         * lib/wctype.in.h: Likewise.
10905         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10906         * modules/ctype (Makefile.am): Likewise.
10907         * modules/dirent (Makefile.am): Likewise.
10908         * modules/errno (Makefile.am): Likewise.
10909         * modules/fcntl-h (Makefile.am): Likewise.
10910         * modules/float (Makefile.am): Likewise.
10911         * modules/getopt-posix (Makefile.am): Likewise.
10912         * modules/iconv-h (Makefile.am): Likewise.
10913         * modules/langinfo (Makefile.am): Likewise.
10914         * modules/locale (Makefile.am): Likewise.
10915         * modules/math (Makefile.am): Likewise.
10916         * modules/netdb (Makefile.am): Likewise.
10917         * modules/netinet_in (Makefile.am): Likewise.
10918         * modules/poll-h (Makefile.am): Likewise.
10919         * modules/pthread (Makefile.am): Likewise.
10920         * modules/pty (Makefile.am): Likewise.
10921         * modules/sched (Makefile.am): Likewise.
10922         * modules/search (Makefile.am): Likewise.
10923         * modules/selinux-h (Makefile.am): Likewise.
10924         * modules/signal (Makefile.am): Likewise.
10925         * modules/spawn (Makefile.am): Likewise.
10926         * modules/stdarg (Makefile.am): Likewise.
10927         * modules/stddef (Makefile.am): Likewise.
10928         * modules/stdint (Makefile.am): Likewise.
10929         * modules/stdio (Makefile.am): Likewise.
10930         * modules/stdlib (Makefile.am): Likewise.
10931         * modules/string (Makefile.am): Likewise.
10932         * modules/strings (Makefile.am): Likewise.
10933         * modules/sys_file (Makefile.am): Likewise.
10934         * modules/sys_ioctl (Makefile.am): Likewise.
10935         * modules/sys_select (Makefile.am): Likewise.
10936         * modules/sys_socket (Makefile.am): Likewise.
10937         * modules/sys_stat (Makefile.am): Likewise.
10938         * modules/sys_time (Makefile.am): Likewise.
10939         * modules/sys_times (Makefile.am): Likewise.
10940         * modules/sys_uio (Makefile.am): Likewise.
10941         * modules/sys_utsname (Makefile.am): Likewise.
10942         * modules/sys_wait (Makefile.am): Likewise.
10943         * modules/sysexits (Makefile.am): Likewise.
10944         * modules/termios (Makefile.am): Likewise.
10945         * modules/time (Makefile.am): Likewise.
10946         * modules/unistd (Makefile.am): Likewise.
10947         * modules/wchar (Makefile.am): Likewise.
10948         * modules/wctype-h (Makefile.am): Likewise.
10949         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10950
10951 2011-05-29  Bruno Haible  <bruno@clisp.org>
10952
10953         assert-h: Allow multiple gnulib generated replacements to coexist.
10954         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10955
10956 2011-05-29  Bruno Haible  <bruno@clisp.org>
10957
10958         argp: Allow coexistence with strerror_r-posix module.
10959         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10960         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10961         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10962         not the glibc signature.
10963
10964 2011-05-28  Bruno Haible  <bruno@clisp.org>
10965
10966         gnulib-tool: Alternative structure of testdirs, similar to --import.
10967         * gnulib-tool: New option --single-configure.
10968         (func_usage): Document it.
10969         (single_configure): New variable.
10970         (func_modules_transitive_closure_separately,
10971         func_modules_transitive_closure_separately,
10972         func_determine_use_libtests, func_modules_add_dummy_separately,
10973         func_modules_to_filelist_separately): New functions, extracted from
10974         func_import.
10975         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10976         (func_import): Use the new functions.
10977         (func_create_testdir): Set final_modules. Handle $single_configure =
10978         true case.
10979
10980 2011-05-28  Bruno Haible  <bruno@clisp.org>
10981
10982         getloadavg: Remove an unreliable safety check.
10983         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10984         getloadavg.c is in place.
10985         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10986         Reported by Sam Steingold <sds@gnu.org>.
10987
10988 2011-05-28  Bruno Haible  <bruno@clisp.org>
10989
10990         doc: Cleanup yet another file produced by texinfo.tex.
10991         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10992
10993 2011-05-28  Bruno Haible  <bruno@clisp.org>
10994
10995         Finish the conditional dependencies mechanism.
10996         * gnulib-tool: New option --no-conditional-dependencies.
10997         (func_usage): Document it. Don't mark --conditional-dependencies as
10998         experimental.
10999         (cond_dependencies): The possible values can now be true, false, empty.
11000         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11001         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11002         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11003
11004 2011-05-28  Bruno Haible  <bruno@clisp.org>
11005
11006         doc: Use a recent texinfo.tex.
11007         * doc/Makefile (tex_opts): New variable.
11008         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11009
11010 2011-05-28  Jim Meyering  <meyering@redhat.com>
11011
11012         intprops.h: adjust comment to match code change
11013         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11014         only once, it *may* have side effects.  Also fix an unrelated typo.
11015         (_GL_INT_SIGNED): Likewise.
11016
11017 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11018
11019         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11020
11021 2011-05-26  Bruno Haible  <bruno@clisp.org>
11022
11023         mbsrchr: Avoid collision with system function on Interix.
11024         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11025         Reported by Markus Duft <mduft@gentoo.org>.
11026
11027 2011-05-15  James Youngman  <jay@gnu.org>
11028
11029         getopt: for ambiguous options, enumerate the possibilities.
11030         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11031         the ambiguous options when an ambiguous prefix is given. This was
11032         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11033         glibc change was
11034         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11035
11036 2011-05-25  Eric Blake  <eblake@redhat.com>
11037
11038         getcwd: work around mingw bug
11039         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11040         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11041         Reported by Matthias Bolte.
11042
11043 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11044
11045         test-intprops: disable -Wtype-limits diagnostics
11046         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11047         diagnostics.  Otherwise, the integer overflow macros generate many
11048         diagnostics.  Reported by Jim Meyering in
11049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11050
11051         intprops: shorten, to pacify gcc -Woverlength-strings
11052         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11053         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11054         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11055         likely to run afoul of C compiler limits for string constant lengths.
11056         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11057
11058 2011-05-24  Eric Blake  <eblake@redhat.com>
11059
11060         docs: document recently fixed glibc printf bug
11061         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11062         * doc/posix-functions/printf.texi (printf): Likewise.
11063         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11064         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11065
11066         closein-tests: convert to init.sh
11067         * modules/closein-tests (Files): Add init.sh
11068         * tests/test-closein.sh Use it.
11069
11070         yesno-tests: convert to init.sh
11071         * modules/yesno-tests (Files): Add init.sh.
11072         * tests/test-yesno.sh: Use it.
11073
11074         atexit-tests: ensure reliable exit status
11075         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11076         Reported by Bruno Haible.
11077
11078 2011-05-24  Bruno Haible  <bruno@clisp.org>
11079
11080         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11081         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11082         gl_PREREQ_STRERROR_R invocations from here...
11083         * modules/strerror_r-posix (configure.ac): ... to here.
11084
11085 2011-05-24  Eric Blake  <eblake@redhat.com>
11086
11087         strerror_r: fix missing header
11088         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11089
11090         strerror_r: fix AIX test failures
11091         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11092         ERANGE failure.
11093
11094         strerror_r: fix Solaris test failures
11095         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11096         failures.
11097         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11098
11099         strerror_r: enforce POSIX recommendations
11100         * lib/strerror_r.c (safe_copy): New helper method.
11101         (strerror_r): Guarantee a non-empty string.
11102         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11103         recent POSIX rulings and to match our strerror guarantees.
11104         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11105
11106 2011-05-24  Jim Meyering  <meyering@redhat.com>
11107
11108         test-perror2.c: avoid warning about unused variable
11109         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11110
11111 2011-05-24  Eric Blake  <eblake@redhat.com>
11112
11113         perror: avoid spurious test failure on HP-UX
11114         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11115
11116         tests: fix logic bug in init.sh
11117         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11118         shell.
11119
11120 2011-05-24  Jim Meyering  <meyering@redhat.com>
11121
11122         utimensat: do not reference an out-of-scope buffer
11123         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11124         declared in an inner scope, yet "times" would be dereferenced outside
11125         the scope in which "ts" was valid.
11126         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11127         of ts[2] "out/up", so that the use of aliased "times" (via
11128         "times = ts;") does not end up referencing an out-of-scope "ts"
11129
11130         opendir-safer.c: don't clobber errno; don't close negative FD
11131         * lib/opendir-safer.c (opendir_safer):
11132         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11133         file descriptor, and more importantly, don't clobber the
11134         offending errno value with EINVAL.  Before, upon failure
11135         of dup_safer, we would pass the negative file descriptor to
11136         fdopendir, which would clobber errno.
11137
11138 2011-05-23  Bruno Haible  <bruno@clisp.org>
11139
11140         idcache: Fix module description.
11141         * modules/idcache (Include): Set to "idcache.h".
11142
11143 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11144
11145         gnulib-tool: fix portability problem with MacOS sed
11146         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11147         before the "}".  Problem reported by Leo in
11148         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11149         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11150         sed_extract_condition1, sed_extract_condition2.
11151
11152 2011-05-23  Bruno Haible  <bruno@clisp.org>
11153
11154         hash: Simplify autoconf macro.
11155         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11156
11157 2011-05-23  Bruno Haible  <bruno@clisp.org>
11158
11159         getugroups: Fix module description.
11160         * modules/getugroups (Include): Set to "getugroups.h".
11161
11162 2011-05-23  Bruno Haible  <bruno@clisp.org>
11163
11164         linkat: Simplify autoconf macro.
11165         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11166
11167 2011-05-23  Bruno Haible  <bruno@clisp.org>
11168             Eric Blake  <eblake@redhat.com>
11169
11170         linkat, renameat: Update dependencies.
11171         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11172         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11173         symlinkat.
11174
11175 2011-05-23  Jim Meyering  <meyering@redhat.com>
11176
11177         maint.mk: more tight_scope improvements
11178         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11179         (_gl_TS_headers): Define only in if-0'd block.
11180         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11181         sometimes we must *not* use it.  Adjust uses accordingly.
11182         (sc_tight_scope): Use much simpler grep-based test to determine
11183         whether we skip this rule.
11184
11185         maint.mk: generalize/improve the tight-scope rule
11186         * top/maint.mk: Emit a warning when the test is skipped.
11187         (_gl_TS_dir): Add $(srcdir)/ prefix.
11188         (_gl_TS_function_match): Simplify, rather than trying
11189         to enumerate common types.  Otherwise, it would fail to match an
11190         "extern unsigned char const *" declaration in idutils.
11191         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11192         a way to support use of that type of macro.
11193         (_gl_TS_var_match): Simplify regexp.
11194         (_gl_TS_obj_files): New configurable variable.
11195         (_gl_TS_headers): Likewise.
11196
11197 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11198
11199         verify: fix bug when gnulib <assert.h> is also included
11200         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11201         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11202         Perhaps there's a better way, but this fixes the immediate problem.
11203         Problem reported by Bruno Haible in
11204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11205
11206 2011-05-22  Bruno Haible  <bruno@clisp.org>
11207
11208         xgetcwd: Simplify autoconf macro.
11209         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11210
11211 2011-05-22  Bruno Haible  <bruno@clisp.org>
11212
11213         New module 'mktime-internal'.
11214         * modules/mktime-internal: New file.
11215         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11216         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11217         mktime_internal as a C macro if libc has __mktime_internal.
11218         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11219         conditions.
11220         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11221
11222 2011-05-22  Bruno Haible  <bruno@clisp.org>
11223
11224         timegm: Correct mktime replacement statements.
11225         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11226         defining mktime as a C macro. This completes a 2009-07-28 commit.
11227
11228 2011-05-22  Bruno Haible  <bruno@clisp.org>
11229
11230         timegm: Simplify autoconf macro.
11231         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11232
11233 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11234
11235         clock-time: change to LGPLv2+.
11236         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11237         BSD-like but we have no mark for that; this is good enough for now.
11238
11239 2011-05-21  Bruno Haible  <bruno@clisp.org>
11240
11241         strerror_r: Fix comments.
11242         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11243
11244 2011-05-21  Bruno Haible  <bruno@clisp.org>
11245
11246         relocatable-prog-wrapper: Fix possible link error.
11247         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11248         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11249         (gl_FUNC_SETENV): ... to here.
11250         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11251         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11252
11253 2011-05-21  Bruno Haible  <bruno@clisp.org>
11254
11255         relocatable-prog-wrapper: Assume strerror() exists.
11256         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11257         m4/strerror.m4.
11258         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11259         * lib/relocwrapper.c: Remove mention of strerror module.
11260         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11261         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11262         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11263         C macro.
11264
11265 2011-05-21  Bruno Haible  <bruno@clisp.org>
11266
11267         select: Simplify replacement idiom.
11268         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11269         Win32 platforms.
11270         * lib/sys_select.in.h (select): Simplify accordingly.
11271         * modules/select (Depends-on): Likewise.
11272
11273 2011-05-21  Bruno Haible  <bruno@clisp.org>
11274
11275         mkdir-p: Simplify autoconf macro.
11276         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11277         gl_FUNC_LCHOWN.
11278
11279 2011-05-21  Eric Blake  <eblake@redhat.com>
11280
11281         strerror_r: avoid clobbering strerror on cygwin
11282         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11283         fall back instead to sys_errlist.
11284         * modules/strerror (configure.ac): Add witness.
11285         * tests/test-strerror_r.c (main): Enhance test.
11286         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11287         * tests/test-perror2.c (main): Free memory before exit.
11288
11289 2011-05-21  Bruno Haible  <bruno@clisp.org>
11290
11291         mkdtemp: Use gnulib naming conventions.
11292         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11293         * modules/mkdtemp (configure.ac): Update.
11294
11295 2011-05-20  Eric Blake  <eblake@redhat.com>
11296
11297         strerror_r: avoid corrupting errno on Solaris
11298         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11299         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11300
11301         strerror_r: avoid compiler warning
11302         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11303
11304         strerror_r: simplify AIX code
11305         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11306
11307         test-perror: avoid spurious failure on FreeBSD
11308         * modules/perror-tests (Depends-on): Add strerror, now that
11309         strerror_r no longer pulls it in.
11310
11311 2011-05-20  Bruno Haible  <bruno@clisp.org>
11312
11313         strerror_r-posix: Remove unused dependencies.
11314         * modules/strerror_r-posix (Depends-on): Remove strerror.
11315         Reported by Eric Blake.
11316
11317 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11318
11319         intprops: remove assumption about A|B representation
11320         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11321         is a valid integer if both A and B are.  Although this is true for
11322         all known practical hosts, the C standard doesn't guarantee it,
11323         and the code need not assume it.  Also, this change may work around
11324         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11326
11327 2011-05-20  Eric Blake  <eblake@redhat.com>
11328
11329         perror: work around FreeBSD bug
11330         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11331         is broken.  Move AC_LIBOBJ...
11332         * modules/perror (configure.ac): Here.
11333         * doc/posix-functions/perror.texi (perror): Document this.
11334         * tests/test-perror2.c (main): Enhance test.
11335
11336         test-perror: check for strerror interactions
11337         * tests/macros.h (STREQ): Add macro.
11338         * modules/perror-tests (Files): Add second test.
11339         * tests/test-perror2.c (main): New file.
11340         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11341
11342         test-perror: rewrite to use init script
11343         * modules/perror-tests (Files): Add init.sh.
11344         * tests/test-perror.sh: Use temporary directory.
11345
11346 2011-05-20  Jim Meyering  <meyering@redhat.com>
11347
11348         maint: replace misused "a" with "an"
11349         * doc/intprops.texi: "a integer"
11350         * doc/regex.texi: "a explanation"
11351         * lib/alignof.h: "a object"
11352         * lib/argmatch.h: "a explanation"
11353         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11354         * lib/stdint.in.h: "a integer"
11355         * lib/userspec.c: "a owner"
11356         * doc/gnulib.texi: Fix "a idea", and reword.
11357
11358 2011-05-19  Jim Meyering  <meyering@redhat.com>
11359
11360         maint: correct misuse of "a" and "an"
11361         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11362         * lib/argp-help.c: "an docum...": s/an/a/
11363         * lib/argp-parse.c: "An vector": s/An/A/
11364         * lib/execute.c: "an native": s/an/a/
11365         * lib/spawn-pipe.c: Likewise.
11366         * lib/gc.h: "an Gc_rc": s/an/a/
11367         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11368         * lib/fts.c: "an stat.st_dev": s/an/a/
11369
11370 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11371
11372         intprops-tests: work around HP-UX 11.23 cc bug with constants
11373         * tests/test-intprops.c (VERIFY): New macro.
11374         (main): Use it, instead of verify, to work around the compiler bug; see
11375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11376
11377         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11378         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11379         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11380         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11381         (_GL_REMAINDER_OVERFLOW): Use it.
11382
11383         intprops-tests: revert unsigned part of previous change
11384         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11385         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11386         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11388
11389 2011-05-19  Bruno Haible  <bruno@clisp.org>
11390
11391         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11392         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11393         strerror_r() returned without filling the buffer.
11394         Reported by Eric Blake.
11395
11396 2011-05-19  Eric Blake  <eblake@redhat.com>
11397
11398         strerror_r: guarantee unchanged errno
11399         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11400         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11401         failure.
11402         * tests/test-strerror_r.c (main): Enhance test.
11403
11404 2011-05-19  Bruno Haible  <bruno@clisp.org>
11405
11406         strerror_r: Reorder #if blocks.
11407         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11408         for consistency with the previous commit.
11409
11410 2011-05-19  Bruno Haible  <bruno@clisp.org>
11411
11412         perror: Avoid clobbering the strerror buffer when possible.
11413         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11414         * lib/strerror.c: Include it.
11415         * modules/strerror (Files): Add lib/strerror-impl.h.
11416         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11417         (my_strerror): New function, defined through lib/strerror-impl.h.
11418         (perror): Use it instead of strerror.
11419         * modules/perror (Files): Add lib/strerror-impl.h.
11420         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11421
11422 2011-05-19  Eric Blake  <eblake@redhat.com>
11423
11424         strerror_r: fix on newer cygwin
11425         * lib/strerror_r.c (strerror_r): Cygwin now has
11426         __xpg_strerror_r, use it.
11427
11428 2011-05-19  Bruno Haible  <bruno@clisp.org>
11429
11430         strerror_r: Avoid clobbering the strerror buffer when possible.
11431         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11432         (sys_nerr, sys_errlist): New declarations.
11433         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11434         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11435         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11436
11437 2011-05-19  Bruno Haible  <bruno@clisp.org>
11438
11439         strerror_r: Fix test failure on mingw.
11440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11441         EXTEND_STRERROR_R.
11442         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11443         macros from errno.in.h instead.
11444
11445 2011-05-19  Eric Blake  <eblake@redhat.com>
11446
11447         strerror: relax test for Solaris
11448         * tests/test-strerror.c (main): Permit Solaris behavior.
11449         * tests/test-strerror_r.c (main): Likewise.
11450
11451         strerror: enforce POSIX ruling on strerror(0)
11452         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11454         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11455         * doc/posix-functions/strerror.texi (strerror): Document it.
11456         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11457         * tests/test-strerror.c (main): Strengthen test.
11458         * tests/test-strerror_r.c (main): Likewise.
11459
11460 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11461
11462         intprop-tests: port to older and more-pedantic compilers
11463         * modules/intprops-tests (Files): Add tests/macros.h.
11464         * tests/test-intprops.c: Include macros.h.
11465         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11466         it's no longer documented to expand to an integer constant expression.
11467         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11468         argument is floating point, as it's no longer documented to expand
11469         to an integer constant expression in that case.
11470         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11471         compiler bugs reported by Bruno Haible.  See
11472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11473         (U0, U1): New constants, to work around the same bugs.  Also,
11474         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11475
11476         intprops: work around C compiler bugs
11477         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11478         bug in Sun C 5.11 2010/08/13 and other compilers; see
11479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11480
11481         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11482         * doc/intprops.texi (Integer Type Determination): Fix
11483         documentation for TYPE_IS_INTEGER: it returns an constant
11484         expression, not an integer constant expression.  Fix doc for
11485         TYPE_SIGNED: it returns an integer constant expression only if its
11486         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11487         hardly worth documented that way....)
11488
11489 2011-05-18  Bruno Haible  <bruno@clisp.org>
11490
11491         strerror_r: Avoid clobbering the strerror buffer when possible.
11492         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11493         Handle gnulib defined errno values here. When strerror() returns NULL
11494         or an empty string, return EINVAL.
11495         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11496         gnulib defined errno values here.
11497         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11498
11499 2011-05-18  Eric Blake  <eblake@redhat.com>
11500
11501         fnmatch: avoid compiler warning
11502         * lib/fnmatch_loop.c (FCT): Use correct type.
11503         Reported by Matthias Bolte.
11504
11505 2011-05-13  Jim Meyering  <meyering@redhat.com>
11506
11507         maint.mk: three new prohibit_<HDR>_without_use rules
11508         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11509         (sc_prohibit_stdio-safer_without_use): Likewise.
11510         (sc_prohibit_xfreopen_without_use): Likewise.
11511
11512 2011-05-17  Jim Meyering  <meyering@redhat.com>
11513
11514         announce-gen: fail if the NEWS delta is empty
11515         If there's nothing noteworthy in NEWS, then either you forgot
11516         or you shouldn't be releasing.
11517         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11518
11519 2011-05-17  Pádraig Brady <P@draigBrady.com>
11520
11521         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11522         reserved symbols starting with double underscore from the check.
11523
11524 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11525
11526         intprops: add doc
11527         * doc/intprops.texi: New file, documenting intprops.
11528         * doc/gnulib.texi (Particular Modules): Include it.
11529
11530         verify: add doc to gnulib manual and fix example
11531         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11532         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11533         (Compile-time Assertions): Fix example so it can't overflow.
11534
11535 2011-05-17  Jim Meyering  <meyering@redhat.com>
11536
11537         warnings.m4: don't usurp save_CPPFLAGS variable name
11538         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11539
11540         doc: fix typo
11541         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11542
11543 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11544             Bruno Haible  <bruno@clisp.org>
11545
11546         doc: Tweak recent change.
11547         * README (Portability guidelines): Tweak new text.
11548         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11549         Interix 6.1.
11550
11551 2011-05-16  Eric Blake  <eblake@redhat.com>
11552
11553         inttypes: avoid autoconf warning
11554         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11555         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11556
11557 2011-05-16  Sam Steingold <sds@gnu.org>
11558         and Eric Blake  <eblake@redhat.com>
11559
11560         vc-list-files: accept multiple directory operands
11561         * build-aux/vc-list-files: Iterate over all remaining operands.
11562
11563 2011-05-16  Bruno Haible  <bruno@clisp.org>
11564
11565         Fix confusion regarding deprecated modules.
11566         * modules/calloc (Status, Notice): Mark module as deprecated, not
11567         obsolete.
11568         * modules/fnmatch-posix (Status, Notice): Likewise.
11569         * modules/getdate (Status, Notice): Likewise.
11570         * modules/getopt (Status, Notice): Likewise.
11571         * modules/malloc (Status, Notice): Likewise.
11572         * modules/pipe (Status, Notice): Likewise.
11573         * modules/realloc (Status, Notice): Likewise.
11574         * modules/rename-dest-slash (Status, Notice): Likewise.
11575         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11576         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11577         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11578         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11579         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11580
11581 2011-05-16  Bruno Haible  <bruno@clisp.org>
11582
11583         doc: List the target platforms.
11584         * doc/gnulib-intro.texi (Target Platforms): New section.
11585         * doc/gnulib.texi (Introduction): Update menu.
11586         * README (Portability guidelines): Refer to the new section. Update
11587         statement about oldest supported environment. Remove rationale why
11588         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11589         unportable C89 function.
11590         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11591         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11592
11593 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11594
11595         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11596
11597 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11598
11599         intprops-tests: new module
11600         * modules/intprops-tests, tests/test-intprops.c: New files.
11601
11602         intprops: add safe, portable integer overflow checking
11603         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11604         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11605         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11606         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11607         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11608         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11609         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11610         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11611         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11612         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11613         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11614
11615 2011-05-12  James Youngman  <jay@gnu.org>
11616
11617         Add a test for glibc's Bugzilla bug #12378.
11618         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11619         doesn't allow the literal matching of a lone "[" (which is
11620         required by POSIX).
11621         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11622
11623 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11624
11625         Sync glibc change fixing Bugzilla bug #12378.
11626         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11627         beginning and fall back to matching as normal character if the
11628         string ends before the matching ']' is found.  This is what POSIX
11629         requires.
11630
11631 2011-05-13  Eric Blake  <eblake@redhat.com>
11632
11633         getcwd-lgpl: relax test for FreeBSD
11634         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11635         issue.
11636         * tests/test-getcwd-lgpl.c (main): Relax test.
11637         Reported by Matthias Bolte.
11638
11639 2011-05-11  Eric Blake  <eblake@redhat.com>
11640
11641         test-fflush: silence compiler warning
11642         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11643
11644 2011-05-11  Bruno Haible  <bruno@clisp.org>
11645
11646         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11647         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11648         * modules/canonicalize (Depends-on): Add 'nocrash'.
11649         * modules/canonicalize-lgpl (Depends-on): Likewise.
11650         * doc/posix-functions/realpath.texi: Update platforms list.
11651         Reported by Ryan Schmidt <ryandesign@macports.org>.
11652
11653 2011-05-11  Bruno Haible  <bruno@clisp.org>
11654
11655         group-member: Declare function in <unistd.h>.
11656         * lib/unistd.in.h (group_member): New declaration.
11657         * lib/group-member.h: Remove file.
11658         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11659         * tests/test-unistd-c++.cc: Check signature of group_member.
11660         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11661         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11662         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11663         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11664         HAVE_GROUP_MEMBER.
11665         * modules/group-member (Files): Remove lib/group-member.h.
11666         (Depends-on): Add unistd. Specify conditions.
11667         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11668         (Include): Change to <unistd.h>.
11669         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11670         HAVE_GROUP_MEMBER.
11671         * NEWS: Mention the change.
11672         * lib/euidaccess.c: Don't include group-member.h.
11673
11674 2011-05-11  Bruno Haible  <bruno@clisp.org>
11675
11676         group-member: Document module.
11677         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11678         module.
11679
11680 2011-05-11  Bruno Haible  <bruno@clisp.org>
11681
11682         fclose: Fix mistake earlier today.
11683         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11684
11685 2011-05-11  Eric Blake  <eblake@redhat.com>
11686
11687         fclose: preserve fflush errors
11688         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11689         Reported by Jim Meyering.
11690
11691         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11692         * build-aux/bootstrap (check_versions): When no specific version
11693         is required, merely check that the app produces an exit status
11694         that indicates its existence.
11695
11696         maint.mk: drop redundant check
11697         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11698         the same but better.
11699
11700 2011-05-11  Bruno Haible  <bruno@clisp.org>
11701
11702         fclose: Fix possible link error.
11703         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11704         unregister_shadow_fd. Improve comments.
11705         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11706         Eric Blake.
11707
11708 2011-05-11  Jim Meyering  <meyering@redhat.com>
11709
11710         maint.mk: improve "can not" detection and generalize rule name
11711         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11712         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11713         Use the same technique as in sc_prohibit_doubled_word, so that
11714         we recognize "can not" also when the words are separated by a newline.
11715         Suggested by Eric Blake.
11716         (perl_filename_lineno_text_): Define.  Factored out of...
11717         (prohibit_doubled_word_): ...here.  Use the new definition.
11718         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11719         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11720         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11721
11722 2011-05-10  Eric Blake  <eblake@redhat.com>
11723
11724         fclose: avoid double close race when possible
11725         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11726         all but WINDOWS_SOCKETS.
11727
11728 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11729
11730         openat: correct new comment
11731         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11732
11733 2011-05-10  Jim Meyering  <meyering@redhat.com>
11734
11735         openat: add comments
11736         * lib/openat-proc.c (openat_proc_name): Add comments,
11737         mostly from Eric Blake.
11738
11739 2011-05-09  Eric Blake  <eblake@redhat.com>
11740
11741         openat: reduce syscalls in first probe of /proc
11742         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11743         be a directory.  Simplify the probe for .. bugs.
11744         * modules/openat (Depends-on): Drop same-inode.
11745         Reported by Bastien ROUCARIES.
11746
11747 2011-05-09  Jim Meyering  <meyering@redhat.com>
11748
11749         maint.mk: change semantics/name of tight_scope variables
11750         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11751         Rename variables to align with semantics that make them more useful.
11752
11753         maint.mk: tweak new rule's name not to impinge
11754         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11755         (sc_tight_scope): Use new rule name rather than $@-0.
11756
11757         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11758         * top/maint.mk (sc_tight_scope): New rule.
11759         (sc_tight_scope-0): New rule, ifdef'd out.
11760         (_gl_TS_dir): Default.
11761         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11762         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11763
11764 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11765
11766         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11767         Haible <bruno@clisp.org>.
11768
11769 2011-05-08  Bruno Haible  <bruno@clisp.org>
11770
11771         Comments.
11772         * m4/isnanf.m4: Add comment.
11773         * m4/isnanl.m4: Likewise.
11774
11775 2011-05-08  Bruno Haible  <bruno@clisp.org>
11776
11777         glob: Remove obsolete macro.
11778         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11779
11780 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11781
11782         intprops: Sun C 5.11 supports __typeof__
11783         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11784         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11785         which is new.
11786         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11787
11788         intprops: switch to usual gnulib indenting and naming
11789         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11790         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11791
11792         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11793
11794 2011-05-08  Jim Meyering  <meyering@redhat.com>
11795
11796         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11797         * top/maint.mk (release-prep): Use make's --no-print-directory
11798         option when generating the announcement.  This eliminates the
11799         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11800         generated announcement template.
11801
11802 2011-05-08  Bruno Haible  <bruno@clisp.org>
11803
11804         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11805         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11806         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11807
11808 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11809
11810         ignore-value, verify: Omit include files from lib_SOURCES.
11811         * modules/ignore-value, modules/verify (Makefile.am):
11812         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11813         that leads Automake to duplicate use of am__objects_... variables
11814         in Makefile.in.  See
11815         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11816
11817 2011-05-07  Bruno Haible  <bruno@clisp.org>
11818
11819         fclose: Simplify autoconf macro.
11820         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11821         defined.
11822
11823 2011-05-07  Bruno Haible  <bruno@clisp.org>
11824
11825         canonicalize-lgpl: Fix autoconf macro ordering bug.
11826         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11827         gl_STDLIB_H_DEFAULTS.
11828
11829 2011-05-06  Eric Blake  <eblake@redhat.com>
11830
11831         maintainer-makefile: make sc_po_check easier to tune
11832         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11833         to probe for strings, such as an alternate location for gnulib.
11834
11835         fclose: guarantee behavior on seekable stdin
11836         * modules/fclose (Depends-on): Add fflush.
11837         * doc/posix-functions/fclose.texi (fclose): Document this.
11838         * tests/test-fclose.c (main): Make test for this unconditional.
11839
11840 2011-05-06  Bruno Haible  <bruno@clisp.org>
11841
11842         fflush, fpurge: Relicense under LGPLv2+.
11843         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11844         * modules/fpurge (License): Likewise.
11845         With permission from Eric Blake and Jim Meyering.
11846         Suggested by Eric Blake.
11847
11848 2011-05-06  Karl Berry  <karl@gnu.org>
11849
11850         * MODULES.html.sh (func_all_modules): remove exit.
11851
11852 2011-05-06  Jim Meyering  <meyering@redhat.com>
11853
11854         maint.mk: use info-gnu@ as the default only for a stable release
11855         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11856         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11857         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11858         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11859
11860 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11861
11862         assert-h: new module, which supports C1X-style static_assert
11863         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11864         * lib/verify.h: Revamp so that this can be copied into assert.h,
11865         while retaining the ability to use it standalone as before.
11866         Rename private identifiers so as not to encroach on the
11867         standard C namespace, since this is now used by assert.h.
11868         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11869         the old verify_true.
11870         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11871         the old verify_true.  Use _GL_VERIFY_TYPE.
11872         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11873         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11874         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11875         defined when this file is copied into the replacement assert.h.
11876         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11877         and _Static_assert is not built in.
11878         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11879         defined, and use the new macros mentioned above.
11880         * doc/posix-headers/assert.texi: Document this.
11881
11882 2011-05-05  Bruno Haible  <bruno@clisp.org>
11883
11884         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11885         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11886         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11887         gl_REPLACE_FCLOSE here.
11888         * modules/fflush (Depends-on): Remove fclose.
11889         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11890         combination with module 'fclose'.
11891
11892 2011-05-05  Bruno Haible  <bruno@clisp.org>
11893
11894         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11895         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11896         gl_FUNC_FFLUSH.
11897         (gl_FUNC_FFLUSH): Use it.
11898         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11899         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11900         gl_REPLACE_FSEEKO here.
11901
11902 2011-05-05  Bruno Haible  <bruno@clisp.org>
11903
11904         tzset: Relicense under LGPL.
11905         * modules/tzset (License): Change to LGPL.
11906         No agreement needed; it's a no-op.
11907
11908         strtoimax, strtoumax: Relicense under LGPL.
11909         * modules/strtoimax (License): Change to LGPL.
11910         * modules/strtoumax (License): Likewise.
11911         With permission from Jim Meyering, Paul Eggert:
11912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11914
11915         getgroups: Relicense under LGPL.
11916         * modules/getgroups (License): Change to LGPL.
11917         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11921
11922         nanosleep: Relicense under LGPL.
11923         * modules/nanosleep (License): Change to LGPL.
11924         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11925         Haible:
11926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11929         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11930
11931         futimens: Relicense under LGPL.
11932         * modules/futimens (License): Change to LGPL.
11933         With permission from Eric Blake:
11934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11935
11936         fflush: Relicense under LGPL.
11937         * modules/fflush (License): Change to LGPL.
11938         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11942
11943         tmpfile: Relicense under LGPL.
11944         * modules/tmpfile (License): Change to LGPL.
11945         With permission from Ben Pfaff:
11946         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11947
11948         isfinite: Relicense under LGPL.
11949         * modules/isfinite (License): Change to LGPL.
11950         With permission from Ben Pfaff, Bruno Haible:
11951         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11953
11954         acosl..tanl: Relicense under LGPL.
11955         * modules/acosl (License): Change to LGPL.
11956         * modules/asinl (License): Likewise.
11957         * modules/atanl (License): Likewise.
11958         * modules/cosl (License): Likewise.
11959         * modules/expl (License): Likewise.
11960         * modules/logl (License): Likewise.
11961         * modules/sinl (License): Likewise.
11962         * modules/sqrtl (License): Likewise.
11963         * modules/tanl (License): Likewise.
11964         Source code originally from glibc and Paolo Bonzini. Agreements:
11965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11967
11968 2011-05-05  Bruno Haible  <bruno@clisp.org>
11969
11970         signal: Define sighandler_t.
11971         * lib/signal.in.h (sighandler_t): New type.
11972         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11973         whether sighandler_t is defined.
11974         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11975         * modules/signal (Depends-on): Add extensions.
11976         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11977         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11978         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11979
11980 2011-05-05  Eric Blake  <eblake@redhat.com>
11981
11982         maint: remove useless REPLACE_*_H macros
11983         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11984         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11985         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11986         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11987         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11988         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11989         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11990         * m4/btowc.m4: Update callers.
11991         * m4/dirfd.m4: Likewise.
11992         * m4/duplocale.m4: Likewise.
11993         * m4/fchdir.m4: Likewise.
11994         * m4/fdopendir.m4: Likewise.
11995         * m4/inet_ntop.m4: Likewise.
11996         * m4/inet_pton.m4: Likewise.
11997         * m4/ioctl.m4: Likewise.
11998         * m4/mbrlen.m4: Likewise.
11999         * m4/mbrtowc.m4: Likewise.
12000         * m4/mbsinit.m4: Likewise.
12001         * m4/mbsnrtowcs.m4: Likewise.
12002         * m4/mbsrtowcs.m4: Likewise.
12003         * m4/poll.m4: Likewise.
12004         * m4/setlocale.m4: Likewise.
12005         * m4/wcrtomb.m4: Likewise.
12006         * m4/wcsnrtombs.m4: Likewise.
12007         * m4/wcsrtombs.m4: Likewise.
12008         * m4/wctob.m4: Likewise.
12009         * m4/wcwidth.m4: Likewise.
12010         * modules/posix_spawn: Likewise.
12011         * modules/posix_spawn_file_actions_addclose: Likewise.
12012         * modules/posix_spawn_file_actions_adddup2: Likewise.
12013         * modules/posix_spawn_file_actions_addopen: Likewise.
12014         * modules/posix_spawn_file_actions_destroy: Likewise.
12015         * modules/posix_spawn_file_actions_init: Likewise.
12016         * modules/posix_spawnattr_destroy: Likewise.
12017         * modules/posix_spawnattr_getflags: Likewise.
12018         * modules/posix_spawnattr_getpgroup: Likewise.
12019         * modules/posix_spawnattr_getschedparam: Likewise.
12020         * modules/posix_spawnattr_getschedpolicy: Likewise.
12021         * modules/posix_spawnattr_getsigdefault: Likewise.
12022         * modules/posix_spawnattr_getsigmask: Likewise.
12023         * modules/posix_spawnattr_init: Likewise.
12024         * modules/posix_spawnattr_setflags: Likewise.
12025         * modules/posix_spawnattr_setpgroup: Likewise.
12026         * modules/posix_spawnattr_setschedparam: Likewise.
12027         * modules/posix_spawnattr_setschedpolicy: Likewise.
12028         * modules/posix_spawnattr_setsigdefault: Likewise.
12029         * modules/posix_spawnattr_setsigmask: Likewise.
12030         * modules/posix_spawnp: Likewise.
12031
12032 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12033
12034         Add option to do-release-commit-and-tag to specify branch.
12035         * build-aux/do-release-commit-and-tag: Add --branch.
12036
12037 2011-05-03  Bruno Haible  <bruno@clisp.org>
12038
12039         Avoid unnecessary compilation units, through conditional dependencies.
12040         * modules/accept (Depends-on): Add conditions to the dependencies.
12041         * modules/acosl (Depends-on): Likewise.
12042         * modules/argz (Depends-on): Likewise.
12043         * modules/asinl (Depends-on): Likewise.
12044         * modules/atanl (Depends-on): Likewise.
12045         * modules/atoll (Depends-on): Likewise.
12046         * modules/bind (Depends-on): Likewise.
12047         * modules/btowc (Depends-on): Likewise.
12048         * modules/canonicalize-lgpl (Depends-on): Likewise.
12049         * modules/ceil (Depends-on): Likewise.
12050         * modules/ceilf (Depends-on): Likewise.
12051         * modules/ceill (Depends-on): Likewise.
12052         * modules/chdir-long (Depends-on): Likewise.
12053         * modules/chown (Depends-on): Likewise.
12054         * modules/close (Depends-on): Likewise.
12055         * modules/connect (Depends-on): Likewise.
12056         * modules/cosl (Depends-on): Likewise.
12057         * modules/dirfd (Depends-on): Likewise.
12058         * modules/dprintf (Depends-on): Likewise.
12059         * modules/dprintf-posix (Depends-on): Likewise.
12060         * modules/error (Depends-on): Likewise.
12061         * modules/euidaccess (Depends-on): Likewise.
12062         * modules/expl (Depends-on): Likewise.
12063         * modules/faccessat (Depends-on): Likewise.
12064         * modules/fchdir (Depends-on): Likewise.
12065         * modules/fclose (Depends-on): Likewise.
12066         * modules/fcntl (Depends-on): Likewise.
12067         * modules/fdopendir (Depends-on): Likewise.
12068         * modules/fflush (Depends-on): Likewise.
12069         * modules/floor (Depends-on): Likewise.
12070         * modules/floorf (Depends-on): Likewise.
12071         * modules/floorl (Depends-on): Likewise.
12072         * modules/fnmatch (Depends-on): Likewise.
12073         * modules/fopen (Depends-on): Likewise.
12074         * modules/fprintf-posix (Depends-on): Likewise.
12075         * modules/frexp (Depends-on): Likewise.
12076         * modules/frexp-nolibm (Depends-on): Likewise.
12077         * modules/frexpl (Depends-on): Likewise.
12078         * modules/frexpl-nolibm (Depends-on): Likewise.
12079         * modules/fseek (Depends-on): Likewise.
12080         * modules/fsusage (Depends-on): Likewise.
12081         * modules/ftell (Depends-on): Likewise.
12082         * modules/ftello (Depends-on): Likewise.
12083         * modules/futimens (Depends-on): Likewise.
12084         * modules/getcwd (Depends-on): Likewise.
12085         * modules/getcwd-lgpl (Depends-on): Likewise.
12086         * modules/getdelim (Depends-on): Likewise.
12087         * modules/getdomainname (Depends-on): Likewise.
12088         * modules/getgroups (Depends-on): Likewise.
12089         * modules/gethostname (Depends-on): Likewise.
12090         * modules/getline (Depends-on): Likewise.
12091         * modules/getlogin_r (Depends-on): Likewise.
12092         * modules/getopt-posix (Depends-on): Likewise.
12093         * modules/getpeername (Depends-on): Likewise.
12094         * modules/getsockname (Depends-on): Likewise.
12095         * modules/getsockopt (Depends-on): Likewise.
12096         * modules/getsubopt (Depends-on): Likewise.
12097         * modules/getusershell (Depends-on): Likewise.
12098         * modules/glob (Depends-on): Likewise.
12099         * modules/grantpt (Depends-on): Likewise.
12100         * modules/iconv_open (Depends-on): Likewise.
12101         * modules/iconv_open-utf (Depends-on): Likewise.
12102         * modules/inet_ntop (Depends-on): Likewise.
12103         * modules/inet_pton (Depends-on): Likewise.
12104         * modules/ioctl (Depends-on): Likewise.
12105         * modules/isapipe (Depends-on): Likewise.
12106         * modules/isfinite (Depends-on): Likewise.
12107         * modules/isinf (Depends-on): Likewise.
12108         * modules/lchown (Depends-on): Likewise.
12109         * modules/ldexpl (Depends-on): Likewise.
12110         * modules/link (Depends-on): Likewise.
12111         * modules/linkat (Depends-on): Likewise.
12112         * modules/listen (Depends-on): Likewise.
12113         * modules/logl (Depends-on): Likewise.
12114         * modules/lstat (Depends-on): Likewise.
12115         * modules/mbrlen (Depends-on): Likewise.
12116         * modules/mbrtowc (Depends-on): Likewise.
12117         * modules/mbsinit (Depends-on): Likewise.
12118         * modules/mbsnrtowcs (Depends-on): Likewise.
12119         * modules/mbsrtowcs (Depends-on): Likewise.
12120         * modules/mbtowc (Depends-on): Likewise.
12121         * modules/memcmp (Depends-on): Likewise.
12122         * modules/mkdir (Depends-on): Likewise.
12123         * modules/mkdtemp (Depends-on): Likewise.
12124         * modules/mkfifo (Depends-on): Likewise.
12125         * modules/mkfifoat (Depends-on): Likewise.
12126         * modules/mknod (Depends-on): Likewise.
12127         * modules/mkostemp (Depends-on): Likewise.
12128         * modules/mkostemps (Depends-on): Likewise.
12129         * modules/mkstemp (Depends-on): Likewise.
12130         * modules/mkstemps (Depends-on): Likewise.
12131         * modules/mktime (Depends-on): Likewise.
12132         * modules/nanosleep (Depends-on): Likewise.
12133         * modules/open (Depends-on): Likewise.
12134         * modules/openat (Depends-on): Likewise.
12135         * modules/perror (Depends-on): Likewise.
12136         * modules/poll (Depends-on): Likewise.
12137         * modules/popen (Depends-on): Likewise.
12138         * modules/posix_spawn (Depends-on): Likewise.
12139         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12140         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12141         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12142         * modules/posix_spawnp (Depends-on): Likewise.
12143         * modules/pread (Depends-on): Likewise.
12144         * modules/printf-posix (Depends-on): Likewise.
12145         * modules/ptsname (Depends-on): Likewise.
12146         * modules/putenv (Depends-on): Likewise.
12147         * modules/pwrite (Depends-on): Likewise.
12148         * modules/readline (Depends-on): Likewise.
12149         * modules/readlink (Depends-on): Likewise.
12150         * modules/readlinkat (Depends-on): Likewise.
12151         * modules/recv (Depends-on): Likewise.
12152         * modules/recvfrom (Depends-on): Likewise.
12153         * modules/regex (Depends-on): Likewise.
12154         * modules/remove (Depends-on): Likewise.
12155         * modules/rename (Depends-on): Likewise.
12156         * modules/renameat (Depends-on): Likewise.
12157         * modules/rmdir (Depends-on): Likewise.
12158         * modules/round (Depends-on): Likewise.
12159         * modules/roundf (Depends-on): Likewise.
12160         * modules/roundl (Depends-on): Likewise.
12161         * modules/rpmatch (Depends-on): Likewise.
12162         * modules/select (Depends-on): Likewise.
12163         * modules/send (Depends-on): Likewise.
12164         * modules/sendto (Depends-on): Likewise.
12165         * modules/setenv (Depends-on): Likewise.
12166         * modules/setlocale (Depends-on): Likewise.
12167         * modules/setsockopt (Depends-on): Likewise.
12168         * modules/shutdown (Depends-on): Likewise.
12169         * modules/sigaction (Depends-on): Likewise.
12170         * modules/signbit (Depends-on): Likewise.
12171         * modules/sigprocmask (Depends-on): Likewise.
12172         * modules/sinl (Depends-on): Likewise.
12173         * modules/sleep (Depends-on): Likewise.
12174         * modules/snprintf (Depends-on): Likewise.
12175         * modules/snprintf-posix (Depends-on): Likewise.
12176         * modules/socket (Depends-on): Likewise.
12177         * modules/sprintf-posix (Depends-on): Likewise.
12178         * modules/sqrtl (Depends-on): Likewise.
12179         * modules/stat (Depends-on): Likewise.
12180         * modules/strchrnul (Depends-on): Likewise.
12181         * modules/strdup-posix (Depends-on): Likewise.
12182         * modules/strerror (Depends-on): Likewise.
12183         * modules/strerror_r-posix (Depends-on): Likewise.
12184         * modules/strndup (Depends-on): Likewise.
12185         * modules/strnlen (Depends-on): Likewise.
12186         * modules/strptime (Depends-on): Likewise.
12187         * modules/strsep (Depends-on): Likewise.
12188         * modules/strsignal (Depends-on): Likewise.
12189         * modules/strstr-simple (Depends-on): Likewise.
12190         * modules/strtod (Depends-on): Likewise.
12191         * modules/strtoimax (Depends-on): Likewise.
12192         * modules/strtok_r (Depends-on): Likewise.
12193         * modules/strtoumax (Depends-on): Likewise.
12194         * modules/symlink (Depends-on): Likewise.
12195         * modules/symlinkat (Depends-on): Likewise.
12196         * modules/tanl (Depends-on): Likewise.
12197         * modules/tcgetsid (Depends-on): Likewise.
12198         * modules/tmpfile (Depends-on): Likewise.
12199         * modules/trunc (Depends-on): Likewise.
12200         * modules/truncf (Depends-on): Likewise.
12201         * modules/truncl (Depends-on): Likewise.
12202         * modules/uname (Depends-on): Likewise.
12203         * modules/unlink (Depends-on): Likewise.
12204         * modules/unlockpt (Depends-on): Likewise.
12205         * modules/unsetenv (Depends-on): Likewise.
12206         * modules/usleep (Depends-on): Likewise.
12207         * modules/utimensat (Depends-on): Likewise.
12208         * modules/vasprintf (Depends-on): Likewise.
12209         * modules/vdprintf (Depends-on): Likewise.
12210         * modules/vdprintf-posix (Depends-on): Likewise.
12211         * modules/vfprintf-posix (Depends-on): Likewise.
12212         * modules/vprintf-posix (Depends-on): Likewise.
12213         * modules/vsnprintf (Depends-on): Likewise.
12214         * modules/vsnprintf-posix (Depends-on): Likewise.
12215         * modules/vsprintf-posix (Depends-on): Likewise.
12216         * modules/wcrtomb (Depends-on): Likewise.
12217         * modules/wcscasecmp (Depends-on): Likewise.
12218         * modules/wcscspn (Depends-on): Likewise.
12219         * modules/wcsdup (Depends-on): Likewise.
12220         * modules/wcsncasecmp (Depends-on): Likewise.
12221         * modules/wcsnrtombs (Depends-on): Likewise.
12222         * modules/wcspbrk (Depends-on): Likewise.
12223         * modules/wcsrtombs (Depends-on): Likewise.
12224         * modules/wcsspn (Depends-on): Likewise.
12225         * modules/wcsstr (Depends-on): Likewise.
12226         * modules/wcstok (Depends-on): Likewise.
12227         * modules/wcswidth (Depends-on): Likewise.
12228         * modules/wctob (Depends-on): Likewise.
12229         * modules/wctomb (Depends-on): Likewise.
12230         * modules/wctype (Depends-on): Likewise.
12231         * modules/wcwidth (Depends-on): Likewise.
12232         * modules/write (Depends-on): Likewise.
12233
12234 2011-05-03  Bruno Haible  <bruno@clisp.org>
12235
12236         Support for conditional dependencies.
12237         * doc/gnulib.texi (Module description): Document the syntax of
12238         conditional dependencies.
12239         * gnulib-tool: New option --conditional-dependencies.
12240         (func_usage): Document it.
12241         (cond_dependencies): New variable.
12242         (func_get_automake_snippet_conditional,
12243         func_get_automake_snippet_unconditional): New functions, extracted from
12244         func_get_automake_snippet.
12245         (func_get_automake_snippet): Use them.
12246         (sed_first_32_chars): New variable.
12247         (func_module_shellfunc_name): New function.
12248         (func_module_shellvar_name): New function.
12249         (func_module_conditional_name): New function.
12250         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12251         func_cond_module_condition): New functions.
12252         (func_modules_transitive_closure): Add support for conditional
12253         dependencies.
12254         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12255         conditional automake snippet in an automake conditional.
12256         (func_emit_autoconf_snippets): Emit shell functions that contain the
12257         code for conditional modules.
12258         (func_import, func_create_testdir): Update specification.
12259
12260 2011-05-03  Eric Blake  <eblake@redhat.com>
12261
12262         test-getaddrinfo: report error information
12263         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12264
12265 2011-05-03  Jim Meyering  <meyering@redhat.com>
12266
12267         bootstrap: avoid build failure when $GZIP is set
12268         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12269         program name.  If defined at all, it is supposed to list gzip options.
12270         Reported by Alan Curry in http://debbugs.gnu.org/8609
12271
12272 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12273
12274         readme-release: new module with release instructions
12275         * modules/readme-release: New module.
12276         * top/README-release: New file, from coreutils, grep, diffutils.
12277         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12278
12279 2011-05-02  Eric Blake  <eblake@redhat.com>
12280
12281         fflush: also replace fclose when fixing fflush
12282         * modules/fflush (Depends-on): Add fclose.
12283         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12284         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12285         memstreams with no backing fd.
12286         * doc/posix-functions/fclose.texi (fclose): Document the use of
12287         fflush module to fix the bug.
12288         * tests/test-fclose.c (main): Relax test when fclose is used in
12289         isolation.
12290
12291         fclose: add some tests
12292         * modules/fclose-tests: New test module.
12293         * tests/test-fclose.c: New file.
12294         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12295
12296         fclose: reduced dependencies
12297         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12298         simpler lseek.
12299         * lib/fclose.c (rpl_fclose): Likewise.
12300         Reported by Simon Josefsson.
12301
12302         exit: drop remaining clients
12303         * modules/argmatch (Depends-on): Replace exit with stdlib.
12304         * modules/copy-file (Depends-on): Likewise.
12305         * modules/execute (Depends-on): Likewise.
12306         * modules/exitfail (Depends-on): Likewise.
12307         * modules/obstack (Depends-on): Likewise.
12308         * modules/pagealign_alloc (Depends-on): Likewise.
12309         * modules/pipe-filter-gi (Depends-on): Likewise.
12310         * modules/pipe-filter-ii (Depends-on): Likewise.
12311         * modules/savewd (Depends-on): Likewise.
12312         * modules/spawn-pipe (Depends-on): Likewise.
12313         * modules/wait-process (Depends-on): Likewise.
12314         * modules/xsetenv (Depends-on): Likewise.
12315         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12316         * modules/git-merge-changelog (Depends-on): Likewise.
12317         * modules/long-options (Depends-on): Likewise.
12318         * modules/pt_chown (Depends-on): Likewise.
12319         * modules/sysexits (Depends-on): Likewise.
12320
12321         freading: relax license from LGPLv3+ to LGPLv2+
12322         * modules/freading (License): Relax LGPL version.
12323
12324 2011-05-02  Bruno Haible  <bruno@clisp.org>
12325
12326         fchdir: Remove unused dependencies.
12327         * modules/fchdir (Depends-on): Remove include_next.
12328
12329 2011-05-02  Bruno Haible  <bruno@clisp.org>
12330
12331         gnulib-tool: Refactor.
12332         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12333         from func_emit_autoconf_snippets.
12334         (func_emit_autoconf_snippets): Use it.
12335
12336 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12337
12338         * NEWS: Document removal of 'exit'.
12339         * modules/exit: Remove file.
12340
12341 2011-05-01  Bruno Haible  <bruno@clisp.org>
12342
12343         Update DEPENDENCIES.
12344         * DEPENDENCIES (gettext): Recommend the newest release.
12345         Reported by Simon Josefsson.
12346
12347 2011-05-01  Bruno Haible  <bruno@clisp.org>
12348
12349         gnulib-tool: Reduce code duplication.
12350         * gnulib-tool (func_emit_autoconf_snippets): New function.
12351         (func_import, func_create_testdir): Use it.
12352
12353 2011-04-30  Eric Blake  <eblake@redhat.com>
12354
12355         fclose: don't fail on non-seekable input stream
12356         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12357         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12358         since fflush is allowed to fail in that case.
12359
12360 2011-04-30  Bruno Haible  <bruno@clisp.org>
12361
12362         dup3: cleanup
12363         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12364
12365 2011-04-30  Bruno Haible  <bruno@clisp.org>
12366
12367         netdb: Make it work in C++ mode.
12368         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12369         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12370         module.
12371         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12372         gl_MODULE_INDICATOR_FOR_TESTS.
12373         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12374         * modules/netdb-c++-tests: New file.
12375         * tests/test-netdb-c++.cc: New file.
12376
12377 2011-04-30  Bruno Haible  <bruno@clisp.org>
12378
12379         New modules 'vfscanf', 'vscanf'.
12380         * modules/vfscanf: New file.
12381         * modules/vscanf: New file.
12382         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12383         here.
12384         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12385         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12386
12387 2011-04-30  Bruno Haible  <bruno@clisp.org>
12388
12389         passfd: Add comments.
12390         * lib/passfd.c: Add comments about platforms.
12391
12392 2011-04-30  Bruno Haible  <bruno@clisp.org>
12393
12394         sys_uio: Make <sys/uio.h> self-contained.
12395         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12396         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12397
12398 2011-04-30  Bruno Haible  <bruno@clisp.org>
12399
12400         sys_socket: Ensure 'struct iovec' definition.
12401         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12402         <sys/socket.h>.
12403         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12404
12405 2011-04-30  Bruno Haible  <bruno@clisp.org>
12406
12407         sys_uio: Protect definition of 'struct iovec'.
12408         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12409         it as a C struct.
12410
12411 2011-04-30  Bruno Haible  <bruno@clisp.org>
12412
12413         manywarnings: fix indentation
12414         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12415
12416 2011-04-30  Pádraig Brady <P@draigBrady.com>
12417
12418         manywarnings: add -Wno-missing-field-initializers if needed.
12419         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12420         option if it's needed to allow initialization with { 0, }
12421
12422 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12423
12424         announce-gen: cosmetic improvement
12425         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12426
12427 2011-04-29  Jim Meyering  <meyering@redhat.com>
12428
12429         vc-list-files: indent with spaces, not TABs
12430         * build-aux/vc-list-files: Convert leading TABs to spaces,
12431         to match the style of most other files in gnulib.
12432
12433         announce-gen: indent with spaces, not TABs
12434         * build-aux/announce-gen: Convert all TABs to spaces, to match
12435         the style of most other files in gnulib.
12436
12437 2011-04-29  Eric Blake  <eblake@redhat.com>
12438
12439         quotearg: avoid uninitialized variable use
12440         * lib/quotearg.c (quoting_options_from_style): Initialize
12441         remaining fields, and ensure that custom styles are only used via
12442         quoting_options rather than quoting_style.
12443
12444 2011-04-29  Jim Meyering  <meyering@redhat.com>
12445
12446         maint.mk: remove unused VC-tag variable
12447         * top/maint.mk (VC-tag): Remove unused variable.
12448
12449 2011-04-29  Bruno Haible  <bruno@clisp.org>
12450
12451         netdb: fix gai_strerror replacements
12452         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12453         * modules/netdb: Substitute it.
12454
12455 2011-04-29  Jim Meyering  <meyering@redhat.com>
12456
12457         test-getcwd.c: avoid new set-but-not-used warning
12458         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12459         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12460         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12461         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12462
12463         test-hash.c: avoid a new shadowing warning
12464         * tests/test-hash.c (main): Don't shadow "dup".
12465
12466 2011-04-28  Eric Blake  <eblake@redhat.com>
12467
12468         getaddrinfo: fix gai_strerror signature
12469         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12470         and work around mingw with UNICODE defined.
12471         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12472         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12473         * modules/netdb (Makefile.am): Substitute it.
12474         * lib/netdb.in.h (gai_strerror): Declare replacement.
12475         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12476         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12477         the fix.
12478
12479         getsockopt: avoid compiler warning
12480         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12481         Reported by Matthias Bolte.
12482
12483         tests: drop unused link dependency
12484         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12485         * modules/dirent-safer-tests (Makefile.am): Likewise.
12486         * modules/fdopendir-tests (Makefile.am): Likewise.
12487         * modules/mkfifoat-tests (Makefile.am): Likewise.
12488         * modules/openat-safer-tests (Makefile.am): Likewise.
12489         * modules/openat-tests (Makefile.am): Likewise.
12490         * modules/readlinkat-tests (Makefile.am): Likewise.
12491         * modules/symlinkat-tests (Makefile.am): Likewise.
12492         * modules/linkat-tests (Makefile.am): Likewise.
12493         (Depends-on): Switch to filenamecat-lgpl.
12494         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12495         LIBINTL.
12496         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12497         * tests/test-linkat.c (main): Don't require xalloc.
12498
12499         hash, mgetgroups: drop xalloc dependency
12500         * lib/hash.c (includes): Adjust includes.
12501         * lib/mgetgroups.c (includes): Likewise.
12502         (xgetgroups): Move...
12503         * lib/xgetgroups.c: ...to new file.
12504         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12505         * modules/xgetgroups: New file, split from...
12506         * modules/mgetgroups: ...here.
12507         (Depends-on): Add xalloc-oversized.
12508         * modules/hash (Depends-on): Likewise.
12509         * modules/hash-tests (Depends-on): Drop xalloc.
12510         (test_hash_LDADD): Drop unused library.
12511         * tests/test-hash.c (main): Break xalloc dependency.
12512         (includes): Drop unused include.
12513
12514         xalloc-oversized: new module
12515         * modules/xalloc-oversized: New module.
12516         * modules/xalloc (Depends-on): Add it.
12517         * lib/xalloc.h (xalloc_oversized): Move...
12518         * lib/xalloc-oversized.h: ...into new file.
12519
12520         utimecmp: drop dependency on xmalloc
12521         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12522         due to memory pressure.
12523         * modules/utimecmp (Depends-on): Drop xalloc.
12524
12525 2011-04-27  Eric Blake  <eblake@redhat.com>
12526
12527         getcwd: fix mingw bugs
12528         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12529         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12530         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12531
12532 2011-04-27  Bruno Haible  <bruno@clisp.org>
12533
12534         mkstemps: Ensure declaration on MacOS X 10.5.
12535         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12536         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12537         MacOS X.
12538
12539 2011-04-27  Bruno Haible  <bruno@clisp.org>
12540
12541         mkstemp: More documentation.
12542         * doc/posix-functions/mkstemp.texi: Document header file problem on
12543         MacOS X.
12544
12545 2011-04-27  Bruno Haible  <bruno@clisp.org>
12546
12547         mkstemp: Tweak configure message when cross-compiling.
12548         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12549         result as a guess.
12550
12551 2011-04-27  Bruno Haible  <bruno@clisp.org>
12552
12553         clean-temp: Clarify what it does.
12554         * lib/clean-temp.h: Add more comments.
12555         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12556         module.
12557         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12558         * doc/glibc-functions/mkstemps.texi: Likewise.
12559         * doc/glibc-functions/mkostemps.texi: Likewise.
12560
12561 2011-04-27  Eric Blake  <eblake@redhat.com>
12562
12563         fchdir: avoid extra chdir and fix test
12564         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12565         getcwd-lgpl.
12566         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12567         have to be canonical.
12568         (canonicalize_file_name): Drop unused macro.
12569         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12570
12571         filenamecat-lgpl: fix licence
12572         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12573         when it was first created.
12574
12575         linkat, renameat: add missing dependency
12576         * modules/linkat (Depends-on): Require getcwd-lgpl.
12577         * modules/renameat (Depends-on): Likewise.
12578
12579         tests: reduce dependencies
12580         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12581         * tests/test-renameat.c (main): Likewise.
12582         * modules/linkat-tests (Depends-on): Relax dependency.
12583         * modules/renameat-tests (Depends-on): Likewise.
12584         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12585         dependency explicit.
12586
12587         save-cwd: reduce default dependency
12588         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12589         * lib/save-cwd.c: Update comments.
12590         * NEWS: Document the semantic change.
12591
12592         getcwd: enhance tests
12593         * tests/test-getcwd-lgpl.c: New file, taken from...
12594         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12595         repeat long path stress tests from m4 probe.
12596         * modules/getcwd-lgpl-tests: New module.
12597         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12598         * m4/getcwd-abort-bug.m4: Update comment.
12599         * m4/getcwd-path-max.m4: Likewise.
12600
12601         getcwd-lgpl: new module
12602         * modules/getcwd-lgpl: New module.
12603         * lib/getcwd-lgpl.c: New file.
12604         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12605         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12606         * modules/getcwd (configure.ac): Set C witness.
12607         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12608
12609         getcwd: tweak comments
12610         * m4/getcwd-abort-bug.m4: Fix comments.
12611         * m4/getcwd-path-max.m4: Likewise.
12612         * m4/getcwd.m4: Likewise.
12613
12614 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12615         and Eric Blake  <eblake@redhat.com>
12616
12617         mkstemp: replace if system version uses wrong permissions
12618         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12619         read/write mode bits set in file created by mkstemp.
12620         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12621
12622 2011-04-27  Eric Blake  <eblake@redhat.com>
12623
12624         passfd: avoid compiler warning
12625         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12626         Reported by Laine Stump.
12627
12628 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12629
12630         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12631         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12632
12633 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12634         and Eric Blake  <eblake@redhat.com>
12635
12636         mkstemp: mention clean-temp module
12637         * lib/mkstemp.c: Add comment.
12638         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12639
12640 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12641
12642         inttypes: also provide default values for 32-bit tests
12643         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12644         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12645
12646 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12647
12648         strtoumax: remove dependency on strtoimax
12649         This is like the strtoull change of yesterday.
12650         * modules/strtoumax (Files): Add lib/strtoimax.c.
12651         (Depends-on): Remove strtoimax and add verify.
12652
12653         inttypes-incomplete: new module
12654         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12655         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12656         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12657         of gl_INTTYPES_H.
12658         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12659         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12660         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12661         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12662         * modules/strtoumax, modules/xstrtol (Depends-on):
12663         Depend on inttypes-incomplete, not inttypes.
12664         * modules/inttypes-incomplete: New module, containing the contents
12665         of the old modules/inttypes module, except that the Files: section
12666         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12667         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12668         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12669         (Depends-on): Depend only on inttypes-incomplete.
12670         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12671
12672         inttypes: omit now-redundant strtoimax and strtoumax work
12673         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12674         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12675
12676         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12677         This supports apps that need pointers to strtoimax and strtoumax,
12678         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12679         nonexistent functions.  See
12680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12681         et seq.
12682         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12683         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12684         a macro.
12685         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12686
12687 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12688
12689         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12690
12691 2011-04-25  Bruno Haible  <bruno@clisp.org>
12692
12693         strtol, strtoul: Mark modules as obsolete.
12694         * modules/strtol (Status, Notice): New sections.
12695         * modules/strtoul (Status, Notice): New sections.
12696
12697 2011-04-25  Bruno Haible  <bruno@clisp.org>
12698
12699         strtod: Remove check for strtod, unless supporting old platforms.
12700         * modules/strtod-obsolete: New file.
12701         * m4/strtod-obsolete.m4: New file.
12702         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12703         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12704         * modules/strtod (Depends-on): Add strtod-obsolete.
12705         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12706
12707 2011-04-25  Bruno Haible  <bruno@clisp.org>
12708
12709         strcase: Make module obsolete.
12710         * modules/strcase (Status, Notice): New sections.
12711
12712 2011-04-25  Bruno Haible  <bruno@clisp.org>
12713
12714         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12715         * modules/dup2-obsolete: New file.
12716         * m4/dup2-obsolete.m4: New file.
12717         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12718         gl_FUNC_DUP2_OBSOLETE is not also defined.
12719         * modules/dup2 (Depends-on): Add dup2-obsolete.
12720         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12721
12722 2011-04-25  Bruno Haible  <bruno@clisp.org>
12723
12724         strnlen: Avoid memchr related link error on old obsolete platforms.
12725         * modules/memchr-obsolete: New file.
12726         * m4/memchr-obsolete.m4: New file.
12727         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12728         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12729         * modules/memchr (Depends-on): Add memchr-obsolete.
12730         * modules/strnlen (Depends-on): Likewise.
12731         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12732
12733 2011-04-25  Jim Meyering  <meyering@redhat.com>
12734
12735         maint.mk: makefile_at_at_check extend and clean up
12736         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12737         in addition to */Makefile.am.
12738         Exempt legitimate uses of @VAR@ notation, e.g.,
12739         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12740         Remove obsolete coreutils-specific comment.
12741         Prompted by discussion here:
12742         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12743
12744 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12745
12746         strtoul: remove dependency on strtol
12747         This is so that 'configure' need not check for strtol merely because
12748         the application needs strtoul.
12749         * modules/strtoul (Files): Add lib/strtol.c.
12750         (Depends-on): Remove strtol.
12751
12752         strtoull: remove dependency on strtoul
12753         This is like the strtoll change.
12754         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12755         (Depends-on): Remove strtoul.
12756
12757         strtoll: remove dependency on strtol
12758         This is so that 'configure' need not check for strtol merely because
12759         the application needs strtoll.
12760         * modules/strtoll (Files): Add lib/strtol.c.
12761         (Depends-on): Remove strtol.
12762
12763 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12764
12765         inttypes: Move some configure check to module 'imaxdiv'.
12766         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12767         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12768         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12769
12770 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12771
12772         inttypes: Move some configure check to module 'imaxabs'.
12773         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12774         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12775         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12776
12777 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12778
12779         inttypes: Remove configure tests that are not needed since 2009-12-31.
12780         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12781         gl_cv_header_working_inttypes_h.
12782
12783 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12784
12785         * modules/strnlen (Depends-on): Remove memchr.
12786         The strnlen implementation doesn't need the memchr module's fixes; see
12787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12788
12789         strtol: remove dependency on wchar
12790         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12791         * modules/strtol (Depends-on): Remove wchar.
12792
12793 2011-04-21  Eric Blake  <eblake@redhat.com>
12794
12795         passfd: fix test regression on Linux
12796         * modules/passfd-tests (configure.ac): Correct socketpair check.
12797
12798         passfd: speed up configure and drop unused code
12799         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12800         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12801         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12802         Instead of probing at configure for unix_scm_rights_bsd44_way,
12803         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12804         check to a struct member probe.
12805         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12806         (sendfd, recvfd): Update preprocessor checks.
12807         * modules/passfd (Files): Reflect rename, and drop unused file.
12808         (Depends-on): Drop unused dependency.
12809
12810         passfd: allow compilation on mingw
12811         * modules/sys_socket (Depends-on): Add sys_uio.
12812         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12813         iovec and a minimal struct msghdr.
12814         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12815         * tests/test-sys_socket.c (main): Enhance test.
12816         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12817         guaranteed to provide what we need.
12818         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12819         * modules/passfd-tests (Depends-on): Add sys_wait.
12820         * tests/test-passfd.c (main): Skip test on mingw, for now.
12821         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12822         partial 'struct msghdr' implementation.
12823
12824         sys_uio: new module
12825         * modules/sys_uio: New module.
12826         * modules/sys_uio-tests: Likewise.
12827         * lib/sys_uio.in.h: New file.
12828         * m4/sys_uio_h.m4: Likewise.
12829         * tests/test-sys_uio.c: Likewise.
12830         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12831         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12832
12833 2011-04-20  Jim Meyering  <meyering@redhat.com>
12834
12835         useless-if-before-free: avoid false-positive
12836         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12837         disjunct so that it too requires a terminating ";".  Without that,
12838         this script would identify as useless one statement from gcc that
12839         was not:
12840           if (aligned_ptr)
12841             free (((void **) aligned_ptr) [-1]);
12842
12843 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12844
12845         doc: update users.txt.
12846         * users.txt: Add barcode.
12847
12848 2011-04-19  Bruno Haible  <bruno@clisp.org>
12849
12850         ioctl: Remove link dependency on native Windows.
12851         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12852         (gl_close_fn, gl_ioctl_fn): New types.
12853         (struct fd_hook): Renamed from struct close_hook. Change type of
12854         private_close_fn field. Add private_ioctl_fn field.
12855         (close_hook_fn): Add parameter for primary close method.
12856         (execute_close_hooks, execute_all_close_hooks): Likewise.
12857         (ioctl_hook_fn): New type.
12858         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12859         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12860         argument.
12861         (unregister_fd_hook): Renamed from unregister_close_hook.
12862         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12863         Don't include <unistd.h>.
12864         (close): Remove undef.
12865         (anchor): Update.
12866         (execute_close_hooks): Add argument for primary close method.
12867         (execute_all_close_hooks): Likewise.
12868         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12869         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12870         argument. Allow each argument to be NULL.
12871         (unregister_fd_hook): Renamed from unregister_close_hook.
12872         * lib/close.c (rpl_close): Pass 'close' function pointer to
12873         execute_all_close_hooks.
12874         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12875         (primary_ioctl): New function.
12876         (ioctl): Don't call ioctlsocket here. Instead, call
12877         execute_all_ioctl_hooks.
12878         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12879         close method.
12880         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12881         (fd_sockets_hook): Renamed from close_sockets_hook.
12882         (gl_sockets_startup, gl_sockets_cleanup): Update.
12883         * modules/fd-hook: Renamed from modules/close-hook. Update.
12884         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12885         * modules/sockets (Depends-on): Likewise.
12886         * modules/ioctl (Depends-on): Add fd-hook.
12887         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12888         GNULIB_SOCKET.
12889
12890 2011-04-19  Bruno Haible  <bruno@clisp.org>
12891
12892         Move the support of O_NONBLOCK in open() to the 'open' module.
12893         * modules/nonblocking (Depends-on): Remove 'open'.
12894         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12895         gl_cv_have_open_O_NONBLOCK.
12896         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12897         O_NONBLOCK support.
12898         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12899
12900 2011-04-17  Bruno Haible  <bruno@clisp.org>
12901
12902         pipe2: Simplify code.
12903         * lib/pipe2.c (pipe2): Reduce code duplication.
12904
12905 2011-04-17  Bruno Haible  <bruno@clisp.org>
12906
12907         nonblocking: Add comment.
12908         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12909
12910 2011-04-17  Bruno Haible  <bruno@clisp.org>
12911
12912         nonblocking: Add tests for sockets.
12913         * tests/test-nonblocking-socket.sh: New file.
12914         * tests/test-nonblocking-socket-main.c: New file.
12915         * tests/test-nonblocking-socket-child.c: New file.
12916         * tests/test-nonblocking-socket.h: New file.
12917         * tests/socket-server.h: New file.
12918         * tests/socket-client.h: New file.
12919         * modules/nonblocking-socket-tests: New file.
12920         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12921
12922 2011-04-17  Bruno Haible  <bruno@clisp.org>
12923
12924         nonblocking: Add tests for pipes.
12925         * tests/test-nonblocking-pipe.sh: New file.
12926         * tests/test-nonblocking-pipe-main.c: New file.
12927         * tests/test-nonblocking-pipe-child.c: New file.
12928         * tests/test-nonblocking-pipe.h: New file.
12929         * tests/test-nonblocking-writer.h: New file.
12930         * tests/test-nonblocking-reader.h: New file.
12931         * tests/test-nonblocking-misc.h: New file.
12932         * modules/nonblocking-pipe-tests: New file.
12933         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12934
12935 2011-04-16  Bruno Haible  <bruno@clisp.org>
12936
12937         gettext: Clarify the needed programmer actions.
12938         * modules/gettext (Notice): New field.
12939         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12940
12941 2011-04-16  Bruno Haible  <bruno@clisp.org>
12942
12943         strchrnul: Tweak last commit.
12944         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12945         bug.
12946         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12947         as in _GL_FUNCDECL_SYS.
12948         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12949         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12950
12951 2011-04-15  Eric Blake  <eblake@redhat.com>
12952
12953         strchrnul: work around cygwin bug
12954         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12955         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12957         * modules/string (Makefile.am): Substitute it.
12958         * lib/string.in.h (strchrnul): Use it.
12959
12960 2011-04-15  Bruno Haible  <bruno@clisp.org>
12961
12962         Don't require lib/stdio-write.c when only module 'stdio' is used.
12963         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12964         invocation.
12965         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12966
12967 2011-04-14  Bruno Haible  <bruno@clisp.org>
12968
12969         Support non-blocking pipe I/O in read() on native Windows.
12970         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12971         (read): New declaration.
12972         * lib/read.c: New file.
12973         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12974         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12975         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12976         vscanf): New declarations.
12977         * lib/stdio-read.c: New file.
12978         * m4/read.m4: New file.
12979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12980         REPLACE_READ.
12981         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12982         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12983         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12984         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12985         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12986         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12987         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12988         * modules/read: New file.
12989         * modules/nonblocking (Files): Add lib/stdio-read.c.
12990         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12991         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12992         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12993         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12994         * modules/pread (Depends-on): Add read.
12995         * modules/safe-read (Depends-on): Likewise.
12996         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12997         gets, scanf, vfscanf, vscanf): Verify signatures.
12998         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12999         problem with non-blocking pipes.
13000         * doc/posix-functions/fgetc.texi: Likewise.
13001         * doc/posix-functions/fgets.texi: Likewise.
13002         * doc/posix-functions/fread.texi: Likewise.
13003         * doc/posix-functions/fscanf.texi: Likewise.
13004         * doc/posix-functions/getc.texi: Likewise.
13005         * doc/posix-functions/getchar.texi: Likewise.
13006         * doc/posix-functions/gets.texi: Likewise.
13007         * doc/posix-functions/scanf.texi: Likewise.
13008         * doc/posix-functions/vfscanf.texi: Likewise.
13009         * doc/posix-functions/vscanf.texi: Likewise.
13010
13011 2011-04-14  Bruno Haible  <bruno@clisp.org>
13012
13013         Support non-blocking pipe I/O in write() on native Windows.
13014         * lib/write.c (rpl_write): Split a write request that failed merely
13015         because the byte count was larger than the pipe buffer's size.
13016         * doc/posix-functions/write.texi: Mention the problem with large byte
13017         counts.
13018
13019 2011-04-14  Bruno Haible  <bruno@clisp.org>
13020
13021         wchar: Ensure that wchar_t gets defined on uClibc.
13022         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13023         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13024
13025 2011-04-13  Bruno Haible  <bruno@clisp.org>
13026
13027         safe-write, full-read: Avoid unnecessary compilation units.
13028         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13029         (Depends-on): Remove safe-read. Add ssize_t.
13030         * modules/full-read (Files): Add lib/full-write.c.
13031         (Depends-on): Add full-write.
13032
13033 2011-04-13  Bruno Haible  <bruno@clisp.org>
13034
13035         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13036         * modules/pwrite (Depends-on): Add 'write'.
13037
13038 2011-04-13  Bruno Haible  <bruno@clisp.org>
13039
13040         Support non-blocking pipe I/O in write() on native Windows.
13041         * lib/unistd.in.h (write): Enable replacement also if
13042         GNULIB_UNISTD_H_NONBLOCKING is 1.
13043         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13044         (rpl_write): When failing to write on a non-blocking pipe, change
13045         errno from ENOSPC to EAGAIN.
13046         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13047         putchar, puts, vfprintf, vprintf): Enable replacement also if
13048         GNULIB_STDIO_H_NONBLOCKING is 1.
13049         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13050         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13051         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13052         CALL_WITH_SIGPIPE_EMULATION.
13053         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13054         * m4/nonblocking.m4: New file.
13055         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13056         for non-blocking I/O support.
13057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13058         GNULIB_UNISTD_H_NONBLOCKING.
13059         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13060         required for non-blocking I/O support.
13061         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13062         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13063         lib/stdio-write.c, m4/asm-underscore.m4.
13064         (Depends-on): Add stdio, unistd.
13065         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13066         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13067         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13068         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13069         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13070         problem with non-blocking pipes.
13071         * doc/posix-functions/fputc.texi: Likewise.
13072         * doc/posix-functions/fputs.texi: Likewise.
13073         * doc/posix-functions/fwrite.texi: Likewise.
13074         * doc/posix-functions/printf.texi: Likewise.
13075         * doc/posix-functions/putc.texi: Likewise.
13076         * doc/posix-functions/putchar.texi: Likewise.
13077         * doc/posix-functions/puts.texi: Likewise.
13078         * doc/posix-functions/vfprintf.texi: Likewise.
13079         * doc/posix-functions/vprintf.texi: Likewise.
13080         * doc/posix-functions/write.texi: Likewise.
13081
13082 2011-04-10  Jim Meyering  <meyering@redhat.com>
13083
13084         maint.mk: prohibit doubled words
13085         Detect them also when they're separated by a newline.
13086         There are 3 ways to customize it:
13087           - disable the test on a per file basis, as usual with rules using
13088             $(VC_LIST_EXCEPT)
13089           - replace the default doubled-word-selecting regexp (affects all files)
13090           - ignore a particular file-vs-doubled-word match
13091         I nearly used that last one to ignore the "is is" match in
13092         coreutils' NEWS file, since the text was "ls -is is ..."
13093         To do that, I would have added this line to cfg.mk:
13094           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13095         but it would have ignored any "is is" match in NEWS.
13096         Low probability, but still...
13097         Instead, I changed the text, slightly:
13098           -  ls -is is now consistent with ls -lis in ignoring values returned
13099           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13100         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13101         (prohibit_doubled_word_): Define.
13102         (sc_prohibit_doubled_word): New rule.
13103         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13104
13105 2011-04-10  Jim Meyering  <meyering@redhat.com>
13106
13107         maint: fix doubled-word typo in comment
13108         * m4/gethostname.m4: s/is is/it is/
13109         * m4/getdomainname.m4: Likewise.
13110
13111 2011-04-10  Jim Meyering  <meyering@redhat.com>
13112
13113         maint: remove doubled word: s/it it/it/
13114         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13115
13116 2011-04-10  Jim Meyering  <meyering@redhat.com>
13117
13118         maint.mk: remove useless semicolon and backslash
13119         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13120         semicolon and backslash.
13121
13122 2011-04-10  Bruno Haible  <bruno@clisp.org>
13123
13124         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13125         * modules/stdint-tests (Depends-on): Add wchar.
13126
13127 2011-04-10  Jim Meyering  <meyering@redhat.com>
13128
13129         maint: remove doubled words in comments, e.g., s/a a/a/
13130         * lib/strptime.c (day_of_the_week): s/the the/the/
13131         * tests/test-chown.h (test_chown): s/a a/a/
13132
13133         test-chown.h: correct a cast
13134         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13135         when the destination is a stat.st_gid.
13136
13137 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13138
13139         getaddrinfo: Fix test for sa_len member.
13140         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13141         include <sys/types.h> before <sys/socket.h>.
13142
13143 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13144
13145         maint: change "can not" to "cannot"
13146         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13147         boundaries.
13148
13149 2011-04-09  Jim Meyering  <meyering@redhat.com>
13150
13151         maint: change "a a" to "a"
13152         * tests/test-lchown.h (test_lchown): s/a a/a/
13153
13154         maint.mk: prohibit \<the the\>
13155         * top/maint.mk (sc_prohibit_the_the): New rule.
13156
13157         maint: fix "the the" in comment
13158         * lib/count-one-bits.h: s/the the/the/
13159
13160         maint: change "can not" to "cannot"
13161         But do not change the occurrences in maintain.texi or in
13162         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13163         * doc/gnulib-tool.texi: s/can not/cannot/
13164         * doc/posix-functions/accept.texi (accept): Likewise.
13165         * doc/posix-functions/socket.texi (socket): Likewise.
13166         * lib/mbrtowc.c: Likewise.
13167
13168         maint.mk: prohibit use of "can not"
13169         * top/maint.mk (sc_prohibit_can_not): New rule.
13170         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13171
13172 2011-04-09  Bruno Haible  <bruno@clisp.org>
13173
13174         careadlinkat: Guard against misuse of careadlinkatcwd.
13175         * lib/careadlinkat.c: Include <stdlib.h>.
13176         (careadlinkatcwd): Check that the fd argument is as expected.
13177
13178 2011-04-09  Bruno Haible  <bruno@clisp.org>
13179
13180         careadlinkat: Use common coding style.
13181         * lib/careadlinkat.c: Move gnulib includes after system includes.
13182
13183 2011-04-09  Bruno Haible  <bruno@clisp.org>
13184
13185         careadlinkat: Clarify specification.
13186         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13187         (careadlinkatcwd): Add comment.
13188         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13189
13190 2011-04-09  Bruno Haible  <bruno@clisp.org>
13191
13192         areadlinkat: Avoid link error on many platforms.
13193         * modules/areadlinkat (Depends-on): Add areadlink.
13194
13195 2011-04-09  Bruno Haible  <bruno@clisp.org>
13196
13197         allocator, careadlinkat: Fix double-inclusion guard.
13198         * lib/allocator.h: Fix double-inclusion guard.
13199         * lib/careadlinkat.h: Likewise.
13200
13201 2011-04-09  Bruno Haible  <bruno@clisp.org>
13202
13203         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13204         * lib/relocwrapper.c: Update dependencies hierarchy.
13205         * build-aux/install-reloc: Update list of files to be compiled.
13206         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13207         lib/allocator.[hc].
13208
13209 2011-04-08  Eric Blake  <eblake@redhat.com>
13210
13211         strftime: silence gnulib-tool warning
13212         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13213
13214 2011-04-08  Bruno Haible  <bruno@clisp.org>
13215
13216         verify: Fix syntax error with GCC 4.6 in C++ mode.
13217         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13218         (HAVE_STATIC_ASSERT): New macro.
13219         (verify_true, verify): Use 'static_assert' if it is supported and
13220         '_Static_assert' is not supported.
13221
13222 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13223
13224         allocator: New module.
13225         * modules/allocator, lib/allocator.c: New files.
13226         * lib/allocator.h (stdlib_allocator): New decl.
13227         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13228         Remove.  Do not include <stdlib.h>.
13229         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13230         * modules/careadlinkat (Files): Remove lib/allocator.h.
13231         (Depends-on): Add allocator.
13232
13233         stdlib: let modules use system malloc, realloc
13234         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13235         if !_GL_USE_STDLIB_ALLOC.
13236         (malloc, realloc): Limit this change to a smaller scope.
13237
13238         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13239         (malloc, realloc): Don't #undef; no longer needed.
13240         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13241         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13242         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13243         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13244         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13245         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13246         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13247         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13248
13249         careadlinkat: rename members to avoid problem
13250         * lib/allocator.h (struct allocator): Rename members from
13251         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13252         and realloc are #define'd.  Reported by Eric Blake in
13253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13254         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13255
13256 2011-04-08  Eric Blake  <eblake@redhat.com>
13257
13258         nonblocking: reduce dependency
13259         * tests/test-nonblocking.c: Only test sockets when in use.
13260         * modules/nonblocking-tests (Depends-on): Drop socket.
13261         (Makefile.am): Link even if sockets are not present.
13262         * modules/pipe2-tests (Makefile.am): Likewise.
13263         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13264
13265         pipe2: fix O_NONBLOCK support on mingw
13266         * modules/pipe2 (Depends-on): Add nonblocking.
13267         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13268         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13269         * tests/test-nonblocking.c (main): Likewise.
13270         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13271
13272         fcntl-h: fix O_ACCMODE on cygwin
13273         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13274         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13275
13276         pipe-filter: drop O_NONBLOCK workarounds
13277         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13278         * modules/pipe-filter-ii (Depends-on): Likewise.
13279         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13280
13281         nonblocking: provide O_NONBLOCK for mingw
13282         * modules/nonblocking (Depends-on): Add open.
13283         (configure.ac): Set new witness macro.
13284         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13285         * modules/fcntl-h (Makefile.am): Substitute it.
13286         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13287         nonblocking module is in use.
13288         * lib/nonblocking.c: Adjust portability test.
13289         * lib/open.c (open): Don't let native open see gnulib flag.
13290         * tests/test-fcntl-h.c (main): Enhance test.
13291         * tests/test-open.h (test_open): Likewise.
13292         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13293
13294         careadlinkat: fix compilation error on mingw
13295         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13296         within struct allocator.
13297
13298 2011-04-06  Eric Blake  <eblake@redhat.com>
13299
13300         binary-io: relicense under LGPLv2+
13301         * modules/binary-io (License): Relax to LGPLv2+.
13302         Requested for libvirt, and required by pipe2.
13303
13304 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13305
13306         verify: use _Static_assert if available
13307         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13308         (verify_true, verify): Use it if available.  This generates better
13309         diagnostics with GCC 4.6.0 and later.
13310
13311 2011-04-05  Bruno Haible  <bruno@clisp.org>
13312
13313         Remove leftover generated .h files after config.status changed.
13314
13315         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13316         GL_GENERATE_ALLOCA_H.
13317         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13318         GL_GENERATE_ALLOCA_H evaluates to false.
13319
13320         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13321         GL_GENERATE_ARGZ_H.
13322         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13323         evaluates to false.
13324
13325         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13326         GL_GENERATE_BYTESWAP_H.
13327         * modules/byteswap (Makefile.am): Remove byteswap.h if
13328         GL_GENERATE_BYTESWAP_H evaluates to false.
13329
13330         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13331         GL_GENERATE_ERRNO_H.
13332         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13333         evaluates to false.
13334
13335         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13336         GL_GENERATE_FLOAT_H.
13337         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13338         evaluates to false.
13339
13340         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13341         GL_GENERATE_FNMATCH_H.
13342         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13343         GL_GENERATE_FNMATCH_H evaluates to false.
13344
13345         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13346         GL_GENERATE_GLOB_H.
13347         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13348         evaluates to false.
13349
13350         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13351         automake conditional GL_GENERATE_ICONV_H.
13352         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13353         evaluates to false.
13354
13355         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13356         GL_GENERATE_NETINET_IN_H.
13357         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13358         GL_GENERATE_NETINET_IN_H evaluates to false.
13359
13360         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13361         conditional GL_GENERATE_PTHREAD_H.
13362         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13363         * modules/pthread (Makefile.am): Remove pthread.h if
13364         GL_GENERATE_PTHREAD_H evaluates to false.
13365
13366         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13367         GL_GENERATE_SCHED_H.
13368         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13369         evaluates to false.
13370
13371         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13372         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13373         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13374         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13375
13376         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13377         GL_GENERATE_STDARG_H.
13378         * modules/stdarg (Makefile.am): Remove stdarg.h if
13379         GL_GENERATE_STDARG_H evaluates to false.
13380
13381         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13382         GL_GENERATE_STDBOOL_H.
13383         * modules/stdbool (Makefile.am): Remove stdbool.h if
13384         GL_GENERATE_STDBOOL_H evaluates to false.
13385
13386         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13387         conditional GL_GENERATE_STDDEF_H.
13388         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13389         * modules/stddef (Makefile.am): Remove stddef.h if
13390         GL_GENERATE_STDDEF_H evaluates to false.
13391
13392         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13393         GL_GENERATE_STDINT_H.
13394         * modules/stdint (Makefile.am): Remove stdint.h if
13395         GL_GENERATE_STDINT_H evaluates to false.
13396
13397         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13398         GL_GENERATE_SYSEXITS_H.
13399         * modules/sysexits (Makefile.am): Remove sysexits.h if
13400         GL_GENERATE_SYSEXITS_H evaluates to false.
13401
13402         Reported by Karl Berry and Ralf Wildenhues.
13403
13404 2011-04-05  Bruno Haible  <bruno@clisp.org>
13405
13406         Ensure to rebuild generated .h files when config.status has changed.
13407         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13408         config.status.
13409         * modules/ctype (Makefile.am): Likewise.
13410         * modules/dirent (Makefile.am): Likewise.
13411         * modules/errno (Makefile.am): Likewise.
13412         * modules/fcntl-h (Makefile.am): Likewise.
13413         * modules/float (Makefile.am): Likewise.
13414         * modules/getopt-posix (Makefile.am): Likewise.
13415         * modules/glob (Makefile.am): Likewise.
13416         * modules/iconv-h (Makefile.am): Likewise.
13417         * modules/inttypes (Makefile.am): Likewise.
13418         * modules/langinfo (Makefile.am): Likewise.
13419         * modules/locale (Makefile.am): Likewise.
13420         * modules/math (Makefile.am): Likewise.
13421         * modules/netdb (Makefile.am): Likewise.
13422         * modules/netinet_in (Makefile.am): Likewise.
13423         * modules/poll-h (Makefile.am): Likewise.
13424         * modules/pthread (Makefile.am): Likewise.
13425         * modules/pty (Makefile.am): Likewise.
13426         * modules/sched (Makefile.am): Likewise.
13427         * modules/search (Makefile.am): Likewise.
13428         * modules/selinux-h (Makefile.am): Likewise.
13429         * modules/signal (Makefile.am): Likewise.
13430         * modules/spawn (Makefile.am): Likewise.
13431         * modules/stdarg (Makefile.am): Likewise.
13432         * modules/stdbool (Makefile.am): Likewise.
13433         * modules/stddef (Makefile.am): Likewise.
13434         * modules/stdint (Makefile.am): Likewise.
13435         * modules/stdio (Makefile.am): Likewise.
13436         * modules/stdlib (Makefile.am): Likewise.
13437         * modules/string (Makefile.am): Likewise.
13438         * modules/strings (Makefile.am): Likewise.
13439         * modules/sys_file (Makefile.am): Likewise.
13440         * modules/sys_ioctl (Makefile.am): Likewise.
13441         * modules/sys_select (Makefile.am): Likewise.
13442         * modules/sys_socket (Makefile.am): Likewise.
13443         * modules/sys_stat (Makefile.am): Likewise.
13444         * modules/sys_time (Makefile.am): Likewise.
13445         * modules/sys_times (Makefile.am): Likewise.
13446         * modules/sys_utsname (Makefile.am): Likewise.
13447         * modules/sys_wait (Makefile.am): Likewise.
13448         * modules/sysexits (Makefile.am): Likewise.
13449         * modules/termios (Makefile.am): Likewise.
13450         * modules/time (Makefile.am): Likewise.
13451         * modules/unistd (Makefile.am): Likewise.
13452         * modules/wchar (Makefile.am): Likewise.
13453         * modules/wctype-h (Makefile.am): Likewise.
13454         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13455
13456 2011-04-05  Bruno Haible  <bruno@clisp.org>
13457
13458         pipe2: Relicense under LGPLv2+.
13459         * modules/pipe2 (License): Change to LGPLv2+.
13460         Requested by Eric Blake, for libvirt.
13461
13462 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13463
13464         bootstrap: compute gnulib_extra_files after updating build_aux
13465         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13466         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13467
13468 2011-04-05  Eric Blake  <eblake@redhat.com>
13469
13470         bootstrap: preserve git whitelist item sorting
13471         * build-aux/bootstrap (sort_patterns): New function.
13472         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13473
13474 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13475
13476         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13477         sc_space_tab check.
13478
13479 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13480
13481         areadlink, areadlinkat: rewrite in terms of careadlinkat
13482         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13483         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13484         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13485         (malloc, realloc): Remove #undefs.
13486         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13487         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13488         readlink, ssize_t, stdint, unistd.
13489         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13490         areadlink, stdint.
13491
13492         careadlinkat: new module
13493         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13494         * modules/careadlinkat: New files, written by me with
13495         a review and feedback from Ben Pfaff in
13496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13497
13498 2011-04-01  Bruno Haible  <bruno@clisp.org>
13499
13500         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13501         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13502         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13503         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13504         Reported by Bruce Korb <bruce.korb@gmail.com>.
13505
13506 2011-04-01  Bruno Haible  <bruno@clisp.org>
13507
13508         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13509         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13510         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13511         * modules/wcpcpy (Depends-on): Add extensions.
13512         * modules/wcpncpy (Depends-on): Likewise.
13513         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13514         systems.
13515         * doc/posix-functions/wcpncpy.texi: Likewise.
13516         * doc/posix-functions/wcwidth.texi: Likewise.
13517
13518 2011-03-31  Eric Blake  <eblake@redhat.com>
13519
13520         nonblocking: fix mingw test failures
13521         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13522         non-blocking flag on regular file.
13523         (get_nonblocking_flag): Set errno on invalid fd.
13524         * tests/test-nonblocking.c (main): Avoid test failure on
13525         directories if fchdir is not active.
13526         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13527
13528 2011-03-31  Bruno Haible  <bruno@clisp.org>
13529
13530         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13531         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13532         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13533         Reported by Simon Josefsson <simon@josefsson.org>.
13534
13535 2011-03-31  Bruno Haible  <bruno@clisp.org>
13536         and Eric Blake  <eblake@redhat.com>
13537
13538         nonblocking: new module
13539         * modules/nonblocking: New module.
13540         * modules/nonblocking-tests: Likewise.
13541         * lib/nonblocking.h: New file.
13542         * lib/nonblocking.c: Likewise.
13543         * tests/test-nonblocking.c: New test.
13544         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13545
13546 2011-03-30  Bruno Haible  <bruno@clisp.org>
13547
13548         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13549         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13550         instead of 'printf' format for GCC >= 4.4.
13551         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13552         (fprintf, printf, vfprintf, vprintf): Declare with
13553         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13554         the system's vfprintf() function.
13555         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13556
13557 2011-03-30  Eric Blake  <eblake@redhat.com>
13558
13559         passfd: fix scoping bug
13560         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13561         before sendmsg/recvmsg.
13562
13563         passfd: standardize coding conventions
13564         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13565         can be learned at compile time.
13566         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13567         ifdefs.
13568         (sendfd, recvfd): Follow gnulib code conventions.
13569
13570         passfd: fix incorrect sendmsg arguments
13571         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13572         incorrect msg_controllen value.
13573         * modules/passfd-tests (Depends-on): Check for alarm.
13574         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13575         Reported by Bastien ROUCARIES.
13576
13577 2011-03-30  Bruno Haible  <bruno@clisp.org>
13578
13579         c-strcasestr: Relicense under LGPLv2+.
13580         * modules/c-strcasestr (License): Change to LGPLv2+.
13581         Requested by Eric Blake, for libvirt.
13582
13583 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13584
13585         * users.txt: Add libidn2.  Fix libtasn1 link.
13586
13587 2011-03-30  Jim Meyering  <meyering@redhat.com>
13588
13589         tests: readlink* ("",... fails with EINVAL on newer kernels
13590         readlink and readlinkat have typically failed with ENOENT for
13591         the invalid, empty file name,  "".  However, with the advent
13592         of linux-2.6.39, they fail with EINVAL.
13593         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13594         when operating on the empty file name.
13595         * tests/test-readlink.h (test_readlink): Likewise.
13596
13597 2011-03-29  Bruno Haible  <bruno@clisp.org>
13598
13599         Relicense some modules under LGPLv2+, for libidn2.
13600         * modules/array-mergesort (License): Change to LGPLv2+.
13601         * modules/c-strcaseeq (License): Likewise.
13602         * modules/striconveh (License): Likewise.
13603         * modules/striconveha (License): Likewise.
13604         * modules/uniconv/base (License): Likewise.
13605         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13606         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13607         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13608         * modules/unictype/base (License): Likewise.
13609         * modules/unictype/bidiclass-of (License): Likewise.
13610         * modules/unictype/category-M (License): Likewise.
13611         * modules/unictype/category-none (License): Likewise.
13612         * modules/unictype/category-of (License): Likewise.
13613         * modules/unictype/category-test (License): Likewise.
13614         * modules/unictype/category-test-withtable (License): Likewise.
13615         * modules/unictype/combining-class (License): Likewise.
13616         * modules/unictype/joiningtype-of (License): Likewise.
13617         * modules/unictype/scripts (License): Likewise.
13618         * modules/uninorm/base (License): Likewise.
13619         * modules/uninorm/canonical-decomposition (License): Likewise.
13620         * modules/uninorm/composition (License): Likewise.
13621         * modules/uninorm/decompose-internal (License): Likewise.
13622         * modules/uninorm/decomposition-table (License): Likewise.
13623         * modules/uninorm/nfc (License): Likewise.
13624         * modules/uninorm/nfd (License): Likewise.
13625         * modules/uninorm/u32-normalize (License): Likewise.
13626         * modules/unistr/base (License): Likewise.
13627         * modules/unistr/u32-cpy (License): Likewise.
13628         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13629         * modules/unistr/u32-to-u8 (License): Likewise.
13630         * modules/unistr/u32-uctomb (License): Likewise.
13631         * modules/unistr/u8-check (License): Likewise.
13632         * modules/unistr/u8-mblen (License): Likewise.
13633         * modules/unistr/u8-mbtouc (License): Likewise.
13634         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13635         * modules/unistr/u8-mbtoucr (License): Likewise.
13636         * modules/unistr/u8-prev (License): Likewise.
13637         * modules/unistr/u8-strlen (License): Likewise.
13638         * modules/unistr/u8-to-u32 (License): Likewise.
13639         * modules/unistr/u8-uctomb (License): Likewise.
13640         * modules/unitypes (License): Likewise.
13641         Requested by Simon Josefsson.
13642
13643 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13644
13645         lib-symbol-visibility: Add a notice.
13646         * modules/lib-symbol-visibility (Notice): New field.
13647
13648 2011-03-29  Bruno Haible  <bruno@clisp.org>
13649
13650         getaddrinfo: Doc fix.
13651         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13652         section "fixed in Gnulib".
13653
13654 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13655
13656         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13657         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13658
13659 2011-03-26  Bruno Haible  <bruno@clisp.org>
13660
13661         unictype/property-byname: Reduce the number of load-time relocations.
13662         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13663         (UC_PROPERTY_INDEX_*): New enumeration values.
13664         (uc_property_byname): Convert an index from the lookup table to an
13665         uc_property_t.
13666         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13667         values.
13668
13669 2011-03-26  Bruno Haible  <bruno@clisp.org>
13670
13671         unictype/property-byname: Allow omitted word separators and aliases.
13672         * lib/unictype/pr_byname.gperf: Add property names without word
13673         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13674         for 'space'.
13675
13676 2011-03-26  Bruno Haible  <bruno@clisp.org>
13677
13678         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13679         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13680         also hyphens to space.
13681         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13682         without spaces.
13683         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13684
13685 2011-03-26  Bruno Haible  <bruno@clisp.org>
13686
13687         unictype/joiningtype-byname: Recognize long names as well.
13688         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13689         a long name.
13690         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13691         unictype/joiningtype_byname.h.
13692         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13693         * lib/unictype/joiningtype_byname.gperf: New file.
13694         * modules/unictype/joiningtype-byname (Files): Add
13695         lib/unictype/joiningtype_byname.gperf.
13696         (Depends-on): Add gperf.
13697         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13698         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13699         long names.
13700
13701         Tests for module 'unictype/joiningtype-longname'.
13702         * modules/unictype/joiningtype-longname-tests: New file.
13703         * tests/unictype/test-joiningtype_longname.c: New file.
13704
13705         New module 'unictype/joiningtype-longname'.
13706         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13707         * lib/unictype/joiningtype_longname.c: New file.
13708         * modules/unictype/joiningtype-longname: New file.
13709         * modules/unictype/joiningtype-all (Depends-on): Add
13710         unictype/joiningtype-longname.
13711
13712 2011-03-26  Bruno Haible  <bruno@clisp.org>
13713
13714         unictype/bidiclass-byname: Recognize long names as well.
13715         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13716         name.
13717         * lib/unictype/bidi_byname.c: Include <string.h>,
13718         unictype/bidi_byname.h.
13719         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13720         * lib/unictype/bidi_byname.gperf: New file.
13721         * modules/unictype/bidiclass-byname (Files): Add
13722         lib/unictype/bidi_byname.gperf.
13723         (Depends-on): Add gperf.
13724         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13725         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13726         long names.
13727
13728         Tests for module 'unictype/bidiclass-longname'.
13729         * modules/unictype/bidiclass-longname-tests: New file.
13730         * tests/unictype/test-bidi_longname.c: New file.
13731
13732         New module 'unictype/bidiclass-longname'.
13733         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13734         * lib/unictype/bidi_longname.c: New file.
13735         * modules/unictype/bidiclass-longname: New file.
13736         * modules/unictype/bidiclass-all (Depends-on): Add
13737         unictype/bidiclass-longname.
13738
13739 2011-03-26  Bruno Haible  <bruno@clisp.org>
13740
13741         unictype/bidi*: Rename modules.
13742         * modules/unictype/bidiclass-all: Renamed from
13743         modules/unictype/bidicategory-all.
13744         * modules/unictype/bidiclass-name: Renamed from
13745         modules/unictype/bidiclass-name.
13746         (Description): Update.
13747         * modules/unictype/bidiclass-name-tests: Renamed from
13748         modules/unictype/bidicategory-name-tests.
13749         * modules/unictype/bidiclass-byname: Renamed from
13750         modules/unictype/bidicategory-byname.
13751         (Description): Update.
13752         * modules/unictype/bidiclass-byname-tests: Renamed from
13753         modules/unictype/bidicategory-byname-tests.
13754         * modules/unictype/bidiclass-of: Renamed from
13755         modules/unictype/bidicategory-of.
13756         (Description): Update.
13757         * modules/unictype/bidiclass-of-tests: Renamed from
13758         modules/unictype/bidicategory-of-tests.
13759         * modules/unictype/bidiclass-test: Renamed from
13760         modules/unictype/bidicategory-test.
13761         (Description): Update.
13762         * modules/unictype/bidiclass-test-tests: Renamed from
13763         modules/unictype/bidicategory-test-tests.
13764         * modules/unictype/bidicategory-all: New file, a simple redirection.
13765         * modules/unictype/bidicategory-name: Likewise.
13766         * modules/unictype/bidicategory-byname: Likewise.
13767         * modules/unictype/bidicategory-of: Likewise.
13768         * modules/unictype/bidicategory-test: Likewise.
13769         * modules/unictype/property-bidi-* (Dependencies): Update.
13770         * lib/unictype/bidi_*.c: Update comment.
13771
13772 2011-03-26  Bruno Haible  <bruno@clisp.org>
13773
13774         unictype/bidi*: Rename functions, part 2.
13775         * modules/unictype/bidicategory-name (configure.ac): Update required
13776         libunistring version.
13777         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13778
13779 2011-03-25  Bruno Haible  <bruno@clisp.org>
13780
13781         New module 'unictype/combining-class-all'.
13782         * modules/unictype/combining-class-all: New file.
13783
13784         Tests for module 'unictype/combining-class-byname'.
13785         * modules/unictype/combining-class-byname-tests: New file.
13786         * tests/unictype/test-combiningclass_byname.c: New file.
13787
13788         New module 'unictype/combining-class-byname'.
13789         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13790         * lib/unictype/combiningclass_byname.c: New file.
13791         * lib/unictype/combiningclass_byname.gperf: New file.
13792         * modules/unictype/combining-class-byname: New file.
13793
13794         Tests for module 'unictype/combining-class-longname'.
13795         * modules/unictype/combining-class-longname-tests: New file.
13796         * tests/unictype/test-combiningclass_longname.c: New file.
13797
13798         New module 'unictype/combining-class-longname'.
13799         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13800         * lib/unictype/combiningclass_longname.c: New file.
13801         * modules/unictype/combining-class-longname: New file.
13802
13803         Tests for module 'unictype/combining-class-name'.
13804         * modules/unictype/combining-class-name-tests: New file.
13805         * tests/unictype/test-combiningclass_name.c: New file.
13806
13807         New module 'unictype/combining-class-name'.
13808         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13809         * lib/unictype/combiningclass_name.c: New file.
13810         * modules/unictype/combining-class-name: New file.
13811
13812 2011-03-25  Bruno Haible  <bruno@clisp.org>
13813
13814         unictype/combining-class: Rename source files.
13815         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13816         of unictype/combining.h.
13817         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13818         Update.
13819         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13820         * modules/unictype/combining-class (Description): Fix.
13821         (Files, Makefile.am): Update.
13822         * tests/unictype/test-combiningclass.c: Renamed from
13823         tests/unictype/test-combining.c.
13824         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13825
13826 2011-03-25  Bruno Haible  <bruno@clisp.org>
13827
13828         unictype: Update list of canonical combining classes.
13829         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13830
13831 2011-03-25  Bruno Haible  <bruno@clisp.org>
13832
13833         unictype/category-byname: Recognize long names as well.
13834         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13835         a long name.
13836         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13837         unictype/categ_byname.h.
13838         (UC_CATEGORY_INDEX_*): New enumeration values.
13839         (uc_general_category_byname): Use uc_general_category_lookup and
13840         convert from index to value.
13841         * lib/unictype/categ_byname.gperf: New file.
13842         * modules/unictype/category-byname (Files): Add
13843         lib/unictype/categ_byname.gperf.
13844         (Depends-on): Add gperf.
13845         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13846         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13847         long names.
13848
13849         Tests for module 'unictype/category-longname'.
13850         * modules/unictype/category-longname-tests: New file.
13851         * tests/unictype/test-categ_longname.c: New file.
13852
13853         New module 'unictype/category-longname'.
13854         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13855         * lib/unictype/categ_longname.c: New file.
13856         * modules/unictype/category-longname: New file.
13857         * modules/unictype/category-all (Depends-on): Add it.
13858
13859 2011-03-25  Bruno Haible  <bruno@clisp.org>
13860
13861         Tests for module 'unictype/category-LC'.
13862         * modules/unictype/category-LC-tests: New file.
13863         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13864
13865         New module 'unictype/category-LC'.
13866         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13867         (UC_CATEGORY_LC): New declaration.
13868         (UC_CASED_LETTER): New macro.
13869         * lib/gen-uni-tables.c (is_category_LC): New function.
13870         (output_categories): Also handle category LC.
13871         (UC_CATEGORY_MASK_LC): New enumeration value.
13872         (general_category_byname): Also handle category LC.
13873         * lib/unictype/categ_LC.c: New file.
13874         * lib/unictype/categ_LC.h: New file, automatically generated.
13875         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13876         category LC.
13877         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13878         * modules/unictype/category-LC: New file.
13879         * modules/unictype/category-byname (Depends-on): Add
13880         unictype/category-LC.
13881         * modules/unictype/category-all (Depends-on): Likewise.
13882
13883 2011-03-25  Eric Blake  <eblake@redhat.com>
13884
13885         xmalloc: revert yesterday's regression
13886         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13887         realloc's underlying behavior (allowing allocation of zero-size
13888         objects, especially if malloc-gnu is also in use).
13889
13890 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13891
13892         maint.mk: add missing version to VC-tag
13893         * top/maint.mk: git tag was missing actual tag name; add it.
13894
13895         valgrind: do leak checking, and exit with code 1 on error (not 0)
13896         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13897         to VALGRIND.
13898
13899 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13900
13901         posix-modules: say what it does.
13902         * posix-modules: Add a line to the --help output saying what it does.
13903
13904 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13905
13906         xmalloc: Do not leak if underlying realloc is C99 compatible.
13907         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13908         This avoids a leak on C99-based systems.  See
13909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13910
13911 2011-03-24  Eric Blake  <eblake@redhat.com>
13912
13913         realloc: document portability problem
13914         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13915         passing 0 size to realloc.
13916
13917 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13918
13919         doc: update users.txt
13920         * users.txt: Add cvsps, tmpwatch
13921
13922 2011-03-23  Matt Rice  <ratmice@gmail.com>
13923
13924         doc: update users.txt
13925         * users.txt: Add gdb.
13926
13927 2011-03-23  Jim Meyering  <meyering@redhat.com>
13928
13929         doc: update users.txt
13930         Looking through matches up to the following URL (there are still
13931         several more pages), I found several projects that use gnulib:
13932         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13933         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13934         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13935
13936 2011-03-22  Bruno Haible  <bruno@clisp.org>
13937
13938         unictype/bidi*: Rename functions.
13939         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13940         uc_bidi_class, uc_is_bidi_class): New declarations.
13941         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13942         uc_bidi_category_byname.
13943         (uc_bidi_category_byname): New function.
13944         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13945         u_bidi_category_name.
13946         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13947         (uc_bidi_category_name): New function.
13948         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13949         uc_bidi_category.
13950         (uc_bidi_category): New function.
13951         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13952         uc_is_bidi_category. Invoke uc_bidi_class.
13953         (uc_is_bidi_category): New function.
13954         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13955         instead of uc_bidi_category_byname.
13956         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13957         instead of uc_bidi_category_name.
13958         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13959         uc_bidi_category.
13960         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13961         instead of uc_is_bidi_category.
13962
13963 2011-03-21  Bruno Haible  <bruno@clisp.org>
13964
13965         New module 'unictype/joininggroup-all'.
13966         * modules/unictype/joininggroup-all: New file.
13967
13968         Tests for module 'unictype/joininggroup-of'.
13969         * modules/unictype/joininggroup-of-tests: New file.
13970         * tests/unictype/test-joininggroup_of.c: New file.
13971         * tests/unictype/test-joininggroup_of.h: New file, automatically
13972         generated by gen-uni-tables.
13973
13974         New module 'unictype/joininggroup-of'.
13975         * modules/unictype/joininggroup-of: New file.
13976         * lib/unictype/joininggroup_of.c: New file.
13977         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13978         gen-uni-tables.
13979
13980         Tests for module 'unictype/joininggroup-byname'.
13981         * modules/unictype/joininggroup-byname-tests: New file.
13982         * tests/unictype/test-joininggroup_byname.c: New file.
13983
13984         New module 'unictype/joininggroup-byname'.
13985         * modules/unictype/joininggroup-byname: New file.
13986         * lib/unictype/joininggroup_byname.c: New file.
13987         * lib/unictype/joininggroup_byname.gperf: New file.
13988
13989         Tests for module 'unictype/joininggroup-name'.
13990         * modules/unictype/joininggroup-name-tests: New file.
13991         * tests/unictype/test-joininggroup_name.c: New file.
13992
13993         New module 'unictype/joininggroup-name'.
13994         * modules/unictype/joininggroup-name: New file.
13995         * lib/unictype/joininggroup_name.c: New file.
13996         * lib/unictype/joininggroup_name.h: New file.
13997
13998         New module 'unictype/joiningtype-all'.
13999         * modules/unictype/joiningtype-all: New file.
14000
14001         Tests for module 'unictype/joiningtype-of'.
14002         * modules/unictype/joiningtype-of-tests: New file.
14003         * tests/unictype/test-joiningtype_of.c: New file.
14004         * tests/unictype/test-joiningtype_of.h: New file, automatically
14005         generated by gen-uni-tables.
14006
14007         New module 'unictype/joiningtype-of'.
14008         * modules/unictype/joiningtype-of: New file.
14009         * lib/unictype/joiningtype_of.c: New file.
14010         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14011         gen-uni-tables.
14012
14013         Tests for module 'unictype/joiningtype-byname'.
14014         * modules/unictype/joiningtype-byname-tests: New file.
14015         * tests/unictype/test-joiningtype_byname.c: New file.
14016
14017         New module 'unictype/joiningtype-byname'.
14018         * modules/unictype/joiningtype-byname: New file.
14019         * lib/unictype/joiningtype_byname.c: New file.
14020
14021         Tests for module 'unictype/joiningtype-name'.
14022         * modules/unictype/joiningtype-name-tests: New file.
14023         * tests/unictype/test-joiningtype_name.c: New file.
14024
14025         New module 'unictype/joiningtype-name'.
14026         * modules/unictype/joiningtype-name: New file.
14027         * lib/unictype/joiningtype_name.c: New file.
14028
14029         unictype: Add support for Arabic shaping properties.
14030         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14031         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14032         declarations.
14033         (UC_JOINING_GROUP_*): New enumeration values.
14034         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14035         declarations.
14036         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14037         (unicode_joining_type): New variable.
14038         (UC_JOINING_GROUP_*): New enumeration values.
14039         (unicode_joining_group): New variable.
14040         (fill_arabicshaping, joining_type_as_c_identifier,
14041         output_joining_type_test, output_joining_type,
14042         joining_group_as_c_identifier, output_joining_group_test,
14043         output_joining_group): New functions.
14044         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14045         fill_arabicshaping and output_joining_type_test, output_joining_type,
14046         output_joining_group_test, output_joining_group.
14047         Reported by Simon Josefsson.
14048
14049 2011-03-21  Jim Meyering  <meyering@redhat.com>
14050
14051         strftime: fix a bug in yesterday's change
14052         * lib/strftime.c (add): Accommodate width's initial value of -1.
14053         Otherwise, nstrftime would copy uninitialized data into
14054         the result buffer.
14055
14056 2011-03-21  Jim Meyering  <meyering@redhat.com>
14057
14058         tests: add strftime-tests module
14059         * tests/test-strftime.c: New file.
14060         * modules/strftime-tests: New module.
14061
14062 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14063
14064         strftime: don't assume a byte count fits in 'int'
14065         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14066         found this problem by static analysis, using gcc -Wstrict-overflow
14067         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14068         on an integer overflow having undefined behavior, but it turns out
14069         that the argument is a size, which might not fit in 'int' anyway,
14070
14071 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14072
14073         stdio: don't require ignore_value around fwrite
14074
14075         This patch works around libc bug 11959
14076         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14077         Without this patch, applications must often write
14078         ignore_value (fwrite (...)) even though the ignore_value is
14079         not helpful here.  It's common to write many objects, using
14080         fwrite/printf/etc., and then use ferror to detect output error.
14081
14082         I considered making this patch optional, but decided against it,
14083         because libc is obviously being inconsistent here: there is no
14084         reason libc should insist that user code must inspect fwrite
14085         return's value without also insisting that it inspect printf's,
14086         putchar's, etc.  If user code wants to have a strict style where
14087         all these functions' values are checked (so that ferror need not
14088         be checked), we could add support for that style in a new gnulib
14089         module, but in the meantime it's better to be consistent and to
14090         support common usage.
14091
14092         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14093         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14094         that we are compiling in checking mode, and if not C++, and
14095         if not already wrapping fwrite for some other reason.
14096         (fwrite): #define to rpl_fwrite if the latter is defined.
14097
14098 2011-03-20  Bruno Haible  <bruno@clisp.org>
14099
14100         verror: Fix compilation error introduced on 2011-02-13.
14101         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14102         instead of __attribute__.
14103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14104
14105 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14106             Bruno Haible  <bruno@clisp.org>
14107
14108         socklen: do not depend on sys_socket
14109         While trying to modify Emacs to use gnulib's socklen module,
14110         I discovered a circular dependency: socklen depends on sys_socket
14111         and vice versa.  Emacs can use socklen, but it does not need
14112         sys_socket because it has its own substitute for sys/socket.h.
14113         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14114         gl_TYPE_SOCKLEN_T.
14115         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14116         gl_PREREQ_SYS_H_SOCKET.
14117         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14118         gl_PREREQ_SYS_H_SOCKET.
14119         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14120         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14121         * modules/socklen (Depends-on): Do not depend on sys_socket.
14122         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14123
14124 2011-03-20  Jim Meyering  <meyering@redhat.com>
14125
14126         maint.mk: sort file names *after* new transformation
14127         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14128         prefix would have led to an unwarranted failure in GNU parted.
14129         Sort after that transformation.
14130
14131 2011-03-19  Jim Meyering  <meyering@redhat.com>
14132
14133         maint.mk: fix po-file syntax-check rule
14134         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14135         Patch by Bruno Haible.
14136
14137 2011-03-19  Bruno Haible  <bruno@clisp.org>
14138
14139         socklen: Update comment.
14140         * m4/socklen.m4: Update comment about platforms.
14141
14142 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14143             Bruno Haible  <bruno@clisp.org>
14144
14145         inet_ntop, inet_pton: Simplify.
14146         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14147         documented to provide socklen_t and we already depend on sys_socket.
14148         * modules/inet_pton (Depends-on): Likewise.
14149         * lib/arpa_inet.in.h: Adjust comment.
14150
14151 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14152             Bruno Haible  <bruno@clisp.org>
14153
14154         netdb: Simplify.
14155         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14156         documented to provide socklen_t and we already depend on sys_socket.
14157         * lib/netdb.in.h: Adjust comment.
14158
14159 2011-03-19  Bruno Haible  <bruno@clisp.org>
14160
14161         sys_socket, netdb: Document problem with socklen_t.
14162         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14163         platforms.
14164         * doc/posix-headers/netdb.texi: Likewise.
14165
14166 2011-03-18  Eric Blake  <eblake@redhat.com>
14167
14168         maint.mk: let po check work in VPATH build
14169         * top/maint.mk (po_file): Allow cfg.mk override.
14170         (sc_po_check): Allow VPATH use.
14171         Reported by Jiri Denemark.
14172
14173 2011-03-16  Jim Meyering  <meyering@redhat.com>
14174
14175         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14176         Before, you would have had to create one .x-sc_ file per rule in order
14177         to exempt offending files.  Now, you may instead use a Make variable --
14178         usually defined in cfg.mk -- whose name identifies the affected rule.
14179         * top/maint.mk (_sc_excl): Define.
14180         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14181         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14182
14183 2011-03-13  Bruno Haible  <bruno@clisp.org>
14184
14185         ignore-value tests: Avoid warnings.
14186         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14187         empty for gcc < 3.4.
14188
14189 2011-03-13  Bruno Haible  <bruno@clisp.org>
14190
14191         passfd: Fix link error on Solaris.
14192         * modules/passfd (Description): Correct.
14193         (Depends-on): Add socketlib.
14194         (Link): New section.
14195         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14196
14197 2011-03-13  Bruno Haible  <bruno@clisp.org>
14198
14199         passfd: Fix link error on AIX 5.2.
14200         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14201
14202 2011-03-13  Bruno Haible  <bruno@clisp.org>
14203
14204         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14205         * lib/sys_socket.in.h: Include <stddef.h>.
14206         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14207         CMSG_FIRSTHDR. Remove unused variable.
14208
14209 2011-03-13  Bruno Haible  <bruno@clisp.org>
14210
14211         passfd: Fix compilation error on OpenBSD.
14212         * lib/passfd.c: Include <sys/uio.h>.
14213
14214 2011-03-13  Bruno Haible  <bruno@clisp.org>
14215
14216         passfd test: Fix warnings.
14217         * tests/test-passfd.c: Include <sys/wait.h>.
14218         (main): Fix typo.
14219
14220 2011-03-13  Bruno Haible  <bruno@clisp.org>
14221
14222         passfd module, part 4, tweaks.
14223         * tests/test-passfd.c: Reorder includes.
14224         (main): Fix perror and printf calls.
14225
14226 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14227
14228         passfd module, part 4.
14229         * modules/passfd-tests: New file.
14230         * tests/test-passfd.c: New file.
14231
14232 2011-03-13  Jim Meyering  <meyering@redhat.com>
14233
14234         Makefile: rely on GNU make; derive syntax-check rule names
14235         Rather than requiring that each sc_ rule be listed as a dependent
14236         of "check", use features of GNU make to derive the list.
14237         * Makefile (syntax-check-rules): Define.
14238         (check): Depend on the new variable, not the hard-coded list.
14239
14240 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14241             Bruno Haible  <bruno@clisp.org>
14242
14243         passfd module, part 3.
14244         * lib/passfd.h (recvfd): Add a flags argument.
14245         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14246         (recvfd): Add a flags argument.
14247         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14248         exists.
14249         * modules/passfd (Depends-on): Add cloexec.
14250         Suggested by Eric Blake.
14251
14252 2011-03-13  Bruno Haible  <bruno@clisp.org>
14253
14254         passfd module, part 2, tweaks.
14255         * modules/passfd (Files): Reorder.
14256         (Depends-on): Remove errno.
14257         (Include): Remove <sys/socket.h>, <sys/un.h>.
14258         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14259         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14260         specification header. Include <sys/socket.h> always. Don't include
14261         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14262         (sendfd): Clarify that it sets errno when it fails.
14263         (recvfd): Fix specification.
14264
14265 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14266
14267         passfd module, part 2.
14268         * modules/passfd: New file.
14269         * lib/passfd.h: New file.
14270         * lib/passfd.c: New file.
14271
14272 2011-03-12  Bruno Haible  <bruno@clisp.org>
14273
14274         wcswidth, mbswidth: Avoid integer overflow.
14275         * lib/wcswidth.c: Include <limits.h>.
14276         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14277         * lib/mbswidth.c: Include <limits.h>.
14278         (mbsnwidth): Avoid 'int' overflow.
14279         Reported by Jim Meyering.
14280
14281 2011-03-12  Bruno Haible  <bruno@clisp.org>
14282
14283         futimens, utimensat: Avoid endless recursion on Solaris 10.
14284         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14285         Solaris.
14286         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14287         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14288
14289 2011-03-11  Jim Meyering  <meyering@redhat.com>
14290
14291         maint.mk: relax a regexp to accommodate other formatting styles
14292         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14293         between "ngettext" and the following "(".
14294
14295 2011-03-11  Pádraig Brady <P@draigBrady.com>
14296
14297         maint.mk: suppress a false positive warning
14298         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14299         diagnostics are marked with ngettext.
14300
14301 2011-03-10  Eric Blake  <eblake@redhat.com>
14302
14303         wchar: add explicit dependencies, for Tru64
14304         * modules/mbmemcasecoll (Depends-on): Add wchar.
14305         * modules/mbtowc (Depends-on): Likewise.
14306         * modules/vasnprintf (Depends-on): Likewise.
14307         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14308         * modules/wctomb (Depends-on): Likewise.
14309         Reported by Peter O'Gorman.
14310
14311 2011-03-08  Bruno Haible  <bruno@clisp.org>
14312
14313         passfd module, part 1, tweaks.
14314         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14315         Improve indentation. Improve AC_MSG_CHECKING messages.
14316         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14317         gl_SOCKET_FAMILIES.
14318
14319 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14320
14321         passfd module, part 1.
14322         * m4/afunix.m4: New file.
14323         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14324         sockets.
14325
14326 2011-03-08  Bruno Haible  <bruno@clisp.org>
14327
14328         regex-quote: New API.
14329         * lib/regex-quote.h: Include <stdbool.h>.
14330         (struct regex_quote_spec): New type.
14331         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14332         New declarations.
14333         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14334         'const struct regex_quote_spec *' argument.
14335         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14336         (pcre_special): New constant.
14337         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14338         New functions.
14339         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14340         'const struct regex_quote_spec *' argument.
14341         * modules/regex-quote (Depends-on): Add stdbool.
14342         * tests/test-regex-quote.c (check): Update for new API. Add test for
14343         anchored results.
14344         * NEWS: Mention the API change.
14345         Reported by Reuben Thomas and Eric Blake.
14346
14347 2011-03-06  Bruno Haible  <bruno@clisp.org>
14348
14349         regex-quote: Fix creation of POSIX extended regular expressions.
14350         * lib/regex-quote.c (ere_special): Add grouping and alternation
14351         operators.
14352
14353 2011-03-05  Bruno Haible  <bruno@clisp.org>
14354
14355         doc: Improve doc regarding autopoint vs. gnulib.
14356         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14357         disable autopoint while running autoreconf.
14358         Suggested by Ralf Wildenhues.
14359
14360 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14361
14362         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14363         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14364
14365 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14366
14367         parse-duration: remove xalloc.h dependency
14368         * lib/parse-duration.c (parse_period): handle NULL return from
14369         strdup instead of calling xstrdup().
14370         * modules/parse-duration: remove "xalloc" dependency
14371
14372 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14373
14374         bootstrap: honor m4_base when running aclocal
14375         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14376
14377 2011-03-02  Jim Meyering  <meyering@redhat.com>
14378
14379         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14380         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14381         on request from Matt Booth.
14382
14383 2011-03-01  Eric Blake  <eblake@redhat.com>
14384
14385         test-link: work on Hurd
14386         * tests/test-link.h (test_link): Hurd rejects linking directories
14387         with EISDIR instead of the POSIX-mandated EPERM.
14388
14389 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14390
14391         stdio: simplify by moving files to printf-posix, sigpipe
14392         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14393         since this symbol is needed only if printf is replaced.
14394         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14395         Require gl_ASM_SYMBOL_PREFIX.
14396         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14397         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14398         (Depends-on): Add 'raise'.
14399         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14400         * modules/stdio (Files): Remove lib/stdio-write.c,
14401         m4/asm-underscore.m4.
14402         (Depends-on): Remove 'raise'.
14403
14404         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14405         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14406         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14407         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14408
14409 2011-02-28  Bruno Haible  <bruno@clisp.org>
14410
14411         localcharset: Assume ANSI C behaviour of free().
14412         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14413         calling free().
14414         Suggested by Simon Josefsson <simon@josefsson.org>.
14415
14416 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14417             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14418             Bruno Haible  <bruno@clisp.org>  (tiny change)
14419
14420         On Cygwin, use /proc file system instead of win32 API.
14421         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14422         Win32 file names.
14423         (DllMain): Simplify by removing Cygwin specific code.
14424         (find_shared_library_fullname): Use Linux specific implementation also
14425         for Cygwin.
14426         (get_shared_library_fullname): Update accordingly.
14427         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14428         Win32 file names.
14429         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14430         Cygwin specific code.
14431
14432 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14433             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14434
14435         Fix OpenMP flag detection for various Fortran compilers.
14436         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14437         OpenMP-conditional compilation construct, to force compile
14438         failure with missing OpenMP flag.
14439         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14440
14441 2011-02-25  Eric Blake  <eblake@redhat.com>
14442
14443         strstr: expand test coverage
14444         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14445         compilation.
14446         * tests/test-memmem.c (main): Duplicate tests.
14447         * tests/test-strcasestr.c (main): Likewise.
14448         * tests/test-c-strcasestr.c (main): Likewise.
14449
14450 2011-02-25  Jim Meyering  <meyering@redhat.com>
14451
14452         maint.mk: detect missing-NL-at-EOF, too
14453         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14454         it also detects when a file lacks a newline at EOF.
14455         (require_exactly_one_NL_at_EOF_): Renamed from
14456         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14457         since people may well have .x-sc_... file names tied to the
14458         existing name.  Suggested by Eric Blake.
14459
14460 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14461
14462         dirname: move m4/dos.m4 functionality into lib/dosname.h
14463
14464         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14465         extracts symbols from it, puts them into config.h; but it's much
14466         easier to use the symbols directly.  filename.h already does this,
14467         but it disagrees with dos.m4 in some respects.  This patch
14468         introduces a different include file dosname.h that packages up
14469         dos.m4, and then later we can work on merging filename.h and
14470         dosname.h.  Applications that need only the easy-to-configure
14471         symbols should consider including dosname.h rather than dirname.h.
14472         * NEWS: Mention incompatible changes.
14473         * m4/dos.m4: Remove.
14474         * lib/dosname.h, modules/dosname: New files.
14475         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14476         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14477         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14478         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14479         Include dosname.h, not dirname.h.
14480         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14481         Include dosname.h, for definitions of symbols like ISSLASH
14482         that used to be in config.h.
14483         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14484         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14485         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14486         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14487         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14488         * modules/rmdir (Files): Likewise.
14489         * modules/stat (Files): Likewise.
14490         * modules/unlink (Files): Likewise.
14491         * modules/dirname-lgpl (Depends-on): Add dosname.
14492         * modules/lstat (Depends-on): Likewise.
14493         * modules/openat (Depends-on): Likewise.
14494         * modules/rmdir (Depends-on): Likewise.
14495         * modules/savewd (Depends-on): Likewise.
14496         * modules/stat (Depends-on): Likewise.
14497         * modules/unlink (Depends-on): Likewise.
14498         * modules/openat (Depends-on): Remove dirname-lgpl.
14499         * modules/savewd (Depends-on): Likewise.
14500         * tests/test-dirname.c: Do not use removed symbols like
14501         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14502         the remaining symbols, e.g., ISSLASH ('\\').
14503
14504 2011-02-25  Eric Blake  <eblake@redhat.com>
14505
14506         strstr: revert patches that introduced bug and pessimization
14507         * lib/str-two-way.h: Add another reference.
14508         (two_way_short_needle, two_way_long_needle): Revert changes from
14509         2011-02-24; they pessimize search speed.
14510         (critical_factorization): Partially revert changes from
14511         2010-06-22; they violate the requirement that the left half of the
14512         needle be smaller than the period of the needle.
14513
14514 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14515
14516         filenamecat: remove unnecessary dependency on dirname-lgpl
14517         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14518         is no direct dependency, just an indirect one via filenamecat-lgpl.
14519
14520         remove: remove unnecessary use of m4/dos.m4
14521         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14522         * modules/remove (FILES): Remove m4/dos.m4.
14523
14524         * lib/openat-proc.c: Don't include dirname.h; not needed.
14525
14526         backupfile: remove unnecessary use of m4/dos.m4
14527         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14528         of its symbols are used by the backupfile code.  backupfile.c does
14529         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14530         for the rare case of programs that want all their backup file
14531         names to live within 8+3 limits, and dos.m4 doesn't address that.
14532         * modules/backupfile (Files): Remove m4/dos.m4.
14533
14534 2011-02-24  Jim Meyering  <meyering@redhat.com>
14535
14536         strstr: fix a bug whereby strstr would mistakenly return NULL
14537         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14538         in period calculation.
14539         (two_way_long_needle): Likewise.
14540         The original problem was reported by Mike Stump in
14541         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14542         Ralf Wildenhues provided the short needle and haystack.
14543         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14544         Add a more involved test to trigger the bug in two_way_long_needle.
14545
14546 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14547
14548         gnulib-tool: remove use of bold display in help screen
14549         * gnulib-tool (func_usage): Do not use bold display anymore in the
14550         help screen.  That was just meant to be a temporary emphasis for a
14551         backward-incompatible change.
14552
14553 2011-02-23  Bruno Haible  <bruno@clisp.org>
14554
14555         Fix misindentation of preprocessor directives.
14556         * lib/argp-namefrob.h: Reindent preprocessor directives.
14557         * lib/getopt_int.h (struct _getopt_data): Likewise.
14558         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14559         * lib/vasnprintf.c (decode_long_double): Likewise.
14560         * tests/test-argmatch.c: Insert blank lines, for clarity.
14561         * tests/test-exclude.c: Likewise.
14562
14563 2011-02-22  Bruno Haible  <bruno@clisp.org>
14564
14565         ioctl: Fix for MacOS X in 64-bit mode.
14566         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14567         value.
14568         Suggested by Eric Blake.
14569         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14570
14571 2011-02-22  Jim Meyering  <meyering@redhat.com>
14572
14573         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14574         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14575         in lib/.
14576
14577 2011-02-22  Eric Blake  <eblake@redhat.com>
14578
14579         maint: avoid any CDPATH issue
14580         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14581
14582         maint: adjust cpp indentation for my modules, as well
14583         * Makefile (sc_cpp_indent_check): Add my name.
14584         * lib/fbufmode.c: Filter through cppi.
14585         * lib/fpurge.c: Likewise.
14586         * lib/freadable.c: Likewise.
14587         * lib/freading.c: Likewise.
14588         * lib/fwritable.c: Likewise.
14589         * lib/fwriting.c: Likewise.
14590         * lib/sigaction.c: Likewise.
14591
14592 2011-02-22  Jim Meyering  <meyering@redhat.com>
14593
14594         maint: adjust cpp indentation to reflect nesting depth
14595         I.e., in a block of code that begins with an unnested "#if",
14596         put one space between the "#" in column 1 and following token.
14597         For example,
14598         -#include <sys/vfs.h>
14599         +# include <sys/vfs.h>
14600         Do this only in .c files that are part of a module I maintain.
14601         * lib/linkat.c: Filter through cppi.
14602         * lib/nanosleep.c: Likewise.
14603         * lib/openat.c: Likewise.
14604         * lib/openat-die.c: Likewise.
14605         * lib/dup3.c: Likewise.
14606         * lib/fchownat.c: Likewise.
14607         * lib/flock.c: Likewise.
14608         * lib/fsync.c: Likewise.
14609         * lib/fts.c: Likewise.
14610         * lib/getpass.c: Likewise.
14611         * lib/gettimeofday.c: Likewise.
14612         * lib/userspec.c: Likewise.
14613         * Makefile (sc_cpp_indent_check): New rule, to check this.
14614
14615 2011-02-22  Bruno Haible  <bruno@clisp.org>
14616
14617         New module 'wctomb'.
14618         * lib/stdlib.in.h (wctomb): New declaration.
14619         * lib/wctomb.c: New file.
14620         * lib/wctomb-impl.h: New file.
14621         * m4/wctomb.m4: New file.
14622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14623         REPLACE_WCTOMB.
14624         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14625         REPLACE_WCTOMB.
14626         * modules/wctomb: New file.
14627         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14628         * doc/posix-functions/wctomb.texi: Mention the new module.
14629         * modules/wctob (Depends-on): Add wctomb.
14630
14631 2011-02-22  Bruno Haible  <bruno@clisp.org>
14632
14633         New module 'mbtowc'.
14634         * lib/stdlib.in.h (mbtowc): New declaration.
14635         * lib/mbtowc.c: New file.
14636         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14637         * m4/mbtowc.m4: New file.
14638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14639         REPLACE_MBTOWC.
14640         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14641         REPLACE_MBTOWC.
14642         * modules/mbtowc: New file.
14643         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14644         * doc/posix-functions/mbtowc.texi: Mention the new module.
14645         * modules/btowc (Depends-on): Add mbtowc.
14646
14647 2011-02-22  Bruno Haible  <bruno@clisp.org>
14648
14649         wcrtomb: Add more tests for native Windows platforms.
14650         * tests/test-wcrtomb-w32-1.sh: New file.
14651         * tests/test-wcrtomb-w32-2.sh: New file.
14652         * tests/test-wcrtomb-w32-3.sh: New file.
14653         * tests/test-wcrtomb-w32-4.sh: New file.
14654         * tests/test-wcrtomb-w32-5.sh: New file.
14655         * tests/test-wcrtomb-w32.c: New file.
14656         * modules/wcrtomb-tests (Files): Add them.
14657         (Makefile.am): Arrange to run these tests.
14658         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14659         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14660
14661 2011-02-20  Bruno Haible  <bruno@clisp.org>
14662
14663         wcrtomb: Enhance test.
14664         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14665
14666 2011-02-20  Bruno Haible  <bruno@clisp.org>
14667
14668         mbrtowc: Tiny optimization.
14669         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14670
14671 2011-02-20  Jim Meyering  <meyering@redhat.com>
14672
14673         test-exclude.c: remove unmatched #endif
14674         * tests/test-exclude.c: Remove stray #endif, left over from
14675         the change of a week ago.
14676
14677 2011-02-19  Jim Meyering  <meyering@redhat.com>
14678
14679         git-version-gen: skip "-dirty" check when appropriate
14680         * build-aux/git-version-gen: Don't run any git commands when the
14681         version string comes from .tarball-version.  Prior to this, we
14682         would run git update-index --refresh even from a just-unpacked
14683         tarball directory, and that could affect a .git/ directory in a
14684         parent of the build directory.  Reported by Mike Frysinger.
14685
14686 2011-02-19  Bruno Haible  <bruno@clisp.org>
14687
14688         unictype/property-byname: Reduce the size of the 'data' segment.
14689         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14690
14691 2011-02-19  Bruno Haible  <bruno@clisp.org>
14692
14693         unictype/scripts: Reduce the size of the 'data' segment.
14694         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14695         '%pic'.
14696         * lib/unictype/scripts_byname.gperf: Regenerated.
14697
14698 2011-02-19  Bruno Haible  <bruno@clisp.org>
14699
14700         stdint: Update documentation.
14701         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14702
14703 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14704
14705         stdint: omit redundant check for wchar.h
14706         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14707         always tests whether wchar.h exists, so remove the now-redundant test.
14708
14709 2011-02-18  Bruno Haible  <bruno@clisp.org>
14710
14711         stdint: Cut dependency to module 'wchar'.
14712         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14713         include the necessary prerequisites.
14714         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14715         * modules/stdint (Depends-on): Remove wchar.
14716         (Makefile.am): Substitute HAVE_WCHAR_H.
14717         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14718
14719 2011-02-18  Eric Blake  <eblake@redhat.com>
14720
14721         longlong: skip, rather than fail, on cross-compilation
14722         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14723         when cross-compiling; regression from 2011-02-16.
14724
14725 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14726
14727         * NEWS: Mention 2011-02-08 change to stdlib.
14728
14729 2011-02-17  Bruno Haible  <bruno@clisp.org>
14730
14731         getloadavg: Add comments about platforms.
14732         * m4/getloadavg.m4: Add comment.
14733         * lib/getloadavg.c: Likewise.
14734
14735 2011-02-17  Bruno Haible  <bruno@clisp.org>
14736
14737         getloadavg: Fix link error on Solaris 2.6.
14738         * modules/getloadavg (Link): New section.
14739         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14740         linking test-getloadavg.
14741         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14742         getloadavg.
14743
14744 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14745
14746         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14747         It was 'int', but this doesn't match the IRIX 6.5 manual.
14748         Suggested by Bruno Haible in
14749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14750
14751 2011-02-17  Bruno Haible  <bruno@clisp.org>
14752
14753         havelib: Fix comments.
14754         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14755         change.
14756
14757 2011-02-17  Bruno Haible  <bruno@clisp.org>
14758
14759         havelib: Update config.rpath.
14760         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14761
14762 2011-02-17  Bruno Haible  <bruno@clisp.org>
14763
14764         getloadavg test: Add some plausibility checks.
14765         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14766         is improbable.
14767
14768 2011-02-16  Eric Blake  <eblake@redhat.com>
14769
14770         maintainer-makefile: make syntax-check a no-op from tarballs
14771         * top/maint.mk (no-vc-detected): New rule.
14772         (local-checks-available): Use it to avoid hanging if someone tries
14773         'make syntax-check' from a tarball.  Also append to any non-syntax
14774         checks already defined in cfg.mk.
14775
14776 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14777
14778         longlong: tune, particularly for common case of c99
14779
14780         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14781         or running anything if c99, or if unsigned long long int does not
14782         work.  In either case, we know the answer without further tests.
14783         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14784         it at most once, and use its results for both long long int and
14785         unsigned long long int.  This is more likely to be efficient in
14786         the common case where the program wants to check for both long
14787         long int and unsigned long long int.
14788         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14789         since the answer is already known.
14790
14791 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14792
14793         getloadavg: set errno
14794         * lib/getloadavg.c: Set errno when returning -1.  If no other
14795         error number looks appropriate, set it to ENOSYS if the getloadavg
14796         looks like it can't possibly ever work, ENOTSUP otherwise.
14797         Suggested by Bruno Haible in
14798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14799
14800         getloadavg: trim unused parts and speed up 'configure'
14801         * NEWS: Document this.
14802         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14803         always compiled if getloadavg is absent.
14804         Move test code to ...
14805         * tests/test-getloadavg.c: New file, containing previous
14806         contents of test from lib/getloadavg.c.  It also contains
14807         suggestions by Bruno Haible in
14808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14809         * modules/getloadavg-tests: New file.
14810         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14811         Do tests in the same order as they're needed for getloadavg.c.
14812         Omit setgid-related tests that generate symbols KMEM_GROUP,
14813         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14814         Do only the tests that are needed to see whether the system has
14815         getloadavg, moving the other tests into ...
14816         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14817         NLIST_NAME_UNION; nobody should be using it.  Do not define
14818         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14819         relevant, as the user of this module shouldn't care how getloadavg
14820         is implemented.
14821
14822         getloadavg: omit unused var
14823         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14824
14825 2011-02-15  Jim Meyering  <meyering@redhat.com>
14826
14827         doc: update users.txt
14828         * users.txt: Update iwhd's URL.
14829
14830 2011-02-13  Bruno Haible  <bruno@clisp.org>
14831
14832         Consistent macro naming for macros that use GCC __attribute__.
14833         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14834         _ATTRIBUTE_NONNULL_.
14835         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14836         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14837         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14838         ATTRIBUTE_DEPRECATED.
14839         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14840         ATTRIBUTE_NORETURN.
14841         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14842         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14843         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14844         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14845         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14846         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14847         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14848         ATTRIBUTE_SENTINEL.
14849         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14850         ATTRIBUTE_RETURN_CHECK.
14851         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14852         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14853         ATTRIBUTE_NORETURN.
14854         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14855         Reported by Paul Eggert.
14856
14857 2011-02-13  Bruno Haible  <bruno@clisp.org>
14858
14859         Don't interfere with a program's definition of __attribute__.
14860         * lib/argp.h (__attribute__): Remove definition.
14861         (_GL_ATTRIBUTE_FORMAT): New macro.
14862         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14863         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14864         (_GL_ATTRIBUTE_FORMAT): New macro.
14865         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14866         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14867         GCC 3 or newer.
14868         * lib/error.h (__attribute__): Remove definition.
14869         (_GL_ATTRIBUTE_FORMAT): New macro.
14870         (error, error_at_line): Use it.
14871         * lib/hash.h (__attribute__): Remove definition.
14872         (ATTRIBUTE_WUR): Update definition. Define always.
14873         * lib/openat.h (__attribute__): Remove definition.
14874         (ATTRIBUTE_NORETURN): Update definition. Define always.
14875         * lib/sigpipe-die.h (__attribute__): Remove definition.
14876         (ATTRIBUTE_NORETURN): Update definition. Define always.
14877         * lib/vasnprintf.h (__attribute__): Remove definition.
14878         (_GL_ATTRIBUTE_FORMAT): New macro.
14879         (asnprintf, vasnprintf): Use it.
14880         * lib/xalloc.h (__attribute__): Remove definition.
14881         (ATTRIBUTE_NORETURN): Update definition. Define always.
14882         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14883         * lib/xmemdup0.h (__attribute__): Remove definition.
14884         (ATTRIBUTE_NORETURN): Update definition. Define always.
14885         * lib/xprintf.h (__attribute__): Remove definition.
14886         (_GL_ATTRIBUTE_FORMAT): New macro.
14887         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14888         * lib/xstrtol.h (__attribute__): Remove definition.
14889         (ATTRIBUTE_NORETURN): Update definition. Define always.
14890         * lib/xvasprintf.h (__attribute__): Remove definition.
14891         (_GL_ATTRIBUTE_FORMAT): New macro.
14892         (xasprintf, xvasprintf): Use it.
14893         * tests/test-argmatch.c (__attribute__): Remove definition.
14894         (ATTRIBUTE_NORETURN): Update definition. Define always.
14895         * tests/test-exclude.c (__attribute__): Remove definition.
14896         (ATTRIBUTE_NORETURN): Update definition. Define always.
14897         Reported by Paul Eggert.
14898
14899 2011-02-13  Bruno Haible  <bruno@clisp.org>
14900
14901         mbrtowc: Add more tests for native Windows platforms.
14902         * tests/test-mbrtowc-w32-1.sh: New file.
14903         * tests/test-mbrtowc-w32-2.sh: New file.
14904         * tests/test-mbrtowc-w32-3.sh: New file.
14905         * tests/test-mbrtowc-w32-4.sh: New file.
14906         * tests/test-mbrtowc-w32-5.sh: New file.
14907         * tests/test-mbrtowc-w32.c: New file.
14908         * modules/mbrtowc-tests (Files): Add them.
14909         (Makefile.am): Arrange to run these tests.
14910         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14911         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14912
14913 2011-02-13  Bruno Haible  <bruno@clisp.org>
14914
14915         mbrtowc: Work around native Windows bug.
14916         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14917         guess when no suitable locale for testing was found.
14918         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14919
14920 2011-02-13  Bruno Haible  <bruno@clisp.org>
14921
14922         mbsinit: Work around mingw bug.
14923         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14924         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14925         Windows.
14926         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14927
14928 2011-02-13  Bruno Haible  <bruno@clisp.org>
14929
14930         mbsinit: Don't crash for a NULL argument.
14931         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14932         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14933
14934 2011-02-13  Bruno Haible  <bruno@clisp.org>
14935
14936         Don't interfere with a program's definition of __attribute__.
14937         * lib/stdio.in.h (__attribute__): Remove definition.
14938         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14939         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14940         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14941         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14942         * lib/string.in.h (__attribute__): Remove definition.
14943         Reported by Paul Eggert.
14944
14945 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14946
14947         stdlib: don't get in the way of non-GCC __attribute__
14948         See thread starting at
14949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14950         Revert previous stdlib change, installing the following instead:
14951         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14952         to get in the way of a non-GCC compiler that supports __attribute__.
14953         (_GL_ATTRIBUTE_RETURN): New macro.
14954         (_Exit): Use it instead of __attribute__.
14955
14956 2011-02-12  Bruno Haible  <bruno@clisp.org>
14957
14958         quotearg test: Avoid test failure on mingw.
14959         * tests/test-quotearg.sh: Convert the locale identifier from native
14960         Windows syntax to Unix syntax.
14961
14962 2011-02-12  Bruno Haible  <bruno@clisp.org>
14963
14964         setlocale: Prefer gnulib's override over libintl's override.
14965         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14966         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14967         GNULIB_defined_setlocale is set.
14968
14969 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14970
14971         stdlib: support non-GCC __attribute__
14972
14973         Fix a serious and tricky problem encountered when attempting to
14974         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14975         5.5, but it crashed due to memory corruption on Solaris 10 with
14976         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14977         bits that are otherwise zero.  This tagging is optional inside
14978         Emacs but is preferred and is used when __attribute__ ((__aligned
14979         (8))) works, as it does with both recent-enough GCC and with Sun C
14980         5.11.  However, Sun C 5.11 is not GCC and does not #define
14981         __GNUC__ and __GNUC_MINOR__.
14982
14983         When I added the getloadavg module to Emacs, it brought in
14984         stdlib.in.h, which contained this fragment:
14985
14986            #ifndef __attribute__
14987            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14988            #  define __attribute__(Spec)   /* empty */
14989            # endif
14990            #endif
14991
14992         When files that include <stdlib.h> were compiled with Sun C 5.11,
14993         the above code disabled __attribute__ ((__aligned (8))), which
14994         caused variables to not be properly aligned, which eventually led
14995         to the pointer corruption mentioned above.  (This was a bit hard
14996         to diagnose, unfortunately.)
14997
14998         Several "#define __attribute__(X) /* empty */" code snippets need
14999         to be eradicated from Gnulib to work with non-GCC compilers that
15000         support __attribute__.  The Autoconf way to do this is to test for
15001         each kind of attribute that we want support for, and selectively
15002         enable that in source code.
15003
15004         Fix this problem just for stdlib.h, by adding a test for the
15005         __noreturn__ attribute, and change stdlib.in.h to use that test
15006         when needed.  This technique can be easily generalized to the
15007         other *.in.h files and attributes, and a similar technique can be
15008         used for *.h and *.c files.  This patch is enough to solve the
15009         problem for Emacs + getloadavg, and I thought I'd publish it for
15010         feedback before undertaking further, similar fixes in other
15011         modules.
15012
15013         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15014         because it's not needed for stdlib.h.  It merely substitutes the
15015         value directly into stdlib.h.  We may well need to #define it, or
15016         similar symbols, for other modules, but it's nice to also have an
15017         option to not #define it for applications like Emacs that do not
15018         need it.
15019
15020         * lib/stdlib.in.h (__attribute__): Do not #define.
15021         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15022         be defined only if the _Exit module is also used.
15023         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15025         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15026         platforms.
15027         * modules/_Exit (Files): Add m4/attribute.m4.
15028         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15029         * m4/attribute.m4: New file.
15030
15031 2011-02-12  Bruno Haible  <bruno@clisp.org>
15032
15033         wcsrtombs: Work around bug on native Windows.
15034         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15035         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15036         instead of len.
15037         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15038
15039 2011-02-12  Bruno Haible  <bruno@clisp.org>
15040
15041         mbsrtowcs: Work around bug on native Windows.
15042         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15043         against mingw bug.
15044         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15045
15046 2011-02-12  Bruno Haible  <bruno@clisp.org>
15047
15048         Avoid setlocale bugs in tests.
15049         * modules/btowc (Dependencies): Add setlocale.
15050         * modules/c-strcase (Dependencies): Likewise.
15051         * modules/mbmemcasecmp (Dependencies): Likewise.
15052         * modules/mbmemcasecoll (Dependencies): Likewise.
15053         * modules/mbrtowc (Dependencies): Likewise.
15054         * modules/mbscasecmp (Dependencies): Likewise.
15055         * modules/mbscasestr (Dependencies): Likewise.
15056         * modules/mbschr (Dependencies): Likewise.
15057         * modules/mbscspn (Dependencies): Likewise.
15058         * modules/mbsinit (Dependencies): Likewise.
15059         * modules/mbsncasecmp (Dependencies): Likewise.
15060         * modules/mbsnrtowcs (Dependencies): Likewise.
15061         * modules/mbspbrk (Dependencies): Likewise.
15062         * modules/mbspcasecmp (Dependencies): Likewise.
15063         * modules/mbsrchr (Dependencies): Likewise.
15064         * modules/mbsrtowcs (Dependencies): Likewise.
15065         * modules/mbsspn (Dependencies): Likewise.
15066         * modules/mbsstr (Dependencies): Likewise.
15067         * modules/nl_langinfo (Dependencies): Likewise.
15068         * modules/quotearg (Dependencies): Likewise.
15069         * modules/unicase/locale-language (Dependencies): Likewise.
15070         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15071         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15072         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15073         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15074         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15075         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15076         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15077         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15078         * modules/vasnprintf-posix (Dependencies): Likewise.
15079         * modules/wcrtomb (Dependencies): Likewise.
15080         * modules/wcsnrtombs (Dependencies): Likewise.
15081         * modules/wcsrtombs (Dependencies): Likewise.
15082
15083 2011-02-12  Bruno Haible  <bruno@clisp.org>
15084
15085         setlocale: Workaround native Windows bug.
15086         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15087         succeeds but sets LC_CTYPE to "C", report a failure.
15088         * tests/test-setlocale2.sh: New file.
15089         * tests/test-setlocale2.c: New file.
15090         * modules/setlocale-tests (Files): Add the new files.
15091         (Makefile.am): Enable test-setlocale2.sh test.
15092         * doc/posix-functions/setlocale.texi: Mention workaround.
15093
15094 2011-02-11  Bruno Haible  <bruno@clisp.org>
15095
15096         Tests for module 'setlocale'.
15097         * modules/setlocale-tests: New file.
15098         * tests/test-setlocale1.sh: New file.
15099         * tests/test-setlocale1.c: New file.
15100
15101         New module 'setlocale'.
15102         * lib/locale.in.h (setlocale): New declaration.
15103         * lib/setlocale.c: New file, based on
15104         gettext/gettext-runtime/intl/setlocale.c.
15105         * m4/setlocale.m4: New file.
15106         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15107         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15108         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15109         REPLACE_SETLOCALE.
15110         * modules/setlocale: New file.
15111         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15112         * doc/posix-functions/setlocale.texi: Mention the new module.
15113
15114 2011-02-11  Bruno Haible  <bruno@clisp.org>
15115
15116         Prepare for locale dependent tests on mingw.
15117         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15118         because it has the wrong locale encoding.
15119         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15120         French_France.1252 instead of "fr".
15121         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15122         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15123         because it has the wrong locale encoding.
15124         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15125         native Windows, try Turkish_Turkey.65001.
15126         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15127         Chinese_China.54936.
15128
15129         Prepare for locale dependent tests on mingw.
15130         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15131         differently.
15132         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15133         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15134         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15135         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15136
15137 2011-02-11  Eric Blake  <eblake@redhat.com>
15138
15139         strptime: avoid compiler warnings
15140         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15141         compiler warnings about dead code.
15142         Reported by Daniel P. Berrange.
15143
15144 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15145
15146         doc: update users.txt
15147         * users.txt: Add rcs.
15148
15149 2011-02-10  John W. Eaton  <jwe@gnu.org>
15150
15151         doc: update users.txt
15152         * users.txt: Add octave.
15153
15154 2011-02-10  Jim Meyering  <meyering@redhat.com>
15155
15156         doc: update users.txt
15157         * users.txt: Add iwhd.
15158
15159 2011-02-09  Bruno Haible  <bruno@clisp.org>
15160
15161         gnulib-tool: Make copyright notice adjustment more robust.
15162         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15163         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15164         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15165         License".
15166         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15167
15168 2011-02-06  Bruno Haible  <bruno@clisp.org>
15169
15170         New module 'towctrans'.
15171         * modules/towctrans: New file.
15172         * lib/wctype.in.h (towctrans): New declaration.
15173         * lib/towctrans.c: New file.
15174         * lib/towctrans-impl.h: New file.
15175         * m4/towctrans.m4: New file.
15176         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15177         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15178         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15179         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15180         * doc/posix-functions/towctrans.texi: Mention the new module.
15181
15182 2011-02-06  Bruno Haible  <bruno@clisp.org>
15183
15184         New module 'wctrans'.
15185         * modules/wctrans: New file.
15186         * lib/wctype.in.h (wctrans): New declaration.
15187         * lib/wctrans.c: New file.
15188         * lib/wctrans-impl.h: New file.
15189         * m4/wctrans.m4: New file.
15190         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15191         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15192         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15193         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15194         * doc/posix-functions/wctrans.texi: Mention the new module.
15195
15196 2011-02-06  Bruno Haible  <bruno@clisp.org>
15197
15198         New module 'iswctype'.
15199         * modules/iswctype: New file.
15200         * lib/wctype.in.h (iswctype): New declaration.
15201         * lib/iswctype.c: New file.
15202         * lib/iswctype-impl.h: New file.
15203         * m4/iswctype.m4: New file.
15204         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15205         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15206         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15207         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15208         * doc/posix-functions/iswctype.texi: Mention the new module and the
15209         HP-UX 11.00 problem.
15210
15211 2011-02-06  Bruno Haible  <bruno@clisp.org>
15212
15213         New module 'wctype'.
15214         * modules/wctype: Change to represent the wctype() substitute.
15215         * lib/wctype.in.h (wctype): New declaration.
15216         * lib/wctype.c: New file.
15217         * lib/wctype-impl.h: New file.
15218         * m4/wctype.m4: New file.
15219         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15220         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15221         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15222         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15223         * doc/posix-functions/wctype.texi: Mention the new module and the
15224         HP-UX 11.00 problem.
15225
15226 2011-02-06  Bruno Haible  <bruno@clisp.org>
15227
15228         wctype-h: Ensure wctype_t and wctrans_t are defined.
15229         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15230         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15231         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15232         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15233         HAVE_WCTRANS_T.
15234         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15235
15236 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15237
15238         flock: fix license typo
15239
15240         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15241         omitted.
15242
15243 2011-02-08  Bruno Haible  <bruno@clisp.org>
15244
15245         Split large sed scripts, for HP-UX sed.
15246         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15247         to avoid HP-UX limit of 99 commands, in the near future.
15248         * modules/stdlib (Makefile.am): Likewise.
15249         * modules/unistd (Makefile.am): Likewise.
15250         * modules/wchar (Makefile.am): Likewise.
15251         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15252         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15253         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15254
15255 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15256             Bruno Haible  <bruno@clisp.org>
15257
15258         stdlib: improve random_r modularization
15259         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15260         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15261         you also need the random_r module to get this material right.
15262         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15263         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15264         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15265
15266 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15267
15268         stdlib: don't depend on stdint
15269         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15270         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15271         be independent of whether stdint.h is needed.
15272         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15273         here, instead of ...
15274         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15275         struct random_data should be using the random_r module, not just
15276         the stdlib module (which wouldn't make sense: what package needs
15277         just struct random_data without also needing random_r?).
15278         * modules/stdlib (Depends-on): Remove stdint.
15279
15280         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15281         See the thread rooted at
15282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15283         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15284         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15285         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15286         __VMS)); previously it was always included (via fcntl--.h).
15287         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15288         hand; this is good enough for load averages.  Also, do not use
15289         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15290         flags directly if available and don't bother otherwise.  (Packages
15291         that need the extra reliability should use the modules that define
15292         these flags on older platforms that lack them.)
15293         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15294         fcntl-safer.
15295
15296 2011-02-08  Jim Meyering  <meyering@redhat.com>
15297
15298         di-set.h, ino-map.h: add multiple-inclusion guard
15299         Technically, the guard is required only for ino-map.h, due to its
15300         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15301         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15302         * lib/ino-map.h: Likewise.
15303
15304 2011-02-06  Bruno Haible  <bruno@clisp.org>
15305
15306         iswblank: Ensure declaration on glibc systems.
15307         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15308         * modules/iswblank (Dependencies): Add 'extensions'.
15309         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15310
15311 2011-02-06  Bruno Haible  <bruno@clisp.org>
15312
15313         New module 'iswblank'.
15314         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15315         * modules/iswblank: New file.
15316         * modules/wctype-h (Files): Remove lib/iswblank.c.
15317         (Makefile.am): Substitute GNULIB_ISWBLANK.
15318         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15319         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15320         (gl_WCTYPE_H_DEFAULTS): New macro.
15321         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15322         * modules/iswblank-tests: New file.
15323         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15324         * tests/test-wctype-h.c (main): Remove iswblank tests.
15325         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15326         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15327         of 'wctype-h'.
15328         * NEWS: Mention the change.
15329         * modules/mbchar (Depends-on): Add iswblank.
15330
15331 2011-02-08  Bruno Haible  <bruno@clisp.org>
15332
15333         di-set tests: Refactor.
15334         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15335         unnecessary includes.
15336         (ASSERT): Remove macro.
15337         (main): Make C90 compliant by avoiding variable declaration after
15338         statement.
15339         * modules/di-set-tests (Files): Add tests/macros.h.
15340
15341 2011-02-08  Bruno Haible  <bruno@clisp.org>
15342
15343         ino-map tests: Refactor.
15344         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15345         unnecessary includes.
15346         (ASSERT): Remove macro.
15347         (main): Make C90 compliant by avoiding variable declaration after
15348         statement.
15349         * modules/ino-map-tests (Files): Add tests/macros.h.
15350
15351 2011-02-08  Jim Meyering  <meyering@redhat.com>
15352
15353         di-set: add "const" to a cast
15354         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15355         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15356
15357 2011-02-06  Bruno Haible  <bruno@clisp.org>
15358
15359         Rename module 'wctype' to 'wctype-h'.
15360         * modules/wctype-h: Renamed from modules/wctype.
15361         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15362         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15363         (Files, Depends-on, Makefile.am): Update.
15364         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15365         (Files, Makefile.am): Update.
15366         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15367         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15368         * doc/posix-headers/wctype.texi: Update.
15369         * doc/posix-functions/iswalnum.texi: Update.
15370         * doc/posix-functions/iswalpha.texi: Update.
15371         * doc/posix-functions/iswblank.texi: Update.
15372         * doc/posix-functions/iswcntrl.texi: Update.
15373         * doc/posix-functions/iswdigit.texi: Update.
15374         * doc/posix-functions/iswgraph.texi: Update.
15375         * doc/posix-functions/iswlower.texi: Update.
15376         * doc/posix-functions/iswprint.texi: Update.
15377         * doc/posix-functions/iswpunct.texi: Update.
15378         * doc/posix-functions/iswspace.texi: Update.
15379         * doc/posix-functions/iswupper.texi: Update.
15380         * doc/posix-functions/iswxdigit.texi: Update.
15381         * doc/posix-functions/towlower.texi: Update.
15382         * doc/posix-functions/towupper.texi: Update.
15383         * NEWS: Mention the change.
15384         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15385         * modules/mbchar (Dependencies): Likewise.
15386         * modules/mbswidth (Dependencies): Likewise.
15387         * modules/quotearg (Dependencies): Likewise.
15388         * modules/regex (Dependencies): Likewise.
15389         * modules/wcscasecmp (Dependencies): Likewise.
15390         * modules/wcsncasecmp (Dependencies): Likewise.
15391         * modules/wcwidth (Dependencies): Likewise.
15392
15393 2011-02-06  Bruno Haible  <bruno@clisp.org>
15394
15395         New module 'wcswidth'.
15396         * modules/wcswidth: New file.
15397         * lib/wchar.in.h (wcswidth): New declaration.
15398         * lib/wcswidth.c: New file.
15399         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15400         * m4/wcswidth.m4: New file.
15401         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15402         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15403         REPLACE_WCSWIDTH.
15404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15405         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15406         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15407         * doc/posix-functions/wcswidth.texi: Mention the new module.
15408
15409 2011-02-06  Bruno Haible  <bruno@clisp.org>
15410
15411         New module 'wcstok'.
15412         * modules/wcstok: New file.
15413         * lib/wchar.in.h (wcstok): New declaration.
15414         * lib/wcstok.c: New file.
15415         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15416         * m4/wcstok.m4: New file.
15417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15420         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15421         * doc/posix-functions/wcstok.texi: Mention the new module.
15422
15423 2011-02-06  Bruno Haible  <bruno@clisp.org>
15424
15425         New module 'wcsstr'.
15426         * modules/wcsstr: New file.
15427         * lib/wchar.in.h (wcsstr): New declaration.
15428         * lib/wcsstr.c: New file.
15429         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15430         * m4/wcsstr.m4: New file.
15431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15434         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15435         * doc/posix-functions/wcsstr.texi: Mention the new module.
15436
15437 2011-02-06  Bruno Haible  <bruno@clisp.org>
15438
15439         New module 'wcspbrk'.
15440         * modules/wcspbrk: New file.
15441         * lib/wchar.in.h (wcspbrk): New declaration.
15442         * lib/wcspbrk.c: New file.
15443         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15444         * m4/wcspbrk.m4: New file.
15445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15448         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15449         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15450
15451 2011-02-06  Bruno Haible  <bruno@clisp.org>
15452
15453         New module 'wcsspn'.
15454         * modules/wcsspn: New file.
15455         * lib/wchar.in.h (wcsspn): New declaration.
15456         * lib/wcsspn.c: New file.
15457         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15458         * m4/wcsspn.m4: New file.
15459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15462         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15463         * doc/posix-functions/wcsspn.texi: Mention the new module.
15464
15465 2011-02-06  Bruno Haible  <bruno@clisp.org>
15466
15467         New module 'wcscspn'.
15468         * modules/wcscspn: New file.
15469         * lib/wchar.in.h (wcscspn): New declaration.
15470         * lib/wcscspn.c: New file.
15471         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15472         * m4/wcscspn.m4: New file.
15473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15476         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15477         * doc/posix-functions/wcscspn.texi: Mention the new module.
15478
15479 2011-02-06  Bruno Haible  <bruno@clisp.org>
15480
15481         New module 'wcsrchr'.
15482         * modules/wcsrchr: New file.
15483         * lib/wchar.in.h (wcsrchr): New declaration.
15484         * lib/wcsrchr.c: New file.
15485         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15486         * m4/wcsrchr.m4: New file.
15487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15489         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15490         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15491         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15492
15493 2011-02-06  Bruno Haible  <bruno@clisp.org>
15494
15495         New module 'wcschr'.
15496         * modules/wcschr: New file.
15497         * lib/wchar.in.h (wcschr): New declaration.
15498         * lib/wcschr.c: New file.
15499         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15500         * m4/wcschr.m4: New file.
15501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15504         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15505         * doc/posix-functions/wcschr.texi: Mention the new module.
15506
15507 2011-02-06  Bruno Haible  <bruno@clisp.org>
15508
15509         New module 'wcsdup'.
15510         * modules/wcsdup: New file.
15511         * lib/wchar.in.h (wcsdup): New declaration.
15512         * lib/wcsdup.c: New file.
15513         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15514         * m4/wcsdup.m4: New file.
15515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15518         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15519         * doc/posix-functions/wcsdup.texi: Mention the new module.
15520
15521 2011-02-06  Bruno Haible  <bruno@clisp.org>
15522
15523         New module 'wcsxfrm'.
15524         * modules/wcsxfrm: New file.
15525         * lib/wchar.in.h (wcsxfrm): New declaration.
15526         * lib/wcsxfrm.c: New file.
15527         * lib/wcsxfrm-impl.h: New file.
15528         * m4/wcsxfrm.m4: New file.
15529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15531         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15532         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15533         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15534
15535 2011-02-06  Bruno Haible  <bruno@clisp.org>
15536
15537         New module 'wcscoll'.
15538         * modules/wcscoll: New file.
15539         * lib/wchar.in.h (wcscoll): New declaration.
15540         * lib/wcscoll.c: New file.
15541         * lib/wcscoll-impl.h: New file.
15542         * m4/wcscoll.m4: New file.
15543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15546         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15547         * doc/posix-functions/wcscoll.texi: Mention the new module.
15548
15549 2011-02-06  Bruno Haible  <bruno@clisp.org>
15550
15551         New module 'wcsncasecmp'.
15552         * modules/wcsncasecmp: New file.
15553         * lib/wchar.in.h (wcsncasecmp): New declaration.
15554         * lib/wcsncasecmp.c: New file.
15555         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15556         * m4/wcsncasecmp.m4: New file.
15557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15560         HAVE_WCSNCASECMP.
15561         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15562         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15563
15564 2011-02-06  Bruno Haible  <bruno@clisp.org>
15565
15566         New module 'wcscasecmp'.
15567         * modules/wcscasecmp: New file.
15568         * lib/wchar.in.h (wcscasecmp): New declaration.
15569         * lib/wcscasecmp.c: New file.
15570         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15571         * m4/wcscasecmp.m4: New file.
15572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15575         HAVE_WCSCASECMP.
15576         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15577         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15578
15579 2011-02-05  Bruno Haible  <bruno@clisp.org>
15580
15581         New module 'wcsncmp'.
15582         * modules/wcsncmp: New file.
15583         * lib/wchar.in.h (wcsncmp): New declaration.
15584         * lib/wcsncmp.c: New file.
15585         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15586         * m4/wcsncmp.m4: New file.
15587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15590         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15591         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15592
15593 2011-02-05  Bruno Haible  <bruno@clisp.org>
15594
15595         New module 'wcscmp'.
15596         * modules/wcscmp: New file.
15597         * lib/wchar.in.h (wcscmp): New declaration.
15598         * lib/wcscmp.c: New file.
15599         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15600         * m4/wcscmp.m4: New file.
15601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15604         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15605         * doc/posix-functions/wcscmp.texi: Mention the new module.
15606
15607 2011-02-05  Bruno Haible  <bruno@clisp.org>
15608
15609         New module 'wcsncat'.
15610         * modules/wcsncat: New file.
15611         * lib/wchar.in.h (wcsncat): New declaration.
15612         * lib/wcsncat.c: New file.
15613         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15614         * m4/wcsncat.m4: New file.
15615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15618         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15619         * doc/posix-functions/wcsncat.texi: Mention the new module.
15620
15621 2011-02-05  Bruno Haible  <bruno@clisp.org>
15622
15623         New module 'wcscat'.
15624         * modules/wcscat: New file.
15625         * lib/wchar.in.h (wcscat): New declaration.
15626         * lib/wcscat.c: New file.
15627         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15628         * m4/wcscat.m4: New file.
15629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15632         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15633         * doc/posix-functions/wcscat.texi: Mention the new module.
15634
15635 2011-02-05  Bruno Haible  <bruno@clisp.org>
15636
15637         New module 'wcpncpy'.
15638         * modules/wcpncpy: New file.
15639         * lib/wchar.in.h (wcpncpy): New declaration.
15640         * lib/wcpncpy.c: New file.
15641         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15642         * m4/wcpncpy.m4: New file.
15643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15645         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15646         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15647         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15648
15649 2011-02-05  Bruno Haible  <bruno@clisp.org>
15650
15651         New module 'wcsncpy'.
15652         * modules/wcsncpy: New file.
15653         * lib/wchar.in.h (wcsncpy): New declaration.
15654         * lib/wcsncpy.c: New file.
15655         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15656         * m4/wcsncpy.m4: New file.
15657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15660         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15661         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15662
15663 2011-02-05  Bruno Haible  <bruno@clisp.org>
15664
15665         New module 'wcpcpy'.
15666         * modules/wcpcpy: New file.
15667         * lib/wchar.in.h (wcpcpy): New declaration.
15668         * lib/wcpcpy.c: New file.
15669         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15670         * m4/wcpcpy.m4: New file.
15671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15673         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15674         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15675         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15676
15677 2011-02-05  Bruno Haible  <bruno@clisp.org>
15678
15679         New module 'wcscpy'.
15680         * modules/wcscpy: New file.
15681         * lib/wchar.in.h (wcscpy): New declaration.
15682         * lib/wcscpy.c: New file.
15683         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15684         * m4/wcscpy.m4: New file.
15685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15688         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15689         * doc/posix-functions/wcscpy.texi: Mention the new module.
15690
15691 2011-02-05  Bruno Haible  <bruno@clisp.org>
15692
15693         New module 'wcsnlen'.
15694         * modules/wcsnlen: New file.
15695         * lib/wchar.in.h (wcsnlen): New declaration.
15696         * lib/wcsnlen.c: New file.
15697         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15698         * m4/wcsnlen.m4: New file.
15699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15702         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15703         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15704
15705 2011-02-05  Bruno Haible  <bruno@clisp.org>
15706
15707         New module 'wcslen'.
15708         * modules/wcslen: New file.
15709         * lib/wchar.in.h (wcslen): New declaration.
15710         * lib/wcslen.c: New file.
15711         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15712         * m4/wcslen.m4: New file.
15713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15716         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15717         * doc/posix-functions/wcslen.texi: Mention the new module.
15718
15719 2011-02-05  Bruno Haible  <bruno@clisp.org>
15720
15721         New module 'wmemset'.
15722         * modules/wmemset: New file.
15723         * lib/wchar.in.h (wmemset): New declaration.
15724         * lib/wmemset.c: New file.
15725         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15726         * m4/wmemset.m4: New file.
15727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15729         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15730         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15731         * doc/posix-functions/wmemset.texi: Mention the new module.
15732
15733 2011-02-05  Bruno Haible  <bruno@clisp.org>
15734
15735         New module 'wmemmove'.
15736         * modules/wmemmove: New file.
15737         * lib/wchar.in.h (wmemmove): New declaration.
15738         * lib/wmemmove.c: New file.
15739         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15740         * m4/wmemmove.m4: New file.
15741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15743         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15744         HAVE_WMEMMOVE.
15745         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15746         * doc/posix-functions/wmemmove.texi: Mention the new module.
15747
15748 2011-02-05  Bruno Haible  <bruno@clisp.org>
15749
15750         New module 'wmemcpy'.
15751         * modules/wmemcpy: New file.
15752         * lib/wchar.in.h (wmemcpy): New declaration.
15753         * lib/wmemcpy.c: New file.
15754         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15755         * m4/wmemcpy.m4: New file.
15756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15758         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15759         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15760         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15761
15762 2011-02-05  Bruno Haible  <bruno@clisp.org>
15763
15764         New module 'wmemcmp'.
15765         * modules/wmemcmp: New file.
15766         * lib/wchar.in.h (wmemcmp): New declaration.
15767         * lib/wmemcmp.c: New file.
15768         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15769         * m4/wmemcmp.m4: New file.
15770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15772         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15773         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15774         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15775
15776 2011-02-07  Jim Meyering  <meyering@redhat.com>
15777
15778         di-set, ino-map: new modules, from coreutils
15779         * lib/di-set.c: New file.
15780         * lib/di-set.h: Likewise.
15781         * lib/ino-map.c: Likewise.
15782         * lib/ino-map.h: Likewise.
15783         * modules/di-set: Likewise.
15784         * modules/di-set-tests: Likewise.
15785         * modules/ino-map: Likewise.
15786         * modules/ino-map-tests: Likewise.
15787         * tests/test-di-set.c: Likewise.
15788         * tests/test-ino-map.c: Likewise.
15789
15790 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15791
15792         getloadavg: merge minor changes from Emacs
15793
15794         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15795         (getloadavg): Use memset, not bzero.
15796
15797         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15798         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15799         clash (bug#86).
15800
15801 2010-11-14  Bruno Haible  <bruno@clisp.org>
15802
15803         Allow multiple gnulib generated replacements to coexist.
15804         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15805         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15806         * lib/langinfo.in.h (nl_item): Likewise.
15807         * lib/math.in.h (_NaN, NAN): Likewise.
15808         * lib/netdb.in.h (struct addrinfo): Likewise.
15809         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15810         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15811         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15812         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15813         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15814         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15815         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15816         pthread_mutexattr_init, pthread_mutexattr_settype,
15817         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15818         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15819         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15820         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15821         * lib/sched.in.h (struct sched_param): Likewise.
15822         * lib/se-selinux.in.h (security_class_t, security_context_t,
15823         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15824         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15825         lsetfilecon, fsetfilecon, security_check_context,
15826         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15827         Likewise.
15828         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15829         Likewise.
15830         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15831         _gl_function_taking_int_returning_void_t, union sigval,
15832         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15833         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15834         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15835         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15836         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15837         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15838         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15839         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15840         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15841         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15842         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15843         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15844         socklen_t, rpl_fd_isset): Likewise.
15845         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15846         * lib/sys_time.in.h (struct timeval): Likewise.
15847         * lib/sys_times.in.h (struct tms): Likewise.
15848         * lib/sys_utsname.in.h (struct utsname):
15849         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15850         * lib/unistd.in.h (getpagesize): Likewise.
15851         * lib/wchar.in.h (mbstate_t): Likewise.
15852         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15853         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15854         towlower, towupper): Likewise.
15855         Reported by Sam Steingold <sds@gnu.org>.
15856
15857 2011-02-05  Eric Blake  <eblake@redhat.com>
15858
15859         unsetenv: work around Haiku issues
15860         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15861         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15862
15863 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15864
15865         libposix: avoid calling error() within libposix
15866         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15867         is defined.
15868
15869 2011-02-05  Eric Blake  <eblake@redhat.com>
15870
15871         strerror_r-posix: port to cygwin
15872         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15873         implementation.
15874         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15875         * tests/test-strerror_r.c (main): Fix test.
15876         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15877         issue.
15878
15879 2011-02-05  Bruno Haible  <bruno@clisp.org>
15880
15881         New module 'wmemchr'.
15882         * modules/wmemchr: New file.
15883         * lib/wchar.in.h (wmemchr): New declaration.
15884         * lib/wmemchr.c: New file.
15885         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15886         * m4/wmemchr.m4: New file.
15887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15889         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15890         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15891         * doc/posix-functions/wmemchr.texi: Mention the new module.
15892
15893 2011-02-04  Eric Blake  <eblake@redhat.com>
15894
15895         fdopendir: detect FreeBSD bug
15896         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15897         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15898
15899 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15900
15901         stdbool: do not define HAVE_STDBOOL_H
15902         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15903         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15904         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15905         imported from the latest Autoconf git.  It was motivated by Emacs,
15906         which uses gnulib but does not need HAVE_STDBOOL_H.
15907
15908 2011-02-04  Bruno Haible  <bruno@clisp.org>
15909
15910         wcsnrtombs: Prepare for new module wwcsnrtombs.
15911         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15912         * lib/wcsnrtombs.c: Include it.
15913         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15914
15915         wcsrtombs: Prepare for new module wwcsrtombs.
15916         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15917         * lib/wcsrtombs.c: Include it.
15918         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15919
15920         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15921         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15922         * lib/mbsnrtowcs.c: Include it.
15923         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15924
15925         mbsrtowcs: Prepare for new module mbsrtowwcs.
15926         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15927         * lib/mbsrtowcs.c: Include it.
15928         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15929
15930 2011-02-04  Bruno Haible  <bruno@clisp.org>
15931
15932         vasnprintf: Reduce use of malloc for small format strings.
15933         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15934         (arguments): Add room for the first 7 arguments.
15935         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15936         (char_directives, u8_directives, u16_directives, u32_directives): Add
15937         room for the first 7 directives.
15938         * lib/printf-parse.c: Include <string.h>.
15939         (PRINTF_PARSE): Change memory handling code so that it uses the first
15940         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15941         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15942         Reported by Pádraig Brady <P@draigbrady.com>.
15943
15944 2011-01-31  Eric Blake  <eblake@redhat.com>
15945
15946         dup2: work around Haiku bug
15947         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15948         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15949         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15950         * tests/test-dup2.c (main): Enhance test.
15951
15952 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15953
15954         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15955         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15956         declared by eglibc 2.11.2.
15957         * lib/stdio.in.h: Likewise.
15958
15959 2011-01-31  Eric Blake  <eblake@redhat.com>
15960
15961         ignore-value: add missing test dependency
15962         * tests/test-ignore-value.c: Revert previous change; stdio.h
15963         provides off_t.
15964         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15965
15966 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15967
15968         mktime: clarify long_int width checking
15969         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15970         the top level, to make it clearer that the assumption about
15971         long_int width is being checked.  See
15972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15973
15974 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15975
15976         ignore-value: Fix self-test.
15977         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15978
15979 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15980
15981         TYPE_MAXIMUM: avoid theoretically undefined behavior
15982         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15983         negative number, which the C Standard says has undefined behavior.
15984         In practice this is not a problem, but might as well do it by the book.
15985         Reported by Rich Felker and Eric Blake; see
15986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15987         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15988         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15990         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15991         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15992         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15993
15994         mktime: #undef mktime before #defining it
15995         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15996
15997         mktime: systematically normalize tm_isdst comparisons
15998         * lib/mktime.c (isdst_differ): New function.
15999         (__mktime_internal): Use it systematically for all isdst comparisons.
16000         This completes the fix for libc BZ #6723, and removes the need for
16001         normalizing tm_isdst.  See
16002         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16003         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16004
16005         mktime: fix some integer overflow issues and sidestep the rest
16006
16007         This was prompted by a bug report by Benjamin Lindner for MinGW
16008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16009         His bug is due to signed integer overflow (0 - INT_MIN), and I
16010         I scanned through mktime.c looking for other integer overflow
16011         problems, fixing all the bugs I found.
16012
16013         Although the C Standard says the resulting code is still not safe
16014         in the presence of integer overflow, in practice it should be good
16015         enough for all real-world two's-complement implementations, except
16016         for debugging environments that deliberately trap on integer
16017         overflow (e.g., gcc -ftrapv).
16018
16019         * lib/mktime.c (WRAPV): New macro.
16020         (SHR): Also check that long_int and time_t shift right in the
16021         usual way, before using the fast-but-unportable method.
16022         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16023         used.  The code already assumed two's complement, so there's
16024         no need to test for alternatives.  All uses removed.
16025         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16026         the C standard.  Problem reported by Rich Felker in
16027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16028         (twos_complement_arithmetic): Also check long_int and time_t.
16029         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16030         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16031         (__mktime_internal): Avoid integer overflow with unary subtraction
16032         in two instances where -1 - X is an adequate replacement for -X,
16033         since the calculations are approximate.
16034
16035 2011-01-29  Eric Blake  <eblake@redhat.com>
16036
16037         mktime: avoid infinite loop
16038         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16039         type; behavior is still undefined but portable to all known targets.
16040         Reported by Rich Felker.
16041
16042 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16043
16044         rename, unlink, same-inode: Relicense.
16045         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16046         * modules/unlink (License): Likewise.
16047         * modules/same-inode (License): Likewise.
16048
16049 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16050
16051         mktime: avoid problems on NetBSD 5 / i386
16052         * lib/mktime.c (long_int): New type.  This works around a problem
16053         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16054         but time_t is 64 bits, and where I expect the existing code is
16055         wrong in some cases.
16056         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16057         (ydhms_diff): Bring back the compile-time check for wide-enough
16058         year and yday.
16059
16060         mktime: fix misspelling in comment
16061         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16062         This merges all recent glibc changes of importance.
16063
16064 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16065
16066         move-if-change: cope with concurrent mv of identical file.
16067         * build-aux/move-if-change (CMPPROG): Accept environment
16068         variable as an override for `cmp'.
16069         (usage): Document CMPPROG.
16070         Adjust comparison to drop stdout.  Cope with failure of mv if
16071         the target file exists and is identical to the source, for
16072         parallel builds.
16073         Report from H.J. Lu against binutils in PR binutils/12283.
16074
16075 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16076
16077         * users.txt: Mention sharutils.
16078
16079 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16080
16081         * users.txt: Mention OATH Toolkit.
16082
16083 2011-01-27  Bruno Haible  <bruno@clisp.org>
16084
16085         Prepare for supporting FreeBSD 10.
16086         * build-aux/config.libpath: Remove handling of freebsd1*.
16087
16088 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16089
16090         Prepare for supporting FreeBSD 10.
16091         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16092         match FreeBSD 10.0.
16093
16094 2011-01-27  Bruno Haible  <bruno@clisp.org>
16095
16096         vma-iter, get-rusage-as: Add OpenBSD support.
16097         * modules/vma-iter (configure.ac): Test for mquery.
16098         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16099         * lib/vma-iter.c: Include <sys/mman.h>.
16100         (vma_iterate): Add an implementation based on mquery().
16101         * lib/resource-ext.h (get_rusage_as): Update comments.
16102         * lib/get-rusage-as.c: Likewise.
16103         * lib/get-rusage-data.c: Likewise.
16104
16105 2011-01-26  Karl Berry  <karl@gnu.org>
16106
16107         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16108         variables to make it easier to override the makeinfo program used.
16109
16110 2011-01-26  Eric Blake  <eblake@redhat.com>
16111
16112         fcntl: work around Haiku F_DUPFD bugs
16113         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16114         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16115         cloexec bit on duplication.
16116         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16117
16118 2011-01-26  Bruno Haible  <bruno@clisp.org>
16119
16120         Enable memory leak tests on AIX.
16121         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16122         * tests/test-fprintf-posix3.c (main): Likewise.
16123
16124 2011-01-26  Bruno Haible  <bruno@clisp.org>
16125
16126         Tests for module 'get-rusage-data'.
16127         * modules/get-rusage-data-tests: New file.
16128         * tests/test-get-rusage-data.c: New file.
16129
16130         New module 'get-rusage-data'.
16131         * lib/resource-ext.h (get_rusage_data): New declaration.
16132         * lib/get-rusage-data.c: New file.
16133         * modules/get-rusage-data: New file.
16134
16135 2011-01-25  Bruno Haible  <bruno@clisp.org>
16136
16137         get-rusage-as: Allow for easier testing.
16138         * lib/resource-ext.h (get_rusage_as): Add comment.
16139         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16140         (main): New function for interactive testing.
16141
16142 2011-01-25  Bruno Haible  <bruno@clisp.org>
16143
16144         vma-iter: Treat Haiku like BeOS.
16145         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16146         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16147
16148 2011-01-25  Eric Blake  <eblake@redhat.com>
16149
16150         c-stack: fix regression on cygwin when libsigsegv is present
16151         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16152
16153 2011-01-24  Bruno Haible  <bruno@clisp.org>
16154
16155         vma-iter: Avoid empty intervals.
16156         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16157         on an empty interval.
16158
16159 2011-01-24  Jim Meyering  <meyering@redhat.com>
16160
16161         u64: remove unnecessary #include
16162         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16163
16164 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16165
16166         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16167         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16168
16169 2011-01-23  Bruno Haible  <bruno@clisp.org>
16170
16171         New module 'vma-iter'.
16172         * lib/vma-iter.h: New file.
16173         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16174         * modules/vma-iter: New file.
16175         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16176         for get_rusage_as_via_iterator.
16177         (vma_iterate_callback): New function.
16178         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16179         * modules/get-rusage-as (Depends-on): Add vma-iter.
16180
16181 2011-01-23  Bruno Haible  <bruno@clisp.org>
16182
16183         uninorm: Tweak includes.
16184         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16185         Reported by Jim Meyering.
16186
16187 2011-01-23  Bruno Haible  <bruno@clisp.org>
16188
16189         get-rusage-as: Improve on NetBSD.
16190         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16191         /proc, like on FreeBSD.
16192
16193 2011-01-23  Jim Meyering  <meyering@redhat.com>
16194
16195         xreadlink.h: remove unnecessary #include
16196         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16197
16198         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16199         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16200
16201 2011-01-23  Bruno Haible  <bruno@clisp.org>
16202
16203         get-rusage-as: Fix bug.
16204         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16205         original limit when aborting the first loop.
16206
16207 2011-01-23  Bruno Haible  <bruno@clisp.org>
16208
16209         wctype: Ensure valid C syntax.
16210         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16211         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16212
16213 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16214
16215         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16217         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16218         as they are needed only for configure's test case.
16219         This removes two unnecessary symbols from config.h.
16220
16221         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16222         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16224         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16225         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16226         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16227         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16228         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16229         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16230         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16231         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16233         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16234         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16235         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16236         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16237         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16238         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16239
16240 2011-01-21  Eric Blake  <eblake@redhat.com>
16241
16242         maintainer-makefile: work with older git for submodule check
16243         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16244         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16245         Reported by Matthias Bolte.
16246
16247         bootstrap: minor portability fixes
16248         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16249         (usage): Omit leading capital and trailing . on help phrases, per
16250         GNU Coding Standards.
16251         (check_versions, top level): Prefix messages with script name.
16252
16253 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16254
16255         bootstrap: support --no-git option
16256         * build-aux/bootstrap: Add --no-git option, to be used when
16257         --gnulib-srcdir points to the exact desired checkout.
16258
16259 2011-01-21  Eric Blake  <eblake@redhat.com>
16260
16261         strerror_r-posix: work with glibc 2.13
16262         * lib/strerror_r.c (strerror_r): Fix return type.
16263
16264 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16265             Bruno Haible  <bruno@clisp.org>
16266
16267         uN_strstr: New unit tests.
16268         * modules/unistr/u8-strstr-tests: New file.
16269         * modules/unistr/u16-strstr-tests: New file.
16270         * modules/unistr/u32-strstr-tests: New file.
16271         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16272         * tests/unistr/test-u8-strstr.c: New file.
16273         * tests/unistr/test-u16-strstr.c: New file.
16274         * tests/unistr/test-u32-strstr.c: New file.
16275
16276 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16277             Bruno Haible  <bruno@clisp.org>
16278
16279         Make uN_strstr functions O(n) worst-case.
16280         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16281         16-bit and 32-bit unit cases, use the unibyte algorithm from
16282         lib/mbsstr.c.
16283         * lib/unistr/u8-strstr.c: Include <string.h>.
16284         (UNIT_IS_UINT8_T): New macro.
16285         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16286         (U_STRLEN, U_STRNLEN): New macros.
16287         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16288         (U_STRLEN, U_STRNLEN): New macros.
16289         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16290         (configure.ac): Update required libunistring version.
16291         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16292         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16293         malloca.
16294         (configure.ac): Update required libunistring version.
16295         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16296         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16297         malloca.
16298         (configure.ac): Update required libunistring version.
16299
16300 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16301             Bruno Haible  <bruno@clisp.org>
16302
16303         Prepare for faster uN_strstr functions.
16304         * lib/str-kmp.h: Support definable UNITs.
16305         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16306         needle_len argument.
16307         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16308         * lib/mbscasestr.c (mbscasestr): Likewise.
16309
16310 2011-01-21  Pádraig Brady <P@draigBrady.com>
16311
16312         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16313         * tests/test-malloca.c (main): Unset the environment variable
16314         to greatly speed up the test.
16315         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16316         * modules/malloca-tests: Depend on unsetenv.
16317
16318 2011-01-21  Pádraig Brady <P@draigBrady.com>
16319
16320         ignore-value: remove stdint dependency
16321         * lib/ignore-value.h: Remove <stdint.h>
16322         * modules/ignore-value: Remove stdint dependency.
16323
16324 2011-01-21  Jim Meyering  <meyering@redhat.com>
16325
16326         maint.mk: adjust variable name to be consistent with other gl_ vars
16327         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16328         to be lower case.
16329
16330 2011-01-20  Jim Meyering  <meyering@redhat.com>
16331
16332         maint.mk: make "check" depend on public-submodule-commit by default
16333         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16334
16335 2011-01-20  Bruno Haible  <bruno@clisp.org>
16336
16337         mbfile, mbiter: Complete change from 2008-12-21.
16338         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16339         * m4/mbiter.m4 (gl_MBITER): Likewise.
16340
16341 2011-01-20  Jim Meyering  <meyering@redhat.com>
16342
16343         init.sh: insert space between each function name and "()"
16344         * tests/init.sh: Make it a little easier to see that a function's
16345         name is "warn_", and not "warn" when looking at the first part of
16346         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16347
16348 2011-01-20  Jim Meyering  <meyering@redhat.com>
16349
16350         mountlist: clean up code formatting
16351         * lib/mountlist.c (read_file_system_list): Split a long line,
16352         correct bracing style, use NULL in place of "(struct statfs *)0",
16353         don't parenthesize return value, add spaces around "=" and after
16354         ";-in-for-stmt".
16355
16356 2011-01-14  Markus Duft <mduft@gentoo.org>
16357
16358         mountlist: add support for Interix
16359         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16360         Apply statvfs to all entries of /dev/fs.
16361         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16362         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16363
16364 2011-01-20  Jim Meyering  <meyering@redhat.com>
16365
16366         maint.mk: improve the public-submodule-commit rule
16367         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16368         to suppress printing of its commands... unless V=1.
16369         Add git submodule's --quiet option to suppress printing of e.g.,
16370         "Entering gnulib" output.
16371         "cd" into $(srcdir) before running git submodule.
16372
16373 2011-01-20  Bruno Haible  <bruno@clisp.org>
16374
16375         include_next: Fix bug introduced on 2011-01-18.
16376         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16377         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16378         ac_cv_header_... variable if the second argument is not 'check'.
16379         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16380         gl_NEXT_HEADERS_INTERNAL.
16381
16382 2011-01-20  Bruno Haible  <bruno@clisp.org>
16383
16384         Allow the user to avoid the GNULIB_TEST_* macros.
16385         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16386         Suggested by Paul Eggert.
16387
16388 2011-01-14  Jim Meyering  <meyering@redhat.com>
16389
16390         bootstrap: avoid failure when there is no .gitmodules file
16391         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16392         has been assigned to, even when its value is the empty string.
16393         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16394         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16395         Reported by John W. Eaton <jwe@gnu.org>.
16396
16397 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16398
16399         assume <ctype.h>, ..., <time.h> exist
16400         For years gnulib has been assuming the existence of the headers
16401         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16402         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16403         them, since they don't appear to be needed.
16404         * README (Portability guidelines): Document this.
16405         * lib/flock.c: Assume <fcntl.h> exists.
16406         * lib/regex_internal.h: Assume <locale.h> exists.
16407         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16409         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16410         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16411         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16412         * m4/regex.m4 (gl_REGEX): Likewise.
16413         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16414         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16415         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16416         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16417         * tests/test-argp.c: Likewise.
16418         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16419
16420         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16421         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16422         AA_APPLE_UNIVERSAL_BUILD.  See
16423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16424         * NEWS: Document this.
16425
16426 2011-01-19  Eric Blake  <eblake@redhat.com>
16427
16428         c-stack: assume stack overflow if SA_SIGINFO unsupported
16429         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16430         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16431         sigaction will work.
16432         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16433         behavior match Linux.
16434         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16435
16436         stdbool-tests: accomodate Haiku
16437         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16438
16439         binary-io: fix O_TEXT on Haiku
16440         * modules/binary-io (Depends-on): Add fcntl-h.
16441         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16442         than blindly undefining O_TEXT.
16443         Reported by Scott McCreary.
16444
16445 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16446
16447         include_next: do not check for standard headers like stddef.h
16448
16449         I found this problem when modifying Emacs to use gnulib.
16450         I noticed that it added HAVE_STDDEF_H to config.h, even though
16451         gnulib always assumes <stddef.h> exists as per README and this
16452         symbol is unnecessary.
16453         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16454         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16455         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16456         faster for headers like stddef.h that are known to exist.
16457         (gl_CHECK_NEXT_HEADERS): Use it.
16458         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16459         rather than gl_CHECK_NEXT_HEADERS.
16460         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16461         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16462
16463 2011-01-18  Eric Blake  <eblake@redhat.com>
16464
16465         ansi-c++-opt: skip C++ dependency style if C++ is unused
16466         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16467         tests when we know C++ compilation is not desired.
16468         Reported by Scott McCreary.
16469
16470 2011-01-18  Bruno Haible  <bruno@clisp.org>
16471
16472         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16473         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16474         (main): Perform test also when getrlimit and setrlimit don't exist or
16475         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16476         limiting the address space size using setrlimit, compare the address
16477         space size before and after the the test.
16478         * tests/test-dprintf-posix2.c: Likewise.
16479         * tests/test-fprintf-posix3.sh: Update skip messages.
16480         * tests/test-dprintf-posix2.sh: Likewise.
16481         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16482         * modules/dprintf-posix-tests (Depends-on): Likewise.
16483         Reported by Bruce Korb <bkorb@gnu.org> and
16484         Gary V. Vaughan <gary@gnu.org>.
16485
16486 2011-01-18  Bruno Haible  <bruno@clisp.org>
16487
16488         get-rusage-as: Improvement for Cygwin.
16489         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16490         areas that are merely reserved.
16491
16492 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16493
16494         strftime: remove dependencies on multibyte modules
16495
16496         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16497         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16498         only if __osf__ is defined, and I suspect OSF doesn't need these
16499         other modules.  If my guess is wrong, we'll need to come up with a
16500         variant of strftime that doesn't need the multibyte modules.
16501
16502         I discovered this problem when attempting modify Emacs to use the
16503         strftime module.  With the previous gnulib, this caused Emacs to
16504         need 31 new files, ranging from lib/config.charset to
16505         m4/wint_t.m4.  This was overkill and I expect would be offputting
16506         to the Emacs maintainers.  After this change, only 6 new files are
16507         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16508         stdbool.m4, and tm_gmtoff.m4.
16509
16510         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16511         Suggested by Bruno Haible in
16512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16513         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16514         and do not check for wchar.h.
16515         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16516         (Depends-on): Remove mbrlen, mbsinit, wchar.
16517
16518 2011-01-18  Bruno Haible  <bruno@clisp.org>
16519
16520         Tests for module 'get-rusage-as'.
16521         * modules/get-rusage-as-tests: New file.
16522         * tests/test-get-rusage-as.c: New file.
16523
16524         New module 'get-rusage-as'.
16525         * modules/get-rusage-as: New file.
16526         * lib/resource-ext.h: New file.
16527         * lib/get-rusage-as.c: New file.
16528
16529 2011-01-17  Eric Blake  <eblake@redhat.com>
16530
16531         sigaction: relax license from LGPLv3+ to LGPLv2+
16532         * modules/sigaction (License): Relax to LGPLv2+.
16533
16534 2011-01-14  Bruno Haible  <bruno@clisp.org>
16535
16536         filemode: Make function declarations usable in C++ mode.
16537         * lib/filemode.h: Enclose function declarations in extern "C" block.
16538         Reported by John W. Eaton <jwe@gnu.org>.
16539
16540 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16541
16542         save-cwd: no longer include "xgetcwd.h"
16543         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16544         This avoids a compilation failure in projects that use save-cwd
16545         without also using the xgetcwd module.
16546
16547 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16548
16549         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16550         This is so that a program like Emacs, which needs only dtoastr,
16551         does not have to bother with distributing and compiling ftoastr
16552         and ldtoastr.
16553         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16554         * modules/dtoastr, modules/ldtoastr: New files.
16555         * modules/ftoastr: Now works just for 'float'.
16556         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16557         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16558         dtoastr.c, ldtoastr.c.
16559
16560 2011-01-11  Jim Meyering  <meyering@redhat.com>
16561
16562         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16563         There is no need to work around the lack of the fchdir function,
16564         since gnulib can now provide a replacement when required.
16565         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16566         * modules/save-cwd (Depends-on): Add fchdir.
16567
16568 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16569
16570         openat, save-cwd: avoid xmalloc
16571
16572         This removes a direct (but undocumented) dependency of openat on
16573         xalloc, along with an indirect dependency via save-cwd.  It also
16574         removes a dependency of save-cwd on xgetcwd, and thereby
16575         indirectly on xalloc.  This change causes the openat substitute
16576         to fall back on save_cwd when memory is tight, and for save_cwd to
16577         fail instead of dying when memory is tight, but that's good enough.
16578         Problem and initial idea for fix reported by Bastien Roucaries in
16579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16580
16581         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16582         xalloc.h (for xmalloc).
16583         (openat_proc_name): Use malloc, not xmalloc.
16584         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16585         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16586
16587         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16588         This avoids heap allocation for file names whose lengths are in
16589         the range 512..1023, with the upper bound increasing to at most
16590         4031 depending on the platform's PATH_MAX.  (We do not want
16591         pathmax.h here as it might supply a non-constant PATH_MAX.)
16592         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16593         Perhaps they should be moved to malloca.h?
16594         (OPENAT_BUFFER_SIZE): Use them.
16595
16596 2011-01-10  Bruno Haible  <bruno@clisp.org>
16597
16598         doc: Update users.txt.
16599         * users.txt: Add recutils.
16600
16601 2011-01-09  Karl Berry  <karl@gnu.org>
16602
16603         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16604
16605         * doc/configmake.texi: New file.
16606         * doc/gnulib.texi: Include it.
16607         * modules/configmake: Move documentation from here.
16608
16609 2011-01-09  Bruno Haible  <bruno@clisp.org>
16610
16611         Update to Unicode 6.0.0.
16612         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16613         (get_lbp): Update for Unicode 6.0.0.
16614         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16615         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16616         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16617         U+11001, U+11038..U+11046. Remove U+06DE.
16618         (uc_width): Fix bounds of planes.
16619         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16620         lib/uniwidth/width.c.
16621         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16622         trailing whitespace removed.
16623         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16624         without comments, but with the original copyright notice.
16625         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16626         * lib/unicase/ignorable.h: Likewise.
16627         * lib/unicase/tocasefold.h: Likewise.
16628         * lib/unicase/tolower.h: Likewise.
16629         * lib/unicase/totitle.h: Likewise.
16630         * lib/unicase/toupper.h: Likewise.
16631         * lib/unictype/bidi_of.h: Likewise.
16632         * lib/unictype/blocks.h: Likewise.
16633         * lib/unictype/categ_C.h: Likewise.
16634         * lib/unictype/categ_Cn.h: Likewise.
16635         * lib/unictype/categ_L.h: Likewise.
16636         * lib/unictype/categ_Ll.h: Likewise.
16637         * lib/unictype/categ_Lm.h: Likewise.
16638         * lib/unictype/categ_Lo.h: Likewise.
16639         * lib/unictype/categ_Lu.h: Likewise.
16640         * lib/unictype/categ_M.h: Likewise.
16641         * lib/unictype/categ_Mc.h: Likewise.
16642         * lib/unictype/categ_Me.h: Likewise.
16643         * lib/unictype/categ_Mn.h: Likewise.
16644         * lib/unictype/categ_N.h: Likewise.
16645         * lib/unictype/categ_Nd.h: Likewise.
16646         * lib/unictype/categ_No.h: Likewise.
16647         * lib/unictype/categ_P.h: Likewise.
16648         * lib/unictype/categ_Po.h: Likewise.
16649         * lib/unictype/categ_S.h: Likewise.
16650         * lib/unictype/categ_Sc.h: Likewise.
16651         * lib/unictype/categ_Sk.h: Likewise.
16652         * lib/unictype/categ_Sm.h: Likewise.
16653         * lib/unictype/categ_So.h: Likewise.
16654         * lib/unictype/categ_of.h: Likewise.
16655         * lib/unictype/combining.h: Likewise.
16656         * lib/unictype/ctype_alnum.h: Likewise.
16657         * lib/unictype/ctype_alpha.h: Likewise.
16658         * lib/unictype/ctype_graph.h: Likewise.
16659         * lib/unictype/ctype_lower.h: Likewise.
16660         * lib/unictype/ctype_print.h: Likewise.
16661         * lib/unictype/ctype_punct.h: Likewise.
16662         * lib/unictype/ctype_upper.h: Likewise.
16663         * lib/unictype/decdigit.h: Likewise.
16664         * lib/unictype/digit.h: Likewise.
16665         * lib/unictype/numeric.h: Likewise.
16666         * lib/unictype/pr_alphabetic.h: Likewise.
16667         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16668         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16669         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16670         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16671         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16672         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16673         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16674         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16675         * lib/unictype/pr_case_ignorable.h: Likewise.
16676         * lib/unictype/pr_cased.h: Likewise.
16677         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16678         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16679         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16680         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16681         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16682         * lib/unictype/pr_combining.h: Likewise.
16683         * lib/unictype/pr_composite.h: Likewise.
16684         * lib/unictype/pr_currency_symbol.h: Likewise.
16685         * lib/unictype/pr_decimal_digit.h: Likewise.
16686         * lib/unictype/pr_deprecated.h: Likewise.
16687         * lib/unictype/pr_format_control.h: Likewise.
16688         * lib/unictype/pr_grapheme_base.h: Likewise.
16689         * lib/unictype/pr_grapheme_extend.h: Likewise.
16690         * lib/unictype/pr_grapheme_link.h: Likewise.
16691         * lib/unictype/pr_id_continue.h: Likewise.
16692         * lib/unictype/pr_id_start.h: Likewise.
16693         * lib/unictype/pr_ideographic.h: Likewise.
16694         * lib/unictype/pr_lowercase.h: Likewise.
16695         * lib/unictype/pr_math.h: Likewise.
16696         * lib/unictype/pr_numeric.h: Likewise.
16697         * lib/unictype/pr_other_alphabetic.h: Likewise.
16698         * lib/unictype/pr_other_id_continue.h: Likewise.
16699         * lib/unictype/pr_other_math.h: Likewise.
16700         * lib/unictype/pr_punctuation.h: Likewise.
16701         * lib/unictype/pr_sentence_terminal.h: Likewise.
16702         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16703         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16704         * lib/unictype/pr_unified_ideograph.h: Likewise.
16705         * lib/unictype/pr_uppercase.h: Likewise.
16706         * lib/unictype/pr_xid_continue.h: Likewise.
16707         * lib/unictype/pr_xid_start.h: Likewise.
16708         * lib/unictype/scripts.h: Likewise.
16709         * lib/unictype/scripts_byname.gperf: Likewise.
16710         * lib/unictype/sy_java_ident.h: Likewise.
16711         * lib/unigbrk/gbrkprop.h: Likewise.
16712         * lib/unilbrk/lbrkprop1.h: Likewise.
16713         * lib/unilbrk/lbrkprop2.h: Likewise.
16714         * lib/uninorm/decomposition-table2.h: Likewise.
16715         * lib/uniwbrk/wbrkprop.h: Likewise.
16716         * tests/unicase/test-cased.c: Likewise.
16717         * tests/unicase/test-ignorable.c: Likewise.
16718         * tests/unicase/test-uc_tolower.c: Likewise.
16719         * tests/unicase/test-uc_totitle.c: Likewise.
16720         * tests/unicase/test-uc_toupper.c: Likewise.
16721         * tests/unictype/test-categ_C.c: Likewise.
16722         * tests/unictype/test-categ_Cn.c: Likewise.
16723         * tests/unictype/test-categ_L.c: Likewise.
16724         * tests/unictype/test-categ_Ll.c: Likewise.
16725         * tests/unictype/test-categ_Lm.c: Likewise.
16726         * tests/unictype/test-categ_Lo.c: Likewise.
16727         * tests/unictype/test-categ_Lu.c: Likewise.
16728         * tests/unictype/test-categ_M.c: Likewise.
16729         * tests/unictype/test-categ_Mc.c: Likewise.
16730         * tests/unictype/test-categ_Me.c: Likewise.
16731         * tests/unictype/test-categ_Mn.c: Likewise.
16732         * tests/unictype/test-categ_N.c: Likewise.
16733         * tests/unictype/test-categ_Nd.c: Likewise.
16734         * tests/unictype/test-categ_No.c: Likewise.
16735         * tests/unictype/test-categ_P.c: Likewise.
16736         * tests/unictype/test-categ_Po.c: Likewise.
16737         * tests/unictype/test-categ_S.c: Likewise.
16738         * tests/unictype/test-categ_Sc.c: Likewise.
16739         * tests/unictype/test-categ_Sk.c: Likewise.
16740         * tests/unictype/test-categ_Sm.c: Likewise.
16741         * tests/unictype/test-categ_So.c: Likewise.
16742         * tests/unictype/test-ctype_alnum.c: Likewise.
16743         * tests/unictype/test-ctype_alpha.c: Likewise.
16744         * tests/unictype/test-ctype_graph.c: Likewise.
16745         * tests/unictype/test-ctype_lower.c: Likewise.
16746         * tests/unictype/test-ctype_print.c: Likewise.
16747         * tests/unictype/test-ctype_punct.c: Likewise.
16748         * tests/unictype/test-ctype_upper.c: Likewise.
16749         * tests/unictype/test-decdigit.h: Likewise.
16750         * tests/unictype/test-digit.h: Likewise.
16751         * tests/unictype/test-numeric.h: Likewise.
16752         * tests/unictype/test-pr_alphabetic.c: Likewise.
16753         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16754         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16755         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16756         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16757         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16758         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16759         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16760         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16761         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16762         * tests/unictype/test-pr_cased.c: Likewise.
16763         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16764         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16765         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16766         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16767         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16768         * tests/unictype/test-pr_combining.c: Likewise.
16769         * tests/unictype/test-pr_composite.c: Likewise.
16770         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16771         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16772         * tests/unictype/test-pr_deprecated.c: Likewise.
16773         * tests/unictype/test-pr_format_control.c: Likewise.
16774         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16775         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16776         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16777         * tests/unictype/test-pr_id_continue.c: Likewise.
16778         * tests/unictype/test-pr_id_start.c: Likewise.
16779         * tests/unictype/test-pr_ideographic.c: Likewise.
16780         * tests/unictype/test-pr_lowercase.c: Likewise.
16781         * tests/unictype/test-pr_math.c: Likewise.
16782         * tests/unictype/test-pr_numeric.c: Likewise.
16783         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16784         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16785         * tests/unictype/test-pr_other_math.c: Likewise.
16786         * tests/unictype/test-pr_punctuation.c: Likewise.
16787         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16788         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16789         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16790         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16791         * tests/unictype/test-pr_uppercase.c: Likewise.
16792         * tests/unictype/test-pr_xid_continue.c: Likewise.
16793         * tests/unictype/test-pr_xid_start.c: Likewise.
16794         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16795         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16796         changes.
16797         * lib/unictype/categ_Cc.h: Likewise.
16798         * lib/unictype/categ_Cf.h: Likewise.
16799         * lib/unictype/categ_Co.h: Likewise.
16800         * lib/unictype/categ_Cs.h: Likewise.
16801         * lib/unictype/categ_Lt.h: Likewise.
16802         * lib/unictype/categ_Nl.h: Likewise.
16803         * lib/unictype/categ_Pc.h: Likewise.
16804         * lib/unictype/categ_Pd.h: Likewise.
16805         * lib/unictype/categ_Pe.h: Likewise.
16806         * lib/unictype/categ_Pf.h: Likewise.
16807         * lib/unictype/categ_Pi.h: Likewise.
16808         * lib/unictype/categ_Ps.h: Likewise.
16809         * lib/unictype/categ_Z.h: Likewise.
16810         * lib/unictype/categ_Zl.h: Likewise.
16811         * lib/unictype/categ_Zp.h: Likewise.
16812         * lib/unictype/categ_Zs.h: Likewise.
16813         * lib/unictype/ctype_blank.h: Likewise.
16814         * lib/unictype/ctype_cntrl.h: Likewise.
16815         * lib/unictype/ctype_digit.h: Likewise.
16816         * lib/unictype/ctype_space.h: Likewise.
16817         * lib/unictype/ctype_xdigit.h: Likewise.
16818         * lib/unictype/mirror.h: Likewise.
16819         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16820         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16821         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16822         * lib/unictype/pr_bidi_control.h: Likewise.
16823         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16824         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16825         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16826         * lib/unictype/pr_bidi_pdf.h: Likewise.
16827         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16828         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16829         * lib/unictype/pr_dash.h: Likewise.
16830         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16831         * lib/unictype/pr_diacritic.h: Likewise.
16832         * lib/unictype/pr_extender.h: Likewise.
16833         * lib/unictype/pr_hex_digit.h: Likewise.
16834         * lib/unictype/pr_hyphen.h: Likewise.
16835         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16836         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16837         * lib/unictype/pr_ignorable_control.h: Likewise.
16838         * lib/unictype/pr_iso_control.h: Likewise.
16839         * lib/unictype/pr_join_control.h: Likewise.
16840         * lib/unictype/pr_left_of_pair.h: Likewise.
16841         * lib/unictype/pr_line_separator.h: Likewise.
16842         * lib/unictype/pr_logical_order_exception.h: Likewise.
16843         * lib/unictype/pr_non_break.h: Likewise.
16844         * lib/unictype/pr_not_a_character.h: Likewise.
16845         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16846         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16847         * lib/unictype/pr_other_id_start.h: Likewise.
16848         * lib/unictype/pr_other_lowercase.h: Likewise.
16849         * lib/unictype/pr_other_uppercase.h: Likewise.
16850         * lib/unictype/pr_paired_punctuation.h: Likewise.
16851         * lib/unictype/pr_paragraph_separator.h: Likewise.
16852         * lib/unictype/pr_pattern_syntax.h: Likewise.
16853         * lib/unictype/pr_pattern_white_space.h: Likewise.
16854         * lib/unictype/pr_private_use.h: Likewise.
16855         * lib/unictype/pr_quotation_mark.h: Likewise.
16856         * lib/unictype/pr_radical.h: Likewise.
16857         * lib/unictype/pr_soft_dotted.h: Likewise.
16858         * lib/unictype/pr_space.h: Likewise.
16859         * lib/unictype/pr_titlecase.h: Likewise.
16860         * lib/unictype/pr_variation_selector.h: Likewise.
16861         * lib/unictype/pr_white_space.h: Likewise.
16862         * lib/unictype/pr_zero_width.h: Likewise.
16863         * lib/unictype/sy_c_ident.h: Likewise.
16864         * lib/unictype/sy_c_whitespace.h: Likewise.
16865         * lib/unictype/sy_java_whitespace.h: Likewise.
16866         * lib/uninorm/composition-table.gperf: Likewise.
16867         * lib/uninorm/decomposition-table1.h: Likewise.
16868         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16869         LB8.
16870         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16871         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16872         * modules/unictype/*: Bump version number of expected libunistring
16873         version.
16874
16875 2011-01-09  Bruno Haible  <bruno@clisp.org>
16876
16877         Update to Unicode 5.2.0.
16878         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16879         trailing whitespace removed.
16880
16881 2011-01-09  Bruno Haible  <bruno@clisp.org>
16882
16883         New Unicode character properties, from Unicode 5.2.0.
16884         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16885         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16886         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16887         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16888         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16889         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16890         uc_is_property_cased, uc_is_property_case_ignorable,
16891         uc_is_property_changes_when_lowercased,
16892         uc_is_property_changes_when_uppercased,
16893         uc_is_property_changes_when_titlecased,
16894         uc_is_property_changes_when_casefolded,
16895         uc_is_property_changes_when_casemapped): New declarations.
16896         * lib/unictype/pr_byname.gperf: Add the new properties.
16897         * modules/unictype/property-byname (Depends-on): Depend on the new
16898         properties modules.
16899         * modules/unictype/property-all (Depends-on): Likewise.
16900         * MODULES.html.sh (Unicode string functions): Add
16901         unictype/property-case-ignorable, unictype/property-cased,
16902         unictype/property-changes-when-casefolded,
16903         unictype/property-changes-when-casemapped,
16904         unictype/property-changes-when-lowercased,
16905         unictype/property-changes-when-titlecased,
16906         unictype/property-changes-when-uppercased.
16907
16908         New module 'unictype/property-changes-when-casemapped'.
16909         * modules/unictype/property-changes-when-casemapped: New file.
16910         * lib/unictype/pr_changes_when_casemapped.c: New file.
16911         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16912         generated by gen-uni-tables.
16913         * modules/unictype/property-changes-when-casemapped-tests: New file.
16914         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16915         automatically generated by gen-uni-tables.
16916
16917         New module 'unictype/property-changes-when-casefolded'.
16918         * modules/unictype/property-changes-when-casefolded: New file.
16919         * lib/unictype/pr_changes_when_casefolded.c: New file.
16920         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16921         generated by gen-uni-tables.
16922         * modules/unictype/property-changes-when-casefolded-tests: New file.
16923         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16924         automatically generated by gen-uni-tables.
16925
16926         New module 'unictype/property-changes-when-titlecased'.
16927         * modules/unictype/property-changes-when-titlecased: New file.
16928         * lib/unictype/pr_changes_when_titlecased.c: New file.
16929         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16930         generated by gen-uni-tables.
16931         * modules/unictype/property-changes-when-titlecased-tests: New file.
16932         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16933         automatically generated by gen-uni-tables.
16934
16935         New module 'unictype/property-changes-when-uppercased'.
16936         * modules/unictype/property-changes-when-uppercased: New file.
16937         * lib/unictype/pr_changes_when_uppercased.c: New file.
16938         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16939         generated by gen-uni-tables.
16940         * modules/unictype/property-changes-when-uppercased-tests: New file.
16941         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16942         automatically generated by gen-uni-tables.
16943
16944         New module 'unictype/property-changes-when-lowercased'.
16945         * modules/unictype/property-changes-when-lowercased: New file.
16946         * lib/unictype/pr_changes_when_lowercased.c: New file.
16947         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16948         generated by gen-uni-tables.
16949         * modules/unictype/property-changes-when-lowercased-tests: New file.
16950         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16951         automatically generated by gen-uni-tables.
16952
16953         New module 'unictype/property-case-ignorable'.
16954         * modules/unictype/property-case-ignorable: New file.
16955         * lib/unictype/pr_case_ignorable.c: New file.
16956         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16957         by gen-uni-tables.
16958         * modules/unictype/property-case-ignorable-tests: New file.
16959         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16960         generated by gen-uni-tables.
16961
16962         New module 'unictype/property-cased'.
16963         * modules/unictype/property-cased: New file.
16964         * lib/unictype/pr_cased.c: New file.
16965         * lib/unictype/pr_cased.h: New file, automatically generated by
16966         gen-uni-tables.
16967         * modules/unictype/property-cased-tests: New file.
16968         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16969         gen-uni-tables.
16970
16971 2011-01-09  Bruno Haible  <bruno@clisp.org>
16972
16973         Update to Unicode 5.2.0.
16974         * lib/gen-uni-tables.c (output_predicate, output_category,
16975         output_combclass, output_bidi_category, output_decimal_digit_test,
16976         output_decimal_digit, output_digit_test, output_digit,
16977         output_numeric_test, output_numeric, output_mirror, output_scripts,
16978         output_scripts_byname, output_blocks, output_ident_category): Fix
16979         comment header.
16980         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16981         get_wbp.
16982         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16983         items.
16984         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16985         Changes_When_Lowercased, Changes_When_Uppercased,
16986         Changes_When_Titlecased, Changes_When_Casefolded,
16987         Changes_When_Casemapped.
16988         (is_property_alphabetic, is_property_default_ignorable_code_point):
16989         Update for Unicode 5.2.0.
16990         (is_property_cased, is_property_case_ignorable,
16991         is_property_changes_when_lowercased,
16992         is_property_changes_when_uppercased,
16993         is_property_changes_when_titlecased,
16994         is_property_changes_when_casefolded,
16995         is_property_changes_when_casemapped): New functions.
16996         (output_properties): Output also the properties cased, case_ignorable,
16997         changes_when_lowercased, changes_when_uppercased,
16998         changes_when_titlecased, changes_when_casefolded,
16999         changes_when_casemapped.
17000         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17001         Unicode TR#11 revision 17 -> 19.
17002         (LBP_CP): New enumeration value.
17003         (LBP_*): Adjust values accordingly.
17004         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17005         TR#14 revision 22 -> 24.
17006         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17007         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17008         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17009         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17010         is_WBP_MIDLETTER.
17011         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17012         the code1 and code2 of each composition rule.
17013         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17014         * lib/unicase/ignorable.h: Likewise.
17015         * lib/unicase/tocasefold.h: Likewise.
17016         * lib/unicase/tolower.h: Likewise.
17017         * lib/unicase/totitle.h: Likewise.
17018         * lib/unicase/toupper.h: Likewise.
17019         * lib/unictype/bidi_of.h: Likewise.
17020         * lib/unictype/blocks.h: Likewise.
17021         * lib/unictype/categ_C.h: Likewise.
17022         * lib/unictype/categ_Cf.h: Likewise.
17023         * lib/unictype/categ_Cn.h: Likewise.
17024         * lib/unictype/categ_L.h: Likewise.
17025         * lib/unictype/categ_Ll.h: Likewise.
17026         * lib/unictype/categ_Lm.h: Likewise.
17027         * lib/unictype/categ_Lo.h: Likewise.
17028         * lib/unictype/categ_Lu.h: Likewise.
17029         * lib/unictype/categ_M.h: Likewise.
17030         * lib/unictype/categ_Mc.h: Likewise.
17031         * lib/unictype/categ_Mn.h: Likewise.
17032         * lib/unictype/categ_N.h: Likewise.
17033         * lib/unictype/categ_Nd.h: Likewise.
17034         * lib/unictype/categ_Nl.h: Likewise.
17035         * lib/unictype/categ_No.h: Likewise.
17036         * lib/unictype/categ_P.h: Likewise.
17037         * lib/unictype/categ_Pd.h: Likewise.
17038         * lib/unictype/categ_Po.h: Likewise.
17039         * lib/unictype/categ_S.h: Likewise.
17040         * lib/unictype/categ_Sc.h: Likewise.
17041         * lib/unictype/categ_So.h: Likewise.
17042         * lib/unictype/categ_of.h: Likewise.
17043         * lib/unictype/combining.h: Likewise.
17044         * lib/unictype/ctype_alnum.h: Likewise.
17045         * lib/unictype/ctype_alpha.h: Likewise.
17046         * lib/unictype/ctype_graph.h: Likewise.
17047         * lib/unictype/ctype_lower.h: Likewise.
17048         * lib/unictype/ctype_print.h: Likewise.
17049         * lib/unictype/ctype_punct.h: Likewise.
17050         * lib/unictype/ctype_upper.h: Likewise.
17051         * lib/unictype/decdigit.h: Likewise.
17052         * lib/unictype/digit.h: Likewise.
17053         * lib/unictype/numeric.h: Likewise.
17054         * lib/unictype/pr_alphabetic.h: Likewise.
17055         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17056         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17057         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17058         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17059         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17060         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17061         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17062         * lib/unictype/pr_combining.h: Likewise.
17063         * lib/unictype/pr_composite.h: Likewise.
17064         * lib/unictype/pr_currency_symbol.h: Likewise.
17065         * lib/unictype/pr_dash.h: Likewise.
17066         * lib/unictype/pr_decimal_digit.h: Likewise.
17067         * lib/unictype/pr_deprecated.h: Likewise.
17068         * lib/unictype/pr_diacritic.h: Likewise.
17069         * lib/unictype/pr_extender.h: Likewise.
17070         * lib/unictype/pr_grapheme_base.h: Likewise.
17071         * lib/unictype/pr_grapheme_extend.h: Likewise.
17072         * lib/unictype/pr_grapheme_link.h: Likewise.
17073         * lib/unictype/pr_id_continue.h: Likewise.
17074         * lib/unictype/pr_id_start.h: Likewise.
17075         * lib/unictype/pr_ideographic.h: Likewise.
17076         * lib/unictype/pr_ignorable_control.h: Likewise.
17077         * lib/unictype/pr_logical_order_exception.h: Likewise.
17078         * lib/unictype/pr_lowercase.h: Likewise.
17079         * lib/unictype/pr_numeric.h: Likewise.
17080         * lib/unictype/pr_other_alphabetic.h: Likewise.
17081         * lib/unictype/pr_punctuation.h: Likewise.
17082         * lib/unictype/pr_sentence_terminal.h: Likewise.
17083         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17084         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17085         * lib/unictype/pr_unified_ideograph.h: Likewise.
17086         * lib/unictype/pr_uppercase.h: Likewise.
17087         * lib/unictype/pr_xid_continue.h: Likewise.
17088         * lib/unictype/pr_xid_start.h: Likewise.
17089         * lib/unictype/pr_zero_width.h: Likewise.
17090         * lib/unictype/scripts.h: Likewise.
17091         * lib/unictype/scripts_byname.gperf: Likewise.
17092         * lib/unictype/sy_java_ident.h: Likewise.
17093         * lib/unigbrk/gbrkprop.h: Likewise.
17094         * lib/unilbrk/lbrkprop1.h: Likewise.
17095         * lib/unilbrk/lbrkprop2.h: Likewise.
17096         * lib/unilbrk/lbrktables.h: Likewise.
17097         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17098         LBP_CP. Implement rule LB30.
17099         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17100         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17101         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17102         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17103         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17104         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17105         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17106         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17107         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17108         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17109         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17110         bits instead of 16 bits in the code1 and code2 of each composition
17111         rule.
17112         (uc_composition): Update for Unicode 5.2.0.
17113         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17114         * lib/uninorm/decomposition-table2.h: Likewise.
17115         * lib/uniwbrk/wbrkprop.h: Likewise.
17116         * tests/unicase/test-cased.c: Likewise.
17117         * tests/unicase/test-ignorable.c: Likewise.
17118         * tests/unicase/test-uc_tolower.c: Likewise.
17119         * tests/unicase/test-uc_totitle.c: Likewise.
17120         * tests/unicase/test-uc_toupper.c: Likewise.
17121         * tests/unictype/test-categ_C.c: Likewise.
17122         * tests/unictype/test-categ_Cf.c: Likewise.
17123         * tests/unictype/test-categ_Cn.c: Likewise.
17124         * tests/unictype/test-categ_L.c: Likewise.
17125         * tests/unictype/test-categ_Ll.c: Likewise.
17126         * tests/unictype/test-categ_Lm.c: Likewise.
17127         * tests/unictype/test-categ_Lo.c: Likewise.
17128         * tests/unictype/test-categ_Lu.c: Likewise.
17129         * tests/unictype/test-categ_M.c: Likewise.
17130         * tests/unictype/test-categ_Mc.c: Likewise.
17131         * tests/unictype/test-categ_Mn.c: Likewise.
17132         * tests/unictype/test-categ_N.c: Likewise.
17133         * tests/unictype/test-categ_Nd.c: Likewise.
17134         * tests/unictype/test-categ_Nl.c: Likewise.
17135         * tests/unictype/test-categ_No.c: Likewise.
17136         * tests/unictype/test-categ_P.c: Likewise.
17137         * tests/unictype/test-categ_Pd.c: Likewise.
17138         * tests/unictype/test-categ_Po.c: Likewise.
17139         * tests/unictype/test-categ_S.c: Likewise.
17140         * tests/unictype/test-categ_Sc.c: Likewise.
17141         * tests/unictype/test-categ_So.c: Likewise.
17142         * tests/unictype/test-ctype_alnum.c: Likewise.
17143         * tests/unictype/test-ctype_alpha.c: Likewise.
17144         * tests/unictype/test-ctype_graph.c: Likewise.
17145         * tests/unictype/test-ctype_lower.c: Likewise.
17146         * tests/unictype/test-ctype_print.c: Likewise.
17147         * tests/unictype/test-ctype_punct.c: Likewise.
17148         * tests/unictype/test-ctype_upper.c: Likewise.
17149         * tests/unictype/test-decdigit.h: Likewise.
17150         * tests/unictype/test-digit.h: Likewise.
17151         * tests/unictype/test-numeric.h: Likewise.
17152         * tests/unictype/test-pr_alphabetic.c: Likewise.
17153         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17154         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17155         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17156         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17157         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17158         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17159         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17160         * tests/unictype/test-pr_combining.c: Likewise.
17161         * tests/unictype/test-pr_composite.c: Likewise.
17162         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17163         * tests/unictype/test-pr_dash.c: Likewise.
17164         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17165         * tests/unictype/test-pr_deprecated.c: Likewise.
17166         * tests/unictype/test-pr_diacritic.c: Likewise.
17167         * tests/unictype/test-pr_extender.c: Likewise.
17168         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17169         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17170         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17171         * tests/unictype/test-pr_id_continue.c: Likewise.
17172         * tests/unictype/test-pr_id_start.c: Likewise.
17173         * tests/unictype/test-pr_ideographic.c: Likewise.
17174         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17175         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17176         * tests/unictype/test-pr_lowercase.c: Likewise.
17177         * tests/unictype/test-pr_numeric.c: Likewise.
17178         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17179         * tests/unictype/test-pr_punctuation.c: Likewise.
17180         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17181         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17182         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17183         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17184         * tests/unictype/test-pr_uppercase.c: Likewise.
17185         * tests/unictype/test-pr_xid_continue.c: Likewise.
17186         * tests/unictype/test-pr_xid_start.c: Likewise.
17187         * tests/unictype/test-pr_zero_width.c: Likewise.
17188         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17189         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17190         changed behaviour: line breaking is now disallowed between a letter
17191         or '=' and '('.
17192         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17193         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17194         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17195         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17196         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17197         lib/uniwidth/width.c.
17198         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17199         without comments, but with the original copyright notice.
17200         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17201         changes.
17202         * lib/unictype/categ_Cc.h: Likewise.
17203         * lib/unictype/categ_Co.h: Likewise.
17204         * lib/unictype/categ_Cs.h: Likewise.
17205         * lib/unictype/categ_Lt.h: Likewise.
17206         * lib/unictype/categ_Me.h: Likewise.
17207         * lib/unictype/categ_Pc.h: Likewise.
17208         * lib/unictype/categ_Pe.h: Likewise.
17209         * lib/unictype/categ_Pf.h: Likewise.
17210         * lib/unictype/categ_Pi.h: Likewise.
17211         * lib/unictype/categ_Ps.h: Likewise.
17212         * lib/unictype/categ_Sk.h: Likewise.
17213         * lib/unictype/categ_Sm.h: Likewise.
17214         * lib/unictype/categ_Z.h: Likewise.
17215         * lib/unictype/categ_Zl.h: Likewise.
17216         * lib/unictype/categ_Zp.h: Likewise.
17217         * lib/unictype/categ_Zs.h: Likewise.
17218         * lib/unictype/ctype_blank.h: Likewise.
17219         * lib/unictype/ctype_cntrl.h: Likewise.
17220         * lib/unictype/ctype_digit.h: Likewise.
17221         * lib/unictype/ctype_space.h: Likewise.
17222         * lib/unictype/ctype_xdigit.h: Likewise.
17223         * lib/unictype/mirror.h: Likewise.
17224         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17225         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17226         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17227         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17228         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17229         * lib/unictype/pr_bidi_control.h: Likewise.
17230         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17231         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17232         * lib/unictype/pr_bidi_pdf.h: Likewise.
17233         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17234         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17235         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17236         * lib/unictype/pr_format_control.h: Likewise.
17237         * lib/unictype/pr_hex_digit.h: Likewise.
17238         * lib/unictype/pr_hyphen.h: Likewise.
17239         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17240         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17241         * lib/unictype/pr_iso_control.h: Likewise.
17242         * lib/unictype/pr_join_control.h: Likewise.
17243         * lib/unictype/pr_left_of_pair.h: Likewise.
17244         * lib/unictype/pr_line_separator.h: Likewise.
17245         * lib/unictype/pr_math.h: Likewise.
17246         * lib/unictype/pr_non_break.h: Likewise.
17247         * lib/unictype/pr_not_a_character.h: Likewise.
17248         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17249         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17250         * lib/unictype/pr_other_id_continue.h: Likewise.
17251         * lib/unictype/pr_other_id_start.h: Likewise.
17252         * lib/unictype/pr_other_lowercase.h: Likewise.
17253         * lib/unictype/pr_other_math.h: Likewise.
17254         * lib/unictype/pr_other_uppercase.h: Likewise.
17255         * lib/unictype/pr_paired_punctuation.h: Likewise.
17256         * lib/unictype/pr_paragraph_separator.h: Likewise.
17257         * lib/unictype/pr_pattern_syntax.h: Likewise.
17258         * lib/unictype/pr_pattern_white_space.h: Likewise.
17259         * lib/unictype/pr_private_use.h: Likewise.
17260         * lib/unictype/pr_quotation_mark.h: Likewise.
17261         * lib/unictype/pr_radical.h: Likewise.
17262         * lib/unictype/pr_soft_dotted.h: Likewise.
17263         * lib/unictype/pr_space.h: Likewise.
17264         * lib/unictype/pr_titlecase.h: Likewise.
17265         * lib/unictype/pr_variation_selector.h: Likewise.
17266         * lib/unictype/pr_white_space.h: Likewise.
17267         * lib/unictype/sy_c_ident.h: Likewise.
17268         * lib/unictype/sy_c_whitespace.h: Likewise.
17269         * lib/unictype/sy_java_whitespace.h: Likewise.
17270         * modules/uni*/*: Bump version number of expected libunistring version.
17271         Reported by Simon Josefsson.
17272
17273 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17274
17275         useless-if-before-free: fix typo in --help and make the internal,
17276         automatic version date update process work once again.
17277         --help output contained a NUL character instead of the
17278         backslash-zero that was intended.  Also, the "must lie within
17279         the first 8 lines" line is on line 9, and hence not getting
17280         automatically updated.
17281         * build-aux/useless-if-before-free: Fix the former by adding a
17282         backslash, and the latter by condensing the three lines of what-it-does
17283         to a single line, leaving one line of slack for the future.
17284
17285 2011-01-09  Bruno Haible  <bruno@clisp.org>
17286
17287         uniwidth/width: Fix width of U+1D173..U+1D17A.
17288         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17289         symbolic_width, output_width_property_test): New functions.
17290         (main): Invoke output_nonspacing_property, output_width_property_test.
17291         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17292         U+1D173..U+1D17A.
17293         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17294         1.
17295         * modules/uniwidth/*: Bump version number of expected libunistring
17296         version.
17297         * modules/unilbrk/*: Likewise.
17298
17299 2011-01-08  Bruno Haible  <bruno@clisp.org>
17300
17301         uninorm tests: Preserve copyright of Unicode data file.
17302         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17303         Mention modifications.
17304
17305 2011-01-08  Bruno Haible  <bruno@clisp.org>
17306
17307         gen-uni-tables: Prepare for Unicode 5.2.0.
17308         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17309         (debug_output_lbp, output_lbp): Update.
17310
17311 2011-01-08  Bruno Haible  <bruno@clisp.org>
17312
17313         unilbrk: Clarify gen-uni-tables.c code.
17314         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17315         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17316         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17317
17318 2011-01-07  Bruno Haible  <bruno@clisp.org>
17319
17320         strtod: Restore errno when successfully parsing Infinity or NaN.
17321         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17322         restore the original errno.
17323
17324 2011-01-07  Bruno Haible  <bruno@clisp.org>
17325
17326         remove test: Avoid failure on HP-UX 11.
17327         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17328
17329 2011-01-07  Bruno Haible  <bruno@clisp.org>
17330
17331         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17332         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17333         error code.
17334
17335 2011-01-07  Pádraig Brady <P@draigBrady.com>
17336
17337         ignore-value: fixup comments, and add Eric Blake
17338         as an author since he rewrote the macros.
17339         * lib/ignore-value.h (ignore_value):  State that
17340         we now support aggregates.  Also specify exactly
17341         when the GCC warn_unused_result feature was added.
17342
17343 2011-01-06  Eric Blake  <eblake@redhat.com>
17344
17345         ignore-value: support aggregate types
17346         * lib/ignore-value.h (ignore_value): Provide separate gcc
17347         definition.
17348         * modules/ignore-value-tests: New test module.
17349         * tests/test-ignore-value.c: New test.
17350
17351         maint.mk: improve sc_prohibit_strcmp regex
17352         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17353         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17354         definition of STRNEQ.
17355
17356         signal: work around Haiku issue with SIGBUS
17357         * lib/siglist.h: Add comment.
17358         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17359         strsignal's favoring of SIGSEGV.
17360         * tests/test-signal.c (main): Avoid test failure.
17361         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17362         Reported by Scott McCreary.
17363
17364         maint.mk: add pre-release check to ensure submodule commits are public
17365         * top/maint.mk (public-submodule-commit): New rule.
17366         (submodule-checks): New variable.
17367         (alpha beta stable): Depend on the variable.
17368
17369 2011-01-05  Pádraig Brady <P@draigBrady.com>
17370         and Jim Meyering  <meyering@redhat.com>
17371
17372         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17373         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17374         (ATTRIBUTE_DEPRECATED): Define.
17375         (_ignore_case): New function.
17376         (ignore_value): New macro, to replace the old function.
17377         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17378         * modules/ignore-value (Depends-on): Add stdint.
17379
17380 2011-01-04  Eric Blake  <eblake@redhat.com>
17381
17382         doc: regenerate INSTALL
17383         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17384         @firstparagraphindent support, now that autoconf dropped it.
17385         (INSTALL_PRELUDE): Reinstate old macro.
17386         * doc/install.texi: Resync from autoconf.
17387         * doc/INSTALL: Reflect recent autoconf update.
17388         * doc/INSTALL.ISO: Likewise.
17389         * doc/INSTALL.UTF-8: Likewise.
17390         Reported by Karl Berry.
17391
17392 2011-01-04  Bruce Korb  <address@hidden>
17393
17394         git-version-gen: avoid a sub-shell
17395         * build-aux/git-version-gen: Redirect stderr in `...` via
17396         "exec 2>...", rather than via an added sub-shell.
17397
17398 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17399
17400         git-version-gen: use (...) rather than sh -c '...'
17401         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17402         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17403
17404 2011-01-03  Jim Meyering  <meyering@redhat.com>
17405
17406         git-version-gen: convert leading TABs to spaces
17407         * build-aux/git-version-gen: Expand leading TABs.
17408
17409         git-version-gen: handle failed "git rev-list"
17410         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17411         from git and proceeding as if it had succeeded but printed no SHA1
17412         checksums, suppress the diagnostic and handle the failure.
17413         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17414
17415         git-version-gen: include command name in one more diagnostic
17416         * build-aux/git-version-gen: When the required .tarball-version file
17417         was missing or unreadable, you might see the diagnostic from "cat",
17418         but no trace of the name of the invoking script.  Now, you still see
17419         the diagnostic from cat, but also get one from "git-version-gen: ".
17420         Inspired by a patch from Bruce Korb.
17421
17422         update-copyright: adjust test to match changed code
17423         * tests/test-update-copyright.sh: Change test's expected output
17424         to match new actual output.
17425
17426 2011-01-02  Bruno Haible  <bruno@clisp.org>
17427
17428         getlogin_r: Avoid test failure on HP-UX 11.
17429         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17430         ERANGE when the second argument is zero.
17431         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17432         portability problem.
17433
17434 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17435
17436         * build-aux/update-copyright: doc Simon's changes
17437
17438 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17439
17440         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17441         environment variable.
17442
17443 2011-01-02  Bruno Haible  <bruno@clisp.org>
17444
17445         unigbrk: Avoid gcc warnings.
17446         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17447         unused variable.
17448         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17449         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17450         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17451         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17452         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17453         Change type of first argument to 'const char *'.
17454         (main): Remove unused variable.
17455         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17456         type of first argument to 'const char *'.
17457         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17458         Likewise.
17459         (main): Change type of variable 's'.
17460         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17461         to 'int'.
17462
17463 2011-01-02  Bruno Haible  <bruno@clisp.org>
17464
17465         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17466         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17467         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17468         bug.
17469         * lib/pwrite.c: Undo 2010-12-31 patch.
17470         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17471
17472 2011-01-02  Bruno Haible  <bruno@clisp.org>
17473
17474         pread: Fix test whether it works.
17475         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17476
17477 2011-01-02  Bruno Haible  <bruno@clisp.org>
17478
17479         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17480         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17481         ends in "6". Don't require a specific month name. Try also the locale
17482         names found on HP-UX 11 and Solaris 7.
17483
17484 2011-01-02  Bruno Haible  <bruno@clisp.org>
17485
17486         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17487         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17488         C linkage.
17489         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17490
17491 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17492
17493         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17494         for consistency, since the "cluster" term is not used elsewhere.
17495         * lib/unigbrk.in.h: Update name.
17496         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17497         * lib/unigbrk/u16-grapheme-next.c: Update name.
17498         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17499         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17500         * lib/unigbrk/u32-grapheme-next.c: Update name.
17501         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17502         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17503         * lib/unigbrk/u8-grapheme-next.c: Update name.
17504         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17505         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17506         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17507         Suggested by Bruno Haible.
17508
17509 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17510
17511         Remove module 'u8-grapheme-len' as too redundant with
17512         'u8-grapheme-next'.
17513         * modules/unigbrk/u8-grapheme-len: Delete file.
17514         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17515         * lib/unigbrk.in.h: Remove prototype for deleted function.
17516         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17517         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17518
17519         Remove module 'u16-grapheme-len' as too redundant with
17520         'u16-grapheme-next'.
17521         * modules/unigbrk/u16-grapheme-len: Delete file.
17522         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17523         * lib/unigbrk.in.h: Remove prototype for deleted function.
17524         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17525         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17526
17527         Remove module 'u32-grapheme-len' as too redundant with
17528         'u32-grapheme-next'.
17529         * modules/unigbrk/u32-grapheme-len: Delete file.
17530         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17531         * lib/unigbrk.in.h: Remove prototype for deleted function.
17532         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17533         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17534
17535         Suggested by Bruno Haible.
17536
17537 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17538
17539         * unigbrk.in.h: Fix typo: "ben" => "been".
17540         Reported by Bruno Haible.
17541
17542 2011-01-01  Jim Meyering  <meyering@redhat.com>
17543
17544         maint: update almost all copyright ranges to include 2011
17545         Run the new "make update-copyright" rule.
17546
17547 2011-01-01  Jim Meyering  <meyering@redhat.com>
17548
17549         maint: update-copyright: exempt doc/INSTALL*
17550         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17551         since they are generated.  Suggested by Bruno Haible.
17552
17553 2011-01-01  Jim Meyering  <meyering@redhat.com>
17554
17555         maint: refine the update-copyright rule
17556         * Makefile (update-copyright): Also exclude any file that includes
17557         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17558         code that merely generates the comment.
17559
17560 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17561
17562         New module 'u8-grapheme-len'.
17563         * modules/unigbrk/u8-grapheme-len: New file.
17564         * modules/unigbrk/u8-grapheme-len-tests: New file.
17565         * lib/unigbrk.in.h: Add prototype for new function.
17566         * lib/unigbrk/u8-grapheme-len.c: New file.
17567         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17568
17569         New module 'u16-grapheme-len'.
17570         * modules/unigbrk/u16-grapheme-len: New file.
17571         * modules/unigbrk/u16-grapheme-len-tests: New file.
17572         * lib/unigbrk.in.h: Add prototype for new function.
17573         * lib/unigbrk/u16-grapheme-len.c: New file.
17574         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17575
17576         New module 'u32-grapheme-len'.
17577         * modules/unigbrk/u32-grapheme-len: New file.
17578         * modules/unigbrk/u32-grapheme-len-tests: New file.
17579         * lib/unigbrk.in.h: Add prototype for new function.
17580         * lib/unigbrk/u32-grapheme-len.c: New file.
17581         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17582
17583         New module 'u8-grapheme-next'.
17584         * modules/unigbrk/u8-grapheme-next: New file.
17585         * modules/unigbrk/u8-grapheme-next-tests: New file.
17586         * lib/unigbrk.in.h: Add prototype for new function.
17587         * lib/unigbrk/u8-grapheme-next.c: New file.
17588         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17589
17590         New module 'u16-grapheme-next'.
17591         * modules/unigbrk/u16-grapheme-next: New file.
17592         * modules/unigbrk/u16-grapheme-next-tests: New file.
17593         * lib/unigbrk.in.h: Add prototype for new function.
17594         * lib/unigbrk/u16-grapheme-next.c: New file.
17595         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17596
17597         New module 'u32-grapheme-next'.
17598         * modules/unigbrk/u32-grapheme-next: New file.
17599         * modules/unigbrk/u32-grapheme-next-tests: New file.
17600         * lib/unigbrk.in.h: Add prototype for new function.
17601         * lib/unigbrk/u32-grapheme-next.c: New file.
17602         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17603
17604         New module 'u8-grapheme-prev'.
17605         * modules/unigbrk/u8-grapheme-prev: New file.
17606         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17607         * lib/unigbrk.in.h: Add prototype for new function.
17608         * lib/unigbrk/u8-grapheme-prev.c: New file.
17609         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17610
17611         New module 'u16-grapheme-prev'.
17612         * modules/unigbrk/u16-grapheme-prev: New file.
17613         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17614         * lib/unigbrk.in.h: Add prototype for new function.
17615         * lib/unigbrk/u16-grapheme-prev.c: New file.
17616         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17617
17618         New module 'u32-grapheme-prev'.
17619         * modules/unigbrk/u32-grapheme-prev: New file.
17620         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17621         * lib/unigbrk.in.h: Add prototype for new function.
17622         * lib/unigbrk/u32-grapheme-prev.c: New file.
17623         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17624
17625         New module 'u8-grapheme-breaks'.
17626         * modules/unigbrk/u8-grapheme-breaks: New file.
17627         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17628         * lib/unigbrk.in.h: Add prototype for new function.
17629         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17630         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17631
17632         New module 'u16-grapheme-breaks'.
17633         * modules/unigbrk/u16-grapheme-breaks: New file.
17634         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17635         * lib/unigbrk.in.h: Add prototype for new function.
17636         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17637         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17638
17639         New module 'u32-grapheme-breaks'.
17640         * modules/unigbrk/u32-grapheme-breaks: New file.
17641         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17642         * lib/unigbrk.in.h: Add prototype for new function.
17643         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17644         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17645
17646         New module 'ulc-grapheme-breaks'.
17647         * modules/unigbrk/ulc-grapheme-breaks: New file.
17648         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17649         * m4/locale-ar.m4: New file.
17650         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17651         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17652         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17653
17654 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17655
17656         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17657         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17658         modified how this file was generated before I initially submitted
17659         the module, but failed to regenerate it.  This meant that several
17660         of the level2 entries were wrong.
17661         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17662         Remove the division-by-2 that is folded into the table now that
17663         gbrkprop.h has been regenerated properly.  Now -1 entries are
17664         handled correctly.
17665
17666         New module 'unigbrk/uc-gbrk-prop-tests'.
17667         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17668         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17669         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17670         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17671
17672 2011-01-01  Bruno Haible  <bruno@clisp.org>
17673
17674         Avoid use of hexadecimal escapes.
17675         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17676         instead of hexadecimal escapes.
17677
17678 2011-01-01  Jim Meyering  <meyering@redhat.com>
17679
17680         maint: new rule to update copyright year ranges
17681         * Makefile (update-copyright): New rule.
17682
17683         maint: indent with TABs in Makefile
17684         * Makefile: Expand leading sequences of spaces to TABs
17685
17686         version-etc: update the copyright year it reports
17687         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17688
17689 2010-12-31  Bruno Haible  <bruno@clisp.org>
17690
17691         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17692         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17693         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17694         zero.
17695
17696 2010-12-31  Bruno Haible  <bruno@clisp.org>
17697
17698         pwrite: Work around HP-UX 11.11 bug.
17699         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17700         works and set REPLACE_PWRITE if not.
17701         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17702         function.
17703         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17704
17705 2010-12-31  Bruno Haible  <bruno@clisp.org>
17706
17707         pread: Work around HP-UX 11 bugs.
17708         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17709         and set REPLACE_PREAD if not.
17710         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17711
17712 2010-12-31  Eric Blake  <eblake@redhat.com>
17713
17714         nl_langinfo: fix YESEXPR on Irix 6.5
17715         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17716         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17717         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17718         it.
17719
17720 2010-12-31  Bruno Haible  <bruno@clisp.org>
17721
17722         iconv: Document HP-UX 11 bug.
17723         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17724
17725 2010-12-31  Bruno Haible  <bruno@clisp.org>
17726
17727         ldexpl: Fix link error on HP-UX 11.
17728         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17729         LDEXPL_LIBM, using $ISNANL_LIBM.
17730
17731 2010-12-31  Eric Blake  <eblake@redhat.com>
17732
17733         ftello: avoid compilation failure with SunStudio c89
17734         * lib/ftello.c (ftello): Use lseek, not llseek.
17735
17736         tests: avoid failing coreutils tests on cygwin
17737         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17738         (create_exe_shims_): Return 0 when skipping.
17739
17740 2010-12-31  Bruno Haible  <bruno@clisp.org>
17741
17742         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17743         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17744
17745 2010-12-31  Bruno Haible  <bruno@clisp.org>
17746
17747         waitpid: Fix link error in C++ mode.
17748         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17749
17750 2010-12-31  Bruno Haible  <bruno@clisp.org>
17751
17752         isnan: Use GCC built-ins when possible.
17753         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17754         __builtin_isnan.
17755         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17756         (isnan): Define using GCC built-ins for GCC >= 4.0.
17757
17758 2010-12-31  Bruno Haible  <bruno@clisp.org>
17759
17760         isnand: Fix mistake.
17761         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17762         __builtin_isnand.
17763
17764 2010-12-31  Bruno Haible  <bruno@clisp.org>
17765
17766         open: Avoid C++ error on HP-UX 11.
17767         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17768
17769 2010-12-31  Bruno Haible  <bruno@clisp.org>
17770
17771         time_r: Add missing declarations on HP-UX 11.
17772         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17773         instead of HAVE_LOCALTIME_R.
17774         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17775         HAVE_LOCALTIME_R always.
17776         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17777         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17778         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17779         HAVE_LOCALTIME_R.
17780         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17781         * doc/posix-functions/localtime_r.texi: Likewise.
17782
17783 2010-12-29  Eric Blake  <eblake@redhat.com>
17784
17785         mountlist: tweak previous commit
17786         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17787         Reported by Paul Eggert.
17788
17789         mountlist: fix local drive detection on cygwin
17790         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17791         that works for cygwin.
17792
17793 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17794
17795         ftoastr, snprintf: ftoastr + snprintf module
17796         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17797         since the snprintf module now should be good enough here.
17798         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17799         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17800         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17801         GNULIB_SNPRINTF only for the test directory, and the latter
17802         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17803         seems to suffice by itself.
17804
17805 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17806
17807         alloca: one step towards thread-safety
17808         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17809         need for a static variable.  All callers changed.  This does not
17810         make the alloca replacement thread-safe, but it's one step.
17811
17812         tests: minor indenting change
17813         * tests/init.sh: Sync from coreutils housekeeping patch
17814         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17815         to keep lines within 80 columns.
17816
17817 2010-12-28  Jim Meyering  <meyering@redhat.com>
17818
17819         regex: don't infloop on persistent failing calloc
17820         * lib/regexec.c (build_trtable): Return failure indication upon
17821         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17822         In glibc, this was fixed for version 2.13:
17823         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17824
17825 2010-12-28  Bruno Haible  <bruno@clisp.org>
17826             Paul Eggert <eggert@cs.ucla.edu>
17827
17828         linkat: Make implementation robust against system behaviour variations.
17829         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17830         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17831         way, and to -2 if it needs a generic runtime test.
17832         * lib/linkat.c (solaris_optimized_link_immediate,
17833         solaris_optimized_link_follow): New functions.
17834         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17835         (check_same_link): Use it.
17836
17837 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17838
17839         New module 'unigbrk/base'.
17840         * modules/unigbrk/base: New file.
17841         * lib/unigbrk.in.h: New file.
17842
17843         New module 'unigbrk/uc-gbrk-prop'.
17844         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17845         * modules/unigbrk/uc-gbrk-prop: New file.
17846         * lib/unigbrk/gbrkprop.h: New file.
17847         * lib/unigbrk/uc-gbrk-prop.c: New file.
17848
17849         New module 'unigbrk/uc-is-grapheme-break'.
17850         * modules/unigbrk/uc-is-grapheme-break: New file.
17851         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17852         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17853         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17854         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17855         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17856
17857         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17858
17859 2010-12-27  Bruno Haible  <bruno@clisp.org>
17860
17861         linkat test: Avoid failure on Solaris 11 2010-11.
17862         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17863
17864 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17865
17866         utimens: work around glibc rounding bug on more platforms
17867         * lib/utimens.c (fdutimens): Work around rounding bug even if
17868         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17869         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17870
17871 2010-12-27  Bruno Haible  <bruno@clisp.org>
17872
17873         select tests: Improve comments.
17874         * tests/test-select.c (do_select): Add comments.
17875
17876 2010-12-27  Bruno Haible  <bruno@clisp.org>
17877
17878         select tests: Safer way of handling timeout.
17879         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17880         at every invocation.
17881
17882 2010-12-27  Bruno Haible  <bruno@clisp.org>
17883
17884         select tests: Use 'bool' where appropriate.
17885         * tests/test-select.c (connect_to_socket): Change argument type to
17886         'bool'.
17887
17888 2010-12-27  Bruno Haible  <bruno@clisp.org>
17889
17890         select tests: Use existing modules.
17891         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17892         (configure.ac): Don't test for unistd.h.
17893         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17894         declared in <unistd.h>.
17895
17896 2010-12-27  Bruno Haible  <bruno@clisp.org>
17897
17898         mbrtowc: Work around a Solaris 7 bug.
17899         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17900         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17901         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17902         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17903         MBRTOWC_NULL_ARG1_BUG.
17904         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17905         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17906         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17907         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17908
17909 2010-12-27  Jim Meyering  <meyering@redhat.com>
17910
17911         read-file.c: tweak syntax
17912         * lib/read-file.c (fread_file): Remove space after "*" in function
17913         definitions.
17914
17915 2010-12-27  Bruno Haible  <bruno@clisp.org>
17916
17917         times test: Avoid gcc warnings on OSF/1.
17918         * tests/test-times.c (main): Cast printf arguments from clock_t to
17919         'long int'.
17920
17921 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17922
17923         utimens: work around glibc rounding bug on older Linux kernels
17924         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17925         on Linux with a glibc whose utimes might not work, then work
17926         around a longstanding glibc bug involving rounding rather than
17927         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17928         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17929
17930 2010-12-26  Bruno Haible  <bruno@clisp.org>
17931
17932         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17933         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17934         _GL_CXXALIAS_SYS.
17935         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17936
17937 2010-12-26  Bruno Haible  <bruno@clisp.org>
17938
17939         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17940         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17941         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17942         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17943         looking for the declaration.
17944         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17945         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17946         problem.
17947         * doc/posix-functions/inet_pton.texi: Likewise.
17948
17949 2010-12-26  Bruno Haible  <bruno@clisp.org>
17950
17951         arpa_inet: Use the common idioms with C++ support.
17952         * lib/arpa_inet.in.h: Include c++defs.h.
17953         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17954         support.
17955         * modules/arpa_inet (Depends-on): Add c++defs.
17956         (Makefile.am): Substitute the contents of c++defs.h.
17957         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17958         * modules/arpa_inet-c++-tests: New file.
17959         * tests/test-arpa_inet-c++.cc: New file.
17960
17961 2010-12-25  Bruno Haible  <bruno@clisp.org>
17962
17963         Fix more C++ link errors on Solaris 8.
17964         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17965         $(LIB_EACCESS).
17966         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17967         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17968         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17969         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17970         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17971
17972 2010-12-25  Bruno Haible  <bruno@clisp.org>
17973
17974         printf-posix: Fix link error when a non-GCC compiler is used.
17975         * lib/stdio.in.h (printf): When not using GCC, override printf
17976         correctly.
17977         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17978
17979 2010-12-25  Bruno Haible  <bruno@clisp.org>
17980
17981         strerror_r-posix: Update doc.
17982         * doc/posix-functions/strerror_r.texi: Update doc about the return
17983         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17984
17985 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17986
17987         utimens: simplify the logic of the previous change
17988         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17989         This should not affect whether the test succeeds or fails.
17990
17991         utimens: configure better on hosts with NFS clock skew
17992         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17993         uses the clock of the local host.  It might use the clock of the
17994         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17995         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17996
17997 2010-12-25  Bruno Haible  <bruno@clisp.org>
17998
17999         ptsname test: Avoid failure on Solaris.
18000         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18001         open a pseudo-terminal; don't use BSD-style ptys.
18002         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18003
18004 2010-12-25  Bruno Haible  <bruno@clisp.org>
18005
18006         ptsname: Avoid ERANGE failure on some systems.
18007         * lib/ptsname.c (buffer): Increase size.
18008
18009 2010-12-25  Bruno Haible  <bruno@clisp.org>
18010
18011         rename, renameat: Avoid test failures at NFS mounted locations.
18012         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18013         so that subsequent mkdir calls succeed.
18014
18015 2010-12-25  Bruno Haible  <bruno@clisp.org>
18016
18017         iswblank: Fix C++ link error on Solaris 8.
18018         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18019         _GL_FUNCDECL_SYS.
18020
18021 2010-12-25  Bruno Haible  <bruno@clisp.org>
18022
18023         unistd: Fix C++ link error on Solaris 8.
18024         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18025
18026 2010-12-25  Bruno Haible  <bruno@clisp.org>
18027
18028         readlink doc: Mention an old glibc bug.
18029         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18030
18031 2010-12-25  Bruno Haible  <bruno@clisp.org>
18032
18033         fcntl-h: Fix for use of C++ on glibc systems.
18034         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18035         also on glibc systems in C++ mode.
18036         Reported by Gary V. Vaughan <gary@gnu.org>.
18037
18038 2010-12-25  Bruno Haible  <bruno@clisp.org>
18039
18040         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18041         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18042
18043 2010-12-25  Bruno Haible  <bruno@clisp.org>
18044
18045         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18046         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18047         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18048         test whether truncl works according to ISO C 99 with IEC 60559.
18049         * m4/truncl-ieee.m4: New file.
18050         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18051         m4/signbit.m4.
18052         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18053
18054 2010-12-25  Bruno Haible  <bruno@clisp.org>
18055
18056         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18057         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18058         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18059         test whether ceill works according to ISO C 99 with IEC 60559.
18060         * m4/ceill-ieee.m4: New file.
18061         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18062         m4/signbit.m4.
18063         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18064
18065 2010-12-25  Bruno Haible  <bruno@clisp.org>
18066
18067         Ensure all prerequisites of <wchar.h> are included.
18068         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18069         before <wchar.h>.
18070         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18071         gl_MBRLEN_NUL_RETVAL): Likewise.
18072         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18073         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18074         AC_FUNC_MBRTOWC): Likewise.
18075         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18076         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18077         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18078         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18079         Likewise.
18080         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18081         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18082         (gl_WCHAR_H): Improve comments.
18083         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18084
18085 2010-12-25  Bruno Haible  <bruno@clisp.org>
18086
18087         strtok_r: Fix C syntax error in autoconf macro.
18088         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18089         characters in test program.
18090
18091 2010-12-24  Bruno Haible  <bruno@clisp.org>
18092
18093         ceil, trunc, round: Fix gcc warnings.
18094         * lib/ceil.c (MIN): Undefine before redefining.
18095         * lib/trunc.c (MIN): Likewise.
18096         * lib/round.c (MIN): Likewise.
18097         Include <math.h> first.
18098
18099 2010-12-24  Bruno Haible  <bruno@clisp.org>
18100
18101         select tests: Avoid failures on OSF/1 5.1.
18102         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18103         failure of closing the last socket; it may fail with ECONNRESET.
18104
18105 2010-12-24  Eric Blake  <eblake@redhat.com>
18106
18107         stdint: avoid HP-UX 10.20 preprocessor bug
18108         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18109         than #if.
18110         * tests/test-floor2.c (main): Likewise.
18111         Reported by Peter O'Gorman.
18112
18113         pipe: make obsoletion transition easier
18114         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18115         * modules/pipe (Files): Include revived file.
18116         (Include): Drop reference, to mirror getdate's behavior.
18117
18118 2010-12-24  Bruno Haible  <bruno@clisp.org>
18119
18120         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18121         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18122         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18123         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18124
18125 2010-12-24  Bruno Haible  <bruno@clisp.org>
18126
18127         gethostname: Ensure declaration on NonStop Kernel.
18128         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18130
18131 2010-12-24  Bruno Haible  <bruno@clisp.org>
18132
18133         sys_select: Ensure all necessary types on NonStop Kernel.
18134         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18135         include <sys/time.h>.
18136         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18137         NonStop Kernel.
18138         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18139
18140 2010-12-24  Bruno Haible  <bruno@clisp.org>
18141
18142         sys_select: Remove unneeded include.
18143         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18144         have <sys/select.h>.
18145
18146 2010-12-24  Bruno Haible  <bruno@clisp.org>
18147
18148         gethostname: Provide a fallback for HOST_NAME_MAX.
18149         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18150         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18151         instead.
18152         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18153
18154 2010-12-24  Bruno Haible  <bruno@clisp.org>
18155
18156         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18157         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18158         (SA_RESTART): Likewise.
18159         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18160
18161 2010-12-24  Bruno Haible  <bruno@clisp.org>
18162
18163         signal: Define NSIG.
18164         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18165         * tests/test-signal.c (nsig): New variable.
18166         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18167
18168 2010-12-24  Bruno Haible  <bruno@clisp.org>
18169
18170         rename, renameat: Avoid test failures on OSF/1 5.1.
18171         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18172         alternative error codes.
18173         * tests/test-renameat.c (main): Likewise.
18174
18175 2010-12-24  Bruno Haible  <bruno@clisp.org>
18176
18177         *printf: Detect large precisions bug on Solaris 10/SPARC.
18178         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18179         by Paul Eggert.
18180         * tests/test-snprintf-posix.h (test_function): Add this test code here
18181         too.
18182         * tests/test-sprintf-posix.h (test_function): Likewise.
18183         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18184         * tests/test-vasprintf-posix.c (test_function): Likewise.
18185         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18186         around by gnulib.
18187         * doc/posix-functions/printf.texi: Likewise.
18188         * doc/posix-functions/snprintf.texi: Likewise.
18189         * doc/posix-functions/sprintf.texi: Likewise.
18190         * doc/posix-functions/vfprintf.texi: Likewise.
18191         * doc/posix-functions/vprintf.texi: Likewise.
18192         * doc/posix-functions/vsnprintf.texi: Likewise.
18193         * doc/posix-functions/vsprintf.texi: Likewise.
18194         * doc/posix-functions/dprintf.texi: Undo last commit.
18195         * doc/posix-functions/vdprintf.texi: Likewise.
18196
18197 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18198
18199         tests: port test-fdutimensat.c to Solaris 8
18200         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18201         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18202         On Solaris 8, it fails with errno == ENOSYS, because there is no
18203         futimens (so it can't use the fd), and there is no lutimens (so it
18204         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18205
18206         vsnprintf: make more consistent with snprintf; doc fixes
18207
18208         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18209         the byte count return problem was promoted from the snprintf-posix
18210         to the snprintf module.
18211         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18212         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18213         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18214         * tests/test-snprintf.c (main): Check the byte count returned.
18215         * tests/test-vsnprintf.c (main): Likewise.
18216
18217 2010-12-23  Eric Blake  <eblake@redhat.com>
18218
18219         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18220         * modules/sigpipe (License): Relax license.
18221
18222 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18223
18224         doc: document Solaris printf bug with large float precisions
18225         * doc/posix-functions/dprintf.texi (dprintf):
18226         * doc/posix-functions/fprintf.texi (fprintf):
18227         * doc/posix-functions/printf.texi (printf):
18228         * doc/posix-functions/snprintf.texi (snprintf):
18229         * doc/posix-functions/sprintf.texi (sprintf):
18230         * doc/posix-functions/vdprintf.texi (vdprintf):
18231         * doc/posix-functions/vfprintf.texi (vfprintf):
18232         * doc/posix-functions/vprintf.texi (vprintf):
18233         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18234         * doc/posix-functions/vsprintf.texi (vsprintf):
18235         Mention that these functions mishandle large floating point
18236         precisions on Solaris 10.  The same bug is also present in Solaris
18237         8, and I assume earlier.  This causes "cd gnulib-tests; make
18238         check" to fail on Solaris 8 (and I assume, later) when building
18239         the latest coreutils, in test-vasprintf-posix's call to
18240         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18241         the wide flavors (e.g., wprintf) so this patch just updates the
18242         documentation for the narrow ones.
18243
18244         test-posixtm.c: add two tests
18245         * tests/test-posixtm.c: Add two tests, to highlight the
18246         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18247         around this bug; this is merely to document it.
18248
18249 2010-12-22  Bruno Haible  <bruno@clisp.org>
18250
18251         getlogin_r: Work around portability problem on OSF/1.
18252         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18253         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18254         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18255         test for a truncated result.
18256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18257         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18258         * modules/getlogin_r (Depends-on): Add memchr.
18259         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18260
18261 2010-12-22  Bruno Haible  <bruno@clisp.org>
18262
18263         ptsname: Avoid test failure on OSF/1 5.1.
18264         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18265         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18266         (same_slave): New function.
18267         (main): Use it to compare ptsname's result with the expected file name.
18268
18269 2010-12-22  Bruno Haible  <bruno@clisp.org>
18270
18271         Port extended stdio modules to HP NonStop Kernel.
18272         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18273         macros.
18274         * lib/fbufmode.c: Update comments.
18275         * lib/fflush.c: Likewise.
18276         * lib/fpurge.c: Likewise.
18277         * lib/freadable.c: Likewise.
18278         * lib/freadahead.c: Likewise.
18279         * lib/freading.c: Likewise.
18280         * lib/freadptr.c: Likewise.
18281         * lib/freadseek.c: Likewise.
18282         * lib/fseeko.c: Likewise.
18283         * lib/fseterr.c: Likewise.
18284         * lib/fwritable.c: Likewise.
18285         * lib/fwriting.c: Likewise.
18286         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18287
18288 2010-12-22  Bruno Haible  <bruno@clisp.org>
18289
18290         ttyname_r: Work around bug on OSF/1 5.1.
18291         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18292         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18293         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18294         present.
18295         * lib/ttyname_r.c (ttyname_r): Update comments.
18296
18297 2010-12-22  Bruno Haible  <bruno@clisp.org>
18298
18299         round: Implement result sign according to IEEE 754.
18300         * lib/round.c (MIN, MINUS_ZERO): New macros.
18301         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18302         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18303         * tests/test-round-ieee.c (main): Likewise.
18304         * tests/test-roundl-ieee.c (main): Likewise.
18305
18306         trunc: Implement result sign according to IEEE 754.
18307         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18308         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18309         * tests/test-trunc2.c: Include minus-zero.h.
18310         (MINUS_ZERO): New macro.
18311         (trunc_reference): Keep in sync with lib/trunc.c.
18312         * tests/test-truncf2.c: Include minus-zero.h.
18313         (MINUS_ZERO): New macro.
18314         (truncf_reference): Keep in sync with lib/trunc.c.
18315         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18316         * tests/test-trunc-ieee.c (main): Likewise.
18317         * tests/test-truncl-ieee.c (main): Likewise.
18318
18319         ceil: Implement result sign according to IEEE 754.
18320         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18321         (FUNC): Return -0.0 for -1 < x < 0.
18322         * tests/test-ceil2.c: Include minus-zero.h.
18323         (MINUS_ZERO): New macro.
18324         (ceil_reference): Keep in sync with lib/ceil.c.
18325         * tests/test-ceilf2.c: Include minus-zero.h.
18326         (MINUS_ZERO): New macro.
18327         (ceilf_reference): Keep in sync with lib/ceil.c.
18328         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18329         * tests/test-ceil-ieee.c (main): Likewise.
18330         * tests/test-ceill-ieee.c (main): Likewise.
18331
18332         floor: Implement result sign according to IEEE 754.
18333         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18334         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18335         * tests/test-floorf2.c (floorf_reference): Likewise.
18336         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18337         * tests/test-floor-ieee.c (main): Likewise.
18338         * tests/test-floorl-ieee.c (main): Likewise.
18339
18340 2010-12-22  Bruno Haible  <bruno@clisp.org>
18341
18342         getaddrinfo: Update doc.
18343         * doc/posix-functions/gai_strerror.texi: Return type is also different
18344         on AIX and HP-UX.
18345
18346 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18347
18348         getaddrinfo, inet_ntop: Update doc for Solaris.
18349         * doc/posix-functions/gai_strerror.texi: Return type is also an
18350         issue on Solaris 9 and earlier.
18351         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18352         on Solaris 10 and earlier.
18353
18354 2010-12-21  Bruno Haible  <bruno@clisp.org>
18355
18356         New module 'roundl-ieee'.
18357         * modules/roundl-ieee: New file.
18358         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18359         test whether roundl works according to ISO C 99 with IEC 60559.
18360         * m4/roundl-ieee.m4: New file.
18361         * modules/roundl-ieee-tests: New file.
18362         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18363         * tests/test-roundl.c (main): Remove signbit tests.
18364         * modules/roundl-tests (Depends-on): Remove signbit.
18365         * doc/posix-functions/roundl.texi: Mention the new module.
18366
18367 2010-12-21  Bruno Haible  <bruno@clisp.org>
18368
18369         New module 'truncl-ieee'.
18370         * modules/truncl-ieee: New file.
18371         * modules/truncl-ieee-tests: New file.
18372         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18373         * tests/test-truncl.c (main): Remove signbit tests.
18374         * modules/truncl-tests (Depends-on): Remove signbit.
18375         * doc/posix-functions/truncl.texi: Mention the new module.
18376
18377 2010-12-21  Bruno Haible  <bruno@clisp.org>
18378
18379         New module 'ceill-ieee'.
18380         * modules/ceill-ieee: New file.
18381         * modules/ceill-ieee-tests: New file.
18382         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18383         * tests/test-ceill.c (main): Remove signbit tests.
18384         * modules/ceill-tests (Depends-on): Remove signbit.
18385         * doc/posix-functions/ceill.texi: Mention the new module.
18386
18387 2010-12-21  Bruno Haible  <bruno@clisp.org>
18388
18389         New module 'floorl-ieee'.
18390         * modules/floorl-ieee: New file.
18391         * modules/floorl-ieee-tests: New file.
18392         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18393         * tests/test-floorl.c (main): Remove signbit tests.
18394         * modules/floorl-tests (Depends-on): Remove signbit.
18395         * doc/posix-functions/floorl.texi: Mention the new module.
18396
18397 2010-12-21  Bruno Haible  <bruno@clisp.org>
18398
18399         New module 'round-ieee'.
18400         * modules/round-ieee: New file.
18401         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18402         whether round works according to ISO C 99 with IEC 60559.
18403         * m4/round-ieee.m4: New file.
18404         * modules/round-ieee-tests: New file.
18405         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18406         * tests/test-round1.c (main): Remove signbit tests.
18407         * modules/round-tests (Depends-on): Remove 'signbit'.
18408         * doc/posix-functions/round.texi: Mention the new module.
18409
18410 2010-12-21  Bruno Haible  <bruno@clisp.org>
18411
18412         New module 'trunc-ieee'.
18413         * modules/trunc-ieee: New file.
18414         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18415         whether trunc works according to ISO C 99 with IEC 60559.
18416         * m4/trunc-ieee.m4: New file.
18417         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18419         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18420         * modules/trunc-ieee-tests: New file.
18421         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18422         * tests/test-trunc1.c (main): Remove signbit tests.
18423         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18424         * doc/posix-functions/trunc.texi: Mention the new module.
18425
18426 2010-12-21  Bruno Haible  <bruno@clisp.org>
18427
18428         New module 'ceil-ieee'.
18429         * modules/ceil-ieee: New file.
18430         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18431         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18432         ISO C 99 with IEC 60559.
18433         * m4/ceil-ieee.m4: New file.
18434         * modules/ceil (Files): Add lib/ceil.c.
18435         (Depends-on): Add 'float'.
18436         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18437         * lib/math.in.h (ceil): New declaration.
18438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18439         REPLACE_CEIL.
18440         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18441         * modules/ceil-ieee-tests: New file.
18442         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18443         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18444         * doc/posix-functions/ceil.texi: Mention the new module.
18445
18446 2010-12-21  Bruno Haible  <bruno@clisp.org>
18447
18448         New module 'floor-ieee'.
18449         * modules/floor-ieee: New file.
18450         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18451         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18452         ISO C 99 with IEC 60559.
18453         * m4/floor-ieee.m4: New file.
18454         * modules/floor (Files): Add lib/floor.c.
18455         (Depends-on): Add 'float'.
18456         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18457         * lib/math.in.h (floor): New declaration.
18458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18459         REPLACE_FLOOR.
18460         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18461         * modules/floor-ieee-tests: New file.
18462         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18463         * tests/test-math-c++.cc: Check the signature of 'floor'.
18464         * doc/posix-functions/floor.texi: Mention the new module.
18465
18466 2010-12-21  Bruno Haible  <bruno@clisp.org>
18467
18468         New module 'roundf-ieee'.
18469         * modules/roundf-ieee: New file.
18470         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18471         test whether roundf works according to ISO C 99 with IEC 60559.
18472         * m4/roundf-ieee.m4: New file.
18473         * modules/roundf-ieee-tests: New file.
18474         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18475         * tests/test-roundf1.c (main): Remove signbit tests.
18476         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18477         * doc/posix-functions/roundf.texi: Mention the new module.
18478
18479 2010-12-21  Bruno Haible  <bruno@clisp.org>
18480
18481         New module 'truncf-ieee'.
18482         * modules/truncf-ieee: New file.
18483         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18484         test whether truncf works according to ISO C 99 with IEC 60559.
18485         * m4/truncf-ieee.m4: New file.
18486         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18488         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18489         * modules/truncf-ieee-tests: New file.
18490         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18491         * tests/test-truncf1.c (main): Remove signbit tests.
18492         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18493         * doc/posix-functions/truncf.texi: Mention the new module.
18494
18495 2010-12-21  Bruno Haible  <bruno@clisp.org>
18496
18497         New module 'ceilf-ieee'.
18498         * modules/ceilf-ieee: New file.
18499         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18500         test whether ceilf works according to ISO C 99 with IEC 60559.
18501         * m4/ceilf-ieee.m4: New file.
18502         * modules/ceilf-ieee-tests: New file.
18503         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18504         * tests/test-ceilf1.c (main): Remove signbit tests.
18505         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18506         * doc/posix-functions/ceilf.texi: Mention the new module.
18507
18508 2010-12-21  Bruno Haible  <bruno@clisp.org>
18509
18510         New module 'floorf-ieee'.
18511         * modules/floorf-ieee: New file.
18512         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18513         test whether floorf works according to ISO C 99 with IEC 60559.
18514         * m4/floorf-ieee.m4: New file.
18515         * modules/floorf-ieee-tests: New file.
18516         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18517         * tests/test-floorf1.c (main): Remove signbit tests.
18518         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18519         * doc/posix-functions/floorf.texi: Mention the new module.
18520
18521 2010-12-21  Bruno Haible  <bruno@clisp.org>
18522
18523         Support for minus zero in autoconf macros.
18524         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18525         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18526         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18527         * tests/minus-zero.h: Update comments.
18528
18529 2010-12-21  Bruno Haible  <bruno@clisp.org>
18530
18531         Tests for module 'ceil'.
18532         * modules/ceil-tests: New file.
18533         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18534         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18535
18536 2010-12-21  Bruno Haible  <bruno@clisp.org>
18537
18538         Tests for module 'floor'.
18539         * modules/floor-tests: New file.
18540         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18541         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18542
18543 2010-12-21  Bruno Haible  <bruno@clisp.org>
18544
18545         math: Fix indentation.
18546         * lib/math.in.h (floorf): Fix indentation.
18547
18548 2010-12-21  Bruno Haible  <bruno@clisp.org>
18549
18550         Fix cross-compilation guesses on Solaris.
18551         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18552         not match "solaris2.10".
18553         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18554         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18555         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18556
18557 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18558
18559         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18560         This fixes a problem observed with the latest coreutils snapshot
18561         that caused a test to fail on Solaris 8.  src/csplit.c's call
18562         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18563         earlier, instead of returning the number of bytes that would have
18564         been generated; this causes csplit to incorrectly report memory
18565         exhaustion.
18566         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18567         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18568         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18569         comments to match.
18570         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18571         Fix typo in matching older versions of Solaris: "solaris2.10"
18572         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18573         only for guessing while cross-compiling.
18574         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18575
18576 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18577
18578         ftoastr: fix comment again
18579         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18581         Also, simplify example a bit by using flags = 0.
18582
18583 2010-12-20  Bruno Haible  <bruno@clisp.org>
18584
18585         round*, trunc*: Update documentation regarding glibc.
18586         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18587         * doc/posix-functions/round.texi: Likewise.
18588         * doc/posix-functions/roundl.texi: Likewise.
18589         * doc/posix-functions/truncf.texi: Likewise.
18590         * doc/posix-functions/trunc.texi: Likewise.
18591         * doc/posix-functions/truncl.texi: Likewise.
18592
18593 2010-12-20  Bruno Haible  <bruno@clisp.org>
18594
18595         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18596         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18597         * doc/posix-functions/round.texi: Likewise.
18598         * doc/posix-functions/roundl.texi: Likewise.
18599
18600 2010-12-20  Bruno Haible  <bruno@clisp.org>
18601
18602         ttyname_r: Add missing declaration on HP-UX 11.
18603         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18604         HAVE_TTYNAME_R.
18605         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18606         declared. Set HAVE_TTYNAME_R always.
18607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18608         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18609         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18610         HAVE_TTYNAME_R.
18611         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18612
18613 2010-12-20  Bruno Haible  <bruno@clisp.org>
18614
18615         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18616         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18617         * doc/posix-functions/getlogin_r.texi: Likewise.
18618         * tests/test-getlogin.c: Include <errno.h>.
18619         (main): Avoid test failure on HP-UX 11.11.
18620         * tests/test-getlogin_r.c (main): Likewise.
18621
18622 2010-12-20  Bruno Haible  <bruno@clisp.org>
18623
18624         getlogin_r: Add missing declaration on HP-UX 11.
18625         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18626         declared also when it exists as a function.
18627         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18628
18629 2010-12-20  Bruno Haible  <bruno@clisp.org>
18630
18631         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18632         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18633         through wcrtomb.
18634
18635 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18636
18637         ftoastr: fix comment
18638         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18639         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18640
18641 2010-12-19  Bruno Haible  <bruno@clisp.org>
18642
18643         isnan: Ensure it is a macro.
18644         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18645         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18646         Solaris.
18647
18648 2010-12-19  Bruno Haible  <bruno@clisp.org>
18649
18650         ldexpl test: Fix link error on OSF/1 5.1.
18651         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18652
18653 2010-12-19  Bruno Haible  <bruno@clisp.org>
18654
18655         wctype: Make it work in C++ mode on OSF/1 5.1.
18656         * lib/wctype.in.h (iswblank): Declare but not define here.
18657         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18658         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18659         * modules/wctype (Files): Add lib/iswblank.c.
18660
18661 2010-12-19  Bruno Haible  <bruno@clisp.org>
18662
18663         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18664         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18665         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18666
18667 2010-12-19  Bruno Haible  <bruno@clisp.org>
18668
18669         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18670         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18671         _POSIX_PII_SOCKET.
18672         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18673         * doc/posix-functions/recvfrom.texi: Likewise.
18674         * doc/posix-functions/send.texi: Likewise.
18675         * doc/posix-functions/sendto.texi: Likewise.
18676
18677 2010-12-19  Bruno Haible  <bruno@clisp.org>
18678
18679         tcgetsid: Add missing declaration on OSF/1 5.1.
18680         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18681         HAVE_TCGETSID.
18682         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18683         Don't set HAVE_TCGETSID.
18684         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18685         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18686         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18687         HAVE_TCGETSID.
18688         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18689
18690 2010-12-19  Bruno Haible  <bruno@clisp.org>
18691
18692         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18693         * lib/stdio.in.h: During the include_next statement, let recursive
18694         includes of this file include only the system header file.
18695
18696 2010-12-19  Bruno Haible  <bruno@clisp.org>
18697
18698         iconv_open: Fix regression from 2010-12-04.
18699         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18700         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18701
18702 2010-12-19  Bruno Haible  <bruno@clisp.org>
18703
18704         stdbool test: Avoid a gcc warning.
18705         * tests/test-stdbool.c (main): Fail if e1 is false.
18706         Reported by Jim Meyering.
18707
18708 2010-12-19  Jim Meyering  <meyering@redhat.com>
18709
18710         setenv: restore to working order
18711         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18712         mistakenly removed.
18713         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18714         HAVE_SETENV.
18715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18716         HAVE_SETENV.
18717
18718 2010-12-19  Bruno Haible  <bruno@clisp.org>
18719
18720         Document some different function declarations on OSF/1 5.1.
18721         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18722         * doc/posix-functions/inet_ntop.texi: Likewise.
18723         * doc/posix-functions/gethostname.texi: Likewise.
18724         * lib/unistd.in.h (gethostname): Update comment.
18725
18726 2010-12-19  Bruno Haible  <bruno@clisp.org>
18727
18728         doc: Mention vasprintf-posix module.
18729         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18730         the 'vasprintf-posix' module.
18731         * doc/glibc-functions/vasprintf.texi: Likewise.
18732
18733 2010-12-19  Bruno Haible  <bruno@clisp.org>
18734
18735         unsetenv: Add missing declaration on OSF/1 5.1.
18736         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18737         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18738         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18740         not HAVE_UNSETENV.
18741         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18742         HAVE_UNSETENV.
18743         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18744
18745 2010-12-19  Bruno Haible  <bruno@clisp.org>
18746
18747         setenv: Add missing declaration on OSF/1 5.1.
18748         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18749         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18750         declared. Don't set HAVE_SETENV.
18751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18752         not HAVE_SETENV.
18753         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18754         HAVE_SETENV.
18755         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18756
18757 2010-12-19  Bruno Haible  <bruno@clisp.org>
18758
18759         nl_langinfo tests: Avoid gcc warning.
18760         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18761
18762 2010-12-19  Bruno Haible  <bruno@clisp.org>
18763
18764         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18765         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18766         _GL_CXXALIAS_SYS.
18767
18768 2010-12-19  Bruno Haible  <bruno@clisp.org>
18769
18770         stdbool: Relax test.
18771         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18772         address to 'bool' work in static initializer, for compilers other than
18773         GCC.
18774
18775 2010-12-19  Bruno Haible  <bruno@clisp.org>
18776
18777         ftello: Add missing declaration on OSF/1 5.1.
18778         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18779         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18781         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18782         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18783
18784 2010-12-19  Bruno Haible  <bruno@clisp.org>
18785
18786         fseeko: Add missing declaration on OSF/1 5.1.
18787         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18788         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18790         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18791         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18792
18793 2010-12-19  Bruno Haible  <bruno@clisp.org>
18794
18795         fchdir: Add missing declaration on OSF/1 5.1.
18796         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18799         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18800         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18801
18802 2010-12-19  Bruno Haible  <bruno@clisp.org>
18803
18804         relocatable-prog-wrapper: Separate from relocatable-prog.
18805         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18806         uninstall-relocwrapper rule here.
18807         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18808         Reported by Ian Beckwith <ianb@erislabs.net>.
18809
18810 2010-12-19  Bruno Haible  <bruno@clisp.org>
18811
18812         unistr/u8-mbsnlen: Add missing dependency.
18813         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18814         Reported by Ian Beckwith <ianb@erislabs.net>.
18815
18816 2010-12-19  Bruno Haible  <bruno@clisp.org>
18817
18818         iconv: Make it possible again to use this module without 'iconv-h'.
18819         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18820         if it is not defined.
18821         Reported by Ian Beckwith <ianb@erislabs.net>.
18822
18823 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18824
18825         acl: port to Solaris 8 when copying from tmpfs to ufs
18826         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18827         error number.  Problem observed on Solaris 8 with latest
18828         coreutils, with "mv A B", where A is on a tmpfs file system and B
18829         is on a ufs file system.  This caused coreutils' mv/part-symlink
18830         test to fail.
18831
18832         tests: set fail=0 at start
18833         * tests/init.sh (setup_): Move fail=0 initialization here ...
18834         (mktempd_): ... from here, so that tests can rely on fail being
18835         set to 0 initially.  This fixes a problem in coreutils; see:
18836         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18837
18838 2010-12-18  Bruno Haible  <bruno@clisp.org>
18839
18840         memmem-simple: Stylistic changes.
18841         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18842         Fix preprocessor directive indentation.
18843
18844 2010-12-15  Pádraig Brady <P@draigBrady.com>
18845
18846         memmem, memmem-simple: reorganize and expand empty needle check
18847         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18848         functional checks to memmem-simple so that one has a fully functional
18849         memmem by using just this module.
18850         Restrict the performance only check to the memmem module.
18851         Also expand the empty needle check to ensure the correct
18852         pointer is returned, not just a non NULL pointer.
18853         * doc/glibc-functions/memmem.texi: Rearrange the portability
18854         documentation to correlate with the rearranged checks.
18855         Clarify exactly how the memmem and memmem-simple modules
18856         relate to each other.
18857
18858 2010-12-15  Pádraig Brady <P@draigBrady.com>
18859             Bruno Haible  <bruno@clisp.org>
18860
18861         Improve cross-compilation guesses for uClibc.
18862         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18863         that uClibc does not have the glibc bug.
18864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18865         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18866
18867 2010-12-14  Eric Blake  <eblake@redhat.com>
18868
18869         configmake: provide fallbacks for oldest supported autotools
18870         * m4/configmake.m4: New file.
18871         * modules/configmake (Files): Ship it.
18872         (configure.ac): Use it to guarantee fallbacks.
18873
18874 2010-12-13  Pádraig Brady <P@draigBrady.com>
18875
18876         read-file: Improve handling of large files
18877         * lib/read-file.c (fread_file): Minimize realloc()s
18878         for regular files, and better manage sizes around SIZE_MAX.
18879
18880 2010-12-13  Eric Blake  <eblake@redhat.com>
18881
18882         cloexec, fcntl: relax license
18883         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18884         consent from all contributors.
18885         * modules/fcntl (License): Likewise.
18886
18887 2010-12-10  Bruno Haible  <bruno@clisp.org>
18888
18889         Tests for module 'pipe-posix'.
18890         * modules/pipe-posix-tests: New file.
18891         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18892
18893 2010-12-10  Bruno Haible  <bruno@clisp.org>
18894
18895         pipe-posix: Make it work in C++ mode.
18896         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18897         (pipe): Use common idiom, not a macro definition.
18898         * lib/pipe.c: New file.
18899         * m4/pipe.m4: New file.
18900         * modules/pipe-posix (Description): Enhance.
18901         (Files): Add lib/pipe.c, m4/pipe.m4.
18902         (configure.ac): Invoke gl_FUNC_PIPE.
18903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18904         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18905         * tests/test-unistd-c++.cc: Check the signature of pipe.
18906
18907 2010-12-10  Bruno Haible  <bruno@clisp.org>
18908
18909         Rename module 'pipe' to 'spawn-pipe'.
18910         * modules/spawn-pipe: New file, renamed from modules/pipe.
18911         (Files, configure.ac, Makefile.am): Update.
18912         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18913         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18914         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18915         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18916         "spawn-pipe.h" instead of "pipe.h".
18917         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18918         to gl_SPAWN_PIPE.
18919         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18920         (Files, Makefile.am): Update.
18921         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18922         Update.
18923         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18924         Include "spawn-pipe.h" instead of "pipe.h".
18925         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18926         * lib/javacomp.c: Likewise.
18927         * lib/javaversion.c: Likewise.
18928         * lib/pipe-filter-gi.c: Likewise.
18929         * lib/pipe-filter-ii.c: Likewise.
18930         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18931         * modules/javacomp (Depends-on): Likewise.
18932         * modules/javaversion (Depends-on): Likewise.
18933         * modules/pipe-filter-gi (Depends-on): Likewise.
18934         * modules/pipe-filter-ii (Depends-on): Likewise.
18935         * MODULES.html.sh (Executing programs): Update.
18936         * NEWS: Mention the change.
18937
18938 2010-12-10  Eric Blake  <eblake@redhat.com>
18939
18940         pipe-posix: new module
18941         * modules/pipe-posix: New file.
18942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18943         (gl_UNISTD_H): Check for declaration.
18944         * modules/unistd (Makefile.am): Substitute it.
18945         * lib/unistd.in.h (pipe): Provide it for mingw.
18946         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18947         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18948
18949 2010-12-07  Bruno Haible  <bruno@clisp.org>
18950
18951         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18952         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18953         u8_strcmp_gnu.
18954         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18955
18956 2010-12-06  Bruno Haible  <bruno@clisp.org>
18957
18958         Update internal documentation.
18959         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18960
18961 2010-12-04  Bruno Haible  <bruno@clisp.org>
18962
18963         Put more information about failed tests into the test return codes.
18964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18965         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18966         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18967         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18968         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18969         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18970         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18971         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18972         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18974         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18975         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18976         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18977         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18978         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18979         returns a bit mask.
18980         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18981         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18982         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18983         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18984         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18985         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18988         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18989         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18990         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18991         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18992         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18993         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18994         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18995         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18996         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18997         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18998         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18999         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19000         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19001         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19002         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19003         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19004         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19005         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19006         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19007         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19008         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19009         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19010         gl_PRINTF_PRECISION): Likewise.
19011         * m4/regex.m4 (gl_REGEX): Likewise.
19012         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19013         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19014         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19015         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19016         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19017         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19018         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19019         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19020         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19021         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19022         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19023         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19024         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19026         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19027         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19028         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19029         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19031         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19032         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19033         enumerated value.
19034         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19035
19036 2010-12-04  Bruno Haible  <bruno@clisp.org>
19037
19038         Update for Solaris 11 2010-11.
19039         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19040         Express, released in November 2010.
19041
19042 2010-12-04  Bruno Haible  <bruno@clisp.org>
19043
19044         nproc: Relax license.
19045         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19046         and Paul Eggert.
19047         Requested by Ludovic Courtès <ludo@gnu.org>.
19048
19049 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19050
19051         utimecmp: fine-grained src to nearby coarse-grained dest
19052
19053         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19054         and the source is on a file system with higher-resolution time
19055         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19056         not work, and the time stamps are close together, the algorithm to
19057         determine the exact resolution from the read-back mtime was buggy:
19058         it had a "!=" where it should have had an "==".  This bug has been
19059         in the code ever since it was introduced to gnulib.
19060         Problem reported by Dan Jacobson in
19061         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19062
19063 2010-11-30  Bruno Haible  <bruno@clisp.org>
19064
19065         strerror_r-posix: Fix autoconf test.
19066         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19067
19068 2010-11-28  Bruno Haible  <bruno@clisp.org>
19069             Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         Tests for module 'getdomainname'.
19072         * modules/getdomainname-tests: New file.
19073         * tests/test-getdomainname.c: New file, based on
19074         tests/test-gethostname.c.
19075
19076 2010-11-28  Bruno Haible  <bruno@clisp.org>
19077             Paul Eggert  <eggert@cs.ucla.edu>
19078
19079         getdomainname: Use the system function when possible.
19080         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19081         (getdomainname): Replace if needed. Provide the declaration if it is
19082         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19083         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19084         (getdomainname): When the system has getdomainname, call the system
19085         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19086         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19087         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19088         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19089         the function if its second argument is of type 'int' or if it is found
19090         in libnsl.
19091         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19092         <sys/systeminfo.h> and sysinfo().
19093         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19095         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19096         HAVE_GETDOMAINNAME.
19097         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19098         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19099         * doc/glibc-functions/getdomainname.texi: Document the problems with
19100         the getdomainname declaration.
19101
19102 2010-11-28  Bruno Haible  <bruno@clisp.org>
19103
19104         sys_socket: Ensure ss_family field on AIX.
19105         * lib/sys_socket.in.h (ss_family): New macro definition.
19106         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19107         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19108         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19109         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19110         * modules/sys_socket (Makefile.am): Substitute
19111         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19112         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19113
19114 2010-11-27  Bruno Haible  <bruno@clisp.org>
19115
19116         readline: Improve configure output.
19117         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19118         "checking for readline..." result understandable.
19119
19120 2010-11-27  Bruno Haible  <bruno@clisp.org>
19121
19122         *printf-posix: Detect a bug on Solaris 10/x86.
19123         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19124         for floating-point output.
19125         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19126         directive.
19127         * tests/test-snprintf-posix.h (test_function): Likewise.
19128         * tests/test-sprintf-posix.h (test_function): Likewise.
19129         * tests/test-vasprintf-posix.c (test_function): Likewise.
19130         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19131         * doc/posix-functions/printf.texi: Likewise.
19132         * doc/posix-functions/snprintf.texi: Likewise.
19133         * doc/posix-functions/sprintf.texi: Likewise.
19134         * doc/posix-functions/vfprintf.texi: Likewise.
19135         * doc/posix-functions/vprintf.texi: Likewise.
19136         * doc/posix-functions/vsnprintf.texi: Likewise.
19137         * doc/posix-functions/vsprintf.texi: Likewise.
19138         * doc/glibc-functions/obstack_printf.texi: Likewise.
19139         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19140
19141 2010-11-27  Bruno Haible  <bruno@clisp.org>
19142
19143         Fix link error when module libunistring-optional is in use.
19144         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19145         * modules/striconveha-tests (Makefile.am): Likewise.
19146
19147 2010-11-27  Bruno Haible  <bruno@clisp.org>
19148
19149         regex: Mention link dependencies.
19150         * modules/regex (Link): New section.
19151         * modules/rpmatch (Link): Likewise.
19152         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19153
19154 2010-11-27  Bruno Haible  <bruno@clisp.org>
19155
19156         ftoastr: Fix compilation error on Solaris.
19157         * lib/ftoastr.c: Include <config.h>.
19158
19159 2010-11-27  Bruno Haible  <bruno@clisp.org>
19160
19161         getloadavg: Update documentation.
19162         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19163
19164 2010-11-27  Bruno Haible  <bruno@clisp.org>
19165
19166         sys_socket: Fix test whether the functions are declared.
19167         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19168         not <sys/select.h>.
19169
19170 2010-11-27  Bruno Haible  <bruno@clisp.org>
19171
19172         getpass: Make sure to get system declaration on some platforms.
19173         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19174         gl_USE_SYSTEM_EXTENSIONS.
19175         * modules/getpass (Depends-on): Add extensions.
19176
19177 2010-11-26  Bruno Haible  <bruno@clisp.org>
19178
19179         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19180         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19181         'iconv' module is present.
19182         (ICONV_CONST): New macro.
19183         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19184         ICONV_CONST.
19185         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19186         set ICONV_CONST.
19187         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19188         here.
19189         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19190         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19191         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19192         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19193         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19194         present.
19195
19196 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19197
19198         ftoastr: comment fix
19199         * lib/ftoastr.c: "little" -> "little or no" in comment
19200
19201 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19202
19203         stdint: port to GCC 4.3 + OSX + Octave
19204         On this platform, stdint.h is buggy and defines int64_t to long
19205         long int.  The replacement defined it to long int, causing
19206         problems with C++ style name mangling.  Instead, trust the system
19207         definition if INT64_MAX is defined, and likewise for the unsigned
19208         variant.   Problem reported by Jarno Rajahalme in
19209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19210         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19211         and don't mess with int64_t and INT64_MAX in this case.
19212         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19213
19214 2010-11-24  Bruno Haible  <bruno@clisp.org>
19215
19216         doc: Corrections regarding MacOS X 10.4 and 10.5.
19217         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19218         MacOS X.
19219         Reported by Simon Josefsson.
19220
19221 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19222
19223         Uninstall ".bin" files installed by relocwrapper.
19224         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19225         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19226         unless it is already there.
19227
19228 2010-11-21  Bruno Haible  <bruno@clisp.org>
19229
19230         Update for NetBSD 5.0.
19231         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19232         NetBSD; the test fails on NetBSD 5.0.
19233         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19234         about NetBSD.
19235
19236 2010-11-21  Bruno Haible  <bruno@clisp.org>
19237
19238         Update for HP-UX 11.23 and HP-UX 11.31.
19239         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19240         HP-UX.
19241
19242 2010-11-21  Bruno Haible  <bruno@clisp.org>
19243
19244         Update for MacOS X 10.5.
19245         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19246         MacOS X; the test fails on MacOS X 10.5.8.
19247         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19248         about MacOS X.
19249
19250 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19251
19252         bootstrap: add bootstrap_sync option.
19253         See discussion at
19254         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19255         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19256         * build-aux/bootstrap: Accept --bootstrap-sync to update
19257         bootstrap if it is not identical to the local gnulib's
19258         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19259         enable this by default.  Accept --no-bootstrap-sync to disable
19260         it.
19261
19262 2010-11-20  Bruno Haible  <bruno@clisp.org>
19263
19264         Ensure that <features.h> is included before __GLIBC__ is tested.
19265         * lib/printf-parse.h: Include <features.h>.
19266         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19267         Reported by Mike Frysinger <vapier@gentoo.org>.
19268
19269         Ensure that <features.h> is included before __GLIBC__ is tested.
19270         * lib/wchar.in.h: Include <features.h>.
19271         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19272         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19273         Reported by Mike Frysinger <vapier@gentoo.org>.
19274
19275         Ensure that <features.h> is included before __GLIBC__ is tested.
19276         * lib/arpa_inet.in.h: Include <features.h>.
19277         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19278         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19279         Reported by Mike Frysinger <vapier@gentoo.org>.
19280
19281         Ensure that <features.h> is included before __GLIBC__ is tested.
19282         * build-aux/link-warning.h: Include <features.h>.
19283         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19284         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19285         Reported by Mike Frysinger <vapier@gentoo.org>.
19286
19287         Ensure that <features.h> is included before __GLIBC__ is tested.
19288         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19289         Reported by Mike Frysinger <vapier@gentoo.org>.
19290
19291 2010-11-20  Bruno Haible  <bruno@clisp.org>
19292
19293         memmem: Fix autoconf test.
19294         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19295
19296 2010-11-20  Bruno Haible  <bruno@clisp.org>
19297
19298         Port to uClibc.
19299         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19300         * lib/fcntl.in.h: Likewise.
19301         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19302         * lib/mbrtowc.c (mbrtowc): Likewise.
19303         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19304         * lib/strerror_r.c: Likewise.
19305         * lib/unistr/u8-strnlen.c: Likewise.
19306         * lib/vasnprintf.c (decimal_point_char): Likewise.
19307         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19308         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19309         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19310         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19311         * tests/test-sigaction.c (handler, main): Likewise.
19312         * lib/freading.h: Treat uClibc like a non-glibc platform.
19313         * lib/freading.c: Likewise.
19314         * lib/gettext.h: Likewise.
19315         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19316         Likewise.
19317         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19318         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19319         * lib/propername.c (proper_name_utf8): Likewise.
19320         * lib/spawn.in.h: Likewise.
19321         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19322         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19323         mem_cd_iconveh_internal): Likewise.
19324         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19325         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19326         strstr, strcasestr): Likewise.
19327         * lib/unicodeio.c (unicode_to_mb): Likewise.
19328         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19329         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19330         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19331         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19332         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19333         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19334         * lib/unistr/u8-stpncpy.c: Likewise.
19335         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19336         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19337         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19338         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19339         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19340         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19341         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19344         Likewise.
19345         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19346         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19347         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19349         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19350         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19351         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19352         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19353         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19354         * tests/test-striconveha.c (main): Likewise.
19355         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19356         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19357         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19358         * doc/posix-functions/getline.texi: Likewise.
19359         Reported by Mike Frysinger <vapier@gentoo.org>.
19360
19361 2010-11-20  Bruno Haible  <bruno@clisp.org>
19362
19363         nproc: Fix condition.
19364         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19365         HAVE_PTHREAD_AFFINITY_NP.
19366
19367 2010-11-20  Bruno Haible  <bruno@clisp.org>
19368
19369         Fix a comment.
19370         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19371
19372 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19373
19374         ftoastr: don't assume snprintf
19375         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19376         Implement a subset of snprintf here, by using sprintf safely.
19377         * modules/ftoastr (Depends-on): Remove snprintf.
19378
19379 2010-11-19  Jim Meyering  <meyering@redhat.com>
19380
19381         test-rename.h: fix compilation failure
19382         * tests/test-rename.h (test_rename): Add omitted "}".
19383
19384 2010-11-17  Jim Meyering  <meyering@redhat.com>
19385
19386         maint.mk: add a URL discussing the no-@acronym policy
19387         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19388
19389 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19390
19391         ftoastr: depend on snprintf, improve comments
19392         * lib/ftoastr.c: Also mention Loitsch's draft.
19393         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19394         needed in the current implementation, but it might simplify
19395         speeding up the code later.
19396         * modules/ftoastr: Depend on snprintf; this improves portability.
19397         Suggested by Bruno Haible in the same email.
19398
19399         ftoastr: port to hosts lacking strtof and strtold
19400         Problem reported by Bruno Haible in
19401         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19402         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19403         environment and strtold (and presumably strtof) are not available.
19404         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19405         (configure.ac): Require gl_C99_STRTOLD.
19406
19407 2010-11-18  Bruno Haible  <bruno@clisp.org>
19408
19409         c-strtold: Avoid link error on AIX 7.
19410         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19411         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19412         (gl_C_STRTOLD): Test whether strtold_l exists.
19413         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19414
19415 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19416
19417         intprops: new macro INT_BITS_STRLEN_BOUND
19418         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19419         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19420         not exposed.  Also, it uses a slightly tighter bound than before;
19421         though this makes no practical difference, we might as well be as
19422         tight as we easily can.
19423
19424         ftoastr: new module, for lossless conversion of floats to short strings
19425         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19426         * modules/ftoastr: New files.
19427
19428 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19429
19430         bootstrap: port to Solaris sed
19431         * build-aux/bootstrap (get_version): Port to Solaris sed.
19432         See Ralf Wildenhues's note in
19433         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19434
19435 2010-11-14  Jim Meyering  <meyering@redhat.com>
19436
19437         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19438         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19439         and move definition closer to sole use.
19440
19441 2010-11-13  Jim Meyering  <meyering@redhat.com>
19442
19443         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19444         Now we require at least autoconf-2.59, which means the work-around
19445         is no longer needed.
19446         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19447         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19448         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19449         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19450         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19451
19452 2010-11-13  Bruno Haible  <bruno@clisp.org>
19453
19454         rename, renameat: Avoid test failures at NFS mounted locations.
19455         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19456         functions.
19457         (test_rename): Use assert_nonexistent.
19458         * tests/test-rename.c: Include <dirent.h>.
19459         * tests/test-renameat.c: Likewise.
19460         Reported by Gary V. Vaughan <gary@gnu.org>.
19461
19462         rename, renameat: Document Linux bug with NFS
19463         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19464         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19465         * doc/posix-functions/renameat.texi: Likewise.
19466         Suggested by Eric Blake.
19467
19468 2010-11-13  Bruno Haible  <bruno@clisp.org>
19469
19470         rename test: Add comments.
19471         * tests/test-rename.h (test_rename): Add structure and comments.
19472
19473 2010-11-13  Eric Blake  <eblake@redhat.com>
19474
19475         maintainer-makefile: cover a few more files
19476         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19477         scripts generated within C files, for libvirt.
19478
19479 2010-11-13  Bruno Haible  <bruno@clisp.org>
19480
19481         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19482         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19483         character, return the number of bytes that belong together, not always
19484         1.
19485         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19486         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19487         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19488         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19489         number of bytes of an invalid character.
19490         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19491         (main): Invoke it.
19492         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19493         results.
19494         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19495         malformed byte sequences.
19496         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19497         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19498         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19499         Reported by Ben Pfaff and Paolo Bonzini.
19500
19501 2010-11-13  Bruno Haible  <bruno@clisp.org>
19502
19503         openat: Work around glibc bug with fchownat() and empty file names.
19504         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19505         (gl_FUNC_FCHOWNAT): Invoke it.
19506         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19507         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19508         Reported by Gary V. Vaughan <gary@gnu.org>.
19509
19510 2010-11-13  Bruno Haible  <bruno@clisp.org>
19511
19512         openat: Ensure autoconf macro ordering.
19513         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19514         gl_USE_SYSTEM_EXTENSIONS.
19515         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19516
19517 2010-11-13  Bruno Haible  <bruno@clisp.org>
19518
19519         Update comments.
19520         * lib/unistr/u8-check.c: Update file name in comments.
19521         * lib/unistr/u8-mblen.c: Likewise.
19522         * lib/unistr/u8-prev.c: Likewise.
19523         * lib/unistr/u8-strmblen.c: Likewise.
19524         * lib/unistr/u8-strmbtouc.c: Likewise.
19525
19526 2010-11-13  Jim Meyering  <meyering@redhat.com>
19527
19528         tests: avoid test failure on Solaris 10 due to lack of PATH export
19529         * tests/test-update-copyright.sh: Don't forget to export PATH.
19530
19531         init.sh: ensure that IFS is defined, just in case...
19532         * tests/init.sh (setup_): Ensure that IFS is defined,
19533         so that saving and restoring it works as expected.  This
19534         appears to be useful at least for an old version of dash
19535         from a long time ago (RH 6).  See here for details:
19536         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19537
19538         maint.mk: tighten "test a == b" check
19539         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19540         test to files that contain something like #!/bin/sh.
19541         Without this, coreutils would get two false positives in
19542         the comments of C source files.
19543
19544 2010-11-12  Eric Blake  <eblake@redhat.com>
19545
19546         bootstrap: fix typo in previous attempt
19547         * build-aux/bootstrap (buildreq): Correct the grouping.
19548         Reported by Paul Eggert.
19549
19550         maintainer-makefile: prohibit test x == x
19551         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19552         Based on a report by Matthias Bolte.
19553
19554         bootstrap: allow FreeBSD gzip
19555         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19556         which has no '.' and goes to stderr.
19557         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19558         Reported by Matthias Bolte.
19559
19560         maintainer-makefile: check for i18n setup
19561         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19562         will likely work.
19563
19564 2010-11-12  Bruno Haible  <bruno@clisp.org>
19565
19566         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19567         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19568         * lib/nanosleep.c (nanosleep): Likewise.
19569
19570 2010-11-11  Bruno Haible  <bruno@clisp.org>
19571
19572         fcntl-h: Fix for use of C++ on glibc systems.
19573         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19574         also on glibc systems in C++ mode.
19575         Reported by Gary V. Vaughan <gary@gnu.org>.
19576
19577 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19578
19579         mknod: avoid false failure with dash
19580         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19581
19582 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19583
19584         unlink: Fix "is it should" typo in diagnostic.
19585         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19586         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19587
19588 2010-11-11  Bruno Haible  <bruno@clisp.org>
19589
19590         Tests for module 'strerror_r-posix'.
19591         * modules/strerror_r-posix-tests: New file.
19592         * tests/test-strerror_r.c: New file.
19593         * tests/test-string-c++.cc: Check the signature of strerror_r.
19594
19595         New module 'strerror_r-posix'.
19596         * lib/string.in.h (strerror_r): New declaration.
19597         * lib/strerror_r.c: New file.
19598         * m4/strerror_r.m4: New file.
19599         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19600         of strerror_r.
19601         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19602         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19603         * modules/strerror_r-posix: New file.
19604         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19605         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19606         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19607         portability problems.
19608
19609 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19610
19611         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19612         line is also considered for output. Quoted function name in shell
19613         command, so temporary files for functions like MyClass::operator()
19614         are removed correctly without errors.
19615
19616 2010-11-09  Bruno Haible  <bruno@clisp.org>
19617
19618         * doc/posix-functions/strerror.texi: List more failing platforms.
19619
19620         * doc/posix-functions/strerror.texi: Add a comment.
19621
19622 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19623
19624         fdopendir: fix bug on MacOS X when low on file descriptors
19625
19626         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19627         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19628         All callers changed.
19629         (fdopendir): Invoke save_cwd at the top level, not after using
19630         multiple dup() calls to use up file descriptors.  Then retry
19631         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19632         less than the maximum number of open file descriptors, because
19633         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19634         on Mac OS X 10.6.4 for tar 1.24
19635         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19636         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19637         and for tar 1.25
19638         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19639
19640 2010-11-07  Bruno Haible  <bruno@clisp.org>
19641
19642         vasnprintf: Support I flag on glibc systems.
19643         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19644         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19645         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19646         snprintf function.
19647         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19648         glibc systems.
19649         * tests/test-vasnprintf-posix3.c: New file.
19650         * modules/vasnprintf-posix-tests (Files): Add it.
19651         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19652
19653 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19654
19655         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19656         * MODULES.html.sh: For compiler warnings, use name
19657         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19658
19659 2010-11-05  Eric Blake  <eblake@redhat.com>
19660
19661         ceil, floor: avoid spurious failure with icc
19662         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19663         [denormals-as-zero] when optimizing without -mieee-fp option.
19664         * tests/test-floorf2.c (floorf_reference): Likewise.
19665         * tests/test-ceilf1.c (dummy): New function.
19666         (main): Use it to outsmart icc's optimization.
19667         * tests/test-floorf1.c (dummy, main): Likewise.
19668
19669         tests: require working signbit
19670         * modules/ceilf-tests (Depends-on): Add signbit.
19671         * modules/ceill-tests (Depends-on): Likewise.
19672         * modules/floorf-tests (Depends-on): Likewise.
19673         * modules/floorl-tests (Depends-on): Likewise.
19674         * modules/round-tests (Depends-on): Likewise.
19675         * modules/roundf-tests (Depends-on): Likewise.
19676         * modules/roundl-tests (Depends-on): Likewise.
19677         * modules/trunc-tests (Depends-on): Likewise.
19678         * modules/truncf-tests (Depends-on): Likewise.
19679         * modules/truncl-tests (Depends-on): Likewise.
19680
19681         strtod: work around icc bug
19682         * lib/strtod.c (minus_zero): Define to working value.
19683         (strtod): Use it to avoid icc bug.
19684
19685         copysign: enhance tests
19686         * modules/copysign-tests (Files): Add minus-zero.h.
19687         * tests/test-copysign.c (main): Also test zeros.
19688
19689 2010-11-04  Eric Blake  <eblake@redhat.com>
19690
19691         ceil, floor, round, trunc: enhance tests of -0
19692         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19693         * tests/test-ceill.c (main): Likewise.
19694         * tests/test-floorf1.c (main): Likewise.
19695         * tests/test-floorl.c (main): Likewise.
19696         * tests/test-round1.c (main): Likewise.
19697         * tests/test-roundf1.c (main): Likewise.
19698         * tests/test-roundl.c (main): Likewise.
19699         * tests/test-trunc1.c (main): Likewise.
19700         * tests/test-truncf1.c (main): Likewise.
19701         * tests/test-truncl.c (main): Likewise.
19702
19703 2010-11-04  Eric Blake  <eblake@redhat.com>
19704
19705         frexp, tests: work around ICC bug with -zero
19706         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19707         works with more compilers.
19708         * tests/minus-zero.h: New file.
19709         * modules/ceilf-tests (Files): Include it.
19710         * modules/ceill-tests (Files): Likewise.
19711         * modules/floorf-tests (Files): Likewise.
19712         * modules/floorl-tests (Files): Likewise.
19713         * modules/frexp-nolibm-tests (Files): Likewise.
19714         * modules/frexp-tests (Files): Likewise.
19715         * modules/frexpl-nolibm-tests (Files): Likewise.
19716         * modules/frexpl-tests (Files): Likewise.
19717         * modules/isnan-tests (Files): Likewise.
19718         * modules/isnand-nolibm-tests (Files): Likewise.
19719         * modules/isnand-tests (Files): Likewise.
19720         * modules/isnanf-nolibm-tests (Files): Likewise.
19721         * modules/isnanf-tests (Files): Likewise.
19722         * modules/isnanl-nolibm-tests (Files): Likewise.
19723         * modules/isnanl-tests (Files): Likewise.
19724         * modules/round-tests (Files): Likewise.
19725         * modules/roundf-tests (Files): Likewise.
19726         * modules/roundl-tests (Files): Likewise.
19727         * modules/ldexpl-tests (Files): Likewise.
19728         * modules/signbit-tests (Files): Likewise.
19729         * modules/snprintf-posix-tests (Files): Likewise.
19730         * modules/sprintf-posix-tests (Files): Likewise.
19731         * modules/strtod-tests (Files): Likewise.
19732         * modules/trunc-tests (Files): Likewise.
19733         * modules/truncf-tests (Files): Likewise.
19734         * modules/truncl-tests (Files): Likewise.
19735         * modules/vsnprintf-posix-tests (Files): Likewise.
19736         * modules/vsprintf-posix-tests (Files): Likewise.
19737         * modules/vasnprintf-posix-tests (Files): Likewise.
19738         * modules/vasprintf-posix-tests (Files): Likewise.
19739         * tests/test-ceilf1.c (main): Use it.
19740         * tests/test-ceill.c (main): Likewise.
19741         * tests/test-floorf1.c (main): Likewise.
19742         * tests/test-floorl.c (main): Likewise.
19743         * tests/test-frexp.c (main): Likewise.
19744         * tests/test-frexpl.c (main): Likewise.
19745         * tests/test-isnan.c (main): Likewise.
19746         * tests/test-isnand.h (main): Likewise.
19747         * tests/test-isnanf.h (main): Likewise.
19748         * tests/test-isnanl.h (main): Likewise.
19749         * tests/test-ldexpl.c (main): Likewise.
19750         * tests/test-round.c (main): Likewise.
19751         * tests/test-roundf.c (main): Likewise.
19752         * tests/test-roundl.c (main): Likewise.
19753         * tests/test-signbit.c (test_signbitf, test_signbitd)
19754         (test_signbitl): Likewise.
19755         * tests/test-snprintf-posix.h (test_function): Likewise.
19756         * tests/test-sprintf-posix.h (test_function): Likewise.
19757         * tests/test-strtod.c (main): Likewise.
19758         * tests/test-trunc1.c (main): Likewise.
19759         * tests/test-truncf1.c (main): Likewise.
19760         * tests/test-truncl.c (main): Likewise.
19761
19762         isnanl: work around icc bug
19763         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19764
19765 2010-11-03  Eric Blake  <eblake@redhat.com>
19766
19767         tests: fix compiler warnings
19768         * tests/test-getopt.h (test_getopt): Fix condition.
19769         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19770         * tests/test-pipe2.c (main): Likewise.
19771         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19772
19773         utimens: fix broken m4 test
19774         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19775
19776 2010-10-28  Bruno Haible  <bruno@clisp.org>
19777
19778         posix_spawn*, getdtablesize: Relax license.
19779         * modules/posix_spawn (License): Change to LGPLv2+.
19780         * modules/posix_spawnp (License): Likewise.
19781         * modules/posix_spawn-internal (License): Likewise.
19782         * modules/posix_spawnattr_init (License): Likewise.
19783         * modules/posix_spawnattr_getflags (License): Likewise.
19784         * modules/posix_spawnattr_setflags (License): Likewise.
19785         * modules/posix_spawnattr_getpgroup (License): Likewise.
19786         * modules/posix_spawnattr_setpgroup (License): Likewise.
19787         * modules/posix_spawnattr_getschedparam (License): Likewise.
19788         * modules/posix_spawnattr_setschedparam (License): Likewise.
19789         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19790         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19791         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19792         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19793         * modules/posix_spawnattr_getsigmask (License): Likewise.
19794         * modules/posix_spawnattr_setsigmask (License): Likewise.
19795         * modules/posix_spawnattr_destroy (License): Likewise.
19796         * modules/posix_spawn_file_actions_init (License): Likewise.
19797         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19798         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19799         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19800         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19801         * modules/getdtablesize (License): Likewise.
19802         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19803
19804 2010-10-26  Bruno Haible  <bruno@clisp.org>
19805
19806         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19807         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19808         Cygwin and mingw.
19809         Suggested by Eric Blake.
19810
19811 2010-10-26  Bruno Haible  <bruno@clisp.org>
19812
19813         stdio: Work around compilation error due to renameat() on Solaris 10.
19814         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19815         * lib/renameat.c: Don't include <unistd.h> here.
19816         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19817         Reported by Paul Eggert and Eric Blake.
19818
19819 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19820
19821         renameat: port to Solaris 10, which declares renameat in unistd.h
19822
19823         * lib/renameat.c: Include unistd.h before stdio.h, because
19824         Solaris 10 declares renameat in unistd.h.  Problem encountered
19825         when building GNU tar 1.24 on Solaris 10.
19826
19827 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19828
19829         fdopendir: fix C89 compilation
19830         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19831         compilers.
19832
19833 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19834
19835         inttostr: simplify by removing unnecessary redundancy
19836         * lib/anytostr.c: Don't include verify.h.
19837         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19838         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19839         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19840         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19841         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19842         Likewise.
19843         * modules/inttostr (Depends-on): Remove 'verify'.
19844
19845 2010-10-23  Bruno Haible  <bruno@clisp.org>
19846
19847         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19848         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19849         Reported by Eric Blake.
19850
19851 2010-10-23  Bruno Haible  <bruno@clisp.org>
19852
19853         Tests: Fix LOCALE_JA on MirBSD 10.
19854         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19855         to an UTF-8 locale.
19856         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19857         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19858         Reported by Eric Blake.
19859
19860 2010-10-21  Bruno Haible  <bruno@clisp.org>
19861
19862         nl_langinfo test: Avoid test failure on NetBSD 5.
19863         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19864         Reported by Eric Blake.
19865
19866 2010-10-21  Eric Blake  <eblake@redhat.com>
19867
19868         c-stack: work around libsigsegv 2.8 bug
19869         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19870         overflow on at least PowerPC64.
19871
19872 2010-10-17  Bruno Haible  <bruno@clisp.org>
19873
19874         userspec: Drop redundant file.
19875         * modules/userspec (Files): Remove lib/inttostr.h.
19876
19877 2010-10-17  Bruno Haible  <bruno@clisp.org>
19878
19879         nl_langinfo tests: Silence some warnings.
19880         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19881         Reported by Jim Meyering.
19882
19883 2010-10-17  Bruno Haible  <bruno@clisp.org>
19884
19885         Make use of GCC's attribute __alloc_size__.
19886         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19887         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19888         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19889         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19890         __alloc_size__.
19891         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19892         Suggested by Jim Meyering.
19893
19894 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19895
19896         bootstrap: anchor .gitignore entries.
19897         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19898         with...
19899         (insert_vc_ignore): ... this new function, which prepends `/' to
19900         all .gitignore entries before passing them to
19901         insert_sorted_if_absent.
19902
19903 2010-10-16  Bruno Haible  <bruno@clisp.org>
19904
19905         nextafter: Fix configure check.
19906         * modules/nextafter (configure.ac): Correct expected prototype.
19907
19908 2010-10-16  Bruno Haible  <bruno@clisp.org>
19909
19910         termios: Update documentation.
19911         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19912
19913 2010-10-16  Bruno Haible  <bruno@clisp.org>
19914
19915         tests: Make them compile with TinyCC.
19916         * tests/test-strstr.c (main): Remove parentheses around array
19917         initializer.
19918
19919 2010-10-15  Eric Blake  <eblake@redhat.com>
19920
19921         ignore-value: make header idempotent
19922         * lib/ignore-value.h: Add double-inclusion guards.
19923         Reported by Stefan Berger.
19924
19925 2010-10-15  Jim Meyering  <meyering@redhat.com>
19926
19927         GNUmakefile: handle "stable" target, not "major"
19928         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19929         lists in maint.mk and announce-gen.  Without this, "make stable"
19930         would fail to ensure that $(VERSION) is up to date.
19931
19932 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19933
19934         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19935         & co.
19936
19937 2010-10-14  Bruno Haible  <bruno@clisp.org>
19938
19939         vasnprintf: Don't set errno to 0.
19940         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19941         block that sets it to 0.
19942         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19943
19944 2010-10-14  Bruno Haible  <bruno@clisp.org>
19945
19946         socketlib: Fix.
19947         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19948         gl_PREREQ_SYS_H_WINSOCK2.
19949         Reported by Ian Beckwith <ianb@erislabs.net>.
19950
19951 2010-10-13  Jim Meyering  <meyering@redhat.com>
19952
19953         test-select-stdin.c: avoid warn_unused_result warnings
19954         * tests/test-select-stdin.c: Include "macros.h".
19955         ASSERT that read and fflush succeed.
19956
19957 2010-10-13  Jim Meyering  <meyering@redhat.com>
19958
19959         git-version-gen: do require git-VC'd files in cwd
19960         * build-aux/git-version-gen: Reject a git version string
19961         if there are no commits associated with the current directory.
19962         This avoids an unlikely false-positive (unrelated dir whose parent
19963         repository also contains a tag matching v*), as pointed out
19964         by Giuseppe Scrivano in
19965         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19966
19967 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19968
19969         argv-iter: omit nonconforming declaration
19970         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19971         enum arg_iter_err declaration, which doesn't conform to C99.
19972         Solaris 10 cc warns about this.
19973
19974 2010-10-13  Eric Blake  <eblake@redhat.com>
19975
19976         termios: fix compilation on mingw
19977         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19978         (gl_TERMIOS_H): Adjust it on mingw.
19979         * modules/termios (Makefile.am): Substitute new key.
19980         * lib/termios.in.h (includes): Make include_next conditional.
19981         * doc/posix-headers/termios.texi (termios.h): Update
19982         documentation.
19983         Reported by Daniel P. Berrange.
19984
19985 2010-10-13  Jim Meyering  <meyering@redhat.com>
19986
19987         git-version-gen: don't require that .git/ be in the current dir
19988         * build-aux/git-version-gen: Adjust this script so that it works
19989         when run from any working directory beneath the top-level .git/-
19990         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19991         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19992
19993         test-select: avoid warn_unused_result warnings
19994         * tests/test-select.c: Include "macros.h".
19995         ASSERT that each call to read, write, and pipe succeeds.
19996         While not technically required, also check each "close".
19997         * modules/select-tests (Files): Add tests/macros.h.
19998
19999         test-symlinkat: remove declaration of unused local
20000         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20001
20002         test-inttostr: avoid shadowing warnings
20003         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20004         and use malloc rather than the stack for the same reason as
20005         mentioned in the comment justifying the other allocation.
20006
20007 2010-10-11  Bruno Haible  <bruno@clisp.org>
20008
20009         stdlib: Allow multiple gnulib generated replacements to coexist.
20010         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20011         Reported by Sam Steingold <sds@gnu.org>.
20012
20013 2010-10-11  Jim Meyering  <meyering@redhat.com>
20014
20015         fix a documentation typo
20016         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20017
20018 2010-10-11  Eric Blake  <eblake@redhat.com>
20019
20020         futimens: work around Solaris 11 bug
20021         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20022         * tests/test-futimens.h (test_futimens): Enhance, rather than
20023         weaken test.
20024         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20025
20026 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20027
20028         Indentation.
20029         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20030         higher-level operators more to the left.
20031
20032 2010-10-11  Jim Meyering  <meyering@redhat.com>
20033
20034         test-futimens: avoid unwarranted test failure on Solaris 5.11
20035         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20036         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20037         because it tries to dereference the NULL name argument.
20038
20039 2010-10-11  Bruno Haible  <bruno@clisp.org>
20040
20041         Indentation.
20042         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20043         indentation.
20044
20045 2010-10-11  Jim Meyering  <meyering@redhat.com>
20046
20047         spawn.in.h: make indentation consistent with parentheses
20048         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20049         Make indentation consistent with parentheses.
20050
20051 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20052
20053         Fix mismatched parens in previous commit
20054         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20055         parens.
20056
20057 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20058
20059         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20060
20061         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20062         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20063         * lib/malloca.c: Include "verify.h".
20064         (verify1): Remove, replacing with a verify call.
20065         * lib/relocwrapper.c (verify1): Likewise.
20066         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20067         Likewise.
20068         * modules/malloca (Depends-on): Add 'verify'.
20069         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20070         * modules/vasnprintf (Depends-on): Add 'verify'.
20071         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20072         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20073         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20074         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20075         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20076         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20077         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20078
20079         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20080
20081         Formerly the style was sometimes 2*X - 1, because the C standard
20082         was wrongly thought to disallow ?: in integral constant expressions.
20083         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20084         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20085         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20086         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20087         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20088         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20089         verify that time_t cannot be floating.
20090
20091 2010-10-08  Eric Blake  <eblake@redhat.com>
20092
20093         time: enforce recent POSIX ruling that time_t is integral
20094         * lib/time.in.h (__time_t_must_be_integral): Detect any
20095         problematic systems, allowing the rest of gnulib to assume POSIX.
20096
20097 2010-10-08  Jim Meyering  <meyering@redhat.com>
20098
20099         fdopendir: fix a bug on systems lacking openat and /proc support
20100         OpenBSD 4.7 is one such system.  The most noticeable effect was
20101         failure of any application making nontrivial use of fts: rm, du,
20102         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20103           ./rm: traversal failed: `a': Bad file descriptor
20104         Debugging that, you see that even though FD 6 was closed just
20105         prior to the opendir call in fd_clone_opendir, its resulting
20106         dir->dd_fd was 8, rather than the expected value of 6:
20107
20108         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20109         93                close (fd);
20110         (gdb) n
20111         94                dir = fd_clone_opendir (dupfd);
20112         (gdb) n
20113         95                saved_errno = errno;
20114         (gdb) p dir->dd_fd
20115         $11 = 8
20116
20117         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20118         The problem is that on OpenBSD, fd_clone_opendir has to resort
20119         to using the old-style save/restore CWD mechanism, due to its
20120         lack of openat/proc support, and *that* would steal the FD (6)
20121         that opendir was supposed to use.
20122
20123         The fix is to squirrel away the desired FD so that save_cwd uses a
20124         different one, and then free the dest FD right before calling opendir.
20125         That guarantees opendir will use the required file descriptor.
20126
20127         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20128
20129 2010-10-08  Bruno Haible  <bruno@clisp.org>
20130
20131         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20132         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20133
20134 2010-10-08  Bruno Haible  <bruno@clisp.org>
20135
20136         nanosleep: Make replacement POSIX compliant.
20137         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20138         is out of range.
20139         Reported by Jim Meyering.
20140
20141 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20142
20143         bootstrap: add hook for altering gnulib.mk, for Bison
20144         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20145         the Bison bootstrapping process can rewrite file names and variables
20146         in this file before later parts of 'bootstrap' use the file.
20147         Bison wants to include lib/gnulib.mk from the top-level makefile,
20148         so it needs the file names in this file to be relative to the top
20149         level, not relative to lib; plus it needs variable names to be
20150         rewritten.
20151         (slurp): Use the new function.
20152
20153         bootstrap: reformat for readability
20154         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20155
20156 2010-10-08  Eric Blake  <eblake@redhat.com>
20157
20158         docs: update cygwin progress
20159         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20160         1.7.7.
20161         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20162         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20163         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20164         * doc/posix-functions/carg.texi (carg): Likewise.
20165         * doc/posix-functions/cargf.texi (cargf): Likewise.
20166         * doc/posix-functions/casin.texi (casin): Likewise.
20167         * doc/posix-functions/casinf.texi (casinf): Likewise.
20168         * doc/posix-functions/casinh.texi (casinh): Likewise.
20169         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20170         * doc/posix-functions/catan.texi (catan): Likewise.
20171         * doc/posix-functions/catanf.texi (catanf): Likewise.
20172         * doc/posix-functions/catanh.texi (catanh): Likewise.
20173         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20174         * doc/posix-functions/ccos.texi (ccos): Likewise.
20175         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20176         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20177         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20178         * doc/posix-functions/cexp.texi (cexp): Likewise.
20179         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20180         * doc/posix-functions/cimag.texi (cimag): Likewise.
20181         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20182         * doc/posix-functions/clog.texi (clog): Likewise.
20183         * doc/posix-functions/clogf.texi (clogf): Likewise.
20184         * doc/posix-functions/conj.texi (conj): Likewise.
20185         * doc/posix-functions/conjf.texi (conjf): Likewise.
20186         * doc/posix-functions/cpow.texi (cpow): Likewise.
20187         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20188         * doc/posix-functions/cproj.texi (cproj): Likewise.
20189         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20190         * doc/posix-functions/creal.texi (creal): Likewise.
20191         * doc/posix-functions/crealf.texi (crealf): Likewise.
20192         * doc/posix-functions/csin.texi (csin): Likewise.
20193         * doc/posix-functions/csinf.texi (csinf): Likewise.
20194         * doc/posix-functions/csinh.texi (csinh): Likewise.
20195         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20196         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20197         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20198         * doc/posix-functions/ctan.texi (ctan): Likewise.
20199         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20200         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20201         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20202         * doc/posix-headers/complex.texi (complex.h): Likewise.
20203
20204 2010-10-07  Jim Meyering  <meyering@redhat.com>
20205
20206         parse-datetime: avoid compilation failure on OpenBSD 4.7
20207         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20208         This works around a compilation failure on OpenBSD 4.7:
20209         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20210
20211 2010-10-07  Eric Blake  <eblake@redhat.com>
20212
20213         docs: update cygwin progress
20214         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20215         1.7.6.
20216         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20217         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20218         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20219         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20220         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20221         Likewise.
20222         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20223         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20224         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20225         Likewise.
20226         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20227         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20228         Likewise.
20229         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20230         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20231         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20232         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20233         Likewise.
20234         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20235         Likewise.
20236         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20237
20238         docs: update parse-datetime history
20239         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20240         documentation of this function's history and alternatives.
20241
20242         cygwin: use more robust version check
20243         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20244         exclude an eventual cygwin 1.9.1.
20245         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20246         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20247         (gl_FUNC_STRCASESTR): Likewise.
20248         Reported by Bruno Haible.
20249
20250 2010-10-06  Bruno Haible  <bruno@clisp.org>
20251
20252         string, sys_select: Avoid #including large headers unless necessary.
20253         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20254         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20255         OSF/1, BeOS, Haiku.
20256         Reported by Jim Meyering.
20257
20258 2010-10-05  Eric Blake  <eblake@redhat.com>
20259
20260         memmem, strstr, strcasestr: fix bug with long periodic needle
20261         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20262         periodic needle having false positive.
20263         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20264         and cygwin 1.7.7.
20265         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20267         (gl_FUNC_STRCASESTR): Likewise.
20268         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20269         * tests/test-memmem.c (main): Expose the bug.
20270         * tests/test-strcasestr.c (main): Likewise.
20271         * tests/test-strstr.c (main): Likewise.
20272         * tests/test-c-strcasestr.c (main): Likewise.
20273         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20274         * doc/posix-functions/strstr.texi (strstr): Likewise.
20275         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20276         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20277
20278 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20279
20280         parse-datetime: do some more renaming
20281         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20282         parse_datetime, not get_date.  Mention the renaming.
20283         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20284         in comments.
20285         * m4/bison.m4: Likewise.
20286
20287 2010-10-05  Eric Blake  <eblake@redhat.com>
20288
20289         parse-datetime: better name than get_date
20290         * NEWS: Reword the deprecation notice.
20291         * modules/get_date: Rename to modules/parse-datetime.
20292         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20293         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20294         * lib/get_date.y: Rename to lib/parse-datetime.y.
20295         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20296         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20297         * doc/getdate.texi: Provide fallback wrapper.
20298         * lib/getdate.h: Move guts, and wrap...
20299         * lib/parse-datetime.h: ...new file.
20300         * lib/parse-datetime.y (get_date): Rename...
20301         (parse_datetime): ...to this.
20302         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20303         (gl_PARSE_DATETIME): ...to this.
20304         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20305         documentation.
20306         * modules/getdate (Files): Provide fallback docs and header.
20307         (Notice, Depends-on): Update references.
20308         * tests/test-parse-datetime.c: Likewise.
20309         * DEPENDENCIES: Likewise.
20310         * MODULES.html.sh (Date and time <time.h>): Likewise.
20311         * doc/parse-datetime.texi (Date input formats)
20312         (Authors of parse_datetime): Likewise.
20313         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20314         (Include): Likewise.
20315         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20316         * gnulib-tool: Likewise.
20317         * m4/bison.m4 (gl_BISON): Likewise.
20318         Suggested by Bruno Haible.
20319
20320 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20321
20322         more ports to Solaris tr, which needs [] around ranges
20323         * gnulib-tool: Solaris tr needs [] around ranges.
20324         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20325         * tests/test-pipe-filter-gi1.c (main): Likewise.
20326         * tests/test-pipe-filter-ii1.c (main): Likewise.
20327
20328 2010-10-05  Eric Blake  <eblake@redhat.com>
20329
20330         bootstrap: fix Solaris regression
20331         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20332         around ranges.
20333         Reported by Pádraig Brady.
20334
20335         bootstrap: work with pkg-config
20336         * build-aux/bootstrap (check_versions): Also transliterate - in
20337         prerequisite name.
20338         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20339         prerequisites that were already found, to avoid confusion.
20340         Reported by Justin Clift.
20341
20342         faccessat: remove unused wrappers
20343         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20344         presence of these wrappers dragged in -lgen on Solaris.
20345         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20346
20347 2010-10-05  Jim Meyering  <meyering@redhat.com>
20348
20349         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20350         * Makefile (sc_pragma_columns): New syntax-check rule.
20351
20352 2010-10-04  Bruno Haible  <bruno@clisp.org>
20353
20354         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20355         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20356         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20357         Reported by Bruce Korb and Eric Blake.
20358
20359 2010-10-04  Bruno Haible  <bruno@clisp.org>
20360
20361         threadlib: Make option --with-libpth-prefix work.
20362         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20363         use $LIBPTH, not just -lpth.
20364
20365 2010-10-04  Bruno Haible  <bruno@clisp.org>
20366
20367         Avoid line length limitation from HP NonStop system header files.
20368         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20369         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20370         * lib/ctype.in.h: Likewise.
20371         * lib/dirent.in.h: Likewise.
20372         * lib/errno.in.h: Likewise.
20373         * lib/fcntl.in.h: Likewise.
20374         * lib/float.in.h: Likewise.
20375         * lib/getopt.in.h: Likewise.
20376         * lib/iconv.in.h: Likewise.
20377         * lib/inttypes.in.h: Likewise.
20378         * lib/langinfo.in.h: Likewise.
20379         * lib/locale.in.h: Likewise.
20380         * lib/math.in.h: Likewise.
20381         * lib/netdb.in.h: Likewise.
20382         * lib/netinet_in.in.h: Likewise.
20383         * lib/poll.in.h: Likewise.
20384         * lib/pthread.in.h: Likewise.
20385         * lib/pty.in.h: Likewise.
20386         * lib/sched.in.h: Likewise.
20387         * lib/se-selinux.in.h: Likewise.
20388         * lib/search.in.h: Likewise.
20389         * lib/signal.in.h: Likewise.
20390         * lib/spawn.in.h: Likewise.
20391         * lib/stdarg.in.h: Likewise.
20392         * lib/stddef.in.h: Likewise.
20393         * lib/stdint.in.h: Likewise.
20394         * lib/stdio.in.h: Likewise.
20395         * lib/stdlib.in.h: Likewise.
20396         * lib/string.in.h: Likewise.
20397         * lib/strings.in.h: Likewise.
20398         * lib/sys_file.in.h: Likewise.
20399         * lib/sys_ioctl.in.h: Likewise.
20400         * lib/sys_select.in.h: Likewise.
20401         * lib/sys_socket.in.h: Likewise.
20402         * lib/sys_stat.in.h: Likewise.
20403         * lib/sys_time.in.h: Likewise.
20404         * lib/sys_times.in.h: Likewise.
20405         * lib/sys_utsname.in.h: Likewise.
20406         * lib/sys_wait.in.h: Likewise.
20407         * lib/sysexits.in.h: Likewise.
20408         * lib/termios.in.h: Likewise.
20409         * lib/time.in.h: Likewise.
20410         * lib/unistd.in.h: Likewise.
20411         * lib/wchar.in.h: Likewise.
20412         * lib/wctype.in.h: Likewise.
20413         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20414         * modules/ctype (Makefile.am): Likewise.
20415         * modules/dirent (Makefile.am): Likewise.
20416         * modules/errno (Makefile.am): Likewise.
20417         * modules/fcntl-h (Makefile.am): Likewise.
20418         * modules/float (Makefile.am): Likewise.
20419         * modules/getopt-posix (Makefile.am): Likewise.
20420         * modules/iconv-h (Makefile.am): Likewise.
20421         * modules/inttypes (Makefile.am): Likewise.
20422         * modules/langinfo (Makefile.am): Likewise.
20423         * modules/locale (Makefile.am): Likewise.
20424         * modules/math (Makefile.am): Likewise.
20425         * modules/netdb (Makefile.am): Likewise.
20426         * modules/netinet_in (Makefile.am): Likewise.
20427         * modules/poll-h (Makefile.am): Likewise.
20428         * modules/pthread (Makefile.am): Likewise.
20429         * modules/pty (Makefile.am): Likewise.
20430         * modules/sched (Makefile.am): Likewise.
20431         * modules/search (Makefile.am): Likewise.
20432         * modules/selinux-h (Makefile.am): Likewise.
20433         * modules/signal (Makefile.am): Likewise.
20434         * modules/spawn (Makefile.am): Likewise.
20435         * modules/stdarg (Makefile.am): Likewise.
20436         * modules/stddef (Makefile.am): Likewise.
20437         * modules/stdint (Makefile.am): Likewise.
20438         * modules/stdio (Makefile.am): Likewise.
20439         * modules/stdlib (Makefile.am): Likewise.
20440         * modules/string (Makefile.am): Likewise.
20441         * modules/strings (Makefile.am): Likewise.
20442         * modules/sys_file (Makefile.am): Likewise.
20443         * modules/sys_ioctl (Makefile.am): Likewise.
20444         * modules/sys_select (Makefile.am): Likewise.
20445         * modules/sys_socket (Makefile.am): Likewise.
20446         * modules/sys_stat (Makefile.am): Likewise.
20447         * modules/sys_time (Makefile.am): Likewise.
20448         * modules/sys_times (Makefile.am): Likewise.
20449         * modules/sys_utsname (Makefile.am): Likewise.
20450         * modules/sys_wait (Makefile.am): Likewise.
20451         * modules/sysexits (Makefile.am): Likewise.
20452         * modules/termios (Makefile.am): Likewise.
20453         * modules/time (Makefile.am): Likewise.
20454         * modules/unistd (Makefile.am): Likewise.
20455         * modules/wchar (Makefile.am): Likewise.
20456         * modules/wctype (Makefile.am): Likewise.
20457
20458 2010-10-04  Bruno Haible  <bruno@clisp.org>
20459
20460         read-file tests: Avoid a test failure on NonStop Kernel.
20461         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20462         a regular file.
20463         Reported by Joachim Schmitz <schmitz@hp.com>.
20464
20465 2010-10-03  Bruno Haible  <bruno@clisp.org>
20466
20467         gnulib-tool: Fixes for --create-testdir with --libtool.
20468         * gnulib-tool (func_get_automake_snippet): Don't augment
20469         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20470         an executable.
20471         (func_create_testdir): Handle module 'alloca' like func_import.
20472         Reported by Bruce Korb <bruce.korb@gmail.com>.
20473
20474 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20475
20476         Avoid some lines longer than 80 characters.
20477         * lib/stdint.in.h: Break long comment lines.
20478         * lib/math.in.h: Likewise.
20479         (_GL_NUM_UINT_WORDS): New macro, for readability.
20480         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20481         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20482         * lib/stdlib.in.h: Likewise.
20483         * lib/spawn.in.h: Likewise.
20484         * lib/sys_socket.in.h: Update an URL.
20485         * lib/sys_stat.in.h: Break long line.
20486
20487 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20488
20489         Improve pmccabe2html.
20490         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20491         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20492         when the sources change. Remove the line in the HTML about "Used
20493         ranges" (which implied that there might be other unused ranges),
20494         rename "Resume" to "Summary" (easier to understand for more users).
20495         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20496         styles, and some unnecessary blank lines.
20497
20498 2010-10-03  Bruno Haible  <bruno@clisp.org>
20499             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20500
20501         acl: Add support for ACLs on NonStop Kernel.
20502         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20503         Check whether the function aclsort() exists.
20504         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20505         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20506         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20507         (acl_nontrivial [HAVE_ACLSORT]: New function.
20508         (file_has_acl): Implement for NonStop Kernel.
20509         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20510         (qset_acl): Implement for NonStop Kernel.
20511         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20512         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20513         (main): Implement for NonStop Kernel.
20514         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20515         Kernel. Handle this flavor.
20516         * tests/test-set-mode-acl.sh: Likewise.
20517         * tests/test-copy-acl.sh: Likewise.
20518         * tests/test-copy-file.sh: Likewise.
20519
20520 2010-10-03  Bruno Haible  <bruno@clisp.org>
20521
20522         Info about ACLs on NonStop Kernel.
20523         * doc/acl-resources.txt: Add info about NonStop Kernel.
20524         References by Joachim Schmitz <schmitz@hp.com>.
20525
20526 2010-10-02  Bruno Haible  <bruno@clisp.org>
20527
20528         Define missing EDQUOT on NonStop Kernel.
20529         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20530         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20531         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20532         missing.
20533         * doc/posix-headers/errno.texi: Mention the NSK bug.
20534         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20535         Reported by Joachim Schmitz <schmitz@hp.com>.
20536
20537 2010-10-02  Bruno Haible  <bruno@clisp.org>
20538
20539         Update doc for POSIX:2008.
20540         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20541         Update URL of POSIX specification.
20542
20543 2010-10-02  Bruno Haible  <bruno@clisp.org>
20544
20545         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20546         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20547         from gnulib, not from Automake.
20548
20549 2010-10-02  Bruno Haible  <bruno@clisp.org>
20550
20551         New module 'system-posix'.
20552         * modules/system-posix: New file.
20553         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20554         module is present.
20555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20556         GNULIB_SYSTEM_POSIX.
20557         * modules/stdlib (Depends-on): Remove sys_wait.
20558         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20559         * doc/posix-functions/system.texi: Mention the new module.
20560         * doc/posix-headers/stdlib.texi: Likewise.
20561         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20562         define test_sys_wait_macros to a no-op.
20563         Reported by Sam Steingold <sds@gnu.org>.
20564
20565 2010-09-30  Bruno Haible  <bruno@clisp.org>
20566
20567         More renaming from 'getdate' to 'get_date'.
20568         * doc/get_date.texi: Renamed from doc/getdate.texi.
20569         * modules/get_date (Files): Update.
20570         * MODULES.html.sh (Date and time <time.h>): Update.
20571         * DEPENDENCIES: Update.
20572         * gnulib-tool: Update comment.
20573         * m4/bison.m4 (gl_BISON): Likewise.
20574         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20575
20576 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20577
20578         bootstrap: support ACLOCAL_FLAGS during aclocal
20579         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20580         can add additional -I dir for third-party .m4 files.
20581
20582 2010-09-30  Eric Blake  <eblake@redhat.com>
20583
20584         bootstrap: use glibtoolize on MacOS
20585         * build-aux/bootstrap (check_versions): Convert libtool into
20586         libtoolize.
20587         (tool search): Move libtool check earlier, and look for
20588         glibtoolize for MacOS.
20589         (gnulib_tool_options): Auto-add --libtool when appropriate.
20590         Reported by Justin Clift.
20591
20592         poll: fix typo that broke test on MacOS
20593         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20594         Reported by Justin Clift.
20595
20596         getdate: rename to get_date
20597         Note: getdate.h is not renamed, to minimize client impact.
20598         * modules/getdate: Mark obsolete.  Move old contents...
20599         * modules/get_date: ...to new module name.
20600         * modules/getdate-tests: Move...
20601         * modules/get_date-tests: ...here.
20602         * m4/getdate.m4: Move...
20603         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20604         * lib/getdate.y: Move...
20605         * lib/get_date.y: ...here.
20606         * tests/test-getdate.c: Move...
20607         * tests/test-get_date.c: ...here.
20608         * doc/posix-functions/getdate.texi (getdate): Update name.
20609         * NEWS: Mention the change.
20610
20611 2010-09-29  Bruno Haible  <bruno@clisp.org>
20612
20613         Separate the module 'waitpid' from the module 'sys_wait'.
20614         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20615         present.
20616         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20617         gl_MODULE_INDICATOR_FOR_TESTS.
20618         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20619         * modules/sys_wait (Depends-on): Remove waitpid.
20620         (Makefile.am): Substitute GNULIB_WAITPID.
20621         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20622         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20623         signature only if the 'waitpid' module is present.
20624         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20625         * NEWS: Mention the change.
20626         * modules/grantpt (Depends-on): Add waitpid.
20627         * modules/wait-process (Depends-on): Likewise.
20628
20629 2010-09-29  Bruno Haible  <bruno@clisp.org>
20630
20631         More tests for module 'sys_wait'.
20632         * modules/sys_wait-c++-tests: New file.
20633         * tests/test-sys_wait-c++.cc: New file.
20634         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20635         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20636
20637 2010-09-29  Bruno Haible  <bruno@clisp.org>
20638
20639         New module 'waitpid'.
20640         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20641         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20642         Don't include <process.h>.
20643         (waitpid): Declare only, using modern idiom.
20644         * m4/waitpid.m4: New file.
20645         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20646         * modules/waitpid: New file.
20647         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20648         (Makefile.am): Update.
20649         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20650
20651 2010-09-28  Bruno Haible  <bruno@clisp.org>
20652
20653         poll: Assume ANSI C.
20654         * lib/poll.c (poll): Use an ANSI C declaration.
20655
20656 2010-09-28  Bruno Haible  <bruno@clisp.org>
20657
20658         poll-h: Create poll.h on all platforms.
20659         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20660         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20661         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20662         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20663         (gl_REPLACE_POLL_H): Don't set POLL_H.
20664         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20665         * modules/poll-h (Depends-on): Add include_next.
20666         (Makefile.am): Create poll.h unconditionally. Substitute also
20667         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20668
20669 2010-09-28  Bruno Haible  <bruno@clisp.org>
20670
20671         Tests for module 'poll-h'.
20672         * modules/poll-h-c++-tests: New file.
20673         * tests/test-poll-h-c++.cc: New file.
20674
20675         Tests for module 'poll-h'.
20676         * modules/poll-h-tests: New file.
20677         * tests/test-poll-h.c: New file.
20678
20679 2010-09-28  Bruno Haible  <bruno@clisp.org>
20680
20681         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20682         * modules/poll-h (Depends-on): Add 'extensions'.
20683
20684 2010-09-28  Bruno Haible  <bruno@clisp.org>
20685
20686         New module 'poll-h'.
20687         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20688         (poll): Use modern idiom.
20689         * modules/poll-h: New file.
20690         * modules/poll (Files): Remove lib/poll.in.h.
20691         (Depends-on): Add poll-h.
20692         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20693         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20694         * m4/poll_h.m4: New file.
20695         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20696         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20697         and invoke gl_REPLACE_POLL_H.
20698         * lib/poll.c: Use common idiom.
20699         * tests/test-poll.c: Likewise.
20700         * doc/posix-headers/poll.texi: Mention the poll-h module.
20701         Suggested by Eric Blake.
20702
20703 2010-09-26  Bruno Haible  <bruno@clisp.org>
20704
20705         sys_wait: Implement WSTOPSIG.
20706         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20707         Reported by Simon Josefsson.
20708
20709 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20710
20711         stdlib, sys_wait: Avoid compilation error on mingw.
20712         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20713
20714 2010-09-26  Bruno Haible  <bruno@clisp.org>
20715
20716         stdlib tests: Avoid code duplication.
20717         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20718         * modules/sys_wait-tests (Files): Likewise.
20719         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20720         * tests/test-stdlib.c: Include test-sys_wait.h.
20721         (main): Invoke test_sys_wait_macros.
20722         * tests/test-sys_wait.c: Include test-sys_wait.h.
20723         (main): Invoke test_sys_wait_macros.
20724
20725 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20726
20727         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20728         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20729         sure Windows sockets are working before calling getaddrinfo.
20730         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20731         * doc/gnulib.texi (Windows sockets): Fix typo.
20732
20733 2010-09-25  Bruno Haible  <bruno@clisp.org>
20734
20735         Tests for module 'regex-quote'.
20736         * modules/regex-quote-tests: New file.
20737         * tests/test-regex-quote.c: New file.
20738
20739         New module 'regex-quote'.
20740         * lib/regex-quote.h: New file.
20741         * lib/regex-quote.c: New file.
20742         * modules/regex-quote: New file.
20743         Suggested by Reuben Thomas <rrt@sc3d.org>.
20744
20745 2010-09-24  Bruno Haible  <bruno@clisp.org>
20746
20747         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20748         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20749
20750 2010-09-23  Bruno Haible  <bruno@clisp.org>
20751
20752         setenv: Relax license.
20753         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20754         Blake.
20755         Requested by Eric Blake.
20756
20757 2010-09-22  Bruno Haible  <bruno@clisp.org>
20758
20759         termios: Relax license.
20760         * modules/termios (License): Change to LGPLv2+.
20761         Requested by Eric Blake.
20762
20763 2010-09-22  Bruno Haible  <bruno@clisp.org>
20764
20765         threadlib: Allow the package to change the default to 'no'.
20766         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20767         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20768         Reported by Paul Eggert.
20769
20770 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20771             Bruno Haible  <bruno@clisp.org>
20772
20773         Fix endless loop in mbmemcasecoll.
20774         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20775         byte.
20776         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20777
20778 2010-09-22  Bruno Haible  <bruno@clisp.org>
20779
20780         Tests for module 'memcoll'.
20781         * modules/memcoll-tests: New file.
20782         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20783
20784         memcoll, xmemcoll: Clarify size vs. length.
20785         * modules/memcoll.c (memcoll0): Clarify specification.
20786         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20787         passed to collate_error.
20788
20789 2010-09-22  Bruno Haible  <bruno@clisp.org>
20790
20791         Tests for module 'memcasecmp'.
20792         * modules/memcasecmp-tests: New file.
20793         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20794
20795 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20796
20797         * lib/pthread.in.h: Add split double-inclusion guard, and include
20798         system <pthread.h> if there is one.  Use @@-style as in other
20799         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20800         pthread.h doesn't.
20801         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20802         (pthread_mutexattr_settype, pthread_mutex_trylock):
20803         New static inline functions, if there's no system <pthread.h>.
20804         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20805         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20806         Approximate with mutexes if the system lacks spinlocks, as in
20807         MacOS.
20808         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20809         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20810         @@-style.  Check for spinlocks separately.
20811         (gl_PTHREAD_DEFAULTS): New macro.
20812         * modules/pthread: Redo to use a more typical style for in.h files.
20813
20814 2010-09-21  Eric Blake  <eblake@redhat.com>
20815
20816         net_if: enhance tests
20817         * tests/test-net_if.c (main): Move signature checks earlier.
20818         Print failures to stderr.
20819         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20820         Document the bug that we do not yet fix.
20821
20822 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20823
20824         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20825         about gnulib, not GSS.
20826
20827 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20828
20829         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20830         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20831         for Emacs.
20832         * build-aux/pmccabe2html: Make Makefile.am example code more
20833         cut-and-paste friendly.
20834
20835 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20836
20837         * tests/test-net_if.c: New file.
20838         * modules/net_if-tests: New file.
20839
20840 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20841
20842         pthread: add pthread_spin_destroy
20843         * lib/pthread.in.h (pthread_spin_destroy): New function.
20844
20845 2010-09-19  Bruno Haible  <bruno@clisp.org>
20846
20847         gnulib-tool: Fix --help output.
20848         * gnulib-tool (func_usage): Fix help message.
20849         Reported by Reuben Thomas <rrt@sc3d.org>.
20850
20851 2010-09-18  Jim Meyering  <meyering@redhat.com>
20852
20853         maint.mk: avoid unexpanded \n in two diagnostics
20854         * top/maint.mk (sc_prohibit_always_true_header_tests):
20855         Don't use a literal \n in a halt=... assignment.  It would not be
20856         expanded, and the two \n bytes would appear in the diagnostic output
20857         rather than the desired newline.  Use halt=$$(printf ... instead.
20858         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20859
20860 2010-09-18  Bruno Haible  <bruno@clisp.org>
20861
20862         netinet_in: Doc tweak.
20863         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20864         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20865
20866 2010-09-18  Jim Meyering  <meyering@redhat.com>
20867
20868         init.sh: correct an outdated comment
20869         * tests/init.sh (create_exe_shims_):  s/function/alias/
20870
20871         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20872         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20873         a file named "*.exe" is removed between the glob expansion and the
20874         processing of that oddly named file.
20875
20876 2010-09-17  Eric Blake  <eblake@redhat.com>
20877
20878         mirbsd: add some more support
20879         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20880         in BSD family.
20881         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20882         devices as OpenBSD.
20883         * m4/host-os.m4 (mirbsd): Add MirBSD.
20884
20885         tests: fix unportable assumption on sys/wait.h
20886         * tests/test-sys_wait.c (main): Relax test.
20887         * tests/test-stdlib.c (main): Likewise.
20888
20889         init.sh: accomodate directory with no .exes
20890         * tests/init.sh: Accomodate directory containing only scripts.
20891
20892         tests: avoid compiler warning
20893         * tests/test-stdlib.c (main): Use the variable.
20894
20895         fdutimens, fdutimensat: update signature, again
20896         * lib/utimens.h (gl_futimens): Delete, and move signature...
20897         (fdutimens): ...here.
20898         (fdutimensat): Rearrange signature.
20899         (lutimensat): Rename variable for clarity.
20900         * lib/fdutimensat.c (fdutimensat): Update signature.
20901         * lib/utimens.c (fdutimens): Likewise.
20902         (gl_futimens): Delete.
20903         (utimens, lutimens): Update callers.
20904         * lib/futimens.c (futimens): Likewise.
20905         * tests/test-fdutimensat.c: Likewise.
20906         * tests/test-utimens.c: Likewise.
20907         * tests/test-futimens.h: Update comment.
20908         * NEWS: Mention this.
20909         Suggested by Paul Eggert.
20910
20911 2010-09-17  Bruno Haible  <bruno@clisp.org>
20912
20913         Take over the maintenance of some older macros from Autoconf.
20914         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20915         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20916         GNU Autoconf.
20917         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20918         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20919
20920 2010-09-17  Eric Blake  <eblake@redhat.com>
20921
20922         fdutimensat: drop atflag validation
20923         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20924         with valid fd, to close a race scenario where futimens is
20925         unsupported and FILE was replaced by a symlink.
20926         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20927         accordingly.
20928         Suggested by Paul Eggert.
20929
20930 2010-09-16  Bruno Haible  <bruno@clisp.org>
20931
20932         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20933         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20934
20935 2010-09-16  Bruno Haible  <bruno@clisp.org>
20936
20937         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20938         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20939         login_tty exists.
20940         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20941
20942 2010-09-16  Bruno Haible  <bruno@clisp.org>
20943
20944         login_tty: Make the replacement code work on BSD systems.
20945         * lib/login_tty.c: Include <sys/ioctl.h>.
20946         (login_tty): Use ioctl TIOCSCTTY when available.
20947         * modules/login_tty (Depends-on): Add sys_ioctl.
20948         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20949
20950 2010-09-16  Bruno Haible  <bruno@clisp.org>
20951
20952         login_tty: Stricter unit test.
20953         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20954         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20955         and tcgetsid() after login_tty.
20956         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20957
20958 2010-09-16  Bruno Haible  <bruno@clisp.org>
20959
20960         New module 'tcgetsid'.
20961         * lib/tcgetsid.c: New file.
20962         * m4/tcgetsid.m4: New file.
20963         * modules/tcgetsid: New file.
20964         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20965         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20966         GNULIB_TCGETSID, HAVE_TCGETSID.
20967         * lib/termios.in.h: Include <sys/types.h>.
20968         (tcgetsid): New declaration.
20969         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20970         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20971         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20972         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20973
20974 2010-09-16  Bruno Haible  <bruno@clisp.org>
20975
20976         Tests for module 'termios'.
20977         * modules/termios-c++-tests: New file.
20978         * modules/termios-tests: New file.
20979         * tests/test-termios-c++.cc: New file.
20980         * tests/test-termios.c: New file.
20981
20982         New module 'termios'.
20983         * modules/termios: New file.
20984         * lib/termios.in.h: New file.
20985         * m4/termios_h.m4: New file.
20986         * doc/posix-headers/termios.texi: Mention the new module.
20987
20988 2010-09-16  Eric Blake  <eblake@redhat.com>
20989
20990         fdutimensat: add an atflag parameter
20991         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20992         * lib/utimens.h (fdutimensat): Update prototype.
20993         * tests/test-fdutimensat.c: Adjust test to match.
20994         * NEWS: Document the change.
20995         Suggested by Paul Eggert.
20996
20997 2010-09-16  Bruno Haible  <bruno@clisp.org>
20998
20999         Fix typos in comments.
21000         * lib/striconveh.h: Fix typo in comment.
21001         * lib/login_tty.c (login_tty): Likewise.
21002
21003 2010-09-15  Bruno Haible  <bruno@clisp.org>
21004
21005         stdlib: clarify MirBSD WEXITSTATUS bug
21006         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21007         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21008
21009 2010-09-15  Eric Blake  <eblake@redhat.com>
21010
21011         stdlib: work around MirBSD WEXITSTATUS bug
21012         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21013         * modules/stdlib (Depends-on): Add sys_wait.
21014         * tests/test-sys_wait.c (main): Enhance test.
21015         * tests/test-stdlib.c (main): Likewise.
21016         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21017
21018         docs: mention MacOS issue with WEXITSTATUS(constant)
21019         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21020         issue.
21021         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21022
21023         strnlen: add tests
21024         * modules/strnlen-tests: New file.
21025         * tests/test-strnlen.c: Likewise.
21026
21027 2010-09-14  Bruno Haible  <bruno@clisp.org>
21028
21029         unistr/base: Avoid link errors when module 'libunistring' is also used.
21030         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21031         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21032         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21033         Declare also when HAVE_LIBUNISTRING is set.
21034         Reported by Pádraig Brady <P@draigbrady.com>.
21035
21036 2010-09-14  Eric Blake  <eblake@redhat.com>
21037
21038         test-rawmemchr: make more robust
21039         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21040         (Depends-on, configure.ac): Add needed prerequisites to use it.
21041         * modules/memchr-tests (Files, Depends-on, configure.ac):
21042         Likewise, to avoid implicit reliance on memchr module prereqs.
21043         * tests/test-memchr.c (main): Ensure proper masking.
21044         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21045         reads.
21046
21047         memchr: detect glibc Alpha bug
21048         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21049         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21050         Alpha.
21051         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21052         * tests/test-memchr.c (main): Enhance test.
21053         Reported by Nelson H. F. Beebe.
21054
21055 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21056
21057         fts, getcwd, glob: audit for dirfd returning -1
21058         * lib/fts.c (opendir): Remove #define; no longer used.
21059         (opendirat): New arg PDIR_FD.  All callers changed.
21060         (fts_build, _opendir2): Use new opendirat to avoid the need for
21061         dirfd, or for checking whether dirfd returns a negative value.
21062         Don't use opendir; always use openat followed by fdopendir.
21063         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21064         it.
21065         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21066         returns -1 here.
21067         * modules/fts (Depends-on): Remove dirfd.
21068         * modules/getcwd (Depends-on): Likewise.
21069
21070 2010-09-13  Eric Blake  <eblake@redhat.com>
21071
21072         float: fix broken MirBSD header
21073         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21074         * doc/posix-headers/float.texi (float.h): Document it.
21075
21076 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21077
21078         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21079         * lib/fts.c (opendirat): New arg extra_flags.
21080         (__opendir2): Use it to avoid following symlinks when opening
21081         a directory, if symlinks are not supposed to be followed.  See
21082         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21083
21084         fdopendir: preserve argument fd before returning
21085         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21086         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21087         (fdopendir): Use them, arranging for FD to be open to the same
21088         directory that it was when it started.  (It might be temporarily
21089         closed while fdopendir is running, so this not thread- or
21090         signal-safe.)  Be careful to do the right thing even when file
21091         descriptors are scarce and dup fails with errno == EMFILE.  See
21092         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21093
21094 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21095
21096         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21097         * NEWS: Document change.
21098         * m4/regex.m4: Disable test for regoff_t size.
21099
21100 2010-09-13  Jim Meyering  <meyering@redhat.com>
21101
21102         fts: don't operate on an invalid file descriptor after failed dup
21103         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21104         negative file descriptor.
21105
21106 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21107
21108         savedir: add streamsavedir, deprecate fdsavedir
21109         * NEWS: Mention deprecation of fdsavedir.
21110         * lib/savedir.c (streamsavedir): New extern function, whose name
21111         ends in "savedir" to be consistent with the others.  This differs
21112         from savedirstream in that it doesn't close its argument.  The
21113         next version of GNU tar will use this instead of fdsavedir, to
21114         avoid some race conditions and conserve file descriptors.
21115         (savedirstream): Reimplement as a wrapper around streamsavedir.
21116         (fdsavedir): Add a comment deprecating this function.  As far as
21117         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21118         * lib/savedir.h (streamsavedir): New decl.
21119         (fdsavedir): Add a comment deprecating this.
21120
21121 2010-09-10  Bruno Haible  <bruno@clisp.org>
21122
21123         langinfo: Fix last commit.
21124         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21125         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21127
21128 2010-09-10  Bruno Haible  <bruno@clisp.org>
21129
21130         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21131         * lib/progreloc.c (O_EXEC): Define fallback.
21132
21133 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21134
21135         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21136         * NEWS: Document recent changes to fcntl-h.
21137         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21138         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21139         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21140         Similarly for O_SEARCH; this last was already true, but not documented.
21141         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21142         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21143         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21144         Likewise.
21145         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21146         is zero, not whether it is defined.
21147         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21148         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21149         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21150
21151 2010-09-10  Bruno Haible  <bruno@clisp.org>
21152
21153         langinfo, nl_langinfo: Fix for IRIX 5.3.
21154         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21155         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21156         HAVE_LANGINFO_YESEXPR.
21157         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21158         HAVE_LANGINFO_YESEXPR.
21159         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21160         HAVE_LANGINFO_T_FMT_AMPM is 0.
21161         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21162         HAVE_LANGINFO_YESEXPR is 0.
21163         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21164         NOEXPR.
21165         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21166         * doc/posix-functions/nl_langinfo.texi: Likewise.
21167         Reported by Eric Blake.
21168
21169 2010-09-10  Bruno Haible  <bruno@clisp.org>
21170
21171         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21172         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21173         on FreeBSD 8.0 and OpenBSD 4.6.
21174         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21175         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21176         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21177         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21178         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21179         ac_includes_default.
21180         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21181
21182 2010-09-09  Eric Blake  <eblake@redhat.com>
21183
21184         strsignal: work around NetBSD bug
21185         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21186         * lib/string.in.h (includes): Likewise.
21187         * doc/posix-functions/strsignal.texi (strsignal): Document the
21188         bug.
21189         Reported by Nelson H. F. Beebe.
21190
21191         gnulib-tool: work with NetBSD /bin/sh
21192         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21193         (func_get_description, func_get_comment, func_get_status)
21194         (func_get_notice, func_get_applicability, func_get_filelist)
21195         (func_get_dependencies, func_get_autoconf_early_snippet)
21196         (func_get_autoconf_snippet, func_get_automake_snippet)
21197         (func_get_include_directive, func_get_link_directive)
21198         (func_get_license, func_get_maintainer, func_import): Avoid
21199         shell syntax errors from parsing syntax extensions.
21200
21201 2010-09-09  Bruno Haible  <bruno@clisp.org>
21202
21203         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21204         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21205         a reliable way to determine whether the 'alias' command works.
21206
21207 2010-09-08  Jim Meyering  <meyering@redhat.com>
21208
21209         init.sh: penalize a set-x-impaired shell; don't disqualify it
21210         * tests/init.sh: Too many shells corrupt application stderr when
21211         you set -x, so we can't afford to disqualify them, since at least
21212         on Irix-6.5, that would disqualify all bourne shells.
21213         Instead, use a two-pass approach.
21214         On the first pass, try to find a shell that meets the stricter
21215         condition that set -x does not corrupt stderr.
21216         If no shell meets the stricter condition, retest each candidate
21217         shell, but without that extra condition.  Finally, when
21218         VERBOSE=yes is requested and set -x might cause trouble, simply
21219         issue a warning and refrain from enabling debug output.
21220
21221 2010-09-08  Eric Blake  <eblake@redhat.com>
21222
21223         unsetenv: fix OpenBSD bug
21224         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21225         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21226         documentation.
21227         Reported by Jim Meyering.
21228
21229         strtod: work around IRIX 6.5 bug
21230         * lib/strtod.c (strtod): Reparse number on shorter string if
21231         exponent parse was invalid.
21232         * tests/test-strtod.c (main): Add check for "0x1p 2".
21233         Reported by Tom G. Christensen.
21234
21235         getopt: optimize previous patch
21236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21237         empty variable.  Speed up awk script.
21238         Reported by Paolo Bonzini.
21239
21240 2010-09-08  Jim Meyering  <meyering@redhat.com>
21241
21242         test.sh: disqualify shells for which set -x corrupts stderr
21243         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21244         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21245         appear in stderr output.  For example, this command:
21246             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21247         prints "P=1" on those two systems:
21248
21249 2010-09-08  Bruno Haible  <bruno@clisp.org>
21250
21251         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21252         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21253         commands, because some shells ignore redirections when there is an
21254         error in the command lookup.
21255         Reported by Eric Blake.
21256
21257 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21258
21259         * lib/regex.h: Fix a mention of `regex_compile' (should be
21260         `re_compile_pattern').
21261         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21262         (re_set_registers): Correct name of parameter in comment.
21263
21264         * doc/regex.texi: Add documentation for missing syntax flags.
21265         Remove commented-out documentation of defunct syntax option
21266         RE_NO_EMPTY_ALTS.
21267         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21268         Add documentation of re_set_registers.
21269         Document trick to re-use a pattern buffer by setting fastmap manually.
21270         Update documentation of struct re_pattern_buffer per public members.
21271         Uncomment documentation of equivalence class operators and
21272         collating symbol operators, since they are now implemented,
21273         Explain leftmost-longest matching in relation to alternatives.
21274         Tidy documentation of substring matching.
21275         Remove POSIX documentation, which is done better in
21276         glibc, and refer the reader there. Keep BSD API documentation, as
21277         that is not readily available elsewhere.
21278
21279 2010-09-07  Eric Blake  <eblake@redhat.com>
21280
21281         getopt: handle POSIXLY_CORRECT set but not exported
21282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21283         export state of POSIXLY_CORRECT, due to bash set -o posix.
21284         Reported by Dustin J. Mitchell.
21285
21286 2010-09-05  Bruno Haible  <bruno@clisp.org>
21287
21288         gnulib-tool: Highlight the changed options.
21289         * gnulib-tool (func_usage): Display the --import, --add-import,
21290         --remove-import explanations in bold font.
21291
21292 2010-09-06  Karl Berry  <karl@gnu.org>
21293
21294         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21295
21296 2010-09-05  Bruno Haible  <bruno@clisp.org>
21297
21298         uniwidth/width: Update comment.
21299         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21300         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21301
21302 2010-09-05  Bruno Haible  <bruno@clisp.org>
21303
21304         isinf, isnan: Relax license.
21305         * modules/isinf (License): Change from GPL to LGPL, with consent from
21306         Ben Pfaff.
21307         * modules/isnan (License): Likewise.
21308         Requested by Ludovic Courtès.
21309
21310 2010-09-04  Bruno Haible  <bruno@clisp.org>
21311
21312         gnulib-tool: Help migration from --import to --add-import or --update.
21313         * gnulib-tool: Emit a verbose error message when --import is used
21314         without any module name.
21315
21316 2010-09-04  Bruno Haible  <bruno@clisp.org>
21317
21318         Update doc about gnulib-tool.
21319         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21320         'gnulib-tool --update' in more detail.
21321         Reported by Eric Blake.
21322
21323 2010-09-04  Bruno Haible  <bruno@clisp.org>
21324
21325         gnulib-tool: Change --import. New options --add/remove-import.
21326         * gnulib-tool: New options --add-import, --remove-import.
21327         (func_usage): Document them.
21328         (have_associative): Define always.
21329         (func_import): In import mode, don't merge the specified settings with
21330         the cached settings. Implement remove-import mode.
21331         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21332         Explain when to use them versus --import.
21333         (Simple update): Use --add-import instead of --import.
21334         * NEWS: Mention the change.
21335
21336 2010-09-04  Bruno Haible  <bruno@clisp.org>
21337
21338         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21339         separate gnulib.mk.
21340
21341 2010-09-04  Bruno Haible  <bruno@clisp.org>
21342
21343         gnulib-tool: Don't talk about CVS any more.
21344         * gnulib-tool (func_usage, func_import): Write "version control"
21345         instead of CVS.
21346
21347 2010-09-04  Jim Meyering  <meyering@redhat.com>
21348
21349         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21350         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21351         false positives (whose names may be ill-chosen) when searching
21352         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21353         would cause a false-positive.
21354
21355         avoid coreutils "make distcheck" failure
21356         Coreutils tests with an absolute build directory name that contains
21357         a space.  Not quoting this directory name caused a failure.
21358         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21359         * tests/test-vc-list-files-cvs.sh: Likewise.
21360
21361 2010-09-04  Bruno Haible  <bruno@clisp.org>
21362
21363         gnulib-tool: Avoid error when run in a package without Makefile.am.
21364         * gnulib-tool: When collecting the m4dirs in a package that does not
21365         have a Makefile.am, eliminate those directories that contain no
21366         gnulib-cache.m4. Fix expression that counts these directories.
21367
21368 2010-09-04  Bruno Haible  <bruno@clisp.org>
21369
21370         update-copyright test: Improve output when perl is missing or too old.
21371         * tests/test-update-copyright.sh: Move test of Perl version down after
21372         the test whether Perl exists. Provide an explanation relating Perl's
21373         error message to Automake's SKIP: message.
21374
21375 2010-09-04  Bruno Haible  <bruno@clisp.org>
21376
21377         Don't augment PATH in TESTS_ENVIRONMENT.
21378         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21379         set abs_aux_dir instead of augmenting PATH.
21380         * modules/vc-list-files-tests (Makefile.am): Likewise.
21381         * tests/test-update-copyright.sh: Augment PATH here.
21382         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21383         path_prepend_.
21384         * tests/test-vc-list-files-git.sh: Likewise.
21385
21386 2010-09-04  Jim Meyering  <meyering@redhat.com>
21387
21388         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21389         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21390
21391 2010-09-04  Bruno Haible  <bruno@clisp.org>
21392
21393         strdup: Fix compilation error in C++ mode.
21394         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21395         the macro.
21396
21397 2010-09-04  Bruno Haible  <bruno@clisp.org>
21398
21399         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21400         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21401         macro into a function.
21402         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21403
21404 2010-09-04  Bruno Haible  <bruno@clisp.org>
21405
21406         Set PATH_SEPARATOR the same way autoconf does.
21407         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21408         the value of PATH_SEPARATOR the same way autoconf-generated configure
21409         scripts do.
21410         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21411         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21412
21413 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21414
21415         Set PATH_SEPARATOR the same way autoconf does.
21416         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21417         the same way autoconf-generated configure scripts do.
21418         * posix-modules: Likewise.
21419
21420 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21421
21422         hash: fix safe_hasher const typo
21423         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21424         const; otherwise, there is a type error later.
21425
21426 2010-09-02  Jim Meyering  <meyering@redhat.com>
21427
21428         test-update-copyright.sh: require perl 5.8.0
21429         * tests/test-update-copyright.sh: Require 5.8.0,
21430         which Tom G. Christensen has confirmed is adequate,
21431         while 5.6.1 is not.
21432
21433 2010-09-02  Eric Blake  <eblake@redhat.com>
21434
21435         tests: init.sh improvements for re-exec'ing with zsh
21436         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21437         -vx through shell re-exec.
21438         Reported by Tom G. Christensen.
21439
21440         wctype: fix typo in previous commit
21441         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21442         Reported by Ludovic Courtès.
21443
21444 2010-09-02  Jim Meyering  <meyering@redhat.com>
21445
21446         test-update-copyright.sh: skip test if Perl is too old
21447         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21448         Reported by Tom G. Christensen.
21449
21450 2010-09-02  Bruno Haible  <bruno@clisp.org>
21451
21452         wctype: Avoid compilation error on IRIX 6.5.30.
21453         * lib/wctype.in.h (iswblank): Declare with a replacement if
21454         REPLACE_ISWBLANK is set.
21455         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21456         declared. Set REPLACE_ISWBLANK.
21457         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21458         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21459         * doc/posix-headers/wctype.texi: Likewise.
21460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21461
21462 2010-09-01  Bruno Haible  <bruno@clisp.org>
21463
21464         New module 'socketlib'.
21465         * modules/socketlib: New file.
21466         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21467         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21468         * modules/sockets (Depends-on): Add socketlib.
21469         Suggested by Sam Steingold <sds@gnu.org>.
21470
21471 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21472
21473         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21474
21475         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21476         when one needs search access to a directory but not read access.
21477         On systems where it is available, it works in some cases where
21478         O_RDONLY does not, namely on directories that are searchable but
21479         not readable, and which need only to be searchable.  If O_SEARCH
21480         is not available, fall back to the traditional method of using
21481         O_RDONLY.
21482
21483         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21484         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21485         when opening a directory that needs only to be searchable.
21486         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21487         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21488         * lib/openat-proc.c (openat_proc_name): Likewise.
21489         * lib/openat.c (openat_needs_fchdir): Likewise.
21490         * lib/save-cwd.c (save_cwd): Likewise.
21491         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21492
21493 2010-08-28  Bruno Haible  <bruno@clisp.org>
21494
21495         New module 'host-cpu-c-abi'.
21496         * modules/host-cpu-c-abi: New file.
21497         * m4/host-cpu-c-abi.m4: New file, based on part of
21498         clisp/src/m4/general.m4.
21499         Requested by Sam Steingold <sds@gnu.org>.
21500
21501 2010-08-31  Eric Blake  <eblake@redhat.com>
21502         and Jim Meyering  <meyering@redhat.com>
21503
21504         hash: factor, and guard against misbehaving hasher function
21505         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21506         of table->hasher's return value.  Also protect against a hash value
21507         so large that adding it to table->bucket results in a NULL pointer.
21508         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21509         Use it in place of open-coded check-and-abort.
21510
21511 2010-08-30  Bruno Haible  <bruno@clisp.org>
21512
21513         hash: silence spurious clang warning
21514         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21515         Reported by Eric Blake.
21516
21517 2010-08-30  Eric Blake  <eblake@redhat.com>
21518
21519         strstr, memmem, strcasestr: avoid leaked shell message
21520         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21521         FreeBSD.
21522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21523         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21524
21525         tests: silence clang warning
21526         * tests/test-malloca.c (do_allocation): Avoid dead store.
21527
21528 2010-08-29  Bruno Haible  <bruno@clisp.org>
21529
21530         gettext: Fix recent mistake.
21531         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21532
21533 2010-08-29  Bruno Haible  <bruno@clisp.org>
21534
21535         selinux-h: Offer a --without-selinux option.
21536         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21537         --without-selinux was specified, skip all tests and define
21538         HAVE_SELINUX_SELINUX_H to 0.
21539         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21540         set LIB_SELINUX to empty.
21541         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21542         gl_LIBSELINUX. If --without-selinux was specified, replace
21543         selinux/context.h.
21544         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21545
21546 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21547             Bruno Haible  <bruno@clisp.org>
21548
21549         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21550         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21551         of HAVE_REALLOC.
21552         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21553         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21554         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21555         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21556
21557 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21558             Bruno Haible  <bruno@clisp.org>
21559
21560         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21561         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21562         HAVE_CALLOC.
21563         * lib/xmalloc.c: Update accordingly.
21564         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21565         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21566         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21567
21568 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21569             Bruno Haible  <bruno@clisp.org>
21570
21571         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21572         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21573         HAVE_MALLOC.
21574         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21575         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21576         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21577
21578 2010-08-29  Bruno Haible  <bruno@clisp.org>
21579
21580         Update modules list.
21581         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21582         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21583         (String handling <string.h>): Add astrxfrm.
21584         (File system functions): Add readlinkat.
21585
21586 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21587
21588         Tests for module 'realloc-gnu'.
21589         * modules/realloc-gnu-tests: New file.
21590         * tests/test-realloc-gnu.c: New file.
21591
21592         Tests for module 'calloc-gnu'.
21593         * modules/calloc-gnu-tests: New file.
21594         * tests/test-calloc-gnu.c: New file.
21595
21596         Tests for module 'malloc-gnu'.
21597         * modules/malloc-gnu-tests: New file.
21598         * tests/test-malloc-gnu.c: New file.
21599
21600 2010-08-28  Bruno Haible  <bruno@clisp.org>
21601
21602         Rename module 'realloc' -> 'realloc-gnu'.
21603         * modules/realloc-gnu: New file, copied from modules/realloc.
21604         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21605         obsolete.
21606         * modules/mgetgroups (Depends-on): Update.
21607         * doc/posix-functions/realloc.texi: Update.
21608         * NEWS: Mention the change.
21609
21610         Rename module 'calloc' -> 'calloc-gnu'.
21611         * modules/calloc-gnu: New file, copied from modules/calloc.
21612         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21613         obsolete.
21614         * doc/posix-functions/calloc.texi: Update.
21615         * NEWS: Mention the change.
21616
21617         Rename module 'malloc' -> 'malloc-gnu'.
21618         * modules/malloc-gnu: New file, copied from modules/malloc.
21619         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21620         obsolete.
21621         * modules/argp (Depends-on): Update.
21622         * modules/regex (Depends-on): Update.
21623         * doc/posix-functions/malloc.texi: Update.
21624         * NEWS: Mention the change.
21625
21626 2010-08-28  Eric Blake  <eblake@redhat.com>
21627
21628         pread, pwrite: add missing dependency
21629         * modules/pread (Depends-on): Add extensions.
21630         * modules/pwrite (Depends-on): Likewise.
21631
21632 2010-08-28  Bruno Haible  <bruno@clisp.org>
21633
21634         unistr/u*-strchr: Fix tests dependencies.
21635         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21636         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21637         Reported by Ian Beckwith <ianb@erislabs.net>.
21638
21639 2010-08-28  Bruno Haible  <bruno@clisp.org>
21640
21641         read-file: Don't occupy too much unused memory.
21642         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21643
21644 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21645             Eric Blake  <eblake@redhat.com>
21646             Bruno Haible  <bruno@clisp.org>
21647
21648         read-file: Avoid memory reallocations with regular files.
21649         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21650         (fread_file): With regular files, use the remaining length as the
21651         initial buffer size.  Check against overflow.
21652         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21653         sys_stat.
21654
21655 2010-08-28  Bruno Haible  <bruno@clisp.org>
21656
21657         ftello: Relax license.
21658         * modules/ftello (License): Relax to LGPLv2+.
21659         Reported by Eric Blake.
21660
21661 2010-08-28  Bruno Haible  <bruno@clisp.org>
21662
21663         Avoid relocwrapper link errors due to gnulib replacement functions.
21664         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21665         function.
21666         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21667
21668 2010-08-28  Bruno Haible  <bruno@clisp.org>
21669
21670         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21671         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21672         defined.
21673         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21674         Suggested by Eric Blake.
21675
21676 2010-08-28  Bruno Haible  <bruno@clisp.org>
21677
21678         sys_socket, netdb: Ensure socklen_t gets defined.
21679         * modules/sys_socket (Depends-on): Add socklen.
21680         * modules/netdb (Depends-on): Likewise.
21681         * modules/getaddrinfo (Depends-on): Remove socklen.
21682         * modules/getsockopt (Depends-on): Likewise.
21683         * modules/setsockopt (Depends-on): Likewise.
21684         * tests/test-sys_socket.c: Check that socklen_t is defined.
21685         * tests/test-netdb.c: Likewise.
21686         * m4/socklen.m4: Update comments.
21687         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21688
21689 2010-08-27  Eric Blake  <eblake@redhat.com>
21690
21691         login_tty: add missing dependency
21692         * modules/login_tty (Depends-on): Add pty.
21693
21694 2010-08-26  Eric Blake  <eblake@redhat.com>
21695
21696         lib-symbol-versions: fix m4 quoting
21697         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21698         format for AC_LINK_IFELSE.
21699
21700         glob: fix compile test
21701         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21702
21703         btowc: fix missing file
21704         * modules/btowc (Files): Also ship locale-fr.m4.
21705
21706         lseek: fix link test
21707         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21708         AC_LINK_IFELSE.
21709
21710         include_next: silence autoconf 2.68 warning
21711         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21712         AC_COMPILE_IFELSE as special.
21713         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21714         autoconf < 2.68.
21715
21716         acl: fix compilation test
21717         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21718         AC_COMPILE_IFELSE.
21719
21720 2010-08-26  Bruno Haible  <bruno@clisp.org>
21721
21722         Modernize AC_TRY_RUN invocations.
21723         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21724         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21725         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21726         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21727         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21728         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21729         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21730         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21731         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21732         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21733         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21734         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21735         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21736         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21737         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21738         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21739         gl_MBRLEN_NUL_RETVAL): Likewise.
21740         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21741         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21742         Likewise.
21743         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21744         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21745         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21746         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21747         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21748         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21749         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21750         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21751         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21752         Likewise.
21753         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21754         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21755         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21756         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21757         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21758         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21759         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21760         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21761         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21763
21764 2010-08-26  Bruno Haible  <bruno@clisp.org>
21765
21766         Modernize AC_TRY_LINK invocations.
21767         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21768         AC_TRY_LINK.
21769         * m4/argp.m4 (gl_ARGP): Likewise.
21770         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21771         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21772         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21773         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21774         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21775         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21776         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21777         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21778         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21779         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21780         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21781         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21782         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21783         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21784         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21785         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21786         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21787         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21788         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21789         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21790         Likewise.
21791         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21792         Likewise.
21793         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21794         Likewise.
21795         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21796         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21797         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21798         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21799         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21800         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21801         * m4/servent.m4 (gl_SERVENT): Likewise.
21802         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21803         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21804         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21805         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21806         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21807         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21808         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21809         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21810         * modules/tsearch-tests (configure.ac): Likewise.
21811
21812 2010-08-26  Bruno Haible  <bruno@clisp.org>
21813
21814         Modernize AC_TRY_COMPILE invocations.
21815         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21816         AC_TRY_COMPILE.
21817         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21818         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21819         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21820         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21821         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21822         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21823         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21824         * m4/lock.m4 (gl_LOCK): Likewise.
21825         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21826         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21827         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21828         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21829         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21830         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21831         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21832         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21833         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21834         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21835         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21836         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21837         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21838         extraneous semicolon.
21839
21840 2010-08-26  Jim Meyering  <meyering@redhat.com>
21841
21842         stat-time: relax license LGPL
21843         * modules/stat-time (License): Change from GPL to LGPL,
21844         with consent from all contributors, for use in libguile.
21845         Requested by Ludovic Courtès.
21846
21847 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21848
21849         poll: return immediately on POLLHUP.
21850         * lib/poll.c (poll): Always set timeout before wait_timeout is
21851         computed.
21852
21853 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21854
21855         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21856         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21857         rmdir ("dir/.//"), unlinkat.
21858
21859 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21860
21861         stdbool: avoid spurious failure with modern xlc
21862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21863
21864 2010-08-24  Bruno Haible  <bruno@clisp.org>
21865
21866         getloadavg: simplify code
21867         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21868         gl_have_func. Update comments.
21869
21870 2010-08-24  Eric Blake  <eblake@redhat.com>
21871
21872         getloadavg: don't define SVR4 on cygwin
21873         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21874         only define SVR4 when -lkvm is required.
21875         Reported by Yaakov Selkowitz.
21876
21877 2010-08-24  Bruno Haible  <bruno@clisp.org>
21878
21879         priv-set: fix comment
21880         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21881
21882 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21883
21884         priv-set: fix comments
21885         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21886         to match code, as suggested by David Bartley in:
21887         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21888
21889 2010-08-23  Eric Blake  <eblake@redhat.com>
21890
21891         stdbool: avoid rejecting clang
21892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21893         * tests/test-stdbool.c: Enable more tests if using the system
21894         <stdbool.h> instead of the gnulib replacement.
21895         (main): Move xlc bug test to a runtime test for all compilers.
21896         Reported by Anders Kaseorg.
21897
21898         argz: fix shell quoting issue
21899         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21900         Reported by Charles Wilson.
21901
21902 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21903             Erik Faye-Lund <kusmabite@gmail.com>
21904
21905         poll, select: handle ERROR_BROKEN_PIPE.
21906         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21907         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21908         * lib/select.c (win32_compute_revents): Do not mark a pipe
21909         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21910
21911 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21912
21913         fts: allow compilation with C++
21914         * lib/fts_.h: Specify extern "C" linkage with C++.
21915
21916 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21917
21918         Fix gnulib-tool sed script de-commentation for AIX sed.
21919         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21920         sed.
21921
21922 2010-08-17  Eric Blake  <eblake@redhat.com>
21923
21924         test-stddef: test for (some) offsetof bugs
21925         * tests/test-stddef.c: Enhance test to ensure correct type of
21926         offsetof.
21927         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21928         that we are not fixing at this time.
21929
21930 2010-08-15  Bruno Haible  <bruno@clisp.org>
21931
21932         stpncpy: Allow stpncpy to be defined as a macro.
21933         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21934         if it's already correctly declared.
21935         * lib/string.in.h (stpncpy): Undefine before redefining.
21936         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21937
21938 2010-08-14  Bruno Haible  <bruno@clisp.org>
21939
21940         Rename module 'memxfrm' to 'amemxfrm'.
21941         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21942         (amemxfrm): Renamed from memxfrm.
21943         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21944         (amemxfrm): Renamed from memxfrm.
21945         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21946         * NEWS: Mention the change.
21947         * MODULES.html.sh (String handling <string.h>): Update.
21948         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21949         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21950         * lib/unicase/u16-casexfrm.c: Likewise.
21951         * lib/unicase/u32-casexfrm.c: Likewise.
21952         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21953         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21954         * lib/uninorm/u16-normxfrm.c: Likewise.
21955         * lib/uninorm/u32-normxfrm.c: Likewise.
21956         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21957         memxfrm.
21958         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21959         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21960         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21961         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21962         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21963         Suggested by Paul Eggert.
21964
21965 2010-08-14  Bruno Haible  <bruno@clisp.org>
21966
21967         Tests for module 'astrxfrm'.
21968         * modules/astrxfrm-tests: New file.
21969         * tests/test-astrxfrm.c: New file.
21970
21971         New module 'astrxfrm'.
21972         * lib/astrxfrm.h: New file.
21973         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21974         * modules/astrxfrm: New file.
21975
21976 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21977
21978         regex: Tweak doc.
21979         * doc/regex.texi (Overview): Don't mention regex.c.
21980         (GNU Regular Expression Compiling): Likewise.
21981         (Match-end-of-line Operator): Mention 'not_eol'.
21982
21983 2010-08-14  Brian Gough  <bjg@gnu.org>
21984             Bruno Haible  <bruno@clisp.org>
21985
21986         git-merge-changelog: add doc relating to use with bzr and hg.
21987         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21988
21989 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21990
21991         pthread: fix pthread.h creation for srcdir != builddir
21992         * modules/pthread (Makefile.am): Fix the rule to work also in a
21993         non-srcdir build.
21994
21995 2010-08-13  Karl Berry  <karl@gnu.org>
21996
21997         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21998         * doc/posix-*/*: force line break before @url of POSIX
21999         specifications.
22000         Suggested by Werner Lemberg.
22001
22002 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22003
22004         strtod: fix const diagnostic
22005         * lib/strtod.c (strtod): Don't assign const char * to char *,
22006         as this elicits a warning from GCC when warnings are enabled.
22007
22008 2010-08-10  Pádraig Brady <P@draigbrady.com>
22009         and Eric Blake  <eblake@redhat.com>
22010
22011         copy-acl: ignore ENOTSUP on HP-UX
22012         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22013         so that it is available for HP-UX.
22014         * lib/copy-acl.c (qcopy_acl): Use it.
22015         Reported by Patrick M. Callahan.
22016
22017 2010-08-10  Eric Blake  <eblake@redhat.com>
22018
22019         open, chown: relax license
22020         * modules/open (License): Change to LGPLv2+, with consent by all
22021         authors, for use in augeas.
22022         * modules/chown (License): Likewise.
22023         * modules/lchown (Likewise): Likewise.
22024         Requested by Adam Stokes.
22025
22026 2010-08-09  Karl Berry  <karl@gnu.org>
22027
22028         * build-aux/ar-lib: new file, import from Automake.
22029         * config/srclist.txt: autocheck for updates.
22030
22031 2010-08-09  Eric Blake  <eblake@redhat.com>
22032
22033         readlinkat: adjust client modules
22034         * modules/areadlinkat (Depends-on): Use readlinkat, not
22035         symlinkat.
22036         * modules/areadlinkat-with-size (Depends-on): Likewise.
22037
22038         mknod: be more vocal about danger of running tests as root
22039         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22040         root, since that is just asking for problems.
22041         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22042
22043         readlinkat: split into its own module
22044         * modules/symlinkat: Split readlinkat...
22045         * modules/readlinkat: ...into separate module.
22046         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22047         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22048         * lib/symlinkat.c (readlinkat): Move...
22049         * lib/readlinkat.c: ...into new file.
22050         * modules/symlinkat-tests: Split readlinkat test...
22051         * modules/readlinkat-tests: ...into separate module.
22052         * tests/test-symlinkat.c: Split...
22053         * tests/test-readlinkat.c: ...into new file.
22054         * NEWS: Document the split.
22055         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22056         * lib/unistd.in.h (readlinkat): Likewise.
22057         Suggested by Bruno Haible.
22058
22059 2010-08-08  Bruno Haible  <bruno@clisp.org>
22060
22061         memxfrm: Speed up.
22062         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22063         that usually only one call to strxfrm is necessary for each string
22064         part.
22065         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22066
22067 2010-08-07  Karl Berry  <karl@gnu.org>
22068
22069         * doc/posix-headers/limits.texi,
22070         * doc/posix-functions/malloc.texi,
22071         * doc/posix-functions/strsignal.texi: missing @item.
22072         * doc/ld-version-script.texi: spurious leading i.
22073         * doc/regex.texi (Interval Operators): no commas inside @var.
22074
22075 2010-08-01  Bruno Haible  <bruno@clisp.org>
22076
22077         Integrate the regex documentation.
22078         * doc/gnulib.texi: Define 'cn' index.
22079         (Regular expressions): New a chapter that includes regex.texi and
22080         regexprops-generic.texi.
22081         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22082         syntax.
22083
22084         Whitespace cleanup.
22085         * doc/regex.texi: Remove trailing spaces.
22086
22087         Add regex documentation.
22088         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22089         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22090         Written by Kathy A. Hargreaves and Karl Berry.
22091
22092 2010-08-01  Bruno Haible  <bruno@clisp.org>
22093
22094         link: Update documentation.
22095         * doc/posix-functions/link.texi: Update regarding Solaris.
22096
22097 2010-07-31  Bruno Haible  <bruno@clisp.org>
22098
22099         Update modules list.
22100         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22101         (String handling <string.h>): Add memcmp2, memxfrm.
22102         (Container data structures): Add xlist, xsublist, xoset.
22103         (Core language properties): Add alignof, unused-parameter.
22104         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22105         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22106         (Unibyte characters <ctype.h>): New section.
22107         (String handling <string.h>): New section.
22108         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22109         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22110         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22111         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22112         tan, tanh, tanl, y0, y1, yn.
22113         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22114         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22115         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22116         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22117         unlockpt, vdprintf, vdprintf-posix.
22118         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22119         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22120         xconcat-filename.
22121         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22122         getdtablesize, pipe2, pipe2-safer.
22123         (Security): New section.
22124         (Networking functions): Add accept4.
22125         (Signal handling): Add sigpipe.
22126         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22127         mbmemcasecoll.
22128         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22129         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22130         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22131         pipe-filter-ii.
22132         (Misc): Add argp-version-etc, login_tty, parse-duration.
22133
22134 2010-07-31  Bruno Haible  <bruno@clisp.org>
22135
22136         Improve doc in MODULES.html.
22137         * modules/linkat (Description): Add the word "function".
22138         * modules/mkfifo (Description): Likewise.
22139         * modules/mknod (Description): Likewise.
22140         * modules/remove (Description): Likewise.
22141         * modules/renameat (Description): Likewise.
22142         * modules/stat (Description): Likewise.
22143         * modules/symlink (Description): Likewise.
22144         * modules/unlink (Description): Likewise.
22145
22146 2010-07-31  Bruno Haible  <bruno@clisp.org>
22147
22148         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22149         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22150         option --enable/disable-c++ instead of --enable/disable-cxx.
22151         * NEWS: Mention the change.
22152
22153 2010-07-31  Bruno Haible  <bruno@clisp.org>
22154
22155         readlink, areadlink: Relax test a bit.
22156         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22157         alternative to ENOTDIR.
22158         * tests/test-areadlink.h (test_areadlink): Likewise.
22159         Reported by Rainer Tammer.
22160
22161 2010-07-31  Bruno Haible  <bruno@clisp.org>
22162
22163         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22164         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22165         character, perform the search using U_STRCHR.
22166         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22167         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22168         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22169         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22170         Suggested by Paolo Bonzini.
22171
22172 2010-07-31  Bruno Haible  <bruno@clisp.org>
22173
22174         unistr/u*-strstr: Fix dependencies.
22175         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22176         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22177         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22178
22179 2010-07-31  Bruno Haible  <bruno@clisp.org>
22180
22181         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22182         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22183         the beginning of the loop.
22184         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22185         cases in 'switch' statement.
22186
22187         unistr/u8-strchr: Fix several bugs.
22188         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22189         the string. When not found, return NULL, not a pointer near the end.
22190
22191         More tests for unistr/u8-strchr.
22192         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22193         that the function does not read past the first occurrence of the byte
22194         being searched.
22195         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22196         * tests/unistr/test-u16-strchr.c (main): New function.
22197         * tests/unistr/test-u32-strchr.c (main): New function.
22198
22199 2010-07-31  Bruno Haible  <bruno@clisp.org>
22200
22201         posix-modules: Ignore backup files of documentation files.
22202         * posix-modules: grep only through files named *.texi.
22203
22204 2010-07-31  Bruno Haible  <bruno@clisp.org>
22205
22206         symlinkat: Fix documentation.
22207         * doc/posix-functions/readlinkat.texi: Fix module name.
22208
22209 2010-07-31  Bruno Haible  <bruno@clisp.org>
22210
22211         fchownat: Replace also when chown has the trailing slash bug.
22212         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22213         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22214         introduced on 2010-04-10.
22215         Reported by Rainer Tammer.
22216
22217 2010-07-31  Bruno Haible  <bruno@clisp.org>
22218
22219         linkat: Work around AIX 7.1 bug.
22220         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22221         whether linkat handles trailing slash correctly. If not, replace linkat
22222         and define LINKAT_TRAILING_SLASH_BUG.
22223         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22224         check whether (fd1,file1) points to a directory if file1 or file2 ends
22225         in a slash. Code taken from lib/link.c.
22226         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22227         Reported by Rainer Tammer.
22228
22229 2010-07-31  Bruno Haible  <bruno@clisp.org>
22230
22231         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22232         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22233         This disables an xlc optimization that was causing wrong test results.
22234         Reported by Rainer Tammer.
22235
22236 2010-07-31  Bruno Haible  <bruno@clisp.org>
22237
22238         iconv: Work around AIX 6.1..7.1 bug.
22239         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22240         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22241         cross-compiling, guess no on all versions of AIX.
22242         Reported by Rainer Tammer.
22243
22244 2010-07-31  Bruno Haible  <bruno@clisp.org>
22245
22246         readlink: Relax test a bit.
22247         * tests/test-readlink.h (test_readlink): Allow different errno value
22248         when readlink is called with a file name that ends in / and refers to
22249         a file.
22250         Suggested by Eric Blake.
22251         Reported by Rainer Tammer.
22252
22253 2010-07-31  Bruno Haible  <bruno@clisp.org>
22254
22255         copysign: Does not require -lm on glibc systems.
22256         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22257         gl_COMMON_DOUBLE_MATHFUNC.
22258         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22259
22260 2010-07-31  Bruno Haible  <bruno@clisp.org>
22261
22262         duplocale: Work around AIX 7.1 bug.
22263         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22264         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22265         * lib/duplocale.c (rpl_duplocale): Update comment.
22266         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22267         Reported by Rainer Tammer.
22268
22269 2010-07-30  Bruno Haible  <bruno@clisp.org>
22270
22271         dirfd: Avoid link error on AIX 7.1.
22272         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22273         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22274         exist, set REPLACE_DIRFD.
22275         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22276         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22277         * doc/posix-functions/dirfd.texi: Update.
22278         Reported by Rainer Tammer.
22279
22280 2010-07-30  Eric Blake  <eblake@redhat.com>
22281
22282         strtod: next round of AIX fixes
22283         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22284         exponent.
22285         * tests/test-strtod.c (main): Enhance tests.
22286         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22287         Reported by Rainer Tammer.
22288
22289         futimens: fix configure check
22290         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22291         Reported by Bruno Haible.
22292
22293 2010-07-30  Bruno Haible  <bruno@clisp.org>
22294
22295         getline: Update regarding AIX.
22296         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22297         Reported by Rainer Tammer.
22298
22299 2010-07-30  Bruno Haible  <bruno@clisp.org>
22300
22301         wcwidth: Drop replacement on AIX 7.
22302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22303         AIX 7.
22304         Reported by Rainer Tammer.
22305
22306 2010-07-30  Bruno Haible  <bruno@clisp.org>
22307
22308         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22309         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22310         a 'char *'.
22311         Reported by Rainer Tammer.
22312
22313 2010-07-30  Bruno Haible  <bruno@clisp.org>
22314
22315         unlink: Update regarding AIX.
22316         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22317         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22318         Reported by Rainer Tammer.
22319
22320 2010-07-30  Bruno Haible  <bruno@clisp.org>
22321
22322         symlink: Update regarding AIX.
22323         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22324         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22325         Reported by Rainer Tammer.
22326
22327 2010-07-30  Bruno Haible  <bruno@clisp.org>
22328
22329         strndup: Update regarding AIX.
22330         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22331         AIX 7.
22332         Reported by Rainer Tammer.
22333
22334 2010-07-30  Bruno Haible  <bruno@clisp.org>
22335
22336         stat: Update regarding AIX.
22337         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22338         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22339         Reported by Rainer Tammer.
22340
22341 2010-07-30  Bruno Haible  <bruno@clisp.org>
22342
22343         truncl: Fix autoconf test.
22344         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22345         whether truncl works.
22346         Reported by Rainer Tammer.
22347
22348 2010-07-30  Bruno Haible  <bruno@clisp.org>
22349
22350         round: Update regarding AIX.
22351         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22352         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22353         Reported by Rainer Tammer.
22354
22355 2010-07-30  Bruno Haible  <bruno@clisp.org>
22356
22357         rename: Update regarding AIX.
22358         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22359         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22360         Reported by Rainer Tammer.
22361
22362 2010-07-30  Bruno Haible  <bruno@clisp.org>
22363
22364         printf.m4: Update regarding AIX.
22365         * m4/printf.m4: Update comments regarding AIX.
22366         Reported by Rainer Tammer.
22367
22368 2010-07-30  Bruno Haible  <bruno@clisp.org>
22369
22370         iconv: Update regarding AIX.
22371         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22372         AIX 7.
22373         Reported by Rainer Tammer.
22374
22375 2010-07-30  Bruno Haible  <bruno@clisp.org>
22376
22377         getopt: Update regarding AIX.
22378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22379         no on AIX.
22380         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22381         Reported by Rainer Tammer.
22382
22383 2010-07-30  Bruno Haible  <bruno@clisp.org>
22384
22385         ldexpl; Update regarding AIX.
22386         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22387         on AIX 7.
22388         Reported by Rainer Tammer.
22389
22390 2010-07-30  Bruno Haible  <bruno@clisp.org>
22391
22392         frexpl: Update regarding AIX.
22393         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22394         on AIX 7.
22395         Reported by Rainer Tammer.
22396
22397 2010-07-30  Bruno Haible  <bruno@clisp.org>
22398
22399         open, fopen: Update regarding AIX.
22400         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22401         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22402         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22403         * doc/posix-functions/fopen.texi: Likewise.
22404         Reported by Rainer Tammer.
22405
22406 2010-07-30  Bruno Haible  <bruno@clisp.org>
22407
22408         chown: Update doc regarding AIX.
22409         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22410         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22411         Reported by Rainer Tammer.
22412
22413 2010-07-30  Eric Blake  <eblake@redhat.com>
22414
22415         strtod: fix bug in replacement function on AIX
22416         * lib/strtod.c (strtod): Special case broken "0x" parse in
22417         underlying strtod.
22418         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22419         * doc/posix-functions/strtod.texi (strtod): Likewise.
22420         Reported by Rainer Tammer.
22421
22422 2010-07-30  Bruno Haible  <bruno@clisp.org>
22423
22424         mbrlen: Fix cross-compilation guess for AIX.
22425         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22426         guess. Leftover from 2008-12-22.
22427
22428 2010-07-30  Bruno Haible  <bruno@clisp.org>
22429
22430         mbrtowc: Fix cross-compilation guess for AIX.
22431         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22432         guess. Leftover from 2008-12-21.
22433
22434 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22435
22436         init.sh: work around trap limitation of some shells
22437         * tests/init.sh (setup_): Move exit trap outside of shell function.
22438
22439 2010-07-29  Eric Blake  <eblake@redhat.com>
22440
22441         strtod: aid debugging
22442         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22443         understanding why strtod is rejected.
22444
22445 2010-07-28  Bruno Haible  <bruno@clisp.org>
22446
22447         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22448         * lib/unistr/u8-chr.c: Include <string.h>.
22449         * tests/unistr/test-u8-chr.c: Likewise.
22450         * tests/unistr/test-u16-chr.c: Likewise.
22451         * tests/unistr/test-u32-chr.c: Likewise.
22452         * tests/unistr/test-u8-strchr.c: Likewise.
22453         * tests/unistr/test-u16-strchr.c: Likewise.
22454         * tests/unistr/test-u32-strchr.c: Likewise.
22455         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22456         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22457         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22458         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22459
22460 2010-07-28  Bruno Haible  <bruno@clisp.org>
22461
22462         Use spaces for indentation, not tabs.
22463         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22464
22465 2010-07-27  Bruno Haible  <bruno@clisp.org>
22466
22467         mbspcasecmp: Fix function specification.
22468         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22469         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22470         Reported by Eric Blake <eblake@redhat.com>.
22471
22472 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22473
22474         timespec: use cast and not conditional, as truncation isn't possible
22475         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22476         instead of a conditional.  Comment about the situation in more detail.
22477         This undoes most of the 2009-10-29 patch.
22478
22479 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22480
22481         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22482         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22483         * lib/unistr/u8-strchr.c: Likewise.
22484         * modules/unistr/u8-chr: Depend on memchr.
22485
22486         unistr/u*-strchr: add tests
22487         * modules/unistr/u8-strchr-tests: New file.
22488         * modules/unistr/u16-strchr-tests: New file.
22489         * modules/unistr/u32-strchr-tests: New file.
22490         * tests/unistr/test-strchr.h: New file.
22491         * tests/unistr/test-u8-strchr.c: New file.
22492         * tests/unistr/test-u16-strchr.c: New file.
22493         * tests/unistr/test-u32-strchr.c: New file.
22494
22495         unistr/u*-chr: test multibyte sequences more
22496         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22497         test vector.
22498         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22499         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22500         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22501
22502         unistr/u*-chr: test multibyte sequences
22503         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22504
22505         unistr/u*-chr: prepare for multibyte tests
22506         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22507         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22508         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22509         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22510         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22511         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22512
22513 2010-07-18  Bruno Haible  <bruno@clisp.org>
22514
22515         unistr/u8-strchr: Optimize non-ASCII argument case.
22516         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22517         because the first byte often matches anyway.
22518         Reported by Pádraig Brady <P@draigbrady.com>.
22519
22520 2010-07-15  Karl Berry  <karl@gnu.org>
22521
22522         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22523
22524 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22525
22526         getcwd: on Solaris, work better if ancestors are inaccessible
22527         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22528         buffer and size, try again with a large buffer.  This works better
22529         on Solaris, since its getcwd succeeds even if the path to the root
22530         is inaccessible, and this is helpful in common cases such as .zfs
22531         hidden directories.  Problem reported by J Chapman Flack in
22532         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22533         Use system getcwd if it's declared, not merely if it's partly
22534         working; use the partly-working test only to avoid needless effort
22535         if the system getcwd fails.
22536         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22537         comment that was already obsolete and is now even more obsolete.
22538         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22539         now might call strdup.
22540
22541 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22542
22543         pthread: Add enough so that coreutils/src/sort.c compiles.
22544         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22545         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22546         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22547         Include <sys/types.h>, in case it defines pthread_t.
22548         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22549         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22550         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22551         (pthread_rwlockattr_t, pthread_spinlock_t):
22552         New typedefs, if HAVE_PTHREAD_T is not defined.
22553         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22554         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22555         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22556         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22557         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22558         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22559         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22560         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22561         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22562         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22563         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22564         New macros.
22565         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22566         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22567         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22568         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22569         (pthread_spin_unlock): New dummy functions.
22570         (pthread_create): Return EAGAIN; don't set errno.
22571         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22572         require AC_C_INLINE.
22573         * modules/pthread (Depends-on): Add sched, time.
22574         (pthread.h): Use AM_V_GEN.
22575
22576 2010-07-13  Bruno Haible  <bruno@clisp.org>
22577
22578         striconveh: Don't malloc memory if the result buffer is sufficient.
22579         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22580         buffer if its size is sufficient.
22581         Reported by Ludovic Courtès <ludo@gnu.org>.
22582
22583 2010-07-13  Bruno Haible  <bruno@clisp.org>
22584
22585         strtod: Add safety check.
22586         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22587
22588 2010-07-12  Bruno Haible  <bruno@clisp.org>
22589
22590         Unify tests that set gl_cv_func_ldexpl_no_libm.
22591         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22592         gl_FUNC_LDEXPL.
22593         (gl_FUNC_LDEXPL): Invoke it.
22594         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22595
22596 2010-07-12  Bruno Haible  <bruno@clisp.org>
22597
22598         Unify tests that set gl_cv_func_ldexp_no_libm.
22599         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22600         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22601         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22602         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22603         * modules/strtod (Files): Add m4/ldexp.m4.
22604
22605 2010-07-12  Bruno Haible  <bruno@clisp.org>
22606
22607         Unify tests that set gl_cv_func_frexpl_no_libm.
22608         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22609         gl_FUNC_FREXPL_NO_LIBM.
22610         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22611         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22612
22613 2010-07-12  Bruno Haible  <bruno@clisp.org>
22614
22615         Unify tests that set gl_cv_func_frexp_no_libm.
22616         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22617         gl_FUNC_FREXP_NO_LIBM.
22618         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22619         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22620
22621 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22622
22623         memcoll: clarify sizes versus lengths, document better, and tweak perf
22624         * lib/memcoll.c (strcoll_loop, memcoll0):
22625         Improve quality of descriptive comments.  Name variables
22626         consistently as to whether they are lengths (which do not include
22627         terminating null) versus sizes (which do).
22628         * lib/xmemcoll.c (xmemcoll0): Likewise.
22629         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22630         returned when s1size == 0; this is easier to compile and saves
22631         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22632
22633 2010-07-12  Bruno Haible  <bruno@clisp.org>
22634
22635         Tests for module '_Exit'.
22636         * modules/_Exit-tests: New file.
22637         * tests/test-_Exit.sh: New file.
22638         * tests/test-_Exit.c: New file.
22639
22640         New module '_Exit'.
22641         * lib/stdlib.in.h (__attribute__): New macro.
22642         (_Exit): New declaration.
22643         * lib/_Exit.c: New file.
22644         * m4/_Exit.m4: New file.
22645         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22646         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22647         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22648         * modules/_Exit: New file.
22649         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22650         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22651
22652 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22653
22654         strtod: make it more-accurate typically, and don't require libm
22655         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22656         Include limits.h.  Don't include string.h.
22657         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22658         (locale_isspace): New function, so that no casts are needed to
22659         check whether *s is a space.
22660         (ldexp): Provide an unused dummy if not available.
22661         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22662         (strtod): Use them.  This implementation prefers to use the
22663         underlying strtod if available, falling back on our own code
22664         only to fix known bugs.  This is more likely to produce an
22665         accurate result.  Also, it avoids the use of libm functions.
22666         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22667         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22668         was absent, but it caused a test failure with coreutils.
22669         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22670         with libm.
22671         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22672         * modules/strtod-tests (Makefile.am): Likewise.
22673
22674 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22675             Bruno Haible  <bruno@clisp.org>
22676
22677         unistr/u8-strchr: Optimize ASCII argument case.
22678         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22679
22680 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22681
22682         (x)memcoll: minor tweaks
22683         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22684         is after the type that it qualifies.
22685         (memcoll0): Likewise.
22686         * lib/memcoll.h (memcoll0): Likewise.
22687         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22688         * lib/xmemcoll.h (xmemcoll0): Likewise.
22689         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22690         differs from memcoll in that the NUL byte is part of the argument.
22691         Omit the abort-checks, as performance is a real issue here.  Plus,
22692         the checks were wrong anyway (an off-by-one error).  Omit local
22693         variable 'diff', as it's a bit clearer that way.
22694         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22695         no longer needed.
22696
22697 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22698
22699         (x)memcoll: speedup when input is known to be NUL delimited
22700         * lib/memcoll.c: Include stdlib.
22701         (memcoll0): New function.
22702         (strcoll_loop): New function, refactored for use in both memcoll
22703         and memcoll0.
22704         * lib/memcoll.h (memcoll0): Add prototype.
22705         * lib/xmemcoll.c (xmemcoll0): New function.
22706         (collate_error): New function, refactored for use in both xmemcoll
22707         and xmemcoll0.
22708         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22709         * m4/memcoll.m4: add inline invocation.
22710
22711 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22712
22713         * build-aux/bootstrap: Remove any local translations
22714         from the translation project synchronization directory,
22715         so that local only translations are not distributed.
22716
22717 2010-07-04  Bruno Haible  <bruno@clisp.org>
22718
22719         fsusage: Clarify which code applies to which platforms.
22720         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22721         platform.
22722         * lib/fsusage.c (get_fs_usage): Likewise.
22723
22724 2010-07-04  Bruno Haible  <bruno@clisp.org>
22725
22726         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22727         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22728         Reported by Martin Lambers <marlam@marlam.de>.
22729
22730 2010-07-04  Jim Meyering  <meyering@redhat.com>
22731
22732         hash: once again explicitly disallow insertion of NULL
22733         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22734         inserting a NULL pointer cannot work with these functions.
22735         Add a comment with details.
22736         This reverts part of the 2010-07-01 commit, 5bef1a35
22737         "hash: extend module to deal with non-pointer keys".
22738
22739 2010-07-01  Bruno Haible  <bruno@clisp.org>
22740
22741         stdbool: Update doc.
22742         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22743         Info from Christian Weisgerber <naddy@mips.inka.de>.
22744
22745 2010-07-01  Jim Meyering  <meyering@redhat.com>
22746
22747         hash: extend module to deal with non-pointer keys
22748         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22749         but that allows insertion of non-pointer entries.
22750         Do not disallow an ENTRY value of NULL.
22751         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22752         * lib/hash.h (hash_insert0): Declare.
22753
22754 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22755
22756         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22757         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22758         not present (i.e. with autoconf 2.59 and when using gettextize, not
22759         gnulib), require AC_GNU_SOURCE instead.
22760
22761 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22762
22763         idpriv-drop: Fix tests.
22764         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22765         not to the test-idpriv-droptemp program.
22766
22767 2010-06-29  Bruno Haible  <bruno@clisp.org>
22768
22769         string: Fix syntax error with g++ 2.96.
22770         * lib/string.in.h (__pure__): Remove definition.
22771         (_GL_ATTRIBUTE_PURE): New macro.
22772         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22773         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22774         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22775
22776 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22777
22778         unitypes: Fix bug introduced on 2010-05-18.
22779         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22780
22781 2010-06-22  Eric Blake  <eblake@redhat.com>
22782
22783         memmem: slight optimization
22784         * lib/str-two-way.h (critical_factorization): Update comments.
22785         Reduce work during factorization phase.
22786         Reported by Carlos Bueno <carlos@bueno.org>.
22787
22788 2010-06-21  Bruno Haible  <bruno@clisp.org>
22789
22790         Fix HAVE_CALLOC_POSIX misnomer.
22791         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22792         !HAVE_CALLOC_POSIX.
22793         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22794         HAVE_CALLOC_POSIX.
22795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22796         instead of HAVE_CALLOC_POSIX.
22797         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22798         HAVE_CALLOC_POSIX.
22799
22800         Use modern idiom for calloc() replacement.
22801         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22802         AC_FUNC_CALLOC.
22803         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22804         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22805         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22806         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22807         (gl_REPLACE_CALLOC): New macro.
22808
22809 2010-06-21  Bruno Haible  <bruno@clisp.org>
22810
22811         Fix HAVE_REALLOC_POSIX misnomer.
22812         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22813         !HAVE_REALLOC_POSIX.
22814         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22815         HAVE_REALLOC_POSIX.
22816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22817         instead of HAVE_REALLOC_POSIX.
22818         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22819         HAVE_REALLOC_POSIX.
22820
22821         Use modern idiom for realloc() replacement.
22822         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22823         AC_FUNC_REALLOC.
22824         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22825         Autoconf's AC_FUNC_REALLOC.
22826         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22827         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22828         (gl_REPLACE_REALLOC): New macro.
22829         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22830
22831 2010-06-21  Bruno Haible  <bruno@clisp.org>
22832
22833         Fix HAVE_MALLOC_POSIX misnomer.
22834         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22835         !HAVE_MALLOC_POSIX.
22836         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22837         HAVE_MALLOC_POSIX.
22838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22839         instead of HAVE_MALLOC_POSIX.
22840         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22841         HAVE_MALLOC_POSIX.
22842
22843         Use modern idiom for malloc() replacement.
22844         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22845         AC_FUNC_MALLOC.
22846         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22847         Autoconf's AC_FUNC_MALLOC.
22848         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22849         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22850         (gl_REPLACE_MALLOC): New macro.
22851         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22852
22853 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22854
22855         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22856         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22857         This macro takes 3 arguments, not 4.
22858
22859 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22860
22861         ipv6: fix detection under mingw
22862         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22863         in6_addr.
22864
22865 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22866
22867         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22868         that strtod() works when cross-compiling to a glibc version known
22869         to work.
22870
22871 2010-06-15  Bruno Haible  <bruno@clisp.org>
22872
22873         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22874
22875 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22876
22877         select: Correct timeout.
22878         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22879
22880 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22881
22882         git-version-gen: init shell var to avoid env var influence
22883         * build-aux/git-version-gen (v): Init shell var to empty.
22884
22885 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22886
22887         priv-set: Don't assume that priv.h exists merely because getppriv does.
22888         See Jan Andersen's bug report about AIX 5L in
22889         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22890         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22891         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22892         * lib/priv-set.h: Likewise.
22893         * tests/test-priv-set.c: Likewise.
22894
22895 2010-06-13  Bruno Haible  <bruno@clisp.org>
22896
22897         relocatable: Make it easier to test whether to install wrappers.
22898         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22899         RELOCATABLE_VIA_WRAPPER.
22900
22901 2010-06-13  Bruno Haible  <bruno@clisp.org>
22902
22903         gnulib-tool: Display specified modules and dependencies differently.
22904         * gnulib-tool (func_show_module_list): New function.
22905         (func_import, func_create_testdir): Invoke it.
22906         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22907
22908 2010-06-13  Bruno Haible  <bruno@clisp.org>
22909
22910         gnulib-tool: Align code of func_import and func_create_testdir.
22911         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22912         specified_modules.
22913
22914 2010-06-12  Jim Meyering  <meyering@redhat.com>
22915
22916         test-inttostr: avoid spurious failure on Solaris 9
22917         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22918         to accept "%ju".  Reported by Bruno Haible.
22919
22920 2010-06-11  Jim Meyering  <meyering@redhat.com>
22921
22922         test-sys_socket: mark variables as used more readably
22923         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22924         as "used" explicitly via (void) statement casts.  This is more
22925         readable than using them in an artificial return expression.
22926         Suggestion from Bruno Haible.
22927
22928 2010-06-11  Bruno Haible  <bruno@clisp.org>
22929
22930         Avoid some more warnings from "gcc -Wwrite-strings".
22931         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22932         to 'const char *'.
22933         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22934         * tests/test-c-strcasestr.c (main): Likewise.
22935         * tests/test-mbscasestr1.c (main): Likewise.
22936         * tests/test-mbscasestr2.c (main): Likewise.
22937         * tests/test-memmem.c (main): Likewise.
22938         * tests/test-strstr.c (main): Likewise.
22939         * tests/test-strcasestr.c (main): Likewise.
22940
22941 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22942
22943         init.sh: change framework_failure_ to fail with status 99, not 1
22944         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22945         automake's parallel-tests rule that this is an unexpected failure,
22946         even if the test is listed in XFAIL_TESTS.
22947
22948 2010-06-11  Jim Meyering  <meyering@redhat.com>
22949
22950         test-inttostr: avoid warnings about 4-6KB literal strings
22951         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22952         Include "macros.h", for its definition of ASSERT.
22953         (CK): s/assert/ASSERT/
22954         * modules/inttostr-tests (Files): Add macros.h.
22955
22956         init.sh: don't use $ME_ or skip_ before they are defined
22957         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22958         their first uses.  Also hoist their companions: warn_, fail_,
22959         framework_failure_, $stderr_fileno.  Prompted by a patch from
22960         Stefano Lattarini.
22961
22962         test-sys_socket: avoid set-but-not-used warnings from gcc
22963         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22964         avoid warning about set-but-not-used variables.
22965
22966         test-xvasprintf: avoid 'const' discard warnings
22967         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22968         "const" when assigning from literal strings.
22969         (test_xasprintf): Add "void" in function argument list to placate
22970         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22971
22972         tests: avoid compilation warnings in argmatch and exclude tests...
22973         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22974         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22975         Since it always exits, declare with the "noreturn" attribute.
22976         * tests/test-argmatch.c: Likewise.
22977
22978         tests: avoid 'const' discard warnings in mbsstr tests
22979         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22980         * tests/test-mbsstr2.c (main): Likewise.
22981
22982         test-verify: avoid warning from gcc's -Wmissing-declarations
22983         * tests/test-verify.c (function): Declare to be static.
22984
22985         test-inttostr.c: include <string.h> for use of strcmp
22986         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22987
22988         test-linkat: avoid failed assertion on "other" architectures
22989         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22990         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22991         sparc: https://bugs.launchpad.net/bugs/591968
22992
22993 2010-06-11  Jim Meyering  <meyering@redhat.com>
22994
22995         printf.m4: avoid autoconf's "Expanded Before Required" warning
22996         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22997         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22998         autoconf warning.
22999
23000 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23001
23002         Replacement header templates are now named with ".in", not "_".
23003         * doc/gnulib-intro.texi: Correct.
23004
23005 2010-06-10  Jim Meyering  <meyering@redhat.com>
23006
23007         inttostr-tests: depend on snprintf, not snprintf-posix
23008         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23009         snprintf-posix, to avoid this aclocal failure:
23010           missing file gnulib-tests/vasnprintf.c
23011           configure.ac:45: error: expected source file, required through \
23012           AC_LIBSOURCES, not found
23013
23014 2010-06-10  Jim Meyering  <meyering@redhat.com>
23015
23016         inttostr: add a new function, inttostr, and tests
23017         The namesake function was not available.  The existence of the
23018         template file, inttostr.c makes its addition nontrivial.
23019         * lib/anytostr.c: Rename from inttostr.c.
23020         (anytostr): Rename from inttostr.
23021         * lib/inttostr.c: New file.
23022         * modules/inttostr (Files): Add anytostr.c.
23023         (Makefile.am): Set lib_SOURCES instead of ...
23024         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23025         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23026         * lib/offtostr.c: Likewise.
23027         * lib/uinttostr.c: Likewise.
23028         * lib/umaxtostr.c: Likewise.
23029         * modules/inttostr-tests: New file.
23030         * tests/test-inttostr.c: New file.  Test these functions.
23031
23032 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23033             Bruno Haible  <bruno@clisp.org>
23034
23035         Add "Extending Gnulib" chapter to manual.
23036         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23037         chapter.
23038         (Extending Gnulib): New chapter.
23039         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23040         chapter.
23041
23042 2010-06-09  Bruno Haible  <bruno@clisp.org>
23043
23044         Avoid relocwrapper link errors due to gnulib replacement functions.
23045         * lib/areadlink.c: Use the system's malloc, realloc functions.
23046         (areadlink): Set errno to ENOMEM explicitly.
23047         * modules/areadlink (Depends-on): Remove malloc-posix.
23048         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23049
23050 2010-06-09  Bruno Haible  <bruno@clisp.org>
23051
23052         Avoid relocwrapper link errors due to gnulib replacement functions.
23053         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23054         * lib/malloca.c: Likewise.
23055         * lib/relocatable.c: Likewise.
23056         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23057         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23058         * lib/setenv.c: Use the system's malloc, realloc functions.
23059         * lib/strerror.c: Use the system's sprintf function.
23060         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23061
23062 2010-06-04  Bruno Haible  <bruno@clisp.org>
23063
23064         Prefer documented low-level autoconf macro names.
23065         * m4/lib-link.m4: Use m4_translit instead of translit.
23066         * m4/environ.m4: Likewise.
23067         * m4/mathfunc.m4: Likewise.
23068         * m4/onceonly.m4: Likewise.
23069         * m4/stdint.m4: Likewise.
23070         Suggested by Eric Blake.
23071
23072 2010-06-04  Martin Lambers  <marlam@marlam.de>
23073             Bruno Haible  <bruno@clisp.org>
23074
23075         havelib: Allow library names with '+' characters.
23076         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23077         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23078
23079 2010-06-09  Bruno Haible  <bruno@clisp.org>
23080
23081         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23082         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23083         realloc failed.
23084
23085 2010-06-08  Peter Simons  <simons@cryp.to>
23086
23087         maint.mk: make the news-check rule more configurable
23088         * top/maint.mk (news-check-lines-spec): New variable.
23089         (news-check): Use "sed -n 1,10p" in place of "head".
23090
23091 2010-06-07  Jim Meyering  <meyering@redhat.com>
23092
23093         do-release-commit-and-tag: fix typo in --help
23094         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23095
23096         regex: avoid new dead-code warning with gcc-4.6.0
23097         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23098         if-block containing a while-loop.  It's been unused for at least
23099         5 years.
23100
23101 2010-06-05  Bruno Haible  <bruno@clisp.org>
23102
23103         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23104         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23105
23106 2010-06-04  Bruno Haible  <bruno@clisp.org>
23107
23108         Update to GNU gettext 0.18.1.
23109         * modules/gettext (configure.ac): Require gettext infrastructure from
23110         version 0.18.1.
23111
23112 2010-06-03  Bruno Haible  <bruno@clisp.org>
23113
23114         Don't use AC_LIBOBJ with file names in subdirectories.
23115         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23116         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23117         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23118         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23119         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23120         gl_LIBUNISTRING_LIBSOURCE.
23121         (Makefile.am): Augment lib_SOURCES here, conditionally.
23122         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23123
23124 2010-06-03  Bruno Haible  <bruno@clisp.org>
23125
23126         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23127         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23128         expansion does not end with a newline.
23129         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23130         unnecessary newline.
23131
23132 2010-06-03  Bruno Haible  <bruno@clisp.org>
23133
23134         Reduce dependencies.
23135         * tests/test-quotearg.h: New file, extracted from
23136         tests/test-quotearg.c.
23137         * tests/test-quotearg-simple.c: New file, extracted from
23138         tests/test-quotearg.c.
23139         * tests/test-quotearg.c: Don't include <ctype.h>.
23140         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23141         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23142         use_quote_double_quotes, use_quotearg_colon): Moved to
23143         tests/test-quotearg.h.
23144         (results_g, flag_results, custom_quotes, custom_results): Moved
23145         to tests/test-quotearg-simple.c.
23146         (main): Moved the part that does not depend on gettext to
23147         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23148         performed.
23149         * modules/quotearg-simple: New file.
23150         * modules/quotearg-simple-tests: New file.
23151         * modules/quotearg (Depends-on): Add quotearg-simple.
23152         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23153         (Files): Add tests/test-quotearg.h.
23154         Reported by Paolo Bonzini.
23155
23156 2010-06-03  Bruno Haible  <bruno@clisp.org>
23157
23158         Reduce dependencies.
23159         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23160
23161 2010-06-03  Bruno Haible  <bruno@clisp.org>
23162
23163         time: Undefine more broken macros.
23164         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23165         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23166         Reported by Eric Blake.
23167
23168 2010-06-03  Bruno Haible  <bruno@clisp.org>
23169
23170         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23171         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23172         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23173         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23174         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23175         Reported by Ludovic Courtès <ludo@gnu.org>.
23176
23177 2010-06-02  Eric Blake  <eblake@redhat.com>
23178
23179         time: work with mingw + pthreads-win32 library
23180         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23181         if timespec is defined only in pthread.h.
23182         * modules/time (Makefile.am): Substitute it.
23183         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23184         <pthread.h>, when needed.
23185         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23186         from the library.
23187
23188 2010-05-31  Bruno Haible  <bruno@clisp.org>
23189
23190         Avoid expanding two macros in the wrong order.
23191         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23192         gl_LIBUNISTRING if it is defined.
23193         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23194         autoconf >= 2.64.
23195         Reported by Ludovic Courtès <ludo@gnu.org>.
23196
23197 2010-05-27  Jim Meyering  <meyering@redhat.com>
23198
23199         maint.mk: also prohibit "#undef" of always-defined symbols
23200         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23201         Allow more than one space before the symbol name.
23202         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23203         the regexp uses alternation.
23204
23205 2010-05-26  Eric Blake  <eblake@redhat.com>
23206
23207         maint.mk: avoid echo -e
23208         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23209         Convert all uses of echo -* to printf.
23210         Reported by Matthias Bolte.
23211
23212 2010-05-25  Bruno Haible  <bruno@clisp.org>
23213
23214         Update to GNU gettext 0.18, part 2.
23215         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23216         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23217
23218 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23219
23220         Add missing include in test-pwrite.c.
23221         * tests/test-pwrite.c: Include string.h, for strcmp.
23222
23223 2010-05-24  Bruno Haible  <bruno@clisp.org>
23224
23225         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23226
23227 2010-05-24  Bruno Haible  <bruno@clisp.org>
23228
23229         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23230         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23231         iconveh_error argument.
23232         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23233         U_STRCONV_TO_LOCALE.
23234         * lib/unistr/u16-strcoll.c: Likewise.
23235         * lib/unistr/u32-strcoll.c: Likewise.
23236         * modules/unistr/u8-strcoll (Depends-on): Add
23237         uniconv/u8-strconv-to-enc, localcharset. Remove
23238         uniconv/u8-strconv-to-locale.
23239         (configure.ac): Bump version number.
23240         * modules/unistr/u16-strcoll (Depends-on): Add
23241         uniconv/u16-strconv-to-enc, localcharset. Remove
23242         uniconv/u16-strconv-to-locale.
23243         (configure.ac): Bump version number.
23244         * modules/unistr/u32-strcoll (Depends-on): Add
23245         uniconv/u32-strconv-to-enc, localcharset. Remove
23246         uniconv/u32-strconv-to-locale.
23247         (configure.ac): Bump version number.
23248
23249 2010-05-24  Bruno Haible  <bruno@clisp.org>
23250
23251         Avoid a test failure on NetBSD 5.0.
23252         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23253         an iconv() bug.
23254
23255 2010-05-24  Bruno Haible  <bruno@clisp.org>
23256
23257         Adjust #include directive style.
23258         * modules/regex (Includes): Recommend to write <regex.h>.
23259
23260 2010-05-24  Bruno Haible  <bruno@clisp.org>
23261
23262         regex: Don't require alloca.
23263         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23264         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23265         only inside if (0).
23266
23267 2010-05-23  Jim Meyering  <meyering@redhat.com>
23268
23269         test-renameat.c: include <sys/stat.h>
23270         * tests/test-renameat.c: Include <sys/stat.h>; required for
23271         definition of S_IS* macros.
23272
23273 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23274
23275         Update maintainer documentation for 'relocatable-prog' module.
23276         * doc/relocatable-maint.texi: Update.
23277         Comments by Bruno Haible.
23278
23279 2010-05-23  Bruno Haible  <bruno@clisp.org>
23280
23281         git-merge-changelog: Enable --split-merged-entry by default.
23282         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23283         (usage): Don't mention this option any more.
23284         Reported by Ralf Wildenhues.
23285
23286 2010-05-23  Jim Meyering  <meyering@redhat.com>
23287
23288         test-pwrite: do not leave behind a test file named "out"
23289         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23290         The trivial-looking use of init.sh is really necessary.
23291         It ensures that the temporary file, "out", is created in
23292         a temporary directory, and removed upon termination.
23293         * tests/test-pwrite.sh: Re-add file.
23294         * modules/pwrite-tests: Reference it.
23295
23296 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23297
23298         Fix output redirection buglet in init.sh.
23299         * tests/init.sh: Fix redirection of stderr.
23300
23301 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23302
23303         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23304
23305 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23306
23307         * modules/valgrind-tests: New file.
23308         * m4/valgrind-tests.m4: New file.
23309         * doc/valgrind-tests.texi: New file.
23310         * doc/gnulib.texi (Running self-tests under valgrind): New
23311         section.
23312
23313 2010-05-19  Bruno Haible  <bruno@clisp.org>
23314
23315         Clean up dead code in recent commit.
23316         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23317         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23318         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23319         Suggested by Paolo Bonzini.
23320
23321 2010-05-19  Bruno Haible  <bruno@clisp.org>
23322
23323         Avoid valgrind error reports from libunistring.
23324         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23325         * modules/libunistring (Files): Add it.
23326         * modules/libunistring-optional (Files): Likewise.
23327
23328 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23329             Bruno Haible  <bruno@clisp.org>
23330
23331         New module 'libunistring-optional'.
23332         * modules/libunistring-optional: New file.
23333         * m4/libunistring-base.m4: New file.
23334         * m4/libunistring-optional.m4: New file.
23335         * lib/unicase.in.h: Renamed from lib/unicase.h.
23336         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23337         * lib/unictype.in.h: Renamed from lib/unictype.h.
23338         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23339         * lib/uniname.in.h: Renamed from lib/uniname.h.
23340         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23341         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23342         * lib/unistr.in.h: Renamed from lib/unistr.h.
23343         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23344         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23345         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23346         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23347         gl_LIBUNISTRING. If the library was found, determine the installed
23348         version and set LIBUNISTRING_VERSION.
23349         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23350         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23351         handle a configuration option --with-included-libunistring.
23352         * modules/libunistring (Files): Add m4/absolute-header.m4.
23353         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23354         Add m4/libunistring-base.m4.
23355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23356         (Makefile.am): Build unicase.h from unicase.in.h.
23357         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23358         Add m4/libunistring-base.m4.
23359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23360         (Makefile.am): Build uniconv.h from uniconv.in.h.
23361         * modules/unictype/base (Files): Use unictype.in.h instead of
23362         unictype.h. Add m4/libunistring-base.m4.
23363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23364         (Makefile.am): Build unictype.h from unictype.in.h.
23365         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23366         Add m4/libunistring-base.m4.
23367         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23368         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23369         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23370         Add m4/libunistring-base.m4.
23371         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23372         (Makefile.am): Build uniname.h from uniname.in.h.
23373         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23374         Add m4/libunistring-base.m4.
23375         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23376         (Makefile.am): Build uninorm.h from uninorm.in.h.
23377         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23378         unistdio.h. Add m4/libunistring-base.m4.
23379         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23380         (Makefile.am): Build unistdio.h from unistdio.in.h.
23381         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23382         Add m4/libunistring-base.m4.
23383         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23384         (Makefile.am): Build unistr.h from unistr.in.h.
23385         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23386         Add m4/libunistring-base.m4.
23387         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23388         (Makefile.am): Build unitypes.h from unitypes.in.h.
23389         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23390         Add m4/libunistring-base.m4.
23391         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23392         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23393         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23394         uniwidth.h. Add m4/libunistring-base.m4.
23395         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23396         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23397         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23398         instead of augmenting lib_SOURCES.
23399         * modules/unicase/empty-suffix-context: Likewise.
23400         * modules/unicase/locale-language: Likewise.
23401         * modules/unicase/tolower: Likewise.
23402         * modules/unicase/totitle: Likewise.
23403         * modules/unicase/toupper: Likewise.
23404         * modules/unicase/u8-casecmp: Likewise.
23405         * modules/unicase/u8-casecoll: Likewise.
23406         * modules/unicase/u8-casefold: Likewise.
23407         * modules/unicase/u8-casexfrm: Likewise.
23408         * modules/unicase/u8-ct-casefold: Likewise.
23409         * modules/unicase/u8-ct-tolower: Likewise.
23410         * modules/unicase/u8-ct-totitle: Likewise.
23411         * modules/unicase/u8-ct-toupper: Likewise.
23412         * modules/unicase/u8-is-cased: Likewise.
23413         * modules/unicase/u8-is-casefolded: Likewise.
23414         * modules/unicase/u8-is-lowercase: Likewise.
23415         * modules/unicase/u8-is-titlecase: Likewise.
23416         * modules/unicase/u8-is-uppercase: Likewise.
23417         * modules/unicase/u8-prefix-context: Likewise.
23418         * modules/unicase/u8-suffix-context: Likewise.
23419         * modules/unicase/u8-tolower: Likewise.
23420         * modules/unicase/u8-totitle: Likewise.
23421         * modules/unicase/u8-toupper: Likewise.
23422         * modules/unicase/u16-casecmp: Likewise.
23423         * modules/unicase/u16-casecoll: Likewise.
23424         * modules/unicase/u16-casefold: Likewise.
23425         * modules/unicase/u16-casexfrm: Likewise.
23426         * modules/unicase/u16-ct-casefold: Likewise.
23427         * modules/unicase/u16-ct-tolower: Likewise.
23428         * modules/unicase/u16-ct-totitle: Likewise.
23429         * modules/unicase/u16-ct-toupper: Likewise.
23430         * modules/unicase/u16-is-cased: Likewise.
23431         * modules/unicase/u16-is-casefolded: Likewise.
23432         * modules/unicase/u16-is-lowercase: Likewise.
23433         * modules/unicase/u16-is-titlecase: Likewise.
23434         * modules/unicase/u16-is-uppercase: Likewise.
23435         * modules/unicase/u16-prefix-context: Likewise.
23436         * modules/unicase/u16-suffix-context: Likewise.
23437         * modules/unicase/u16-tolower: Likewise.
23438         * modules/unicase/u16-totitle: Likewise.
23439         * modules/unicase/u16-toupper: Likewise.
23440         * modules/unicase/u32-casecmp: Likewise.
23441         * modules/unicase/u32-casecoll: Likewise.
23442         * modules/unicase/u32-casefold: Likewise.
23443         * modules/unicase/u32-casexfrm: Likewise.
23444         * modules/unicase/u32-ct-casefold: Likewise.
23445         * modules/unicase/u32-ct-tolower: Likewise.
23446         * modules/unicase/u32-ct-totitle: Likewise.
23447         * modules/unicase/u32-ct-toupper: Likewise.
23448         * modules/unicase/u32-is-cased: Likewise.
23449         * modules/unicase/u32-is-casefolded: Likewise.
23450         * modules/unicase/u32-is-lowercase: Likewise.
23451         * modules/unicase/u32-is-titlecase: Likewise.
23452         * modules/unicase/u32-is-uppercase: Likewise.
23453         * modules/unicase/u32-prefix-context: Likewise.
23454         * modules/unicase/u32-suffix-context: Likewise.
23455         * modules/unicase/u32-tolower: Likewise.
23456         * modules/unicase/u32-totitle: Likewise.
23457         * modules/unicase/u32-toupper: Likewise.
23458         * modules/unicase/ulc-casecmp: Likewise.
23459         * modules/unicase/ulc-casecoll: Likewise.
23460         * modules/unicase/ulc-casexfrm: Likewise.
23461         * modules/uniconv/u8-conv-from-enc: Likewise.
23462         * modules/uniconv/u8-conv-to-enc: Likewise.
23463         * modules/uniconv/u8-strconv-from-enc: Likewise.
23464         * modules/uniconv/u8-strconv-from-locale: Likewise.
23465         * modules/uniconv/u8-strconv-to-enc: Likewise.
23466         * modules/uniconv/u8-strconv-to-locale: Likewise.
23467         * modules/uniconv/u16-conv-from-enc: Likewise.
23468         * modules/uniconv/u16-conv-to-enc: Likewise.
23469         * modules/uniconv/u16-strconv-from-enc: Likewise.
23470         * modules/uniconv/u16-strconv-from-locale: Likewise.
23471         * modules/uniconv/u16-strconv-to-enc: Likewise.
23472         * modules/uniconv/u16-strconv-to-locale: Likewise.
23473         * modules/uniconv/u32-conv-from-enc: Likewise.
23474         * modules/uniconv/u32-conv-to-enc: Likewise.
23475         * modules/uniconv/u32-strconv-from-enc: Likewise.
23476         * modules/uniconv/u32-strconv-from-locale: Likewise.
23477         * modules/uniconv/u32-strconv-to-enc: Likewise.
23478         * modules/uniconv/u32-strconv-to-locale: Likewise.
23479         * modules/unictype/bidicategory-byname: Likewise.
23480         * modules/unictype/bidicategory-name: Likewise.
23481         * modules/unictype/bidicategory-of: Likewise.
23482         * modules/unictype/bidicategory-test: Likewise.
23483         * modules/unictype/block-list: Likewise.
23484         * modules/unictype/block-test: Likewise.
23485         * modules/unictype/category-C: Likewise.
23486         * modules/unictype/category-Cc: Likewise.
23487         * modules/unictype/category-Cf: Likewise.
23488         * modules/unictype/category-Cn: Likewise.
23489         * modules/unictype/category-Co: Likewise.
23490         * modules/unictype/category-Cs: Likewise.
23491         * modules/unictype/category-L: Likewise.
23492         * modules/unictype/category-Ll: Likewise.
23493         * modules/unictype/category-Lm: Likewise.
23494         * modules/unictype/category-Lo: Likewise.
23495         * modules/unictype/category-Lt: Likewise.
23496         * modules/unictype/category-Lu: Likewise.
23497         * modules/unictype/category-M: Likewise.
23498         * modules/unictype/category-Mc: Likewise.
23499         * modules/unictype/category-Me: Likewise.
23500         * modules/unictype/category-Mn: Likewise.
23501         * modules/unictype/category-N: Likewise.
23502         * modules/unictype/category-Nd: Likewise.
23503         * modules/unictype/category-Nl: Likewise.
23504         * modules/unictype/category-No: Likewise.
23505         * modules/unictype/category-P: Likewise.
23506         * modules/unictype/category-Pc: Likewise.
23507         * modules/unictype/category-Pd: Likewise.
23508         * modules/unictype/category-Pe: Likewise.
23509         * modules/unictype/category-Pf: Likewise.
23510         * modules/unictype/category-Pi: Likewise.
23511         * modules/unictype/category-Po: Likewise.
23512         * modules/unictype/category-Ps: Likewise.
23513         * modules/unictype/category-S: Likewise.
23514         * modules/unictype/category-Sc: Likewise.
23515         * modules/unictype/category-Sk: Likewise.
23516         * modules/unictype/category-Sm: Likewise.
23517         * modules/unictype/category-So: Likewise.
23518         * modules/unictype/category-Z: Likewise.
23519         * modules/unictype/category-Zl: Likewise.
23520         * modules/unictype/category-Zp: Likewise.
23521         * modules/unictype/category-Zs: Likewise.
23522         * modules/unictype/category-and: Likewise.
23523         * modules/unictype/category-and-not: Likewise.
23524         * modules/unictype/category-byname: Likewise.
23525         * modules/unictype/category-name: Likewise.
23526         * modules/unictype/category-none: Likewise.
23527         * modules/unictype/category-of: Likewise.
23528         * modules/unictype/category-or: Likewise.
23529         * modules/unictype/category-test: Likewise.
23530         * modules/unictype/combining-class: Likewise.
23531         * modules/unictype/ctype-alnum: Likewise.
23532         * modules/unictype/ctype-alpha: Likewise.
23533         * modules/unictype/ctype-blank: Likewise.
23534         * modules/unictype/ctype-cntrl: Likewise.
23535         * modules/unictype/ctype-digit: Likewise.
23536         * modules/unictype/ctype-graph: Likewise.
23537         * modules/unictype/ctype-lower: Likewise.
23538         * modules/unictype/ctype-print: Likewise.
23539         * modules/unictype/ctype-punct: Likewise.
23540         * modules/unictype/ctype-space: Likewise.
23541         * modules/unictype/ctype-upper: Likewise.
23542         * modules/unictype/ctype-xdigit: Likewise.
23543         * modules/unictype/decimal-digit: Likewise.
23544         * modules/unictype/digit: Likewise.
23545         * modules/unictype/mirror: Likewise.
23546         * modules/unictype/numeric: Likewise.
23547         * modules/unictype/property-alphabetic: Likewise.
23548         * modules/unictype/property-ascii-hex-digit: Likewise.
23549         * modules/unictype/property-bidi-arabic-digit: Likewise.
23550         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23551         * modules/unictype/property-bidi-block-separator: Likewise.
23552         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23553         * modules/unictype/property-bidi-common-separator: Likewise.
23554         * modules/unictype/property-bidi-control: Likewise.
23555         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23556         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23557         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23558         * modules/unictype/property-bidi-european-digit: Likewise.
23559         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23560         * modules/unictype/property-bidi-left-to-right: Likewise.
23561         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23562         * modules/unictype/property-bidi-other-neutral: Likewise.
23563         * modules/unictype/property-bidi-pdf: Likewise.
23564         * modules/unictype/property-bidi-segment-separator: Likewise.
23565         * modules/unictype/property-bidi-whitespace: Likewise.
23566         * modules/unictype/property-byname: Likewise.
23567         * modules/unictype/property-combining: Likewise.
23568         * modules/unictype/property-composite: Likewise.
23569         * modules/unictype/property-currency-symbol: Likewise.
23570         * modules/unictype/property-dash: Likewise.
23571         * modules/unictype/property-decimal-digit: Likewise.
23572         * modules/unictype/property-default-ignorable-code-point: Likewise.
23573         * modules/unictype/property-deprecated: Likewise.
23574         * modules/unictype/property-diacritic: Likewise.
23575         * modules/unictype/property-extender: Likewise.
23576         * modules/unictype/property-format-control: Likewise.
23577         * modules/unictype/property-grapheme-base: Likewise.
23578         * modules/unictype/property-grapheme-extend: Likewise.
23579         * modules/unictype/property-grapheme-link: Likewise.
23580         * modules/unictype/property-hex-digit: Likewise.
23581         * modules/unictype/property-hyphen: Likewise.
23582         * modules/unictype/property-id-continue: Likewise.
23583         * modules/unictype/property-id-start: Likewise.
23584         * modules/unictype/property-ideographic: Likewise.
23585         * modules/unictype/property-ids-binary-operator: Likewise.
23586         * modules/unictype/property-ids-trinary-operator: Likewise.
23587         * modules/unictype/property-ignorable-control: Likewise.
23588         * modules/unictype/property-iso-control: Likewise.
23589         * modules/unictype/property-join-control: Likewise.
23590         * modules/unictype/property-left-of-pair: Likewise.
23591         * modules/unictype/property-line-separator: Likewise.
23592         * modules/unictype/property-logical-order-exception: Likewise.
23593         * modules/unictype/property-lowercase: Likewise.
23594         * modules/unictype/property-math: Likewise.
23595         * modules/unictype/property-non-break: Likewise.
23596         * modules/unictype/property-not-a-character: Likewise.
23597         * modules/unictype/property-numeric: Likewise.
23598         * modules/unictype/property-other-alphabetic: Likewise.
23599         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23600         * modules/unictype/property-other-grapheme-extend: Likewise.
23601         * modules/unictype/property-other-id-continue: Likewise.
23602         * modules/unictype/property-other-id-start: Likewise.
23603         * modules/unictype/property-other-lowercase: Likewise.
23604         * modules/unictype/property-other-math: Likewise.
23605         * modules/unictype/property-other-uppercase: Likewise.
23606         * modules/unictype/property-paired-punctuation: Likewise.
23607         * modules/unictype/property-paragraph-separator: Likewise.
23608         * modules/unictype/property-pattern-syntax: Likewise.
23609         * modules/unictype/property-pattern-white-space: Likewise.
23610         * modules/unictype/property-private-use: Likewise.
23611         * modules/unictype/property-punctuation: Likewise.
23612         * modules/unictype/property-quotation-mark: Likewise.
23613         * modules/unictype/property-radical: Likewise.
23614         * modules/unictype/property-sentence-terminal: Likewise.
23615         * modules/unictype/property-soft-dotted: Likewise.
23616         * modules/unictype/property-space: Likewise.
23617         * modules/unictype/property-terminal-punctuation: Likewise.
23618         * modules/unictype/property-test: Likewise.
23619         * modules/unictype/property-titlecase: Likewise.
23620         * modules/unictype/property-unassigned-code-value: Likewise.
23621         * modules/unictype/property-unified-ideograph: Likewise.
23622         * modules/unictype/property-uppercase: Likewise.
23623         * modules/unictype/property-variation-selector: Likewise.
23624         * modules/unictype/property-white-space: Likewise.
23625         * modules/unictype/property-xid-continue: Likewise.
23626         * modules/unictype/property-xid-start: Likewise.
23627         * modules/unictype/property-zero-width: Likewise.
23628         * modules/unictype/scripts: Likewise.
23629         * modules/unictype/syntax-c-ident: Likewise.
23630         * modules/unictype/syntax-c-whitespace: Likewise.
23631         * modules/unictype/syntax-java-ident: Likewise.
23632         * modules/unictype/syntax-java-whitespace: Likewise.
23633         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23634         * modules/unilbrk/u8-width-linebreaks: Likewise.
23635         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23636         * modules/unilbrk/u16-width-linebreaks: Likewise.
23637         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23638         * modules/unilbrk/u32-width-linebreaks: Likewise.
23639         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23640         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23641         * modules/uniname/uniname: Likewise.
23642         * modules/uninorm/canonical-decomposition: Likewise.
23643         * modules/uninorm/composition: Likewise.
23644         * modules/uninorm/decomposing-form: Likewise.
23645         * modules/uninorm/decomposition: Likewise.
23646         * modules/uninorm/filter: Likewise.
23647         * modules/uninorm/nfc: Likewise.
23648         * modules/uninorm/nfd: Likewise.
23649         * modules/uninorm/nfkc: Likewise.
23650         * modules/uninorm/nfkd: Likewise.
23651         * modules/uninorm/u8-normalize: Likewise.
23652         * modules/uninorm/u8-normcmp: Likewise.
23653         * modules/uninorm/u8-normcoll: Likewise.
23654         * modules/uninorm/u8-normxfrm: Likewise.
23655         * modules/uninorm/u16-normalize: Likewise.
23656         * modules/uninorm/u16-normcmp: Likewise.
23657         * modules/uninorm/u16-normcoll: Likewise.
23658         * modules/uninorm/u16-normxfrm: Likewise.
23659         * modules/uninorm/u32-normalize: Likewise.
23660         * modules/uninorm/u32-normcmp: Likewise.
23661         * modules/uninorm/u32-normcoll: Likewise.
23662         * modules/uninorm/u32-normxfrm: Likewise.
23663         * modules/unistdio/u8-asnprintf: Likewise.
23664         * modules/unistdio/u8-asprintf: Likewise.
23665         * modules/unistdio/u8-snprintf: Likewise.
23666         * modules/unistdio/u8-sprintf: Likewise.
23667         * modules/unistdio/u8-u8-asnprintf: Likewise.
23668         * modules/unistdio/u8-u8-asprintf: Likewise.
23669         * modules/unistdio/u8-u8-snprintf: Likewise.
23670         * modules/unistdio/u8-u8-sprintf: Likewise.
23671         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23672         * modules/unistdio/u8-u8-vasprintf: Likewise.
23673         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23674         * modules/unistdio/u8-u8-vsprintf: Likewise.
23675         * modules/unistdio/u8-vasnprintf: Likewise.
23676         * modules/unistdio/u8-vasprintf: Likewise.
23677         * modules/unistdio/u8-vsnprintf: Likewise.
23678         * modules/unistdio/u8-vsprintf: Likewise.
23679         * modules/unistdio/u16-asnprintf: Likewise.
23680         * modules/unistdio/u16-asprintf: Likewise.
23681         * modules/unistdio/u16-snprintf: Likewise.
23682         * modules/unistdio/u16-sprintf: Likewise.
23683         * modules/unistdio/u16-u16-asnprintf: Likewise.
23684         * modules/unistdio/u16-u16-asprintf: Likewise.
23685         * modules/unistdio/u16-u16-snprintf: Likewise.
23686         * modules/unistdio/u16-u16-sprintf: Likewise.
23687         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23688         * modules/unistdio/u16-u16-vasprintf: Likewise.
23689         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23690         * modules/unistdio/u16-u16-vsprintf: Likewise.
23691         * modules/unistdio/u16-vasnprintf: Likewise.
23692         * modules/unistdio/u16-vasprintf: Likewise.
23693         * modules/unistdio/u16-vsnprintf: Likewise.
23694         * modules/unistdio/u16-vsprintf: Likewise.
23695         * modules/unistdio/u32-asnprintf: Likewise.
23696         * modules/unistdio/u32-asprintf: Likewise.
23697         * modules/unistdio/u32-snprintf: Likewise.
23698         * modules/unistdio/u32-sprintf: Likewise.
23699         * modules/unistdio/u32-u32-asnprintf: Likewise.
23700         * modules/unistdio/u32-u32-asprintf: Likewise.
23701         * modules/unistdio/u32-u32-snprintf: Likewise.
23702         * modules/unistdio/u32-u32-sprintf: Likewise.
23703         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23704         * modules/unistdio/u32-u32-vasprintf: Likewise.
23705         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23706         * modules/unistdio/u32-u32-vsprintf: Likewise.
23707         * modules/unistdio/u32-vasnprintf: Likewise.
23708         * modules/unistdio/u32-vasprintf: Likewise.
23709         * modules/unistdio/u32-vsnprintf: Likewise.
23710         * modules/unistdio/u32-vsprintf: Likewise.
23711         * modules/unistdio/ulc-asnprintf: Likewise.
23712         * modules/unistdio/ulc-asprintf: Likewise.
23713         * modules/unistdio/ulc-fprintf: Likewise.
23714         * modules/unistdio/ulc-snprintf: Likewise.
23715         * modules/unistdio/ulc-sprintf: Likewise.
23716         * modules/unistdio/ulc-vasnprintf: Likewise.
23717         * modules/unistdio/ulc-vasprintf: Likewise.
23718         * modules/unistdio/ulc-vfprintf: Likewise.
23719         * modules/unistdio/ulc-vsnprintf: Likewise.
23720         * modules/unistdio/ulc-vsprintf: Likewise.
23721         * modules/unistr/u8-check: Likewise.
23722         * modules/unistr/u8-chr: Likewise.
23723         * modules/unistr/u8-cmp: Likewise.
23724         * modules/unistr/u8-cmp2: Likewise.
23725         * modules/unistr/u8-cpy: Likewise.
23726         * modules/unistr/u8-cpy-alloc: Likewise.
23727         * modules/unistr/u8-endswith: Likewise.
23728         * modules/unistr/u8-mblen: Likewise.
23729         * modules/unistr/u8-mbsnlen: Likewise.
23730         * modules/unistr/u8-mbtouc: Likewise.
23731         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23732         * modules/unistr/u8-mbtoucr: Likewise.
23733         * modules/unistr/u8-move: Likewise.
23734         * modules/unistr/u8-next: Likewise.
23735         * modules/unistr/u8-prev: Likewise.
23736         * modules/unistr/u8-set: Likewise.
23737         * modules/unistr/u8-startswith: Likewise.
23738         * modules/unistr/u8-stpcpy: Likewise.
23739         * modules/unistr/u8-stpncpy: Likewise.
23740         * modules/unistr/u8-strcat: Likewise.
23741         * modules/unistr/u8-strchr: Likewise.
23742         * modules/unistr/u8-strcmp: Likewise.
23743         * modules/unistr/u8-strcoll: Likewise.
23744         * modules/unistr/u8-strcpy: Likewise.
23745         * modules/unistr/u8-strcspn: Likewise.
23746         * modules/unistr/u8-strdup: Likewise.
23747         * modules/unistr/u8-strlen: Likewise.
23748         * modules/unistr/u8-strmblen: Likewise.
23749         * modules/unistr/u8-strmbtouc: Likewise.
23750         * modules/unistr/u8-strncat: Likewise.
23751         * modules/unistr/u8-strncmp: Likewise.
23752         * modules/unistr/u8-strncpy: Likewise.
23753         * modules/unistr/u8-strnlen: Likewise.
23754         * modules/unistr/u8-strpbrk: Likewise.
23755         * modules/unistr/u8-strrchr: Likewise.
23756         * modules/unistr/u8-strspn: Likewise.
23757         * modules/unistr/u8-strstr: Likewise.
23758         * modules/unistr/u8-strtok: Likewise.
23759         * modules/unistr/u8-to-u16: Likewise.
23760         * modules/unistr/u8-to-u32: Likewise.
23761         * modules/unistr/u8-uctomb: Likewise.
23762         * modules/unistr/u16-check: Likewise.
23763         * modules/unistr/u16-chr: Likewise.
23764         * modules/unistr/u16-cmp: Likewise.
23765         * modules/unistr/u16-cmp2: Likewise.
23766         * modules/unistr/u16-cpy: Likewise.
23767         * modules/unistr/u16-cpy-alloc: Likewise.
23768         * modules/unistr/u16-endswith: Likewise.
23769         * modules/unistr/u16-mblen: Likewise.
23770         * modules/unistr/u16-mbsnlen: Likewise.
23771         * modules/unistr/u16-mbtouc: Likewise.
23772         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23773         * modules/unistr/u16-mbtoucr: Likewise.
23774         * modules/unistr/u16-move: Likewise.
23775         * modules/unistr/u16-next: Likewise.
23776         * modules/unistr/u16-prev: Likewise.
23777         * modules/unistr/u16-set: Likewise.
23778         * modules/unistr/u16-startswith: Likewise.
23779         * modules/unistr/u16-stpcpy: Likewise.
23780         * modules/unistr/u16-stpncpy: Likewise.
23781         * modules/unistr/u16-strcat: Likewise.
23782         * modules/unistr/u16-strchr: Likewise.
23783         * modules/unistr/u16-strcmp: Likewise.
23784         * modules/unistr/u16-strcoll: Likewise.
23785         * modules/unistr/u16-strcpy: Likewise.
23786         * modules/unistr/u16-strcspn: Likewise.
23787         * modules/unistr/u16-strdup: Likewise.
23788         * modules/unistr/u16-strlen: Likewise.
23789         * modules/unistr/u16-strmblen: Likewise.
23790         * modules/unistr/u16-strmbtouc: Likewise.
23791         * modules/unistr/u16-strncat: Likewise.
23792         * modules/unistr/u16-strncmp: Likewise.
23793         * modules/unistr/u16-strncpy: Likewise.
23794         * modules/unistr/u16-strnlen: Likewise.
23795         * modules/unistr/u16-strpbrk: Likewise.
23796         * modules/unistr/u16-strrchr: Likewise.
23797         * modules/unistr/u16-strspn: Likewise.
23798         * modules/unistr/u16-strstr: Likewise.
23799         * modules/unistr/u16-strtok: Likewise.
23800         * modules/unistr/u16-to-u32: Likewise.
23801         * modules/unistr/u16-to-u8: Likewise.
23802         * modules/unistr/u16-uctomb: Likewise.
23803         * modules/unistr/u32-check: Likewise.
23804         * modules/unistr/u32-chr: Likewise.
23805         * modules/unistr/u32-cmp: Likewise.
23806         * modules/unistr/u32-cmp2: Likewise.
23807         * modules/unistr/u32-cpy: Likewise.
23808         * modules/unistr/u32-cpy-alloc: Likewise.
23809         * modules/unistr/u32-endswith: Likewise.
23810         * modules/unistr/u32-mblen: Likewise.
23811         * modules/unistr/u32-mbsnlen: Likewise.
23812         * modules/unistr/u32-mbtouc: Likewise.
23813         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23814         * modules/unistr/u32-mbtoucr: Likewise.
23815         * modules/unistr/u32-move: Likewise.
23816         * modules/unistr/u32-next: Likewise.
23817         * modules/unistr/u32-prev: Likewise.
23818         * modules/unistr/u32-set: Likewise.
23819         * modules/unistr/u32-startswith: Likewise.
23820         * modules/unistr/u32-stpcpy: Likewise.
23821         * modules/unistr/u32-stpncpy: Likewise.
23822         * modules/unistr/u32-strcat: Likewise.
23823         * modules/unistr/u32-strchr: Likewise.
23824         * modules/unistr/u32-strcmp: Likewise.
23825         * modules/unistr/u32-strcoll: Likewise.
23826         * modules/unistr/u32-strcpy: Likewise.
23827         * modules/unistr/u32-strcspn: Likewise.
23828         * modules/unistr/u32-strdup: Likewise.
23829         * modules/unistr/u32-strlen: Likewise.
23830         * modules/unistr/u32-strmblen: Likewise.
23831         * modules/unistr/u32-strmbtouc: Likewise.
23832         * modules/unistr/u32-strncat: Likewise.
23833         * modules/unistr/u32-strncmp: Likewise.
23834         * modules/unistr/u32-strncpy: Likewise.
23835         * modules/unistr/u32-strnlen: Likewise.
23836         * modules/unistr/u32-strpbrk: Likewise.
23837         * modules/unistr/u32-strrchr: Likewise.
23838         * modules/unistr/u32-strspn: Likewise.
23839         * modules/unistr/u32-strstr: Likewise.
23840         * modules/unistr/u32-strtok: Likewise.
23841         * modules/unistr/u32-to-u16: Likewise.
23842         * modules/unistr/u32-to-u8: Likewise.
23843         * modules/unistr/u32-uctomb: Likewise.
23844         * modules/uniwbrk/u8-wordbreaks: Likewise.
23845         * modules/uniwbrk/u16-wordbreaks: Likewise.
23846         * modules/uniwbrk/u32-wordbreaks: Likewise.
23847         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23848         * modules/uniwbrk/wordbreak-property: Likewise.
23849         * modules/uniwidth/u8-strwidth: Likewise.
23850         * modules/uniwidth/u8-width: Likewise.
23851         * modules/uniwidth/u16-strwidth: Likewise.
23852         * modules/uniwidth/u16-width: Likewise.
23853         * modules/uniwidth/u32-strwidth: Likewise.
23854         * modules/uniwidth/u32-width: Likewise.
23855         * modules/uniwidth/width: Likewise.
23856         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23857         with $(LIBUNISTRING).
23858         * modules/unicase/ignorable-tests: Likewise.
23859         * modules/unicase/locale-language-tests: Likewise.
23860         * modules/unicase/tolower-tests: Likewise.
23861         * modules/unicase/totitle-tests: Likewise.
23862         * modules/unicase/toupper-tests: Likewise.
23863         * modules/unicase/u8-casecmp-tests: Likewise.
23864         * modules/unicase/u8-casecoll-tests: Likewise.
23865         * modules/unicase/u8-casefold-tests: Likewise.
23866         * modules/unicase/u8-is-cased-tests: Likewise.
23867         * modules/unicase/u8-is-casefolded-tests: Likewise.
23868         * modules/unicase/u8-is-lowercase-tests: Likewise.
23869         * modules/unicase/u8-is-titlecase-tests: Likewise.
23870         * modules/unicase/u8-is-uppercase-tests: Likewise.
23871         * modules/unicase/u8-tolower-tests: Likewise.
23872         * modules/unicase/u8-totitle-tests: Likewise.
23873         * modules/unicase/u8-toupper-tests: Likewise.
23874         * modules/unicase/u16-casecmp-tests: Likewise.
23875         * modules/unicase/u16-casecoll-tests: Likewise.
23876         * modules/unicase/u16-casefold-tests: Likewise.
23877         * modules/unicase/u16-is-cased-tests: Likewise.
23878         * modules/unicase/u16-is-casefolded-tests: Likewise.
23879         * modules/unicase/u16-is-lowercase-tests: Likewise.
23880         * modules/unicase/u16-is-titlecase-tests: Likewise.
23881         * modules/unicase/u16-is-uppercase-tests: Likewise.
23882         * modules/unicase/u16-tolower-tests: Likewise.
23883         * modules/unicase/u16-totitle-tests: Likewise.
23884         * modules/unicase/u16-toupper-tests: Likewise.
23885         * modules/unicase/u32-casecmp-tests: Likewise.
23886         * modules/unicase/u32-casecoll-tests: Likewise.
23887         * modules/unicase/u32-casefold-tests: Likewise.
23888         * modules/unicase/u32-is-cased-tests: Likewise.
23889         * modules/unicase/u32-is-casefolded-tests: Likewise.
23890         * modules/unicase/u32-is-lowercase-tests: Likewise.
23891         * modules/unicase/u32-is-titlecase-tests: Likewise.
23892         * modules/unicase/u32-is-uppercase-tests: Likewise.
23893         * modules/unicase/u32-tolower-tests: Likewise.
23894         * modules/unicase/u32-totitle-tests: Likewise.
23895         * modules/unicase/u32-toupper-tests: Likewise.
23896         * modules/unicase/ulc-casecmp-tests: Likewise.
23897         * modules/unicase/ulc-casecoll-tests: Likewise.
23898         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23899         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23900         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23901         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23902         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23903         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23904         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23905         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23906         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23907         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23908         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23909         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23910         * modules/unictype/bidicategory-byname-tests: Likewise.
23911         * modules/unictype/bidicategory-name-tests: Likewise.
23912         * modules/unictype/bidicategory-of-tests: Likewise.
23913         * modules/unictype/bidicategory-test-tests: Likewise.
23914         * modules/unictype/block-list-tests: Likewise.
23915         * modules/unictype/block-of-tests: Likewise.
23916         * modules/unictype/block-test-tests: Likewise.
23917         * modules/unictype/category-C-tests: Likewise.
23918         * modules/unictype/category-Cc-tests: Likewise.
23919         * modules/unictype/category-Cf-tests: Likewise.
23920         * modules/unictype/category-Cn-tests: Likewise.
23921         * modules/unictype/category-Co-tests: Likewise.
23922         * modules/unictype/category-Cs-tests: Likewise.
23923         * modules/unictype/category-L-tests: Likewise.
23924         * modules/unictype/category-Ll-tests: Likewise.
23925         * modules/unictype/category-Lm-tests: Likewise.
23926         * modules/unictype/category-Lo-tests: Likewise.
23927         * modules/unictype/category-Lt-tests: Likewise.
23928         * modules/unictype/category-Lu-tests: Likewise.
23929         * modules/unictype/category-M-tests: Likewise.
23930         * modules/unictype/category-Mc-tests: Likewise.
23931         * modules/unictype/category-Me-tests: Likewise.
23932         * modules/unictype/category-Mn-tests: Likewise.
23933         * modules/unictype/category-N-tests: Likewise.
23934         * modules/unictype/category-Nd-tests: Likewise.
23935         * modules/unictype/category-Nl-tests: Likewise.
23936         * modules/unictype/category-No-tests: Likewise.
23937         * modules/unictype/category-P-tests: Likewise.
23938         * modules/unictype/category-Pc-tests: Likewise.
23939         * modules/unictype/category-Pd-tests: Likewise.
23940         * modules/unictype/category-Pe-tests: Likewise.
23941         * modules/unictype/category-Pf-tests: Likewise.
23942         * modules/unictype/category-Pi-tests: Likewise.
23943         * modules/unictype/category-Po-tests: Likewise.
23944         * modules/unictype/category-Ps-tests: Likewise.
23945         * modules/unictype/category-S-tests: Likewise.
23946         * modules/unictype/category-Sc-tests: Likewise.
23947         * modules/unictype/category-Sk-tests: Likewise.
23948         * modules/unictype/category-Sm-tests: Likewise.
23949         * modules/unictype/category-So-tests: Likewise.
23950         * modules/unictype/category-Z-tests: Likewise.
23951         * modules/unictype/category-Zl-tests: Likewise.
23952         * modules/unictype/category-Zp-tests: Likewise.
23953         * modules/unictype/category-Zs-tests: Likewise.
23954         * modules/unictype/category-and-not-tests: Likewise.
23955         * modules/unictype/category-and-tests: Likewise.
23956         * modules/unictype/category-byname-tests: Likewise.
23957         * modules/unictype/category-name-tests: Likewise.
23958         * modules/unictype/category-none-tests: Likewise.
23959         * modules/unictype/category-of-tests: Likewise.
23960         * modules/unictype/category-or-tests: Likewise.
23961         * modules/unictype/category-test-withtable-tests: Likewise.
23962         * modules/unictype/combining-class-tests: Likewise.
23963         * modules/unictype/ctype-alnum-tests: Likewise.
23964         * modules/unictype/ctype-alpha-tests: Likewise.
23965         * modules/unictype/ctype-blank-tests: Likewise.
23966         * modules/unictype/ctype-cntrl-tests: Likewise.
23967         * modules/unictype/ctype-digit-tests: Likewise.
23968         * modules/unictype/ctype-graph-tests: Likewise.
23969         * modules/unictype/ctype-lower-tests: Likewise.
23970         * modules/unictype/ctype-print-tests: Likewise.
23971         * modules/unictype/ctype-punct-tests: Likewise.
23972         * modules/unictype/ctype-space-tests: Likewise.
23973         * modules/unictype/ctype-upper-tests: Likewise.
23974         * modules/unictype/ctype-xdigit-tests: Likewise.
23975         * modules/unictype/decimal-digit-tests: Likewise.
23976         * modules/unictype/digit-tests: Likewise.
23977         * modules/unictype/mirror-tests: Likewise.
23978         * modules/unictype/numeric-tests: Likewise.
23979         * modules/unictype/property-alphabetic-tests: Likewise.
23980         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23981         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23982         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23983         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23984         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23985         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23986         * modules/unictype/property-bidi-control-tests: Likewise.
23987         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23988         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23989         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23990         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23991         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23992         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23993         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23994         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23995         * modules/unictype/property-bidi-pdf-tests: Likewise.
23996         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23997         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23998         * modules/unictype/property-byname-tests: Likewise.
23999         * modules/unictype/property-combining-tests: Likewise.
24000         * modules/unictype/property-composite-tests: Likewise.
24001         * modules/unictype/property-currency-symbol-tests: Likewise.
24002         * modules/unictype/property-dash-tests: Likewise.
24003         * modules/unictype/property-decimal-digit-tests: Likewise.
24004         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24005         * modules/unictype/property-deprecated-tests: Likewise.
24006         * modules/unictype/property-diacritic-tests: Likewise.
24007         * modules/unictype/property-extender-tests: Likewise.
24008         * modules/unictype/property-format-control-tests: Likewise.
24009         * modules/unictype/property-grapheme-base-tests: Likewise.
24010         * modules/unictype/property-grapheme-extend-tests: Likewise.
24011         * modules/unictype/property-grapheme-link-tests: Likewise.
24012         * modules/unictype/property-hex-digit-tests: Likewise.
24013         * modules/unictype/property-hyphen-tests: Likewise.
24014         * modules/unictype/property-id-continue-tests: Likewise.
24015         * modules/unictype/property-id-start-tests: Likewise.
24016         * modules/unictype/property-ideographic-tests: Likewise.
24017         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24018         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24019         * modules/unictype/property-ignorable-control-tests: Likewise.
24020         * modules/unictype/property-iso-control-tests: Likewise.
24021         * modules/unictype/property-join-control-tests: Likewise.
24022         * modules/unictype/property-left-of-pair-tests: Likewise.
24023         * modules/unictype/property-line-separator-tests: Likewise.
24024         * modules/unictype/property-logical-order-exception-tests: Likewise.
24025         * modules/unictype/property-lowercase-tests: Likewise.
24026         * modules/unictype/property-math-tests: Likewise.
24027         * modules/unictype/property-non-break-tests: Likewise.
24028         * modules/unictype/property-not-a-character-tests: Likewise.
24029         * modules/unictype/property-numeric-tests: Likewise.
24030         * modules/unictype/property-other-alphabetic-tests: Likewise.
24031         * modules/unictype/property-other-default-ignorable-code-point-tests:
24032         Likewise.
24033         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24034         * modules/unictype/property-other-id-continue-tests: Likewise.
24035         * modules/unictype/property-other-id-start-tests: Likewise.
24036         * modules/unictype/property-other-lowercase-tests: Likewise.
24037         * modules/unictype/property-other-math-tests: Likewise.
24038         * modules/unictype/property-other-uppercase-tests: Likewise.
24039         * modules/unictype/property-paired-punctuation-tests: Likewise.
24040         * modules/unictype/property-paragraph-separator-tests: Likewise.
24041         * modules/unictype/property-pattern-syntax-tests: Likewise.
24042         * modules/unictype/property-pattern-white-space-tests: Likewise.
24043         * modules/unictype/property-private-use-tests: Likewise.
24044         * modules/unictype/property-punctuation-tests: Likewise.
24045         * modules/unictype/property-quotation-mark-tests: Likewise.
24046         * modules/unictype/property-radical-tests: Likewise.
24047         * modules/unictype/property-sentence-terminal-tests: Likewise.
24048         * modules/unictype/property-soft-dotted-tests: Likewise.
24049         * modules/unictype/property-space-tests: Likewise.
24050         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24051         * modules/unictype/property-test-tests: Likewise.
24052         * modules/unictype/property-titlecase-tests: Likewise.
24053         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24054         * modules/unictype/property-unified-ideograph-tests: Likewise.
24055         * modules/unictype/property-uppercase-tests: Likewise.
24056         * modules/unictype/property-variation-selector-tests: Likewise.
24057         * modules/unictype/property-white-space-tests: Likewise.
24058         * modules/unictype/property-xid-continue-tests: Likewise.
24059         * modules/unictype/property-xid-start-tests: Likewise.
24060         * modules/unictype/property-zero-width-tests: Likewise.
24061         * modules/unictype/scripts-tests: Likewise.
24062         * modules/unictype/syntax-c-ident-tests: Likewise.
24063         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24064         * modules/unictype/syntax-java-ident-tests: Likewise.
24065         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24066         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24067         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24068         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24069         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24070         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24071         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24072         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24073         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24074         * modules/uniname/uniname-tests: Likewise.
24075         * modules/uninorm/canonical-decomposition-tests: Likewise.
24076         * modules/uninorm/compat-decomposition-tests: Likewise.
24077         * modules/uninorm/composition-tests: Likewise.
24078         * modules/uninorm/decomposing-form-tests: Likewise.
24079         * modules/uninorm/decomposition-tests: Likewise.
24080         * modules/uninorm/filter-tests: Likewise.
24081         * modules/uninorm/nfc-tests: Likewise.
24082         * modules/uninorm/nfd-tests: Likewise.
24083         * modules/uninorm/nfkc-tests: Likewise.
24084         * modules/uninorm/nfkd-tests: Likewise.
24085         * modules/uninorm/u8-normcmp-tests: Likewise.
24086         * modules/uninorm/u8-normcoll-tests: Likewise.
24087         * modules/uninorm/u16-normcmp-tests: Likewise.
24088         * modules/uninorm/u16-normcoll-tests: Likewise.
24089         * modules/uninorm/u32-normcmp-tests: Likewise.
24090         * modules/uninorm/u32-normcoll-tests: Likewise.
24091         * modules/unistdio/u8-asnprintf-tests: Likewise.
24092         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24093         * modules/unistdio/u8-vasprintf-tests: Likewise.
24094         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24095         * modules/unistdio/u8-vsprintf-tests: Likewise.
24096         * modules/unistdio/u16-asnprintf-tests: Likewise.
24097         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24098         * modules/unistdio/u16-vasprintf-tests: Likewise.
24099         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24100         * modules/unistdio/u16-vsprintf-tests: Likewise.
24101         * modules/unistdio/u32-asnprintf-tests: Likewise.
24102         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24103         * modules/unistdio/u32-vasprintf-tests: Likewise.
24104         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24105         * modules/unistdio/u32-vsprintf-tests: Likewise.
24106         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24107         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24108         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24109         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24110         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24111         * modules/unistr/u8-check-tests: Likewise.
24112         * modules/unistr/u8-chr-tests: Likewise.
24113         * modules/unistr/u8-cmp-tests: Likewise.
24114         * modules/unistr/u8-cmp2-tests: Likewise.
24115         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24116         * modules/unistr/u8-cpy-tests: Likewise.
24117         * modules/unistr/u8-mblen-tests: Likewise.
24118         * modules/unistr/u8-mbsnlen-tests: Likewise.
24119         * modules/unistr/u8-mbtouc-tests: Likewise.
24120         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24121         * modules/unistr/u8-mbtoucr-tests: Likewise.
24122         * modules/unistr/u8-move-tests: Likewise.
24123         * modules/unistr/u8-next-tests: Likewise.
24124         * modules/unistr/u8-prev-tests: Likewise.
24125         * modules/unistr/u8-set-tests: Likewise.
24126         * modules/unistr/u8-stpcpy-tests: Likewise.
24127         * modules/unistr/u8-stpncpy-tests: Likewise.
24128         * modules/unistr/u8-strcat-tests: Likewise.
24129         * modules/unistr/u8-strcmp-tests: Likewise.
24130         * modules/unistr/u8-strcoll-tests: Likewise.
24131         * modules/unistr/u8-strcpy-tests: Likewise.
24132         * modules/unistr/u8-strdup-tests: Likewise.
24133         * modules/unistr/u8-strlen-tests: Likewise.
24134         * modules/unistr/u8-strmblen-tests: Likewise.
24135         * modules/unistr/u8-strmbtouc-tests: Likewise.
24136         * modules/unistr/u8-strncat-tests: Likewise.
24137         * modules/unistr/u8-strncmp-tests: Likewise.
24138         * modules/unistr/u8-strncpy-tests: Likewise.
24139         * modules/unistr/u8-strnlen-tests: Likewise.
24140         * modules/unistr/u8-to-u16-tests: Likewise.
24141         * modules/unistr/u8-to-u32-tests: Likewise.
24142         * modules/unistr/u8-uctomb-tests: Likewise.
24143         * modules/unistr/u16-check-tests: Likewise.
24144         * modules/unistr/u16-chr-tests: Likewise.
24145         * modules/unistr/u16-cmp-tests: Likewise.
24146         * modules/unistr/u16-cmp2-tests: Likewise.
24147         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24148         * modules/unistr/u16-cpy-tests: Likewise.
24149         * modules/unistr/u16-mblen-tests: Likewise.
24150         * modules/unistr/u16-mbsnlen-tests: Likewise.
24151         * modules/unistr/u16-mbtouc-tests: Likewise.
24152         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24153         * modules/unistr/u16-mbtoucr-tests: Likewise.
24154         * modules/unistr/u16-move-tests: Likewise.
24155         * modules/unistr/u16-next-tests: Likewise.
24156         * modules/unistr/u16-prev-tests: Likewise.
24157         * modules/unistr/u16-set-tests: Likewise.
24158         * modules/unistr/u16-stpcpy-tests: Likewise.
24159         * modules/unistr/u16-stpncpy-tests: Likewise.
24160         * modules/unistr/u16-strcat-tests: Likewise.
24161         * modules/unistr/u16-strcmp-tests: Likewise.
24162         * modules/unistr/u16-strcoll-tests: Likewise.
24163         * modules/unistr/u16-strcpy-tests: Likewise.
24164         * modules/unistr/u16-strdup-tests: Likewise.
24165         * modules/unistr/u16-strlen-tests: Likewise.
24166         * modules/unistr/u16-strmblen-tests: Likewise.
24167         * modules/unistr/u16-strmbtouc-tests: Likewise.
24168         * modules/unistr/u16-strncat-tests: Likewise.
24169         * modules/unistr/u16-strncmp-tests: Likewise.
24170         * modules/unistr/u16-strncpy-tests: Likewise.
24171         * modules/unistr/u16-strnlen-tests: Likewise.
24172         * modules/unistr/u16-to-u32-tests: Likewise.
24173         * modules/unistr/u16-to-u8-tests: Likewise.
24174         * modules/unistr/u16-uctomb-tests: Likewise.
24175         * modules/unistr/u32-check-tests: Likewise.
24176         * modules/unistr/u32-chr-tests: Likewise.
24177         * modules/unistr/u32-cmp-tests: Likewise.
24178         * modules/unistr/u32-cmp2-tests: Likewise.
24179         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24180         * modules/unistr/u32-cpy-tests: Likewise.
24181         * modules/unistr/u32-mblen-tests: Likewise.
24182         * modules/unistr/u32-mbsnlen-tests: Likewise.
24183         * modules/unistr/u32-mbtouc-tests: Likewise.
24184         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24185         * modules/unistr/u32-mbtoucr-tests: Likewise.
24186         * modules/unistr/u32-move-tests: Likewise.
24187         * modules/unistr/u32-next-tests: Likewise.
24188         * modules/unistr/u32-prev-tests: Likewise.
24189         * modules/unistr/u32-set-tests: Likewise.
24190         * modules/unistr/u32-stpcpy-tests: Likewise.
24191         * modules/unistr/u32-stpncpy-tests: Likewise.
24192         * modules/unistr/u32-strcat-tests: Likewise.
24193         * modules/unistr/u32-strcmp-tests: Likewise.
24194         * modules/unistr/u32-strcoll-tests: Likewise.
24195         * modules/unistr/u32-strcpy-tests: Likewise.
24196         * modules/unistr/u32-strdup-tests: Likewise.
24197         * modules/unistr/u32-strlen-tests: Likewise.
24198         * modules/unistr/u32-strmblen-tests: Likewise.
24199         * modules/unistr/u32-strmbtouc-tests: Likewise.
24200         * modules/unistr/u32-strncat-tests: Likewise.
24201         * modules/unistr/u32-strncmp-tests: Likewise.
24202         * modules/unistr/u32-strncpy-tests: Likewise.
24203         * modules/unistr/u32-strnlen-tests: Likewise.
24204         * modules/unistr/u32-to-u16-tests: Likewise.
24205         * modules/unistr/u32-to-u8-tests: Likewise.
24206         * modules/unistr/u32-uctomb-tests: Likewise.
24207         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24208         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24209         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24210         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24211         * modules/uniwidth/u8-strwidth-tests: Likewise.
24212         * modules/uniwidth/u8-width-tests: Likewise.
24213         * modules/uniwidth/u16-strwidth-tests: Likewise.
24214         * modules/uniwidth/u16-width-tests: Likewise.
24215         * modules/uniwidth/u32-strwidth-tests: Likewise.
24216         * modules/uniwidth/u32-width-tests: Likewise.
24217         * modules/uniwidth/width-tests: Likewise.
24218
24219 2010-05-18  Richard Jones  <rjones@redhat.com>
24220
24221         doc: users.txt: list hivex
24222         * users.txt: Add hivex.
24223
24224 2010-05-18  Richard Jones  <rjones@redhat.com>
24225
24226         doc: users.txt: list febootstrap
24227         * users.txt: Add febootstrap.
24228
24229 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24230
24231         bootstrap: fix an error when gnulib is not used as a git submodule
24232         * build-aux/bootstrap (gnulib_path): If its length is zero then
24233         assign "gnulib" to it.
24234         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24235
24236 2010-05-16  Bruno Haible  <bruno@clisp.org>
24237
24238         Avoid autoconf warnings about AM_ICONV.
24239         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24240         2.64.
24241
24242 2010-05-16  Bruno Haible  <bruno@clisp.org>
24243
24244         absolute-header: Make the macro usable in more situations.
24245         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24246         from gl_ABSOLUTE_HEADER.
24247         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24248
24249 2010-05-16  James Youngman  <jay@gnu.org>
24250
24251         doc: update users.txt
24252         * users.txt: Add CSSC.
24253
24254 2010-05-16  Jim Meyering  <meyering@redhat.com>
24255
24256         init.sh: fix an error in the previous change; add more comments
24257         * tests/init.sh: Compare exit code in loop against 9, not 2.
24258         Patch by Bruno Haible.
24259         Make the two tests more similar by adding an empty "then" clause.
24260         Add comments.
24261
24262         init.sh: avoid unnecessary shell re-exec
24263         * tests/init.sh: Improve the re-exec-required check to first test the
24264         current shell.  If it passes the test, do not search for a shell that
24265         does pass, and do not re-exec.  This test is particularly contorted to
24266         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24267         of $(...) evokes a syntax error and causes immediate shell exit with
24268         status 2.  Bruno Haible reported that the re-exec made it impossible
24269         to single-step through any init.sh-using script.
24270
24271 2010-05-16  Bruno Haible  <bruno@clisp.org>
24272
24273         Fix collision between gnulib's and libintl's printf replacements.
24274         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24275         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24276         (printf): When using GNU C, map the __printf__ function to rpl_printf
24277         via __asm__. When not using GNU C, define rpl_printf instead of
24278         __printf__.
24279         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24280         commit.
24281         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24282         commit.
24283         * m4/asm-underscore.m4: New file.
24284         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24285         * modules/stdio (Files): Add m4/asm-underscore.m4.
24286         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24287         Reported by Ben Pfaff.
24288
24289 2010-05-16  Bruno Haible  <bruno@clisp.org>
24290
24291         verify: Avoid skipping the test on openSUSE 11.0.
24292         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24293
24294 2010-05-13  Bruno Haible  <bruno@clisp.org>
24295
24296         Avoid useless warnings from G++.
24297         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24298         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24299         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24300
24301 2010-05-11  Jim Meyering  <meyering@redhat.com>
24302
24303         maint.mk: tweak preceding change
24304         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24305         regexps tighter by anchoring at EOL, and make the new group "shy"
24306         for slightly decreased overhead.
24307
24308 2010-05-11  Eric Blake  <eblake@redhat.com>
24309
24310         maint.mk: gnulib doesn't guarantee NSIG
24311         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24312
24313 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24314
24315         test-pwrite.c: Remove unused variable declaration.
24316         * tests/test-pwrite.c (main): Remove read_buf declaration.
24317
24318         Remove useless test-pwrite.sh file.
24319         * tests/test-pwrite.sh: Delete file.
24320         * modules/pwrite-tests: Remove references.
24321         Reported by Bruno Haible.
24322
24323 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24324
24325         init.sh: fix a typo
24326         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24327
24328 2010-05-10  Jim Meyering  <meyering@redhat.com>
24329
24330         maint.mk: avoid using a temporary file in the always-defined-macros check
24331         * top/maint.mk (.re-defmac): Remove rule.
24332         (gl_trap_): Remove definition.
24333         (sc_prohibit_always-defined_macros): Rewrite not to create and
24334         depend on a temporary file.  Instead, depend on GNU grep's ability
24335         to read a list of regular expressions from stdin when given "-f -".
24336
24337 2010-05-09  Bruno Haible  <bruno@clisp.org>
24338
24339         Update to GNU gettext 0.18, part 1.
24340         * m4/gettext.m4: Update to GNU gettext 0.18.
24341         * m4/intl.m4: Likewise.
24342         * m4/po.m4: Likewise.
24343         * modules/gettext (Files): Add m4/fcntl-o.m4.
24344         (configure.ac): Require gettext infrastructure from version 0.18.
24345
24346 2010-05-09  Jim Meyering  <meyering@redhat.com>
24347
24348         init.sh: enable MALLOC_PERTURB_
24349         * tests/init.sh: Enable glibc's malloc-perturbing option.
24350
24351         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24352         With my recent change in init.sh from the two-line form:
24353             -#   : ${srcdir=.}
24354             -#   . "$srcdir/init.sh"; path_prepend_ .
24355             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24356         I noticed that using the one-line form would cause this test
24357         to fail with a false-positive, or to stop working altogether,
24358         depending on whether help-version changed or all the tests did.
24359         * top/maint.mk (_hv_regex): Remove this definition.
24360         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24361         (_hv_regex_strong): Use a stronger regex to check for conformance.
24362         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24363         Give a separate diagnostic for lack of conforming use.
24364
24365         maint.mk: prohibit definition of symbols defined by gnulib
24366         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24367         definition of symbols defined by gnulib.
24368
24369 2010-05-09  Bruno Haible  <bruno@clisp.org>
24370
24371         acl: Avoid test failure on Cygwin-hosted mingw.
24372         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24373
24374 2010-05-09  Bruno Haible  <bruno@clisp.org>
24375
24376         error: Use system's fcntl function.
24377         * lib/error.c (fcntl): Undefine.
24378
24379 2010-05-09  Jim Meyering  <meyering@redhat.com>
24380
24381         verify: adjust formatting to be more consistent
24382         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24383         argument-list '('s, and after one comma.
24384
24385 2010-05-09  Bruno Haible  <bruno@clisp.org>
24386
24387         error: More reliable output on mingw.
24388         * lib/error.c: Include <windows.h>.
24389         (is_open): New function.
24390         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24391         defined.
24392
24393 2010-05-09  Bruno Haible  <bruno@clisp.org>
24394
24395         vasnprintf: Fix syntax errors in libintl build on mingw.
24396         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24397         pad_ourselves and prec_ourselves after use.
24398
24399 2010-05-08  Bruno Haible  <bruno@clisp.org>
24400
24401         * lib/config.charset: Update comments for Cygwin 1.7.
24402         * lib/localcharset.c: Likewise.
24403
24404 2010-05-07  Jim Meyering  <meyering@redhat.com>
24405
24406         init.sh: improve comments
24407         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24408         . "${srcdir=.}/init.sh"; path_prepend_ .
24409         Add a note about path_prepend_ and the alternative of using
24410         TESTS_ENVIRONMENT.
24411
24412 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24413
24414         exclude: Unescape hashed patterns in wildcard mode.
24415         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24416         to the hash list.
24417         * tests/test-exclude8.sh: New test case.
24418         * modules/exclude-tests: Add new test.
24419
24420 2010-05-05  Eric Blake  <eblake@redhat.com>
24421
24422         verify: automate tests
24423         * modules/verify-tests: New module.
24424         * tests/test-verify.sh: New file.
24425         * tests/test-verify.c: Guard each negative test with a unique id.
24426         Also avoid warning about unused left hand of comma expressions.
24427
24428 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24429
24430         Further improvements to verify.h, suggested by Eric Blake.
24431         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24432         the GL_* versions, to avoid collision with OpenGL.
24433         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24434         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24435         than testing merely whether it's defined.
24436
24437         Modify verify.h to pacify gcc -Wredundant_decls.
24438         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24439         These use the prefix "GL_" since they're likely to be useful elsewhere.
24440         We may need to break them out into a different .h file.
24441         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24442         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24443         of verify_function__.
24444
24445 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24446
24447         Tests for module pwrite.
24448         * modules/pwrite-tests: New file.
24449         * tests/test-pwrite.sh: New file.
24450         * tests/test-pwrite.c: New file.
24451
24452         New module pwrite.
24453         * lib/unistd.in.h (pwrite): New declaration.
24454         * lib/pwrite.c: New file, from glibc with modifications.
24455         * m4/pwrite.m4: New file.
24456         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24457         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24458         REPLACE_PWRITE.
24459         * modules/pwrite: New file.
24460         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24461         REPLACE_PWRITE.
24462         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24463         * doc/posix-functions/pwrite.texi: Mention the new module.
24464
24465 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24466
24467         pread: Update documentation.
24468         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24469
24470 2010-05-04  Eric Blake  <eblake@redhat.com>
24471
24472         docs: update cygwin progress
24473         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24474         this bug.
24475         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24476         Added in cygwin 1.7.2.
24477         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24478         Likewise.
24479         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24480         Likewise.
24481         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24482         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24483         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24484         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24485         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24486         Mention nproc module.
24487         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24488         bug in cygwin 1.7.5 addition.
24489         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24490         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24491         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24492         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24493         1.7.5.
24494         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24495         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24496         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24497         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24498         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24499         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24500         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24501         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24502         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24503         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24504         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24505         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24506         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24507         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24508         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24509         Likewise.
24510         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24511         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24512         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24513         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24514         Likewise.
24515         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24516         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24517         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24518         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24519         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24520         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24521         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24522         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24523         Likewise.
24524         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24525         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24526         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24527         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24528         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24529         Likewise.
24530         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24531         Likewise.
24532         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24533         Likewise.
24534         * doc/glibc-functions/xdrrec_endofrecord.texi
24535         (xdrrec_endofrecord): Likewise.
24536         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24537         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24538         Likewise.
24539         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24540         Likewise.
24541
24542 2010-05-04  Jim Meyering  <meyering@redhat.com>
24543
24544         gendocs.sh: make its "-s FILE" option more useful
24545         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24546         $PACKAGE to reflect the probably-different basename of "FILE".
24547
24548 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24549
24550         bootstrap: don't ignore download_po_files failure
24551         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24552         failure.
24553
24554 2010-05-03  Jim Meyering  <meyering@redhat.com>
24555
24556         maint.mk: allow to pass options to gendocs.sh
24557         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24558         (gendocs_options_): New overridable variable.
24559
24560         gnu-web-doc-update: don't ignore configure or build failure
24561         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24562
24563         announce-gen: backslash-escape '@'s in --help output
24564         * build-aux/announce-gen: Fix syntax errors.
24565
24566         maint.mk, announce-gen: allow project-specific announcement mail headers
24567         * top/maint.mk (translation_project_): Define default.
24568         (announcement_Cc_, announcement_mail_headers_): Likewise.
24569         (announcement): Invoke announce-gen with new --mail-headers option.
24570         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24571
24572         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24573         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24574         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24575         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24576         line in the "err2" output file when running "make check" in verbose
24577         mode (i.e., with set -x enabled).
24578
24579 2010-05-03  Bruno Haible  <bruno@clisp.org>
24580
24581         wctob: Fix for weird platforms.
24582         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24583         argument value.
24584
24585 2010-05-03  Jim Meyering  <meyering@redhat.com>
24586
24587         maint.mk: prohibit unwarranted use of <strings.h>
24588         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24589         strings.h in a file that does not also use strcasecmp, strncasecmp,
24590         ffs or ffsll.
24591
24592         maint.mk: remove obsolete comments
24593         * top/maint.mk: Remove stale, commented-out rules.
24594
24595 2010-05-02  Bruno Haible  <bruno@clisp.org>
24596
24597         wcwidth: Declare also when it's aliased.
24598         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24599         macro.
24600
24601 2010-05-02  Bruno Haible  <bruno@clisp.org>
24602
24603         Fix regression from 2010-04-25.
24604         * gnulib-tool (func_modules_transitive_closure): Check the status of
24605         all modules, not only of the tests that are of the form foo-tests where
24606         foo is a module.
24607
24608 2010-05-02  Bruno Haible  <bruno@clisp.org>
24609
24610         wctob: Work around nasty Cygwin 1.7.2 bug.
24611         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24612         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24613
24614 2010-05-01  Bruno Haible  <bruno@clisp.org>
24615
24616         fpurge: Sharper test.
24617         * tests/test-fpurge.c (main): Add one more ftell check.
24618         * modules/fpurge-tests (Depends-on): Add ftell.
24619         Suggested by Eric Blake.
24620
24621 2010-05-01  Bruno Haible  <bruno@clisp.org>
24622
24623         ftello: Another test.
24624         * tests/test-ftello3.c: New file.
24625         * modules/ftello-tests (Files): Add it.
24626         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24627         MOSTLYCLEANFILES.
24628
24629         ftell: Another test.
24630         * tests/test-ftell3.c: New file.
24631         * modules/ftell-tests (Files): Add it.
24632         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24633         MOSTLYCLEANFILES.
24634
24635 2010-05-01  Bruno Haible  <bruno@clisp.org>
24636
24637         ftell, ftello: Work around Solaris bug.
24638         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24639         * lib/ftello.c: Include stdio-impl.h.
24640         (ftello): On Solaris, when _IOWRT is set, compute the result without
24641         looking at _IOREAD.
24642         * modules/ftello (Files): Add lib/stdio-impl.h.
24643         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24644         * doc/posix-functions/ftello.texi: Likewise.
24645         Reported by Eric Blake.
24646
24647 2010-05-01  Bruno Haible  <bruno@clisp.org>
24648
24649         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24650         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24651         the _IOWRT flag is also set.
24652
24653 2010-05-01  Bruno Haible  <bruno@clisp.org>
24654
24655         Fix doc about a HP-UX stdio bug.
24656         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24657         * doc/posix-functions/ftello.texi: Likewise.
24658
24659 2010-05-01  Bruno Haible  <bruno@clisp.org>
24660
24661         lseek test: Fix failure on Solaris.
24662         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24663         output.
24664
24665 2010-04-30  Jim Meyering  <meyering@redhat.com>
24666
24667         bootstrap: don't ignore failure to generate po*/Makevars
24668         * build-aux/bootstrap (with_gettext): Don't ignore failure
24669         to create po/Makevars or runtime-po/Makevars.
24670
24671 2010-04-29  Eric Blake  <eblake@redhat.com>
24672
24673         headers: relax license to LGPLv2+
24674         * modules/fcntl-h (License): Relax license.
24675         * modules/getopt-posix (License): Likewise.
24676         * modules/locale (License): Likewise.
24677         * modules/math (License): Likewise.
24678         * modules/pty (License): Likewise.
24679         * modules/sched (License): Likewise.
24680         * modules/search (License): Likewise.
24681         * modules/spawn (License): Likewise.
24682         * modules/stdarg (License): Likewise.
24683         * modules/sysexits (License): Likewise.
24684
24685 2010-04-29  Jim Meyering  <meyering@redhat.com>
24686
24687         inttypes: relax license to LGPLv2+
24688         * modules/inttypes (License): Relax license.
24689
24690 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24691
24692         * top/maint.mk (indent): Run twice to produce idempotent results.
24693
24694 2010-04-28  Bruno Haible  <bruno@clisp.org>
24695
24696         getdate: Generate getdate.c in the source directory.
24697         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24698         MOSTLYCLEANFILES.
24699         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24700
24701 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24702
24703         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24704         is not declared as a const *; avoid warnings in that case.
24705
24706 2010-04-28  Eric Blake  <eblake@redhat.com>
24707
24708         canonicalize-lgpl: avoid compiler warning
24709         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24710         declaration' / 'extraneous semicolon' warning with some compilers.
24711         Reported by Andreas Gruenbacher.
24712
24713 2010-04-28  Jim Meyering  <meyering@redhat.com>
24714
24715         init.sh: ensure a more reliable exit status when exiting via trap
24716         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24717         Inspired by patches from Dmitry V. Levin.
24718         Also trap on signal 3 (SIGQUIT).
24719
24720 2010-04-27  Bruno Haible  <bruno@clisp.org>
24721
24722         Update doc about utimes().
24723         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24724         'utimens' module.
24725         Reported by Andreas Gruenbacher <agruen@suse.de>.
24726
24727 2010-04-27  Eric Blake  <eblake@redhat.com>
24728
24729         full-read, full-write: relax license
24730         * modules/full-read (License): Drop to LGPLv2+.
24731         * modules/full-write (License): Likewise.
24732         * modules/safe-read (License): Likewise.
24733         * modules/safe-write (License): Likewise.
24734
24735         pthread: mention library for linking
24736         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24737
24738 2010-04-27  Jim Meyering  <meyering@redhat.com>
24739
24740         maint.mk: fix a bug introduced in last change
24741         * top/maint.mk (gl_assured_headers_): Now that all names are on
24742         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24743         is not anchored to end of word, it should be adequate.
24744
24745         maint.mk: avoid side-effect in latest syntax-check
24746         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24747         to run commands via $(shell...), and hence to incur cost only when
24748         the new rule is actually run.
24749
24750         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24751         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24752         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24753         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24754         (gl_assured_headers_, az_, AZ_): Define.
24755         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24756
24757 2010-04-26  Jim Meyering  <jim@meyering.net>
24758             Bruno Haible  <bruno@clisp.org>
24759
24760         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24761         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24762         Prompted by an exchange with Gilles Espinasse.
24763
24764 2010-04-26  Jim Meyering  <meyering@redhat.com>
24765
24766         git-version-gen: aesthetic tweak
24767         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24768         so that the command remains on a single line.
24769
24770 2010-04-26  Eric Blake  <eblake@redhat.com>
24771
24772         git-version-gen: allow use on EBCDIC hosts
24773         * build-aux/git-version-gen (dirty): Use literal rather than tying
24774         ourselves to ascii.
24775         Reported by Steve Goetze.
24776
24777 2010-04-25  Bruno Haible  <bruno@clisp.org>
24778
24779         netdb: Add support for GNULIB_POSIXCHECK.
24780         * lib/netdb.in.h: Include warn-on-use.h.
24781         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24782         functions are used when GNULIB_POSIXCHECK is defined and the
24783         getaddrinfo module is not in use.
24784         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24785         freeaddrinfo, gai_strerror, getnameinfo are declared.
24786         * modules/netdb (Depends-on): Add warn-on-use.
24787         (Makefile.am): Include warn-on-use.h in netdb.h.
24788
24789 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24790
24791         build: avoid "make check" failure without .git/ directory
24792         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24793         there is no .git/ directory.
24794
24795 2010-04-25  Bruno Haible  <bruno@clisp.org>
24796
24797         ptsname: Fix misuse of ttyname_r.
24798         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24799         of errno.
24800
24801 2010-04-25  Bruno Haible  <bruno@clisp.org>
24802
24803         ttyname_r: Make it work on Solaris 10.
24804         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24805         if the system function has the POSIX declaration. Test whether the
24806         function fails if the buffer is less than 128 bytes large.
24807         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24808         system's ttyname_r function. Provide a reasonably large buffer.
24809         * modules/ttyname_r (Depends-on): Add extensions.
24810         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24811
24812 2010-04-25  Bruno Haible  <bruno@clisp.org>
24813
24814         Use the 'extensions' module for some more functions on Solaris.
24815         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24816         module.
24817         * doc/posix-functions/ctime_r.texi: Likewise.
24818         * doc/posix-functions/getgrgid_r.texi: Likewise.
24819         * doc/posix-functions/getgrnam_r.texi: Likewise.
24820         * doc/posix-functions/getpwnam_r.texi: Likewise.
24821         * doc/posix-functions/getpwuid_r.texi: Likewise.
24822         * doc/posix-functions/readdir_r.texi: Likewise.
24823         * doc/posix-functions/sigwait.texi: Likewise.
24824         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24825         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24826
24827 2010-04-25  Bruno Haible  <bruno@clisp.org>
24828
24829         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24830         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24831         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24832         * lib/ttyname_r.c: Include <limits.h>.
24833         (ttyname_r): Define using the system's ttyname_r function, if it exists
24834         and not on Solaris.
24835         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24836         set.
24837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24838         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24839         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24840         Reported by Simon Josefsson.
24841
24842 2010-04-25  Bruno Haible  <bruno@clisp.org>
24843
24844         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24845         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24846         * doc/posix-functions/ctime_r.texi: Likewise.
24847         * doc/posix-functions/getgrgid_r.texi: Likewise.
24848         * doc/posix-functions/getgrnam_r.texi: Likewise.
24849         * doc/posix-functions/getlogin_r.texi: Likewise.
24850         * doc/posix-functions/getpwnam_r.texi: Likewise.
24851         * doc/posix-functions/getpwuid_r.texi: Likewise.
24852         * doc/posix-functions/readdir_r.texi: Likewise.
24853         * doc/posix-functions/sigwait.texi: Likewise.
24854         * doc/posix-functions/ttyname_r.texi: Likewise.
24855         Reported by Simon Josefsson.
24856
24857 2010-04-25  Bruno Haible  <bruno@clisp.org>
24858
24859         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24860         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24861         also to --create-testdir.
24862         (func_acceptable): Don't consider the status of *-tests modules here.
24863         (func_modules_transitive_closure): Consider it here, before including a
24864         test module.
24865         (func_import, func_create_testdir): Set inc_all_direct_tests,
24866         inc_all_indirect_tests.
24867         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24868         --create-testdir and --create-megatestdir.
24869
24870 2010-04-25  Bruno Haible  <bruno@clisp.org>
24871
24872         gnulib-tool: Add --without-*-tests options.
24873         * gnulib-tool (func_usage): Document the --without-*-tests options.
24874         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24875         excl_unportable_tests): New variables.
24876         Fail if they are specified with --import or --update.
24877         (func_acceptable): Respect the excl_*_tests variables.
24878         (func_import): Set the excl_*_tests variables to empty.
24879
24880 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24881             Bruno Haible  <bruno@clisp.org>
24882
24883         Work around a MacOS X 10.4 bug with openpty.
24884         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24885         * tests/test-openpty.c (main): Close the master side explicitly.
24886
24887 2010-04-25  Bruno Haible  <bruno@clisp.org>
24888
24889         strnlen: Fix a C++ test error on MacOS X and Solaris.
24890         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24891         the function is not declared.
24892         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24893         Simon Josefsson.
24894
24895 2010-04-24  Bruno Haible  <bruno@clisp.org>
24896
24897         Avoid a gcc warning.
24898         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24899         of correct type for %08lx directive.
24900         Reported by Eric Blake.
24901
24902 2010-04-24  Bruno Haible  <bruno@clisp.org>
24903
24904         vasnprintf: Correct errno value in case of out-of-memory.
24905         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24906         or sprintf. Use the errno value from SNPRINTF or sprintf.
24907         Reported by Ian Beckwith <ianb@erislabs.net>.
24908
24909 2010-04-24  Bruno Haible  <bruno@clisp.org>
24910
24911         ansi-c++-opt: Find correct compiler when cross-compiling.
24912         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24913         AC_CHECK_PROGS.
24914         Reported by Simon Josefsson.
24915
24916 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24917
24918         vc-list-files: Add support for subversion
24919         * build-aux/vc-list-files: Use "svn list" to generate the list of
24920         files controlled by subversion.
24921
24922 2010-04-23  Jim Meyering  <meyering@redhat.com>
24923
24924         vc-list-files tests: convert to use init.sh
24925         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24926         path_prepend_.
24927         Use Exit, not exit.
24928         Use skip_ rather than open coding it.
24929         Remove trap set-up and compare definitions.
24930         * tests/test-vc-list-files-git.sh: Likewise.
24931         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24932
24933 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24934
24935         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24936         backup files.
24937
24938 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24939
24940         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24941
24942 2010-04-20  Eric Blake  <eblake@redhat.com>
24943
24944         tests: be robust to ignored SIGPIPE
24945         * tests/test-select-in.sh: Consume all output.
24946         * tests/test-lseek.sh: Check correct exit status, while avoiding
24947         EPIPE.
24948
24949 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24950             Bruno Haible  <bruno@clisp.org>
24951
24952         visibility: Don't use -fvisibility if it leads to a warning.
24953         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24954         yes, don't pretend that visibility works if it leads to a warning.
24955         Reported by Mike Gran <spk121@yahoo.com>.
24956
24957 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24958
24959         * build-aux/bootstrap: Use "git -h" for testing for supported options
24960         instead of "git --help".  The short-form option only shows a summary,
24961         and doesn't layout the full man page.  Grep for the full option name
24962         in the summary, too.
24963
24964 2010-04-19  Bruno Haible  <bruno@clisp.org>
24965
24966         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24967         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24968         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24969         mention of RELOCATABLE_STRIP.
24970         Reported by Sylvain Beucler <beuc@beuc.net>.
24971
24972 2010-04-19  Bruno Haible  <bruno@clisp.org>
24973
24974         * lib/diffseq.h: Fix typo in comment.
24975         Reported by Eric Blake.
24976
24977 2010-04-19  Bruno Haible  <bruno@clisp.org>
24978
24979         ioctl: Move autoconf macro to a .m4 file.
24980         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24981         * modules/ioctl (Files): Add it.
24982         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24983         Reported by Ian Beckwith <ianb@erislabs.net>.
24984
24985 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24986             Bruno Haible  <bruno@clisp.org>
24987
24988         diffseq: Accommodate use-case with abstract arrays.
24989         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24990         is not defined.
24991         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24992         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24993
24994 2010-04-18  Bruno Haible  <bruno@clisp.org>
24995
24996         * doc/posix-headers/stdbool.texi: More precise wording.
24997
24998 2010-04-17  Jim Meyering  <meyering@redhat.com>
24999
25000         maint.mk: use gnu-style indentation in an embedded perl script
25001         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25002         Rename variable: s/two/last_two_bytes/
25003
25004 2010-04-16  Eric Blake  <eblake@redhat.com>
25005
25006         test-stdbool: skip test that fails with Solaris CC
25007         * tests/test-stdbool.c (f): Skip test that causes compilation
25008         error under buggy C++ compiler.
25009         * lib/stdbool.in.h: Document the limitation.
25010         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25011
25012         setenv: allow compilation with C++
25013         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25014         register keyword.
25015
25016         stdint: allow test to pass with C++
25017         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25018
25019         getopt: allow compilation with C++
25020         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25021         struct.
25022         * lib/getopt.c (_getopt_internal_r): Use correct type.
25023         Reported by Dagobert Michelson, via Joel E. Denny.
25024
25025 2010-04-16  Bruno Haible  <bruno@clisp.org>
25026
25027         Override netdb.h always.
25028         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25029         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25030         Reported by Ludovic Courtès <ludo@gnu.org>.
25031
25032 2010-04-15  Bruno Haible  <bruno@clisp.org>
25033
25034         openpty: Fix mistake from 2010-03-21.
25035         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25036         Reported by Simon Josefsson.
25037
25038 2010-04-15  Eric Blake  <eblake@redhat.com>
25039
25040         test-forkpty: fix expected signature
25041         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25042         Reported by Simon Josefsson.
25043
25044 2010-04-15  Jim Meyering  <meyering@redhat.com>
25045
25046         maint.mk: texinfo_suffix_re_: correct the default regexp
25047         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25048
25049         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25050         make it configurable via texinfo_suffix_re_.
25051
25052 2010-04-14  Eric Blake  <eblake@redhat.com>
25053
25054         strtok_r: relax license to LGPLv2+
25055         * modules/strtok_r (License): Relax license.
25056         Reported by Matthias Bolte.
25057
25058 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25059
25060         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25061         version 1.4.4 by default instead of requiring the libgcrypt
25062         version used during build.  This makes it possible to use the
25063         application with older but still binary compatible libgcrypt
25064         versions.
25065
25066 2010-04-13  Eric Blake  <eblake@redhat.com>
25067
25068         getopt-gnu: match recent glibc fixes and posix ruling
25069         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25070         '+' handling, when requesting extensions.
25071         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25072         'W;' handling.
25073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25074         * doc/posix-functions/getopt.texi (getopt): Document this.
25075         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25076         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25077         Likewise.
25078
25079         getopt: merge bug fixes from glibc
25080         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25081         diagnostics.  Honor '+:' correctly.  Reject ';'.
25082
25083         getopt-posix: detect MacOS bug
25084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25085         optind when missing a required argument.
25086         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25087         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25088         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25089         Likewise.
25090
25091         getopt-posix: avoid spurious failure on Solaris
25092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25093         an indicator that setting optind=1 is sufficient for reset.
25094
25095         getopt-posix: avoid spurious failure on FreeBSD
25096         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25097         in POSIX mode, since the m4 test uses it.
25098
25099         gnulib-tool: silence warning on BSD sh
25100         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25101
25102 2010-04-13  Jim Meyering  <meyering@redhat.com>
25103
25104         doc: users.txt: GNU patch now uses gnulib
25105         * users.txt: Add patch.
25106
25107 2010-04-12  Jim Meyering  <meyering@redhat.com>
25108
25109         maint.mk: generate more concise timing data for syntax-check rules
25110         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25111         " done" from each line that reports a syntax-check test duration.
25112
25113 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25114
25115         git-version-gen: use "git update-index..." rather than "git status"
25116         * build-aux/git-version-gen: Use git update-index --refresh, not
25117         "git status".  With some versions of git, "git status" would fail
25118         to update the index and result in an unwarranted "-dirty" suffix.
25119
25120 2010-04-11  Jim Meyering  <meyering@redhat.com>
25121
25122         openat: correct formatting (no semantic change)
25123         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25124         Suggested by Bruno Haible.
25125
25126 2010-04-11  Bruno Haible  <bruno@clisp.org>
25127
25128         Stricter declaration checking in testdirs.
25129         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25130         If for_tests is true, augment AM_CPPFLAGS to define
25131         GNULIB_STRICT_CHECKING.
25132         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25133         GNULIB_STRICT_CHECKING is defined, verify that the function is
25134         declared.
25135
25136 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25137             Bruno Haible  <bruno@clisp.org>
25138
25139         libunistring: Improve configure output.
25140         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25141         Don't say "consider installing GNU libunistring" when checking again
25142         with libiconv.
25143
25144 2010-04-11  Bruno Haible  <bruno@clisp.org>
25145
25146         libunistring: Correct value of $LTLIBUNISTRING.
25147         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25148         correct the value of $LTLIBUNISTRING.
25149
25150 2010-04-11  Bruno Haible  <bruno@clisp.org>
25151
25152         havelib: Add static libraries to LIBS in the right order.
25153         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25154         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25155
25156 2010-04-11  Bruno Haible  <bruno@clisp.org>
25157
25158         libunistring: Detect libunistring also when it depends on libiconv.
25159         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25160         the second AC_LIB_HAVE_LINKFLAGS invocation.
25161
25162 2010-04-11  James Youngman  <jay@gnu.org>
25163
25164         close-stream: declare local scalars to be "const"
25165         * lib/close-stream.c (close_stream): Make boolean variables const
25166         to document the fact that we set but do not change them.
25167
25168 2010-04-11  Bruno Haible  <bruno@clisp.org>
25169
25170         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25171
25172 2010-04-11  Jim Meyering  <meyering@redhat.com>
25173
25174         maint.mk: don't include dist-check.mk
25175         * top/maint.mk: Remove bogus include directive.
25176
25177         maint.mk: improve empty-line-at-EOF check
25178         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25179         solution, rather than tail+Perl-based one.  The latter would read
25180         a few kilobytes from the end of each file, and did not handle empty
25181         files properly.
25182
25183         maint.mk: print the elapsed time for each syntax-check rule
25184         * top/maint.mk (sc_m_rules_): Save start time in a file.
25185         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25186         (local-check): Interpose the .z rules
25187
25188 2010-04-11  Jim Meyering  <meyering@redhat.com>
25189
25190         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25191         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25192         empty file with one that ends in an empty line.
25193
25194 2010-04-10  Bruno Haible  <bruno@clisp.org>
25195
25196         mkdir: Make it work on mingw64.
25197         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25198         * lib/mkdir.c: Update comment.
25199         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
25200
25201 2010-04-10  Bruno Haible  <bruno@clisp.org>
25202
25203         Don't override improved macro from newer autoconf.
25204         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25205         autoconf >= 2.62.
25206         Reported by Joel E. Denny <jdenny@clemson.edu>.
25207
25208 2010-04-10  Jim Meyering  <meyering@redhat.com>
25209
25210         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25211         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25212
25213         maint.mk: correct a diagnostic
25214         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25215         in diagnostic; now use $prohibit.
25216
25217 2010-04-10  Bruno Haible  <address@hidden>
25218
25219         fchownat: Fix a C++ test error on Solaris 8.
25220         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25221         the function does not exist.
25222
25223 2010-04-10  Bruno Haible  <bruno@clisp.org>
25224
25225         vasnprintf: Add more tests.
25226         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25227         (test_function): Test converting an invalid wide string.
25228
25229         vasnprintf: Correct handling of unconvertible wide string arguments.
25230         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25231         VASNPRINTF.
25232         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25233         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25234         smaller than the expected maximum need for the directive. Set errno to
25235         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25236         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25238         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25239         * modules/vasnprintf (Files): Add m4/printf.m4.
25240         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25241
25242 2010-04-10  Bruno Haible  <bruno@clisp.org>
25243
25244         vasnprintf: Fix crash in %ls directive.
25245         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25246         string is passed as argument to %ls, with no precision and no width.
25247         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25248
25249 2010-04-10  Bruno Haible  <bruno@clisp.org>
25250
25251         vasnprintf: Fix multiple test failures on mingw.
25252         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25253         _snprintf, or snwprintf, not _snwprintf.
25254
25255 2010-04-10  Bruno Haible  <bruno@clisp.org>
25256
25257         write: Fix a C++ test error on mingw.
25258         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25259
25260 2010-04-10  Bruno Haible  <bruno@clisp.org>
25261
25262         vasnprintf test: Reduce code duplication.
25263         * tests/test-vasnprintf.c (test_function): New function, extracted from
25264         test_vasnprintf.
25265         (test_vasnprintf, test_asnprintf): Invoke it.
25266
25267 2010-04-10  Bruno Haible  <bruno@clisp.org>
25268
25269         strnlen: Fix warning in C++ mode on MacOS X.
25270         * lib/string.in.h (strnlen): Use the modern idiom.
25271         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25272         defining strnlen as a macro already in <config.h>.
25273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25274         REPLACE_STRNLEN.
25275         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25276         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25277
25278 2010-04-08  James Youngman  <jay@gnu.org>
25279
25280         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25281         the example.
25282
25283 2010-04-09  Jim Meyering  <meyering@redhat.com>
25284
25285         maint.mk: print better diagnostic when there is no $(_hv_file)
25286         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25287         announce that when $(_hv_file) (aka help-version) does not exist.
25288
25289         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25290         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25291         not try to interpret its random input bytes.  Jarno Rajahalme reported
25292         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25293         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25294         (mktempd_): Likewise, just in case.
25295
25296         ftruncate: add two years to projected module removal date: 2012
25297         * m4/ftruncate.m4: Adjust comments.
25298
25299         ftruncate: mark module as obsolete; even MinGW provides it, now
25300         * modules/ftruncate (Status): Obsolete.
25301         (Notice): Say that.
25302         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25303         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25304
25305 2010-04-08  Bruno Haible  <bruno@clisp.org>
25306
25307         Fix side effects from tests-related modules.
25308         * modules/dprintf-posix (Comment): New section.
25309         * modules/fprintf-posix (Comment): Likewise.
25310         * modules/obstack-printf-posix (Comment): Likewise.
25311         * modules/printf-posix (Comment): Likewise.
25312         * modules/snprintf-posix (Comment): Likewise.
25313         * modules/sprintf-posix (Comment): Likewise.
25314         * modules/vasnprintf-posix (Comment): Likewise.
25315         * modules/vasprintf-posix (Comment): Likewise.
25316         * modules/vdprintf-posix (Comment): Likewise.
25317         * modules/vfprintf-posix (Comment): Likewise.
25318         * modules/vprintf-posix (Comment): Likewise.
25319         * modules/vsnprintf-posix (Comment): Likewise.
25320         * modules/vsprintf-posix (Comment): Likewise.
25321         * modules/xprintf-posix (Comment): Likewise.
25322         * modules/xvasprintf-posix (Comment): Likewise.
25323         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25324         * modules/floorf-tests (Depends-on): Likewise.
25325         * modules/round-tests (Depends-on): Likewise.
25326         * modules/roundf-tests (Depends-on): Likewise.
25327         * modules/trunc-tests (Depends-on): Likewise.
25328         * modules/truncf-tests (Depends-on): Likewise.
25329         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25330         'fprintf-posix' module is not present.
25331         * tests/test-floorf2.c (check): Likewise.
25332         * tests/test-trunc2.c (check): Likewise.
25333         * tests/test-truncf2.c (check): Likewise.
25334         * tests/test-round2.c (equal): Likewise.
25335         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25336
25337 2010-04-07  Karl Berry  <karl@gnu.org>
25338
25339         * config/srclist.txt,
25340         * config/srclistvars.sh,
25341         * config/srclist-update: doc fixes.
25342
25343 2010-04-07  Jim Meyering  <meyering@redhat.com>
25344
25345         maint.mk: add a PATH crosschecking syntax-check rule
25346         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25347         Useful if you use a test like the one in help-version (coreutils,
25348         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25349         printed by prog --version.
25350
25351 2010-04-06  Bruno Haible  <bruno@clisp.org>
25352
25353         Fix link error on mingw.
25354         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25355         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25356
25357 2010-04-06  Bruno Haible  <bruno@clisp.org>
25358
25359         Assume rmdir exists.
25360         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25361
25362 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25363
25364         doc: update users.txt
25365         * users.txt: Add gcal.
25366
25367 2010-04-06  Jim Meyering  <meyering@redhat.com>
25368
25369         init.sh: simply unset TMPDIR rather than risking env -i
25370         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25371         although it probably works fine on all Unix-based systems, some
25372         systems (Cygwin?) cannot tolerate a totally cleared environment.
25373         Suggestion from Eric Blake.
25374
25375 2010-04-06  Jim Meyering  <meyering@redhat.com>
25376
25377         init.sh: portability fix: use env's POSIX-specified -i option not -u
25378         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25379         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25380
25381 2010-04-05  Bruno Haible  <bruno@clisp.org>
25382
25383         btowc: Work around Cygwin 1.7.2 bug.
25384         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25385         does not map NUL to 0.
25386         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25387
25388 2010-04-05  Bruno Haible  <bruno@clisp.org>
25389
25390         Make the multithread modules work on Cygwin 1.7.2.
25391         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25392         imported symbols can be declared weak, so that it returns "no" on
25393         Cygwin 1.7.2.
25394
25395 2010-04-05  Bruno Haible  <bruno@clisp.org>
25396
25397         Use the module 'strncat'.
25398         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25399
25400         Tests for module 'strncat'.
25401         * modules/strncat-tests: New file.
25402         * tests/test-strncat.c: New file.
25403
25404         New module 'strncat'.
25405         * lib/string.in.h (strncat): New declaration.
25406         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25407         * m4/strncat.m4: New file, based on m4/memchr.m4.
25408         * modules/strncat: New file.
25409         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25410         is declared.
25411         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25412         REPLACE_STRNCAT.
25413         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25414         REPLACE_STRNCAT.
25415         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25416         module.
25417         * tests/test-string-c++.cc: Check signature of strncat.
25418
25419 2010-04-05  Jim Meyering  <meyering@redhat.com>
25420
25421         xstrtoumax-tests: convert to use init.sh
25422         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25423         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25424         Use Exit, not exit.
25425         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25426
25427         xstrtoimax-tests: convert to use init.sh
25428         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25429         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25430         Use Exit, not exit.
25431         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25432
25433 2010-04-05  Bruno Haible  <bruno@clisp.org>
25434
25435         sys_socket: Avoid #define replacements in C++ mode.
25436         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25437         warning to the function if possible, rather than #defining the symbol
25438         to a dysfunctional alias.
25439
25440 2010-04-05  Bruno Haible  <bruno@clisp.org>
25441
25442         fseeko: Fix C++ test error on mingw.
25443         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25444         gl_FUNC_FSEEKO.
25445         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25446         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25447         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25448         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25449
25450 2010-04-05  Bruno Haible  <bruno@clisp.org>
25451
25452         duplocale: Improve test output.
25453         * tests/test-duplocale.c (main): Print reason for skipped test.
25454
25455 2010-04-05  Bruno Haible  <bruno@clisp.org>
25456
25457         Assume rmdir exists.
25458         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25459         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25460
25461 2010-04-05  Bruno Haible  <bruno@clisp.org>
25462
25463         Fix link error on Solaris 8 with cc.
25464         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25465
25466 2010-04-05  Bruno Haible  <bruno@clisp.org>
25467
25468         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25469         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25470
25471 2010-04-05  Bruno Haible  <bruno@clisp.org>
25472
25473         vasprintf: Update documentation.
25474         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25475
25476 2010-04-05  Bruno Haible  <bruno@clisp.org>
25477
25478         ptsname: Improve test.
25479         * tests/test-ptsname.c (main): Also try the various master names of BSD
25480         systems.
25481
25482 2010-04-05  Bruno Haible  <bruno@clisp.org>
25483
25484         memchr: Avoid a possible C++ test error.
25485         * lib/string.in.h (memchr): Provide declaration if function is missing.
25486         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25487         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25489         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25490
25491 2010-04-05  Bruno Haible  <bruno@clisp.org>
25492
25493         strtok_r: Improve idiom.
25494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25495         AC_LIBOBJ is used.
25496
25497 2010-04-05  Bruno Haible  <bruno@clisp.org>
25498
25499         strdup: Improve idiom.
25500         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25501         AC_LIBOBJ is used.
25502         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25503         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25504         when AC_LIBOBJ is used.
25505
25506 2010-04-05  Bruno Haible  <bruno@clisp.org>
25507
25508         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25509         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25510         don't set REPLACE_MBSINIT to 1.
25511         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25512         don't set REPLACE_MBRTOWC to 1.
25513         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25514         exist, don't set REPLACE_MBSRTOWCS to 1.
25515         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25516         exist, don't set REPLACE_MBSNRTOWCS to 1.
25517         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25518         don't set REPLACE_WCRTOMB to 1.
25519         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25520         exist, don't set REPLACE_WCSRTOMBS to 1.
25521         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25522         exist, don't set REPLACE_WCSNRTOMBS to 1.
25523
25524 2010-04-05  Bruno Haible  <bruno@clisp.org>
25525
25526         ldexpl: Improve idiom.
25527         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25528         make sure to set HAVE_DECL_LDEXPL to 0.
25529
25530 2010-04-05  Jim Meyering  <meyering@redhat.com>
25531
25532         xstrtol-tests: convert to use init.sh
25533         * modules/xstrtol-tests (Files): Add tests/init.sh.
25534         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25535         Use Exit, not exit.
25536         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25537
25538         atexit-tests: convert to use init.sh
25539         * modules/atexit-tests (Files): Add tests/init.sh.
25540         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25541         Use Exit, not exit.
25542         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25543
25544         init.sh: fix typo
25545         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25546
25547         init.sh: make it easier for a test script to write to the tty, ...
25548         when using automake's parallel-tests mode.
25549         * tests/init.sh (stderr_fileno_): Define overridable variable.
25550         (warn_): New function, to use it.
25551         (fail_, skip_, framework_failure_): Use warn_.
25552
25553 2010-04-04  Bruno Haible  <bruno@clisp.org>
25554
25555         btowc: Avoid warning.
25556         * lib/btowc.c: Include <stdlib.h>.
25557         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25558
25559 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25560             Bruno Haible  <bruno@clisp.org>
25561
25562         wchar: Port to NetBSD 1.5.
25563         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25564         * lib/wctype.in.h (WEOF): Likewise.
25565
25566 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25567             Bruno Haible  <bruno@clisp.org>
25568
25569         Port extended stdio to NetBSD 1.5.
25570         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25571         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25572         older.
25573
25574 2010-04-04  Bruno Haible  <bruno@clisp.org>
25575
25576         string: Remove unused substitution.
25577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25578         HAVE_DECL_STRERROR.
25579         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25580
25581 2010-04-04  Bruno Haible  <bruno@clisp.org>
25582
25583         strtod: Avoid a possible C++ test error.
25584         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25585         set REPLACE_STRTOD.
25586
25587 2010-04-04  Bruno Haible  <bruno@clisp.org>
25588
25589         strerror: Update documentation.
25590         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25591
25592 2010-04-04  Bruno Haible  <bruno@clisp.org>
25593
25594         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25595         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25596         _GL_CXXALIAS_SYS_CAST.
25597
25598 2010-04-04  Bruno Haible  <bruno@clisp.org>
25599
25600         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25601         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25602         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25603         REPLACE_FREXPL to 1.
25604         * doc/posix-functions/frexpl.texi: Update documentation.
25605
25606 2010-04-04  Bruno Haible  <bruno@clisp.org>
25607
25608         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25609         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25610
25611 2010-04-04  Bruno Haible  <bruno@clisp.org>
25612
25613         Implement nanosleep for native Windows.
25614         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25615
25616 2010-04-04  Bruno Haible  <bruno@clisp.org>
25617
25618         math: Fix some C++ test errors on Solaris 8.
25619         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25620
25621 2010-04-04  Bruno Haible  <bruno@clisp.org>
25622
25623         math: Fix some C++ test errors on Cygwin.
25624         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25625         truncl): Provide declaration if the system does not have it.
25626         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25627         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25628         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25629         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25630         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25631         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25632         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25633         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25634         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25635         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25636         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25637         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25638         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25639         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25640         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25641         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25643         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25644         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25645         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25646         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25647         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25648
25649 2010-04-04  Bruno Haible  <bruno@clisp.org>
25650
25651         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25652         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25653         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25654         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25655         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25656         * m4/isinf.m4 (gl_ISINF): Likewise.
25657         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25658
25659 2010-04-04  Bruno Haible  <bruno@clisp.org>
25660
25661         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25662         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25663
25664 2010-04-04  Bruno Haible  <bruno@clisp.org>
25665
25666         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25667         * modules/tmpfile (configure.ac): Update.
25668
25669         tmpfile: Fix C++ test error on mingw.
25670         * lib/stdio.in.h (tmpfile): New declaration.
25671         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25672         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25673         * modules/tmpfile (Depends-on): Add stdio.
25674         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25675         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25676         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25677         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25678         REPLACE_TMPFILE.
25679         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25680
25681 2010-04-04  Bruno Haible  <bruno@clisp.org>
25682
25683         ioctl: Fix C++ test error on mingw.
25684         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25685         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25686         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25687
25688 2010-04-03  Bruno Haible  <bruno@clisp.org>
25689
25690         wcwidth: Fix C++ test error on mingw.
25691         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25693         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25694
25695 2010-04-03  Bruno Haible  <bruno@clisp.org>
25696
25697         nanosleep: Fix C++ test error on mingw.
25698         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25699         * lib/time.in.h (nanosleep): Use modern idiom.
25700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25701         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25702         REPLACE_NANOSLEEP to 1.
25703         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25704         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25705
25706 2010-04-03  Bruno Haible  <bruno@clisp.org>
25707
25708         strptime: Fix C++ test error on mingw.
25709         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25710         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25711         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25712         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25713         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25714         not REPLACE_STRPTIME.
25715         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25716         REPLACE_STRPTIME.
25717
25718 2010-04-03  Bruno Haible  <bruno@clisp.org>
25719
25720         timegm: Fix C++ test error on mingw.
25721         * lib/time.in.h (timegm): Use modern idiom.
25722         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25723         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25724         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25725         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25726
25727 2010-04-03  Bruno Haible  <bruno@clisp.org>
25728
25729         timegm: Assume declaration if function exists.
25730         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25731         if it exists. Don't clobber ac_cv_func_timegm.
25732
25733 2010-04-03  Bruno Haible  <bruno@clisp.org>
25734
25735         time_r: Fix C++ test error on mingw.
25736         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25737         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25738         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25739         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25740         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25741
25742 2010-04-03  Bruno Haible  <bruno@clisp.org>
25743
25744         time_r: Minor updates.
25745         * modules/time_r (Description): Mention the provided functions.
25746         * lib/time_r.c: Don't include <string.h>.
25747         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25748         * doc/posix-functions/localtime_r.texi: Likewise.
25749
25750 2010-04-03  Bruno Haible  <bruno@clisp.org>
25751
25752         time: Fix regression introduced on 2010-03-08.
25753         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25754         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25755
25756 2010-04-03  Jim Meyering  <meyering@redhat.com>
25757
25758         maint.mk: don't silently disable project-specific syntax-check rules
25759         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25760         that they need to convert their project-specific syntax-check rules
25761         to use the new _sc_search_regexp.
25762
25763 2010-04-03  Bruno Haible  <bruno@clisp.org>
25764
25765         fchdir: Fix regression introduced on 2010-03-08.
25766         * lib/unistd.in.h (fchdir): Fix declaration.
25767         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25769         REPLACE_FCHDIR.
25770         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25771         REPLACE_FCHDIR.
25772
25773 2010-04-03  Bruno Haible  <bruno@clisp.org>
25774
25775         getpagesize: Fix C++ test error on mingw.
25776         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25777         system does not declare the function.
25778         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25779         declared.
25780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25781         HAVE_DECL_GETPAGESIZE.
25782         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25783
25784 2010-04-03  Bruno Haible  <bruno@clisp.org>
25785
25786         stdio: Make C++ tests work on mingw.
25787         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25788         does not declare the function.
25789
25790 2010-04-03  Bruno Haible  <bruno@clisp.org>
25791
25792         ftello: Fix C++ test error on mingw.
25793         * lib/stdio.in.h (ftello): Use modern idiom.
25794         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25795         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25796         is missing and that it needs to be replaced.
25797         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25799         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25800
25801 2010-04-03  Bruno Haible  <bruno@clisp.org>
25802
25803         fseeko: Fix C++ test error on mingw.
25804         * lib/stdio.in.h (fseeko): Use modern idiom.
25805         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25806         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25807         is missing and that it needs to be replaced.
25808         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25810         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25811
25812 2010-04-03  Bruno Haible  <bruno@clisp.org>
25813
25814         mkstemp: Fix C++ test error on mingw.
25815         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25816         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25817         function is missing and that it needs to be replaced.
25818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25819         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25820
25821 2010-04-03  Bruno Haible  <bruno@clisp.org>
25822
25823         stpncpy: Fix C++ test error on mingw.
25824         * lib/string.in.h (stpncpy): Use modern idiom.
25825         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25826         function is missing and that it needs to be replaced.
25827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25828         REPLACE_STPNCPY.
25829         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25830
25831 2010-04-03  Bruno Haible  <bruno@clisp.org>
25832
25833         sys_stat: Fix C++ test error on mingw.
25834         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25835         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25836
25837 2010-04-03  Bruno Haible  <bruno@clisp.org>
25838
25839         pty: Update doc.
25840         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25841
25842 2010-04-03  Bruno Haible  <bruno@clisp.org>
25843
25844         unistd: Fix C++ test error on mingw.
25845         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25846
25847 2010-04-03  Bruno Haible  <bruno@clisp.org>
25848
25849         Update doc regarding mingw.
25850         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25851         * doc/glibc-functions/login_tty.texi: Likewise.
25852         * doc/glibc-functions/forkpty.texi: Likewise.
25853
25854 2010-04-03  Bruno Haible  <bruno@clisp.org>
25855
25856         stdlib: Avoid compilation failure of c-strtold on mingw.
25857         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25858
25859 2010-04-03  Bruno Haible  <bruno@clisp.org>
25860
25861         locale: Make C++ tests work on Cygwin and mingw.
25862         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25863         cannot provide the function.
25864         Reported by Simon Josefsson.
25865
25866 2010-04-03  Bruno Haible  <bruno@clisp.org>
25867
25868         localename: Port to MacOS X 10.6.
25869         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25870         memory layout of the locales in MacOS X 10.6 as well.
25871         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25872
25873 2010-04-02  Bruno Haible  <bruno@clisp.org>
25874
25875         gnulib-tool: Ensure that long-running tests are executed last.
25876         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25877         running tests after the one for the other tests.
25878
25879 2010-04-02  Bruno Haible  <bruno@clisp.org>
25880
25881         gnulib-tool: Ensure the tests in the main directory are executed first.
25882         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25883         start with the current directory.
25884
25885 2010-04-02  Bruno Haible  <bruno@clisp.org>
25886
25887         Tests for module 'havelib', moved here from GNU gettext.
25888         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25889         modifications.
25890         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25891         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25892         with modifications.
25893         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25894         modifications.
25895         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25896         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25897         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25898         with modifications.
25899         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25900         with modifications.
25901         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25902         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25903         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25904         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25905         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25906         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25907         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25908         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25909         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25910         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25911         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25912         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25913         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25914         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25915         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25916         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25917         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25918         with modifications.
25919         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25920         with modifications.
25921         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25922         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25923         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25924         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25925         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25926         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25927         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25928         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25929         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25930         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25931         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25932         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25933         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25934         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25935         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25936         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25937         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25938         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25939         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25940         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25941         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25942         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25943         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25944         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25945         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25946         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25947         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25948         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25949         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25950         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25951         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25952         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25953         * tests/havelib/rpathx/rpathx.c: New file, from
25954         gettext/autoconf-lib-link.
25955         * tests/havelib/rpathx/Makefile.am: New file, from
25956         gettext/autoconf-lib-link.
25957         * tests/havelib/rpathx/configure.ac: New file, from
25958         gettext/autoconf-lib-link with modifications.
25959         * tests/havelib/rpathy/rpathy.c: New file, from
25960         gettext/autoconf-lib-link.
25961         * tests/havelib/rpathy/Makefile.am: New file, from
25962         gettext/autoconf-lib-link.
25963         * tests/havelib/rpathy/configure.ac: New file, from
25964         gettext/autoconf-lib-link with modifications.
25965         * tests/havelib/rpathz/rpathz.c: New file, from
25966         gettext/autoconf-lib-link.
25967         * tests/havelib/rpathz/Makefile.am: New file, from
25968         gettext/autoconf-lib-link.
25969         * tests/havelib/rpathz/configure.ac: New file, from
25970         gettext/autoconf-lib-link with modifications.
25971         * tests/havelib/rpathlx/usex.c: New file, from
25972         gettext/autoconf-lib-link.
25973         * tests/havelib/rpathlx/Makefile.am: New file, from
25974         gettext/autoconf-lib-link.
25975         * tests/havelib/rpathlx/configure.ac: New file, from
25976         gettext/autoconf-lib-link with modifications.
25977         * tests/havelib/rpathly/usey.c: New file, from
25978         gettext/autoconf-lib-link.
25979         * tests/havelib/rpathly/Makefile.am: New file, from
25980         gettext/autoconf-lib-link.
25981         * tests/havelib/rpathly/configure.ac: New file, from
25982         gettext/autoconf-lib-link with modifications.
25983         * tests/havelib/rpathlz/usez.c: New file, from
25984         gettext/autoconf-lib-link.
25985         * tests/havelib/rpathlz/Makefile.am: New file, from
25986         gettext/autoconf-lib-link.
25987         * tests/havelib/rpathlz/configure.ac: New file, from
25988         gettext/autoconf-lib-link with modifications.
25989         * tests/havelib/rpathlyx/usey.c: New file, from
25990         gettext/autoconf-lib-link.
25991         * tests/havelib/rpathlyx/Makefile.am: New file, from
25992         gettext/autoconf-lib-link.
25993         * tests/havelib/rpathlyx/configure.ac: New file, from
25994         gettext/autoconf-lib-link with modifications.
25995         * tests/havelib/rpathlzyx/usez.c: New file, from
25996         gettext/autoconf-lib-link.
25997         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25998         gettext/autoconf-lib-link.
25999         * tests/havelib/rpathlzyx/configure.ac: New file, from
26000         gettext/autoconf-lib-link with modifications.
26001         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26002         with modifications.
26003
26004 2010-04-02  Bruno Haible  <bruno@clisp.org>
26005
26006         gnulib-tool: Create distributed built sources also for the tests.
26007         * gnulib-tool (func_create_testdir): Also generate distributed built
26008         sources in the tests directory.
26009
26010 2010-04-02  Bruno Haible  <bruno@clisp.org>
26011
26012         gnulib-tool: Obey user's environment variables.
26013         * gnulib-tool (func_create_testdir): When creating built sources,
26014         respect the environment variables for autoconf, automake, etc. given by
26015         the user.
26016
26017 2010-04-02  Bruno Haible  <bruno@clisp.org>
26018
26019         gnulib-tool: Provide the value of --m4-base to modules.
26020         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26021         of gl_m4_base.
26022
26023 2010-04-02  Eric Blake  <eblake@redhat.com>
26024
26025         maint.mk: fix some fallout
26026         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26027         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26028
26029 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26030
26031         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26032         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26033         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26034         (sc_cast_of_x_alloc_return_value): Likewise.
26035         (sc_cast_of_alloca_return_value): Likewise.
26036         (sc_space_tab): Likewise.
26037         (sc_prohibit_atoi_atof): Likewise.
26038         (sc_prohibit_magic_number_exit): Likewise.
26039         (sc_error_exit_success): Likewise.
26040         (sc_file_system): Likewise.
26041         (sc_prohibit_have_config_h): Likewise.
26042         (sc_require_config_h): Likewise.
26043         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26044         (sc_obsolete_symbols): Likewise.
26045         (sc_changelog): Likewise.
26046         (sc_program_name): Likewise.
26047         (sc_the_the): Likewise.
26048         (sc_trailing_blank): Likewise.
26049         (sc_two_space_separator_in_usage): Likewise.
26050         (sc_useless_cpp_parens): Likewise.
26051         (sc_GPL_version): Likewise.
26052         (sc_GFDL_version): Likewise.
26053         (sc_texinfo_acronym): Likewise.
26054         (sc_prohibit_cvs_keyword): Likewise.
26055         (sc_prohibit_stat_st_blocks): Likewise.
26056         (sc_prohibit_S_IS_definition): Likewise.
26057         (sc_redundant_const): Likewise.
26058         (sc_makefile_TAB_only_indentation): Likewise.
26059         (sc_m4_quote_check): Likewise.
26060         (sc_makefile_path_separator_check): Likewise.
26061         (sc_copyright_check): Likewise.
26062         (sc_Wundef_boolean): Likewise.
26063         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26064
26065         maint.mk: match 0 or more whitespace-before-function-call '('
26066         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26067         that have zero or two-and-more spaces between the function name
26068         and the open parenthesis.
26069         (sc_error_message_warn_fatal): Likewise.
26070         (sc_error_message_uppercase): Likewise.
26071         (sc_error_message_period): Likewise.
26072
26073 2010-03-31  Eric Blake  <eblake@redhat.com>
26074
26075         maint.mk: check for [ as well as test
26076         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26077         Based on a libvirt report by Matthias Bolte.
26078
26079         gnumakefile: don't squelch _version output
26080         * top/GNUmakefile (_version): Create one-shot dependency rather
26081         than using $(shell) when version must be regenerated.
26082         (_autoreconf): Run verbosely, by default.
26083
26084         sys_time: avoid compiler warnings
26085         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26086         unconditional, fixing regression from 2010-03-29.
26087         Reported by Simon Josefsson.
26088
26089 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26090
26091         maint.mk: s/_header_without_use/_sc_header_without_use/
26092         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26093         (sc_prohibit_assert_without_use): Use the new name.
26094         (sc_prohibit_close_stream_without_use): Likewise.
26095         (sc_prohibit_getopt_without_use): Likewise.
26096         (sc_prohibit_quotearg_without_use): Likewise.
26097         (sc_prohibit_quote_without_use): Likewise.
26098         (sc_prohibit_long_options_without_use): Likewise.
26099         (sc_prohibit_inttostr_without_use): Likewise.
26100         (sc_prohibit_ignore_value_without_use): Likewise.
26101         (sc_prohibit_error_without_use): Likewise.
26102         (sc_prohibit_xalloc_without_use): Likewise.
26103         (sc_prohibit_hash_without_use): Likewise.
26104         (sc_prohibit_hash_pjw_without_use): Likewise.
26105         (sc_prohibit_safe_read_without_use): Likewise.
26106         (sc_prohibit_argmatch_without_use): Likewise.
26107         (sc_prohibit_canonicalize_without_use): Likewise.
26108         (sc_prohibit_root_dev_ino_without_use): Likewise.
26109         (sc_prohibit_openat_without_use): Likewise.
26110         (sc_prohibit_c_ctype_without_use): Likewise.
26111         (sc_prohibit_signal_without_use): Likewise.
26112         (sc_prohibit_intprops_without_use): Likewise.
26113
26114 2010-03-30  Eric Blake  <eblake@redhat.com>
26115
26116         maint: improve module indicators
26117         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26118         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26119         columns, and avoid extra macro expansion.
26120
26121         fdopendir: work around FreeBSD bug
26122         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26123         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26124         * modules/dirent (Makefile.am): Substitute it.
26125         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26126         declaration.
26127         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26128         fix.
26129         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26130
26131 2010-03-29  Bruno Haible  <bruno@clisp.org>
26132
26133         Emit #pragma system_header after the inclusion guard, not before.
26134         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26135         guard that spans the entire file, not before. This enables an
26136         optimization in GCC's preprocessor.
26137         * lib/ctype.in.h: Likewise.
26138         * lib/dirent.in.h: Likewise.
26139         * lib/errno.in.h: Likewise.
26140         * lib/float.in.h: Likewise.
26141         * lib/getopt.in.h: Likewise.
26142         * lib/iconv.in.h: Likewise.
26143         * lib/langinfo.in.h: Likewise.
26144         * lib/locale.in.h: Likewise.
26145         * lib/math.in.h: Likewise.
26146         * lib/netdb.in.h: Likewise.
26147         * lib/netinet_in.in.h: Likewise.
26148         * lib/pty.in.h: Likewise.
26149         * lib/sched.in.h: Likewise.
26150         * lib/se-selinux.in.h: Likewise.
26151         * lib/search.in.h: Likewise.
26152         * lib/spawn.in.h: Likewise.
26153         * lib/stdarg.in.h: Likewise.
26154         * lib/stdint.in.h: Likewise.
26155         * lib/string.in.h: Likewise.
26156         * lib/strings.in.h: Likewise.
26157         * lib/sys_file.in.h: Likewise.
26158         * lib/sys_ioctl.in.h: Likewise.
26159         * lib/sys_time.in.h: Likewise.
26160         * lib/sys_times.in.h: Likewise.
26161         * lib/sys_utsname.in.h: Likewise.
26162         * lib/sys_wait.in.h: Likewise.
26163         * lib/sysexits.in.h: Likewise.
26164         * lib/wctype.in.h: Likewise.
26165
26166 2010-03-28  James Youngman  <jay@gnu.org>
26167
26168         save-cwd: don't leak a file descriptor when the caller execs.
26169         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26170         saved file descriptor.
26171         * modules/save-cwd (Depends-on): Depend on cloexec.
26172
26173 2010-03-29  Bruno Haible  <bruno@clisp.org>
26174
26175         Remove vestiges of fts-lgpl module.
26176         * lib/fts_.h: Assume GNULIB_FTS is 1.
26177         * lib/fts.c: Likewise.
26178         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26179
26180 2010-03-28  Bruno Haible  <bruno@clisp.org>
26181
26182         Fix definition of tests witness macro.
26183         * gnulib-tool (func_import): Fix definition of witness macro.
26184
26185 2010-03-28  Bruno Haible  <bruno@clisp.org>
26186
26187         Fix ioctl's protoype on glibc systems.
26188         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26189         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26190         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26191         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26192         signature. If not, arrange to replace the ioctl function.
26193         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26194         REPLACE_IOCTL.
26195         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26196         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26197         Reported by Ludovic Courtès <ludo@gnu.org>.
26198
26199 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26200
26201         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26202         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26203         made it so grep -r --include=GLOB* ... did not work.
26204
26205 2010-03-26  Jim Meyering  <meyering@redhat.com>
26206             Eric Blake  <eblake@redhat.com>
26207
26208         maint.mk: prohibit use of test's -o and -a operators
26209         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26210
26211 2010-03-28  Bruno Haible  <bruno@clisp.org>
26212
26213         Remove unused GNULIB_XYZ macro definitions.
26214         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26215         invocation.
26216
26217 2010-03-28  Bruno Haible  <bruno@clisp.org>
26218
26219         Mark privileged tests modules.
26220         * modules/idpriv-drop-tests (Status): New section.
26221         * modules/idpriv-droptemp-tests (Status): New section.
26222
26223 2010-03-28  Bruno Haible  <bruno@clisp.org>
26224
26225         Split C++ tests into separate tests modules.
26226         * modules/dirent-c++-tests: New file, extracted from
26227         modules/dirent-tests.
26228         * modules/dirent-tests: Depend on it.
26229         * modules/fcntl-h-c++-tests: New file, extracted from
26230         modules/fcntl-h-tests.
26231         * modules/fcntl-h-tests: Depend on it.
26232         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26233         * modules/glob-tests: Depend on it.
26234         * modules/iconv-h-c++-tests: New file, extracted from
26235         modules/iconv-h-tests.
26236         * modules/iconv-h-tests: Depend on it.
26237         * modules/langinfo-c++-tests: New file, extracted from
26238         modules/langinfo-tests.
26239         * modules/langinfo-tests: Depend on it.
26240         * modules/locale-c++-tests: New file, extracted from
26241         modules/locale-tests.
26242         * modules/locale-tests: Depend on it.
26243         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26244         * modules/math-tests: Depend on it.
26245         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26246         * modules/pty-tests: Depend on it.
26247         * modules/search-c++-tests: New file, extracted from
26248         modules/search-tests.
26249         * modules/search-tests: Depend on it.
26250         * modules/signal-c++-tests: New file, extracted from
26251         modules/signal-tests.
26252         * modules/signal-tests: Depend on it.
26253         * modules/spawn-c++-tests: New file, extracted from
26254         modules/spawn-tests.
26255         * modules/spawn-tests: Depend on it.
26256         * modules/stdio-c++-tests: New file, extracted from
26257         modules/stdio-tests.
26258         * modules/stdio-tests: Depend on it.
26259         * modules/stdlib-c++-tests: New file, extracted from
26260         modules/stdlib-tests.
26261         * modules/stdlib-tests: Depend on it.
26262         * modules/string-c++-tests: New file, extracted from
26263         modules/string-tests.
26264         * modules/string-tests: Depend on it.
26265         * modules/sys_ioctl-c++-tests: New file, extracted from
26266         modules/sys_ioctl-tests.
26267         * modules/sys_ioctl-tests: Depend on it.
26268         * modules/sys_select-c++-tests: New file, extracted from
26269         modules/sys_select-tests.
26270         * modules/sys_select-tests: Depend on it.
26271         * modules/sys_socket-c++-tests: New file, extracted from
26272         modules/sys_socket-tests.
26273         * modules/sys_socket-tests: Depend on it.
26274         * modules/sys_stat-c++-tests: New file, extracted from
26275         modules/sys_stat-tests.
26276         * modules/sys_stat-tests: Depend on it.
26277         * modules/sys_time-c++-tests: New file, extracted from
26278         modules/sys_time-tests.
26279         * modules/sys_time-tests: Depend on it.
26280         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26281         * modules/time-tests: Depend on it.
26282         * modules/unistd-c++-tests: New file, extracted from
26283         modules/unistd-tests.
26284         * modules/unistd-tests: Depend on it.
26285         * modules/wchar-c++-tests: New file, extracted from
26286         modules/wchar-tests.
26287         * modules/wchar-tests: Depend on it.
26288         * modules/wctype-c++-tests: New file, extracted from
26289         modules/wctype-tests.
26290         * modules/wctype-tests: Depend on it.
26291         Reported by Simon Josefsson.
26292
26293 2010-03-28  Bruno Haible  <bruno@clisp.org>
26294
26295         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26296         * gnulib-tool (func_exists_module): New function, extracted from
26297         func_verify_module.
26298         (func_verify_module): Use it.
26299         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26300         'foo' only if 'foo' exists.
26301         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26302         module.
26303
26304 2010-03-28  Bruno Haible  <bruno@clisp.org>
26305
26306         gnulib-tool: Add support for special categories of tests.
26307         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26308         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26309         (func_usage): Document them.
26310         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26311         inc_unportable_tests, inc_all_tests): New variables.
26312         (func_acceptable): Consider these variables.
26313         (func_modules_transitive_closure): Make it work when the 'Status' field
26314         consists of multiple words.
26315         (func_import): Store and restore the values of inc_cxx_tests,
26316         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26317         inc_all_tests in gnulib-comp.m4.
26318         (func_create_testdir): Set inc_all_tests to true.
26319         * doc/gnulib.texi (Extra tests modules): New section.
26320         Suggested by Jim Meyering.
26321
26322 2010-03-28  Bruno Haible  <bruno@clisp.org>
26323
26324         ansi-c++-opt: Allow turning off the C++ build by default.
26325         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26326         gl_CXX_CHOICE_DEFAULT_NO is defined.
26327         Requested by Eric Blake.
26328
26329 2010-03-28  Bruno Haible  <bruno@clisp.org>
26330
26331         unistd: Avoid #define replacements in C++ mode.
26332         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26333         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26334         setsockopt, shutdown, select): In C++, attach a warning to the function
26335         if possible, rather than #defining the symbol to a dysfunctional alias.
26336         Reported by John W. Eaton <jwe@gnu.org>.
26337
26338 2010-03-28  Bruno Haible  <bruno@clisp.org>
26339
26340         Fix link errors on mingw.
26341         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26342         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26343         $(LIBSOCKET).
26344         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26345         $(LIBSOCKET).
26346
26347 2010-03-28  Bruno Haible  <bruno@clisp.org>
26348             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26349
26350         lib-ignore: Determine different options for different compilers.
26351         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26352         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26353         Add comments.
26354         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26355         * NEWS: Mention the change.
26356
26357 2010-03-27  Bruno Haible  <bruno@clisp.org>
26358
26359         Remove unused GNULIB_XYZ macro definitions.
26360         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26361         * modules/fseek (configure.ac): Likewise.
26362         * modules/ioctl (configure.ac): Likewise.
26363         * modules/open (configure.ac): Likewise.
26364         * modules/stdlib-safer (configure.ac): Likewise.
26365
26366 2010-03-27  Bruno Haible  <bruno@clisp.org>
26367
26368         Add a remark about certain modules.
26369         * modules/malloc (Comment): New section.
26370         * modules/realloc (Comment): Likewise.
26371         * modules/sigpipe (Comment): Likewise.
26372
26373 2010-03-27  Bruno Haible  <bruno@clisp.org>
26374
26375         Resolve conflict between the two kinds of module indicators.
26376         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26377         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26378         * modules/canonicalize (configure.ac): Invoke
26379         gl_MODULE_INDICATOR_FOR_TESTS.
26380         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26381         GNULIB_XYZ.
26382         * tests/test-dirent-c++.cc: Likewise.
26383         * tests/test-dirent-safer.c: Likewise.
26384         * tests/test-dup2.c: Likewise.
26385         * tests/test-fchdir.c: Likewise.
26386         * tests/test-fcntl-h-c++.cc: Likewise.
26387         * tests/test-getopt.c: Likewise.
26388         * tests/test-getopt.h: Likewise.
26389         * tests/test-langinfo-c++.cc: Likewise.
26390         * tests/test-locale-c++.cc: Likewise.
26391         * tests/test-math-c++.cc: Likewise.
26392         * tests/test-pty-c++.cc: Likewise.
26393         * tests/test-search-c++.cc: Likewise.
26394         * tests/test-signal-c++.cc: Likewise.
26395         * tests/test-spawn-c++.cc: Likewise.
26396         * tests/test-stdio-c++.cc: Likewise.
26397         * tests/test-stdlib-c++.cc: Likewise.
26398         * tests/test-string-c++.cc: Likewise.
26399         * tests/test-sys_ioctl-c++.cc: Likewise.
26400         * tests/test-sys_select-c++.cc: Likewise.
26401         * tests/test-sys_socket-c++.cc: Likewise.
26402         * tests/test-sys_stat-c++.cc: Likewise.
26403         * tests/test-sys_time-c++.cc: Likewise.
26404         * tests/test-time-c++.cc: Likewise.
26405         * tests/test-unistd-c++.cc: Likewise.
26406         * tests/test-wchar-c++.cc: Likewise.
26407         * tests/uninorm/test-u8-nfc.c: Likewise.
26408         * tests/uninorm/test-u8-nfd.c: Likewise.
26409         * tests/uninorm/test-u8-nfkc.c: Likewise.
26410         * tests/uninorm/test-u8-nfkd.c: Likewise.
26411         * tests/uninorm/test-u16-nfc.c: Likewise.
26412         * tests/uninorm/test-u16-nfd.c: Likewise.
26413         * tests/uninorm/test-u16-nfkc.c: Likewise.
26414         * tests/uninorm/test-u16-nfkd.c: Likewise.
26415         * tests/uninorm/test-u32-nfc.c: Likewise.
26416         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26417         * tests/uninorm/test-u32-nfd.c: Likewise.
26418         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26419         * tests/uninorm/test-u32-nfkc.c: Likewise.
26420         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26421         * tests/uninorm/test-u32-nfkd.c: Likewise.
26422         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26423         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26424
26425 2010-03-27  Bruno Haible  <bruno@clisp.org>
26426
26427         Distinguish two kinds of module indicators.
26428         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26429         gl_MODULE_INDICATOR.
26430         (gl_MODULE_INDICATOR): New macro.
26431         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26432         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26433         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26434         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26435         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26436         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26437         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26438         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26439         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26440         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26441         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26442         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26443         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26444         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26445         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26446         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26447         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26448         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26449         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26450         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26451         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26452         * modules/cloexec (configure.ac): Likewise.
26453         * modules/getopt-gnu (configure.ac): Likewise.
26454         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26455         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26456         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26457         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26458
26459 2010-03-27  Bruno Haible  <bruno@clisp.org>
26460
26461         New module description field 'Comment'.
26462         * gnulib-tool: New option --extract-comment.
26463         (func_usage): Document it.
26464         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26465         (func_get_comment): New function.
26466         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26467
26468 2010-03-27  Bruno Haible  <bruno@clisp.org>
26469
26470         Addendum to 2010-02-07 commit.
26471         * gnulib-tool (func_usage): Document --extract-applicability option.
26472
26473 2010-03-27  Bruno Haible  <bruno@clisp.org>
26474
26475         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26476         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26477         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26478         rather than link errors.
26479
26480 2010-03-27  Bruno Haible  <bruno@clisp.org>
26481
26482         Avoid side effects from tests-related modules on the compilation of lib.
26483         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26484         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26485         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26486         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26487         macro.
26488         (func_import): Define a witness macro. Assign it a value that depends
26489         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26490         tests-related modules.
26491         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26492         Reported by Jim Meyering.
26493
26494 2010-03-27  Bruno Haible  <bruno@clisp.org>
26495
26496         Factorize common .m4 code.
26497         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26498         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26499         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26500         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26501         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26502         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26503         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26504         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26505         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26506         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26507         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26508         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26509         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26510         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26511         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26512         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26513         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26514         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26516         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26517         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26518         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26519         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26520         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26521         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26522         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26523         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26524         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26525         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26526         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26527         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26528         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26529
26530 2010-03-27  Bruno Haible  <bruno@clisp.org>
26531
26532         Fix a compilation error on Cygwin with g++ >= 4.3.
26533         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26534         if it is undefined or if we alias it to chmod.
26535         (lstat): Don't warn about the use of this function if it is undefined
26536         or if we alias it to stat.
26537         Reported by Simon Josefsson.
26538
26539 2010-03-27  Bruno Haible  <bruno@clisp.org>
26540
26541         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26542         * modules/getlogin (configure.ac): Update.
26543
26544         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26545         * modules/getlogin_r (configure.ac): Update.
26546
26547         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26548         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26549         * modules/inet_ntop (configure.ac): Update.
26550
26551         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26552         * modules/inet_pton (configure.ac): Update.
26553
26554         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26555         * modules/mbslen (configure.ac): Update.
26556
26557         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26558         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26559         * modules/forkpty (configure.ac): Update.
26560         * modules/openpty (configure.ac): Update.
26561
26562 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26563
26564         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26565         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26566
26567 2010-03-25  Eric Blake  <eblake@redhat.com>
26568
26569         maint: use pragma consistently across replacement headers
26570         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26571         * lib/dirent.in.h (system_header): Likewise.
26572         * lib/errno.in.h (system_header): Likewise.
26573         * lib/float.in.h (system_header): Likewise.
26574         * lib/getopt.in.h (system_header): Likewise.
26575         * lib/iconv.in.h (system_header): Likewise.
26576         * lib/inttypes.in.h (system_header): Likewise.
26577         * lib/langinfo.in.h (system_header): Likewise.
26578         * lib/locale.in.h (system_header): Likewise.
26579         * lib/math.in.h (system_header): Likewise.
26580         * lib/netdb.in.h (system_header): Likewise.
26581         * lib/netinet_in.in.h (system_header): Likewise.
26582         * lib/pty.in.h (system_header): Likewise.
26583         * lib/sched.in.h (system_header): Likewise.
26584         * lib/se-selinux.in.h (system_header): Likewise.
26585         * lib/search.in.h (system_header): Likewise.
26586         * lib/spawn.in.h (system_header): Likewise.
26587         * lib/stdarg.in.h (system_header): Likewise.
26588         * lib/stdint.in.h (system_header): Likewise.
26589         * lib/string.in.h (system_header): Likewise.
26590         * lib/strings.in.h (system_header): Likewise.
26591         * lib/sys_file.in.h (system_header): Likewise.
26592         * lib/sys_ioctl.in.h (system_header): Likewise.
26593         * lib/sys_socket.in.h (system_header): Likewise.
26594         * lib/sys_times.in.h (system_header): Likewise.
26595         * lib/sys_utsname.in.h (system_header): Likewise.
26596         * lib/sys_wait.in.h (system_header): Likewise.
26597         * lib/sysexits.in.h (system_header): Likewise.
26598         * lib/unistd.in.h (system_header): Likewise.
26599         * lib/wctype.in.h (system_header): Likewise.
26600
26601         arpa/inet: fix mingw compilation warning
26602         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26603         Reported by Matthew Bolte.
26604
26605 2010-03-25  Bruno Haible  <bruno@clisp.org>
26606
26607         Avoid collision between gnulib wrapper and libintl wrapper.
26608         * lib/printf.c (printf): Don't define if a printf wrapper is already
26609         defined in intl/printf.c.
26610         Reported by Michel Boaventura <michel@michelboaventura.com>.
26611
26612 2010-03-25  Bruno Haible  <bruno@clisp.org>
26613
26614         Use ANSI C.
26615         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26616
26617 2010-03-25  Bruno Haible  <bruno@clisp.org>
26618
26619         Minor formatting changes.
26620         * lib/acosl.c: Insert space before function argument list.
26621         * lib/argz.c: Likewise.
26622         * lib/asinl.c: Likewise.
26623         * lib/expl.c: Likewise.
26624         * lib/gen-uni-tables.c: Likewise.
26625         * lib/gettext.h: Likewise.
26626         * lib/glthread/lock.h: Likewise.
26627         * lib/tanl.c: Likewise.
26628         * lib/uniname/uniname.c: Likewise.
26629         * tests/test-idpriv-drop.c: Likewise.
26630         * tests/test-idpriv-droptemp.c: Likewise.
26631         * tests/test-lock.c: Likewise.
26632         * tests/test-tls.c: Likewise.
26633         * lib/argp-help.c: Insert space before function-like macro argument
26634         list.
26635         * lib/memcmp.c: Likewise.
26636         * tests/test-base64.c: Likewise.
26637         * lib/localename.c: Insert space before sizeof's argument list.
26638         * lib/safe-alloc.h: Likewise.
26639         * lib/file-set.h: Insert space before macro argument list.
26640         * tests/test-argp.c: Likewise.
26641         * lib/argp-namefrob.h: Insert space before function parameter list.
26642         * lib/getaddrinfo.c: Likewise.
26643         * lib/netdb.in.h: Likewise.
26644         * lib/parse-duration.h: Likewise.
26645         * lib/parse-duration.c: Likewise.
26646         * lib/poll.c: Likewise.
26647         * lib/select.c: Likewise.
26648         * lib/trim.h: Likewise.
26649         * tests/test-usleep.c: Likewise.
26650         * lib/ldexpl.c: Insert space before function parameter list and before
26651         function argument list.
26652         * lib/logl.c: Likewise.
26653         * lib/sqrtl.c: Likewise.
26654         * lib/trim.c: Likewise.
26655         * lib/cosl.c: Use GNU style indentation. Insert space before function
26656         argument list.
26657         * lib/sinl.c: Likewise.
26658         * lib/tsearch.c: Insert space after 'for'.
26659         Reported by Jim Meyering.
26660
26661 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26662
26663         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26664         config header before grepping, as it's not present before
26665         autoreconf/configure are run.  Reported by Simon Josefsson.
26666
26667 2010-03-23  Bruno Haible  <bruno@clisp.org>
26668
26669         pt_chown: Make it work with automake < 1.11.
26670         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26671         Reported by Simon Josefsson.
26672
26673 2010-03-23  Bruno Haible  <bruno@clisp.org>
26674
26675         pt_chown: Don't depend on GPLed modules.
26676         * lib/pt_chown.c: Don't include idpriv.h.
26677         (main): Don't drop privileges.
26678         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26679         Reported by Simon Josefsson.
26680
26681 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26682
26683         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26684         suggestions from karl@freefriends.org (Karl Berry).
26685
26686 2010-03-22  Eric Blake  <eblake@redhat.com>
26687
26688         gethostname: further tweaks
26689         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26690         are overriding gethostname.
26691         Suggested by Bruno Haible.
26692
26693 2010-03-21  Bruno Haible  <bruno@clisp.org>
26694
26695         Fix comments.
26696         * lib/forkpty.c (rpl_forkpty): Fix comment.
26697         * lib/openpty.c (rpl_openpty): Likewise.
26698         Reported by Eric Blake.
26699
26700 2010-03-22  Eric Blake  <eblake@redhat.com>
26701
26702         gethostname: fix build on mingw
26703         * lib/unistd.in.h (includes): Work around fact that mingw
26704         <winsock2.h> re-includes <unistd.h>, by avoiding any
26705         redeclarations if we are being included by <winsock2.h>.
26706         Reported by Matthias Bolte.
26707
26708 2010-03-21  Bruno Haible  <bruno@clisp.org>
26709
26710         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26711         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26712         modifications.
26713         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26714         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26715         provide the replacement.
26716         * modules/forkpty (Depends-on): Add openpty, login_tty.
26717         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26718         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26719         * doc/glibc-functions/forkpty.texi: More supported platforms.
26720         * config/srclist.txt: Add forkpty.c (commented).
26721
26722 2010-03-21  Bruno Haible  <bruno@clisp.org>
26723
26724         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26725         (Makefile.am): Verify that PTY_LIB is defined.
26726
26727         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26728
26729 2010-03-21  Bruno Haible  <bruno@clisp.org>
26730
26731         Tests for module 'login_tty'.
26732         * modules/login_tty-tests: New file.
26733         * tests/test-login_tty.c: New file.
26734
26735         New module 'login_tty'.
26736         * lib/login_tty.c: New file.
26737         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26738         * modules/login_tty: New file.
26739         * doc/glibc-functions/login_tty.texi: Mention the new module.
26740
26741 2010-03-21  Bruno Haible  <bruno@clisp.org>
26742
26743         login_tty: Documentation.
26744         * doc/glibc-functions/login_tty.texi: New file.
26745         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26746
26747 2010-03-21  Bruno Haible  <bruno@clisp.org>
26748
26749         pty: Consistent macro naming.
26750         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26751         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26752         * modules/pty (configure.ac): Update.
26753
26754 2010-03-21  Bruno Haible  <bruno@clisp.org>
26755
26756         Tests for openpty: Make stricter.
26757         * tests/test-openpty.c (main): Add test of canonical processing and
26758         erase.
26759         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26760
26761         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26762         * lib/openpty.c (openpty): New replacement function.
26763         * lib/pty.in.h: Include <termios.h>.
26764         (openpty): Update declaration. Add comments.
26765         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26766         is not declared, arrange to provide the replacement. Check for _getpty
26767         and posix_openpt.
26768         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26769         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26770         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26771         * modules/pty-tests (test_pty_c___LDADD): New variable.
26772         * doc/glibc-functions/openpty.texi: More supported platforms.
26773
26774 2010-03-21  Bruno Haible  <bruno@clisp.org>
26775
26776         setenv: Tweaks.
26777         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26778         the test program.
26779         * doc/posix-functions/setenv.texi: Update platforms list.
26780
26781 2010-03-21  Bruno Haible  <bruno@clisp.org>
26782
26783         New module 'unlockpt'.
26784         * lib/unlockpt.c: New file, from glibc with modifications.
26785         * m4/unlockpt.m4: New file.
26786         * modules/unlockpt: New file.
26787         * lib/stdlib.in.h (unlockpt): New declaration.
26788         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26789         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26790         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26791         HAVE_UNLOCKPT.
26792         * doc/posix-functions/unlockpt.texi: Mention the new module.
26793         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26794         * config/srclist.txt: Add unlockpt.c (commented).
26795
26796 2010-03-21  Jim Meyering  <meyering@redhat.com>
26797
26798         maint.mk: prohibit inclusion of "intprops.h" without use
26799         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26800
26801 2010-03-21  Bruno Haible  <bruno@clisp.org>
26802
26803         New module 'grantpt'.
26804         * lib/grantpt.c: New file, from glibc with modifications.
26805         * m4/grantpt.m4: New file.
26806         * modules/grantpt: New file.
26807         * lib/stdlib.in.h (grantpt): New declaration.
26808         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26809         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26810         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26811         HAVE_GRANTPT.
26812         * doc/posix-functions/grantpt.texi: Mention the new module.
26813         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26814         * config/srclist.txt: Add grantpt.c (commented).
26815
26816 2010-03-21  Bruno Haible  <bruno@clisp.org>
26817
26818         New module 'pt_chown'.
26819         * lib/pt_chown.c: New file, from glibc with modifications.
26820         * lib/pty-private.h: New file, from glibc with modifications.
26821         * modules/pt_chown: New file.
26822         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26823
26824 2010-03-21  Bruno Haible  <bruno@clisp.org>
26825
26826         Tests for module 'ptsname'.
26827         * modules/ptsname-tests: New file.
26828         * tests/test-ptsname.c: New file.
26829
26830         New module 'ptsname'.
26831         * lib/ptsname.c: New file, from glibc with modifications.
26832         * m4/ptsname.m4: New file.
26833         * modules/ptsname: New file.
26834         * lib/stdlib.in.h (ptsname): New declaration.
26835         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26836         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26837         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26838         HAVE_PTSNAME.
26839         * doc/posix-functions/ptsname.texi: Mention the new module.
26840         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26841         * config/srclist.txt: Add ptsname.c (commented).
26842
26843 2010-03-21  Bruno Haible  <bruno@clisp.org>
26844
26845         Tests for module 'ttyname_r'.
26846         * modules/ttyname_r-tests: New file.
26847         * tests/test-ttyname_r.c: New file.
26848
26849         New module 'ttyname_r'.
26850         * lib/ttyname_r.c: New file.
26851         * m4/ttyname_r.m4: New file.
26852         * modules/ttyname_r: New file.
26853         * lib/unistd.in.h (ttyname_r): New declaration.
26854         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26855         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26856         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26857         HAVE_TTYNAME_R.
26858         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26859         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26860
26861 2010-03-20  Bruno Haible  <bruno@clisp.org>
26862
26863         signal: Undefine macro definitions in C++ mode.
26864         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26865         sigfillset): Undefine macro definitions from the system header in C++
26866         mode.
26867         Reported by John W. Eaton <jwe@gnu.org>.
26868
26869 2010-03-20  Bruno Haible  <bruno@clisp.org>
26870
26871         Ensure no #include statements inside extern "C" { ... }.
26872         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26873         contain #include statements.
26874         * lib/time.in.h: Likewise.
26875
26876 2010-03-20  Bruno Haible  <bruno@clisp.org>
26877
26878         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26879         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26880         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26881         Reported by John W. Eaton <jwe@gnu.org>.
26882
26883 2010-03-20  Bruno Haible  <bruno@clisp.org>
26884
26885         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26886         Reported by Jim Meyering.
26887
26888 2010-03-20  Bruno Haible  <bruno@clisp.org>
26889
26890         pipe: Set errno upon failure.
26891         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26892         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26893         errno value in error message.
26894
26895 2010-03-20  Bruno Haible  <bruno@clisp.org>
26896             Jim Meyering  <meyering@redhat.com>
26897
26898         lchown: Avoid "unused variable" warning.
26899         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26900
26901 2010-03-20  Bruno Haible  <bruno@clisp.org>
26902
26903         Work around unlink() bug on MacOS X 10.5.6.
26904         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26905         attempting to unlink a parent directory.
26906         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26907         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26908         activate for the replacement function.
26909         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26910
26911 2010-03-20  Bruno Haible  <bruno@clisp.org>
26912
26913         Fix link errors on Solaris 8.
26914         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26915         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26916
26917 2010-03-19  Jim Meyering  <meyering@redhat.com>
26918
26919         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26920         The _LIBC implementation of build_range_exp correctly honors the
26921         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26922         However, the non-_LIBC implementation would ignore that syntax-bit
26923         flag and return REG_ERANGE unconditionally.
26924         This change makes it honor that flag.
26925         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26926         Make two pointer parameters "const".
26927         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26928         (parse_bracket_exp): Update caller.
26929
26930         regex.m4: correct the reversed range endpoint ([b-a]) test
26931         * m4/regex.m4: When requiring that [b-a] evoke failure,
26932         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26933         test pass once again for x86-based systems.
26934
26935 2010-03-19  Bruno Haible  <bruno@clisp.org>
26936
26937         scandir: Fix link error on Solaris 8.
26938         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26939         macros.
26940
26941 2010-03-19  Bruno Haible  <bruno@clisp.org>
26942
26943         getusershell: Fix documentation.
26944         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26945         module.
26946         * doc/glibc-functions/setusershell.texi: Likewise.
26947
26948         getusershell: Provide declaration, missing on Solaris 9.
26949         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26950         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26951         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26952         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26954         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26955         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26956         HAVE_GETUSERSHELL.
26957         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26958
26959 2010-03-19  Bruno Haible  <bruno@clisp.org>
26960
26961         wctype: Provide iswblank function.
26962         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26963         exists and is fine.
26964         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26965         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26966         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26967         * doc/posix-functions/iswblank.texi: Update.
26968
26969 2010-03-19  Bruno Haible  <bruno@clisp.org>
26970
26971         Tests of module 'pty' in C++ mode.
26972         * modules/pty-tests: New file.
26973         * tests/test-pty-c++.cc: New file.
26974         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26975
26976 2010-03-19  Eric Blake  <eblake@redhat.com>
26977
26978         logb: fix documentation
26979         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26980         1.5 declaration bug.
26981
26982         forkpty, openpty: prefer glibc's const-safe prototype
26983         * lib/forkpty.c (rpl_forkpty): New file.
26984         * lib/openpty.c (rpl_openpty): Likewise.
26985         * modules/forkpty (Files): Distribute it.
26986         * modules/openpty (Files): Likewise.
26987         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26988         check...
26989         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26990         replacement for for non-const BSD signature.
26991         * modules/pty (Makefile.am): Substitute witnesses.
26992         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26993         * tests/test-forkpty.c: Update signature check.
26994         * tests/test-openpty.c: Likewise.
26995         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26996         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26997
26998         forkpty, openpty: split functions into new modules
26999         * modules/pty (Makefile.am): Substitute new witnesses.
27000         (Libraries): Move library detection...
27001         * modules/forkpty: ...into new module.
27002         * modules/openpty: Another new module.
27003         * modules/pty-tests: Rename and split...
27004         * modules/forkpty-tests: ...to this...
27005         * modules/openpty-tests: ...and this.
27006         * tests/test-pty.c: Rename and split...
27007         * tests/test-forkpty.c: ...to this...
27008         * tests/test-openpty.c: ...and this.
27009         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27010         (gl_PTY): Split library searching...
27011         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27012         (gl_FORKPTY, gl_OPENPTY): New macros.
27013         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27014         * NEWS: Mention the split.
27015         * MODULES.html.sh (Misc): Document the modules.
27016         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27017         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27018
27019         pty: improve replacement header
27020         * lib/pty.in.h: New file.
27021         * modules/pty (Files): Ship it.
27022         (Makefile.am): Always build replacement.
27023         * m4/pty.m4: Rename...
27024         * m4/pty_h.m4: ...to this.
27025         (gl_PTY): Modernize setting of witness macros; update check of
27026         forkpty to take proper advantage of cache.
27027         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27028
27029         getopt: avoid compiler warning
27030         * lib/getopt.c (attribute_hidden): Remove unused macro.
27031
27032 2010-03-18  Bruno Haible  <bruno@clisp.org>
27033
27034         Fix link errors on Solaris 8.
27035         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27036         * modules/search-tests (test_search_c___LDADD): Likewise.
27037         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27038         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27039         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27040         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27041         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27042         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27043         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27044
27045 2010-03-18  Bruno Haible  <bruno@clisp.org>
27046
27047         Fix bug introduced on 2010-03-14.
27048         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27049         (gl_SPAWN_H): Require it.
27050         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27051         Reported by Simon Josefsson.
27052
27053 2010-03-18  Bruno Haible  <bruno@clisp.org>
27054
27055         Fix typo introduced on 2009-12-31.
27056         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27057         posix_spawn_file_actions_adddup2.
27058
27059 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27060         and Eric Blake  <eblake@redhat.com>
27061
27062         test-vc-list-files-git: make more robust
27063         * tests/test-vc-list-files-git.sh: Unset problematic environment
27064         variables.  Chain commands together.
27065
27066 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27067
27068         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27069         `AC_CHECK_DECL' invocation.
27070
27071 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27072
27073         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27074         appears before executable statements. Suggested by Petr Sumbera
27075         <Petr.Sumbera@Sun.COM>.
27076
27077 2010-03-14  Bruno Haible  <bruno@clisp.org>
27078
27079         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27080         portability problems. Instead use a simpler test.
27081         (main): Check that invalid arguments are rejected only on Linux.
27082
27083 2010-03-14  Bruno Haible  <bruno@clisp.org>
27084
27085         Fix bug introduced on 2009-12-31.
27086         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27087         gl_PREREQ_SYS_H_WINSOCK2 always.
27088         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27089         SYS_SOCKET_H variable.
27090         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27091         Update comments.
27092         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27093         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27094         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27095         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27096         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27097
27098 2010-03-14  Bruno Haible  <bruno@clisp.org>
27099
27100         Fix values returned by sinl, cosl.
27101         * lib/trigl.h: Add specification comments.
27102         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27103         that combines the values from the precomputed table with the values of
27104         the Chebyshev polynomials.
27105
27106 2010-03-14  Bruno Haible  <bruno@clisp.org>
27107
27108         Fix compilation error when modules 'posix_spawn[p]' are not used.
27109         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27110         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27111
27112 2010-03-14  Bruno Haible  <bruno@clisp.org>
27113
27114         Fix compilation error on mingw when module 'time_r' is not used.
27115         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27116         is 1.
27117         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27118         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27119         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27120         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27121
27122 2010-03-14  Bruno Haible  <bruno@clisp.org>
27123
27124         Fix compilation error with Sun C.
27125         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27126         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27127         instead of GCC specific ULONG_LONG_MAX.
27128         * lib/xstrtoll.c: Likewise.
27129         * lib/xstrtoull.c: Likewise.
27130
27131 2010-03-13  Bruno Haible  <bruno@clisp.org>
27132
27133         Allow the user to disable C++ code and tests.
27134         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27135         (gl_PROG_ANSI_CXX): Require it.
27136
27137 2010-03-13  Bruno Haible  <bruno@clisp.org>
27138
27139         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27140         cases.
27141
27142 2010-03-13  Bruno Haible  <bruno@clisp.org>
27143
27144         Test that gnulib does not break the standard C++ headers.
27145         * tests/test-locale-c++2.cc: New file.
27146         * modules/locale-tests (Files): Add it.
27147         (Makefile.am): Compile it for test-locale-c++.
27148         * tests/test-math-c++2.cc: New file.
27149         * modules/math-tests (Files): Add it.
27150         (Makefile.am): Compile it for test-math-c++.
27151         * tests/test-signal-c++2.cc: New file.
27152         * modules/signal-tests (Files): Add it.
27153         (Makefile.am): Compile it for test-signal-c++.
27154         * tests/test-stdio-c++2.cc: New file.
27155         * modules/stdio-tests (Files): Add it.
27156         (Makefile.am): Compile it for test-stdio-c++.
27157         * tests/test-stdlib-c++2.cc: New file.
27158         * modules/stdlib-tests (Files): Add it.
27159         (Makefile.am): Compile it for test-stdlib-c++.
27160         * tests/test-string-c++2.cc: New file.
27161         * modules/string-tests (Files): Add it.
27162         (Makefile.am): Compile it for test-string-c++.
27163         * tests/test-time-c++2.cc: New file.
27164         * modules/time-tests (Files): Add it.
27165         (Makefile.am): Compile it for test-time-c++.
27166         Reported by John W. Eaton <jwe@gnu.org>.
27167
27168 2010-03-13  Bruno Haible  <bruno@clisp.org>
27169
27170         * gnulib-tool (func_usage): Clarify which options are available for
27171         --create-testdir and --create-megatestdir.
27172
27173 2010-03-13  Bruno Haible  <bruno@clisp.org>
27174
27175         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27176         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27177         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27178         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27179         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27180         when appropriate.
27181         Reported by Jim Meyering.
27182
27183 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27184
27185         * gnulib-tool (func_import): Explain origin of code.
27186
27187 2010-03-12  Bruno Haible  <bruno@clisp.org>
27188
27189         Fix problem with automake's definition of CXXLINK.
27190         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27191         Reported by Simon Josefsson and Ludovic Courtès.
27192
27193 2010-03-12  Bruno Haible  <bruno@clisp.org>
27194
27195         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27196         stable releases.
27197
27198 2010-03-11  Bruno Haible  <bruno@clisp.org>
27199
27200         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27201         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27202         whether the system provides one variant or multiple variants of the
27203         function.
27204         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27205         C++ compilers.
27206         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27207         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27208         Reported by Jim Meyering.
27209
27210 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27211
27212         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27213
27214 2010-03-08  Bruno Haible  <bruno@clisp.org>
27215
27216         gnulib-tool: Add support for --libtool in --create-testdir.
27217         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27218         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27219
27220 2010-03-08  Eric Blake  <eblake@redhat.com>
27221
27222         gnulib-tool.texi: mention possibility of git submodule
27223         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27224         submodules.
27225         * doc/.gitignore: Ignore another generated file.
27226
27227 2010-03-08  Karl Berry  <karl@gnu.org>
27228
27229         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27230         of committing gnulib files while skipping others.
27231
27232 2010-03-07  Bruno Haible  <bruno@clisp.org>
27233
27234         Tests of module 'wctype' in C++ mode.
27235         * tests/test-wctype-c++.cc: New file.
27236         * modules/wctype-tests (Files): Add it and tests/signature.h.
27237         (Depends-on): Add ansi-c++-opt.
27238         (Makefile.am): Arrange to compile and run test-wctype-c++.
27239
27240         Tests of module 'wchar' in C++ mode.
27241         * tests/test-wchar-c++.cc: New file.
27242         * modules/wchar-tests (Files): Add it and tests/signature.h.
27243         (Depends-on): Add ansi-c++-opt.
27244         (Makefile.am): Arrange to compile and run test-wchar-c++.
27245         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27246         gl_MODULE_INDICATOR.
27247
27248         Tests of module 'unistd' in C++ mode.
27249         * tests/test-unistd-c++.cc: New file.
27250         * modules/unistd-tests (Files): Add it and tests/signature.h.
27251         (Depends-on): Add ansi-c++-opt.
27252         (Makefile.am): Arrange to compile and run test-unistd-c++.
27253         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27254         gl_MODULE_INDICATOR.
27255
27256         Tests of module 'time' in C++ mode.
27257         * tests/test-time-c++.cc: New file.
27258         * modules/time-tests (Files): Add it and tests/signature.h.
27259         (Depends-on): Add ansi-c++-opt.
27260         (Makefile.am): Arrange to compile and run test-time-c++.
27261         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27262
27263         Tests of module 'sys_time' in C++ mode.
27264         * tests/test-sys_time-c++.cc: New file.
27265         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27266         (Depends-on): Add ansi-c++-opt.
27267         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27268         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27269         gl_MODULE_INDICATOR.
27270
27271         Tests of module 'sys_stat' in C++ mode.
27272         * tests/test-sys_stat-c++.cc: New file.
27273         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27274         (Depends-on): Add ansi-c++-opt.
27275         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27276         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27277         gl_MODULE_INDICATOR.
27278
27279         Tests of module 'sys_socket' in C++ mode.
27280         * tests/test-sys_socket-c++.cc: New file.
27281         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27282         (Depends-on): Add ansi-c++-opt.
27283         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27284         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27285         gl_MODULE_INDICATOR.
27286
27287         Tests of module 'sys_select' in C++ mode.
27288         * tests/test-sys_select-c++.cc: New file.
27289         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27290         (Depends-on): Add ansi-c++-opt.
27291         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27292         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27293         gl_MODULE_INDICATOR.
27294
27295         Tests of module 'sys_ioctl' in C++ mode.
27296         * tests/test-sys_ioctl-c++.cc: New file.
27297         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27298         (Depends-on): Add ansi-c++-opt.
27299         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27300         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27301         gl_MODULE_INDICATOR.
27302
27303         Tests of module 'string' in C++ mode.
27304         * tests/test-string-c++.cc: New file.
27305         * modules/string-tests (Files): Add it and tests/signature.h.
27306         (Depends-on): Add ansi-c++-opt.
27307         (Makefile.am): Arrange to compile and run test-string-c++.
27308         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27309         gl_MODULE_INDICATOR.
27310
27311         Tests of module 'stdlib' in C++ mode.
27312         * tests/test-stdlib-c++.cc: New file.
27313         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27314         (Depends-on): Add ansi-c++-opt.
27315         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27316         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27317         gl_MODULE_INDICATOR.
27318
27319         Tests of module 'stdio' in C++ mode.
27320         * tests/test-stdio-c++.cc: New file.
27321         * modules/stdio-tests (Files): Add it and tests/signature.h.
27322         (Depends-on): Add ansi-c++-opt.
27323         (Makefile.am): Arrange to compile and run test-stdio-c++.
27324         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27325         gl_MODULE_INDICATOR.
27326
27327         Tests of module 'spawn' in C++ mode.
27328         * tests/test-spawn-c++.cc: New file.
27329         * modules/spawn-tests (Files): Add it and tests/signature.h.
27330         (Depends-on): Add ansi-c++-opt.
27331         (Makefile.am): Arrange to compile and run test-spawn-c++.
27332         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27333         gl_MODULE_INDICATOR.
27334
27335         Tests of module 'signal' in C++ mode.
27336         * tests/test-signal-c++.cc: New file.
27337         * modules/signal-tests (Files): Add it and tests/signature.h.
27338         (Depends-on): Add ansi-c++-opt.
27339         (Makefile.am): Arrange to compile and run test-signal-c++.
27340         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27341         gl_MODULE_INDICATOR.
27342
27343         Tests of module 'search' in C++ mode.
27344         * tests/test-search-c++.cc: New file.
27345         * modules/search-tests (Files): Add it and tests/signature.h.
27346         (Depends-on): Add ansi-c++-opt.
27347         (Makefile.am): Arrange to compile and run test-search-c++.
27348         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27349         gl_MODULE_INDICATOR.
27350
27351         Tests of module 'math' in C++ mode.
27352         * tests/test-math-c++.cc: New file.
27353         * modules/math-tests (Files): Add it and tests/signature.h.
27354         (Depends-on): Add ansi-c++-opt.
27355         (Makefile.am): Arrange to compile and run test-math-c++.
27356         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27357
27358         Tests of module 'locale' in C++ mode.
27359         * tests/test-locale-c++.cc: New file.
27360         * modules/locale-tests (Files): Add it and tests/signature.h.
27361         (Depends-on): Add ansi-c++-opt.
27362         (Makefile.am): Arrange to compile and run test-locale-c++.
27363         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27364         gl_MODULE_INDICATOR.
27365
27366         Tests of module 'langinfo' in C++ mode.
27367         * tests/test-langinfo-c++.cc: New file.
27368         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27369         (Depends-on): Add ansi-c++-opt.
27370         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27371         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27372         gl_MODULE_INDICATOR.
27373
27374         Tests of module 'iconv-h' in C++ mode.
27375         * tests/test-iconv-h-c++.cc: New file.
27376         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27377         (Depends-on): Add ansi-c++-opt.
27378         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27379
27380         Tests of module 'glob' in C++ mode.
27381         * tests/test-glob-c++.cc: New file.
27382         * modules/glob-tests (Files): Add it.
27383         (Depends-on): Add ansi-c++-opt.
27384         (Makefile.am): Arrange to compile and run test-glob-c++.
27385
27386         Tests of module 'fcntl-h' in C++ mode.
27387         * tests/test-fcntl-h-c++.cc: New file.
27388         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27389         (Depends-on): Add ansi-c++-opt.
27390         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27391         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27392         gl_MODULE_INDICATOR.
27393
27394         Tests of module 'dirent' in C++ mode.
27395         * tests/test-dirent-c++.cc: New file.
27396         * modules/dirent-tests (Files): Add it and tests/signature.h.
27397         (Depends-on): Add ansi-c++-opt.
27398         (Makefile.am): Arrange to compile and run test-dirent-c++.
27399         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27400         gl_MODULE_INDICATOR.
27401
27402         New module 'ansi-c++-opt'.
27403         * modules/ansi-c++-opt: New file.
27404         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27405
27406         Document C++ namespace mode.
27407         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27408
27409         wctype: Avoid #define replacements in C++ mode.
27410         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27411         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27412         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27413         In C++, define a namespaced alias symbol.
27414         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27415         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27416         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27417         rule.
27418
27419         wchar: Avoid #define replacements in C++ mode.
27420         * lib/wchar.in.h: Include c++defs.h.
27421         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27422         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27423         symbol.
27424         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27425         * modules/wchar (Depends-on): Add c++defs.
27426         (Makefile.am): Update wchar.h rule.
27427
27428         unistd: Avoid #define replacements in C++ mode.
27429         * lib/unistd.in.h: Include c++defs.h.
27430         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27431         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27432         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27433         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27434         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27435         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27436         symbol.
27437         (environ): Update.
27438         * modules/unistd (Depends-on): Add c++defs.
27439         (Makefile.am): Update unistd.h rule.
27440
27441         time: Avoid #define replacements in C++ mode.
27442         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27443         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27444         define a namespaced alias symbol.
27445         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27446         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27447         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27448         * modules/time (Depends-on): Add c++defs, warn-on-use.
27449         (Makefile.am): Update time.h rule.
27450         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27451         * modules/nanosleep (configure.ac): Likewise.
27452         * modules/strptime (configure.ac): Likewise.
27453         * modules/timegm (configure.ac): Likewise.
27454
27455         sys_time: Avoid #define replacements in C++ mode.
27456         * lib/sys_time.in.h: Include c++defs.h.
27457         (gettimeofday): In C++, define a namespaced alias symbol.
27458         * modules/sys_time (Depends-on): Add c++defs.
27459         (Makefile.am): Update sys/time.h rule.
27460
27461         sys_stat: Avoid #define replacements in C++ mode.
27462         * lib/sys_stat.in.h: Include c++defs.h.
27463         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27464         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27465         namespaced alias symbol.
27466         In C++, define a namespaced alias symbol.
27467         * modules/sys_stat (Depends-on): Add c++defs.
27468         (Makefile.am): Update sys/stat.h rule.
27469
27470         sys_socket: Avoid #define replacements in C++ mode.
27471         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27472         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27473         definitions also when the system has a <sys/socket.h>.
27474         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27475         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27476         In C++, define a namespaced alias symbol.
27477         * modules/sys_socket (Depends-on): Add c++defs.
27478         (Makefile.am): Update sys/socket.h rule.
27479
27480         sys_select: Avoid #define replacements in C++ mode.
27481         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27482         definitions also when the system has a <sys/select.h>.
27483         (select): In C++, define a namespaced alias symbol.
27484         * modules/sys_select (Depends-on): Add c++defs.
27485         (Makefile.am): Update sys/select.h rule.
27486
27487         sys_ioctl: Avoid #define replacements in C++ mode.
27488         * lib/sys_ioctl.in.h: Include c++defs.h.
27489         (ioctl): In C++, define a namespaced alias symbol.
27490         * modules/sys_ioctl (Depends-on): Add c++defs.
27491         (Makefile.am): Update sys/ioctl.h rule.
27492
27493         string: Avoid #define replacements in C++ mode.
27494         * lib/string.in.h: Include c++defs.h.
27495         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27496         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27497         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27498         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27499         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27500         * modules/string (Depends-on): Add c++defs.
27501         (Makefile.am): Update string.h rule.
27502
27503         stdlib: Avoid #define replacements in C++ mode.
27504         * lib/stdlib.in.h: Include c++defs.h.
27505         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27506         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27507         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27508         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27509         symbol.
27510         * modules/stdlib (Depends-on): Add c++defs.
27511         (Makefile.am): Update stdlib.h rule.
27512
27513         stdio: Avoid #define replacements in C++ mode.
27514         * lib/stdio.in.h: Include c++defs.h.
27515         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27516         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27517         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27518         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27519         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27520         namespaced alias symbol.
27521         * modules/stdio (Depends-on): Add c++defs.
27522         (Makefile.am): Update stdio.h rule.
27523
27524         spawn: Avoid #define replacements in C++ mode.
27525         * lib/spawn.in.h: Include c++defs.h.
27526         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27527         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27528         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27529         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27530         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27531         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27532         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27533         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27534         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27535         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27536         In C++, define a namespaced alias symbol.
27537         * modules/spawn (Depends-on): Add c++defs.
27538         (Makefile.am): Update spawn.h rule.
27539
27540         signal: Avoid #define replacements in C++ mode.
27541         * lib/signal.in.h: Include c++defs.h.
27542         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27543         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27544         namespaced alias symbol.
27545         * modules/signal (Depends-on): Add c++defs.
27546         (Makefile.am): Update signal.h rule.
27547
27548         search: Avoid #define replacements in C++ mode.
27549         * lib/search.in.h: Include c++defs.h.
27550         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27551         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27552         symbol.
27553         * modules/search (Depends-on): Add c++defs.
27554         (Makefile.am): Update search.h rule.
27555
27556         math: Avoid #define replacements in C++ mode.
27557         * lib/math.in.h: Include c++defs.h.
27558         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27559         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27560         trunc, truncl): In C++, define a namespaced alias symbol.
27561         * modules/math (Depends-on): Add c++defs.
27562         (Makefile.am): Update math.h rule.
27563
27564         locale: Avoid #define replacements in C++ mode.
27565         * lib/locale.in.h: Include c++defs.h.
27566         (duplocale): In C++, define a namespaced alias symbol.
27567         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27568         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27569         * modules/locale (Depends-on): Add c++defs.
27570         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27571
27572         langinfo: Avoid #define replacements in C++ mode.
27573         * lib/langinfo.in.h: Include c++defs.h.
27574         (nl_langinfo): In C++, define a namespaced alias symbol.
27575         * modules/langinfo (Depends-on): Add c++defs.
27576         (Makefile.am): Update langinfo.h rule.
27577
27578         iconv-h: Avoid #define replacements in C++ mode.
27579         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27580         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27581         symbol.
27582         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27583         whenever iconv is present.
27584         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27585         (Makefile.am): Update iconv.h rule.
27586
27587         glob: Avoid #define replacements in C++ mode.
27588         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27589         (_gl_glob_errfunc_fn): New type.
27590         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27591         symbol.
27592         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27593         (Makefile.am): Update glob.h rule.
27594
27595         fcntl-h: Avoid #define replacements in C++ mode.
27596         * lib/fcntl.in.h: Include c++defs.h.
27597         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27598         * modules/fcntl-h (Depends-on): Add c++defs.
27599         (Makefile.am): Update fcntl.h rule.
27600
27601         dirent: Avoid #define replacements in C++ mode.
27602         * lib/dirent.in.h: Include c++defs.h.
27603         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27604         namespaced alias symbol.
27605         (dirfd): Update declaration.
27606         * modules/dirent (Depends-on): Add c++defs.
27607         (Makefile.am): Update dirent.h rule.
27608
27609         ctype: Make it usable in C++ code.
27610         * lib/ctype.in.h: Include c++defs.h.
27611         (isblank): Declare as extern "C".
27612         * modules/ctype (Depends-on): Add c++defs.
27613         (Makefile.am): Update ctype.h rule.
27614
27615         New module 'c++defs'.
27616         * modules/c++defs: New file.
27617         * build-aux/c++defs.h: New file.
27618         Reported by John W. Eaton <jwe@gnu.org>.
27619
27620 2010-03-07  Bruno Haible  <bruno@clisp.org>
27621
27622         logb: Provide missing declaration for Cygwin.
27623         * lib/math.in.h (logb): New declaration.
27624         * m4/logb.m4: New file.
27625         * modules/logb (Files): Add m4/logb.m4.
27626         (Depends-on): Add math.
27627         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27628         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27630         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27631         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27632
27633 2010-03-07  Bruno Haible  <bruno@clisp.org>
27634
27635         Fix test-cond link error.
27636         * tests/test-cond.c: Include <stdio.h>.
27637
27638 2010-03-07  Bruno Haible  <bruno@clisp.org>
27639
27640         Fix test-dirent-safer link error.
27641         * modules/dirent-safer-tests (Makefile.am): Define
27642         test_dirent_safer_LDADD.
27643
27644 2010-03-07  Bruno Haible  <bruno@clisp.org>
27645
27646         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27647         among default module list.
27648
27649 2010-03-07  Bruno Haible  <bruno@clisp.org>
27650
27651         Fix link error on platforms with GNU libiconv.
27652         * modules/unistr/u8-strcoll-tests (Makefile): Define
27653         test_u8_strcoll_LDADD.
27654         * modules/unistr/u16-strcoll-tests (Makefile): Define
27655         test_u16_strcoll_LDADD.
27656         * modules/unistr/u32-strcoll-tests (Makefile): Define
27657         test_u32_strcoll_LDADD.
27658
27659 2010-03-07  Bruno Haible  <bruno@clisp.org>
27660
27661         Use POSIX declarations for socket functions.
27662         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27663         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27664         rpl_sendto): Change declaration to match POSIX.
27665         * lib/connect.c (rpl_connect): Likewise.
27666         * lib/accept.c (rpl_accept): Likewise.
27667         * lib/bind.c (rpl_bind): Likewise.
27668         * lib/getpeername.c (rpl_getpeername): Likewise.
27669         * lib/getsockname.c (rpl_getsockname): Likewise.
27670         * lib/recv.c (rpl_recv): Likewise.
27671         * lib/send.c (rpl_send): Likewise.
27672         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27673         * lib/sendto.c (rpl_sendto): Likewise.
27674
27675 2010-03-06  Bruno Haible  <bruno@clisp.org>
27676
27677         Clarify access, euidaccess, faccessat.
27678         * doc/posix-functions/faccessat.texi: Mention security problem under
27679         "Other problems", not "Portability problems".
27680         * doc/posix-functions/access.texi: Likewise. Mention a related security
27681         problem.
27682         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27683         * lib/euidaccess.c: Add comments about platforms.
27684         * lib/unistd.in.h (access, euidaccess): Add warnings.
27685
27686 2010-03-07  Bruno Haible  <bruno@clisp.org>
27687
27688         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27689         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27690         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27691         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27692         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27693         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27694         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27695         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27696         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27697         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27698         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27699         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27700         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27701         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27702         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27703         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27704         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27705         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27706         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27707         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27708         Likewise.
27709         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27710         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27711         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27712         Likewise.
27713         * tests/test-spawn.c (main): Make it work when
27714         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27715
27716 2010-03-07  Bruno Haible  <bruno@clisp.org>
27717
27718         Fix incorrect Makefile.am generation in German locale.
27719         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27720         Execute sed command with character range in C locale.
27721
27722 2010-03-06  Bruno Haible  <bruno@clisp.org>
27723
27724         Tests for module 'iconv-h'.
27725         * modules/iconv-h-tests: New file.
27726         * tests/test-iconv-h.c: New file.
27727
27728         New module 'iconv-h'.
27729         * modules/iconv-h: New file.
27730         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27731         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27732         (configure.ac): Remove gl_ICONV_H.
27733         (Makefile.am): Remove rule for iconv.h.
27734
27735 2010-03-06  Bruno Haible  <bruno@clisp.org>
27736
27737         More consistent naming of *.m4 files.
27738         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27739         * modules/wctype (Files): Update.
27740
27741         More consistent naming of *.m4 files.
27742         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27743         * modules/wchar (Files): Update.
27744
27745 2010-03-06  Jim Meyering  <meyering@redhat.com>
27746
27747         euidaccess: relax license to LGPLv2+
27748         * modules/euidaccess (License): Relax to LGPLv2+.
27749
27750 2010-03-06  Bruno Haible  <bruno@clisp.org>
27751
27752         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27753         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27754         (Makefile.am): Augment lib_SOURCES instead.
27755
27756 2010-03-04  Jim Meyering  <meyering@redhat.com>
27757
27758         utime: remove obsolete module
27759         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27760         unnecessary for years, and has been marked as obsolete for 10 months.
27761         * modules/utime: Remove file.
27762         * lib/utime.c: Remove file.
27763         * m4/utime.m4: Remove file.
27764         * m4/utimes-null.m4: Remove file.
27765         * doc/posix-functions/utime.texi (utime): Remove reference to
27766         the module.  Move the sole "fixed by gnulib" item into the
27767         "problems not fixed by Gnulib" list.
27768         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27769
27770 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27771
27772         * modules/exit (License): Relax license to LGPLv2+.
27773         (Status): Mark as obsolete.
27774         * NEWS: Mention deprecated 'exit' module.
27775         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27776         of now obsolete 'exit'.
27777
27778 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27779
27780         fts-lgpl: remove unused module
27781         * modules/fts-lgpl: Remove.
27782         * MODULES.html.sh (func_all_modules): Adjust.
27783         * check-module (find_included_lib_files): Adjust.
27784         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27785
27786 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27787
27788         copy-acl: enhance Solaris ACL error handling
27789         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27790         * lib/set-mode-acl.c (qset_acl): Likewise.
27791
27792 2010-03-02  Bruno Haible  <bruno@clisp.org>
27793
27794         spawn: Don't override the system defined values on FreeBSD 8.
27795         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27796         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27797         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27798         if HAVE_POSIX_SPAWN is 1.
27799         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27800
27801 2010-03-01  Bruno Haible  <bruno@clisp.org>
27802
27803         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27804         regarding Automake.
27805
27806 2010-02-25  Bruno Haible  <bruno@clisp.org>
27807
27808         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27809         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27810         setting, not afterwards.
27811         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27812
27813 2010-02-24  Eric Blake  <eblake@redhat.com>
27814
27815         bootstrap, git-version-gen: use timestamp
27816         * build-aux/git-version-gen (scriptversion): Force UTC.
27817         * build-aux/bootstrap (scriptversion): New variable.
27818
27819         bootstrap: allow older git
27820         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27821         older than 1.6.4.  Requested by the libvirt project.
27822
27823 2010-02-23  Eric Blake  <eblake@redhat.com>
27824
27825         warn-on-use: work with old autoconf
27826         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27827         AS_VAR semantics of autoconf 2.60.
27828         Reported by Bruno Haible.
27829
27830         bootstrap: improve some comments
27831         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27832         clarification comments.
27833
27834         gettimeofday: provide correct function
27835         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27836         when replacement is declared, otherwise provide gettimeofday.
27837         Reported by Michael Goffioul.
27838
27839 2010-02-23  Jim Meyering  <meyering@redhat.com>
27840
27841         lib-ignore: relax license to "unlimited", not LGPLv2+
27842         * modules/lib-ignore (License): Relax to "unlimited".
27843
27844 2010-02-23  Jim Meyering  <meyering@redhat.com>
27845
27846         lib-ignore: relax license to LGPLv2+
27847         * modules/lib-ignore (License): Relax to LGPLv2+.
27848
27849 2010-02-22  Eric Blake  <eblake@redhat.com>
27850
27851         lseek: avoid bash 3.2 broken pipe bug
27852         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27853         warning from bash 3.2.
27854         Reported by Ben Pfaff, with analysis from Bruno Haible.
27855
27856         bootstrap: support non-FSF copyright holder
27857         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27858         bootstrap.conf override of COPYRIGHT_HOLDER.
27859         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27860
27861         bootstrap: interoperate with gettext 0.14.1
27862         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27863
27864         bootstrap: allow for alternate submodule location
27865         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27866         hardcoding submodule location.
27867         (gnulib_mk): Allow direct use of Makefile.am.
27868
27869         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27870         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27871         rather than reconfiguring where the submodule points.
27872
27873         gettimeofday: restore support for platforms that lack function
27874         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27875         replacement if function is missing.
27876         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27877         * modules/sys_time (Makefile.am): Substitute it.
27878         * lib/sys_time.in.h (gettimeofday): Check it.
27879         Reported by Michael Goffioul.
27880
27881 2010-02-21  Bruno Haible  <bruno@clisp.org>
27882
27883         * lib/stdio.in.h (obstack_printf): Fix typo.
27884
27885 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27886
27887         vc-list-files: use bzr ls's -R option
27888         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27889         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27890
27891 2010-02-21  Jim Meyering  <meyering@redhat.com>
27892
27893         init.sh: fix EXEEXT shims to work also for names like test-prog
27894         * tests/init.sh: Re-exec a better shell, when needed.
27895         If the current shell lacks support for posix $(...), an init.sh-using
27896         test will now try to find a shell that supports that.  If EXEEXT is
27897         nonempty, we also require support for hyphen-in-alias-name and shell
27898         substitutions like ${var#glob}.  Failure to find such a shell results
27899         in a skipped test.
27900
27901 2010-02-21  Bruno Haible  <bruno@clisp.org>
27902
27903         Really work around around "broken pipe" error message from bash 3.2.
27904         * gnulib-tool (func_reset_sigpipe): Remove function.
27905         (echo): In bash 3.2, define to a function that uses printf.
27906         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27907
27908 2010-02-20  Bruno Haible  <bruno@clisp.org>
27909
27910         Restore support for automake 1.9.6 with autoconf 2.61.
27911         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27912         Reported by James Youngman <jay@gnu.org>.
27913
27914 2010-02-20  Bruno Haible  <bruno@clisp.org>
27915
27916         Improve *printf warning condition.
27917         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27918         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27919         and the function is overridden due to SIGPIPE emulation.
27920
27921 2010-02-20  Bruno Haible  <bruno@clisp.org>
27922
27923         * lib/stdio.in.h: Tweak comments.
27924
27925 2010-02-19  Bruno Haible  <bruno@clisp.org>
27926
27927         Make it easier to find modules. New gnulib-tool option '--find'.
27928         * gnulib-tool: New option --find.
27929         (func_usage): Document it.
27930         (func_sanitize_modulelist): New function, extracted from
27931         func_all_modules.
27932         (func_all_modules): Invoke it.
27933         * doc/gnulib-tool.texi (Which modules?): New node.
27934
27935 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27936
27937         * lib/sys_select.in.h: Provide select replacement even if
27938         sys/select.h exists on a system, for Interix.
27939
27940 2010-02-18  Jim Meyering  <meyering@redhat.com>
27941
27942         init.sh: don't use $(...) just yet
27943         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27944         to accommodate e.g., Solaris' /bin/sh.
27945
27946 2010-02-17  Bruno Haible  <bruno@clisp.org>
27947
27948         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27949         Reported by Ludovic Courtès <ludo@gnu.org>.
27950
27951 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27952
27953         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27954         linking with -lintl.
27955
27956 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27957
27958         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27959         if not provided by the system's netdb.h.  Reported by
27960         ludo@gnu.org (Ludovic Courtès).
27961
27962 2010-02-15  Jim Meyering  <meyering@redhat.com>
27963
27964         init.sh: improve portability and efficiency
27965         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27966         "dummy" in a for loop.
27967         Use '!', not '^' to select the complement of a character set used
27968         in a "case" statement.
27969         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27970         Suggestions from Eric Blake.
27971
27972         init.sh: automatically accommodate programs with the .exe suffix
27973         Automatically arrange for an invocation of "prog" to execute the
27974         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27975         may use the simpler "prog", yet still work when built on a system
27976         that requires specifying the added suffix.
27977         Do this by constructing a function named "prog" that invokes
27978         "prog.exe" for each .exe file in selected directories.
27979         * tests/init.sh (find_exe_basenames_): New function.
27980         (create_exe_shim_functions_): New function.
27981         (path_prepend_): Use it.
27982
27983         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27984         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27985         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27986
27987 2010-02-14  Jim Meyering  <meyering@redhat.com>
27988
27989         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27990         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27991         (sc_prohibit_hash_pjw_without_use): New rule.
27992
27993         maint.mk: allow the default upload destination dir to be overridden
27994         * top/maint.mk (upload_dest_dir_): Define with a default that
27995         preserves the status quo.
27996         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27997         Reported by Peter Simons.
27998
27999         maint.mk: prohibit inclusion of "hash.h" without_use
28000         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28001
28002 2010-02-10  Jim Meyering  <meyering@redhat.com>
28003
28004         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28005         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28006
28007 2010-02-09  Eric Blake  <ebb9@byu.net>
28008         and Bruno Haible  <bruno@clisp.org>
28009
28010         obstack-printf-posix: ensure declaration
28011         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28012         extracted from gl_FUNC_OBSTACK_PRINTF.
28013         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28014         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28015         Likewise.
28016         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28017         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28018         0.
28019
28020 2010-02-08  Bruno Haible  <bruno@clisp.org>
28021
28022         gnulib-tool: Fix typo in 2010-02-07 commit.
28023         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28024         Reported by Eric Blake.
28025
28026 2010-02-07  Bruno Haible  <bruno@clisp.org>
28027
28028         gnulib-tool: Fix up caching patches.
28029         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28030         option --no-cache. Use associative arrays when supported by the shell.
28031         (sed_comments): New variable.
28032         (modcache): Renamed from do_cache.
28033         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28034         abbreviate unnecessarily.
28035         (have_associative): New variable.
28036         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28037         way also for ksh and zsh.
28038         (func_init_sed_convert_to_cache_statements): New function, extracted
28039         from func_cache_lookup_module. Add support for associative arrays.
28040         Don't set the c_MODULE_cached variable here. Ignore all lines before
28041         the first field header. Remove only the final newline, not all trailing
28042         newlines. Support empty fields correctly. Limit the use of 'eval' to
28043         assignments.
28044         (func_get_description, func_get_status, func_get_notice,
28045         func_get_applicability, func_get_filelist, func_get_dependencies,
28046         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28047         func_get_automake_snippet, func_get_include_directive,
28048         func_get_link_directive, func_get_license, func_get_maintainer):
28049         Update documentation. List the unoptimized code first. Add support for
28050         associative arrays. Limit the use of 'eval' to assignments.
28051         (func_get_applicability): Undo stylistic pessimisations.
28052         (func_get_automake_snippet, func_get_include_directive): Reduce code
28053         duplication.
28054         (func_modules_transitive_closure, func_modules_add_dummy,
28055         func_modules_notice, func_modules_to_filelist, func_add_file,
28056         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28057         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28058         func_create_testdir, func_create_megatestdir): Update documentation.
28059
28060 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28061
28062         * gnulib-tool (func_cache_lookup_module): Store the module name
28063         belonging to the cache variable; error out if two different
28064         module names map to the same cache variable name.
28065
28066 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28067
28068         gnulib-tool: Make caching optional.
28069         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28070         Update matching short versions of --no-changelog.
28071         (func_usage): Update.
28072         (sed_extract_cache_prog): Renamed from ...
28073         (sed_extract_prog): ... this; revert to old extraction script.
28074         (func_get_description, func_get_status)
28075         (func_get_notice, func_get_applicability, func_get_filelist)
28076         (func_get_dependencies, func_get_autoconf_early_snippet)
28077         (func_get_autoconf_snippet, func_get_automake_snippet)
28078         (func_get_include_directive, func_get_link_directive)
28079         (func_get_license, func_get_maintainer): If $do_cache is false,
28080         use old, non-caching extraction scripts.
28081         Suggestion by Bruno Haible.
28082
28083 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28084
28085         gnulib-tool: cache module metainformation.
28086         * gnulib-tool (sed_extract_prog): Match newline before each
28087         header, and rewrite header to a shell variable suffix.
28088         (func_cache_var, func_cache_lookup_module): New functions,
28089         to turn a module name into a cache variable prefix, and to
28090         look up and cache module metainformation.
28091         (func_get_description, func_get_status)
28092         (func_get_notice, func_get_applicability, func_get_filelist)
28093         (func_get_dependencies, func_get_autoconf_early_snippet)
28094         (func_get_autoconf_snippet, func_get_automake_snippet)
28095         (func_get_include_directive, func_get_link_directive)
28096         (func_get_license, func_get_maintainer): Use
28097         func_cache_lookup_module.
28098
28099 2010-02-07  Bruno Haible  <bruno@clisp.org>
28100
28101         fnctl: Fix missing dependency.
28102         * modules/fcntl (Depends-on): Add getdtablesize.
28103         Reported by John W. Eaton <jwe@gnu.org>.
28104
28105 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28106
28107         Argp: fix recognition of short alias options.
28108
28109         * lib/argp-parse.c (convert_options): Fix improper use of
28110         `|' between character values.
28111         * tests/test-argp.c (group1_option): New alias option
28112         --read (-r).
28113         (group1_parser): Special handling for 'r'.
28114         (test15): New test case.
28115         (test_fun): Add test15.
28116         * tests/test-argp-2.sh: Update expected --help and --usage
28117         outputs.
28118
28119 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28120
28121         * tests/test-argp.c: Fix indentation.
28122
28123 2010-02-04  Eric Blake  <ebb9@byu.net>
28124
28125         gettimeofday: expose type of second argument
28126         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28127         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28128         * tests/test-gettimeofday.c: Use it to silence warning.
28129         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28130         the issue.
28131
28132 2010-02-03  Jim Meyering  <meyering@redhat.com>
28133
28134         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28135         * lib/regcomp.c (TYPE_SIGNED): Define.
28136         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28137
28138         regcomp.c: avoid a new -Wshadow warning
28139         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28140
28141 2010-02-01  Jim Meyering  <meyering@redhat.com>
28142
28143         removing useless parentheses in cpp #define directives
28144         For motivation, see commit c0221df4, "define STREQ(a,b)
28145         consistently, removing useless parentheses"
28146         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28147         * lib/mountlist.c (MNT_IGNORE): Likewise.
28148         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28149
28150 2010-02-01  Eric Blake  <ebb9@byu.net>
28151
28152         sys_time: use link-warning
28153         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28154         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28155         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28156         * modules/sys_time (Depends-on): Add warn-on-use.
28157         (Makefile.am): Always build replacement.
28158         (configure.ac): Update substitutions.
28159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28160         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28161         bother with SYS_TIME_H.
28162         * modules/gettimeofday (configure.ac): Declare indicator.
28163         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28164         in use.
28165
28166         closein-tests: silence compiler warning
28167         * tests/test-closein.c (main): Ignore fread result.
28168         * modules/closein-tests (Depends-on): Add ignore-value.
28169
28170         tests: silence warning about system return
28171         * tests/test-areadlink-with-size.c (main): Ignore system result.
28172         * tests/test-areadlink.c (main): Likewise.
28173         * tests/test-areadlinkat-with-size.c (main): Likewise.
28174         * tests/test-areadlinkat.c (main): Likewise.
28175         * tests/test-canonicalize-lgpl.c (main): Likewise.
28176         * tests/test-canonicalize.c (main): Likewise.
28177         * tests/test-chown.c (main): Likewise.
28178         * tests/test-fchownat.c (main): Likewise.
28179         * tests/test-fdutimensat.c (main): Likewise.
28180         * tests/test-fstatat.c (main): Likewise.
28181         * tests/test-futimens.c (main): Likewise.
28182         * tests/test-lchown.c (main): Likewise.
28183         * tests/test-link.c (main): Likewise.
28184         * tests/test-linkat.c (main): Likewise.
28185         * tests/test-lstat.c (main): Likewise.
28186         * tests/test-mkdir.c (main): Likewise.
28187         * tests/test-mkdirat.c (main): Likewise.
28188         * tests/test-mkfifo.c (main): Likewise.
28189         * tests/test-mkfifoat.c (main): Likewise.
28190         * tests/test-mknod.c (main): Likewise.
28191         * tests/test-readlink.c (main): Likewise.
28192         * tests/test-remove.c (main): Likewise.
28193         * tests/test-rename.c (main): Likewise.
28194         * tests/test-renameat.c (main): Likewise.
28195         * tests/test-rmdir.c (main): Likewise.
28196         * tests/test-symlink.c (main): Likewise.
28197         * tests/test-symlinkat.c (main): Likewise.
28198         * tests/test-unlink.c (main): Likewise.
28199         * tests/test-unlinkat.c (main): Likewise.
28200         * tests/test-utimens.c (main): Likewise.
28201         * tests/test-utimensat.c (main): Likewise.
28202         * modules/areadlink-tests (Depends-on): Add ignore-value.
28203         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28204         * modules/areadlinkat-tests (Depends-on): Likewise.
28205         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28206         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28207         * modules/canonicalize-tests (Depends-on): Likewise.
28208         * modules/chown-tests (Depends-on): Likewise.
28209         * modules/fdutimensat-tests (Depends-on): Likewise.
28210         * modules/futimens-tests (Depends-on): Likewise.
28211         * modules/lchown-tests (Depends-on): Likewise.
28212         * modules/link-tests (Depends-on): Likewise.
28213         * modules/linkat-tests (Depends-on): Likewise.
28214         * modules/lstat-tests (Depends-on): Likewise.
28215         * modules/mkdir-tests (Depends-on): Likewise.
28216         * modules/mkfifo-tests (Depends-on): Likewise.
28217         * modules/mkfifoat-tests (Depends-on): Likewise.
28218         * modules/mknod-tests (Depends-on): Likewise.
28219         * modules/openat-tests (Depends-on): Likewise.
28220         * modules/readlink-tests (Depends-on): Likewise.
28221         * modules/remove-tests (Depends-on): Likewise.
28222         * modules/rename-tests (Depends-on): Likewise.
28223         * modules/renameat-tests (Depends-on): Likewise.
28224         * modules/rmdir-tests (Depends-on): Likewise.
28225         * modules/symlink-tests (Depends-on): Likewise.
28226         * modules/symlinkat-tests (Depends-on): Likewise.
28227         * modules/unlink-tests (Depends-on): Likewise.
28228         * modules/utimens-tests (Depends-on): Likewise.
28229         * modules/utimensat-tests (Depends-on): Likewise.
28230
28231 2010-01-31  Bruno Haible  <bruno@clisp.org>
28232
28233         Perform the same test for many <math.h> functions.
28234         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28235         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28236         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28237         of gl_MATHFUNC.
28238         * modules/acos (configure.ac): Likewise.
28239         * modules/asin (configure.ac): Likewise.
28240         * modules/atan (configure.ac): Likewise.
28241         * modules/atan2 (configure.ac): Likewise.
28242         * modules/cbrt (configure.ac): Likewise.
28243         * modules/copysign (configure.ac): Likewise.
28244         * modules/cos (configure.ac): Likewise.
28245         * modules/cosh (configure.ac): Likewise.
28246         * modules/erf (configure.ac): Likewise.
28247         * modules/erfc (configure.ac): Likewise.
28248         * modules/exp (configure.ac): Likewise.
28249         * modules/fmod (configure.ac): Likewise.
28250         * modules/hypot (configure.ac): Likewise.
28251         * modules/j0 (configure.ac): Likewise.
28252         * modules/j1 (configure.ac): Likewise.
28253         * modules/jn (configure.ac): Likewise.
28254         * modules/lgamma (configure.ac): Likewise.
28255         * modules/log (configure.ac): Likewise.
28256         * modules/log10 (configure.ac): Likewise.
28257         * modules/log1p (configure.ac): Likewise.
28258         * modules/pow (configure.ac): Likewise.
28259         * modules/remainder (configure.ac): Likewise.
28260         * modules/sin (configure.ac): Likewise.
28261         * modules/sinh (configure.ac): Likewise.
28262         * modules/tan (configure.ac): Likewise.
28263         * modules/tanh (configure.ac): Likewise.
28264         * modules/y0 (configure.ac): Likewise.
28265         * modules/y1 (configure.ac): Likewise.
28266         * modules/yn (configure.ac): Likewise.
28267         Suggested by Paolo Bonzini.
28268
28269 2010-01-31  Bruno Haible  <bruno@clisp.org>
28270
28271         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28272
28273 2010-01-31  Bruno Haible  <bruno@clisp.org>
28274
28275         Work around getdelim() bug on FreeBSD 8.0.
28276         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28277         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28278         not work.
28279         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28280         is 1.
28281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28282         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28283         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28284         a non-zero size.
28285         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28286
28287 2010-01-31  Bruno Haible  <bruno@clisp.org>
28288
28289         Work around getline() bug on FreeBSD 8.0.
28290         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28291         and a non-zero size.
28292         * tests/test-getline.c (main): Likewise.
28293         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28294         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28295
28296 2010-01-28  Eric Blake  <ebb9@byu.net>
28297
28298         regex: fix build failure
28299         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28300         platforms.
28301
28302 2010-01-28  Jim Meyering  <meyering@redhat.com>
28303
28304         regex: do not ignore memory allocation failure
28305         * lib/regex_internal.c (create_cd_newstate): Detect
28306         re_node_set_init_copy failure.   Extracted from glibc commit
28307         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28308
28309         regex: sync more white-space changes from libc
28310         * lib/regex_internal.c: White-space only changes.
28311         * lib/regexec.c: Likewise.
28312
28313         regex: add many uses of __attribute_warn_unused_result__
28314         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28315         * lib/regexec.c: Likewise.
28316         Extracted from a messy glibc commit.
28317
28318         regcomp.c: spelling and merge-artifact from glibc
28319         * lib/regcomp.c: Merge remainder of glibc's
28320         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28321
28322         regcomp.c: sync white-space changes from glibc
28323         * lib/regcomp.c: Merge to accommodate white space
28324         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28325
28326         regcomp.c: do not ignore internal return values
28327         * lib/regcomp.c: Do not ignore internal return values.
28328         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28329         but without its white-space changes and spelling fixes.
28330
28331         regex_internal.h: define __attribute_warn_unused_result__
28332         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28333
28334         maint: add a syntax-check rule to check for vulnerable Makefile.in
28335         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28336
28337 2010-01-27  Jim Meyering  <meyering@redhat.com>
28338
28339         ncftpput-ftp: clean up spaces
28340         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28341         Remove trailing blanks.
28342
28343 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28344
28345         * build-aux/git-version-gen: Fix copyright statement.
28346         * build-aux/gnupload: Likewise.
28347         * tests/test-arcfour.c: Likewise.
28348         * tests/test-arctwo.c: Likewise.
28349         * tests/test-count-one-bits.c: Likewise.
28350         * tests/test-crc.c: Likewise.
28351         * tests/test-des.c: Likewise.
28352         * tests/test-gc-arcfour.c: Likewise.
28353         * tests/test-gc-arctwo.c: Likewise.
28354         * tests/test-gc-des.c: Likewise.
28355         * tests/test-gc-hmac-md5.c: Likewise.
28356         * tests/test-gc-hmac-sha1.c: Likewise.
28357         * tests/test-gc-md2.c: Likewise.
28358         * tests/test-gc-md4.c: Likewise.
28359         * tests/test-gc-md5.c: Likewise.
28360         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28361         * tests/test-gc-rijndael.c: Likewise.
28362         * tests/test-gc-sha1.c: Likewise.
28363         * tests/test-gc.c: Likewise.
28364         * tests/test-gethostname.c: Likewise.
28365         * tests/test-gettimeofday.c: Likewise.
28366         * tests/test-hash.c: Likewise.
28367         * tests/test-hmac-md5.c: Likewise.
28368         * tests/test-hmac-sha1.c: Likewise.
28369         * tests/test-md2.c: Likewise.
28370         * tests/test-md4.c: Likewise.
28371         * tests/test-md5.c: Likewise.
28372         * tests/test-memchr.c: Likewise.
28373         * tests/test-memchr2.c: Likewise.
28374         * tests/test-memcmp.c: Likewise.
28375         * tests/test-memmem.c: Likewise.
28376         * tests/test-memrchr.c: Likewise.
28377         * tests/test-rawmemchr.c: Likewise.
28378         * tests/test-read-file.c: Likewise.
28379         * tests/test-rijndael.c: Likewise.
28380         * tests/test-sockets.c: Likewise.
28381         * tests/test-strchrnul.c: Likewise.
28382         * tests/test-strstr.c: Likewise.
28383         * tests/test-strtod.c: Likewise.
28384         * build-aux/ncftpput-ftp: Likewise.
28385
28386 2010-01-26  Eric Blake  <ebb9@byu.net>
28387
28388         ignore-value: update recommended header name
28389         * modules/ignore-value (Include): Only use <> for headers that
28390         exist in glibc.
28391
28392 2010-01-26  Jim Meyering  <meyering@redhat.com>
28393
28394         test-userspec.c: avoid compiler warnings
28395         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28396         and "initialization discards qualifiers..." warnings.
28397         Put the first "uid" in its own scope, and make char* members "const".
28398
28399 2010-01-25  Bruno Haible  <bruno@clisp.org>
28400
28401         gnulib-tool: Make warning diagnostics consistent.
28402         * gnulib-tool (func_warning): New function.
28403         Use it everywhere where gnulib-tool produces output to stderr and it is
28404         not a fatal error.
28405
28406 2010-01-25  Bruno Haible  <bruno@clisp.org>
28407
28408         Fix test dependencies.
28409         * modules/xstrtol-tests (Depends-on): Add inttypes.
28410         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28411
28412 2010-01-25 Pádraig Brady <P@draigBrady.com>
28413
28414         syntax-check: detect incorrect boolean macro values in config.h
28415         * modules/maintainer-makefile (configure.ac): Parameterize the location
28416         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28417         The logic is from Eric Blake and the location indicated by Jim Meyering.
28418         Note the more natural CONFIG_HEADER name is prohibited by automake
28419         for backwards compatibility reasons.
28420         * top/maint.mk (sc_Wundef_boolean): New rule.
28421
28422 2010-01-25  Jim Meyering  <meyering@redhat.com>
28423
28424         bootstrap: detect MacOS 10.6's shasum, too
28425         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28426         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28427
28428 2010-01-23  Jim Meyering  <meyering@redhat.com>
28429
28430         xstrtoll: new module
28431         * modules/xstrtoll: New file.
28432         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28433         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28434         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28435         ./configure fails if you use this module and lack "long long".
28436         * modules/xstrtoll-tests: New module.
28437         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28438         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28439         new init.sh-based test framework.
28440
28441 2010-01-24  Bruno Haible  <bruno@clisp.org>
28442
28443         Tests for module 'yn'.
28444         * modules/yn-tests: New file.
28445         * tests/test-yn.c: New file.
28446
28447         Tests for module 'y1'.
28448         * modules/y1-tests: New file.
28449         * tests/test-y1.c: New file.
28450
28451         Tests for module 'y0'.
28452         * modules/y0-tests: New file.
28453         * tests/test-y0.c: New file.
28454
28455         Tests for module 'tanh'.
28456         * modules/tanh-tests: New file.
28457         * tests/test-tanh.c: New file.
28458
28459         Tests for module 'tan'.
28460         * modules/tan-tests: New file.
28461         * tests/test-tan.c: New file.
28462
28463         Tests for module 'sqrt'.
28464         * modules/sqrt-tests: New file.
28465         * tests/test-sqrt.c: New file.
28466
28467         Tests for module 'sinh'.
28468         * modules/sinh-tests: New file.
28469         * tests/test-sinh.c: New file.
28470
28471         Tests for module 'sin'.
28472         * modules/sin-tests: New file.
28473         * tests/test-sin.c: New file.
28474
28475         Tests for module 'rint'.
28476         * modules/rint-tests: New file.
28477         * tests/test-rint.c: New file.
28478
28479         Tests for module 'remainder'.
28480         * modules/remainder-tests: New file.
28481         * tests/test-remainder.c: New file.
28482
28483         Tests for module 'pow'.
28484         * modules/pow-tests: New file.
28485         * tests/test-pow.c: New file.
28486
28487         Tests for module 'nextafter'.
28488         * modules/nextafter-tests: New file.
28489         * tests/test-nextafter.c: New file.
28490
28491         Tests for module 'modf'.
28492         * modules/modf-tests: New file.
28493         * tests/test-modf.c: New file.
28494
28495         Tests for module 'logb'.
28496         * modules/logb-tests: New file.
28497         * tests/test-logb.c: New file.
28498
28499         Tests for module 'log1p'.
28500         * modules/log1p-tests: New file.
28501         * tests/test-log1p.c: New file.
28502
28503         Tests for module 'log10'.
28504         * modules/log10-tests: New file.
28505         * tests/test-log10.c: New file.
28506
28507         Tests for module 'log'.
28508         * modules/log-tests: New file.
28509         * tests/test-log.c: New file.
28510
28511         Tests for module 'lgamma'.
28512         * modules/lgamma-tests: New file.
28513         * tests/test-lgamma.c: New file.
28514
28515         Tests for module 'ldexp'.
28516         * modules/ldexp-tests: New file.
28517         * tests/test-ldexp.c: New file.
28518
28519         Tests for module 'jn'.
28520         * modules/jn-tests: New file.
28521         * tests/test-jn.c: New file.
28522
28523         Tests for module 'j1'.
28524         * modules/j1-tests: New file.
28525         * tests/test-j1.c: New file.
28526
28527         Tests for module 'j0'.
28528         * modules/j0-tests: New file.
28529         * tests/test-j0.c: New file.
28530
28531         Tests for module 'hypot'.
28532         * modules/hypot-tests: New file.
28533         * tests/test-hypot.c: New file.
28534
28535         Tests for module 'fmod'.
28536         * modules/fmod-tests: New file.
28537         * tests/test-fmod.c: New file.
28538
28539         Tests for module 'fabs'.
28540         * modules/fabs-tests: New file.
28541         * tests/test-fabs.c: New file.
28542
28543         Tests for module 'exp'.
28544         * modules/exp-tests: New file.
28545         * tests/test-exp.c: New file.
28546
28547         Tests for module 'erfc'.
28548         * modules/erfc-tests: New file.
28549         * tests/test-erfc.c: New file.
28550
28551         Tests for module 'erf'.
28552         * modules/erf-tests: New file.
28553         * tests/test-erf.c: New file.
28554
28555         Tests for module 'cosh'.
28556         * modules/cosh-tests: New file.
28557         * tests/test-cosh.c: New file.
28558
28559         Tests for module 'cos'.
28560         * modules/cos-tests: New file.
28561         * tests/test-cos.c: New file.
28562
28563         Tests for module 'copysign'.
28564         * modules/copysign-tests: New file.
28565         * tests/test-copysign.c: New file.
28566
28567         Tests for module 'cbrt'.
28568         * modules/cbrt-tests: New file.
28569         * tests/test-cbrt.c: New file.
28570
28571         Tests for module 'atan2'.
28572         * modules/atan2-tests: New file.
28573         * tests/test-atan2.c: New file.
28574
28575         Tests for module 'atan'.
28576         * modules/atan-tests: New file.
28577         * tests/test-atan.c: New file.
28578
28579         Tests for module 'asin'.
28580         * modules/asin-tests: New file.
28581         * tests/test-asin.c: New file.
28582
28583         Tests for module 'acos'.
28584         * modules/acos-tests: New file.
28585         * tests/test-acos.c: New file.
28586
28587 2010-01-24  Bruno Haible  <bruno@clisp.org>
28588
28589         Fix tests for common <math.h> functions.
28590         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28591         code snippet that references the function pointer, rather than merely
28592         calling the function. Substitute the FUNC_LIBM variable.
28593         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28594         * modules/acos (configure.ac): Likewise.
28595         * modules/asin (configure.ac): Likewise.
28596         * modules/atan (configure.ac): Likewise.
28597         * modules/atan2 (configure.ac): Likewise.
28598         * modules/cbrt (configure.ac): Likewise.
28599         * modules/copysign (configure.ac): Likewise.
28600         * modules/cos (configure.ac): Likewise.
28601         * modules/cosh (configure.ac): Likewise.
28602         * modules/erf (configure.ac): Likewise.
28603         * modules/erfc (configure.ac): Likewise.
28604         * modules/exp (configure.ac): Likewise.
28605         * modules/fabs (configure.ac): Likewise.
28606         * modules/fmod (configure.ac): Likewise.
28607         * modules/hypot (configure.ac): Likewise.
28608         * modules/j0 (configure.ac): Likewise.
28609         * modules/j1 (configure.ac): Likewise.
28610         * modules/jn (configure.ac): Likewise.
28611         * modules/ldexp (configure.ac): Likewise.
28612         * modules/lgamma (configure.ac): Likewise.
28613         * modules/log (configure.ac): Likewise.
28614         * modules/log10 (configure.ac): Likewise.
28615         * modules/log1p (configure.ac): Likewise.
28616         * modules/logb (configure.ac): Likewise.
28617         * modules/modf (configure.ac): Likewise.
28618         * modules/nextafter (configure.ac): Likewise.
28619         * modules/pow (configure.ac): Likewise.
28620         * modules/remainder (configure.ac): Likewise.
28621         * modules/rint (configure.ac): Likewise.
28622         * modules/sin (configure.ac): Likewise.
28623         * modules/sinh (configure.ac): Likewise.
28624         * modules/tan (configure.ac): Likewise.
28625         * modules/tanh (configure.ac): Likewise.
28626         * modules/y0 (configure.ac): Likewise.
28627         * modules/y1 (configure.ac): Likewise.
28628         * modules/yn (configure.ac): Likewise.
28629
28630 2010-01-24  Bruno Haible  <bruno@clisp.org>
28631
28632         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28633         * tests/test-acosl.c (x): New variable.
28634         (main): Store argument in x and fetch it from x.
28635         * tests/test-asinl.c (x): New variable.
28636         (main): Store argument in x and fetch it from x.
28637         * tests/test-atanl.c (x): New variable.
28638         (main): Store argument in x and fetch it from x.
28639         * tests/test-cosl.c (x): New variable.
28640         (main): Store argument in x and fetch it from x.
28641         * tests/test-expl.c (x): New variable.
28642         (main): Store argument in x and fetch it from x.
28643         * tests/test-logl.c (x): New variable.
28644         (main): Store argument in x and fetch it from x.
28645         * tests/test-sinl.c (x): New variable.
28646         (main): Store argument in x and fetch it from x.
28647         * tests/test-sqrtl.c (x): New variable.
28648         (main): Store argument in x and fetch it from x.
28649         * tests/test-tanl.c (x): New variable.
28650         (main): Store argument in x and fetch it from x.
28651
28652 2010-01-24  Bruno Haible  <bruno@clisp.org>
28653
28654         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28655         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28656         assignments to the initial TESTS_ENVIRONMENT.
28657         * doc/gnulib.texi (Unit test modules): Document it.
28658         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28659         TESTS_ENVIRONMENT.
28660         * modules/btowc-tests (Makefile.am): Likewise.
28661         * modules/c-stack-tests (Makefile.am): Likewise.
28662         * modules/c-strcase-tests (Makefile.am): Likewise.
28663         * modules/copy-file-tests (Makefile.am): Likewise.
28664         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28665         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28666         * modules/mbrtowc-tests (Makefile.am): Likewise.
28667         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28668         * modules/mbscasestr-tests (Makefile.am): Likewise.
28669         * modules/mbschr-tests (Makefile.am): Likewise.
28670         * modules/mbscspn-tests (Makefile.am): Likewise.
28671         * modules/mbsinit-tests (Makefile.am): Likewise.
28672         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28673         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28674         * modules/mbspbrk-tests (Makefile.am): Likewise.
28675         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28676         * modules/mbsrchr-tests (Makefile.am): Likewise.
28677         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28678         * modules/mbsspn-tests (Makefile.am): Likewise.
28679         * modules/mbsstr-tests (Makefile.am): Likewise.
28680         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28681         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28682         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28683         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28684         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28685         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28686         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28687         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28688         * modules/wcrtomb-tests (Makefile.am): Likewise.
28689         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28690         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28691         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28692         assignments from TESTS_ENVIRONMENT.
28693         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28694         augmentation.
28695         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28696         * modules/atexit-tests (Makefile.am): Likewise.
28697         * modules/binary-io-tests (Makefile.am): Likewise.
28698         * modules/closein-tests (Makefile.am): Likewise.
28699         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28700         * modules/exclude-tests (Makefile.am): Likewise.
28701         * modules/fflush-tests (Makefile.am): Likewise.
28702         * modules/fpending-tests (Makefile.am): Likewise.
28703         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28704         * modules/freadahead-tests (Makefile.am): Likewise.
28705         * modules/freadptr-tests (Makefile.am): Likewise.
28706         * modules/freadseek-tests (Makefile.am): Likewise.
28707         * modules/fseek-tests (Makefile.am): Likewise.
28708         * modules/fseeko-tests (Makefile.am): Likewise.
28709         * modules/ftell-tests (Makefile.am): Likewise.
28710         * modules/ftello-tests (Makefile.am): Likewise.
28711         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28712         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28713         * modules/lseek-tests (Makefile.am): Likewise.
28714         * modules/parse-duration-tests (Makefile.am): Likewise.
28715         * modules/perror-tests (Makefile.am): Likewise.
28716         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28717         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28718         * modules/pipe-tests (Makefile.am): Likewise.
28719         * modules/pread-tests (Makefile.am): Likewise.
28720         * modules/printf-posix-tests (Makefile.am): Likewise.
28721         * modules/select-tests (Makefile.am): Likewise.
28722         * modules/sigpipe-tests (Makefile.am): Likewise.
28723         * modules/tsearch-tests (Makefile.am): Likewise.
28724         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28725         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28726         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28727         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28728         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28729         * modules/version-etc-tests (Makefile.am): Likewise.
28730         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28731         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28732         * modules/xalloc-die-tests (Makefile.am): Likewise.
28733         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28734         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28735         * modules/xstrtol-tests (Makefile.am): Likewise.
28736         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28737         * modules/yesno-tests (Makefile.am): Likewise.
28738         Suggested by Jim Meyering.
28739
28740 2010-01-24  Bruno Haible  <bruno@clisp.org>
28741
28742         More documentation.
28743         * doc/gnulib.texi (Writing modules): New chapter.
28744         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28745         the new chapter.
28746
28747 2010-01-24  Jim Meyering  <meyering@redhat.com>
28748
28749         maint.mk: do not prepend "./" after filtering
28750         * top/maint.mk (_prepend_srcdir_prefix): New variable
28751         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28752         "./" when $(srcdir) is ".".
28753
28754         define STREQ(a,b) consistently, removing useless parentheses
28755         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28756         since the only risk is that "a" or "b" contains an unparenthesized
28757         comma, but if either did that, STREQ would have 3 or more arguments.
28758         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28759         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28760         * lib/hash-triple.c (STREQ): Likewise.
28761         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28762         * lib/getugroups.c (STREQ): Likewise.
28763
28764 2010-01-23  Jim Meyering  <meyering@redhat.com>
28765
28766         maint.mk: fix syntax-check in a non-srcdir build directory
28767         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28768         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28769
28770 2010-01-22  Jim Meyering  <meyering@redhat.com>
28771
28772         userspec: add unit tests
28773         * tests/test-userspec.c: New file.
28774         * modules/userspec-tests: Likewise.
28775
28776 2010-01-21  Jim Meyering  <meyering@redhat.com>
28777
28778         maint.mk: handle source file names containing "." robustly
28779         * top/maint.mk (_dot_escaped_srcdir): Define.
28780         (VC_LIST): Use it in LHS of sed substitution.
28781
28782 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28783
28784         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28785         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28786         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28787         from a non-srcdir build.
28788
28789 2010-01-20  Eric Blake  <ebb9@byu.net>
28790
28791         warn-on-use: use instead of link-warning
28792         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28793         * modules/unistd (Depends-on, Makefile.am): Likewise.
28794         * modules/arpa_inet (Depends-on): Replace link-warning with
28795         warn-on-use.
28796         (Makefile.am): Update rules accordingly.
28797         * modules/ctype (Depends-on, Makefile.am): Likewise.
28798         * modules/dirent (Depends-on, Makefile.am): Likewise.
28799         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28800         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28801         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28802         * modules/locale (Depends-on, Makefile.am): Likewise.
28803         * modules/math (Depends-on, Makefile.am): Likewise.
28804         * modules/search (Depends-on, Makefile.am): Likewise.
28805         * modules/signal (Depends-on, Makefile.am): Likewise.
28806         * modules/spawn (Depends-on, Makefile.am): Likewise.
28807         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28808         * modules/string (Depends-on, Makefile.am): Likewise.
28809         * modules/strings (Depends-on, Makefile.am): Likewise.
28810         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28811         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28812         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28813         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28814         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28815         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28816         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28817         * modules/wchar (Depends-on, Makefile.am): Likewise.
28818         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28819         should be poisoned.
28820         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28821         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28822         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28823         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28824         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28825         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28826         * m4/math_h.m4 (gl_MATH_H): Likewise.
28827         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28828         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28829         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28830         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28831         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28832         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28833         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28834         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28835         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28836         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28837         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28838         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28839         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28840         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28841         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28842         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28843         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28844         GL_LINK_WARNING.
28845         * lib/ctype.in.h: Likewise.
28846         * lib/dirent.in.h: Likewise.
28847         * lib/fcntl.in.h: Likewise.
28848         * lib/inttypes.in.h: Likewise.
28849         * lib/langinfo.in.h: Likewise.
28850         * lib/locale.in.h: Likewise.
28851         * lib/math.in.h: Likewise.
28852         * lib/search.in.h: Likewise.
28853         * lib/signal.in.h: Likewise.
28854         * lib/spawn.in.h: Likewise.
28855         * lib/stdio.in.h: Likewise.
28856         * lib/stdlib.in.h: Likewise.
28857         * lib/string.in.h: Likewise.
28858         * lib/strings.in.h: Likewise.
28859         * lib/sys_file.in.h: Likewise.
28860         * lib/sys_ioctl.in.h: Likewise.
28861         * lib/sys_select.in.h: Likewise.
28862         * lib/sys_socket.in.h: Likewise.
28863         * lib/sys_stat.in.h: Likewise.
28864         * lib/sys_times.in.h: Likewise.
28865         * lib/sys_utsname.in.h: Likewise.
28866         * lib/unistd.in.h: Likewise.
28867         * lib/wchar.in.h: Likewise.
28868
28869 2010-01-20  Bruno Haible  <bruno@clisp.org>
28870
28871         Avoid duplicate -lm.
28872         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28873         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28874         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28875         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28876         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28877         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28878         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28879         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28880         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28881         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28882         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28883         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28884         Reported by Paolo Bonzini.
28885
28886 2010-01-19  Bruno Haible  <bruno@clisp.org>
28887
28888         langinfo, nl_langinfo: Relicense under LGPLv2+.
28889         * modules/langinfo (License): Change to LGPLv2+.
28890         * modules/nl_langinfo (License): Likewise.
28891         Patch by David Lutterkort <lutter@redhat.com>.
28892
28893 2010-01-19  Bruno Haible  <bruno@clisp.org>
28894
28895         Avoid compilation error with cc on OSF/1 5.1.
28896         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28897         statement, not before.
28898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28899
28900 2010-01-18  Bruno Haible  <bruno@clisp.org>
28901
28902         Avoid a link error due to the __printf__ symbol.
28903         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28904         and 2.6.x.
28905         (__format__, __printf__): Remove definitions.
28906         * lib/argp-fmtstream.h: Likewise.
28907         * lib/argp.h: Likewise.
28908         * lib/error.h: Likewise.
28909         * lib/vasnprintf.h: Likewise.
28910         * lib/xprintf.h: Likewise.
28911         * lib/xvasprintf.h: Likewise.
28912         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28913
28914 2010-01-18  Bruno Haible  <bruno@clisp.org>
28915
28916         Tests for module 'tanl'.
28917         * modules/tanl-tests: New file.
28918         * tests/test-tanl.c: New file.
28919
28920         Tests for module 'sqrtl'.
28921         * modules/sqrtl-tests: New file.
28922         * tests/test-sqrtl.c: New file.
28923
28924         Tests for module 'sinl'.
28925         * modules/sinl-tests: New file.
28926         * tests/test-sinl.c: New file.
28927
28928         Tests for module 'logl'.
28929         * modules/logl-tests: New file.
28930         * tests/test-logl.c: New file.
28931
28932         Tests for module 'expl'.
28933         * modules/expl-tests: New file.
28934         * tests/test-expl.c: New file.
28935
28936         Tests for module 'cosl'.
28937         * modules/cosl-tests: New file.
28938         * tests/test-cosl.c: New file.
28939
28940         Tests for module 'atanl'.
28941         * modules/atanl-tests: New file.
28942         * tests/test-atanl.c: New file.
28943
28944         Tests for module 'asinl'.
28945         * modules/asinl-tests: New file.
28946         * tests/test-asinl.c: New file.
28947
28948         Tests for module 'acosl'.
28949         * modules/acosl-tests: New file.
28950         * tests/test-acosl.c: New file.
28951
28952         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28953         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28954         tanl): Use the standard gnulib idiom.
28955         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28956         * lib/sinl.c: Likewise.
28957         * lib/tanl.c: Don't include trigl.c.
28958         (kernel_tanl): Make static.
28959         * lib/sincosl.c: Include trigl.h first.
28960         * lib/trigl.c: Likewise.
28961         * m4/acosl.m4: New file.
28962         * m4/asinl.m4: New file.
28963         * m4/atanl.m4: New file.
28964         * m4/cosl.m4: New file.
28965         * m4/expl.m4: New file.
28966         * m4/logl.m4: New file.
28967         * m4/sinl.m4: New file.
28968         * m4/sqrtl.m4: New file.
28969         * m4/tanl.m4: New file.
28970         * m4/mathl.m4: Remove file.
28971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28972         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28973         Don't initialize GNULIB_MATHL.
28974         * modules/acosl: New file.
28975         * modules/asinl: New file.
28976         * modules/atanl: New file.
28977         * modules/cosl: New file.
28978         * modules/expl: New file.
28979         * modules/logl: New file.
28980         * modules/sinl: New file.
28981         * modules/sqrtl: New file.
28982         * modules/tanl: New file.
28983         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28984         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28985         substitute GNULIB_MATHL.
28986         * modules/mathl: Rewritten.
28987         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28988         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28989         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28990         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28991         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28992         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28993         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28994         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28995         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28996
28997 2010-01-18  Bruno Haible  <bruno@clisp.org>
28998
28999         sqrt: Make gl_FUNC_SQRT requirable.
29000         * m4/sqrt.m4: New file.
29001         * modules/sqrt (Files): Add it.
29002         (configure.ac): Invoke gl_FUNC_SQRT.
29003
29004 2010-01-18  Bruno Haible  <bruno@clisp.org>
29005
29006         New modules for common <math.h> functions.
29007         * m4/mathfunc.m4: New file.
29008         * modules/acos: New file.
29009         * modules/asin: New file.
29010         * modules/atan: New file.
29011         * modules/atan2: New file.
29012         * modules/cbrt: New file.
29013         * modules/copysign: New file.
29014         * modules/cos: New file.
29015         * modules/cosh: New file.
29016         * modules/erf: New file.
29017         * modules/erfc: New file.
29018         * modules/exp: New file.
29019         * modules/fabs: New file.
29020         * modules/fmod: New file.
29021         * modules/hypot: New file.
29022         * modules/j0: New file.
29023         * modules/j1: New file.
29024         * modules/jn: New file.
29025         * modules/ldexp: New file.
29026         * modules/lgamma: New file.
29027         * modules/log: New file.
29028         * modules/log10: New file.
29029         * modules/log1p: New file.
29030         * modules/logb: New file.
29031         * modules/modf: New file.
29032         * modules/nextafter: New file.
29033         * modules/pow: New file.
29034         * modules/remainder: New file.
29035         * modules/rint: New file.
29036         * modules/sin: New file.
29037         * modules/sinh: New file.
29038         * modules/sqrt: New file.
29039         * modules/tan: New file.
29040         * modules/tanh: New file.
29041         * modules/y0: New file.
29042         * modules/y1: New file.
29043         * modules/yn: New file.
29044         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29045         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29046         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29047         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29048         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29049         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29050         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29051         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29052         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29053         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29054         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29055         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29056         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29057         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29058         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29059         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29060         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29061         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29062         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29063         * doc/posix-functions/log.texi: Mention the 'log' module.
29064         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29065         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29066         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29067         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29068         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29069         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29070         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29071         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29072         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29073         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29074         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29075         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29076         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29077         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29078         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29079         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29080
29081 2010-01-18  Jim Meyering  <meyering@redhat.com>
29082
29083         ignore-value: relax license to LGPLv2+
29084         * modules/ignore-value (License): Relax to LGPLv2+.
29085
29086         getdate: don't leak when TZ contains two or more '"'s
29087         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29088         double quote in TZ after the first one.
29089
29090         readtokens: do not leak internal token_lengths buffer
29091         * lib/readtokens.c (readtokens): Free the local, lengths,
29092         when the supplied "token_lengths" parameter is NULL.
29093
29094 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29095
29096         Fix a couple of missing LIBTHREAD link failures on AIX.
29097         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29098         $(LIBTHREAD).
29099         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29100
29101         Link test-poll against INET_PTON_LIB.
29102         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29103         for inet_pton on Solaris 10.
29104
29105 2010-01-17  Bruno Haible  <bruno@clisp.org>
29106
29107         unistdio/*-sprintf: Fix typo in module description.
29108         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29109         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29110         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29111         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29112         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29113         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29114         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29115         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29116
29117 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29118
29119         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29120         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29121         variables in shell case patterns, for AIX and HP-UX ksh.
29122
29123         Split large sed scripts, for HP-UX sed.
29124         * modules/stdio: Split sed scripts around 50 sed commands,
29125         to avoid HP-UX limit of 99 commands, in the near future.
29126         * modules/string: Likewise.
29127         * modules/unistd: Likewise.
29128
29129         gnulib-tool: avoid writing in the current directory.
29130         * gnulib-tool (func_emit_lib_Makefile_am)
29131         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29132         not in the current directory, so concurrent gnulib-tool
29133         instances do not interfere.
29134
29135 2010-01-16  Jim Meyering  <meyering@redhat.com>
29136
29137         doc: update users.txt
29138         * users.txt: Add grep.
29139         (diffutils, gzip): Update URLs.
29140
29141 2010-01-12  Bruno Haible  <bruno@clisp.org>
29142
29143         posix_spawn: Avoid test failure on Cygwin.
29144         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29145         characters.
29146         Reported by Simon Josefsson.
29147
29148 2010-01-12  Bruno Haible  <bruno@clisp.org>
29149
29150         * tests/test-cond.c (main): When skipping the test, show the reason.
29151
29152 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29153
29154         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29155
29156 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29157
29158         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29159         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29160
29161 2010-01-12  Eric Blake  <ebb9@byu.net>
29162
29163         build: guarantee AS_VAR_IF
29164         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29165         (gl_AS_VAR_IF): Move...
29166         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29167         Reported by Simon Josefsson.
29168
29169 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29170
29171         * lib/stdio.in.h: Fix typo.
29172
29173 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29174
29175         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29176         libgpg-error.
29177
29178 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29179
29180         * tests/test-xalloc-die.sh: Use $EXEEXT.
29181
29182 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29183             Bruno Haible  <bruno@clisp.org>
29184
29185         getlogin, getlogin_r: Avoid test failure.
29186         * tests/test-getlogin.c: Include <stdio.h>.
29187         (main): Skip the test when the function fails because stdin is not a
29188         tty.
29189         * tests/test-getlogin_r.c: Include <stdio.h>.
29190         (main): Skip the test when the function fails because stdin is not a
29191         tty.
29192
29193 2010-01-11  Eric Blake  <ebb9@byu.net>
29194
29195         tests: avoid more large file warnings
29196         * tests/test-fflush.c: Avoid warning about ftell use.
29197         * tests/test-fseek.c: Avoid warning about fseek use.
29198
29199 2010-01-10  Bruno Haible  <bruno@clisp.org>
29200
29201         nproc: Work better on Linux when /proc and /sys are not mounted.
29202         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29203         as lower bound when, on glibc/Linux systems,
29204         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29205         Suggested by Pádraig Brady <P@draigbrady.com>.
29206         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29207
29208         nproc: Refactor.
29209         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29210         extracted from num_processors.
29211         (num_processors): Call it.
29212
29213 2010-01-11  Jim Meyering  <meyering@redhat.com>
29214
29215         utimecmp: avoid new warning from upcoming gcc-4.5.0
29216         * lib/utimecmp.c (BILLION): Define using #define rather than an
29217         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29218
29219 2010-01-11  Eric Blake  <ebb9@byu.net>
29220
29221         math: add portability warnings for classification macros
29222         * modules/math (Depends-on): Add warn-on-use.
29223         (Makefile.am): Provide new substitutions.
29224         * m4/math_h.m4 (gl_MATH_H): Require inline.
29225         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29226         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29227         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29228         implement warnings.
29229
29230         unistd: warn on use of environ without module
29231         * modules/unistd (Depends-on): Add warn-on-use.
29232         (Makefile.am): Provide new substitutions.
29233         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29234         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29235
29236         stdio: warn on suspicious uses
29237         * modules/stdio (Depends-on): Add warn-on-use.
29238         (Makefile.am): Provide new substitutions.
29239         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29240         fseeko.
29241         * lib/stdio.in.h (gets): Always warn on use.
29242         (fseek, ftell): Adjust when warnings are issued, and honor
29243         _GL_NO_LARGE_FILES as a way to silence the warning.
29244         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29245         any warning about large file offsets.
29246         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29247         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29248         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29249         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29250         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29251         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29252         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29253         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29254
29255         warn-on-use: new module
29256         * modules/warn-on-use: New file.
29257         * build-aux/warn-on-use.h: Likewise.
29258         * m4/warn-on-use.m4: Likewise.
29259         * MODULES.html.sh (Support for building): Mention it.
29260
29261 2010-01-10  Bruno Haible  <bruno@clisp.org>
29262
29263         Tests for module 'unistr/u32-strdup'.
29264         * modules/unistr/u32-strdup-tests: New file.
29265         * tests/unistr/test-u32-strdup.c: New file.
29266
29267         Tests for module 'unistr/u16-strdup'.
29268         * modules/unistr/u16-strdup-tests: New file.
29269         * tests/unistr/test-u16-strdup.c: New file.
29270
29271         Tests for module 'unistr/u8-strdup'.
29272         * modules/unistr/u8-strdup-tests: New file.
29273         * tests/unistr/test-u8-strdup.c: New file.
29274         * tests/unistr/test-strdup.h: New file.
29275
29276         Tests for module 'unistr/u32-strncmp'.
29277         * modules/unistr/u32-strncmp-tests: New file.
29278         * tests/unistr/test-u32-strncmp.c: New file.
29279
29280         Tests for module 'unistr/u16-strncmp'.
29281         * modules/unistr/u16-strncmp-tests: New file.
29282         * tests/unistr/test-u16-strncmp.c: New file.
29283
29284         Tests for module 'unistr/u8-strncmp'.
29285         * modules/unistr/u8-strncmp-tests: New file.
29286         * tests/unistr/test-u8-strncmp.c: New file.
29287         * tests/unistr/test-strncmp.h: New file.
29288
29289         Tests for module 'unistr/u32-strcoll'.
29290         * modules/unistr/u32-strcoll-tests: New file.
29291         * tests/unistr/test-u32-strcoll.c: New file.
29292
29293         Tests for module 'unistr/u16-strcoll'.
29294         * modules/unistr/u16-strcoll-tests: New file.
29295         * tests/unistr/test-u16-strcoll.c: New file.
29296
29297         Tests for module 'unistr/u8-strcoll'.
29298         * modules/unistr/u8-strcoll-tests: New file.
29299         * tests/unistr/test-u8-strcoll.c: New file.
29300
29301         Tests for module 'unistr/u32-strcmp'.
29302         * modules/unistr/u32-strcmp-tests: New file.
29303         * tests/unistr/test-u32-strcmp.c: New file.
29304         * tests/unistr/test-u32-strcmp.h: New file.
29305
29306         Tests for module 'unistr/u16-strcmp'.
29307         * modules/unistr/u16-strcmp-tests: New file.
29308         * tests/unistr/test-u16-strcmp.c: New file.
29309         * tests/unistr/test-u16-strcmp.h: New file.
29310
29311         Tests for module 'unistr/u8-strcmp'.
29312         * modules/unistr/u8-strcmp-tests: New file.
29313         * tests/unistr/test-u8-strcmp.c: New file.
29314         * tests/unistr/test-u8-strcmp.h: New file.
29315         * tests/unistr/test-strcmp.h: New file.
29316
29317         Tests for module 'unistr/u32-strncat'.
29318         * modules/unistr/u32-strncat-tests: New file.
29319         * tests/unistr/test-u32-strncat.c: New file.
29320
29321         Tests for module 'unistr/u16-strncat'.
29322         * modules/unistr/u16-strncat-tests: New file.
29323         * tests/unistr/test-u16-strncat.c: New file.
29324
29325         Tests for module 'unistr/u8-strncat'.
29326         * modules/unistr/u8-strncat-tests: New file.
29327         * tests/unistr/test-u8-strncat.c: New file.
29328         * tests/unistr/test-strncat.h: New file.
29329
29330         Tests for module 'unistr/u32-strcat'.
29331         * modules/unistr/u32-strcat-tests: New file.
29332         * tests/unistr/test-u32-strcat.c: New file.
29333
29334         Tests for module 'unistr/u16-strcat'.
29335         * modules/unistr/u16-strcat-tests: New file.
29336         * tests/unistr/test-u16-strcat.c: New file.
29337
29338         Tests for module 'unistr/u8-strcat'.
29339         * modules/unistr/u8-strcat-tests: New file.
29340         * tests/unistr/test-u8-strcat.c: New file.
29341         * tests/unistr/test-strcat.h: New file.
29342
29343         Tests for module 'unistr/u32-stpncpy'.
29344         * modules/unistr/u32-stpncpy-tests: New file.
29345         * tests/unistr/test-u32-stpncpy.c: New file.
29346
29347         Tests for module 'unistr/u16-stpncpy'.
29348         * modules/unistr/u16-stpncpy-tests: New file.
29349         * tests/unistr/test-u16-stpncpy.c: New file.
29350
29351         Tests for module 'unistr/u8-stpncpy'.
29352         * modules/unistr/u8-stpncpy-tests: New file.
29353         * tests/unistr/test-u8-stpncpy.c: New file.
29354         * tests/unistr/test-stpncpy.h: New file.
29355
29356         Tests for module 'unistr/u32-strncpy'.
29357         * modules/unistr/u32-strncpy-tests: New file.
29358         * tests/unistr/test-u32-strncpy.c: New file.
29359
29360         Tests for module 'unistr/u16-strncpy'.
29361         * modules/unistr/u16-strncpy-tests: New file.
29362         * tests/unistr/test-u16-strncpy.c: New file.
29363
29364         Tests for module 'unistr/u8-strncpy'.
29365         * modules/unistr/u8-strncpy-tests: New file.
29366         * tests/unistr/test-u8-strncpy.c: New file.
29367         * tests/unistr/test-strncpy.h: New file.
29368
29369         Tests for module 'unistr/u32-stpcpy'.
29370         * modules/unistr/u32-stpcpy-tests: New file.
29371         * tests/unistr/test-u32-stpcpy.c: New file.
29372
29373         Tests for module 'unistr/u16-stpcpy'.
29374         * modules/unistr/u16-stpcpy-tests: New file.
29375         * tests/unistr/test-u16-stpcpy.c: New file.
29376
29377         Tests for module 'unistr/u8-stpcpy'.
29378         * modules/unistr/u8-stpcpy-tests: New file.
29379         * tests/unistr/test-u8-stpcpy.c: New file.
29380         * tests/unistr/test-stpcpy.h: New file.
29381
29382         Tests for module 'unistr/u32-strcpy'.
29383         * modules/unistr/u32-strcpy-tests: New file.
29384         * tests/unistr/test-u32-strcpy.c: New file.
29385
29386         Tests for module 'unistr/u16-strcpy'.
29387         * modules/unistr/u16-strcpy-tests: New file.
29388         * tests/unistr/test-u16-strcpy.c: New file.
29389
29390         Tests for module 'unistr/u8-strcpy'.
29391         * modules/unistr/u8-strcpy-tests: New file.
29392         * tests/unistr/test-u8-strcpy.c: New file.
29393         * tests/unistr/test-strcpy.h: New file.
29394
29395         Tests for module 'unistr/u32-strnlen'.
29396         * modules/unistr/u32-strnlen-tests: New file.
29397         * tests/unistr/test-u32-strnlen.c: New file.
29398
29399         Tests for module 'unistr/u16-strnlen'.
29400         * modules/unistr/u16-strnlen-tests: New file.
29401         * tests/unistr/test-u16-strnlen.c: New file.
29402
29403         Tests for module 'unistr/u8-strnlen'.
29404         * modules/unistr/u8-strnlen-tests: New file.
29405         * tests/unistr/test-u8-strnlen.c: New file.
29406         * tests/unistr/test-strnlen.h: New file.
29407
29408         Tests for module 'unistr/u32-strlen'.
29409         * modules/unistr/u32-strlen-tests: New file.
29410         * tests/unistr/test-u32-strlen.c: New file.
29411
29412         Tests for module 'unistr/u16-strlen'.
29413         * modules/unistr/u16-strlen-tests: New file.
29414         * tests/unistr/test-u16-strlen.c: New file.
29415
29416         Tests for module 'unistr/u8-strlen'.
29417         * modules/unistr/u8-strlen-tests: New file.
29418         * tests/unistr/test-u8-strlen.c: New file.
29419
29420         Tests for module 'unistr/u32-prev'.
29421         * modules/unistr/u32-prev-tests: New file.
29422         * tests/unistr/test-u32-prev.c: New file.
29423
29424         Tests for module 'unistr/u16-prev'.
29425         * modules/unistr/u16-prev-tests: New file.
29426         * tests/unistr/test-u16-prev.c: New file.
29427
29428         Tests for module 'unistr/u8-prev'.
29429         * modules/unistr/u8-prev-tests: New file.
29430         * tests/unistr/test-u8-prev.c: New file.
29431
29432         Tests for module 'unistr/u32-next'.
29433         * modules/unistr/u32-next-tests: New file.
29434         * tests/unistr/test-u32-next.c: New file.
29435
29436         Tests for module 'unistr/u16-next'.
29437         * modules/unistr/u16-next-tests: New file.
29438         * tests/unistr/test-u16-next.c: New file.
29439
29440         Tests for module 'unistr/u8-next'.
29441         * modules/unistr/u8-next-tests: New file.
29442         * tests/unistr/test-u8-next.c: New file.
29443
29444         Tests for module 'unistr/u32-strmbtouc'.
29445         * modules/unistr/u32-strmbtouc-tests: New file.
29446         * tests/unistr/test-u32-strmbtouc.c: New file.
29447
29448         Tests for module 'unistr/u16-strmbtouc'.
29449         * modules/unistr/u16-strmbtouc-tests: New file.
29450         * tests/unistr/test-u16-strmbtouc.c: New file.
29451
29452         Tests for module 'unistr/u8-strmbtouc'.
29453         * modules/unistr/u8-strmbtouc-tests: New file.
29454         * tests/unistr/test-u8-strmbtouc.c: New file.
29455
29456         Tests for module 'unistr/u32-strmblen'.
29457         * modules/unistr/u32-strmblen-tests: New file.
29458         * tests/unistr/test-u32-strmblen.c: New file.
29459
29460         Tests for module 'unistr/u16-strmblen'.
29461         * modules/unistr/u16-strmblen-tests: New file.
29462         * tests/unistr/test-u16-strmblen.c: New file.
29463
29464         Tests for module 'unistr/u8-strmblen'.
29465         * modules/unistr/u8-strmblen-tests: New file.
29466         * tests/unistr/test-u8-strmblen.c: New file.
29467
29468         Tests for module 'unistr/u32-cpy-alloc'.
29469         * modules/unistr/u32-cpy-alloc-tests: New file.
29470         * tests/unistr/test-u32-cpy-alloc.c: New file.
29471
29472         Tests for module 'unistr/u16-cpy-alloc'.
29473         * modules/unistr/u16-cpy-alloc-tests: New file.
29474         * tests/unistr/test-u16-cpy-alloc.c: New file.
29475
29476         Tests for module 'unistr/u8-cpy-alloc'.
29477         * modules/unistr/u8-cpy-alloc-tests: New file.
29478         * tests/unistr/test-u8-cpy-alloc.c: New file.
29479         * tests/unistr/test-cpy-alloc.h: New file.
29480
29481         Tests for module 'unistr/u32-mbsnlen'.
29482         * modules/unistr/u32-mbsnlen-tests: New file.
29483         * tests/unistr/test-u32-mbsnlen.c: New file.
29484
29485         Tests for module 'unistr/u16-mbsnlen'.
29486         * modules/unistr/u16-mbsnlen-tests: New file.
29487         * tests/unistr/test-u16-mbsnlen.c: New file.
29488
29489         Tests for module 'unistr/u8-mbsnlen'.
29490         * modules/unistr/u8-mbsnlen-tests: New file.
29491         * tests/unistr/test-u8-mbsnlen.c: New file.
29492
29493         Tests for module 'unistr/u32-chr'.
29494         * modules/unistr/u32-chr-tests: New file.
29495         * tests/unistr/test-u32-chr.c: New file.
29496
29497         Tests for module 'unistr/u16-chr'.
29498         * modules/unistr/u16-chr-tests: New file.
29499         * tests/unistr/test-u16-chr.c: New file.
29500
29501         Tests for module 'unistr/u8-chr'.
29502         * modules/unistr/u8-chr-tests: New file.
29503         * tests/unistr/test-u8-chr.c: New file.
29504         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29505
29506         Tests for module 'unistr/u32-cmp2'.
29507         * modules/unistr/u32-cmp2-tests: New file.
29508         * tests/unistr/test-u32-cmp2.c: New file.
29509
29510         Tests for module 'unistr/u16-cmp2'.
29511         * modules/unistr/u16-cmp2-tests: New file.
29512         * tests/unistr/test-u16-cmp2.c: New file.
29513
29514         Tests for module 'unistr/u8-cmp2'.
29515         * modules/unistr/u8-cmp2-tests: New file.
29516         * tests/unistr/test-u8-cmp2.c: New file.
29517         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29518
29519         Tests for module 'unistr/u32-cmp'.
29520         * modules/unistr/u32-cmp-tests: New file.
29521         * tests/unistr/test-u32-cmp.c: New file.
29522
29523         Tests for module 'unistr/u16-cmp'.
29524         * modules/unistr/u16-cmp-tests: New file.
29525         * tests/unistr/test-u16-cmp.c: New file.
29526
29527         Tests for module 'unistr/u8-cmp'.
29528         * modules/unistr/u8-cmp-tests: New file.
29529         * tests/unistr/test-u8-cmp.c: New file.
29530         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29531
29532         Tests for module 'unistr/u32-set'.
29533         * modules/unistr/u32-set-tests: New file.
29534         * tests/unistr/test-u32-set.c: New file.
29535
29536         Tests for module 'unistr/u16-set'.
29537         * modules/unistr/u16-set-tests: New file.
29538         * tests/unistr/test-u16-set.c: New file.
29539
29540         Tests for module 'unistr/u8-set'.
29541         * modules/unistr/u8-set-tests: New file.
29542         * tests/unistr/test-u8-set.c: New file.
29543         * tests/unistr/test-set.h: New file.
29544
29545         Tests for module 'unistr/u32-move'.
29546         * modules/unistr/u32-move-tests: New file.
29547         * tests/unistr/test-u32-move.c: New file.
29548
29549         Tests for module 'unistr/u16-move'.
29550         * modules/unistr/u16-move-tests: New file.
29551         * tests/unistr/test-u16-move.c: New file.
29552
29553         Tests for module 'unistr/u8-move'.
29554         * modules/unistr/u8-move-tests: New file.
29555         * tests/unistr/test-u8-move.c: New file.
29556         * tests/unistr/test-move.h: New file.
29557
29558         Tests for module 'unistr/u32-cpy'.
29559         * modules/unistr/u32-cpy-tests: New file.
29560         * tests/unistr/test-u32-cpy.c: New file.
29561
29562         Tests for module 'unistr/u16-cpy'.
29563         * modules/unistr/u16-cpy-tests: New file.
29564         * tests/unistr/test-u16-cpy.c: New file.
29565
29566         Tests for module 'unistr/u8-cpy'.
29567         * modules/unistr/u8-cpy-tests: New file.
29568         * tests/unistr/test-u8-cpy.c: New file.
29569         * tests/unistr/test-cpy.h: New file.
29570
29571 2010-01-09  Bruno Haible  <bruno@clisp.org>
29572
29573         Tests for module 'unistr/u32-uctomb'.
29574         * modules/unistr/u32-uctomb-tests: New file.
29575         * tests/unistr/test-u32-uctomb.c: New file.
29576
29577         Tests for module 'unistr/u16-uctomb'.
29578         * modules/unistr/u16-uctomb-tests: New file.
29579         * tests/unistr/test-u16-uctomb.c: New file.
29580
29581         Tests for module 'unistr/u8-uctomb'.
29582         * modules/unistr/u8-uctomb-tests: New file.
29583         * tests/unistr/test-u8-uctomb.c: New file.
29584
29585         Tests for module 'unistr/u32-mbtoucr'.
29586         * modules/unistr/u32-mbtoucr-tests: New file.
29587         * tests/unistr/test-u32-mbtoucr.c: New file.
29588
29589         Tests for module 'unistr/u16-mbtoucr'.
29590         * modules/unistr/u16-mbtoucr-tests: New file.
29591         * tests/unistr/test-u16-mbtoucr.c: New file.
29592
29593         Tests for module 'unistr/u8-mbtoucr'.
29594         * modules/unistr/u8-mbtoucr-tests: New file.
29595         * tests/unistr/test-u8-mbtoucr.c: New file.
29596
29597         Tests for module 'unistr/u32-mbtouc'.
29598         * modules/unistr/u32-mbtouc-tests: New file.
29599         * tests/unistr/test-u32-mbtouc.c: New file.
29600
29601         Tests for module 'unistr/u16-mbtouc'.
29602         * modules/unistr/u16-mbtouc-tests: New file.
29603         * tests/unistr/test-u16-mbtouc.c: New file.
29604
29605         Tests for module 'unistr/u8-mbtouc'.
29606         * modules/unistr/u8-mbtouc-tests: New file.
29607         * tests/unistr/test-u8-mbtouc.c: New file.
29608
29609         Tests for module 'unistr/u32-mbtouc-unsafe'.
29610         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29611         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29612         * tests/unistr/test-u32-mbtouc.h: New file.
29613
29614         Tests for module 'unistr/u16-mbtouc-unsafe'.
29615         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29616         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29617         * tests/unistr/test-u16-mbtouc.h: New file.
29618
29619         Tests for module 'unistr/u8-mbtouc-unsafe'.
29620         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29621         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29622         * tests/unistr/test-u8-mbtouc.h: New file.
29623
29624         Tests for module 'unistr/u32-mblen'.
29625         * modules/unistr/u32-mblen-tests: New file.
29626         * tests/unistr/test-u32-mblen.c: New file.
29627
29628         Tests for module 'unistr/u16-mblen'.
29629         * modules/unistr/u16-mblen-tests: New file.
29630         * tests/unistr/test-u16-mblen.c: New file.
29631
29632         Tests for module 'unistr/u8-mblen'.
29633         * modules/unistr/u8-mblen-tests: New file.
29634         * tests/unistr/test-u8-mblen.c: New file.
29635
29636         Tests for module 'unistr/u32-to-u16'.
29637         * modules/unistr/u32-to-u16-tests: New file.
29638         * tests/unistr/test-u32-to-u16.c: New file.
29639
29640         Tests for module 'unistr/u32-to-u8'.
29641         * modules/unistr/u32-to-u8-tests: New file.
29642         * tests/unistr/test-u32-to-u8.c: New file.
29643
29644         Tests for module 'unistr/u16-to-u32'.
29645         * modules/unistr/u16-to-u32-tests: New file.
29646         * tests/unistr/test-u16-to-u32.c: New file.
29647
29648         Tests for module 'unistr/u16-to-u8'.
29649         * modules/unistr/u16-to-u8-tests: New file.
29650         * tests/unistr/test-u16-to-u8.c: New file.
29651
29652         Tests for module 'unistr/u8-to-u32'.
29653         * modules/unistr/u8-to-u32-tests: New file.
29654         * tests/unistr/test-u8-to-u32.c: New file.
29655
29656         Tests for module 'unistr/u8-to-u16'.
29657         * modules/unistr/u8-to-u16-tests: New file.
29658         * tests/unistr/test-u8-to-u16.c: New file.
29659
29660         Tests for module 'unistr/u32-check'.
29661         * modules/unistr/u32-check-tests: New file.
29662         * tests/unistr/test-u32-check.c: New file.
29663
29664         Tests for module 'unistr/u16-check'.
29665         * modules/unistr/u16-check-tests: New file.
29666         * tests/unistr/test-u16-check.c: New file.
29667
29668         Tests for module 'unistr/u8-check'.
29669         * modules/unistr/u8-check-tests: New file.
29670         * tests/unistr/test-u8-check.c: New file.
29671
29672         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29673         (category_equals): New function.
29674         (main): Add more tests.
29675         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29676
29677         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29678
29679 2010-01-10  Bruno Haible  <bruno@clisp.org>
29680
29681         unistr/u*-strcoll: Try harder to distinguish different strings.
29682         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29683         compare s1 and s2 to see if they are different.
29684
29685 2010-01-10  Bruno Haible  <bruno@clisp.org>
29686
29687         unistr/u*-stpncpy: Fix the return value.
29688         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29689         description of the return value consistent with stpncpy in glibc.
29690         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29691         written non-NUL unit.
29692
29693 2010-01-10  Bruno Haible  <bruno@clisp.org>
29694
29695         unistr/u*-next: Add missing dependencies.
29696         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29697         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29698         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29699
29700 2010-01-10  Bruno Haible  <bruno@clisp.org>
29701
29702         unistr/u8-mbsnlen: Fix return value for incomplete character.
29703         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29704         u8_mblen.
29705         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29706         Remove unistr/u8-mblen.
29707         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29708         u16_mblen.
29709         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29710         Remove unistr/u16-mblen.
29711
29712 2010-01-10  Bruno Haible  <bruno@clisp.org>
29713
29714         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29715         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29716         Reported by Brian Gough <bjg@gnu.org> and
29717         Chris Clayton <chris2553@googlemail.com> via
29718         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29719
29720 2010-01-09  Bruno Haible  <bruno@clisp.org>
29721
29722         unistr/u16-to-u32: Reject invalid input.
29723         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29724         u16_mbtouc.
29725         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29726         Remove unistr/u16-mbtouc.
29727
29728         unistr/u16-to-u8: Reject invalid input.
29729         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29730         u16_mbtouc.
29731         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29732         Remove unistr/u16-mbtouc.
29733
29734         unistr/u8-to-u32: Reject invalid input.
29735         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29736         u8_mbtouc.
29737         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29738         Remove unistr/u8-mbtouc.
29739
29740         unistr/u8-to-u16: Reject invalid input.
29741         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29742         u8_mbtouc.
29743         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29744         Remove unistr/u8-mbtouc.
29745
29746 2010-01-09  Bruno Haible  <bruno@clisp.org>
29747
29748         Tests for module 'getlogin'.
29749         * modules/getlogin-tests: New file.
29750         * tests/test-getlogin.c: New file.
29751
29752         New module 'getlogin'.
29753         * lib/unistd.in.h (getlogin): New declaration.
29754         * lib/getlogin.c: New file.
29755         * m4/getlogin.m4: New file.
29756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29757         HAVE_GETLOGIN.
29758         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29759         HAVE_GETLOGIN.
29760         * modules/getlogin: New file.
29761         * doc/posix-functions/getlogin.texi: Mention the new module.
29762         Reported by John W. Eaton <jwe@gnu.org>.
29763
29764 2010-01-09  Bruno Haible  <bruno@clisp.org>
29765
29766         getlogin_r: Support for native Windows.
29767         * lib/getlogin_r.c: Include <windows.h>
29768         (getlogin_r): Implement for native Windows.
29769         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29770         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29771         via John W. Eaton <jwe@gnu.org>.
29772
29773 2010-01-09  Bruno Haible  <bruno@clisp.org>
29774
29775         getlogin_r: Small fixes.
29776         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29777         succeeds.
29778         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29779         before testing whether getlogin_r is declared. No need to set
29780         HAVE_DECL_GETLOGIN_R to 1.
29781         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29782
29783 2010-01-09  Bruno Haible  <bruno@clisp.org>
29784
29785         * lib/unistd.in.h (getlogin_r): Add comment.
29786
29787 2010-01-09  Bruno Haible  <bruno@clisp.org>
29788
29789         Tests for module 'getlogin_r'.
29790         * modules/getlogin_r-tests: New file.
29791         * tests/test-getlogin_r.c: New file.
29792
29793 2010-01-09  Jim Meyering  <meyering@redhat.com>
29794
29795         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29796         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29797         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29798
29799 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29800
29801         * lib/dup2.c (rpl_dup2): Improve comment.
29802
29803 2010-01-08  Eric Blake  <ebb9@byu.net>
29804
29805         maint.mk: allow packages to add makefile @@ exceptions
29806         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29807         (sc_makefile_check): Rename...
29808         (sc_makefile_at_at_check): ...to this, and use hook.
29809
29810         dup2: work around mingw bug
29811         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29812         Reported by Simon Josefsson.
29813
29814 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29815
29816         glob: Fix C++ compilation.
29817         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29818         C++.
29819
29820 2010-01-07  Bruno Haible  <bruno@clisp.org>
29821
29822         Fix indentation of wctype.in.h, broken since 2007-01-06.
29823         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29824
29825 2010-01-07  Bruno Haible  <bruno@clisp.org>
29826
29827         mbslen: Avoid collision with system function.
29828         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29829         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29830         * m4/mbslen.m4: New file.
29831         * modules/mbslen (Files): Add it.
29832         (configure.ac): Invoke gl_MBSLEN.
29833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29834         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29835         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29836         via Ian Beckwith <ianb@erislabs.net>.
29837
29838 2010-01-07  Bruno Haible  <bruno@clisp.org>
29839
29840         dirent: Document the last fix.
29841         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29842
29843 2010-01-07  Bruno Haible  <bruno@clisp.org>
29844
29845         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29846         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29847         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29848         va_list are defined.
29849         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29850         Reported by Eric Blake.
29851
29852 2010-01-07  Bruno Haible  <bruno@clisp.org>
29853
29854         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29855         * modules/xlist (Depends-on): Add 'list',
29856         * modules/xoset (Depends-on): Add 'oset'.
29857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29858
29859 2010-01-07  Bruno Haible  <bruno@clisp.org>
29860
29861         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29862         * doc/posix-functions/strncasecmp.texi: Likewise.
29863
29864 2010-01-07  Bruno Haible  <bruno@clisp.org>
29865
29866         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29867
29868 2010-01-07  John W. Eaton  <jwe@octave.org>
29869
29870         wctype: allow C++ use
29871         * lib/wctype.in.h: Add extern "C" block for C++.
29872
29873 2010-01-06  Eric Blake  <ebb9@byu.net>
29874
29875         maint.mk: detect incorrect GFDL usage
29876         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29877
29878 2010-01-06  Jim Meyering  <meyering@redhat.com>
29879         and Eric Blake  <ebb9@byu.net>
29880
29881         maint.mk: ignore multi-line copyright in NEWS
29882         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29883
29884 2010-01-06  Eric Blake  <ebb9@byu.net>
29885
29886         select: add missing dependency
29887         * modules/select-tests (Depends-on): Move sockets dependency...
29888         * modules/select (Depends-on): ...here.
29889         Reported by Ian Beckwith.
29890
29891         doc: regenerate INSTALL
29892         * doc/INSTALL: Reflect recent autoconf update.
29893         * doc/INSTALL.ISO: Likewise.
29894         * doc/INSTALL.UTF-8: Likewise.
29895
29896         pread: fix compilation on glibc
29897         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29898         Reported by Ralf Wildenhues.
29899
29900         dirent: fix test failure
29901         * lib/dirent.in.h (includes): Guarantee ino_t.
29902         Reported by Ralf Wildenhues.
29903
29904 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29905
29906         linkat, renameat: avoid bad free
29907         * lib/at-func2.c (at_func2): Fix typo.
29908         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29909
29910 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29911
29912         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29913         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29914         to avoid failure of symlink test later.
29915
29916 2010-01-06  Eric Blake  <ebb9@byu.net>
29917
29918         stdio, unistd: guarantee ssize_t
29919         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29920         2008 are exposed when needed.
29921         * lib/stdio.in.h (includes): Likewise.
29922         Reported by Ralf Wildenhues.
29923
29924 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29925
29926         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29927         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29928         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29929
29930 2010-01-06  Jim Meyering  <meyering@redhat.com>
29931
29932         readtokens: this module *does* require xalloc.h
29933         It uses only functions that were omitted by the old syntax-check rule.
29934         * lib/readtokens.c: Include "xalloc.h" once again.
29935         * modules/readtokens (Depends-on): Add xalloc.
29936         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29937
29938 2010-01-05  Eric Blake  <ebb9@byu.net>
29939
29940         maint: support 'make announcement' from a VPATH build
29941         * top/maint.mk (announcement): Look for correct NEWS file.
29942
29943 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29944
29945         utimens (fdutimens): ignore a negative FD, per contract
29946         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29947         when we have a valid file descriptor.  Otherwise, using a brand
29948         new glibc (with just-patched futimens that now fails with EBADF)
29949         would cause this function to fail with ENOSYS.
29950         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29951         See also http://bugzilla.redhat.com/552320.
29952
29953 2010-01-05  Eric Blake  <ebb9@byu.net>
29954
29955         strcase: document what it provides
29956         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29957         gnulib module.
29958         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29959         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29960
29961 2010-01-05  Jim Meyering  <meyering@redhat.com>
29962
29963         maint: remove useless inclusions of "xalloc.h"
29964         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29965         * lib/readtokens.c: Likewise.
29966         * lib/same.c: Likewise.
29967         * modules/getloadavg (Depends-on): Remove xalloc.
29968         * modules/readtokens: Likewise.
29969         * modules/same: Likewise.
29970
29971         maint.mk: include 4 more function names in alloca.h-checking regexp
29972         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29973         regexp.  Before, we would give a false-positive (saying alloca.h
29974         is included unnecessarily) when the only uses involved omitted symbols.
29975
29976         xalloc.h: use consistent formatting
29977         * lib/xalloc.h: Move declarations to start in the first column.
29978
29979 2010-01-05  Eric Blake  <ebb9@byu.net>
29980
29981         mkdir: avoid xalloc
29982         * lib/mkdir.c (includes): Drop unused header.
29983         Reported by John W. Eaton.
29984
29985 2010-01-04  Jim Meyering  <meyering@redhat.com>
29986
29987         nl_langinfo: avoid configure-time syntax error
29988         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29989         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29990         the empty string.  Don't let that provoke a shell syntax error.
29991
29992         regcomp, regexec, fnmatch: avoid array bounds read error
29993         * lib/regcomp.c (build_equiv_class): From glibc:
29994         Use only the low 24 bits of a findidx return value as an index
29995         into the weights array.  Patch by Ulrich Drepper:
29996         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29997         * lib/regexec.c (check_node_accept_bytes): Likewise.
29998         * lib/fnmatch_loop.c (FCT): Likewise.
29999
30000         regcomp: skip collseq lookup when there are no rules
30001         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30002         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30003
30004         regcomp: recognize ill-formed { } expressions
30005         * lib/regcomp.c (parse_dup_op): From glibc:
30006         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30007
30008         regcomp: fix typo in comment
30009         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30010         s/satisfy/satisfies/.
30011
30012         regcomp: sync from glibc: remove dead store
30013         * lib/regcomp.c (duplicate_node_closure): Remove useless
30014         search_duplicated_node call and dead store.
30015
30016         regcomp: sync from glibc; always use nl_langinfo
30017         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30018         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30019         * modules/regex (Depends-on): Add nl_langinfo.
30020
30021 2010-01-04  Eric Blake  <ebb9@byu.net>
30022
30023         fdopendir: fix configure test
30024         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30025
30026 2010-01-01  Bruno Haible  <bruno@clisp.org>
30027
30028         wchar: Remove unused configure check.
30029         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30030
30031 2010-01-01  Eric Blake  <ebb9@byu.net>
30032
30033         headers: make check of system header explicit
30034         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30035         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30036         ourselves.
30037         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30038         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30039         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30040         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30041         internals.
30042         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30043         missing.
30044         Suggested by Bruno Haible.
30045
30046 2010-01-01  Jim Meyering  <meyering@redhat.com>
30047
30048         ChangeLog: tweak to eliminate unnecessary copyright line
30049         * ChangeLog: Remove a copyright line that was mistakenly updated
30050         by today's update-copyright run.  Reported by Eric Blake.
30051
30052         test-update-copyright: don't let envvar setting cause test failure
30053         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30054
30055 2010-01-01  Bruno Haible  <bruno@clisp.org>
30056
30057         localename: Avoid gcc warning.
30058         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30059         function if it is not used.
30060
30061 2010-01-01  Jim Meyering  <meyering@redhat.com>
30062
30063         update nearly all FSF copyright year lists to include 2010
30064         Use the same procedure as for 2009, outlined in
30065         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30066
30067         version-etc: set COPYRIGHT_YEAR to 2010
30068         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30069
30070 2009-12-31  Eric Blake  <ebb9@byu.net>
30071
30072         doc: correct availability of cygwin 1.5.x getopt
30073         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30074         variables.
30075         * doc/posix-functions/opterr.texi (opterr): Likewise.
30076         * doc/posix-functions/optind.texi (optind): Likewise.
30077         * doc/posix-functions/optopt.texi (optopt): Likewise.
30078         * doc/posix-functions/tzname.texi (tzname): Likewise.
30079
30080         openat: update maintainer
30081         * modules/openat (Maintainer): Add myself.
30082
30083         utimens: avoid shadowing warning
30084         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30085         buffers into one, to avoid shadowing, as well as avoiding a
30086         redundant stat.
30087         Reported by Jim Meyering.
30088
30089         test-dup2: avoid compiler warning
30090         * tests/test-dup2.c (is_inheritable): Only define if used.
30091
30092 2010-01-01  Bruno Haible  <bruno@clisp.org>
30093
30094         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30095         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30096         defined, use wctomb instead of wcrtomb.
30097
30098 2010-01-01  Bruno Haible  <bruno@clisp.org>
30099
30100         iconv: Reject native Solaris iconv.
30101         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30102         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30103
30104 2009-12-31  Bruno Haible  <bruno@clisp.org>
30105
30106         * tests/test-signal.c (main): Remove test of 'SIG'.
30107
30108 2009-12-31  Bruno Haible  <bruno@clisp.org>
30109
30110         spawn: Fix incomplete fix.
30111         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30112         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30113         warnings for GNULIB_POSIXCHECK again.
30114         Reported by Eric Blake.
30115
30116 2009-12-31  Bruno Haible  <bruno@clisp.org>
30117
30118         Avoid namespace pollution on glibc systems.
30119         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30120         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30121         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30122         glibc systems.
30123
30124 2009-12-31  Bruno Haible  <bruno@clisp.org>
30125
30126         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30127         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30128         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30129         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30130         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30131         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30132         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30133
30134 2009-12-31  Bruno Haible  <bruno@clisp.org>
30135
30136         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30137         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30138         afterwards.
30139
30140 2009-12-31  Bruno Haible  <bruno@clisp.org>
30141
30142         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30143         SYS_UTSNAME_H.
30144
30145 2009-12-31  Bruno Haible  <bruno@clisp.org>
30146
30147         spawn: Fix misapplied patch.
30148         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30149         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30150         warnings for GNULIB_POSIXCHECK.
30151
30152 2009-12-31  Bruno Haible  <bruno@clisp.org>
30153
30154         times: Update after sys_times changed.
30155         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30156         * modules/times (Files): Add it.
30157         (configure.ac): Invoke gl_FUNC_TIMES.
30158
30159 2009-12-31  Bruno Haible  <bruno@clisp.org>
30160
30161         Use AC_C_INLINE where necessary.
30162         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30163         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30164         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30165         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30166         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30167         * m4/mbiter.m4 (gl_MBITER): Likewise.
30168         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30169         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30170         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30171         * modules/u64 (configure.ac): Likewise.
30172
30173 2009-12-31  Bruno Haible  <bruno@clisp.org>
30174
30175         Use AC_C_INLINE instead of module 'inline' where possible.
30176         * modules/inline (Description): Clarify purpose.
30177         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30178         * modules/count-one-bits (Depends-on): Remove inline.
30179         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30180         * modules/openat (Depends-on): Remove inline.
30181         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30182         instead of depending on module 'inline'.
30183         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30184         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30185         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30186         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30187         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30188         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30189         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30190         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30191         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30192         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30193         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30194         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30195         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30196         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30197         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30198         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30199         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30200         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30201         Likewise.
30202         * modules/unictype/property-ascii-hex-digit (Depends-on,
30203         configure.ac): Likewise.
30204         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30205         configure.ac): Likewise.
30206         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30207         configure.ac): Likewise.
30208         * modules/unictype/property-bidi-block-separator (Depends-on,
30209         configure.ac): Likewise.
30210         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30211         configure.ac): Likewise.
30212         * modules/unictype/property-bidi-common-separator (Depends-on,
30213         configure.ac): Likewise.
30214         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30215         Likewise.
30216         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30217         configure.ac): Likewise.
30218         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30219         configure.ac): Likewise.
30220         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30221         configure.ac): Likewise.
30222         * modules/unictype/property-bidi-european-digit (Depends-on,
30223         configure.ac): Likewise.
30224         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30225         configure.ac): Likewise.
30226         * modules/unictype/property-bidi-left-to-right (Depends-on,
30227         configure.ac): Likewise.
30228         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30229         configure.ac): Likewise.
30230         * modules/unictype/property-bidi-other-neutral (Depends-on,
30231         configure.ac): Likewise.
30232         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30233         Likewise.
30234         * modules/unictype/property-bidi-segment-separator (Depends-on,
30235         configure.ac): Likewise.
30236         * modules/unictype/property-bidi-whitespace (Depends-on,
30237         configure.ac): Likewise.
30238         * modules/unictype/property-combining (Depends-on, configure.ac):
30239         Likewise.
30240         * modules/unictype/property-composite (Depends-on, configure.ac):
30241         Likewise.
30242         * modules/unictype/property-currency-symbol (Depends-on,
30243         configure.ac): Likewise.
30244         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30245         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30246         Likewise.
30247         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30248         configure.ac): Likewise.
30249         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30250         Likewise.
30251         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30252         Likewise.
30253         * modules/unictype/property-extender (Depends-on, configure.ac):
30254         Likewise.
30255         * modules/unictype/property-format-control (Depends-on, configure.ac):
30256         Likewise.
30257         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30258         Likewise.
30259         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30260         Likewise.
30261         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30262         Likewise.
30263         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30264         Likewise.
30265         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30266         Likewise.
30267         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30268         Likewise.
30269         * modules/unictype/property-id-start (Depends-on, configure.ac):
30270         Likewise.
30271         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30272         Likewise.
30273         * modules/unictype/property-ids-binary-operator (Depends-on,
30274         configure.ac): Likewise.
30275         * modules/unictype/property-ids-trinary-operator (Depends-on,
30276         configure.ac): Likewise.
30277         * modules/unictype/property-ignorable-control (Depends-on,
30278         configure.ac): Likewise.
30279         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30280         Likewise.
30281         * modules/unictype/property-join-control (Depends-on, configure.ac):
30282         Likewise.
30283         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30284         Likewise.
30285         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30286         Likewise.
30287         * modules/unictype/property-logical-order-exception (Depends-on,
30288         configure.ac): Likewise.
30289         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30290         Likewise.
30291         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30292         * modules/unictype/property-non-break (Depends-on, configure.ac):
30293         Likewise.
30294         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30295         Likewise.
30296         * modules/unictype/property-numeric (Depends-on, configure.ac):
30297         Likewise.
30298         * modules/unictype/property-other-alphabetic (Depends-on,
30299         configure.ac): Likewise.
30300         * modules/unictype/property-other-default-ignorable-code-point
30301         (Depends-on, configure.ac): Likewise.
30302         * modules/unictype/property-other-grapheme-extend (Depends-on,
30303         configure.ac): Likewise.
30304         * modules/unictype/property-other-id-continue (Depends-on,
30305         configure.ac): Likewise.
30306         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30307         Likewise.
30308         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30309         Likewise.
30310         * modules/unictype/property-other-math (Depends-on, configure.ac):
30311         Likewise.
30312         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30313         Likewise.
30314         * modules/unictype/property-paired-punctuation (Depends-on,
30315         configure.ac): Likewise.
30316         * modules/unictype/property-paragraph-separator (Depends-on,
30317         configure.ac): Likewise.
30318         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30319         Likewise.
30320         * modules/unictype/property-pattern-white-space (Depends-on,
30321         configure.ac): Likewise.
30322         * modules/unictype/property-private-use (Depends-on, configure.ac):
30323         Likewise.
30324         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30325         Likewise.
30326         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30327         Likewise.
30328         * modules/unictype/property-radical (Depends-on, configure.ac):
30329         Likewise.
30330         * modules/unictype/property-sentence-terminal (Depends-on,
30331         configure.ac): Likewise.
30332         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30333         Likewise.
30334         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30335         * modules/unictype/property-terminal-punctuation (Depends-on,
30336         configure.ac): Likewise.
30337         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30338         Likewise.
30339         * modules/unictype/property-unassigned-code-value (Depends-on,
30340         configure.ac): Likewise.
30341         * modules/unictype/property-unified-ideograph (Depends-on,
30342         configure.ac): Likewise.
30343         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30344         Likewise.
30345         * modules/unictype/property-variation-selector (Depends-on,
30346         configure.ac): Likewise.
30347         * modules/unictype/property-white-space (Depends-on, configure.ac):
30348         Likewise.
30349         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30350         Likewise.
30351         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30352         Likewise.
30353         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30354         Likewise.
30355         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30356         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30357         Likewise.
30358
30359 2009-12-31  Bruno Haible  <bruno@clisp.org>
30360
30361         Remove unnecessary AC_C_INLINE invocation.
30362         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30363         since 2009-08-21.
30364
30365 2009-12-31  Jim Meyering  <meyering@redhat.com>
30366
30367         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30368         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30369         With this change, we can all remove the gpg_key_ID = ... definition
30370         from our respective cfg.mk files.
30371
30372         maint.mk: create announcement template in ~/, not in /tmp
30373         * top/maint.mk (emit_upload_commands): Adjust.
30374         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30375         Remove temporary file, .ci-msg.
30376
30377 2009-12-31  Eric Blake  <ebb9@byu.net>
30378
30379         link-warning: always build headers with link warnings
30380         * modules/arpa_inet (Makefile.am): Always build replacement
30381         header.
30382         * modules/ctype (Makefile.am): Likewise.
30383         * modules/dirent (Makefile.am): Likewise.
30384         * modules/inttypes (Makefile.am): Likewise.
30385         * modules/langinfo (Makefile.am): Likewise.
30386         * modules/locale (Makefile.am): Likewise.
30387         * modules/spawn (Makefile.am): Likewise.
30388         * modules/sys_file (Makefile.am): Likewise.
30389         * modules/sys_ioctl (Makefile.am): Likewise.
30390         * modules/sys_select (Makefile.am): Likewise.
30391         * modules/sys_socket (Makefile.am): Likewise.
30392         * modules/sys_times (Makefile.am): Likewise.
30393         * modules/sys_utsname (Makefile.am): Likewise.
30394         * modules/sys_wait (Makefile.am): Likewise.
30395         * modules/wchar (Makefile.am): Likewise.
30396         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30397         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30398         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30399         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30400         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30401         Likewise.
30402         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30403         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30404         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30405         Likewise.
30406         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30407         Likewise.
30408         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30409         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30410         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30411         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30412         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30413         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30414         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30415         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30416         (gl_WCHAR_H_DEFAULTS): Likewise.
30417
30418 2009-12-31  Eric Blake  <ebb9@byu.net>
30419
30420         signal, spawn: use link warnings
30421         * lib/signal.in.h (sigset_t): Make unconditional.
30422         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30423         (sigpending, sigprocmask, sigaction): Add link warnings.
30424         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30425         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30426         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30427         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30428         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30429         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30430         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30431         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30432         (posix_spawn_file_actions_destroy)
30433         (posix_spawn_file_actions_addopen)
30434         (posix_spawn_file_actions_addclose)
30435         (posix_spawn_file_actions_adddup2): Likewise.
30436         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30437         * tests/test-signal.c (main): Enhance test.
30438
30439         spawn: improve wrapper support
30440         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30441         (gl_SPAWN_H_DEFAULTS): New defaults.
30442         * modules/spawn (Makefile.am): Substitute them.
30443         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30444         Only declare if missing or broken.
30445
30446         sys_times, sys_utsname: use include_next
30447         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30448         header.
30449         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30450         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30451         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30452         * modules/sys_times (Depends-on): Add include_next.
30453         (Makefile.am): Substitute additional values.
30454         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30455         * lib/sys_times.in.h (includes): Include native header, if
30456         available.
30457         * lib/sys_utsname.in.h (includes): Likewise.
30458         * tests/test-sys_times.c (main): Enhance test.
30459
30460         fdutimensat: revert prior patch
30461         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30462         utimens.h.
30463         Reported by Bruno Haible.
30464
30465 2009-12-30  Eric Blake  <ebb9@byu.net>
30466
30467         sys_wait: drop link-warning dependency
30468         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30469         link-warning efforts.
30470         * lib/sys_wait.in.h: Likewise.
30471
30472         fdutimensat: remove bogus dependency
30473         * modules/fdutimensat (Depends-on): Drop inline.
30474
30475         unistd: fix typo
30476         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30477
30478 2009-12-30  Bruno Haible  <bruno@clisp.org>
30479
30480         Fix compilation error with Solaris cc.
30481         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30482         * lib/unicase/u16-is-invariant.c: Likewise.
30483         * lib/unicase/u32-is-invariant.c: Likewise.
30484         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30485
30486 2009-12-30  Bruno Haible  <bruno@clisp.org>
30487
30488         Fix test crash.
30489         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30490         locales.
30491         Reported by Simon Josefsson <simon@josefsson.org>.
30492
30493 2009-12-30  Bruno Haible  <bruno@clisp.org>
30494
30495         Fix compilation error on most platforms.
30496         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30497         Reported by Simon Josefsson <simon@josefsson.org>
30498         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30499
30500 2009-12-30  Eric Blake  <ebb9@byu.net>
30501
30502         futimens, utimensat: work around ntfs-3g bug
30503         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30504         a ctime bug is present, and expand workaround to cover ntfs-3g.
30505         * lib/utimens.c (fdutimens, lutimens): Likewise.
30506         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30507         (validate_timespec): Adjust return value.
30508         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30509         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30510         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30511
30512 2009-12-29  Eric Blake  <ebb9@byu.net>
30513
30514         link-warning: make usage consistent
30515         * modules/ctype (Depends-on): Add link-warning.
30516         (Makefile.am): Update rules accordingly.
30517         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30518         * modules/locale (Depends-on, Makefile.am): Likewise.
30519         * modules/sys_file (Makefile.am): Likewise.
30520         * modules/getopt-posix (Makefile.am): Delete unused link warning
30521         efforts.
30522         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30523         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30524         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30525         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30526
30527         stdio: remove unused variables
30528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30529         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30530         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30531
30532         tests: test more substitute headers
30533         * modules/ctype-tests: New file.
30534         * modules/dirent-tests: Likewise.
30535         * modules/spawn-tests: Likewise.
30536         * modules/sys_file-tests: Likewise.
30537         * modules/sys_ioctl-tests: Likewise.
30538         * modules/sys_wait-tests: Likewise.
30539         * tests/test-ctype.c: Likewise.
30540         * tests/test-dirent.c: Likewise.
30541         * tests/test-spawn.c: Likewise.
30542         * tests/test-sys_file.c: Likewise.
30543         * tests/test-sys_ioctl.c: Likewise.
30544         * tests/test-sys_wait.c: Likewise.
30545         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30546         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30547         whether or not flock is in use.
30548
30549         tests: remove License section from module
30550         * modules/arpa_inet-tests: Remove unneeded section.
30551         * modules/byteswap-tests: Likewise.
30552         * modules/ceilf-tests: Likewise.
30553         * modules/ceill-tests: Likewise.
30554         * modules/crypto/des-tests: Likewise.
30555         * modules/crypto/gc-arcfour-tests: Likewise.
30556         * modules/crypto/gc-arctwo-tests: Likewise.
30557         * modules/crypto/gc-des-tests: Likewise.
30558         * modules/crypto/gc-hmac-md5-tests: Likewise.
30559         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30560         * modules/crypto/gc-md2-tests: Likewise.
30561         * modules/crypto/gc-md4-tests: Likewise.
30562         * modules/crypto/gc-md5-tests: Likewise.
30563         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30564         * modules/crypto/gc-rijndael-tests: Likewise.
30565         * modules/crypto/gc-sha1-tests: Likewise.
30566         * modules/crypto/gc-tests: Likewise.
30567         * modules/crypto/md2-tests: Likewise.
30568         * modules/crypto/md4-tests: Likewise.
30569         * modules/fcntl-h-tests: Likewise.
30570         * modules/floorf-tests: Likewise.
30571         * modules/floorl-tests: Likewise.
30572         * modules/frexp-nolibm-tests: Likewise.
30573         * modules/frexp-tests: Likewise.
30574         * modules/frexpl-nolibm-tests: Likewise.
30575         * modules/frexpl-tests: Likewise.
30576         * modules/getaddrinfo-tests: Likewise.
30577         * modules/inttypes-tests: Likewise.
30578         * modules/isfinite-tests: Likewise.
30579         * modules/isinf-tests: Likewise.
30580         * modules/ldexpl-tests: Likewise.
30581         * modules/locale-tests: Likewise.
30582         * modules/math-tests: Likewise.
30583         * modules/netdb-tests: Likewise.
30584         * modules/netinet_in-tests: Likewise.
30585         * modules/printf-frexp-tests: Likewise.
30586         * modules/printf-frexpl-tests: Likewise.
30587         * modules/priv-set-tests: Likewise.
30588         * modules/random_r-tests: Likewise.
30589         * modules/round-tests: Likewise.
30590         * modules/roundf-tests: Likewise.
30591         * modules/roundl-tests: Likewise.
30592         * modules/search-tests: Likewise.
30593         * modules/select-tests: Likewise.
30594         * modules/signal-tests: Likewise.
30595         * modules/stdbool-tests: Likewise.
30596         * modules/stddef-tests: Likewise.
30597         * modules/stdint-tests: Likewise.
30598         * modules/stdio-tests: Likewise.
30599         * modules/stdlib-tests: Likewise.
30600         * modules/string-tests: Likewise.
30601         * modules/strings-tests: Likewise.
30602         * modules/sys_select-tests: Likewise.
30603         * modules/sys_socket-tests: Likewise.
30604         * modules/sys_stat-tests: Likewise.
30605         * modules/sys_time-tests: Likewise.
30606         * modules/sys_utsname-tests: Likewise.
30607         * modules/sysexits-tests: Likewise.
30608         * modules/time-tests: Likewise.
30609         * modules/trunc-tests: Likewise.
30610         * modules/truncf-tests: Likewise.
30611         * modules/truncl-tests: Likewise.
30612         * modules/tsearch-tests: Likewise.
30613         * modules/unistd-tests: Likewise.
30614         * modules/wchar-tests: Likewise.
30615         * modules/wctype-tests: Likewise.
30616
30617         tests: fix license on several tests
30618         * tests/test-des.c: Update to GPLv3+.
30619         * tests/test-flock.c: Likewise.
30620         * tests/test-fsync.c: Likewise.
30621         * tests/test-futimens.h: Likewise.
30622         * tests/test-gc-arcfour.c: Likewise.
30623         * tests/test-gc-arctwo.c: Likewise.
30624         * tests/test-gc-des.c: Likewise.
30625         * tests/test-gc-hmac-md5.c: Likewise.
30626         * tests/test-gc-hmac-sha1.c: Likewise.
30627         * tests/test-gc-md2.c: Likewise.
30628         * tests/test-gc-md4.c: Likewise.
30629         * tests/test-gc-md5.c: Likewise.
30630         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30631         * tests/test-gc-rijndael.c: Likewise.
30632         * tests/test-gc-sha1.c: Likewise.
30633         * tests/test-gc.c: Likewise.
30634         * tests/test-getcwd.c: Likewise.
30635         * tests/test-link.c: Likewise.
30636         * tests/test-link.h: Likewise.
30637         * tests/test-lutimens.h: Likewise.
30638         * tests/test-md2.c: Likewise.
30639         * tests/test-md4.c: Likewise.
30640         * tests/test-mkdir.h: Likewise.
30641         * tests/test-rename.c: Likewise.
30642         * tests/test-rename.h: Likewise.
30643         * tests/test-safe-alloc.c: Likewise.
30644         * tests/test-utimens-common.h: Likewise.
30645         * tests/test-utimens.h: Likewise.
30646
30647         maint: sync license texts
30648         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30649         * doc/gpl-3.0.texi: Revert copyright year update.
30650         * doc/lgpl-3.0.texi: Likewise.
30651
30652 2009-12-29  Jim Meyering  <meyering@redhat.com>
30653
30654         update nearly all FSF copyright year lists to include 2009
30655         The files named by the following are exempted:
30656             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30657               test -f "$dst" && { echo "$dst"; continue; }
30658               test -d "$dst" || continue
30659               echo "$dst"/$(basename "$src")
30660             done > exempt
30661             git ls-files tests/unictype >> exempt
30662         In the remaining files, convert to all-interval notation if
30663         - there is already at least one year interval like 2000-2003
30664         - the file is maintained by me
30665         - the file is in lib/uni*/, where that style already prevails
30666         Otherwise, use update-copyright's default.
30667
30668 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30669         and Eric Blake  <ebb9@byu.net>
30670
30671         tests: don't require debug system() to pass
30672         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30673         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30674         * tests/test-unlink.h (test_unlink_func): Likewise.
30675         * tests/test-fstatat.c (main): ...into callers.
30676         * tests/test-lstat.c (main): Likewise.
30677         * tests/test-rmdir.c (main): Likewise.
30678         * tests/test-unlink.c (main): Likewise.
30679         * tests/test-unlinkat.c (main): Likewise.
30680         * tests/test-areadlink-with-size.c (main): Don't require a
30681         debug-only system call to pass, aiding cross-testing to mingw.
30682         * tests/test-areadlink.c (main): Likewise.
30683         * tests/test-areadlinkat-with-size.c (main): Likewise.
30684         * tests/test-areadlinkat.c (main): Likewise.
30685         * tests/test-canonicalize-lgpl.c (main): Likewise.
30686         * tests/test-canonicalize.c (main): Likewise.
30687         * tests/test-chown.c (main): Likewise.
30688         * tests/test-fchownat.c (main): Likewise.
30689         * tests/test-lchown.c (main): Likewise.
30690         * tests/test-fdutimensat.c (main): Likewise.
30691         * tests/test-futimens.c (main): Likewise.
30692         * tests/test-link.c (main): Likewise.
30693         * tests/test-linkat.c (main): Likewise.
30694         * tests/test-mkdir.c (main): Likewise.
30695         * tests/test-mkdirat.c (main): Likewise.
30696         * tests/test-mkfifo.c (main): Likewise.
30697         * tests/test-mkfifoat.c (main): Likewise.
30698         * tests/test-mknod.c (main): Likewise.
30699         * tests/test-readlink.c (main): Likewise.
30700         * tests/test-remove.c (main): Likewise.
30701         * tests/test-rename.c (main): Likewise.
30702         * tests/test-renameat.c (main): Likewise.
30703         * tests/test-symlink.c (main): Likewise.
30704         * tests/test-symlinkat.c (main): Likewise.
30705         * tests/test-utimens.c (main): Likewise.
30706         * tests/test-utimensat.c (main): Likewise.
30707
30708 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30709
30710         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30711         on $(UNUSED_PARAMETER_H) to avoid build failure.
30712
30713 2009-12-28  Jim Meyering  <meyering@redhat.com>
30714
30715         update-copyright: you may specify a max. line length other than 72
30716         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30717
30718         maint: use consistent FSF copyright line syntax
30719         * lib/posixtm.c: Add missing comma in FSF copyright line.
30720         * lib/posixtm.h: Likewise.
30721         * lib/getugroups.c: Add missing ", Inc.".
30722
30723         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30724         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30725         FSF copyright line.  Remove trailing blanks.
30726
30727 2009-12-28  Eric Blake  <ebb9@byu.net>
30728
30729         test-dup2: reduce dependencies
30730         * modules/cloexec (Configure.ac): Set witness.
30731         * modules/dup2-tests (Depends-on): Drop cloexec.
30732         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30733         not present.
30734         Suggested by Bruno Haible.
30735
30736 2009-12-26  Bruno Haible  <bruno@clisp.org>
30737
30738         Remove an unneeded dependency.
30739         * modules/fseterr (Depends-on): Remove dup2.
30740
30741 2009-12-26  Eric Blake  <ebb9@byu.net>
30742
30743         tests: use macros.h in more places
30744         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30745         (ASSERT_STREAM): Provide default of stderr.
30746         * tests/test-dirent-safer.c: Include macros.h, using alternate
30747         stream for assertions.
30748         * tests/test-dup-safer.c: Likewise.
30749         * tests/test-freopen-safer.c: Likewise.
30750         * tests/test-getopt.c: Likewise.
30751         * tests/test-openat-safer.c: Likewise.
30752         * tests/test-pipe.c: Likewise.
30753         * tests/test-popen-safer.c: Likewise.
30754         * modules/dirent-safer-tests (Files): Include macros.h.
30755         * modules/unistd-safer-tests (Files): Likewise.
30756         * modules/freopen-safer-tests (Files): Likewise.
30757         * modules/getopt-posix-tests (Files): Likewise.
30758         * modules/openat-safer-tests (Files): Likewise.
30759         * modules/pipe-tests (Files): Likewise.
30760
30761 2009-12-26  Bruno Haible  <bruno@clisp.org>
30762
30763         javacomp: Portability fix.
30764         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30765         that it also works on Solaris.
30766
30767 2009-12-26  Bruno Haible  <bruno@clisp.org>
30768
30769         localename: Fix storage allocation of gl_locale_name_thread's result.
30770         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30771         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30772         all platforms that have 'uselocale'.
30773         (gl_locale_name_thread_unsafe): New function, extracted from
30774         gl_locale_name_thread.
30775         (gl_locale_name_thread): Call struniq on all platforms that have
30776         'uselocale'.
30777         * tests/test-localename.c (test_locale_name_thread): Check that the
30778         resulting strings are permanently allocated.
30779         * modules/localename-tests (Depends-on): Add strdup.
30780
30781 2009-12-26  Bruno Haible  <bruno@clisp.org>
30782
30783         * tests/test-localename.c (categories): Fill in the strings.
30784
30785 2009-12-26  Jim Meyering  <meyering@redhat.com>
30786
30787         isdir: complete the removal of m4/isdir.m4
30788         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30789
30790         isdir: clean up, since at least grep still uses it
30791         * lib/isdir.c: Include "isdir.h".
30792         (S_ISDIR): Remove now-unneeded definition.
30793         * modules/isdir (Files): Add lib/isdir.h.
30794         * lib/isdir.h: New file, with declaration.
30795         * m4/isdir.m4: Remove file -- unneeded.
30796
30797 2009-12-25  Bruno Haible  <bruno@clisp.org>
30798
30799         selinux-h: Make generated .h files standalone.
30800         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30801         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30802         * lib/se-selinux.in.h: Likewise.
30803         * modules/selinux-h (Depends-on): Add unused-parameter.
30804         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30805         selinux/selinux.h and selinux/context.h.
30806         Suggested by Eric Blake.
30807
30808 2009-12-25  Bruno Haible  <bruno@clisp.org>
30809
30810         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30811         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30812         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30813         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30814         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30815
30816 2009-12-24  Bruno Haible  <bruno@clisp.org>
30817
30818         openat: Fix warning.
30819         * lib/openat-proc.c: Include <unistd.h>.
30820
30821 2009-12-24  Bruno Haible  <bruno@clisp.org>
30822
30823         New module 'unused-parameter'.
30824         * build-aux/unused-parameter.h: New file, extracted from earlier
30825         gnulib-common.m4.
30826         * modules/unused-parameter: New file.
30827         * lib/unistr.h: Include unused-parameter.h.
30828         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30829         _GL_UNUSED.
30830         * modules/unistr/base (Depends-on): Add unused-parameter.
30831
30832 2009-12-24  Bruno Haible  <bruno@clisp.org>
30833
30834         Add missing dependencies to 'extensions' module.
30835         * m4/extensions.m4: Add comment.
30836         * modules/accept4 (Depends-on): Add extensions.
30837         * modules/dup3 (Depends-on): Likewise.
30838         * modules/fcntl (Depends-on): Likewise.
30839         * modules/futimens (Depends-on): Likewise.
30840         * modules/mknod (Depends-on): Likewise.
30841         * modules/pipe2 (Depends-on): Likewise.
30842         * modules/stat-time (Depends-on): Likewise.
30843         * modules/strcasestr-simple (Depends-on): Likewise.
30844         * modules/strsignal (Depends-on): Likewise.
30845         * modules/utimensat (Depends-on): Likewise.
30846         * modules/localcharset (Depends-on): Likewise. Needed because of
30847         gl_FCNTL_O_FLAGS.
30848         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30849         AC_TYPE_MBSTATE_T.
30850         * modules/wcsnrtombs (Depends-on): Likewise.
30851         * modules/wcsrtombs (Depends-on): Likewise.
30852
30853 2009-12-24  Bruno Haible  <bruno@clisp.org>
30854
30855         binary-io: Avoid gcc warning due to SET_BINARY.
30856         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30857         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30858
30859 2009-12-24  Bruno Haible  <bruno@clisp.org>
30860
30861         Avoid future namespace pollution on glibc systems.
30862         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30863         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30864         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30865         glibc systems.
30866
30867 2009-12-24  Bruno Haible  <bruno@clisp.org>
30868
30869         Refactor common macros used in tests.
30870         * tests/macros.h: New file.
30871         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30872         and/or <stdlib.h>, if appropriate.
30873         (ASSERT, SIZEOF): Remove macros.
30874         * tests/test-areadlink-with-size.c: Likewise.
30875         * tests/test-areadlinkat.c: Likewise.
30876         * tests/test-areadlinkat-with-size.c: Likewise.
30877         * tests/test-argmatch.c: Likewise.
30878         * tests/test-argv-iter.c: Likewise.
30879         * tests/test-array-mergesort.c: Likewise.
30880         * tests/test-array_list.c: Likewise.
30881         * tests/test-array_oset.c: Likewise.
30882         * tests/test-avltree_list.c: Likewise.
30883         * tests/test-avltree_oset.c: Likewise.
30884         * tests/test-avltreehash_list.c: Likewise.
30885         * tests/test-base64.c: Likewise.
30886         * tests/test-binary-io.c: Likewise.
30887         * tests/test-bitrotate.c: Likewise.
30888         * tests/test-btowc.c: Likewise.
30889         * tests/test-byteswap.c: Likewise.
30890         * tests/test-c-ctype.c: Likewise.
30891         * tests/test-c-stack.c: Likewise.
30892         * tests/test-c-strcasecmp.c: Likewise.
30893         * tests/test-c-strcasestr.c: Likewise.
30894         * tests/test-c-strncasecmp.c: Likewise.
30895         * tests/test-c-strstr.c: Likewise.
30896         * tests/test-canonicalize-lgpl.c: Likewise.
30897         * tests/test-canonicalize.c: Likewise.
30898         * tests/test-carray_list.c: Likewise.
30899         * tests/test-ceilf1.c: Likewise.
30900         * tests/test-ceilf2.c: Likewise.
30901         * tests/test-ceill.c: Likewise.
30902         * tests/test-chown.c: Likewise.
30903         * tests/test-cloexec.c: Likewise.
30904         * tests/test-copy-acl.c: Likewise.
30905         * tests/test-copy-file.c: Likewise.
30906         * tests/test-count-one-bits.c: Likewise.
30907         * tests/test-dprintf-posix.c: Likewise.
30908         * tests/test-dup2.c: Likewise.
30909         * tests/test-dup3.c: Likewise.
30910         * tests/test-duplocale.c: Likewise.
30911         * tests/test-fbufmode.c: Likewise.
30912         * tests/test-fchdir.c: Likewise.
30913         * tests/test-fchownat.c: Likewise.
30914         * tests/test-fcntl-safer.c: Likewise.
30915         * tests/test-fcntl.c: Likewise.
30916         * tests/test-fdopendir.c: Likewise.
30917         * tests/test-fdutimensat.c: Likewise.
30918         * tests/test-fflush2.c: Likewise.
30919         * tests/test-file-has-acl.c: Likewise.
30920         * tests/test-filevercmp.c: Likewise.
30921         * tests/test-flock.c: Likewise.
30922         * tests/test-floorf1.c: Likewise.
30923         * tests/test-floorf2.c: Likewise.
30924         * tests/test-floorl.c: Likewise.
30925         * tests/test-fnmatch.c: Likewise.
30926         * tests/test-fopen.h: Likewise.
30927         * tests/test-fpending.c: Likewise.
30928         * tests/test-fprintf-posix.c: Likewise.
30929         * tests/test-fpurge.c: Likewise.
30930         * tests/test-freadable.c: Likewise.
30931         * tests/test-freadahead.c: Likewise.
30932         * tests/test-freading.c: Likewise.
30933         * tests/test-freadptr.c: Likewise.
30934         * tests/test-freadptr2.c: Likewise.
30935         * tests/test-freadseek.c: Likewise.
30936         * tests/test-freopen.c: Likewise.
30937         * tests/test-frexp.c: Likewise.
30938         * tests/test-frexpl.c: Likewise.
30939         * tests/test-fseek.c: Likewise.
30940         * tests/test-fseeko.c: Likewise.
30941         * tests/test-fstatat.c: Likewise.
30942         * tests/test-fstrcmp.c: Likewise.
30943         * tests/test-fsync.c: Likewise.
30944         * tests/test-ftell.c: Likewise.
30945         * tests/test-ftello.c: Likewise.
30946         * tests/test-func.c: Likewise.
30947         * tests/test-futimens.c: Likewise.
30948         * tests/test-fwritable.c: Likewise.
30949         * tests/test-fwriting.c: Likewise.
30950         * tests/test-getcwd.c: Likewise.
30951         * tests/test-getdate.c: Likewise.
30952         * tests/test-getdelim.c: Likewise.
30953         * tests/test-getdtablesize.c: Likewise.
30954         * tests/test-getgroups.c: Likewise.
30955         * tests/test-getline.c: Likewise.
30956         * tests/test-getndelim2.c: Likewise.
30957         * tests/test-glob.c: Likewise.
30958         * tests/test-hash.c: Likewise.
30959         * tests/test-i-ring.c: Likewise.
30960         * tests/test-iconv-utf.c: Likewise.
30961         * tests/test-iconv.c: Likewise.
30962         * tests/test-idpriv-drop.c: Likewise.
30963         * tests/test-idpriv-droptemp.c: Likewise.
30964         * tests/test-inet_ntop.c: Likewise.
30965         * tests/test-inet_pton.c: Likewise.
30966         * tests/test-isblank.c: Likewise.
30967         * tests/test-isfinite.c: Likewise.
30968         * tests/test-isinf.c: Likewise.
30969         * tests/test-isnan.c: Likewise.
30970         * tests/test-isnand.h: Likewise.
30971         * tests/test-isnanf.h: Likewise.
30972         * tests/test-isnanl.h: Likewise.
30973         * tests/test-lchown.c: Likewise.
30974         * tests/test-ldexpl.c: Likewise.
30975         * tests/test-link.c: Likewise.
30976         * tests/test-linkat.c: Likewise.
30977         * tests/test-linked_list.c: Likewise.
30978         * tests/test-linkedhash_list.c: Likewise.
30979         * tests/test-localename.c: Likewise.
30980         * tests/test-lseek.c: Likewise.
30981         * tests/test-lstat.c: Likewise.
30982         * tests/test-mbmemcasecmp.c: Likewise.
30983         * tests/test-mbmemcasecoll.c: Likewise.
30984         * tests/test-mbrtowc.c: Likewise.
30985         * tests/test-mbscasecmp.c: Likewise.
30986         * tests/test-mbscasestr1.c: Likewise.
30987         * tests/test-mbscasestr2.c: Likewise.
30988         * tests/test-mbscasestr3.c: Likewise.
30989         * tests/test-mbscasestr4.c: Likewise.
30990         * tests/test-mbschr.c: Likewise.
30991         * tests/test-mbscspn.c: Likewise.
30992         * tests/test-mbsinit.c: Likewise.
30993         * tests/test-mbsncasecmp.c: Likewise.
30994         * tests/test-mbsnrtowcs.c: Likewise.
30995         * tests/test-mbspbrk.c: Likewise.
30996         * tests/test-mbspcasecmp.c: Likewise.
30997         * tests/test-mbsrchr.c: Likewise.
30998         * tests/test-mbsrtowcs.c: Likewise.
30999         * tests/test-mbsspn.c: Likewise.
31000         * tests/test-mbsstr1.c: Likewise.
31001         * tests/test-mbsstr2.c: Likewise.
31002         * tests/test-mbsstr3.c: Likewise.
31003         * tests/test-memchr.c: Likewise.
31004         * tests/test-memchr2.c: Likewise.
31005         * tests/test-memcmp.c: Likewise.
31006         * tests/test-memmem.c: Likewise.
31007         * tests/test-memrchr.c: Likewise.
31008         * tests/test-mkdir.c: Likewise.
31009         * tests/test-mkdirat.c: Likewise.
31010         * tests/test-mkfifo.c: Likewise.
31011         * tests/test-mkfifoat.c: Likewise.
31012         * tests/test-mknod.c: Likewise.
31013         * tests/test-nanosleep.c: Likewise.
31014         * tests/test-nl_langinfo.c: Likewise.
31015         * tests/test-obstack-printf.c: Likewise.
31016         * tests/test-open.c: Likewise.
31017         * tests/test-openat.c: Likewise.
31018         * tests/test-pipe-filter-gi1.c: Likewise.
31019         * tests/test-pipe-filter-gi2-main.c: Likewise.
31020         * tests/test-pipe-filter-ii1.c: Likewise.
31021         * tests/test-pipe-filter-ii2-main.c: Likewise.
31022         * tests/test-pipe2.c: Likewise.
31023         * tests/test-popen.h: Likewise.
31024         * tests/test-posixtm.c: Likewise.
31025         * tests/test-pread.c: Likewise.
31026         * tests/test-printf-frexp.c: Likewise.
31027         * tests/test-printf-frexpl.c: Likewise.
31028         * tests/test-printf-posix.c: Likewise.
31029         * tests/test-priv-set.c: Likewise.
31030         * tests/test-quotearg.c: Likewise.
31031         * tests/test-random_r.c: Likewise.
31032         * tests/test-rawmemchr.c: Likewise.
31033         * tests/test-rbtree_list.c: Likewise.
31034         * tests/test-rbtree_oset.c: Likewise.
31035         * tests/test-rbtreehash_list.c: Likewise.
31036         * tests/test-readlink.c: Likewise.
31037         * tests/test-remove.c: Likewise.
31038         * tests/test-rename.c: Likewise.
31039         * tests/test-renameat.c: Likewise.
31040         * tests/test-rmdir.c: Likewise.
31041         * tests/test-round1.c: Likewise.
31042         * tests/test-roundf1.c: Likewise.
31043         * tests/test-roundl.c: Likewise.
31044         * tests/test-safe-alloc.c: Likewise.
31045         * tests/test-sameacls.c: Likewise.
31046         * tests/test-set-mode-acl.c: Likewise.
31047         * tests/test-setenv.c: Likewise.
31048         * tests/test-sigaction.c: Likewise.
31049         * tests/test-signbit.c: Likewise.
31050         * tests/test-sleep.c: Likewise.
31051         * tests/test-snprintf-posix.c: Likewise.
31052         * tests/test-snprintf.c: Likewise.
31053         * tests/test-sprintf-posix.c: Likewise.
31054         * tests/test-stat-time.c: Likewise.
31055         * tests/test-stat.c: Likewise.
31056         * tests/test-strcasestr.c: Likewise.
31057         * tests/test-strchrnul.c: Likewise.
31058         * tests/test-strerror.c: Likewise.
31059         * tests/test-striconv.c: Likewise.
31060         * tests/test-striconveh.c: Likewise.
31061         * tests/test-striconveha.c: Likewise.
31062         * tests/test-strsignal.c: Likewise.
31063         * tests/test-strstr.c: Likewise.
31064         * tests/test-strtod.c: Likewise.
31065         * tests/test-strverscmp.c: Likewise.
31066         * tests/test-symlink.c: Likewise.
31067         * tests/test-symlinkat.c: Likewise.
31068         * tests/test-trunc1.c: Likewise.
31069         * tests/test-trunc2.c: Likewise.
31070         * tests/test-truncf1.c: Likewise.
31071         * tests/test-truncf2.c: Likewise.
31072         * tests/test-truncl.c: Likewise.
31073         * tests/test-uname.c: Likewise.
31074         * tests/test-unlink.c: Likewise.
31075         * tests/test-unlinkat.c: Likewise.
31076         * tests/test-unsetenv.c: Likewise.
31077         * tests/test-usleep.c: Likewise.
31078         * tests/test-utimens.c: Likewise.
31079         * tests/test-utimensat.c: Likewise.
31080         * tests/test-vasnprintf-posix.c: Likewise.
31081         * tests/test-vasnprintf-posix2.c: Likewise.
31082         * tests/test-vasnprintf.c: Likewise.
31083         * tests/test-vasprintf-posix.c: Likewise.
31084         * tests/test-vasprintf.c: Likewise.
31085         * tests/test-vdprintf-posix.c: Likewise.
31086         * tests/test-vfprintf-posix.c: Likewise.
31087         * tests/test-vprintf-posix.c: Likewise.
31088         * tests/test-vsnprintf-posix.c: Likewise.
31089         * tests/test-vsnprintf.c: Likewise.
31090         * tests/test-vsprintf-posix.c: Likewise.
31091         * tests/test-wcrtomb.c: Likewise.
31092         * tests/test-wcsnrtombs.c: Likewise.
31093         * tests/test-wcsrtombs.c: Likewise.
31094         * tests/test-wctype.c: Likewise.
31095         * tests/test-wcwidth.c: Likewise.
31096         * tests/test-xfprintf-posix.c: Likewise.
31097         * tests/test-xmemdup0.c: Likewise.
31098         * tests/test-xprintf-posix.c: Likewise.
31099         * tests/test-xvasprintf.c: Likewise.
31100         * tests/unicase/test-locale-language.c: Likewise.
31101         * tests/unicase/test-mapping-part1.h: Likewise.
31102         * tests/unicase/test-predicate-part1.h: Likewise.
31103         * tests/unicase/test-u8-casecmp.c: Likewise.
31104         * tests/unicase/test-u8-casecoll.c: Likewise.
31105         * tests/unicase/test-u8-casefold.c: Likewise.
31106         * tests/unicase/test-u8-is-cased.c: Likewise.
31107         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31108         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31109         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31110         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31111         * tests/unicase/test-u8-tolower.c: Likewise.
31112         * tests/unicase/test-u8-totitle.c: Likewise.
31113         * tests/unicase/test-u8-toupper.c: Likewise.
31114         * tests/unicase/test-u16-casecmp.c: Likewise.
31115         * tests/unicase/test-u16-casecoll.c: Likewise.
31116         * tests/unicase/test-u16-casefold.c: Likewise.
31117         * tests/unicase/test-u16-is-cased.c: Likewise.
31118         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31119         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31120         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31121         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31122         * tests/unicase/test-u16-tolower.c: Likewise.
31123         * tests/unicase/test-u16-totitle.c: Likewise.
31124         * tests/unicase/test-u16-toupper.c: Likewise.
31125         * tests/unicase/test-u32-casecmp.c: Likewise.
31126         * tests/unicase/test-u32-casecoll.c: Likewise.
31127         * tests/unicase/test-u32-casefold.c: Likewise.
31128         * tests/unicase/test-u32-is-cased.c: Likewise.
31129         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31130         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31131         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31132         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31133         * tests/unicase/test-u32-tolower.c: Likewise.
31134         * tests/unicase/test-u32-totitle.c: Likewise.
31135         * tests/unicase/test-u32-toupper.c: Likewise.
31136         * tests/unicase/test-ulc-casecmp.c: Likewise.
31137         * tests/unicase/test-ulc-casecoll.c: Likewise.
31138         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31139         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31140         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31141         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31142         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31143         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31144         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31145         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31146         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31147         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31148         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31149         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31150         * tests/unictype/test-bidi_byname.c: Likewise.
31151         * tests/unictype/test-bidi_name.c: Likewise.
31152         * tests/unictype/test-bidi_of.c: Likewise.
31153         * tests/unictype/test-bidi_test.c: Likewise.
31154         * tests/unictype/test-block_list.c: Likewise.
31155         * tests/unictype/test-block_of.c: Likewise.
31156         * tests/unictype/test-block_test.c: Likewise.
31157         * tests/unictype/test-categ_and.c: Likewise.
31158         * tests/unictype/test-categ_and_not.c: Likewise.
31159         * tests/unictype/test-categ_byname.c: Likewise.
31160         * tests/unictype/test-categ_name.c: Likewise.
31161         * tests/unictype/test-categ_none.c: Likewise.
31162         * tests/unictype/test-categ_of.c: Likewise.
31163         * tests/unictype/test-categ_or.c: Likewise.
31164         * tests/unictype/test-categ_test_withtable.c: Likewise.
31165         * tests/unictype/test-combining.c: Likewise.
31166         * tests/unictype/test-decdigit.c: Likewise.
31167         * tests/unictype/test-digit.c: Likewise.
31168         * tests/unictype/test-mirror.c: Likewise.
31169         * tests/unictype/test-numeric.c: Likewise.
31170         * tests/unictype/test-pr_byname.c: Likewise.
31171         * tests/unictype/test-pr_test.c: Likewise.
31172         * tests/unictype/test-predicate-part1.h: Likewise.
31173         * tests/unictype/test-scripts.c: Likewise.
31174         * tests/unictype/test-sy_c_ident.c: Likewise.
31175         * tests/unictype/test-sy_java_ident.c: Likewise.
31176         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31177         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31178         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31179         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31180         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31181         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31182         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31183         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31184         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31185         * tests/uninorm/test-compat-decomposition.c: Likewise.
31186         * tests/uninorm/test-composition.c: Likewise.
31187         * tests/uninorm/test-decomposing-form.c: Likewise.
31188         * tests/uninorm/test-decomposition.c: Likewise.
31189         * tests/uninorm/test-u8-nfc.c: Likewise.
31190         * tests/uninorm/test-u8-nfd.c: Likewise.
31191         * tests/uninorm/test-u8-nfkc.c: Likewise.
31192         * tests/uninorm/test-u8-nfkd.c: Likewise.
31193         * tests/uninorm/test-u8-normcmp.c: Likewise.
31194         * tests/uninorm/test-u8-normcoll.c: Likewise.
31195         * tests/uninorm/test-u16-nfc.c: Likewise.
31196         * tests/uninorm/test-u16-nfd.c: Likewise.
31197         * tests/uninorm/test-u16-nfkc.c: Likewise.
31198         * tests/uninorm/test-u16-nfkd.c: Likewise.
31199         * tests/uninorm/test-u16-normcmp.c: Likewise.
31200         * tests/uninorm/test-u16-normcoll.c: Likewise.
31201         * tests/uninorm/test-u32-nfc.c: Likewise.
31202         * tests/uninorm/test-u32-nfd.c: Likewise.
31203         * tests/uninorm/test-u32-nfkc.c: Likewise.
31204         * tests/uninorm/test-u32-nfkd.c: Likewise.
31205         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31206         * tests/uninorm/test-u32-normcmp.c: Likewise.
31207         * tests/uninorm/test-u32-normcoll.c: Likewise.
31208         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31209         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31210         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31211         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31212         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31213         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31214         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31215         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31216         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31217         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31218         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31219         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31220         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31221         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31222         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31223         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31224         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31225         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31226         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31227         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31228         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31229         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31230         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31231         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31232         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31233         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31234         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31235         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31236         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31237         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31238         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31239         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31240         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31241         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31242         * tests/uniwidth/test-u8-width.c: Likewise.
31243         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31244         * tests/uniwidth/test-u16-width.c: Likewise.
31245         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31246         * tests/uniwidth/test-u32-width.c: Likewise.
31247         * tests/uniwidth/test-uc_width.c: Likewise.
31248         * tests/uniwidth/test-uc_width2.c: Likewise.
31249         * modules/acl-tests (Files): Add tests/macros.h.
31250         * modules/areadlink-tests (Files): Likewise.
31251         * modules/areadlink-with-size-tests (Files): Likewise.
31252         * modules/areadlinkat-tests (Files): Likewise.
31253         * modules/areadlinkat-with-size-tests (Files): Likewise.
31254         * modules/argmatch-tests (Files): Likewise.
31255         * modules/argv-iter-tests (Files): Likewise.
31256         * modules/array-list-tests (Files): Likewise.
31257         * modules/array-mergesort-tests (Files): Likewise.
31258         * modules/array-oset-tests (Files): Likewise.
31259         * modules/avltree-list-tests (Files): Likewise.
31260         * modules/avltree-oset-tests (Files): Likewise.
31261         * modules/avltreehash-list-tests (Files): Likewise.
31262         * modules/base64-tests (Files): Likewise.
31263         * modules/binary-io-tests (Files): Likewise.
31264         * modules/bitrotate-tests (Files): Likewise.
31265         * modules/btowc-tests (Files): Likewise.
31266         * modules/byteswap-tests (Files): Likewise.
31267         * modules/c-ctype-tests (Files): Likewise.
31268         * modules/c-stack-tests (Files): Likewise.
31269         * modules/c-strcase-tests (Files): Likewise.
31270         * modules/c-strcasestr-tests (Files): Likewise.
31271         * modules/c-strstr-tests (Files): Likewise.
31272         * modules/canonicalize-lgpl-tests (Files): Likewise.
31273         * modules/canonicalize-tests (Files): Likewise.
31274         * modules/carray-list-tests (Files): Likewise.
31275         * modules/ceilf-tests (Files): Likewise.
31276         * modules/ceill-tests (Files): Likewise.
31277         * modules/chown-tests (Files): Likewise.
31278         * modules/cloexec-tests (Files): Likewise.
31279         * modules/copy-file-tests (Files): Likewise.
31280         * modules/count-one-bits-tests (Files): Likewise.
31281         * modules/dprintf-posix-tests (Files): Likewise.
31282         * modules/dup2-tests (Files): Likewise.
31283         * modules/dup3-tests (Files): Likewise.
31284         * modules/duplocale-tests (Files): Likewise.
31285         * modules/fbufmode-tests (Files): Likewise.
31286         * modules/fchdir-tests (Files): Likewise.
31287         * modules/fcntl-safer-tests (Files): Likewise.
31288         * modules/fcntl-tests (Files): Likewise.
31289         * modules/fdopendir-tests (Files): Likewise.
31290         * modules/fdutimensat-tests (Files): Likewise.
31291         * modules/fflush-tests (Files): Likewise.
31292         * modules/filevercmp-tests (Files): Likewise.
31293         * modules/flock-tests (Files): Likewise.
31294         * modules/floorf-tests (Files): Likewise.
31295         * modules/floorl-tests (Files): Likewise.
31296         * modules/fnmatch-tests (Files): Likewise.
31297         * modules/fopen-safer-tests (Files): Likewise.
31298         * modules/fopen-tests (Files): Likewise.
31299         * modules/fpending-tests (Files): Likewise.
31300         * modules/fprintf-posix-tests (Files): Likewise.
31301         * modules/fpurge-tests (Files): Likewise.
31302         * modules/freadable-tests (Files): Likewise.
31303         * modules/freadahead-tests (Files): Likewise.
31304         * modules/freading-tests (Files): Likewise.
31305         * modules/freadptr-tests (Files): Likewise.
31306         * modules/freadseek-tests (Files): Likewise.
31307         * modules/freopen-tests (Files): Likewise.
31308         * modules/frexp-nolibm-tests (Files): Likewise.
31309         * modules/frexp-tests (Files): Likewise.
31310         * modules/frexpl-nolibm-tests (Files): Likewise.
31311         * modules/frexpl-tests (Files): Likewise.
31312         * modules/fseek-tests (Files): Likewise.
31313         * modules/fseeko-tests (Files): Likewise.
31314         * modules/fstrcmp-tests (Files): Likewise.
31315         * modules/fsync-tests (Files): Likewise.
31316         * modules/ftell-tests (Files): Likewise.
31317         * modules/ftello-tests (Files): Likewise.
31318         * modules/func-tests (Files): Likewise.
31319         * modules/futimens-tests (Files): Likewise.
31320         * modules/fwritable-tests (Files): Likewise.
31321         * modules/fwriting-tests (Files): Likewise.
31322         * modules/getcwd-tests (Files): Likewise.
31323         * modules/getdate-tests (Files): Likewise.
31324         * modules/getdelim-tests (Files): Likewise.
31325         * modules/getdtablesize-tests (Files): Likewise.
31326         * modules/getgroups-tests (Files): Likewise.
31327         * modules/getline-tests (Files): Likewise.
31328         * modules/getndelim2-tests (Files): Likewise.
31329         * modules/glob-tests (Files): Likewise.
31330         * modules/hash-tests (Files): Likewise.
31331         * modules/i-ring-tests (Files): Likewise.
31332         * modules/iconv-tests (Files): Likewise.
31333         * modules/iconv_open-utf-tests (Files): Likewise.
31334         * modules/idpriv-drop-tests (Files): Likewise.
31335         * modules/idpriv-droptemp-tests (Files): Likewise.
31336         * modules/inet_ntop-tests (Files): Likewise.
31337         * modules/inet_pton-tests (Files): Likewise.
31338         * modules/isblank-tests (Files): Likewise.
31339         * modules/isfinite-tests (Files): Likewise.
31340         * modules/isinf-tests (Files): Likewise.
31341         * modules/isnan-tests (Files): Likewise.
31342         * modules/isnand-nolibm-tests (Files): Likewise.
31343         * modules/isnand-tests (Files): Likewise.
31344         * modules/isnanf-nolibm-tests (Files): Likewise.
31345         * modules/isnanf-tests (Files): Likewise.
31346         * modules/isnanl-nolibm-tests (Files): Likewise.
31347         * modules/isnanl-tests (Files): Likewise.
31348         * modules/lchown-tests (Files): Likewise.
31349         * modules/ldexpl-tests (Files): Likewise.
31350         * modules/link-tests (Files): Likewise.
31351         * modules/linkat-tests (Files): Likewise.
31352         * modules/linked-list-tests (Files): Likewise.
31353         * modules/linkedhash-list-tests (Files): Likewise.
31354         * modules/localename-tests (Files): Likewise.
31355         * modules/lseek-tests (Files): Likewise.
31356         * modules/lstat-tests (Files): Likewise.
31357         * modules/mbmemcasecmp-tests (Files): Likewise.
31358         * modules/mbmemcasecoll-tests (Files): Likewise.
31359         * modules/mbrtowc-tests (Files): Likewise.
31360         * modules/mbscasecmp-tests (Files): Likewise.
31361         * modules/mbscasestr-tests (Files): Likewise.
31362         * modules/mbschr-tests (Files): Likewise.
31363         * modules/mbscspn-tests (Files): Likewise.
31364         * modules/mbsinit-tests (Files): Likewise.
31365         * modules/mbsncasecmp-tests (Files): Likewise.
31366         * modules/mbsnrtowcs-tests (Files): Likewise.
31367         * modules/mbspbrk-tests (Files): Likewise.
31368         * modules/mbspcasecmp-tests (Files): Likewise.
31369         * modules/mbsrchr-tests (Files): Likewise.
31370         * modules/mbsrtowcs-tests (Files): Likewise.
31371         * modules/mbsspn-tests (Files): Likewise.
31372         * modules/mbsstr-tests (Files): Likewise.
31373         * modules/memchr-tests (Files): Likewise.
31374         * modules/memchr2-tests (Files): Likewise.
31375         * modules/memcmp-tests (Files): Likewise.
31376         * modules/memmem-tests (Files): Likewise.
31377         * modules/memrchr-tests (Files): Likewise.
31378         * modules/mkdir-tests (Files): Likewise.
31379         * modules/mkfifo-tests (Files): Likewise.
31380         * modules/mkfifoat-tests (Files): Likewise.
31381         * modules/mknod-tests (Files): Likewise.
31382         * modules/nanosleep-tests (Files): Likewise.
31383         * modules/nl_langinfo-tests (Files): Likewise.
31384         * modules/obstack-printf-tests (Files): Likewise.
31385         * modules/open-tests (Files): Likewise.
31386         * modules/openat-tests (Files): Likewise.
31387         * modules/pipe-filter-gi-tests (Files): Likewise.
31388         * modules/pipe-filter-ii-tests (Files): Likewise.
31389         * modules/pipe2-tests (Files): Likewise.
31390         * modules/popen-safer-tests (Files): Likewise.
31391         * modules/popen-tests (Files): Likewise.
31392         * modules/posixtm-tests (Files): Likewise.
31393         * modules/pread-tests (Files): Likewise.
31394         * modules/printf-frexp-tests (Files): Likewise.
31395         * modules/printf-frexpl-tests (Files): Likewise.
31396         * modules/printf-posix-tests (Files): Likewise.
31397         * modules/priv-set-tests (Files): Likewise.
31398         * modules/quotearg-tests (Files): Likewise.
31399         * modules/random_r-tests (Files): Likewise.
31400         * modules/rawmemchr-tests (Files): Likewise.
31401         * modules/rbtree-list-tests (Files): Likewise.
31402         * modules/rbtree-oset-tests (Files): Likewise.
31403         * modules/rbtreehash-list-tests (Files): Likewise.
31404         * modules/readlink-tests (Files): Likewise.
31405         * modules/remove-tests (Files): Likewise.
31406         * modules/rename-tests (Files): Likewise.
31407         * modules/renameat-tests (Files): Likewise.
31408         * modules/rmdir-tests (Files): Likewise.
31409         * modules/round-tests (Files): Likewise.
31410         * modules/roundf-tests (Files): Likewise.
31411         * modules/roundl-tests (Files): Likewise.
31412         * modules/safe-alloc-tests (Files): Likewise.
31413         * modules/setenv-tests (Files): Likewise.
31414         * modules/sigaction-tests (Files): Likewise.
31415         * modules/signbit-tests (Files): Likewise.
31416         * modules/sleep-tests (Files): Likewise.
31417         * modules/snprintf-posix-tests (Files): Likewise.
31418         * modules/snprintf-tests (Files): Likewise.
31419         * modules/sprintf-posix-tests (Files): Likewise.
31420         * modules/stat-tests (Files): Likewise.
31421         * modules/stat-time-tests (Files): Likewise.
31422         * modules/strcasestr-tests (Files): Likewise.
31423         * modules/strchrnul-tests (Files): Likewise.
31424         * modules/strerror-tests (Files): Likewise.
31425         * modules/striconv-tests (Files): Likewise.
31426         * modules/striconveh-tests (Files): Likewise.
31427         * modules/striconveha-tests (Files): Likewise.
31428         * modules/strsignal-tests (Files): Likewise.
31429         * modules/strstr-tests (Files): Likewise.
31430         * modules/strtod-tests (Files): Likewise.
31431         * modules/strverscmp-tests (Files): Likewise.
31432         * modules/symlink-tests (Files): Likewise.
31433         * modules/symlinkat-tests (Files): Likewise.
31434         * modules/trunc-tests (Files): Likewise.
31435         * modules/truncf-tests (Files): Likewise.
31436         * modules/truncl-tests (Files): Likewise.
31437         * modules/uname-tests (Files): Likewise.
31438         * modules/unicase/cased-tests (Files): Likewise.
31439         * modules/unicase/ignorable-tests (Files): Likewise.
31440         * modules/unicase/locale-language-tests (Files): Likewise.
31441         * modules/unicase/tolower-tests (Files): Likewise.
31442         * modules/unicase/totitle-tests (Files): Likewise.
31443         * modules/unicase/toupper-tests (Files): Likewise.
31444         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31445         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31446         * modules/unicase/u8-casefold-tests (Files): Likewise.
31447         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31448         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31449         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31450         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31451         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31452         * modules/unicase/u8-tolower-tests (Files): Likewise.
31453         * modules/unicase/u8-totitle-tests (Files): Likewise.
31454         * modules/unicase/u8-toupper-tests (Files): Likewise.
31455         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31456         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31457         * modules/unicase/u16-casefold-tests (Files): Likewise.
31458         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31459         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31460         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31461         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31462         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31463         * modules/unicase/u16-tolower-tests (Files): Likewise.
31464         * modules/unicase/u16-totitle-tests (Files): Likewise.
31465         * modules/unicase/u16-toupper-tests (Files): Likewise.
31466         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31467         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31468         * modules/unicase/u32-casefold-tests (Files): Likewise.
31469         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31470         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31471         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31472         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31473         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31474         * modules/unicase/u32-tolower-tests (Files): Likewise.
31475         * modules/unicase/u32-totitle-tests (Files): Likewise.
31476         * modules/unicase/u32-toupper-tests (Files): Likewise.
31477         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31478         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31479         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31480         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31481         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31482         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31483         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31484         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31485         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31486         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31487         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31488         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31489         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31490         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31491         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31492         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31493         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31494         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31495         * modules/unictype/block-list-tests (Files): Likewise.
31496         * modules/unictype/block-of-tests (Files): Likewise.
31497         * modules/unictype/block-test-tests (Files): Likewise.
31498         * modules/unictype/category-C-tests (Files): Likewise.
31499         * modules/unictype/category-Cc-tests (Files): Likewise.
31500         * modules/unictype/category-Cf-tests (Files): Likewise.
31501         * modules/unictype/category-Cn-tests (Files): Likewise.
31502         * modules/unictype/category-Co-tests (Files): Likewise.
31503         * modules/unictype/category-Cs-tests (Files): Likewise.
31504         * modules/unictype/category-L-tests (Files): Likewise.
31505         * modules/unictype/category-Ll-tests (Files): Likewise.
31506         * modules/unictype/category-Lm-tests (Files): Likewise.
31507         * modules/unictype/category-Lo-tests (Files): Likewise.
31508         * modules/unictype/category-Lt-tests (Files): Likewise.
31509         * modules/unictype/category-Lu-tests (Files): Likewise.
31510         * modules/unictype/category-M-tests (Files): Likewise.
31511         * modules/unictype/category-Mc-tests (Files): Likewise.
31512         * modules/unictype/category-Me-tests (Files): Likewise.
31513         * modules/unictype/category-Mn-tests (Files): Likewise.
31514         * modules/unictype/category-N-tests (Files): Likewise.
31515         * modules/unictype/category-Nd-tests (Files): Likewise.
31516         * modules/unictype/category-Nl-tests (Files): Likewise.
31517         * modules/unictype/category-No-tests (Files): Likewise.
31518         * modules/unictype/category-P-tests (Files): Likewise.
31519         * modules/unictype/category-Pc-tests (Files): Likewise.
31520         * modules/unictype/category-Pd-tests (Files): Likewise.
31521         * modules/unictype/category-Pe-tests (Files): Likewise.
31522         * modules/unictype/category-Pf-tests (Files): Likewise.
31523         * modules/unictype/category-Pi-tests (Files): Likewise.
31524         * modules/unictype/category-Po-tests (Files): Likewise.
31525         * modules/unictype/category-Ps-tests (Files): Likewise.
31526         * modules/unictype/category-S-tests (Files): Likewise.
31527         * modules/unictype/category-Sc-tests (Files): Likewise.
31528         * modules/unictype/category-Sk-tests (Files): Likewise.
31529         * modules/unictype/category-Sm-tests (Files): Likewise.
31530         * modules/unictype/category-So-tests (Files): Likewise.
31531         * modules/unictype/category-Z-tests (Files): Likewise.
31532         * modules/unictype/category-Zl-tests (Files): Likewise.
31533         * modules/unictype/category-Zp-tests (Files): Likewise.
31534         * modules/unictype/category-Zs-tests (Files): Likewise.
31535         * modules/unictype/category-and-not-tests (Files): Likewise.
31536         * modules/unictype/category-and-tests (Files): Likewise.
31537         * modules/unictype/category-byname-tests (Files): Likewise.
31538         * modules/unictype/category-name-tests (Files): Likewise.
31539         * modules/unictype/category-none-tests (Files): Likewise.
31540         * modules/unictype/category-of-tests (Files): Likewise.
31541         * modules/unictype/category-or-tests (Files): Likewise.
31542         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31543         * modules/unictype/combining-class-tests (Files): Likewise.
31544         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31545         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31546         * modules/unictype/ctype-blank-tests (Files): Likewise.
31547         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31548         * modules/unictype/ctype-digit-tests (Files): Likewise.
31549         * modules/unictype/ctype-graph-tests (Files): Likewise.
31550         * modules/unictype/ctype-lower-tests (Files): Likewise.
31551         * modules/unictype/ctype-print-tests (Files): Likewise.
31552         * modules/unictype/ctype-punct-tests (Files): Likewise.
31553         * modules/unictype/ctype-space-tests (Files): Likewise.
31554         * modules/unictype/ctype-upper-tests (Files): Likewise.
31555         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31556         * modules/unictype/decimal-digit-tests (Files): Likewise.
31557         * modules/unictype/digit-tests (Files): Likewise.
31558         * modules/unictype/mirror-tests (Files): Likewise.
31559         * modules/unictype/numeric-tests (Files): Likewise.
31560         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31561         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31562         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31563         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31564         Likewise.
31565         * modules/unictype/property-bidi-block-separator-tests (Files):
31566         Likewise.
31567         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31568         Likewise.
31569         * modules/unictype/property-bidi-common-separator-tests (Files):
31570         Likewise.
31571         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31572         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31573         Likewise.
31574         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31575         Likewise.
31576         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31577         Likewise.
31578         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31579         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31580         Likewise.
31581         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31582         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31583         Likewise.
31584         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31585         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31586         * modules/unictype/property-bidi-segment-separator-tests (Files):
31587         Likewise.
31588         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31589         * modules/unictype/property-byname-tests (Files): Likewise.
31590         * modules/unictype/property-combining-tests (Files): Likewise.
31591         * modules/unictype/property-composite-tests (Files): Likewise.
31592         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31593         * modules/unictype/property-dash-tests (Files): Likewise.
31594         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31595         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31596         Likewise.
31597         * modules/unictype/property-deprecated-tests (Files): Likewise.
31598         * modules/unictype/property-diacritic-tests (Files): Likewise.
31599         * modules/unictype/property-extender-tests (Files): Likewise.
31600         * modules/unictype/property-format-control-tests (Files): Likewise.
31601         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31602         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31603         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31604         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31605         * modules/unictype/property-hyphen-tests (Files): Likewise.
31606         * modules/unictype/property-id-continue-tests (Files): Likewise.
31607         * modules/unictype/property-id-start-tests (Files): Likewise.
31608         * modules/unictype/property-ideographic-tests (Files): Likewise.
31609         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31610         * modules/unictype/property-ids-trinary-operator-tests (Files):
31611         Likewise.
31612         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31613         * modules/unictype/property-iso-control-tests (Files): Likewise.
31614         * modules/unictype/property-join-control-tests (Files): Likewise.
31615         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31616         * modules/unictype/property-line-separator-tests (Files): Likewise.
31617         * modules/unictype/property-logical-order-exception-tests (Files):
31618         Likewise.
31619         * modules/unictype/property-lowercase-tests (Files): Likewise.
31620         * modules/unictype/property-math-tests (Files): Likewise.
31621         * modules/unictype/property-non-break-tests (Files): Likewise.
31622         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31623         * modules/unictype/property-numeric-tests (Files): Likewise.
31624         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31625         * modules/unictype/property-other-default-ignorable-code-point-tests
31626         (Files): Likewise.
31627         * modules/unictype/property-other-grapheme-extend-tests (Files):
31628         Likewise.
31629         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31630         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31631         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31632         * modules/unictype/property-other-math-tests (Files): Likewise.
31633         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31634         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31635         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31636         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31637         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31638         * modules/unictype/property-private-use-tests (Files): Likewise.
31639         * modules/unictype/property-punctuation-tests (Files): Likewise.
31640         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31641         * modules/unictype/property-radical-tests (Files): Likewise.
31642         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31643         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31644         * modules/unictype/property-space-tests (Files): Likewise.
31645         * modules/unictype/property-terminal-punctuation-tests (Files):
31646         Likewise.
31647         * modules/unictype/property-test-tests (Files): Likewise.
31648         * modules/unictype/property-titlecase-tests (Files): Likewise.
31649         * modules/unictype/property-unassigned-code-value-tests (Files):
31650         Likewise.
31651         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31652         * modules/unictype/property-uppercase-tests (Files): Likewise.
31653         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31654         * modules/unictype/property-white-space-tests (Files): Likewise.
31655         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31656         * modules/unictype/property-xid-start-tests (Files): Likewise.
31657         * modules/unictype/property-zero-width-tests (Files): Likewise.
31658         * modules/unictype/scripts-tests (Files): Likewise.
31659         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31660         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31661         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31662         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31663         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31664         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31665         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31666         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31667         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31668         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31669         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31670         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31671         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31672         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31673         * modules/uninorm/composition-tests (Files): Likewise.
31674         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31675         * modules/uninorm/decomposition-tests (Files): Likewise.
31676         * modules/uninorm/filter-tests (Files): Likewise.
31677         * modules/uninorm/nfc-tests (Files): Likewise.
31678         * modules/uninorm/nfd-tests (Files): Likewise.
31679         * modules/uninorm/nfkc-tests (Files): Likewise.
31680         * modules/uninorm/nfkd-tests (Files): Likewise.
31681         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31682         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31683         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31684         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31685         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31686         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31687         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31688         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31689         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31690         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31691         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31692         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31693         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31694         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31695         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31696         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31697         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31698         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31699         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31700         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31701         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31702         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31703         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31704         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31705         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31706         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31707         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31708         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31709         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31710         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31711         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31712         * modules/uniwidth/u8-width-tests (Files): Likewise.
31713         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31714         * modules/uniwidth/u16-width-tests (Files): Likewise.
31715         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31716         * modules/uniwidth/u32-width-tests (Files): Likewise.
31717         * modules/uniwidth/width-tests (Files): Likewise.
31718         * modules/unlink-tests (Files): Likewise.
31719         * modules/unsetenv-tests (Files): Likewise.
31720         * modules/usleep-tests (Files): Likewise.
31721         * modules/utimens-tests (Files): Likewise.
31722         * modules/utimensat-tests (Files): Likewise.
31723         * modules/vasnprintf-posix-tests (Files): Likewise.
31724         * modules/vasnprintf-tests (Files): Likewise.
31725         * modules/vasprintf-posix-tests (Files): Likewise.
31726         * modules/vasprintf-tests (Files): Likewise.
31727         * modules/vdprintf-posix-tests (Files): Likewise.
31728         * modules/vfprintf-posix-tests (Files): Likewise.
31729         * modules/vprintf-posix-tests (Files): Likewise.
31730         * modules/vsnprintf-posix-tests (Files): Likewise.
31731         * modules/vsnprintf-tests (Files): Likewise.
31732         * modules/vsprintf-posix-tests (Files): Likewise.
31733         * modules/wcrtomb-tests (Files): Likewise.
31734         * modules/wcsnrtombs-tests (Files): Likewise.
31735         * modules/wcsrtombs-tests (Files): Likewise.
31736         * modules/wctype-tests (Files): Likewise.
31737         * modules/wcwidth-tests (Files): Likewise.
31738         * modules/xmemdup0-tests (Files): Likewise.
31739         * modules/xprintf-posix-tests (Files): Likewise.
31740         * modules/xvasprintf-tests (Files): Likewise.
31741
31742 2009-12-24  Eric Blake  <ebb9@byu.net>
31743
31744         test-nanosleep: fix typo
31745         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31746         patch.
31747         Reported by Bruno Haible.
31748
31749 2009-12-24  Bruno Haible  <bruno@clisp.org>
31750
31751         Reduce namespace pollution on glibc systems.
31752         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31753         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31754         systems.
31755         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31756         <getopt.h> on glibc systems.
31757         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31758         systems.
31759         * lib/fcntl.c: Include <unistd.h> here instead.
31760
31761 2009-12-24  Bruno Haible  <bruno@clisp.org>
31762
31763         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31764
31765 2009-12-24  Eric Blake  <ebb9@byu.net>
31766
31767         tests: add signature checks
31768         * tests/signature.h (SIGNATURE_CHECK): New file.
31769         * modules/atexit-tests (Files): Use it.
31770         * modules/btowc-tests (Files): Likewise.
31771         * modules/canonicalize-lgpl-tests (Files): Likewise.
31772         * modules/ceilf-tests (Files): Likewise.
31773         * modules/ceill-tests (Files): Likewise.
31774         * modules/chown-tests (Files): Likewise.
31775         * modules/dprintf-posix-tests (Files): Likewise.
31776         * modules/dup2-tests (Files): Likewise.
31777         * modules/dup3-tests (Files): Likewise.
31778         * modules/duplocale-tests (Files): Likewise.
31779         * modules/fchdir-tests (Files): Likewise.
31780         * modules/fcntl-tests (Files): Likewise.
31781         * modules/fdopendir-tests (Files): Likewise.
31782         * modules/fflush-tests (Files): Likewise.
31783         * modules/flock-tests (Files): Likewise.
31784         * modules/floorf-tests (Files): Likewise.
31785         * modules/floorl-tests (Files): Likewise.
31786         * modules/fnmatch-tests (Files): Likewise.
31787         * modules/fopen-tests (Files): Likewise.
31788         * modules/fprintf-posix-tests (Files): Likewise.
31789         * modules/freopen-tests (Files): Likewise.
31790         * modules/frexp-nolibm-tests (Files): Likewise.
31791         * modules/frexp-tests (Files): Likewise.
31792         * modules/frexpl-nolibm-tests (Files): Likewise.
31793         * modules/frexpl-tests (Files): Likewise.
31794         * modules/fseek-tests (Files): Likewise.
31795         * modules/fseeko-tests (Files): Likewise.
31796         * modules/fsync-tests (Files): Likewise.
31797         * modules/ftell-tests (Files): Likewise.
31798         * modules/ftello-tests (Files): Likewise.
31799         * modules/futimens-tests (Files): Likewise.
31800         * modules/getaddrinfo-tests (Files): Likewise.
31801         * modules/getcwd-tests (Files): Likewise.
31802         * modules/getdelim-tests (Files): Likewise.
31803         * modules/getdtablesize-tests (Files): Likewise.
31804         * modules/getgroups-tests (Files): Likewise.
31805         * modules/gethostname-tests (Files): Likewise.
31806         * modules/getline-tests (Files): Likewise.
31807         * modules/getopt-posix-tests (Files): Likewise.
31808         * modules/gettimeofday-tests (Files): Likewise.
31809         * modules/glob-tests (Files): Likewise.
31810         * modules/iconv-tests (Files): Likewise.
31811         * modules/inet_ntop-tests (Files): Likewise.
31812         * modules/inet_pton-tests (Files): Likewise.
31813         * modules/isblank-tests (Files): Likewise.
31814         * modules/lchown-tests (Files): Likewise.
31815         * modules/ldexpl-tests (Files): Likewise.
31816         * modules/link-tests (Files): Likewise.
31817         * modules/linkat-tests (Files): Likewise.
31818         * modules/lseek-tests (Files): Likewise.
31819         * modules/lstat-tests (Files): Likewise.
31820         * modules/mbrtowc-tests (Files): Likewise.
31821         * modules/mbsinit-tests (Files): Likewise.
31822         * modules/mbsnrtowcs-tests (Files): Likewise.
31823         * modules/mbsrtowcs-tests (Files): Likewise.
31824         * modules/memchr-tests (Files): Likewise.
31825         * modules/memcmp-tests (Files): Likewise.
31826         * modules/memmem-tests (Files): Likewise.
31827         * modules/memrchr-tests (Files): Likewise.
31828         * modules/mkdir-tests (Files): Likewise.
31829         * modules/mkfifo-tests (Files): Likewise.
31830         * modules/mkfifoat-tests (Files): Likewise.
31831         * modules/mknod-tests (Files): Likewise.
31832         * modules/nanosleep-tests (Files): Likewise.
31833         * modules/nl_langinfo-tests (Files): Likewise.
31834         * modules/obstack-printf-tests (Files): Likewise.
31835         * modules/open-tests (Files): Likewise.
31836         * modules/openat-tests (Files): Likewise.
31837         * modules/perror-tests (Files): Likewise.
31838         * modules/pipe2-tests (Files): Likewise.
31839         * modules/poll-tests (Files): Likewise.
31840         * modules/popen-tests (Files): Likewise.
31841         * modules/posix_spawn-tests (Files): Likewise.
31842         * modules/posix_spawnp-tests (Files): Likewise.
31843         * modules/pread-tests (Files): Likewise.
31844         * modules/printf-posix-tests (Files): Likewise.
31845         * modules/pty-tests (Files): Likewise.
31846         * modules/random_r-tests (Files): Likewise.
31847         * modules/rawmemchr-tests (Files): Likewise.
31848         * modules/readlink-tests (Files): Likewise.
31849         * modules/remove-tests (Files): Likewise.
31850         * modules/rename-tests (Files): Likewise.
31851         * modules/renameat-tests (Files): Likewise.
31852         * modules/rmdir-tests (Files): Likewise.
31853         * modules/round-tests (Files): Likewise.
31854         * modules/roundf-tests (Files): Likewise.
31855         * modules/roundl-tests (Files): Likewise.
31856         * modules/select-tests (Files): Likewise.
31857         * modules/setenv-tests (Files): Likewise.
31858         * modules/sigaction-tests (Files): Likewise.
31859         * modules/sleep-tests (Files): Likewise.
31860         * modules/snprintf-posix-tests (Files): Likewise.
31861         * modules/snprintf-tests (Files): Likewise.
31862         * modules/sprintf-posix-tests (Files): Likewise.
31863         * modules/stat-tests (Files): Likewise.
31864         * modules/strcasestr-tests (Files): Likewise.
31865         * modules/strchrnul-tests (Files): Likewise.
31866         * modules/strerror-tests (Files): Likewise.
31867         * modules/strsignal-tests (Files): Likewise.
31868         * modules/strstr-tests (Files): Likewise.
31869         * modules/strtod-tests (Files): Likewise.
31870         * modules/strverscmp-tests (Files): Likewise.
31871         * modules/symlink-tests (Files): Likewise.
31872         * modules/symlinkat-tests (Files): Likewise.
31873         * modules/times-tests (Files): Likewise.
31874         * modules/trunc-tests (Files): Likewise.
31875         * modules/truncf-tests (Files): Likewise.
31876         * modules/truncl-tests (Files): Likewise.
31877         * modules/tsearch-tests (Files): Likewise.
31878         * modules/uname-tests (Files): Likewise.
31879         * modules/unlink-tests (Files): Likewise.
31880         * modules/unsetenv-tests (Files): Likewise.
31881         * modules/usleep-tests (Files): Likewise.
31882         * modules/utimensat-tests (Files): Likewise.
31883         * modules/vasprintf-tests (Files): Likewise.
31884         * modules/vdprintf-posix-tests (Files): Likewise.
31885         * modules/vfprintf-posix-tests (Files): Likewise.
31886         * modules/vprintf-posix-tests (Files): Likewise.
31887         * modules/vsnprintf-posix-tests (Files): Likewise.
31888         * modules/vsnprintf-tests (Files): Likewise.
31889         * modules/vsprintf-posix-tests (Files): Likewise.
31890         * modules/wcrtomb-tests (Files): Likewise.
31891         * modules/wcsnrtombs-tests (Files): Likewise.
31892         * modules/wcsrtombs-tests (Files): Likewise.
31893         * modules/wcwidth-tests (Files): Likewise.
31894         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31895         * tests/test-isinf.c (isinf): Likewise.
31896         * tests/test-isnan.c (isnan): Likewise.
31897         * tests/test-signbit.c (signbit): Likewise.
31898         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31899         declaration, either as macro or with correct signature.
31900         (select): Ensure function under test is declared with correct
31901         signature in correct header.
31902         * tests/test-atexit.c (atexit): Likewise.
31903         * tests/test-btowc.c (btowc): Likewise.
31904         * tests/test-canonicalize-lgpl.c (realpath)
31905         (canonicalize_file_name): Likewise.
31906         * tests/test-ceilf1.c (ceilf): Likewise.
31907         * tests/test-ceill.c (ceill): Likewise.
31908         * tests/test-chown.c (chown): Likewise.
31909         * tests/test-dprintf-posix.c (dprintf): Likewise.
31910         * tests/test-dup2.c (dup2): Likewise.
31911         * tests/test-dup3.c (dup3): Likewise.
31912         * tests/test-duplocale.c (duplocale): Likewise.
31913         * tests/test-fchdir.c (fchdir): Likewise.
31914         * tests/test-fchownat.c (fchownat): Likewise.
31915         * tests/test-fcntl.c (fcntl): Likewise.
31916         * tests/test-fdopendir.c (fdopendir): Likewise.
31917         * tests/test-fflush.c (fflush): Likewise.
31918         * tests/test-flock.c (flock): Likewise.
31919         * tests/test-floorf1.c (floorf): Likewise.
31920         * tests/test-floorl.c (floorl): Likewise.
31921         * tests/test-fnmatch.c (fnmatch): Likewise.
31922         * tests/test-fopen.c (fopen): Likewise.
31923         * tests/test-fprintf-posix.c (fprintf): Likewise.
31924         * tests/test-freopen.c (freopen): Likewise.
31925         * tests/test-frexp.c (frexp): Likewise.
31926         * tests/test-frexpl.c (frexpl): Likewise.
31927         * tests/test-fseek.c (fseek): Likewise.
31928         * tests/test-fseeko.c (fseeko): Likewise.
31929         * tests/test-fstatat.c (fstatat): Likewise.
31930         * tests/test-fsync.c (fsync): Likewise.
31931         * tests/test-ftell.c (ftell): Likewise.
31932         * tests/test-ftello.c (ftello): Likewise.
31933         * tests/test-futimens.c (futimens): Likewise.
31934         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31935         (gai_strerror): Likewise.
31936         * tests/test-getcwd.c (getcwd): Likewise.
31937         * tests/test-getdelim.c (getdelim): Likewise.
31938         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31939         * tests/test-getgroups.c (getgroups): Likewise.
31940         * tests/test-gethostname.c (gethostname): Likewise.
31941         * tests/test-getline.c (getline): Likewise.
31942         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31943         Likewise.
31944         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31945         * tests/test-glob.c (glob, globfree): Likewise.
31946         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31947         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31948         * tests/test-inet_pton.c (inet_pton): Likewise.
31949         * tests/test-isblank.c (isblank): Likewise.
31950         * tests/test-lchown.c (lchown): Likewise.
31951         * tests/test-ldexpl.c (ldexpl): Likewise.
31952         * tests/test-link.c (link): Likewise.
31953         * tests/test-linkat.c (linkat): Likewise.
31954         * tests/test-lseek.c (lseek): Likewise.
31955         * tests/test-lstat.c (lstat): Likewise.
31956         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31957         * tests/test-mbsinit.c (mbsinit): Likewise.
31958         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31959         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31960         * tests/test-memchr.c (memchr): Likewise.
31961         * tests/test-memcmp.c (memcmp): Likewise.
31962         * tests/test-memmem.c (memmem): Likewise.
31963         * tests/test-memrchr.c (memrchr): Likewise.
31964         * tests/test-mkdir.c (mkdir): Likewise.
31965         * tests/test-mkdirat.c (mkdirat): Likewise.
31966         * tests/test-mkfifo.c (mkfifo): Likewise.
31967         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31968         * tests/test-mknod.c (mknod): Likewise.
31969         * tests/test-nanosleep.c (nanosleep): Likewise.
31970         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31971         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31972         Likewise.
31973         * tests/test-open.c (open): Likewise.
31974         * tests/test-openat.c (openat): Likewise.
31975         * tests/test-perror.c (perror): Likewise.
31976         * tests/test-pipe2.c (pipe2): Likewise.
31977         * tests/test-poll.c (poll): Likewise.
31978         * tests/test-popen.c (popen, pclose): Likewise.
31979         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31980         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31981         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31982         (posix_spawn_file_actions_destroy)
31983         (posix_spawn_file_actions_addclose)
31984         (posix_spawn_file_actions_addopen)
31985         (posix_spawn_file_actions_adddup2): Likewise.
31986         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31987         * tests/test-pread.c (pread): Likewise.
31988         * tests/test-printf-posix.c (printf): Likewise.
31989         * tests/test-pty.c (openpty, forkpty): Likewise.
31990         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31991         (random_r): Likewise.
31992         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31993         * tests/test-readlink.c (readlink): Likewise.
31994         * tests/test-remove.c (remove): Likewise.
31995         * tests/test-rename.c (rename): Likewise.
31996         * tests/test-renameat.c (renameat): Likewise.
31997         * tests/test-rmdir.c (rmdir): Likewise.
31998         * tests/test-round1.c (round): Likewise.
31999         * tests/test-roundf1.c (roundf): Likewise.
32000         * tests/test-roundl.c (roundl): Likewise.
32001         * tests/test-setenv.c (setenv): Likewise.
32002         * tests/test-sigaction.c (sigaction): Likewise.
32003         * tests/test-sleep.c (sleep): Likewise.
32004         * tests/test-snprintf.c (snprintf): Likewise.
32005         * tests/test-sprintf-posix.c (sprintf): Likewise.
32006         * tests/test-stat.c (stat): Likewise.
32007         * tests/test-stpncpy.c (stpncpy): Likewise.
32008         * tests/test-strcasestr.c (strcasestr): Likewise.
32009         * tests/test-strchrnul.c (strchrnul): Likewise.
32010         * tests/test-strerror.c (strerror): Likewise.
32011         * tests/test-strsignal.c (strsignal): Likewise.
32012         * tests/test-strstr.c (strstr): Likewise.
32013         * tests/test-strtod.c (strtod): Likewise.
32014         * tests/test-strverscmp.c (strverscmp): Likewise.
32015         * tests/test-symlink.c (symlink): Likewise.
32016         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32017         * tests/test-times.c (times): Likewise.
32018         * tests/test-trunc1.c (trunc): Likewise.
32019         * tests/test-truncf1.c (truncf): Likewise.
32020         * tests/test-truncl.c (truncl): Likewise.
32021         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32022         Likewise.
32023         * tests/test-uname.c (uname): Likewise.
32024         * tests/test-unlink.c (unlink): Likewise.
32025         * tests/test-unlinkat.c (unlinkat): Likewise.
32026         * tests/test-unsetenv.c (unsetenv): Likewise.
32027         * tests/test-usleep.c (usleep): Likewise.
32028         * tests/test-utimensat.c (utimensat): Likewise.
32029         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32030         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32031         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32032         * tests/test-vprintf-posix.c (vprintf): Likewise.
32033         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32034         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32035         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32036         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32037         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32038         * tests/test-wcwidth.c (wcwidth): Likewise.
32039
32040         build: pull in conditional headers during GNULIB_POSIXCHECK
32041         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32042         definitions from any conditionally-included headers.
32043         * lib/stdlib.in.h (includes): Likewise.
32044         * lib/unistd.in.h (includes): Likewise.
32045
32046 2009-12-24  Bruno Haible  <bruno@clisp.org>
32047
32048         * tests/test-argv-iter.c: Include header file being tested immediately
32049         after config.h.
32050         * tests/test-base64.c: Likewise.
32051         * tests/test-flock.c: Likewise.
32052         * tests/test-fsync.c: Likewise.
32053         * tests/test-getdate.c: Likewise.
32054         * tests/test-getndelim2.c: Likewise.
32055         * tests/test-isfinite.c: Likewise.
32056         * tests/test-isinf.c: Likewise.
32057         * tests/test-strerror.c: Likewise.
32058         * tests/test-strsignal.c: Likewise.
32059
32060 2009-12-23  Eric Blake  <ebb9@byu.net>
32061
32062         unistd: work around cygwin bug
32063         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32064         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32065         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32066
32067 2009-12-23  Bruno Haible  <bruno@clisp.org>
32068
32069         localename: More tests.
32070         * tests/test-localename.c (SIZEOF): New macro.
32071         (categories): New variable.
32072         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32073         test_locale_name_default): Add test w.r.t. thread locale.
32074         (test_locale_name_thread): New function.
32075         (main): Invoke it.
32076
32077         localename: Make aware of thread locale.
32078         * lib/localename.h (gl_locale_name_thread): New declaration.
32079         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32080         behaviour with respect to thread locale.
32081         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32082         <langinfo.h>, glthread/lock.h.
32083         (SIZE_BITS): New macro.
32084         (string_hash): New function.
32085         (struct hash_node): New type.
32086         (HASH_TABLE_SIZE): New macro.
32087         (struniq_hash_table, struniq_lock): New variables.
32088         (struniq): New function.
32089         (gl_locale_name_thread): New function.
32090         (gl_locale_name): Invoke it.
32091         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32092         * modules/localename (Depends-on): Add lock.
32093         Reported by Mike Gran <spk121@yahoo.com>.
32094
32095 2009-12-23  Eric Blake  <ebb9@byu.net>
32096
32097         va-args: new module
32098         * modules/va-args: New file.
32099         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32100         * MODULES.html.sh (Core language properties): Mention it.
32101
32102         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32103         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32104         named alias for __attribute__((__unused__)).
32105         * lib/chown.c: Update client.
32106         * lib/fchmodat.c: Likewise.
32107         * lib/fts.c: Likewise.
32108         * lib/getdate.y: Likewise.
32109         * lib/getgroups.c: Likewise.
32110         * lib/getopt.c: Likewise.
32111         * lib/getugroups.c: Likewise.
32112         * lib/mkdir.c: Likewise.
32113         * lib/mkfifo.c: Likewise.
32114         * lib/mkfifoat.c: Likewise.
32115         * lib/mknod.c: Likewise.
32116         * lib/mknodat.c: Likewise.
32117         * lib/readlink.c: Likewise.
32118         * lib/se-context.in.h: Likewise.
32119         * lib/se-selinux.in.h: Likewise.
32120         * lib/sockets.c: Likewise.
32121         * lib/symlink.c: Likewise.
32122         * lib/symlinkat.c: Likewise.
32123         * lib/unicodeio.c: Likewise.
32124         * lib/unistr.h: Likewise.
32125         * tests/test-areadlink.c: Likewise.
32126         * tests/test-areadlinkat.c: Likewise.
32127         * tests/test-filenamecat.c: Likewise.
32128         * tests/test-fseeko.c: Likewise.
32129         * tests/test-ftello.c: Likewise.
32130         * tests/test-getdate.c: Likewise.
32131         * tests/test-getgroups.c: Likewise.
32132         * tests/test-gethostname.c: Likewise.
32133         * tests/test-quotearg.c: Likewise.
32134         * tests/test-version-etc.c: Likewise.
32135         * tests/test-xalloc-die.c: Likewise.
32136         * tests/test-xfprintf-posix.c: Likewise.
32137         * tests/test-xprintf-posix.c: Likewise.
32138         * tests/test-xvasprintf.c: Likewise.
32139
32140         tests: avoid compiler warnings
32141         * tests/test-fcntl.c (main): Delete unused parameters.
32142         * tests/test-freopen-safer.c (main): Likewise.
32143         * tests/test-xalloc-die.c (main): Mark unused parameters.
32144         * tests/test-fseeko.c (main): Likewise.
32145         * tests/test-ftello.c (main): Likewise.
32146         * tests/test-nanosleep.c (main): Avoid declaration warning.
32147         * tests/test-sleep.c (main): Likewise.
32148         * tests/test-unsetenv.c (main): Silence warning about string
32149         literal.
32150         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32151
32152 2009-12-23  Bruno Haible  <bruno@clisp.org>
32153
32154         * tests/test-localename.c (test_locale_name): New function, extracted
32155         from main. Also test mixed situations.
32156         (test_locale_name_posix, test_locale_name_environ,
32157         test_locale_name_default): New functions.
32158         (main): Invoke them all.
32159         * modules/localename-tests (configure.ac): Test for newlocale.
32160
32161 2009-12-23  Bruno Haible  <bruno@clisp.org>
32162
32163         unistd: Ensure getcwd gets declared before being overridden.
32164         * lib/unistd.in.h: Conditionally include <io.h>.
32165
32166 2009-12-22  Bruno Haible  <bruno@clisp.org>
32167
32168         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32169         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32170         (gl_WCHAR_H): Invoke it.
32171         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32172         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32173         Reported by Karl Berry <karl@freefriends.org>.
32174
32175 2009-12-22  Eric Blake  <ebb9@byu.net>
32176
32177         math, unistd: avoid redundant includes
32178         * lib/math.in.h (isnan): No need to re-include <math.h>.
32179         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32180
32181         getsubopt: work around cygwin bug
32182         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32183         avoid conflicting with system getsubopt.
32184         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32185         bug.
32186
32187         getopt: synchronize from glibc
32188         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32189         parameter order.  Adjust all callers.
32190         (_getopt_internal_r, main): Adjust quoting in error messages.
32191         Drop considerations for outdated POSIX 1003.2 error message.
32192         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32193         callers.
32194         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32195
32196         test-getopt: test stderr behavior
32197         * modules/getopt-posix-tests (Depends-on): Add dup2.
32198         * tests/test-getopt.c (ASSERT): Avoid stderr.
32199         (main): Move stderr to a temporary file.
32200         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32201         Instead, add parameter to inform caller if output occurred.
32202         (test_getopt): Adjust all existing tests to expect silence, and
32203         add new tests of leading ":".
32204         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32205         glibc shortcomings with leading "-:" or "+:" in optstring.
32206         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32207         Likewise.
32208         * doc/posix-functions/getopt.texi (getopt): Likewise.
32209
32210         test-getopt: enhance test
32211         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32212         supports optind=0.
32213         * tests/test-getopt.c (OPTIND_MIN): Move...
32214         * tests/test-getopt.h (OPTIND_MIN): ...here.
32215         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32216         Require that optind=0 works, since modern BSD supports it in
32217         addition to optreset, and since coreutils expects it.
32218         (test_getopt_long_only): New test.
32219         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32220         glibc shortcomings with 'W;', and enforcement of optind=0.
32221         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32222         Likewise.
32223
32224 2009-12-21  Bruno Haible  <bruno@clisp.org>
32225
32226         localename: Improvements for MacOS X and Cygwin.
32227         * lib/localename.h (gl_locale_name_environ): New declaration.
32228         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32229         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32230         (gl_locale_name_posix): Invoke it.
32231         (gl_locale_name_default): Add comments. Use Windows native API also on
32232         Cygwin.
32233
32234 2009-12-21  Bruno Haible  <bruno@clisp.org>
32235
32236         Update list of Win32 locale ids.
32237         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32238         (LANG_SAMI): Renamed from LANG_SAAMI.
32239         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32240         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32241         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32242         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32243         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32244         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32245         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32246         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32247         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32248         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32249         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32250         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32251         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32252         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32253         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32254         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32255         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32256         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32257         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32258         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32259         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32260         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32261         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32262         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32263         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32264         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32265         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32266         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32267         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32268         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32269         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32270         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32271         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32272         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32273         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32274         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32275         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32276         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32277         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32278         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32279         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32280         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32281         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32282         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32283         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32284         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32285         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32286         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32287         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32288         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32289         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32290         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32291         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32292         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32293         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32294         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32295         Add more languages and countries for Sami, Sorbian. Add more countries
32296         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32297         for Pashto. Change country for Syriac, Tswana.
32298
32299 2009-12-21  Eric Blake  <ebb9@byu.net>
32300
32301         test-utimens: avoid spurious failure
32302         * tests/test-chown.h (nap): Factor...
32303         * tests/nap.h: ...into new file.
32304         * tests/test-lchown.h (nap): Avoid duplication.
32305         * tests/test-utimens-common.h (nap): Use shared implementation,
32306         necessary on file systems with 1-second resolution.
32307         * modules/chown-tests (Files): Include new file.
32308         * modules/fdutimensat-tests (Files): Likewise.
32309         * modules/futimens-tests (Files): Likewise.
32310         * modules/lchown-tests (Files): Likewise.
32311         * modules/openat-tests (Files): Likewise.
32312         * modules/utimens-tests (Files): Likewise.
32313         * modules/utimensat-tests (Files): Likewise.
32314
32315 2009-12-19  Eric Blake  <ebb9@byu.net>
32316
32317         futimens, utimensat: work around Linux bug
32318         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32319         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32320         * lib/utimensat.c (rpl_utimensat): Work around it.
32321         * lib/futimens.c (rpl_futimens): Adjust comment.
32322
32323         utimens: work around Linux ctime bug
32324         * lib/utimens.c (detect_ctime_bug): New helper function.
32325         (update_timespec): Differentiate between workaround needed for
32326         this bug vs. what is needed for systems that lack utimensat.
32327         (fdutimens, lutimens): Work around bug.
32328
32329         utimens: check for ctime update
32330         * tests/test-utimens-common.h (check_ctime): Define.
32331         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32332         * tests/test-futimens.h (test_futimens): Likewise.
32333         * tests/test-lutimens.h (test_lutimens): Likewise.
32334         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32335         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32336
32337 2009-12-19  Bruno Haible  <bruno@clisp.org>
32338
32339         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32340         * tests/test-dprintf-posix2.sh: New file.
32341         * tests/test-dprintf-posix2.c: New file.
32342         * modules/dprintf-posix-tests (Files): Add them.
32343         (configure.ac): Check for getrlimit and setrlimit.
32344         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32345
32346 2009-12-19  Bruno Haible  <bruno@clisp.org>
32347
32348         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32349         * tests/test-fprintf-posix3.sh: New file.
32350         * tests/test-fprintf-posix3.c: New file.
32351         * modules/fprintf-posix-tests (Files): Add them.
32352         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32353
32354 2009-12-19  Eric Blake  <ebb9@byu.net>
32355
32356         dirfd: fix prototype
32357         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32358         * lib/dirfd.c (dirfd): Likewise.
32359
32360         canonicalize: reduce memory usage
32361         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32362         allocation to size.
32363         Reported by Solar Designer <solar@openwall.com>.
32364
32365 2009-12-19  Bruno Haible  <bruno@clisp.org>
32366
32367         New module attribute 'Applicability'.
32368         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32369         * gnulib-tool: New option --extract-applicability.
32370         (func_usage): Document it.
32371         (sed_extract_prog): Recognize it.
32372         (func_get_applicability): New function.
32373         (func_import): Generalize handling of 'link-warning' module.
32374         * modules/link-warning (Applicability): New section.
32375         * modules/arg-nonnull (Applicability): New section.
32376         Repoted by Simon Josefsson <simon@josefsson.org>.
32377
32378 2009-12-19  Bruno Haible  <bruno@clisp.org>
32379
32380         fflush: tweak
32381         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32382         * lib/fseeko.c (rpl_fseeko): Likewise.
32383
32384 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32385
32386         * lib/gl_list.h: Fix typo in comment.
32387
32388 2009-12-16  Eric Blake  <ebb9@byu.net>
32389
32390         fcntl: use to simplify other modules
32391         * modules/cloexec (Depends-on): Add fcntl.
32392         * modules/fchdir (Depends-on): Likewise.
32393         * modules/fd-safer-flag (Depends-on): Likewise.
32394         * modules/unistd-safer (Depends-on): Likewise.
32395         * modules/dup3 (configure.ac): Set module indicator.
32396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32397         missing.
32398         * lib/fchdir.c (_gl_register_dup): Fix comment.
32399         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32400         * lib/dup-safer.c (dup_safer): Likewise.
32401         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32402         * lib/dup3.c (dup3): Likewise.
32403         * tests/test-fchdir.c (main): Enhance test.
32404         Fixes a dup_cloexec bug reported by Ondřej Vašík.
32405
32406         fcntl: port portions of fcntl to mingw
32407         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32408         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32409         replacement for mingw.
32410         * modules/fcntl (Description): Update.
32411         (Depends-on): Add dup2.
32412         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32413         * modules/fcntl-h (Makefile.am): Substitute it.
32414         * lib/fcntl.in.h (fcntl): Update declaration.
32415         (F_DUPFD, F_GETFD): New macros, when needed.
32416         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32417         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32418         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32419         we now guarantee.
32420
32421         fcntl: work around cygwin bug in F_DUPFD
32422         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32423         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32424         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32425         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32426         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32427
32428         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32429         * modules/fcntl (Files): List new files.
32430         (configure.ac): Run a test.
32431         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32432         * lib/fcntl.c (rpl_fcntl): Likewise.
32433         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32434         (gl_FCNTL_H): Always replace fcntl.h.
32435         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32436         * lib/fcntl.in.h (fcntl): Declare replacement.
32437         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32438         needed, plus a witness.
32439         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32440         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32441         * tests/test-fcntl.c: New file.
32442         * modules/fcntl-tests: Likewise.
32443
32444         binary-io: avoid potential compilation warning
32445         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32446         directives.
32447
32448         fflush: avoid compilation error on NetBSD
32449         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32450         between off_t and fpos_t, since the latter is sometimes a struct.
32451         * lib/fseeko.c (rpl_fseeko): Likewise.
32452         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32453
32454 2009-12-15  Eric Blake  <ebb9@byu.net>
32455
32456         fcntl-h, stdio, sys_ioctl: fix declarations
32457         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32458         function must not take arguments.
32459         * lib/sys_ioctl.in.h (ioctl): Likewise.
32460         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32461         (open): Add a link warning.
32462
32463 2009-12-15  Jim Meyering  <meyering@redhat.com>
32464
32465         areadlink, areadlink-with-size: relax license to LGPLv2+
32466         * modules/areadlink (License): Relax to LGPLv2+.
32467         * modules/areadlink-with-size (License): Likewise.
32468
32469 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32470             Bruno Haible  <bruno@clisp.org>
32471
32472         *printf: Fix memory leak.
32473         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32474         * lib/vfprintf.c (vfprintf): Likewise.
32475         * lib/dprintf.c (dprintf): Likewise.
32476         * lib/vdprintf.c (vdprintf): Likewise.
32477
32478 2009-12-14  Eric Blake  <ebb9@byu.net>
32479
32480         accept4: adjust module dependencies
32481         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32482
32483         utimens: one more try at avoiding compiler warning
32484         * lib/utimens.c (lutimens): Lower scope of result.
32485
32486 2009-12-13  Bruno Haible  <bruno@clisp.org>
32487
32488         Move the malloc checking from module 'list' to new module 'xlist'.
32489         * modules/xlist: New file.
32490         * lib/gl_xlist.h: New file.
32491         * lib/gl_xlist.c: New file.
32492         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32493         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32494         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32495         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32496         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32497         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32498         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32499         gl_sortedlist_nx_add): New declarations.
32500         (struct gl_list_implementation): Rename and change methods accordingly.
32501         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32502         (gl_list_nx_create): Renamed from gl_list_create.
32503         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32504         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32505         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32506         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32507         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32508         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32509         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32510         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32511         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32512         gl_list_create_empty.
32513         (gl_list_nx_create): Renamed from gl_list_create.
32514         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32515         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32516         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32517         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32518         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32519         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32520         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32521         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32522         * lib/gl_array_list.c: Don't include xalloc.h.
32523         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32524         NULL upon out-of-memory.
32525         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32526         out-of-memory.
32527         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32528         Change return type to 'int'.
32529         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32530         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32531         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32532         upon out-of-memory.
32533         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32534         upon out-of-memory.
32535         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32536         upon out-of-memory.
32537         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32538         upon out-of-memory.
32539         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32540         out-of-memory.
32541         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32542         Update.
32543         (gl_array_list_implementation): Update.
32544         * lib/gl_carray_list.c: Don't include xalloc.h.
32545         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32546         Return NULL upon out-of-memory.
32547         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32548         out-of-memory.
32549         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32550         Change return type to 'int'.
32551         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32552         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32553         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32554         upon out-of-memory.
32555         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32556         upon out-of-memory.
32557         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32558         out-of-memory.
32559         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32560         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32561         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32562         Update.
32563         (gl_carray_list_implementation): Update.
32564         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32565         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32566         gl_linked_create_empty. Return NULL upon out-of-memory.
32567         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32568         out-of-memory.
32569         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32570         Change return type to 'int'. Return -1 upon out-of-memory.
32571         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32572         out-of-memory.
32573         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32574         upon out-of-memory.
32575         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32576         upon out-of-memory.
32577         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32578         NULL upon out-of-memory.
32579         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32580         upon out-of-memory.
32581         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32582         out-of-memory.
32583         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32584         Update.
32585         * lib/gl_linked_list.c: Don't include xalloc.h.
32586         (gl_linked_list_implementation): Update.
32587         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32588         (add_to_bucket): Change return type to 'int'.
32589         (gl_linkedhash_list_implementation): Update.
32590         * lib/gl_anytree_list1.h (free_subtree): New function.
32591         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32592         gl_tree_create_empty. Return NULL upon out-of-memory.
32593         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32594         Change return type to 'int'. Return -1 upon out-of-memory.
32595         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32596         out-of-memory.
32597         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32598         (gl_tree_remove_node): New function, moved here from
32599         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32600         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32601         Update.
32602         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32603         malloc, not xmalloc. Return NULL upon out-of-memory.
32604         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32605         out-of-memory.
32606         (gl_tree_remove_node_from_tree): New function, extracted from
32607         gl_tree_remove_node.
32608         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32609         upon out-of-memory.
32610         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32611         out-of-memory.
32612         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32613         upon out-of-memory.
32614         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32615         upon out-of-memory.
32616         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32617         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32618         not xmalloc. Return NULL upon out-of-memory.
32619         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32620         out-of-memory.
32621         (gl_tree_remove_node_from_tree): New function, extracted from
32622         gl_tree_remove_node.
32623         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32624         upon out-of-memory.
32625         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32626         out-of-memory.
32627         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32628         upon out-of-memory.
32629         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32630         upon out-of-memory.
32631         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32632         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32633         gl_anytree_list1.h before gl_anyavltree_list2.h.
32634         (gl_avltree_list_implementation): Update.
32635         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32636         gl_anytree_list1.h before gl_anyavltree_list2.h.
32637         (gl_rbtree_list_implementation): Update.
32638         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32639         Change return type to 'int'. Return -1 upon out-of-memory. Use
32640         __builtin_expect.
32641         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32642         (gl_avltreehash_list_implementation): Update.
32643         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32644         (gl_rbtreehash_list_implementation): Update.
32645         * modules/array-list (Depends-on): Remove xalloc.
32646         * modules/carray-list (Depends-on): Likewise.
32647         * modules/linked-list (Depends-on): Likewise.
32648         * modules/linkedhash-list (Depends-on): Likewise.
32649         * modules/avltree-list (Depends-on): Likewise.
32650         * modules/rbtree-list (Depends-on): Likewise.
32651         * modules/avltreehash-list (Depends-on): Likewise.
32652         * modules/rbtreehash-list (Depends-on): Likewise.
32653
32654         * modules/xsublist: New file.
32655         * lib/gl_xsublist.h: New file.
32656         * lib/gl_xsublist.c: New file.
32657         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32658         (gl_sublist_nx_create): New declaration.
32659         * lib/gl_sublist.c: Don't include xalloc.h.
32660         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32661         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32662         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32663         Change return type to 'int'. Return -1 upon out-of-memory.
32664         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32665         upon out-of-memory.
32666         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32667         NULL upon out-of-memory.
32668         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32669         upon out-of-memory.
32670         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32671         NULL upon out-of-memory.
32672         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32673         NULL upon out-of-memory.
32674         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32675         upon out-of-memory.
32676         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32677         (gl_sublist_list_implementation): Update.
32678         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32679         upon out-of-memory.
32680         * modules/sublist (Depends-on): Remove xalloc.
32681
32682         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32683         * tests/test-carray_list.c: Likewise.
32684         * tests/test-linked_list.c: Likewise.
32685         * tests/test-linkedhash_list.c: Likewise.
32686         * tests/test-avltree_list.c: Likewise.
32687         * tests/test-rbtree_list.c: Likewise.
32688         * tests/test-avltreehash_list.c: Likewise.
32689         * tests/test-rbtreehash_list.c: Likewise.
32690         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32691         * modules/carray-list-tests (Makefile.am): Likewise.
32692         * modules/linked-list-tests (Makefile.am): Likewise.
32693         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32694         * modules/avltree-list-tests (Makefile.am): Likewise.
32695         * modules/rbtree-list-tests (Makefile.am): Likewise.
32696         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32697         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32698
32699         * NEWS: Mention the changes.
32700
32701         * lib/clean-temp.c: Include gl_xlist.h.
32702         * modules/clean-temp (Depends-on): Add xlist.
32703
32704         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32705         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32706
32707         * tests/test-array_oset.c: Include gl_xlist.h.
32708         * modules/array-oset-tests (Depends-on): Add xlist.
32709
32710         Reported by José E. Marchesi <jemarch@gnu.org>.
32711
32712 2009-12-13  Bruno Haible  <bruno@clisp.org>
32713
32714         Move the malloc checking from module 'oset' to new module 'xoset'.
32715         * modules/xoset: New file.
32716         * lib/gl_xoset.h: New file.
32717         * lib/gl_xoset.c: New file.
32718         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32719         declarations.
32720         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32721         (struct gl_oset_implementation): Rename and change methods accordingly.
32722         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32723         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32724         'int'. Mark as __warn_unused_result__.
32725         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32726         gl_oset_create_empty.
32727         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32728         'int'.
32729         * lib/gl_array_oset.c: Don't include xalloc.h.
32730         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32731         malloc, not xmalloc.
32732         (grow): Change return type to 'int'. Don't call xalloc_die.
32733         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32734         to 'int'.
32735         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32736         'int'.
32737         (gl_array_oset_implementation): Update.
32738         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32739         gl_tree_create_empty.
32740         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32741         'int'.
32742         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32743         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32744         xmalloc.
32745         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32746         not xmalloc.
32747         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32748         xmalloc.
32749         (gl_avltree_oset_implementation): Update.
32750         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32751         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32752         xmalloc.
32753         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32754         not xmalloc.
32755         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32756         xmalloc.
32757         (gl_rbtree_oset_implementation): Update.
32758         * modules/array-oset (Depends-on): Remove xalloc.
32759         * modules/avltree-oset (Depends-on): Likewise.
32760         * modules/rbtree-oset (Depends-on): Likewise.
32761         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32762         * tests/test-avltree_oset.c: Likewise.
32763         * tests/test-rbtree_oset.c: Likewise.
32764         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32765         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32766         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32767         * NEWS: Mention the change.
32768
32769 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32770
32771         maint.mk: allow a project to override release-prep commands
32772         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32773         commands into a new rule.
32774         (release-prep): New rule.
32775         (release-prep-hook): New overridable variable.
32776
32777 2009-12-13  Bruno Haible  <bruno@clisp.org>
32778
32779         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32780
32781 2009-12-13  Jim Meyering  <meyering@redhat.com>
32782
32783         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32784         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32785
32786 2009-12-12  Bruno Haible  <bruno@clisp.org>
32787
32788         duplocale: Tweak.
32789         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32790
32791 2009-12-12  Karl Berry  <karl@gnu.org>
32792
32793         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32794
32795 2009-12-12  Bruno Haible  <bruno@clisp.org>
32796
32797         * m4/po.m4: Undo incorrect untabification.
32798
32799 2009-12-12  Bruno Haible  <bruno@clisp.org>
32800
32801         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32802         * modules/c-strtod (Depends-on): Add locale.
32803         * modules/c-strtold (Depends-on): Likewise.
32804
32805 2009-12-12  Bruno Haible  <bruno@clisp.org>
32806
32807         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32808
32809 2009-12-11  Eric Blake  <ebb9@byu.net>
32810
32811         setenv: relax requirement in light of POSIX ruling
32812         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32813         not NULL.
32814         * tests/test-setenv.c (main): Relax test.
32815         * tests/test-unsetenv.c (main): Likewise.
32816         * doc/posix-functions/setenv.texi (setenv): Document this.
32817         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32818
32819 2009-12-11  Bruno Haible  <bruno@clisp.org>
32820
32821         New module 'fd-safer-flag'.
32822         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32823         * lib/dup-safer.c (dup_safer_flag): Remove function.
32824         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32825         * lib/fd-safer.c (fd_safer_flag): Remove function.
32826         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32827         * modules/cloexec (configure.ac): Drop indicator macro.
32828         * modules/fd-safer-flag: New file.
32829         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32830         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32831         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32832
32833 2009-12-11  Bruno Haible  <bruno@clisp.org>
32834
32835         Tests for module 'nl_langinfo'.
32836         * modules/nl_langinfo-tests: New file.
32837         * tests/test-nl_langinfo.sh: New file.
32838         * tests/test-nl_langinfo.c: New file.
32839
32840         New module 'nl_langinfo'.
32841         * lib/nl_langinfo.c: New file.
32842         * m4/nl_langinfo.m4: New file.
32843         * modules/nl_langinfo: New file.
32844         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32845
32846 2009-12-11  Bruno Haible  <bruno@clisp.org>
32847
32848         Tests for module 'langinfo'.
32849         * modules/langinfo-tests: New file.
32850         * tests/test-langinfo.c: New file.
32851
32852         New module 'langinfo'.
32853         * lib/langinfo.in.h: New file.
32854         * m4/langinfo_h.m4: New file.
32855         * modules/langinfo: New file.
32856         * doc/posix-headers/langinfo.texi: Mention the new module.
32857
32858 2009-12-11  Bruno Haible  <bruno@clisp.org>
32859
32860         * lib/config.charset: Untabify.
32861
32862 2009-12-11  Bruno Haible  <bruno@clisp.org>
32863
32864         * modules/unistd-safer (configure.ac): Drop indicator macro.
32865
32866 2009-12-11  Bruno Haible  <bruno@clisp.org>
32867
32868         Move pipe2-safer code to its own file.
32869         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32870         * lib/pipe-safer.c (pipe2_safer): Remove function.
32871         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32872         (Makefile.am): Add it to lib_SOURCES.
32873
32874 2009-12-10  Bruno Haible  <bruno@clisp.org>
32875
32876         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32877
32878 2009-12-10  Bruno Haible  <bruno@clisp.org>
32879
32880         Declare which arguments expect non-NULL values, for GCC and clang.
32881         * build-aux/arg-nonnull.h: New file.
32882         * modules/arg-nonnull: New file.
32883         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32884         (inet_ntop, inet_pton): Use it.
32885         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32886         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32887         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32888         (open, openat): Use it.
32889         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32890         (fnmatch): Use it.
32891         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32892         (getopt, getopt_long, getopt_long_only): Use it.
32893         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32894         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32895         Use it.
32896         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32897         (iconv_open): Use it.
32898         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32899         (strtoimax, strtoumax): Use it.
32900         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32901         (duplocale): Use it.
32902         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32903         (frexp, frexpl): Use it.
32904         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32905         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32906         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32907         (tsearch, tfind, tdelete, twalk): Use it.
32908         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32909         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32910         sigpending): Use it.
32911         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32912         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32913         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32914         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32915         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32916         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32917         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32918         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32919         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32920         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32921         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32922         Use it.
32923         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32924         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32925         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32926         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32927         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32928         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32929         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32930         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32931         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32932         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32933         strtoull, unsetenv): Use it.
32934         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32935         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32936         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32937         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32938         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32939         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32940         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32941         (strcasecmp, strncasecmp): Use it.
32942         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32943         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32944         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32945         rpl_setsockopt): Use it.
32946         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32947         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32948         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32949         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32950         (gettimeofday): Use it.
32951         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32952         (times): Use it.
32953         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32954         (uname): Use it.
32955         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32956         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32957         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32958         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32959         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32960         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32961         unlinkat, write): Use it.
32962         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32963         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32964         * lib/argv-iter.h: Include arg-nonnull.h.
32965         (_ATTRIBUTE_NONNULL_): Remove macro.
32966         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32967         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32968         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32969         optimization.
32970         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32971         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32972         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32973         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32974         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32975         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32976         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32977         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32978         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32979         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32980         * modules/dirent (Depends-on): Add arg-nonnull.
32981         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32982         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32983         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32984         * modules/fnmatch (Depends-on): Add arg-nonnull.
32985         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32986         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32987         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32988         * modules/glob (Depends-on): Add arg-nonnull.
32989         (Makefile.am): Insert arg-nonnull.h into glob.h.
32990         * modules/iconv_open (Depends-on): Add arg-nonnull.
32991         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32992         * modules/inttypes (Depends-on): Add arg-nonnull.
32993         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32994         * modules/locale (Depends-on): Add arg-nonnull.
32995         (Makefile.am): Insert arg-nonnull.h into locale.h.
32996         * modules/math (Depends-on): Add arg-nonnull.
32997         (Makefile.am): Insert arg-nonnull.h into math.h.
32998         * modules/netdb (Depends-on): Add arg-nonnull.
32999         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33000         * modules/search (Depends-on): Add arg-nonnull.
33001         (Makefile.am): Insert arg-nonnull.h into search.h.
33002         * modules/signal (Depends-on): Add arg-nonnull.
33003         (Makefile.am): Insert arg-nonnull.h into signal.h.
33004         * modules/spawn (Depends-on): Add arg-nonnull.
33005         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33006         * modules/stdio (Depends-on): Add arg-nonnull.
33007         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33008         * modules/stdlib (Depends-on): Add arg-nonnull.
33009         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33010         * modules/string (Depends-on): Add arg-nonnull.
33011         (Makefile.am): Insert arg-nonnull.h into string.h.
33012         * modules/strings (Depends-on): Add arg-nonnull.
33013         (Makefile.am): Insert arg-nonnull.h into strings.h.
33014         * modules/sys_socket (Depends-on): Add arg-nonnull.
33015         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33016         * modules/sys_stat (Depends-on): Add arg-nonnull.
33017         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33018         * modules/sys_time (Depends-on): Add arg-nonnull.
33019         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33020         * modules/sys_times (Depends-on): Add arg-nonnull.
33021         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33022         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33023         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33024         * modules/time (Depends-on): Add arg-nonnull.
33025         (Makefile.am): Insert arg-nonnull.h into time.h.
33026         * modules/unistd (Depends-on): Add arg-nonnull.
33027         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33028         * modules/wchar (Depends-on): Add arg-nonnull.
33029         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33030         * modules/argv-iter (Depends-on): Add arg-nonnull.
33031         * tests/test-canonicalize.c (null_ptr): New function.
33032         (main): Use it.
33033         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33034         (main): Use it.
33035         * tests/test-memmem.c (null_ptr): New function.
33036         (main): Use it.
33037         Reported by Jim Meyering.
33038
33039 2009-12-10  Bruno Haible  <bruno@clisp.org>
33040
33041         Use spaces for indentation, not tabs.
33042         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33043         * m4/*.m4: Untabify.
33044         * build-aux/*.h: Untabify.
33045         * tests/**/*.[hc]: Untabify.
33046         * README: New section "Indent with spaces, not TABs", based on
33047         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33048         * NEWS: Mention the change.
33049
33050 2009-12-10  Bruno Haible  <bruno@clisp.org>
33051
33052         pty test: Fix link error.
33053         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33054         test_pty_LDADD.
33055
33056 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33057
33058         * modules/pty: New file.
33059         * modules/pty-tests: New file.
33060         * m4/pty.m4: New file.
33061         * tests/test-pty.c: New file.
33062         * doc/glibc-headers/pty.texi: Modified.
33063         * doc/glibc-functions/forkpty.texi: Modified.
33064         * doc/glibc-functions/openpty.texi: Modified.
33065
33066 2009-12-10  Bruno Haible  <bruno@clisp.org>
33067
33068         Avoid syntax error in C++ mode.
33069         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33070
33071 2009-12-10  Bruno Haible  <bruno@clisp.org>
33072
33073         Use sed with option -e.
33074         * gnulib-tool (func_version, func_emit_copyright_notice,
33075         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33076         option -e to sed.
33077         * modules/link-warning (Makefile.am): Likewise.
33078
33079 2009-12-10  Jim Meyering  <meyering@redhat.com>
33080
33081         mgetgroups: do not write bytes beyond end of malloc'd buffer
33082         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33083         username, we call getgroups with a one-element-shorter buffer,
33084         but still told it the length was original, max_n_groups.
33085
33086 2009-12-09  Eric Blake  <ebb9@byu.net>
33087
33088         cloexec: relax license
33089         * modules/cloexec (Maintainer): Add myself.
33090         (License): Use LGPL, not GPL.
33091
33092         link-warning: optimize generation
33093         * modules/link-warning (Makefile.am): Reduce process usage.
33094
33095 2009-12-09  Bruno Haible  <bruno@clisp.org>
33096
33097         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33098         workaround was added on 2009-11-17.
33099
33100 2009-12-09  Jim Meyering  <meyering@redhat.com>
33101             Bruno Haible  <bruno@clisp.org>
33102
33103         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33104         * modules/link-warning (Makefile.am): Make the comment-removing sed
33105         command more robust in the face of bootstrap-prepended comment lines.
33106
33107 2009-12-09  Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33110         most one group.
33111
33112 2009-12-09  Simon Josefsson <simon@josefsson.org>
33113             Bruno Haible  <bruno@clisp.org>
33114
33115         * build-aux/link-warning.h: Add copyright notice.
33116         * modules/link-warning (Makefile.am): Generate link-warning.h from
33117         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33118         * NEWS: Mention change in link-warning module.
33119         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33120         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33121         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33122         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33123         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33124         * modules/math (Makefile.am): Add dependency to math.h.
33125         * modules/search (Makefile.am): Add dependency to search.h.
33126         * modules/signal (Makefile.am): Add dependency to signal.h.
33127         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33128         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33129         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33130         * modules/string (Makefile.am): Add dependency to string.h.
33131         * modules/strings (Makefile.am): Add dependency to strings.h.
33132         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33133         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33134         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33135         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33136         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33137         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33138         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33139         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33140         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33141
33142 2009-12-09  Bruno Haible  <bruno@clisp.org>
33143
33144         fchdir: Optimize away rpl_fstat when possible.
33145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33146         REPLACE_OPEN_DIRECTORY.
33147         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33148
33149 2009-12-09  Bruno Haible  <bruno@clisp.org>
33150
33151         * lib/fchdir.c: Update comment.
33152
33153 2009-12-09  Bruno Haible  <bruno@clisp.org>
33154
33155         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33156
33157 2009-12-08  Eric Blake  <ebb9@byu.net>
33158
33159         fchdir: avoid memory leak on re-registration.
33160         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33161
33162 2009-12-08  Jim Meyering  <meyering@redhat.com>
33163
33164         init.sh: avoid Solaris 10 /bin/sh portability problem
33165         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33166         sourced script:
33167           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33168           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33169           bar
33170         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33171         and two tests used that idiom.
33172         * tests/init.sh: Update suggested usage comments.
33173         (path_prepend_): New function, to be used in place
33174         of the --src-path=DIR option.
33175         (setup_): Move PATH-prepending code into path_prepend_.
33176         * tests/test-pread.sh: Adapt to new usage.
33177         * tests/test-xalloc-die.sh: Likewise.
33178
33179 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33180
33181         * doc/gnulib.texi (Glibc pty.h): Add.
33182         * doc/glibc-functions/forkpty.texi: Add.
33183         * doc/glibc-functions/openpty.texi: Add.
33184         Suggested by Bruno Haible.
33185
33186 2009-12-08  Eric Blake  <ebb9@byu.net>
33187
33188         fchdir: fix logic bugs
33189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33190         * tests/test-fchdir.c (main): Enhance test.
33191         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33192         is in use.
33193
33194         dup2: fix logic bugs
33195         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33196         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33197         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33198         exists.
33199         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33200
33201 2009-12-07  Eric Blake  <ebb9@byu.net>
33202
33203         unlink: fix m4 detection
33204         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33205
33206         unistd-safer: add unit test
33207         * modules/unistd-safer-tests: New file.
33208         * tests/test-dup-safer.c: Likewise.
33209         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33210         * tests/test-dup2.c (setmode): Likewise.
33211         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33212
33213         cloexec: preserve text vs. binary across dup_cloexec
33214         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33215         mode.
33216         * modules/dup2-tests (Depends-on): Add binary-io.
33217         * modules/cloexec-tests (Depends-on): Likewise.
33218         * tests/test-dup2.c (setmode, is_mode): New helpers.
33219         (main): Add tests that translation mode is preserved.
33220         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33221         Reported by Bruno Haible.
33222
33223         mgetgroups: reduce duplicate listings
33224         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33225         resulting array.
33226         * tests/test-chown.h (test_chown): Simplify client.
33227         * tests/test-lchown.h (test_lchown): Likewise.
33228
33229 2009-12-06  Bruno Haible  <bruno@clisp.org>
33230
33231         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33232         value.
33233
33234 2009-12-06  Bruno Haible  <bruno@clisp.org>
33235
33236         * lib/progname.c: Include stdio.h, stdlib.h.
33237         (set_program_name): Reject a NULL argument.
33238
33239 2009-12-05  Eric Blake  <ebb9@byu.net>
33240
33241         pipe2-safer: new module
33242         * modules/pipe2-safer: New file.
33243         * lib/unistd-safer.h (pipe2_safer): New prototype.
33244         * lib/unistd--.h (pipe2): New wrapper.
33245         * lib/pipe-safer.c (pipe2_safer): New function.
33246         * modules/pipe (Depends-on): Add pipe2-safer.
33247         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33248
33249         stdlib-safer: preserve cloexec flag for mkostemp[s]
33250         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33251         fd_safer_flag.
33252
33253         unistd-safer: allow preservation of cloexec status via flag
33254         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33255         prototypes.
33256         * lib/dup-safer.c (dup_safer_flag): New function.
33257         * lib/fd-safer.c (fd_safer_flag): Likewise.
33258         * modules/cloexec (configure.ac): Set witness.
33259
33260         test-dup2: enhance test
33261         * modules/dup2-tests (Depends-on): Add cloexec.
33262         * tests/test-dup2.c (main): Enhance test.
33263
33264         cloexec: add dup_cloexec
33265         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33266         header and comments.
33267         * lib/cloexec.c (set_cloexec_flag): Add comments.
33268         (dup_cloexec): New function, with mingw implementation borrowed
33269         from...
33270         * lib/w32spawn.h (dup_noinherit): ...here.
33271         * modules/execute (Depends-on): Add cloexec.
33272         * modules/pipe (Depends-on): Likewise.
33273         * modules/cloexec (Depends-on): Add dup2.
33274         * modules/cloexec-tests (Files): New file.
33275         * tests/test-cloexec.c: Likewise.
33276
33277         test-xalloc-die: fix test for mingw
33278         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33279         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33280         directory and .exe suffix off argv[0] output.
33281
33282         test-fseeko: fix test for mingw
33283         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33284         than undefining fseek, so test will pass on mingw.
33285
33286 2009-12-05  Bruno Haible  <bruno@clisp.org>
33287
33288         * lib/progname.h (set_program_name): Clarify specification.
33289         * lib/progname.c (set_program_name): Likewise.
33290         Reported by Jim Meyering.
33291
33292 2009-12-05  Jim Meyering  <meyering@redhat.com>
33293
33294         maint.mk: backslash-escape parens in default regexp
33295         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33296         backslash-escape the literal parentheses.
33297
33298         maint.mk: news-date-check: use grep -E
33299         * top/maint.mk (today): Define a Make variable, not a...
33300         (news-date-check): ...shell variable.
33301         (news-date-regexp): Use the Make variable.
33302         Use grep's -E option.  Change the failing diagnostic to mention
33303         the variable, $(news-date-regexp).
33304
33305 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33306
33307         maintainer-makefile: allow customization of NEWS entry format
33308         * top/maint.mk (news-date-regexp): New overridable variable.
33309         (news-date-check): Use it.
33310
33311 2009-12-04  Eric Blake  <ebb9@byu.net>
33312
33313         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33314         * lib/mgetgroups.h (xgetgroups): New prototype.
33315         * lib/mgetgroups.c (xgetgroups): New wrapper.
33316         (mgetgroups): Handle ENOSYS.
33317         * modules/mgetgroups (Depends-on): Add realloc.
33318         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33319
33320         mgetgroups: avoid argument promotion issues with -1
33321         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33322         for invalid gid_t.
33323         * tests/test-chown.h (getegid, test_chown): Likewise.
33324         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33325
33326 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33327
33328         exclude: Fix header file problems.
33329         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33330
33331 2009-12-01  Jim Meyering  <meyering@redhat.com>
33332
33333         fts: fts_open: do not let an empty string cause immediate failure
33334         This is required in support of GNU rm, for which the command
33335         "rm A '' B" must process and remove both A and B, in spite of
33336         the empty string argument.
33337         * lib/fts.c (fts_open): Do not let the presence of an empty string
33338         cause fts_open to fail immediately.  Most fts-using tools must be
33339         able to process all arguments, in order, and can be expected to
33340         diagnose such arguments themselves.
33341
33342 2009-11-30  Eric Blake  <ebb9@byu.net>
33343
33344         utimens: fix compilation error
33345         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33346         Declare variable at right scope.
33347
33348 2009-11-29  Jim Meyering  <meyering@redhat.com>
33349
33350         bootstrap: handle perl-5.11's changed --version output
33351         * build-aux/bootstrap (get_version): Handle perl separately,
33352         since perl-5.11's --version output is different.
33353
33354 2009-11-28  Jim Meyering  <meyering@redhat.com>
33355
33356         userspec: depend on the inttostr module, too
33357         * modules/userspec (Depends-on): Add inttostr.
33358
33359         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33360         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33361         number of MAXUID when it evaluates to (uid_t) -1.
33362         Likewise for group ID.  Reported by Matt McCutchen in
33363         <http://savannah.gnu.org/bugs/?28113>
33364
33365         userspec: reformat to use spaces, not TABs
33366         * lib/userspec.c: Expand TABs to spaces.
33367         Add Emacs' "indent-tabs-mode: nil" hint.
33368
33369 2009-11-27  Eric Blake  <ebb9@byu.net>
33370
33371         getopt-gnu: flush out another BSD bug
33372         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33373         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33374         flush out BSD bug.
33375         * tests/test-getopt.h (test_getopt): End lists with NULL.
33376         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33377         (test_getopt_long_posix): Enhance test.
33378         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33379         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33380         getopt-gnu.
33381         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33382         Likewise.
33383
33384 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33385
33386         * modules/idpriv-droptemp-tests (Notice): Fix text.
33387
33388 2009-11-27  Jim Meyering  <meyering@redhat.com>
33389
33390         test-xalloc-die: avoid spurious failure due to libtool argv difference
33391         In a libtool-enabled project, this test would fail due to a difference
33392         in the emitted program name, e.g.,
33393         -test-xalloc-die: memory exhausted
33394         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33395         Use program to avoid that.
33396         * modules/xalloc-die-tests (Depends-on): Add progname.
33397         * tests/test-xalloc-die.c: Include progname.h".
33398         (program_name): Remove decl.
33399         (main): Call set_program_name.
33400         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33401
33402 2009-11-26  Richard Jones  <rjones@redhat.com>
33403
33404         w32sock: leave win32 error in place.
33405         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33406
33407 2009-11-26  Eric Blake  <ebb9@byu.net>
33408
33409         init.sh: suggest to use skip_ and fail_ functions in comments
33410         * tests/init.sh: Add a sentence.
33411
33412 2009-11-25  Bruno Haible  <bruno@clisp.org>
33413
33414         init.sh: add documentation in comments
33415         * tests/init.sh: Add some developer and user documentation.
33416
33417 2009-11-26  Jim Meyering  <meyering@redhat.com>
33418
33419         init.sh: accommodate even those who specify bogus srcdir manually
33420         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33421         configure-time tests to be sanitized, so that there is no need to
33422         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33423         (with no double quotes) suffices.  However, since tests may be
33424         invoked manually, and since you may explicitly set srcdir to the
33425         name of a directory containing spaces, do quote its uses here.
33426         * tests/test-pread.sh: Likewise.
33427         Suggested by Bruno Haible.
33428
33429         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33430         * tests/test-pread.sh: Write no data into the pipe, because
33431         test-pread actually reads none.  This avoids a diagnostic,
33432         "bash: echo: write error: Broken pipe", that arises in the unusual
33433         event something is ignoring SIGPIPE, and might be interpreted
33434         as some sort of failure.  Reported by Bruno Haible.
33435
33436 2009-11-25  Jim Meyering  <meyering@redhat.com>
33437
33438         test-pread: cover failure with ESPIPE and EINVAL
33439         * tests/test-pread.c (main): Test for failure, too.
33440         * tests/test-pread.sh: Invoke with stdin on a pipe.
33441         Suggested by Eric Blake.
33442
33443         pread: improvement and fix
33444         * modules/pread (Depends-on): Depend on lseek, for portability to
33445         e.g., mingw.  Suggested by Eric Blake.
33446         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33447
33448         unistd.in.h: correct declaration of pread
33449         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33450         Reported by Richard W.M. Jones.
33451
33452         test-pread.sh: distribute the test script
33453         * modules/pread-tests (Files): Include test-pread.sh.
33454
33455         test-pread.sh: clean up
33456         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33457         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33458         That is unnecessary, since it's always ".".
33459         Suggestion from Eric Blake.
33460
33461         test-pread.sh: make executable
33462         * tests/test-pread.sh: Set executable bit.
33463         Reported by Eric Blake.
33464
33465         correct typo in test-pread.sh
33466         * tests/test-pread.sh: Add #! line.
33467
33468         test pread
33469         * tests/test-pread.c: New file.
33470         * tests/test-pread.sh: Likewise.
33471         * modules/pread-tests: Likewise.
33472
33473         pread: new module
33474         * modules/pread: New file.
33475         * lib/unistd.in.h (pread): Define/declare.
33476         * lib/pread.c (pread): New file.
33477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33478         * modules/unistd (Makefile.am): Substitute witnesses.
33479         * doc/posix-functions/pread.texi (pread): Update.
33480         * MODULES.html.sh: Add pread.
33481
33482 2009-11-25  Jim Meyering  <meyering@redhat.com>
33483
33484         tests/init.sh: new file to be used via most *.sh tests
33485         * tests/init.sh: New file.
33486
33487 2009-11-25  Eric Blake  <ebb9@byu.net>
33488
33489         utimens: work around older Linux failure with symlinks
33490         * lib/utimens.c (lutimensat_works_really): New variable.
33491         (fdutimens, lutimens): Use it to manage kernels that support
33492         nanosecond times on files, but not on symlinks.
33493         Reported by Ondřej Vašík.
33494
33495         utimes: fix configure grammar
33496         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33497
33498 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33499
33500         regex: Fix fastmap for multibyte character ranges.
33501         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33502         characters when a multibyte character range is included.
33503
33504 2009-11-22  Andy Wingo  <wingo@pobox.com>
33505
33506         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33507         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33508
33509 2009-11-24  Bruno Haible  <bruno@clisp.org>
33510
33511         doc: Most *_l functions exist in MacOS X 10.5.
33512         * doc/posix-functions/duplocale.texi: Update platforms list.
33513         * doc/posix-functions/freelocale.texi: Likewise.
33514         * doc/posix-functions/newlocale.texi: Likewise.
33515         * doc/posix-functions/uselocale.texi: Likewise.
33516         * doc/posix-functions/isalnum_l.texi: Likewise.
33517         * doc/posix-functions/isalpha_l.texi: Likewise.
33518         * doc/posix-functions/isblank_l.texi: Likewise.
33519         * doc/posix-functions/iscntrl_l.texi: Likewise.
33520         * doc/posix-functions/isdigit_l.texi: Likewise.
33521         * doc/posix-functions/isgraph_l.texi: Likewise.
33522         * doc/posix-functions/islower_l.texi: Likewise.
33523         * doc/posix-functions/isprint_l.texi: Likewise.
33524         * doc/posix-functions/ispunct_l.texi: Likewise.
33525         * doc/posix-functions/isspace_l.texi: Likewise.
33526         * doc/posix-functions/isupper_l.texi: Likewise.
33527         * doc/posix-functions/iswalnum_l.texi: Likewise.
33528         * doc/posix-functions/iswalpha_l.texi: Likewise.
33529         * doc/posix-functions/iswblank_l.texi: Likewise.
33530         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33531         * doc/posix-functions/iswctype_l.texi: Likewise.
33532         * doc/posix-functions/iswdigit_l.texi: Likewise.
33533         * doc/posix-functions/iswgraph_l.texi: Likewise.
33534         * doc/posix-functions/iswlower_l.texi: Likewise.
33535         * doc/posix-functions/iswprint_l.texi: Likewise.
33536         * doc/posix-functions/iswpunct_l.texi: Likewise.
33537         * doc/posix-functions/iswspace_l.texi: Likewise.
33538         * doc/posix-functions/iswupper_l.texi: Likewise.
33539         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33540         * doc/posix-functions/isxdigit_l.texi: Likewise.
33541         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33542         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33543         * doc/posix-functions/strcoll_l.texi: Likewise.
33544         * doc/posix-functions/strfmon_l.texi: Likewise.
33545         * doc/posix-functions/strftime_l.texi: Likewise.
33546         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33547         * doc/posix-functions/strxfrm_l.texi: Likewise.
33548         * doc/posix-functions/tolower_l.texi: Likewise.
33549         * doc/posix-functions/toupper_l.texi: Likewise.
33550         * doc/posix-functions/towctrans_l.texi: Likewise.
33551         * doc/posix-functions/towlower_l.texi: Likewise.
33552         * doc/posix-functions/towupper_l.texi: Likewise.
33553         * doc/posix-functions/wcscoll_l.texi: Likewise.
33554         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33555         * doc/posix-functions/wctrans_l.texi: Likewise.
33556         * doc/posix-functions/wctype_l.texi: Likewise.
33557         * doc/glibc-functions/strptime_l.texi: Likewise.
33558         * doc/glibc-functions/strtod_l.texi: Likewise.
33559         * doc/glibc-functions/strtof_l.texi: Likewise.
33560         * doc/glibc-functions/strtol_l.texi: Likewise.
33561         * doc/glibc-functions/strtold_l.texi: Likewise.
33562         * doc/glibc-functions/strtoll_l.texi: Likewise.
33563         * doc/glibc-functions/strtoul_l.texi: Likewise.
33564         * doc/glibc-functions/strtoull_l.texi: Likewise.
33565         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33566         * doc/glibc-functions/wcstod_l.texi: Likewise.
33567         * doc/glibc-functions/wcstof_l.texi: Likewise.
33568         * doc/glibc-functions/wcstol_l.texi: Likewise.
33569         * doc/glibc-functions/wcstold_l.texi: Likewise.
33570         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33571         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33572         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33573
33574 2009-11-24  Bruno Haible  <bruno@clisp.org>
33575
33576         duplocale: Fix logic bug.
33577         * lib/duplocale.c: Don't include <langinfo.h>.
33578         (_NL_LOCALE_NAME): Remove macro.
33579         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33580         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33581
33582 2009-11-23  Jim Meyering  <meyering@redhat.com>
33583
33584         test-update-copyright: don't hard-code /usr/bin/perl
33585         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33586         perl to print the current year.  Gilles Espinasse reported that
33587         the replaced use of perl was hard-coded as /usr/bin/perl.
33588
33589 2009-11-23  Bruno Haible  <bruno@clisp.org>
33590
33591         duplocale: Add support for glibc 2.3.x.
33592         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33593
33594 2009-11-22  Bruno Haible  <bruno@clisp.org>
33595
33596         vasnprintf: Tiny optimization.
33597         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33598         MacOS X.
33599
33600 2009-11-22  Bruno Haible  <bruno@clisp.org>
33601
33602         Tests for module 'duplocale'.
33603         * modules/duplocale-tests: New file.
33604         * tests/test-duplocale.c: New file.
33605
33606         New module 'duplocale'.
33607         * m4/duplocale.m4: New file.
33608         * lib/locale.in.h (duplocale): New declaration.
33609         * lib/duplocale.c: New file.
33610         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33611         gl_LOCALE_H_DEFAULTS): New macros.
33612         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33613         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33614         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33615         REPLACE_DUPLOCALE.
33616         * modules/duplocale: New file.
33617         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33618
33619 2009-11-22  Bruno Haible  <bruno@clisp.org>
33620
33621         * modules/locale-tests (configure.ac): Test for newlocale function.
33622         * tests/test-locale.c: When the system has extended locale functions,
33623         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33624
33625         locale: Make locale_t available when possible.
33626         * lib/locale.in.h: Include <xlocale.h> when it exists.
33627         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33628         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33629         * modules/locale (Depends-on): Add extensions.
33630         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33631         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33632
33633 2009-11-22  Bruno Haible  <bruno@clisp.org>
33634
33635         Add comments.
33636         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33637         invocation.
33638         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33639         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33640         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33641
33642 2009-11-22  Bruno Haible  <bruno@clisp.org>
33643
33644         error: account for the possibility of freopen (stdout).
33645         * lib/error.c: Include <unistd.h>.
33646         (flush_stdout): New function, extracted from error and error_at_line.
33647         Determine stdout's fd dynamically.
33648         (error, error_at_line): Invoke flush_stdout.
33649         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33650         * modules/error (Depends-on): Add unistd.
33651
33652 2009-11-22  Bruno Haible  <bruno@clisp.org>
33653
33654         diffseq: Add comment.
33655         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33656
33657 2009-11-22  Jim Meyering  <meyering@redhat.com>
33658
33659         c-stack: avoid defining an unused static function
33660         * lib/c-stack.c (find_stack_direction): Do not define this function
33661         when it will not be used.
33662
33663         diffseq: avoid spurious gcc warnings
33664         * lib/diffseq.h (IF_LINT2): Define.
33665         (compareseq): Use it to initialize two members of "part".
33666         This avoids two used-uninitialized warnings.
33667
33668 2009-11-21  Jim Meyering  <meyering@redhat.com>
33669
33670         c-stack: avoid "ignoring return value of `write'" warning
33671         * lib/c-stack.c: Include "ignore-value.h".
33672         (die): Explicitly ignore each write return value.
33673         * modules/c-stack (Depends-on): Add ignore-value.
33674
33675 2009-11-21  Bruno Haible  <bruno@clisp.org>
33676
33677         diffseq: reduce scope of variable 'best'.
33678         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33679         variable, earlier used for two different purposes.
33680
33681 2009-11-21  Jim Meyering  <meyering@redhat.com>
33682
33683         diffseq: remove useless assignment to "best"
33684         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33685         assignment.  At that point "best" is already guaranteed to be zero.
33686
33687 2009-11-20  Eric Blake  <ebb9@byu.net>
33688
33689         build: mention ftp redirector in release announcements
33690         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33691         values that used to come from cfg.mk; mention FTP redirect URL.
33692         * build-aux/announce-gen: Mention the mirror list.
33693         Suggested by Karl Berry.
33694
33695         nanosleep: improve port to mingw
33696         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33698         LIB_NANOSLEEP, but only when needed.
33699         * modules/select (Link): Document LIBSOCKET.
33700         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33701         enough.
33702
33703         nanosleep: work around cygwin bug
33704         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33705         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33706         bug.
33707         (getnow): Delete, not needed.
33708         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33709         LIB_CLOCK_GETTIME.
33710         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33711         clock-time, gettime.
33712         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33713         bug.
33714         * modules/nanosleep-tests: New test.
33715         * tests/test-nanosleep.c: New file.
33716
33717         sleep: work around cygwin bug
33718         * lib/sleep.c (rpl_sleep): Work around the bug.
33719         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33720         (gl_PREREQ_SLEEP): Delete unused macro.
33721         * modules/sleep (Depends-on): Add verify.
33722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33723         * modules/unistd (Makefile.am): Substitute witness.
33724         * lib/unistd.in.h (sleep): Update prototype.
33725         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33726         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33727         * modules/sleep-tests (Depends-on): Check for alarm.
33728
33729 2009-11-20  Jim Meyering  <meyering@redhat.com>
33730
33731         maint.mk: improve sc_prohibit_magic_number_exit
33732         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33733         so it does not match uses like System.exit(1).
33734         Add comments showing how to correct all offenders.
33735
33736 2009-11-19  Eric Blake  <ebb9@byu.net>
33737
33738         xalloc-die-tests: add missing library
33739         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33740
33741         test-xvasprintf: silence compiler warnings
33742         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33743         empty string from gcc.
33744
33745 2009-11-19  Jim Meyering  <meyering@redhat.com>
33746
33747         xfreopen: new module, from coreutils
33748         * modules/xfreopen: New module.
33749         * lib/xfreopen.c: New file.
33750         * lib/xfreopen.h: New file.
33751         * MODULES.html.sh (File stream based Input/Output"): Add it.
33752
33753 2009-11-19  Eric Blake  <ebb9@byu.net>
33754
33755         manywarnings: depend on warnings
33756         * modules/manywarnings (Depends-on): Add warnings.
33757
33758         build: avoid compiler warnings
33759         * lib/select.c (rpl_select): Delete unused variable.
33760         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33761
33762 2009-11-18  Eric Blake  <ebb9@byu.net>
33763
33764         tests: avoid false negative with --with-packager
33765         * tests/test-version-etc.sh: Discard packager information.
33766         * tests/test-argp-version-etc-1.sh: Likewise.
33767         Reported by Mike Frysinger.
33768
33769         utimens: fix regression on Solaris
33770         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33771         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33772         can only change fd timestamps via futimesat.  Instead, use an
33773         additional witness macro to avoid BSD bug.
33774         Reported by Jim Meyering.
33775
33776 2009-11-17  Eric Blake  <ebb9@byu.net>
33777
33778         usleep: use it to simplify tests
33779         * modules/stat-time-tests (Depends-on): Add usleep.
33780         (configure.ac): Drop usleep check.
33781         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33782         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33783         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33784         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33785         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33786         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33787         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33788         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33789         Likewise.
33790         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33791         * tests/test-lchown.h (nap): Likewise.
33792         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33793         * tests/test-stat-time.c (nap): Likewise.
33794         * tests/test-utimens-common.h (nap): Update comments.
33795
33796         usleep: new module
33797         * modules/usleep: New file.
33798         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33799         * lib/usleep.c (usleep): Likewise.
33800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33801         * modules/unistd (Makefile.am): Substitute witnesses.
33802         * lib/unistd.in.h (usleep): Add declaration.
33803         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33804         * MODULES.html.sh (Date and time): Likewise.
33805         * modules/usleep-tests (Depends-on): New test.
33806         * tests/test-usleep.c: New file.
33807
33808         chown: work around OpenBSD bug
33809         * lib/chown.c (rpl_chown): Work around the bug.
33810         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33811         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33812         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33813         * modules/chown (Depends-on): Add stdbool.
33814         * modules/lchown (Depends-on): Likewise.
33815         * doc/posix-functions/chown.texi (chown): Document the bug.
33816         * doc/posix-functions/lchown.texi (lchown): Likewise.
33817         * tests/test-lchown.h (test_chown): Relax test.
33818
33819         mkstemp: avoid conflict with C++ keyword template
33820         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33821         * lib/mkostemp.c (mkostemp): Likewise.
33822         * lib/mkostemps.c (mkostemps): Likewise.
33823         * lib/mkstemp.c (mkstemp): Likewise.
33824         * lib/mkstemps.c (mkstemps): Likewise.
33825
33826         xalloc-die-tests: optimize
33827         * tests/test-xalloc-die.sh: Reduce number of processes.
33828
33829 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33830
33831         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33832         patch from ludo@gnu.org (Ludovic Courtès).
33833
33834 2009-11-17  Jim Meyering  <meyering@redhat.com>
33835
33836         version-etc: use proper license string
33837         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33838         * modules/version-etc-fsf: Likewise.
33839
33840 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33841
33842         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33843         printed to stdout.  Deal with EOL differences.
33844
33845 2009-11-17  Eric Blake  <ebb9@byu.net>
33846
33847         unsetenv: work around Solaris bug
33848         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33849         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33850         Reported by Jim Meyering.
33851
33852         vasnprintf: avoid compiler warnings
33853         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33854         variables.
33855         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33856
33857 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33858
33859         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33860         settings since xalloc-die is no longer the self test,
33861         xalloc-die.sh is.
33862
33863 2009-11-17  Jim Meyering  <meyering@redhat.com>
33864
33865         test-xalloc-die.sh: make the code agree with the commit log
33866         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33867         at the end, just in case you happen to have a test-xalloc-die
33868         program in some other PATH directory.
33869
33870         test-xalloc-die.sh: fix a portability bug
33871         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33872         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33873         Otherwise, argv[0] (as often seen in diagnostics) would be too
33874         system-dependent, sometimes with, and sometimes without the leading "./".
33875
33876         version-etc-fsf: relax license to LGPLv3+
33877         * modules/version-etc-fsf (License): Relax license.
33878
33879 2009-11-16  Eric Blake  <ebb9@byu.net>
33880
33881         xalloc-die-tests: avoid printing null pointer
33882         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33883         shell script.
33884         * tests/test-xalloc-die.c (program_name): Declare.
33885         * tests/test-xalloc-die.sh (tmpfiles): New file.
33886
33887         setenv, unsetenv: work around various bugs
33888         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33889         (setenv) [HAVE_SETENV]: Work around bugs.
33890         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33891         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33892         for bugs.
33893         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33894         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33896         * modules/stdlib (Makefile.am): Update substitutions.
33897         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33898         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33899         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33900         * modules/setenv-tests: New test.
33901         * modules/unsetenv-tests: Likewise.
33902         * tests/test-setenv.c: New file.
33903         * tests/test-unsetenv.c: Likewise.
33904
33905 2009-11-16  Jim Meyering  <meyering@redhat.com>
33906
33907         version-etc: relax license to LGPLv3+
33908         * modules/version-etc (License): Relax license.
33909
33910         better AC_REQUIRE expanded-before-required-warning avoidance
33911         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33912         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33913         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33914         which is no longer needed.
33915
33916 2009-11-16  Eric Blake  <ebb9@byu.net>
33917
33918         test-freading: clean up temporary file
33919         * tests/test-freading.c (main): Remove file on success, and use
33920         ASSERT more liberally.
33921         Reported by Jim Meyering.
33922
33923 2009-11-16  Jim Meyering  <meyering@redhat.com>
33924
33925         avoid new AC_REQUIRE expanded-before-required warnings
33926         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33927         merely using it.
33928         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33929         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33930
33931 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33932
33933         * tests/test-xalloc-die.c: New file.
33934         * modules/xalloc-die-tests: New file.
33935         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33936         XFAIL_TESTS so it can be appended by modules.
33937
33938 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33939
33940         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33941         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33942
33943 2009-11-14  Eric Blake  <ebb9@byu.net>
33944
33945         fnmatch: avoid compiler warning
33946         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33947         to silence compiler warning about mismatch signedness in ?:.
33948         Reported by Robert Millan.
33949
33950         intprops: add double-inclusion guard
33951         * lib/intprops.h: Allow idempotent includes.
33952         Suggested by Bruce Korb.
33953
33954         openat: detect Solaris fchownat bug
33955         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33956         penalizing glibc chownat when only lchownat is broken.
33957         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33958         trailing slash bugs.
33959         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33960         * modules/openat-tests (Files): Include more files.
33961         (Depends-on): Add mgetgroups, sleep, stat-time.
33962         (configure.ac): Add additional checks.
33963         (Makefile.am): Build new test.
33964         * tests/test-fchownat.c: New file.
33965
33966         lchown: detect Solaris and FreeBSD bug
33967         * lib/lchown.c (rpl_lchown): Work around bug.
33968         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33970         * modules/unistd (Makefile.am): Populate it.
33971         * lib/unistd.in.h (lchown): Update declaration.
33972         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33973         * modules/lchown-tests: New file.
33974         * tests/test-lchown.h (test_lchown): Likewise.
33975         * tests/test-lchown.c (main): Likewise.
33976
33977         chown: detect Solaris and FreeBSD bug
33978         * lib/chown.c (rpl_chown): Work around bug.
33979         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33980         (gl_PREREQ_CHOWN): Delete.
33981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33982         * modules/unistd (Makefile.am): Populate it.
33983         * lib/unistd.in.h (chown): Update declaration.
33984         * lib/lchown.c (chown): Update client.
33985         * modules/lchown (Depends-on): Add lstat.
33986         * doc/posix-functions/chown.texi (chown): Document the bug.
33987         * doc/posix-functions/getgroups.texi (getgroups): Document
33988         getgroups pitfall.
33989         * modules/chown-tests: New file.
33990         * tests/test-chown.h (test_chown): Likewise.
33991         * tests/test-chown.c (main): Likewise.
33992
33993 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33994
33995         gnulib-tool: correctly detect absence of m4 directories
33996         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33997
33998 2009-11-14  Jim Meyering  <meyering@redhat.com>
33999
34000         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34001         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34002
34003 2009-11-14  John W. Eaton  <jwe@gnu.org>
34004
34005         strftime.h: wrap funtion declaration in extern "C" block
34006         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34007
34008 2009-11-13  Eric Blake  <ebb9@byu.net>
34009
34010         getgroups: avoid compiler warning
34011         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34012
34013         getgroups: work around FreeBSD bug
34014         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34015         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34016         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34017         * tests/test-getgroups.c (main): Fix buffer overrun.
34018
34019         getgroups: avoid compilation failure
34020         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34021         * modules/getgroups (Depends-on): Add stdint.
34022
34023 2009-11-13  Jim Meyering  <meyering@redhat.com>
34024
34025         test-getgroups: avoid compilation failure
34026         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34027
34028 2009-11-13  Eric Blake  <ebb9@byu.net>
34029
34030         mgetgroups: new module, taken from coreutils
34031         * modules/mgetgroups: New file.
34032         * lib/mgetgroups.h: Likewise.
34033         * lib/mgetgroups.c (mgetgroups): Likewise.
34034         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34035         * MODULES.html.sh (Users and groups): Mention it.
34036
34037         getgroups: don't expose GETGROUPS_T to user
34038         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34039         an element at a time if GETGROUPS_T is wrong size.
34040         * lib/getugroups.h (getugroups): Change signature.
34041         * lib/unistd.in.h (getgroups): Likewise.
34042         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34043         signature needs fixing.
34044         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34045         AC_TYPE_GETGROUPS.
34046         * modules/group-member (Depends-on): Add getgroups.
34047         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34048         (group_member): Rely on getgroups replacement.
34049         * lib/getugroups.c (getugroups): Use gid_t.
34050         * tests/test-getgroups.c (main): Likewise.
34051         * NEWS: Mention the signature change.
34052         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34053         problem with signature.
34054         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34055         GETGROUPS_T is still useful for setgroups.
34056
34057         getgroups, getugroups: provide stubs for mingw
34058         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34059         * lib/getugroups.c (getugroups): Likewise.
34060         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34061         function.  Modernize replacement scheme.
34062         (gl_PREREQ_GETGROUPS): Delete.
34063         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34064         * modules/getgroups (configure.ac): Declare witness.
34065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34066         * modules/unistd (Depends-on): Substitute witness.
34067         * lib/unistd.in.h (getgroups): Declare replacement.
34068
34069         getgroups: avoid calling exit
34070         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34071         drop xalloc.
34072         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34073         dependencies.
34074         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34075         exiting, in the rare case of malloc failure.
34076
34077         getgroups: fix logic error
34078         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34079         has more than 20 groups.
34080         * modules/getgroups-tests: New test.
34081         * tests/test-getgroups.c: New file.
34082
34083 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34084
34085         * tests/test-base64.c: Improve.
34086
34087 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34088
34089         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34090         Blake <ebb9@byu.net>.
34091
34092 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34093
34094         * tests/test-xvasprintf.c: Add %s%s related checks.
34095
34096 2009-11-12  Eric Blake  <ebb9@byu.net>
34097
34098         version-etc: match standards.texi style
34099         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34100         and use <> only for URLs.
34101
34102 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34103
34104         fts: do not fail on a submount during traversal
34105         * lib/fts.c (fts_build): Read the stat info again after opening
34106         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34107         Original report at http://bugzilla.redhat.com/501848.
34108
34109 2009-11-12  Jim Meyering  <meyering@redhat.com>
34110
34111         bootstrap: sync from coreutils
34112         * build-aux/bootstrap (bootstrap_epilogue): New function.
34113         Use git_modules_config in one more place.  This make bootstrap's
34114         --gnulib-srcdir option more useful for testing.
34115
34116         bootstrap: generalize autoheader check
34117         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34118         AC_CONFIG_HEADERS.
34119
34120 2009-11-11  Eric Blake  <ebb9@byu.net>
34121
34122         mkfifoat: use new modules for Solaris and BSD bugs
34123         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34124         * lib/mkfifoat.c (mknodat): Split...
34125         * lib/mknodat.c (mknodat): ...into new file.
34126         * modules/mkfifoat (Files): Ship new file.
34127         (Depends-on): Add mkfifo, mknod.
34128         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34129         (Depends-on): Add symlink.
34130         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34131         redundant with test_mkfifo.h.
34132         (do_mkfifoat, do_mknodat): New helpers.
34133
34134         mknod: new module
34135         * modules/mknod: New file.
34136         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34137         * lib/mknod.c (mknod): Likewise.
34138         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34139         defaults.
34140         * modules/sys_stat (Makefile.am): Substitute them.
34141         * lib/sys_stat.in.h (mknod): Declare replacement.
34142         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34143         Document it.
34144         * doc/posix-functions/mknod.texi (mknod): Likewise.
34145         * modules/mknod-tests: New test.
34146         * tests/test-mknod.c: Likewise.
34147
34148         mkfifo: new module
34149         * modules/mkfifo: New file.
34150         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34151         * lib/mkfifo.c (mkfifo): Likewise.
34152         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34153         defaults.
34154         * modules/sys_stat (Makefile.am): Substitute them.
34155         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34156         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34157         Document it.
34158         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34159         * modules/mkfifo-tests: New test.
34160         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34161         from test-mkfifoat.c.
34162         * tests/test-mkfifo.c: New file.
34163
34164         readlink: detect FreeBSD bug
34165         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34166         slash on symlink.
34167         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34168         * tests/test-readlink.h (test_readlink): Enhance test.
34169
34170         symlink: detect FreeBSD bug
34171         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34172         slash on symlink.
34173         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34174         * tests/test-symlink.h (test_symlink): Enhance test.
34175
34176 2009-11-10  Eric Blake  <ebb9@byu.net>
34177
34178         link: detect FreeBSD bug
34179         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34180         symlink.
34181         * doc/posix-functions/link.texi (link): Document the bug.
34182         * tests/test-link.h (test_link): Enhance test.
34183         * tests/test-linkat.c (main): Update caller.
34184
34185         unlink, remove: detect FreeBSD bug
34186         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34187         slash on symlink.
34188         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34189         * doc/posix-functions/remove.texi (remove): Likewise.
34190         * tests/test-unlink.h (test_unlink): Enhance test.
34191         * tests/test-remove.c (main): Likewise.
34192
34193 2009-11-09  Eric Blake  <ebb9@byu.net>
34194
34195         rename: detect FreeBSD bug
34196         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34197         slash on symlink.
34198         * modules/renameat-tests (Depends-on): Add filenamecat.
34199         * tests/test-rename.h (test_rename): Allow one more errno.
34200         * tests/test-renameat.c (main): Likewise.
34201         * doc/posix-functions/rename.texi (rename): Document the bug.
34202
34203         open: detect FreeBSD bug
34204         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34205         symlink.
34206         * doc/posix-functions/open.texi (open): Document the bug.
34207         * doc/posix-functions/utimes.texi (utimes): Likewise.
34208         * tests/test-open.h (test_open): Add parameters, and test symlink
34209         handling.
34210         * tests/test-open.c (main): Adjust caller.
34211         * tests/test-fcntl-safer.c (main): Likewise.
34212         * modules/open-tests (Depends-on): Add stdbool, symlink.
34213         * modules/fcntl-safer-tests (Depends-on): Likewise.
34214         * tests/test-openat.c (main): Add test-open tests.
34215
34216         stat: detect FreeBSD bug
34217         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34218         symlink.
34219         * doc/posix-functions/stat.texi (stat): Document the bug.
34220         * tests/test-stat.h (test_stat_func): Add argument.
34221         * tests/test-stat.c (main): Adjust caller.
34222         * tests/test-fstatat.c (main): Likewise.
34223         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34224         Reported by Jim Meyering.
34225
34226 2009-11-09  James Youngman  <jay@gnu.org>
34227
34228         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34229         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34230
34231 2009-11-08  Jim Meyering  <meyering@redhat.com>
34232
34233         utimens: remove invalid futimesat call
34234         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34235         It used the file descriptor of the target file as the DIR_FD
34236         parameter and NULL as the file name.  That caused failure with
34237         errno == EFAULT on FreeBSD-8.0-rc2
34238
34239 2009-11-07  Eric Blake  <ebb9@byu.net>
34240
34241         fflush, freadseek: use fseeko, not fseek
34242         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34243         (clear_ungetc_buffer): Avoid potential problems on large files.
34244         * lib/freadseek.c (freadseek): Likewise.
34245         * modules/freadseek (Depends-on): Add fseeko.
34246         * modules/fseek (configure.ac): Set a witness.
34247         * tests/test-fflush.c (main): Use fseeko.
34248         * tests/test-fpurge.c (fseek): Disable link warning.
34249         * tests/test-freadable.c (fseek): Likewise.
34250         * tests/test-freading.c (fseek): Likewise.
34251         * tests/test-fseeko.c (fseek): Likewise.
34252         * tests/test-ftell.c (fseek): Likewise.
34253         * tests/test-ftello.c (fseek): Likewise.
34254         * tests/test-fwritable.c (fseek): Likewise.
34255         * tests/test-fwriting.c (fseek): Likewise.
34256
34257 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34258
34259         * modules/memchr (Depends-on): Drop getpagesize dependency.
34260
34261 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34262
34263         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34264         Reported by Ludovic Courtès.
34265         * build-aux/pmccabe2html: Improve example usage.
34266         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34267
34268 2009-11-06  Jim Meyering  <meyering@redhat.com>
34269
34270         do-release-commit-and-tag: New module.
34271         Automate the release-commit and tag process.
34272         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34273         * modules/do-release-commit-and-tag: New file.
34274         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34275
34276 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34277
34278         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34279         because test-select.c uses inet_pton.
34280
34281 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34282
34283         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34284         GETADDRINFO_LIB.  Bump serial number.
34285         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34286         Suggested by Eric Blake <ebb9@byu.net>.
34287
34288 2009-11-05  Eric Blake  <ebb9@byu.net>
34289
34290         strtod: detect darwin bug
34291         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34292         Reported by Leo Davis.
34293
34294         freopen-safer: new module
34295         * modules/freopen-safer: New module.
34296         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34297         * lib/freopen-safer.c (freopen_safer): New file.
34298         * lib/stdio-safer.h (freopen_safer): New declaration.
34299         * lib/stdio--.h (freopen): New override.
34300         * MODULES.html.sh (File stream based Input/Output): Mention it.
34301         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34302         freopen-safer module.
34303         * doc/posix-functions/stderr.texi (stderr): Likewise.
34304         * doc/posix-functions/stdin.texi (stdin): Likewise.
34305         * doc/posix-functions/stdout.texi (stdout): Likewise.
34306         * modules/freopen-safer-tests: New test.
34307         * tests/test-reopen-safer.c: New file.
34308
34309 2009-11-05  Jim Meyering  <meyering@redhat.com>
34310
34311         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34312         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34313
34314 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34315
34316         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34317
34318 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34319
34320         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34321
34322 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34323
34324         Fix link error.
34325         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34326         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34327
34328 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34329
34330         * tests/test-func.c: Also test value of __func__.
34331
34332 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34333
34334         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34335         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34336
34337 2009-11-05  Bruno Haible  <bruno@clisp.org>
34338
34339         Fix link error.
34340         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34341         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34342         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34343
34344 2009-11-05  Bruno Haible  <bruno@clisp.org>
34345
34346         Tests for module 'inet_pton'.
34347         * modules/inet_pton-tests: New file.
34348         * tests/test-inet_pton.c: New file.
34349
34350 2009-11-05  Bruno Haible  <bruno@clisp.org>
34351
34352         Tests for module 'inet_ntop'.
34353         * modules/inet_ntop-tests: New file.
34354         * tests/test-inet_ntop.c: New file.
34355
34356 2009-11-04  Eric Blake  <ebb9@byu.net>
34357
34358         stdlib-safer: wrap all mkstemp variants
34359         * modules/mkostemp (configure.ac): Set witness.
34360         * modules/mkostemps (configure.ac): Likewise.
34361         * modules/mkstemps (configure.ac): Likewise.
34362         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34363         (mkstemps_safer): Wrap more functions.
34364         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34365         wrapping.
34366         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34367         (mkstemps_safer): Implement the wrappers.
34368
34369         mkstemps, mkostemps: new modules
34370         * modules/mkostemps: New module.
34371         * modules/mkstemps: Likewise.
34372         * lib/mkostemps.c (mkostemps): New file.
34373         * lib/mkstemps.c (mkstemps): Likewise.
34374         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34375         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34377         * modules/stdlib (Makefile.am): Substitute them.
34378         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34379         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34380         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34381         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34382         * MODULES.html.sh (File system functions): Mention them.
34383
34384         tempname: resync from glibc
34385         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34386         same values for __GT_FILE as glibc.  Abort even when assertions
34387         are disabled.
34388         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34389         match its value otherwise.  Allow idempotent inclusion.
34390         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34391         * lib/mkostemp.c (mkostemp): Likewise.
34392         * lib/mkstemp.c (mkstemp): Likewise.
34393         * lib/tmpfile.c (tmpfile): Likewise.
34394         * NEWS: Document this.
34395
34396         utimens: fix use of futimens on older Linux
34397         * lib/utimens.c (fdutimens): Use updated, rather than original,
34398         timespec to avoid bug in older Linux kernel.
34399         Reported by Simon Josefsson.
34400
34401 2009-11-04  Bruno Haible  <bruno@clisp.org>
34402
34403         Make num_processors more flexible and consistent.
34404         * lib/nproc.h (enum nproc_query): New type.
34405         (num_processors): Add a 'query' argument.
34406         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34407         (num_processors): Add a 'query' argument. Test the value of the
34408         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34409         mingw, count the number of CPUs available for the current process.
34410         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34411         Check for sched_getaffinity and sched_getaffinity_np.
34412         * modules/nproc (Depends-on): Add c-ctype, extensions.
34413         * NEWS: Mention the change.
34414
34415 2009-11-03  Bruno Haible  <bruno@clisp.org>
34416
34417         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34418
34419 2009-11-03  Jim Meyering  <meyering@redhat.com>
34420
34421         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34422         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34423         if it is defined.
34424
34425 2009-11-02  Eric Blake  <ebb9@byu.net>
34426
34427         mktime, timegm: share common declaration
34428         * lib/mktime-internal.h: New file.
34429         * lib/mktime.c: Use it rather than open-coding a declaration.
34430         * lib/timegm.c: Likewise.
34431         * modules/mktime (Files): Ship it.
34432         * modules/timegm (Files): Likewise.
34433         Suggested by Bruno Haible.
34434
34435         test-update-copyright: update test to match script changes
34436         * tests/test-update-copyright.sh: Avoid hard-coding perl
34437         location.  Don't update *.bak created by earlier runs.
34438
34439 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34440             Simon Josefsson  <simon@josefsson.org>
34441             Bruno Haible  <bruno@clisp.org>
34442
34443         Fix link error on Solaris 8.
34444         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34445         also in libnsl. Define also INET_PTON_LIB.
34446         * modules/inet_pton (Link): New section.
34447
34448 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34449             Bruno Haible  <bruno@clisp.org>
34450
34451         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34452         * modules/inet_ntop (Link): New section.
34453         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34454
34455 2009-11-02  Eric Blake  <ebb9@byu.net>
34456
34457         maint: avoid compiler warnings in m4 macros
34458         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34459         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34460
34461 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34462
34463         * m4/pmccabe2html.m4: Remove file.
34464         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34465         function.  Change maintainer.
34466         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34467         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34468         Courtès).
34469
34470 2009-10-31  Eric Blake  <ebb9@byu.net>
34471
34472         fseeko: fix m4 regression
34473         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34474         regression from 2009-10-27.
34475         Reported by Ralf Wildenhues.
34476
34477 2009-10-31  Jim Meyering  <meyering@redhat.com>
34478
34479         inttostr: aesthetics and improved (compile-time) safety
34480         Define inttype_is_signed rather than inttype_is_unsigned,
34481         since the sole use is via "#if inttype_is_signed".
34482         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34483         inttype_is_unsigned.
34484         * lib/offtostr.c (inttype_is_signed): Likewise.
34485         * lib/uinttostr.c (inttype_is_signed): Likewise.
34486         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34487         * lib/inttostr.c (inttostr): Use verify to cross-check the
34488         inttype_is_signed value and the signedness of the actual type.
34489         * modules/inttostr (Depends-on): Add verify.
34490
34491 2009-10-30  Eric Blake  <ebb9@byu.net>
34492
34493         build: avoid compiler warnings
34494         * lib/fchmodat.c (lchmod): Mark unused variables.
34495         * lib/getopt.c (_getopt_initialize): Likewise.
34496         * lib/mktime.c (__mktime_internal): Provide prototype.
34497         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34498         older gcc that do not understand #pragma GCC diagnostic.
34499         * lib/uinttostr.c (inttype_is_unsigned): Define.
34500         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34501
34502 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34503
34504         stat: fix compilation on AIX
34505         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34506         only see struct stat64.
34507
34508 2009-10-30  Eric Blake  <ebb9@byu.net>
34509
34510         exclude: make more robust
34511         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34512         rather than masking a coding bug.
34513         Suggested by Bruno Haible.
34514
34515 2009-10-30  Jim Meyering  <meyering@redhat.com>
34516
34517         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34518         Rather than putting #!/usr/bin/perl on the first line,
34519         start with a variant of what's recommended by "man perlrun" that
34520         invokes the first "perl" program from your shell's search path.
34521         * build-aux/gitlog-to-changelog: Replace #!... as above.
34522         Add a "Local Variables" perl mode setting.
34523         Prompted by a patch from Ludovic Courtès.
34524         Improved by Eric Blake.
34525         * build-aux/useless-if-before-free: Likewise.
34526         * build-aux/announce-gen: Likewise.
34527         * build-aux/update-copyright: Likewise.
34528
34529 2009-10-29  Eric Blake  <ebb9@byu.net>
34530
34531         filenamecat-lgpl: adjust clients
34532         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34533         filenamecat.
34534         * modules/renameat (Depends-on): Likewise.
34535
34536         filenamecat: split into filenamecat-lgpl
34537         * modules/filenamecat-lgpl: New module.
34538         * modules/filenamecat (Files): Move library-safe files into
34539         filenamecat-lgpl.
34540         (Depends-on): Add filenamecat-lgpl.
34541         (configure.ac): Declare witness.
34542         * lib/filenamecat.h (file_name_concat): Only declare when using
34543         GPL module.
34544         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34545         Move...
34546         * lib/filenamecat-lgpl.c: ...into new file.
34547         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34548         (gl_FILE_NAME_CONCAT): Use it.
34549         * MODULES.html.sh (File system functions): Mention new module.
34550
34551         argp: avoid memory leak
34552         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34553         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34554         base_name, since the latter malloc()s and can call exit().
34555         Leak introduced 2006-07-03.
34556
34557         dirname-lgpl: adjust clients that don't need full dirname
34558         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34559         * modules/filenamecat (Depends-on): Likewise.
34560         * modules/linkat (Depends-on): Likewise.
34561         * modules/mkancesdirs (Depends-on): Likewise.
34562         * modules/mkdir (Depends-on): Likewise.
34563         * modules/openat (Depends-on): Likewise.
34564         * modules/savewd (Depends-on): Likewise.
34565         * modules/rename (Depends-on): Likewise.
34566         (License): Relax license.
34567         * modules/mkdir-tests (Depends-on): Drop progname.
34568         (Makefile.am): Delete unneeded LDADD.
34569         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34570
34571         dirname: split into dirname-lgpl
34572         * modules/dirname-lgpl: New module.
34573         * modules/dirname (Files): Move library-safe files into
34574         dirname-lgpl.
34575         (Depends-on): Add dirname-lgpl.
34576         (configure.ac): Declare witness.
34577         * modules/double-slash-root (License): Relax license.
34578         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34579         module.
34580         * lib/dirname.c (dir_len, mdir_name): Move...
34581         * lib/dirname-lgpl.c: ...into new file.
34582         * lib/basename.c (last_component, base_len): Move...
34583         * lib/basename-lgpl.c: ...into new file.
34584         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34585         (gl_DIRNAME): Use it.
34586         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34587         Mention new module.
34588         * modules/dirname-tests (Depends-on): Add progname.
34589         * tests/test-dirname.c (program_name): Delete.
34590
34591         mkdir: make safe for libraries
34592         * modules/mkdir (Depends-on): Drop xalloc.
34593         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34594         exit.
34595
34596         tests: avoid some compiler warnings
34597         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34598         literals.
34599         * tests/test-memchr.c (main): Avoid type mismatch.
34600         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34601         * tests/test-base64.c (main): Likewise.
34602         * tests/test-getdelim.c (main): Likewise.
34603         * tests/test-gethostname.c (main): Likewise.
34604         * tests/test-getline.c (main): Likewise.
34605         * tests/test-netinet_in.c (main): Likewise.
34606         * tests/test-select.c (open_server_socket, main): Likewise.
34607         * tests/test-select-stdin.c (main): Likewise.
34608         * tests/test-sockets.c (main): Likewise.
34609         * tests/test-strsignal.c (main): Likewise.
34610         * tests/test-sys_select.c (main): Likewise.
34611         * tests/test-sys_socket.c (main): Likewise.
34612         * tests/test-u64.c (main): Likewise.
34613         * tests/test-xfprintf-posix.c (main): Likewise.
34614         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34615
34616         sockets: avoid compiler warning
34617         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34618
34619         maint: detect usage(1) and other suspicious exits
34620         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34621
34622 2009-10-29  Jim Meyering  <meyering@redhat.com>
34623
34624         timespec: long-to-int truncation could make timespec_cmp malfunction
34625         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34626         a multiple of 2^32 nanoseconds as no difference.
34627
34628 2009-10-28  Jim Meyering  <meyering@redhat.com>
34629
34630         fprintftime: wrap macro code argument in "do {...} while(0)"
34631         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34632         cpy macro must be a statement that can be followed by a semicolon.
34633         Now that the else clause contains a comment and is hence longer
34634         than one line, I require curly braces.  That in turn requires
34635         that we wrap this code block in the standard do...while(0).
34636
34637         fprintftime: remove stray semicolon from previous change
34638         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34639
34640         fprintftime: avoid a warning about ignored fwrite return value
34641         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34642         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34643         that is unsafe.
34644         * modules/fprintftime (Depends-on): Add ignore-value.
34645
34646         exclude: avoid an unwarranted warning
34647         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34648
34649 2009-10-27  Eric Blake  <ebb9@byu.net>
34650
34651         fseek: avoid compilation failure when fflush is replaced
34652         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34653         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34654         module is in use.
34655         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34656         module is not in use; since REPLACE_FSEEK worked otherwise.
34657         (GNULIB_FTELLO): Likewise for ftell.
34658         Reported by Ian Beckwith and others.
34659
34660 2009-10-27  Bruno Haible  <bruno@clisp.org>
34661
34662         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34663         Reported by Jim Meyering.
34664
34665 2009-10-27  Jim Meyering  <jim@meyering.net>
34666             Bruno Haible  <bruno@clisp.org>
34667
34668         Avoid warning despite dropping the return value of fwrite.
34669         * lib/unicodeio.c: Include ignore-value.h.
34670         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34671         * modules/unicodeio (Depends-on): Add ignore-value.
34672
34673 2009-10-26  Eric Blake  <ebb9@byu.net>
34674
34675         areadlinkat: fix fallback path
34676         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34677         pointer and zero.
34678
34679 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34680
34681         Use a better IO block size for modern systems
34682         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34683         * lib/md2.c: Likewise.
34684         * lib/md4.c: Likewise.
34685         * lib/md5.c: Likewise.
34686         * lib/sha1.c: Likewise.
34687         * lib/sha256.c: Likewise.
34688         * lib/sha512.c: Likewise.
34689
34690 2009-10-22  Eric Blake  <ebb9@byu.net>
34691
34692         tests: avoid several compiler warnings
34693         * tests/test-getcwd.c (main): Avoid buffer underflow.
34694         * tests/test-getdate.c (main): String literals are not safe with
34695         putenv, so use setenv.  Declare unused argument.
34696         * modules/getdate-tests (Depends-on): Add setenv.
34697         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34698         problems with string literals in char *.
34699         * tests/test-hash.c (main): Avoid shadowing declaration.
34700         (insert_new): Treat string literals as char const *.
34701         * tests/test-getopt.h (test_getopt): Likewise.
34702         (getopt_loop): Alter types to minimize casting elsewhere.
34703         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34704         (test_getopt_long_posix): Likewise.
34705         (do_getopt_long): Add wrapper to minimize casting.
34706         * tests/test-atexit.c (clear_temp_file): Use void.
34707         * tests/test-areadlink-with-size.c (main): Declare unused
34708         arguments.
34709         * tests/test-areadlink.c (main): Likewise.
34710         * tests/test-areadlinkat-with-size.c (main): Likewise.
34711         * tests/test-areadlinkat.c (main): Likewise.
34712         * tests/test-canonicalize-lgpl.c (main): Likewise.
34713         * tests/test-canonicalize.c (main): Likewise.
34714         * tests/test-dirent-safer.c (main): Likewise.
34715         * tests/test-dirname.c (main): Likewise.
34716         * tests/test-dup2.c (main): Likewise.
34717         * tests/test-fchdir.c (main): Likewise.
34718         * tests/test-fcntl-h.c (main): Likewise.
34719         * tests/test-fcntl-safer.c (main): Likewise.
34720         * tests/test-fdopendir.c (main): Likewise.
34721         * tests/test-fdutimensat.c (main): Likewise.
34722         * tests/test-fflush.c (main): Likewise.
34723         * tests/test-filenamecat.c (main): Likewise.
34724         * tests/test-filevercmp.c (main): Likewise.
34725         * tests/test-fopen-safer.c (main): Likewise.
34726         * tests/test-fopen.c (main): Likewise.
34727         * tests/test-fpending.c (main): Likewise.
34728         * tests/test-fpurge.c (main): Likewise.
34729         * tests/test-freading.c (main): Likewise.
34730         * tests/test-fstatat.c (main): Likewise.
34731         * tests/test-fsync.c (main): Likewise.
34732         * tests/test-futimens.c (main): Likewise.
34733         * tests/test-getndelim2.c (main): Likewise.
34734         * tests/test-gettimeofday.c (main): Likewise.
34735         * tests/test-getopt.c (main): Likewise.
34736         * tests/test-i-ring.c (main): Likewise.
34737         * tests/test-inttypes.c (main): Likewise.
34738         * tests/test-link.c (main): Likewise.
34739         * tests/test-lstat.c (main): Likewise.
34740         * tests/test-math.c (main): Likewise.
34741         * tests/test-md5.c (main): Likewise.
34742         * tests/test-memchr2.c (main): Likewise.
34743         * tests/test-memrchr.c (main): Likewise.
34744         * tests/test-mkdir.c (main): Likewise.
34745         * tests/test-mkdirat.c (main): Likewise.
34746         * tests/test-mkfifoat.c (main): Likewise.
34747         * tests/test-open.c (main): Likewise.
34748         * tests/test-openat-safer.c (main): Likewise.
34749         * tests/test-openat.c (main): Likewise.
34750         * tests/test-quotearg.c (main): Likewise.
34751         * tests/test-rawmemchr.c (main): Likewise.
34752         * tests/test-readlink.c (main): Likewise.
34753         * tests/test-remove.c (main): Likewise.
34754         * tests/test-rename.c (main): Likewise.
34755         * tests/test-renameat.c (main): Likewise.
34756         * tests/test-rmdir.c (main): Likewise.
34757         * tests/test-sha1.c (main): Likewise.
34758         * tests/test-signal.c (main): Likewise.
34759         * tests/test-sigaction.c (main): Likewise.
34760         * tests/test-stat.c (main): Likewise.
34761         * tests/test-stat-time.c (main): Likewise.
34762         * tests/test-stddef.c (main): Likewise.
34763         * tests/test-stdint.c (main): Likewise.
34764         * tests/test-stdio.c (main): Likewise.
34765         * tests/test-stdlib.c (main): Likewise.
34766         * tests/test-strchrnul.c (main): Likewise.
34767         * tests/test-strerror.c (main): Likewise.
34768         * tests/test-string.c (main): Likewise.
34769         * tests/test-strtod.c (main): Likewise.
34770         * tests/test-strverscmp.c (main): Likewise.
34771         * tests/test-symlink.c (main): Likewise.
34772         * tests/test-symlinkat.c (main): Likewise.
34773         * tests/test-sys_stat.c (main): Likewise.
34774         * tests/test-sys_time.c (main): Likewise.
34775         * tests/test-time.c (main): Likewise.
34776         * tests/test-unistd.c (main): Likewise.
34777         * tests/test-unlink.c (main): Likewise.
34778         * tests/test-unlinkat.c (main): Likewise.
34779         * tests/test-utimens.c (main): Likewise.
34780         * tests/test-utimensat.c (main): Likewise.
34781         * tests/test-version-etc.c (main): Likewise.
34782         * tests/test-wchar.c (main): Likewise.
34783         * tests/test-wctype.c (main): Likewise.
34784         * tests/test-xprintf-posix.c (main): Likewise.
34785         * tests/test-posixtm.c (main): Likewise.
34786         (STREQ): Delete unused macro.
34787         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34788         shadowed variables.
34789         * tests/test-memchr.c (main): Likewise.
34790
34791 2009-10-21  Eric Blake  <ebb9@byu.net>
34792
34793         areadlinkat: avoid failure on older glibc
34794         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34795         rather than mis-comparing 0 against FUNC_RESULT of char*.
34796
34797 2009-10-21  Bruno Haible  <bruno@clisp.org>
34798
34799         * modules/stpncpy (License): Relicense under LGPLv2+.
34800         Reported by David Lutterkort <lutter@redhat.com>.
34801
34802 2009-10-20  Eric Blake  <ebb9@byu.net>
34803
34804         utimensat: work around Solaris 9 bug
34805         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34806         has trailing slash bugs.
34807         * tests/test-lutimens.h (test_lutimens): Enhance test.
34808         * tests/test-utimens.h (test_utimens): Likewise.
34809         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34810         * doc/posix-functions/utimes.texi (utimes): Likewise.
34811         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34812         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34813         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34814         * doc/posix-functions/futimens.texi (futimens): Likewise.
34815
34816         fdutimensat: new module
34817         * modules/fdutimensat: New file.
34818         * lib/fdutimensat.c (fdutimensat): Likewise.
34819         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34820         * MODULES.html.sh (File system functions): Mention module.
34821         * modules/fdutimensat-tests: New test.
34822         * tests/test-fdutimensat.c: Likewise.
34823
34824         doc: regenerate INSTALL
34825         * doc/INSTALL: Reflect recent autoconf update.
34826         * doc/INSTALL.ISO: Likewise.
34827         * doc/INSTALL.UTF-8: Likewise.
34828
34829 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34830
34831         acl: warn if ACL support is not detected
34832         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34833
34834 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34835
34836         * lib/nproc.h: Add extern "C" block for C++.
34837
34838 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34839             Bruno Haible  <bruno@clisp.org>
34840
34841         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34842         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34843         * doc/posix-functions/isalpha.texi: Likewise.
34844         * doc/posix-functions/isblank.texi: Likewise.
34845         * doc/posix-functions/iscntrl.texi: Likewise.
34846         * doc/posix-functions/isdigit.texi: Likewise.
34847         * doc/posix-functions/isgraph.texi: Likewise.
34848         * doc/posix-functions/islower.texi: Likewise.
34849         * doc/posix-functions/isprint.texi: Likewise.
34850         * doc/posix-functions/ispunct.texi: Likewise.
34851         * doc/posix-functions/isspace.texi: Likewise.
34852         * doc/posix-functions/isupper.texi: Likewise.
34853         * doc/posix-functions/isxdigit.texi: Likewise.
34854
34855 2009-10-18  Bruno Haible  <bruno@clisp.org>
34856
34857         Tests for module 'isblank'.
34858         * modules/isblank-tests: New file.
34859         * tests/test-isblank.c: New file.
34860
34861         New module 'isblank'.
34862         * lib/isblank.c: New file.
34863         * m4/isblank.m4: New file.
34864         * modules/isblank: New file.
34865         * doc/posix-functions/isblank.texi: Mention the new module.
34866
34867 2009-10-18  Bruno Haible  <bruno@clisp.org>
34868
34869         New module 'ctype'.
34870         * lib/ctype.in.h: New file.
34871         * m4/ctype.m4: New file.
34872         * modules/ctype: New file.
34873         * doc/posix-headers/ctype.texi: Mention the new module.
34874
34875 2009-10-18  Jim Meyering  <meyering@redhat.com>
34876
34877         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34878         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34879         right after its initialization, rather than farther down.
34880         Keeping these in close proximity makes it easier to ensure
34881         that each such variable is initialized.  E.g.,
34882
34883             LIB_CLOCK_GETTIME=
34884             AC_SUBST([LIB_CLOCK_GETTIME])
34885
34886         This change also increments these serial numbers.
34887         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34888         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34890
34891 2009-10-18  Bruno Haible  <bruno@clisp.org>
34892
34893         Don't let environment variables perturb build.
34894         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34895         (gl_PREREQ_GETHRXTIME): ... not here.
34896
34897 2009-10-18  Bruno Haible  <bruno@clisp.org>
34898
34899         Avoid symlink attack in localcharset module.
34900         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34901         (O_NOFOLLOW): Define fallback.
34902         (get_charset_aliases): Don't open the file if it is a symbolic link.
34903         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34904         gl_FCNTL_H.
34905         (gl_FCNTL_H): Require it.
34906         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34907         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34908         Reported by Fergal Glynn <fglynn@veracode.com>.
34909
34910 2009-10-18  Bruno Haible  <bruno@clisp.org>
34911
34912         Implement nproc for mingw.
34913         * lib/nproc.c: Include <windows.h>
34914         (num_processors): On native Windows platforms, try GetSystemInfo.
34915
34916 2009-10-18  Bruno Haible  <bruno@clisp.org>
34917
34918         Implement nproc for IRIX.
34919         * lib/nproc.c: Include <sys/sysmp.h>.
34920         (num_processors): On IRIX systems, try sysmp.
34921         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34922
34923 2009-10-18  Bruno Haible  <bruno@clisp.org>
34924
34925         Implement nproc for HP-UX.
34926         * lib/nproc.c: Include <sys/pstat.h>
34927         (num_processors): On HP-UX systems, try pstat_getdynamic.
34928         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34929         pstat_getdynamic.
34930
34931 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34932             Bruno Haible  <bruno@clisp.org>
34933
34934         Implement nproc for NetBSD, OpenBSD.
34935         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34936         (ARRAY_SIZE): New macro.
34937         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34938         * m4/nproc.m4: New file.
34939         * modules/nproc (Files): Add m4/nproc.m4.
34940         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34941         (Makefile.am): Instead, augment lib_SOURCES.
34942
34943 2009-10-18  Bruno Haible  <bruno@clisp.org>
34944
34945         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34946         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34947         sys/param.h.
34948
34949 2009-10-16  Eric Blake  <ebb9@byu.net>
34950
34951         utimensat: new module
34952         * modules/utimensat: New file.
34953         * lib/utimensat.c (utimensat): Likewise.
34954         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34955         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34956         so we can work around Linux bugs.
34957         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34958         * modules/sys_stat (Makefile.am): Substitute them.
34959         * lib/sys_stat.in.h (utimensat): Declare it.
34960         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34961         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34962         * modules/utimensat-tests: New test.
34963         * tests/test-utimensat.c: Likewise.
34964
34965         utimens: let lutimens work on non-symlinks
34966         * lib/utimens.c (lutimens): Fall back to utimens rather than
34967         failing with ENOSYS, when file is not a symlink.
34968         (utimens): Reduce redirection.
34969         * tests/test-lutimens.h (test_lutimens): Update test to cover
34970         non-symlinks.
34971         * tests/test-utimens.h (test_utimens): Update test to cover
34972         symlinks.
34973         * tests/test-utimens.c (main): Update caller.
34974
34975         utimens: cache whether utimensat syscall works
34976         * lib/utimens.c (utimensat_works_really): New cache variable.
34977         (fdutimens, lutimens): Use it to avoid failing syscall.
34978
34979         test-stat-time, test-utimens: improve portability
34980         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34981         ext4 on alpha, and for cygwin.
34982         * tests/test-utimens-common.h: New file.
34983         (nap): Factor delays into single function.
34984         * tests/test-lutimens.h (test_lutimens): Use new header.
34985         * tests/test-futimens.h (test_futimens): Likewise.
34986         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34987         timestamps to occur from same machine, as was done previously for
34988         test_utimens.
34989         * modules/utimens-tests (Files): Ship new file.
34990         * modules/futimens-tests (Files): Likewise.
34991         Reported in part by Jim Meyering.
34992
34993         sys_stat: sort replacement declarations
34994         * lib/sys_stat.in.h: Sort declarations.
34995         * lib/futimens.c (futimens): Fix typo.
34996
34997 2009-10-15  Jim Meyering  <meyering@redhat.com>
34998
34999         don't let environment settings perturb build
35000         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35001         could cause a configure-time and/or build-time malfunction.
35002         Typically, a configure-time function-in-library test is performed
35003         via code like this:
35004
35005           LIB_VAR=
35006           AC_SUBST([LIB_VAR])
35007           prefix_saved_LIBS=$LIBS
35008             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35009                        [test "$ac_cv_search_FUNC" = "none required" ||
35010                         LIB_VAR=$ac_cv_search_FUNC])
35011           LIBS=$prefix_saved_LIBS
35012
35013         However, in each of the files affected by this change, the LIB_VAR=
35014         initialization was omitted.  Thus, when set in the environment, its
35015         value would propagate into generated Makefiles when FUNC is not found
35016         in LIB_NAME.
35017         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35018         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35020
35021 2009-10-14  Eric Blake  <ebb9@byu.net>
35022
35023         fchdir: avoid infinite recursion in mingw
35024         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35025         recursing.
35026
35027         test-stat-time: port to mingw
35028         * tests/test-stat-time.c (force_unlink): Return a value.
35029         (test_ctime) [W32]: Fix compilation error.
35030         (nap): Don't call usleep with too large an argument.  Use
35031         force_unlink.
35032         * doc/pastposix-functions/usleep.texi (usleep): Document the
35033         portability issue.
35034
35035 2009-10-13  Jim Meyering  <meyering@redhat.com>
35036
35037         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35038         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35039         * modules/pipe-filter-ii: Likewise.
35040         * modules/sys_socket-tests: Likewise.
35041         * modules/tsearch-tests: Likewise.
35042         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35043         (check): Depend on it.
35044
35045 2009-10-12  Eric Blake  <ebb9@byu.net>
35046
35047         utimens-tests: port to NFS file systems
35048         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35049         comparisons to avoid spurious failures from timestamp drift
35050         between NFS machines.
35051
35052 2009-10-12  Eric Blake  <ebb9@byu.net>
35053
35054         stat-time-tests: minor cleanups
35055         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35056         * tests/test-stat-time.c (nap): Separate assignment from call.
35057         Suggested by Paolo Bonzini and Bruno Haible.
35058
35059         sys_stat: guarantee struct timespec
35060         * lib/sys_stat.in.h (includes): Always include <time.h>
35061         * modules/sys_stat (Depends-on): Add time.
35062         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35063         mode_t permission values.
35064         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35065         get at subsecond timestamps.
35066
35067 2009-10-10  Eric Blake  <ebb9@byu.net>
35068
35069         futimens: new module
35070         * modules/futimens: New file.
35071         * lib/futimens.c (futimens): Likewise.
35072         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35073         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35074         we can work around Linux bugs.
35075         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35076         * modules/sys_stat (Makefile.am): Substitute them.
35077         * lib/sys_stat.in.h (futimens): Declare it.
35078         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35079         * doc/posix-functions/futimens.texi (futimens): Likewise.
35080         * modules/futimens-tests: New test.
35081         * tests/test-futimens.c: Likewise.
35082
35083         utimens: introduce fdutimens
35084         * lib/utimens.h (fdutimens): New prototype.
35085         * lib/utimens.c (gl_futimens): Move guts...
35086         (fdutimens): ...to new interface.
35087         * tests/test-utimens.c (do_fdutimens): Use it.
35088
35089         utimens: add UTIME_NOW and UTIME_OMIT support
35090         * lib/utimens.c (validate_timespec, update_timespec): New helper
35091         functions.
35092         (gl_futimens, lutimens): Use them.
35093         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35094         stdbool, sys_stat.
35095         (Link): Mention resulting library dependency.
35096         * modules/utimecmp (Link): Likewise.
35097         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35098         (Makefile.am): Pick up library dependency.
35099         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35100         definition.
35101         * tests/test-sys_stat.c: Test the definitions.
35102         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35103         * NEWS: Document library dependency.
35104
35105         utimecmp: support symlink timestamps
35106         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35107         hashing when possible.  Use pathconf when available.
35108         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35109         * modules/utimecmp (Depends-on): Add lstat.
35110
35111         utimens: add lutimens interface
35112         * lib/utimens.c (lutimens): New function.
35113         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35114         * lib/utimens.h (lutimens): Declare new interface.
35115         * tests/test-utimens.c (main): Enhance test.
35116         * tests/test-lutimens.h (test_lutimens): New file.
35117         * modules/utimens-tests (Files): Distribute it.
35118         (Depends-on): Add symlink.
35119         (configure.ac): Check for usleep.
35120
35121         utimens: validate futimens usage
35122         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35123         fewer syscalls on failure later on.  Avoid compiler warning on
35124         mingw.
35125         * modules/utimens (Depends-on): Add dup2.
35126
35127         utimens: add test
35128         * modules/utimens-tests: New test.
35129         * tests/test-utimens.h: New file.
35130         * tests/test-futimens.h: Likewise.
35131         * tests/test-utimens.c: Likewise.
35132
35133         doc: mention timestamp portability issues
35134         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35135         instead.
35136         * doc/posix-functions/utime.texi (utime): Likewise.
35137         * doc/posix-functions/utimes.texi (utimes): Likewise.
35138         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35139         instead.
35140         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35141         module.
35142         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35143         Mention weakness with symlink timestamps.
35144         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35145         to utimensat/futimens instead.
35146         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35147
35148         test-dup2: enhance test
35149         * tests/test-dup2.c (main): Also check AT_FDCWD.
35150
35151         test-stat-time: avoid more spurious failures
35152         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35153         xfs; and avoid race if the two timestamps cross quantization edge.
35154
35155         relocatable: prefer 'file system' over 'filesystem'
35156         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35157         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35158         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35159         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35160         * lib/relocatable.c (compute_curr_prefix): Likewise.
35161
35162 2009-10-10  Jim Meyering  <meyering@redhat.com>
35163
35164         stat-time-tests: check for the usleep function
35165         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35166
35167 2009-10-10  Bruno Haible  <bruno@clisp.org>
35168
35169         * modules/xnanosleep: Put the Link section after the Include section.
35170
35171 2009-10-09  Eric Blake  <ebb9@byu.net>
35172
35173         dup2: work around FreeBSD 6.1 bug
35174         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35175         * doc/posix-functions/dup2.texi (dup2): Document it.
35176         Reported by Nelson H. F. Beebe and Jim Meyering.
35177
35178         test-stat-time: port to buggy NFS clients
35179         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35180         (test_ctime): Also skip test if mtime and ctime are skewed.
35181
35182         maint: prefer 'file system' over 'filesystem'
35183         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35184         * doc/posix-functions/lstat.texi (lstat): Likewise.
35185         * lib/file-has-acl.c (file_has_acl): Likewise.
35186         * lib/fwriteerror.c [TEST]: Likewise.
35187         * tests/test-areadlink.h (test_areadlink): Likewise.
35188         * tests/test-areadlinkat-with-size.c (main): Likewise.
35189         * tests/test-areadlinkat.c (main): Likewise.
35190         * tests/test-canonicalize-lgpl.c (main): Likewise.
35191         * tests/test-canonicalize.c (main): Likewise.
35192         * tests/test-fstatat.c (main): Likewise.
35193         * tests/test-linkat.c (main): Likewise.
35194         * tests/test-lstat.h (test_lstat_func): Likewise.
35195         * tests/test-mkdir.h (test_mkdir): Likewise.
35196         * tests/test-readlink.h (test_readlink): Likewise.
35197         * tests/test-remove.c (main): Likewise.
35198         * tests/test-rename.h (test_rename): Likewise.
35199         * tests/test-renameat.c (main): Likewise.
35200         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35201         * tests/test-symlink.h (test_symlink): Likewise.
35202         * tests/test-symlinkat.c (main): Likewise.
35203         * tests/test-unlink.h (test_unlink_func): Likewise.
35204         * tests/test-unlinkat.c (main): Likewise.
35205
35206         maint: make realtime library usage explicit
35207         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35208         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35209         * modules/settime (Link): Likewise.
35210         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35211
35212         test-stat-time: speed up execution
35213         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35214         warning on mingw.
35215         (nap): New helper function.
35216         (prepare_test): Use it to reduce sleep time.
35217         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35218         execution.
35219         * modules/stat-time-tests (configure.ac): Check for usleep.
35220
35221 2009-10-09  Jim Meyering  <meyering@redhat.com>
35222
35223         selinux-h: always use getfilecon wrappers
35224         * lib/getfilecon.c: New file.
35225         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35226         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35227         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35228         (fgetfilecon): Provide a stub.
35229         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35230         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35231         file unconditionally.
35232         When <selinux/selinux.h> is found, arrange to use wrappers.
35233         * modules/selinux-h (Files): Add getfilecon.c.
35234         (Makefile.am): Substitute include-next-related bits
35235         into the now-always-generated selinux/selinux.h file.
35236         * doc/glibc-functions/lgetfilecon.texi: New file.
35237         * doc/glibc-functions/fgetfilecon.texi: New file.
35238         * doc/glibc-functions/getfilecon.texi: New file.
35239         * doc/glibc-functions/getfilecon-desc.texi: New file.
35240         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35241         which to pull in the new files.
35242         * MODULES.html.sh (Misc): Add selinux-h.
35243
35244 2009-10-08  Jim Meyering  <meyering@redhat.com>
35245
35246         unistd: fix comment typo
35247         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35248
35249 2009-10-08  Eric Blake  <ebb9@byu.net>
35250
35251         areadlink: use SIZE_MAX consistently
35252         * modules/areadlink (Depends-on): Add stdint.
35253         * modules/areadlink-with-size (Depends-on): Likewise.
35254         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35255         gives NULL; drop sys/types, since unistd gives size_t; and add
35256         stdint for SIZE_MAX.
35257         (SIZE_MAX): Rely on headers.
35258         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35259         and add stdint.
35260         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35261         (SIZE_MAX): Likewise.
35262         (INITIAL_BUF_SIZE): Turn into enum.
35263         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35264
35265 2009-10-08  Jim Meyering  <meyering@redhat.com>
35266
35267         areadlinkat: avoid compilation failure
35268         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35269         Fix typo in comment.
35270
35271 2009-10-07  Eric Blake  <ebb9@byu.net>
35272
35273         areadlinkat-with-size: new module
35274         * modules/areadlinkat-with-size: New module.
35275         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35276         * lib/areadlink.h (areadlinkat): Declare it.
35277         * MODULES.html.sh (File system functions): Mention it.
35278         * modules/areadlinkat-with-size-tests: New test.
35279         * tests/test-areadlinkat-with-size.c: New file.
35280
35281         xreadlinkat: new module
35282         * modules/xreadlinkat: New module.
35283         * lib/xreadlinkat.c (xreadlinkat): New file.
35284         * lib/xreadlink.h (xreadlinkat): Declare it.
35285         * MODULES.html.sh (File system functions): Mention it.
35286
35287         areadlinkat: new module
35288         * lib/at-func.c (FUNC_FAIL): New define.
35289         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35290         * modules/areadlinkat: New module.
35291         * lib/linkat.c (areadlinkat): Move...
35292         * lib/areadlinkat.c (areadlinkat): ...to new file.
35293         * lib/areadlink.h (areadlinkat): Declare it.
35294         * modules/linkat (Depends-on): Add areadlinkat.
35295         * MODULES.html.sh (File system functions): Mention it.
35296         * modules/areadlinkat-tests: New test.
35297         * tests/test-areadlinkat.c: New file.
35298
35299         areadlink, areadlink-with-size: add tests
35300         * modules/areadlink-tests: New test.
35301         * modules/areadlink-with-size-tests: Likewise.
35302         * tests/test-areadlink.h: New file.
35303         * tests/test-areadlink.c: Likewise.
35304         * tests/test-areadlink-with-size.c: Likewise.
35305
35306         maint: minor cleanups
35307         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35308         _UNUSED_PARAMETER_ instead.
35309         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35310         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35311         * modules/linkat-tests (Files): Distribute test-link.h.
35312
35313         openat, utimens: whitespace cleanup
35314         * lib/openat.c: Prefer space throughout, rather than mix of 8
35315         spaces vs. tabs.
35316         * lib/at-func.c: Likewise.
35317         * lib/utimens.c: Likewise.
35318
35319         openat: avoid using wrong fd
35320         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35321         working directory chooses same fd.
35322         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35323
35324         mkdir, mkdirat: fix cygwin 1.5.x bug
35325         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35326         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35327         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35328         bug.
35329         (gl_PREREQ_MKDIR): Delete unused macro.
35330         * modules/mkdir (Files): Track file rename.
35331         (configure.ac): Update macro name.
35332         * modules/openat (Depends-on): Add mkdir.
35333         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35334
35335         mkdir, mkdirat: add tests
35336         * modules/mkdir-tests: New test.
35337         * tests/test-mkdir.h: New file.
35338         * tests/test-mkdir.c: Likewise.
35339         * tests/test-mkdirat.c: Likewise.
35340         * modules/openat-tests (Files): Add new files.
35341         (Makefile.am): Run new test.
35342
35343 2009-10-06  Eric Blake  <ebb9@byu.net>
35344
35345         doc: tweak *at function documentation
35346         * doc/posix-functions/faccessat.texi (faccessat): Mention
35347         known issue with replacement.
35348         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35349         * doc/posix-functions/linkat.texi (linkat): Likewise.
35350         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35351         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35352         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35353         * doc/posix-functions/renameat.texi (renameat): Likewise.
35354         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35355
35356         openat: fix GNU/Hurd bug in unlinkat
35357         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35358         broken.
35359         * doc/posix-functions/unlink.texi (unlink): Document this.
35360         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35361
35362         fdopendir: fix GNU/Hurd bug
35363         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35364         allowing non-directory fds.
35365         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35366         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35367         * modules/dirent (Makefile.am): Substitute it.
35368         * lib/dirent.in.h (fdopendir): Declare replacement.
35369         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35370         * tests/test-fdopendir.c (main): Test something other than
35371         /dev/null, since on Hurd that behaves like a directory.
35372
35373         test-symlink: port to GNU/Hurd
35374         * tests/test-symlink.h (test_symlink): Relax expected errno.
35375
35376         doc: tweak more cygwin information
35377         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35378         now compatible with glibc.
35379         * doc/posix-functions/getopt.texi (getopt): Likewise.
35380
35381         getopt-gnu: add another test
35382         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35383         guarantee behavior relied on by m4.
35384         * tests/test-getopt.c (main): Use it.
35385         * modules/getopt-posix-tests (Depends-on): Add setenv.
35386         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35387
35388         getopt: fix compilation on darwin
35389         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35390         include.
35391         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35392         Reported by Ludovic Courtès.
35393
35394 2009-10-06  Bruno Haible  <bruno@clisp.org>
35395
35396         * modules/size_max (Description): Discourage its use.
35397         Reported by Simon Josefsson.
35398
35399 2009-10-06  Jim Meyering  <meyering@redhat.com>
35400
35401         linkat: avoid compilation failure
35402         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35403
35404 2009-10-05  Eric Blake  <ebb9@byu.net>
35405
35406         linkat: support Linux 2.6.17
35407         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35408         linkat on Linux, but allow cache variable override.
35409         * lib/linkat.c (rpl_linkat): Define override.
35410         * modules/linkat (Depends-on): Add symlinkat.
35411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35412         * modules/unistd (Makefile.am): Substitute it.
35413         * lib/unistd.in.h (linkat): Declare replacement.
35414         Reported by Pádraig Brady.
35415
35416         quotearg: port test to systems with C.UTF-8 locale
35417         * tests/test-quotearg.c (struct result_strings): Add another
35418         member, differentiating between C.ASCII and C.UTF-8 handling.
35419         (compare_strings): Add parameter.
35420         (main): Adjust all callers.
35421
35422         getopt: avoid clash with FreeBSD _getopt_internal
35423         * lib/getopt.in.h (_getopt_internal): Override the name.
35424         * lib/getopt_int.h (includes): Pick up any overrides.
35425         Reported by Reuben Thomas.
35426
35427         hash: allow C89 compilation
35428         * lib/hash.c (check_tuning): Move declaration before statement.
35429         Reported by Reuben Thomas.
35430
35431 2009-10-05  Karl Berry  <karl@gnu.org>
35432
35433         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35434
35435 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35436             Bruno Haible  <bruno@clisp.org>
35437
35438         * lib/uname.c (uname): Use a table-driven algorithm to compute
35439         Windows NT versions.
35440
35441 2009-10-04  Bruno Haible  <bruno@clisp.org>
35442
35443         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35444         program_invocation_short_name.
35445         * modules/progname (configure.ac): Test for presence of
35446         program_invocation_short_name.
35447         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35448
35449 2009-10-04  Bruno Haible  <bruno@clisp.org>
35450
35451         * lib/progname.c (set_program_name): Fix comment.
35452         Reported by Jim Meyering.
35453
35454 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35455             Bruno Haible  <bruno@clisp.org>
35456
35457         * lib/uname.c: Include <string.h>.
35458         (uname): Do only one call to GetVersionEx in the common case.
35459
35460 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35461             Bruno Haible  <bruno@clisp.org>
35462
35463         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35464         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35465         (uname): Add support for Windows CE and various non-x86 CPU types.
35466
35467 2009-10-03  Bruno Haible  <bruno@clisp.org>
35468
35469         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35470         invocation to tests/configure.ac.
35471         Reported by Ian Beckwith <ianb@erislabs.net>.
35472
35473 2009-10-02  Eric Blake  <ebb9@byu.net>
35474
35475         fchdir: avoid compiler warning
35476         * lib/fchdir.c (canonicalize_file_name)
35477         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35478
35479         test-open: support mingw errno values
35480         * tests/test-open.h (test_open): Relax test.
35481         * tests/test-fopen.h (test_fopen): Likewise.
35482         * tests/test-openat-safer.c (main): Likewise.
35483
35484         open: fix opening directory on mingw
35485         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35486
35487         test-open: on GNU/Hurd, /dev/null is a directory
35488         * tests/test-fopen.h (main): Rename...
35489         (test_fopen): ...to this.  Use a guaranteed non-directory when
35490         confirming open behavior on trailing slash.
35491         * tests/test-openat-safer.c (main): Likewise.
35492         * tests/test-open.h (main): Likewise....
35493         (test_open): ...to this.
35494         * tests/test-fopen.c (main): Adjust caller.
35495         * tests/test-fopen-safer.c (main): Likewise.
35496         * tests/test-open.c (main): Likewise.
35497         * tests/test-fcntl-safer.c (main): Likewise.
35498         Reported by Samuel Thibault.
35499
35500         rename, fchdir: don't ignore chdir failure
35501         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35502         * lib/rename.c (rpl_rename) [W32]: Likewise.
35503         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35504         an empty destination directory if source cannot be renamed,
35505         although there is still possibility for failure.
35506         * doc/posix-functions/rename.texi (rename): Document the race.
35507         Reported by Jim Meyering.
35508
35509         maint: cleanup whitespace in recent commits
35510         * lib/rename.c (rpl_rename): Remove tabs.
35511         * tests/test-link.h (test_link): Likewise.
35512         * lib/fchdir.c (get_name): Likewise.
35513         Reported by Jim Meyering.
35514
35515 2009-10-02  Ben Pfaff  <blp@gnu.org>
35516
35517         relocatable-prog-wrapper: Add missing dependency on
35518         double-slash-root.
35519         * modules/relocatable-prog-wrapper: Add dependency.
35520         Reported by Ian Beckwith <ianb@erislabs.net>.
35521
35522 2009-10-02  Eric Blake  <ebb9@byu.net>
35523
35524         renameat: fix Solaris bugs
35525         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35526         needed fixing.
35527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35528         * modules/stdio (Makefile.am): Substitute it.
35529         * lib/stdio.in.h (renameat): Declare replacement.
35530         * lib/renameat.c (rpl_renameat): Implement fix.
35531
35532         renameat: new module
35533         * modules/renameat: New file.
35534         * lib/renameat.c (renameat): Likewise.
35535         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35537         * modules/stdio (Makefile.am): Substitute them.
35538         * lib/stdio.in.h (renameat): Declare it.
35539         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35540         * doc/posix-functions/renameat.texi (renameat): Likewise.
35541         * modules/renameat-tests: New test.
35542         * tests/test-renameat.c: Likewise.
35543
35544         rename: fix mingw bugs
35545         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35546         directory overwrite bugs.
35547
35548         rename: fix another cygwin 1.5 bug
35549         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35550         checks.
35551         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35552         unnecessary cygwin workarounds.  Also work around bug with moving
35553         full directory onto an empty one.
35554         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35555
35556         rename-dest-slash: merge into rename module
35557         * modules/rename-dest-slash (Status): Mark obsolete.
35558         (Depends-on): Add rename.
35559         (Files): Let rename do it all.
35560         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35561         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35562         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35563         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35564         * lib/rename.c (rpl_rename): Update comments.
35565
35566         rename: fix cygwin 1.5.x bugs
35567         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35568         * lib/rename.c (rpl_rename): Work around them.
35569         * modules/rename (Depends-on): Add same-inode.
35570
35571         rename: fix Solaris 10 bug
35572         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35573         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35574         was the only bug.
35575
35576         rename: fix Solaris 9 bug
35577         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35578         on non-directory.  Avoid calling exit.
35579         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35580         strdup.
35581         * modules/rename-tests (Depends-on): Drop lstat.
35582         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35583         (gl_PREREQ_RENAME): Delete unused macro.
35584
35585         rename-dest-slash: fix NetBSD bug
35586         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35587         links.
35588         * modules/rename-dest-slash (Depends-on): Add same-inode.
35589
35590         rename-tests: new test, exposes several platform bugs
35591         * modules/rename-tests: New file.
35592         * tests/test-rename.h: Likewise.
35593         * tests/test-rename.c: Likewise.
35594         * doc/posix-functions/rename.texi (rename): Improve documentation,
35595         including bugs that will eventually be fixed in gnulib.
35596
35597 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35598
35599         * lib/uname.c: Include <stdlib.h>
35600         (uname): Assume version info is available.
35601
35602 2009-10-02  Jim Meyering  <meyering@redhat.com>
35603
35604         gnu-web-doc-update: correct --help output
35605         * build-aux/gnu-web-doc-update: Make --help output relevant.
35606
35607         gnu-web-doc-update: add standard options
35608         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35609
35610         gnu-web-doc-update: New module.
35611         Use this script to automatically update the on-line web documentation
35612         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35613         * modules/gnu-web-doc-update: New file, from coreutils.
35614         * build-aux/gnu-web-doc-update: New script.
35615
35616 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35617
35618         link: LoadLibrary is not needed.
35619         * lib/link.c: Use GetModuleHandle.
35620
35621 2009-10-01  Eric Blake  <ebb9@byu.net>
35622
35623         getopt: bump serial number
35624         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35625         change.
35626
35627         tests: tighten link, rmdir, and remove tests
35628         * tests/test-link.h (includes): No need to use <config.h> here.
35629         Clean up if directory hard link was created, otherwise test for
35630         trailing '.'.
35631         * tests/test-linkat.c (main): Simplify.
35632         * tests/test-remove.c (main): Enhance test for trailing '.'.
35633         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35634
35635 2009-10-01  Jim Meyering  <meyering@redhat.com>
35636
35637         maint.mk: requiring "make major" was annoying, for a "minor" release.
35638         What is intended is "stable", to contrast with alpha and beta,
35639         so require "make stable", not "make major".
35640         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35641         (get_tool_versions): Likewise.
35642         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35643
35644 2009-09-30  Ben Pfaff  <blp@gnu.org>
35645
35646         Fix broken build of replacement for Windows tmpfile().
35647         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35648         flags argument added along with the 'mkostemp' module.
35649
35650 2009-09-28  Bruno Haible  <bruno@clisp.org>
35651
35652         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35653         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35654         to 'remove_elt'.
35655         (gl_list_remove): Update.
35656         * lib/gl_list.c (gl_list_remove): Update.
35657         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35658         to 'remove_elt'.
35659         (gl_oset_remove): Update.
35660         * lib/gl_list.c (gl_oset_remove): Update.
35661         Reported by Eric Blake.
35662
35663 2009-09-28  Eric Blake  <ebb9@byu.net>
35664
35665         doc: mention yet more cygwin 1.7 status
35666         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35667         cygwin.
35668         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35669         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35670
35671         argp: fix test failure
35672         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35673         that are not upper-case.  Pass correct range to tolower.
35674
35675 2009-09-27  Jim Meyering  <meyering@redhat.com>
35676
35677         test-yesno: work around sparc-dash here-document infelicity
35678         Without this change, the literal \177 byte in a here document
35679         would make dash 0.5.5.1-3 access uninitialized memory.
35680         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35681         Instead, use a marker, "@", and filter through tr to create the desired
35682         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35683
35684 2009-09-27  Bruno Haible  <bruno@clisp.org>
35685
35686         Disable untested support for new flavours of ACLs on AIX.
35687         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35688         progress.
35689         * lib/set-mode-acl.c (qset_acl): Likewise.
35690
35691 2008-12-07  Bruno Haible  <bruno@clisp.org>
35692
35693         Add support for new flavours of ACLs on AIX. (Untested.)
35694         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35695         (file_has_acl): Add support for newer AIX.
35696         * lib/set-mode-acl.c (qset_acl): Likewise.
35697         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35698         Rainer Tammer <tammer@tammer.net>.
35699
35700 2009-09-26  Eric Blake  <ebb9@byu.net>
35701
35702         argp: fix compilation of getopt
35703         * lib/getopt.in.h (includes): Use different guard than glibc.
35704         Reported by Sergey Poznyakoff.
35705
35706         doc: mention more cygwin 1.7 status
35707         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35708         bug.
35709         * doc/posix-functions/execl.texi (execl): Likewise.
35710         * doc/posix-functions/execle.texi (execle): Likewise.
35711         * doc/posix-functions/execlp.texi (execlp): Likewise.
35712         * doc/posix-functions/execv.texi (execv): Likewise.
35713         * doc/posix-functions/execve.texi (execve): Likewise.
35714         * doc/posix-functions/execvp.texi (execvp): Likewise.
35715         * doc/glibc-functions/canonicalize_file_name.texi
35716         (canonicalize_file_name): Cygwin 1.7 now provides this.
35717         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35718         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35719         on AT_SYMLINK_NOFOLLOW.
35720
35721 2009-09-24  Eric Blake  <ebb9@byu.net>
35722
35723         test-linkat: make test more robust
35724         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35725
35726         getopt: fix inclusion guards for cygwin
35727         * modules/getopt-posix (Depends-on): Add include-next.
35728         (Makefile.am): Substitute more items in replacement header.
35729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35730         <getopt.h>.
35731         * lib/getopt.in.h (includes): Use split inclusion guard, and
35732         prefer <getopt.h> over include <unistd.h> when one is present.
35733         (option): Also override name of 'struct option'.
35734
35735         same-inode: revert prior change; it is not yet ready
35736         * NEWS: Undo mention of this change.
35737         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35738         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35739         * lib/cycle-check.c (cycle_check): Likewise.
35740         * lib/same.c (same_name): Likewise.
35741         * lib/at-func2.c (at_func2): Likewise.
35742
35743 2009-09-23  Eric Blake  <ebb9@byu.net>
35744
35745         linkat: new module
35746         * modules/linkat: New file.
35747         * lib/at-func2.c (at_func2): Likewise.
35748         * lib/linkat.c (linkat): Likewise.
35749         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35750         * lib/openat-priv.h (at_func2): Add declaration.
35751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35752         * modules/unistd (Makefile.am): Substitute them.
35753         * lib/unistd.in.h (linkat): Declare it.
35754         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35755         * doc/posix-functions/linkat.texi (linkat): Likewise.
35756         * doc/posix-functions/link.texi (link): Tweak wording.
35757         * tests/test-link.c (main): Move guts...
35758         * tests/test-link.h (test_link): ...into new file.
35759         * modules/linkat-tests: New test.
35760         * tests/test-linkat.c: Likewise.
35761         * modules/link-tests (Files): Ship new file.
35762         (Depends-on): Add stdbool.
35763
35764         dirname: add library-safe mdir_name
35765         * lib/dirname.h (mdir_name): New prototype.
35766         * lib/dirname.c (dir_name): Move guts...
35767         (mdir_name): ...to new function that avoids xalloc_die.
35768
35769         fchdir: another mingw fix
35770         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35771         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35772         on mingw (where it has not yet been ported), and make it optional
35773         elsewhere.
35774         (_gl_register_fd): Use it.
35775
35776         same-inode: make SAME_INODE tri-state, to port to mingw
35777         * NEWS: Mention this change.
35778         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35779         st_ino always being 0.
35780         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35781         * lib/cycle-check.c (cycle_check): Likewise.
35782         * lib/same.c (same_name): Likewise.
35783
35784         lstat: avoid mingw compilation error
35785         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35786         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35787         lstat ourselves.
35788         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35789         was adequate.
35790         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35791         the checks for lstat.
35792         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35793
35794         link: fix test failure on Solaris 9
35795         * lib/link.c (rpl_link): Don't assume link will catch bogus
35796         trailing slash on source.
35797
35798         test-symlinkat: enhance test
35799         * tests/test-readlink.c (main): Move guts...
35800         * tests/test-readlink.h (test_readlink): ...into new file.
35801         * tests/test-symlink.c (main): Move guts...
35802         * tests/test-symlink.h (test_symlink): ...into new file.
35803         * tests/test-symlinkat.c (main): Use new files for further
35804         coverage.
35805         (do_symlink, do_readlink): New helper functions.
35806         * modules/symlink-tests (Files): Ship new file.
35807         (Depends-on): Add stdbool.
35808         * modules/readlink-tests (Files): Ship new file.
35809         (Depends-on): Add stdbool.
35810         * modules/symlinkat-tests (Files): Use new files.
35811
35812 2009-09-23  Eric Blake  <ebb9@byu.net>
35813
35814         readlink: document portability issue with symlink length
35815         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35816         systems have bogus st_size on symlinks, and mention the
35817         areadlink-with-size module.
35818         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35819         * doc/posix-functions/readlink.texi (readlink): Mention the
35820         areadlink module, and ERANGE failure.
35821         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35822         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35823
35824         readlink: fix Solaris 9 bug with trailing slash
35825         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35826         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35827         * doc/posix-functions/readlink.texi (readlink): Document this.
35828         * modules/readlink-tests: New test.
35829         * tests/test-readlink.c: Likewise.
35830
35831         readlink: fix cygwin 1.5.x bug with return type
35832         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35833         * lib/unistd.in.h (readlink): Use ssize_t.
35834         * lib/readlink.c (readlink): Likewise.
35835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35836         * modules/unistd (Makefile.am): Substitute it.
35837         * lib/unistd.in.h (readlink): Declare replacement.
35838         * doc/posix-functions/readlink.texi (readlink): Document this.
35839
35840         symlink: use throughout gnulib
35841         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35842         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35843         symlink is not used.
35844         * modules/symlinkat (Depends-on): Add symlink.
35845         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35846         * modules/canonicalize-tests (Depends-on): Likewise.
35847         * modules/lstat-tests (Depends-on): Likewise.
35848         * modules/openat-tests (Depends-on): Likewise.
35849         * modules/remove-tests (Depends-on): Likewise.
35850         * modules/rmdir-tests (Depends-on): Likewise.
35851         * modules/unlink-tests (Depends-on): Likewise.
35852         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35853         * tests/test-canonicalize.c (symlink): Likewise.
35854         * tests/test-fstatat.c (symlink): Likewise.
35855         * tests/test-lstat.c (symlink): Likewise.
35856         * tests/test-remove.c (symlink): Likewise.
35857         * tests/test-rmdir.c (symlink): Likewise.
35858         * tests/test-unlink.c (symlink): Likewise.
35859         * tests/test-unlinkat.c (symlink): Likewise.
35860
35861         symlink: new module, for Solaris 9 bug
35862         * modules/symlink: New file.
35863         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35864         * lib/symlink.c: Likewise.
35865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35866         * modules/unistd (Makefile.am): Substitute them.
35867         * lib/unistd.in.h (symlink): Declare replacement.
35868         * MODULES.html.sh (File system functions): Mention it.
35869         * doc/posix-functions/symlink.texi (symlink): Likewise.
35870         * modules/symlink-tests: New test.
35871         * tests/test-symlink.c: Likewise.
35872
35873 2009-09-23  Bruno Haible  <bruno@clisp.org>
35874
35875         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35876         when needed.
35877         Test case: gnulib-tool --import --with-tests atexit inttypes.
35878         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35879
35880 2009-09-23  Bruno Haible  <bruno@clisp.org>
35881
35882         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35883         subcommand, not in a subshell.
35884
35885 2009-09-22  Eric Blake  <ebb9@byu.net>
35886
35887         unistd: sort replacement declarations
35888         * lib/unistd.in.h: Sort declarations.
35889
35890         open, openat: minor optimization
35891         * lib/open.c (open): If open succeeded, len is non-zero.
35892         * lib/openat.c (rpl_openat): Likewise.
35893
35894         link-follow: ensure correct result
35895         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35896         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35897         distinguish between possible failures.
35898
35899 2009-09-21  Eric Blake  <ebb9@byu.net>
35900
35901         fts: avoid compiler warning
35902         * lib/fts.c (dirent_inode_sort_may_be_useful)
35903         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35904
35905 2009-09-19  Bruno Haible  <bruno@clisp.org>
35906
35907         * lib/progreloc.c (canonicalize_file_name): New declaration.
35908
35909 2009-09-19  Eric Blake  <ebb9@byu.net>
35910
35911         link: fix quoting
35912         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35913
35914         openat: fix openat bugs on Solaris 9
35915         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35916         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35917         * modules/openat (Depends-on): Add open.
35918         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35919         * modules/fcntl-h (Makefile.am): Substitute it.
35920         * lib/fcntl.in.h (openat): Declare replacement.
35921         * doc/posix-functions/openat.texi (openat): Document this.
35922
35923         openat: move fstatat and unlinkat into correct files
35924         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35925         compiled.
35926         * lib/openat.c (fstatat, unlinkat): Move...
35927         * lib/fstatat.c (fstatat): ...into correct files.
35928         * lib/unlinkat.c (unlinkat): Likewise.
35929
35930         openat: fix unlinkat bugs on Solaris 9
35931         * lib/unlinkat.c (unlinkat): New file.
35932         * modules/openat (Depends-on): Add unlink.
35933         (Files): Distribute it.
35934         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35935         trailing slash behavior is broken.
35936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35937         * modules/unistd (Makefile.am): Substitute it.
35938         * lib/unistd.in.h (unlinkat): Declare replacement.
35939         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35940
35941         openat: fix fstatat bugs on Solaris 9
35942         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35943         stat.
35944         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35945
35946         test-unlinkat: enhance test, to expose Solaris 9 bug
35947         * tests/test-unlink.c (main): Factor guts...
35948         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35949         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35950         * tests/test-rmdir.c (main): Adjust caller.
35951         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35952         (unlinker): New helper function.
35953         (rmdirat): Enhance check.
35954         * modules/rmdir-tests (Depends-on): Add stdbool.
35955         * modules/unlink-tests (Depends-on): Likewise.
35956         (Files): Add test-unlink.h.
35957         * modules/openat-tests (Files): Likewise.
35958         (Depends-on): Add unlinkdir.
35959
35960         test-fstatat: new test, to expose Solaris 9 bugs
35961         * tests/test-stat.c (main): Factor guts...
35962         * tests/test-stat.h (test_stat_func): ...into new file.
35963         * tests/test-lstat.c (main): Factor guts...
35964         * tests/test-lstat.h (test_lstat_func): ...into new file.
35965         * tests/test-fstatat.c: New file.
35966         * modules/stat-tests (Files): Add test-stat.h.
35967         * modules/lstat-tests (Files): Add test-lstat.h.
35968         (Depends-on): Add stdbool.
35969         * modules/openat-tests (Depends-on): Add pathmax.
35970         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35971         (Makefile.am): Run new test.
35972
35973         remove: new module, for mingw and Solaris 9 bugs
35974         * modules/remove: New file.
35975         * lib/remove.c: Likewise.
35976         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35978         * modules/stdio (Makefile.am): Use them.
35979         * lib/stdio.in.h (remove): Declare replacement.
35980         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35981         * doc/posix-functions/remove.texi (remove): Likewise.
35982         * modules/remove-tests: New test.
35983         * tests/test-remove.c: Likewise.
35984
35985         unlink: new module, for Solaris 9 bug
35986         * modules/unlink: New file.
35987         * lib/unlink.c: Likewise.
35988         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35990         * modules/unistd (Makefile.am): Use them.
35991         * lib/unistd.in.h (stat): Declare replacement.
35992         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35993         * doc/posix-functions/unlink.texi (unlink): Likewise.
35994         * modules/unlink-tests: New test.
35995         * tests/test-unlink.c: Likewise.
35996
35997         lstat: fix Solaris 9 bug
35998         * lib/lstat.c (lstat): Also check for trailing slash on
35999         non-symlink, non-directories.  Use stat module to simplify logic.
36000         * doc/posix-functions/lstat.texi (lstat): Document it.
36001         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36002         (configure.ac): Check for symlink.
36003         * tests/test-lstat.c (main): Add more tests.
36004
36005         stat: add as dependency to other modules
36006         * modules/chown (Depends-on): Add stat.
36007         * modules/euidaccess (Depends-on): Likewise.
36008         * modules/fchdir (Depends-on): Likewise.
36009         * modules/isdir (Depends-on): Likewise.
36010         * modules/link (Depends-on): Likewise.
36011         * modules/lstat (Depends-on): Likewise.
36012         * modules/mkdir-p (Depends-on): Likewise.
36013         * modules/modechange (Depends-on): Likewise.
36014         * modules/open (Depends-on): Likewise.
36015         * modules/readlink (Depends-on): Likewise.
36016         * modules/same (Depends-on): Likewise.
36017
36018         stat: fix Solaris 9 bug
36019         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36020         slash.
36021         * lib/stat.c (rpl_stat): Work around it.
36022         * doc/posix-functions/stat.texi (stat): Update documentation.
36023
36024         stat: new module, for mingw bug
36025         * modules/stat: New file.
36026         * lib/stat.c: Likewise.
36027         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36029         * modules/sys_stat (Makefile.am): Use them.
36030         * lib/sys_stat.in.h (stat): Declare replacement.
36031         * lib/openat.c (fstatat): Deal with lstat and stat being function
36032         macros.
36033         * modules/openat (Depends-on): Add inline.
36034         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36035         * doc/posix-functions/stat.texi (stat): Likewise.
36036         * modules/stat-tests: New test.
36037         * tests/test-stat.c: Likewise.
36038
36039 2009-09-19  Jim Meyering  <meyering@redhat.com>
36040
36041         syntax-check: detect unnecessary inclusion of canonicalize.h
36042         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36043
36044 2009-09-19  Eric Blake  <ebb9@byu.net>
36045
36046         canonicalize-lgpl: adjust clients to use correct header
36047         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36048         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36049         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36050         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36051         * lib/progreloc.c (includes): Likewise.
36052
36053 2009-09-19  Jim Meyering  <meyering@redhat.com>
36054
36055         test-posixtm.c: correct a comment
36056         * tests/test-posixtm.c: Correct first-line comment.
36057         Spotted by Eric Blake.
36058
36059 2009-09-16  Jim Meyering  <meyering@redhat.com>
36060
36061         posixtm-tests: make T const-correct; add a test case
36062         * tests/test-posixtm.c (T): Declare const.
36063         Add a test for -(2^31+1).
36064         Remove useless can-succeed-only-in-2002 test.
36065
36066         posixtm-tests: adjust the sole failing test
36067         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36068         expected output matches what mktime now produces.  Cross-checked via
36069         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36070
36071         posixtm: move #ifdef'd tests into a new module
36072         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36073         * tests/test-posixtm.c: ... this new file.
36074         * modules/posixtm-tests: New module.
36075
36076 2009-09-19  Eric Blake  <ebb9@byu.net>
36077
36078         openat: simplify use of at-func.c
36079         * lib/at-func.c (includes): Include prerequisites here, to
36080         simplify requirements on client files.
36081         * lib/openat-priv.h: Add double-inclusion guard.
36082         * lib/faccessat.c (includes): Simplify.
36083         * lib/fchmodat.c (includes): Likewise.
36084         * lib/fchownat.c (includes): Likewise.
36085         * lib/mkdirat.c (includes): Likewise.
36086         * lib/mkfifoat.c (includes): Likewise.
36087         * lib/symlinkat.c (includes): Likewise.
36088
36089         openat: allow return of fd 0
36090         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36091         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36092         unistd-safer.
36093         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36094         <fcntl.h>; this module does not leak fds.
36095         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36096         must be allowed to return 0, leaving openat_safer to add the
36097         safety.
36098         (openat_permissive): Avoid writing to just-opened fd 2 if
36099         restoring the current directory fails.
36100         * lib/openat-die.c (openat_restore_fail): Add comment.
36101         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36102         (save_cwd): Guarantee safe fd, but without use of open_safer.
36103         * tests/test-openat.c: New test.
36104         * modules/openat-tests (Files, Makefile.am): Distribute and build
36105         new file.
36106
36107         relocatable-prog-wrapper: fix build
36108         * modules/relocatable-prog-wrapper (Files): Update name of
36109         canonicalize m4 file, broken on 2009-09-17.
36110         Reported by emad hajjar <aleppos@hotmail.com>.
36111
36112 2009-09-19  Bruno Haible  <bruno@clisp.org>
36113
36114         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36115         * lib/safe-alloc.c: Likewise.
36116         Reported by Ian Beckwith <ianb@erislabs.net>.
36117
36118 2009-09-18  Bruno Haible  <bruno@clisp.org>
36119
36120         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36121         Reported by <erobles@sensacd.com.mx>.
36122
36123 2009-09-17  Eric Blake  <ebb9@byu.net>
36124
36125         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36126         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36127         slashes when checking if last component is missing.
36128         * tests/test-canonicalize.c (main): Test this.
36129
36130         canonicalize, canonicalize-lgpl: honor // if distinct from /
36131         * modules/canonicalize (Files): Add double-slash-root.m4.
36132         * modules/canonicalize-lgpl (Files): Likewise.
36133         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36134         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36135         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36136         fallback definition.
36137         (canonicalize_filename_mode): Use it to protect //.
36138         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36139         (__realpath): Likewise.
36140         * tests/test-canonicalize.c (main): Test this.
36141         * tests/test-canonicalize-lgpl.c (main): Likewise.
36142         * modules/canonicalize-tests (Depends-on): Add same-inode.
36143         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36144
36145         canonicalize-lgpl: fix glibc bug with trailing slash
36146         * m4/canonicalize-lgpl.m4: Move contents...
36147         * m4/canonicalize.m4: ...here.
36148         (gl_CANONICALIZE_LGPL): Factor realpath check...
36149         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36150         glibc 2.3.5 bug, fixed 2005-04-27.
36151         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36152         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36153         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36154         * modules/canonicalize-lgpl (Files): Manage file rename.
36155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36156         * modules/stdlib (Makefile.am): Substitute witness.
36157         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36158         is needed.
36159         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36160         replacement is required.
36161         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36162         * doc/glibc-functions/canonicalize_file_name.texi
36163         (canonicalize_file_name): Document this.
36164         * doc/posix-functions/realpath.texi (realpath): Likewise.
36165
36166         canonicalize-lgpl: reject non-directory with trailing slash
36167         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36168         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36169         catches failures in glibc 2.3.5.
36170         * tests/test-canonicalize.c (main): Likewise.
36171
36172         canonicalize-lgpl: use native realpath if it works
36173         * lib/canonicalize-lgpl.c (realpath): Guard with
36174         FUNC_REALPATH_WORKS.
36175         * lib/stdlib.in.h (realpath): Make declaration optional based on
36176         HAVE_REALPATH.
36177         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36178         native realpath works.
36179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36180         * modules/stdlib (Makefile.am): Substitute witness.
36181
36182         canonicalize, canonicalize-lgpl: use <stdlib.h>
36183         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36184         (Include): Mention <stdlib.h>.
36185         (configure.ac): Mention functions we provide.
36186         * modules/canonicalize (configure.ac): Likewise.
36187         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36188         realpath if canonicalize_file_name is missing.
36189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36190         * modules/stdlib (Makefile.am): Substitute witnesses.
36191         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36192         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36193         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36194         * NEWS: Document this.
36195         * doc/glibc-functions/canonicalize_file_name.texi
36196         (canonicalize_file_name): Likewise.
36197         * doc/posix-functions/realpath.texi (realpath): Likewise.
36198         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36199
36200         test-canonicalize: consolidate into single C program
36201         * tests/test-canonicalize.sh: Delete; move setup into...
36202         * tests/test-canonicalize.c (main): ...the program, making it
36203         easier to run in debugger.  Add some tests.
36204         * modules/canonicalize-tests (Files): Remove unused file.
36205         (Depends-on): Add progname.
36206         (configure.ac, Makefile.am): Simplify.
36207
36208         test-canonicalize-lgpl: consolidate into single C program
36209         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36210         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36211         easier to run in debugger.  Add some tests.
36212         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36213         (configure.ac, Makefile.am): Simplify.
36214
36215         canonicalize: avoid resolvepath
36216         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36217         unnecessary checks.
36218         * lib/canonicalize.c (includes): Simplify.
36219         (canonicalize_file_name): Drop resolvepath implementation.
36220         * modules/canonicalize (Depends-on): Drop filenamecat.
36221
36222         canonicalize: don't lose errno
36223         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36224         over calls to free.
36225
36226         canonicalize: simplify errno handling
36227         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36228         assignment.
36229
36230         canonicalize, canonicalize-lgpl: update module dependencies
36231         * modules/canonicalize (Depends-on): Add extensions, lstat,
36232         pathmax, stdlib.
36233         (Files): Drop pathmax.h.
36234         (configure.ac): Adjust macro name.
36235         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36236         lstat, stdlib, sys_stat.
36237         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36238         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36239         extensions.
36240         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36241         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36242         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36243         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36244         declaration, if available.
36245         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36246         we can rely on the readlink module.
36247         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36248         (includes): Use <unistd.h> unconditionally.
36249
36250 2009-09-17  Eric Blake  <ebb9@byu.net>
36251
36252         maint: make Include sections of modules consistent
36253         * modules/alloca: Use only header name; no need to list #include.
36254         * modules/alloca-opt: Likewise.
36255         * modules/arpa_inet: Likewise.
36256         * modules/canon-host: Likewise.
36257         * modules/configmake: Likewise.
36258         * modules/dirent: Likewise.
36259         * modules/eealloc: Likewise.
36260         * modules/environ: Likewise.
36261         * modules/fchdir: Likewise.
36262         * modules/fcntl: Likewise.
36263         * modules/fcntl-h: Likewise.
36264         * modules/gethrxtime: Likewise.
36265         * modules/gettime: Likewise.
36266         * modules/ignore-value: Likewise.
36267         * modules/inet_ntop: Likewise.
36268         * modules/inet_pton: Likewise.
36269         * modules/inttypes: Likewise.
36270         * modules/isnand-nolibm: Likewise.
36271         * modules/isnanf-nolibm: Likewise.
36272         * modules/mbchar: Likewise.
36273         * modules/mbfile: Likewise.
36274         * modules/mbiter: Likewise.
36275         * modules/mbuiter: Likewise.
36276         * modules/netdb: Likewise.
36277         * modules/netinet_in: Likewise.
36278         * modules/nproc: Likewise.
36279         * modules/pagealign_alloc: Likewise.
36280         * modules/poll: Likewise.
36281         * modules/printf-frexp: Likewise.
36282         * modules/pthread: Likewise.
36283         * modules/putenv: Likewise.
36284         * modules/random_r: Likewise.
36285         * modules/relocatable-prog: Likewise.
36286         * modules/search: Likewise.
36287         * modules/select: Likewise.
36288         * modules/selinux-h: Likewise.
36289         * modules/settime: Likewise.
36290         * modules/signal: Likewise.
36291         * modules/size_max: Likewise.
36292         * modules/socklen: Likewise.
36293         * modules/ssize_t: Likewise.
36294         * modules/stdarg: Likewise.
36295         * modules/stdbool: Likewise.
36296         * modules/stddef: Likewise.
36297         * modules/stdint: Likewise.
36298         * modules/stdio: Likewise.
36299         * modules/stdlib: Likewise.
36300         * modules/string: Likewise.
36301         * modules/strings: Likewise.
36302         * modules/sys_file: Likewise.
36303         * modules/sys_ioctl: Likewise.
36304         * modules/sys_select: Likewise.
36305         * modules/sys_socket: Likewise.
36306         * modules/sys_stat: Likewise.
36307         * modules/sys_time: Likewise.
36308         * modules/sys_times: Likewise.
36309         * modules/sys_utsname: Likewise.
36310         * modules/sys_wait: Likewise.
36311         * modules/sysexits: Likewise.
36312         * modules/time: Likewise.
36313         * modules/times: Likewise.
36314         * modules/tmpfile: Likewise.
36315         * modules/trim: Likewise.
36316         * modules/unistd: Likewise.
36317         * modules/wchar: Likewise.
36318         * modules/wctype: Likewise.
36319
36320 2009-09-17  Bruno Haible  <bruno@clisp.org>
36321
36322         Make getdate.y compile on QNX and NetBSD 5 / i386.
36323         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36324         TIME_T_FITS_IN_LONG_INT.
36325         * lib/getdate.y (long_time_t): New type.
36326         (relative_time): Change type of 'seconds' field to long_time_t.
36327         (get_date): Update types of local variables. Check against overflow
36328         during conversion from long_time_t to time_t.
36329         Reported by Matt Kraai <kraai@ftbfs.org>
36330         and Hasso Tepper <hasso@netbsd.org>.
36331
36332 2009-09-17  Bruno Haible  <bruno@clisp.org>
36333
36334         * modules/COPYING: Update copyright years.
36335         * modules/README: Likeiwse.
36336         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36337         Reported by Ian Beckwith <ianb@erislabs.net>.
36338
36339 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36340
36341         * users.txt: Update references for gnuit package.
36342
36343 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36344
36345         * m4/getdelim.m4: Fix typo in copyright line.
36346
36347 2009-09-17  Bruno Haible  <bruno@clisp.org>
36348
36349         * lib/atoll.c: Use the standard header with GPL copyright.
36350         * lib/argz.in.h: Likewise.
36351         * lib/glob.c: Likewise.
36352         * lib/glob-libc.h: Likewise.
36353         * lib/random_r.c: Likewise.
36354         * lib/siglist.h: Likewise.
36355         * lib/strsignal.c: Likewise.
36356         Reported by Ian Beckwith <ianb@erislabs.net>.
36357
36358 2009-09-17  Eric Blake  <ebb9@byu.net>
36359
36360         rmdir: ensure correct dependency order
36361         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36362
36363 2009-09-17  Bruno Haible  <bruno@clisp.org>
36364
36365         Disable assertion that fails on NetBSD 5 / i386.
36366         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36367         Reported by Sam Steingold <sds@gnu.org>
36368         and Hasso Tepper <hasso@netbsd.org>.
36369
36370 2009-09-16  Eric Blake  <ebb9@byu.net>
36371
36372         unlinkdir: port to mingw
36373         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36374         on which no one can unlink a directory.
36375
36376         stdlib: sort witness names
36377         * modules/stdlib (Makefile.am): Sort replacements.
36378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36379         * lib/stdlib.in.h: Likewise.
36380
36381         parse-duration-tests: avoid link failure
36382         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36383         LIBINTL.
36384         Reported by Tom G. Christensen.
36385
36386         openat-tests: ensure unlinkat behaves like rmdir
36387         * tests/test-rmdir.c (main): Factor guts...
36388         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36389         * modules/rmdir-tests (Files): Ship new file.
36390         * modules/openat-tests: New test.
36391         * tests/test-unlinkat.c: Likewise.
36392
36393         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36394         * modules/rmdir-errno (Status, Notice): Now obsolete.
36395
36396         rmdir: work around cygwin 1.5.x and mingw bugs
36397         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36398         * lib/rmdir.c (rmdir): Work around it.
36399         * modules/rmdir (Status, Notice): No longer obsolete.
36400         (Files): Add dos.m4.
36401         (Depends-on): Add unistd.
36402         (configure.ac): Set witnesses.
36403         (License): Relax to LGPLv2+.
36404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36405         * modules/unistd (Makefile.am): Substitute witnesses.
36406         * lib/unistd.in.h (rmdir): Declare replacement.
36407         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36408         * modules/rmdir-tests: New tests.
36409         * tests/test-rmdir.c: Likewise.
36410
36411 2009-09-15  Eric Blake  <ebb9@byu.net>
36412
36413         fchdir: improve use of replacement functions
36414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36416         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36417         REPLACE_CLOSEDIR.
36418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36419         * modules/sys_stat (Makefile.am): Substitute correct witness.
36420         * modules/dirent (Makefile.am): Likewise.
36421         * modules/unistd (Makefile.am): Likewise.
36422         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36423         * lib/unistd.in.h (dup): Likewise.
36424         * lib/sys_stat.in.h (fstat): Likewise.
36425
36426         maint: ignore gnulib-tool temp files
36427         * .gitignore: Ignore files created during gnulib-tool --test.
36428
36429 2009-09-13  Jim Meyering  <meyering@redhat.com>
36430
36431         posixtm: don't reject a time that specify "60" as the number of seconds
36432         * lib/posixtm.c (posixtime): The code to reject invalid dates
36433         would also reject a time specified with the .60 suffix.
36434         But POSIX allows that, in order to accommodate leap seconds.
36435         So don't reject it.
36436         (main): Adjust tests accordingly.
36437         * modules/posixtm (Depends-on): Add stpcpy.
36438
36439 2009-09-11  Jim Meyering  <meyering@redhat.com>
36440
36441         announce-gen: include [$release_type] in emitted Subject:
36442         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36443         e.g., [stable] in the emitted Subject: line.
36444
36445 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36446
36447         Remove obsolete macros from several modules.
36448         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36449         obsolete Autoconf macros with their modern counterparts.
36450         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36451         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36453         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36454         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36455         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36457         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36458         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36459         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36460         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36461         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36462         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36463         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36464         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36465         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36466         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36467         * m4/time_r.m4 (gl_TIME_R): Likewise.
36468         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36469         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36470         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36471
36472         Fix copyright header in build-aux scripts.
36473         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36474         recommendation.
36475         * build-aux/ncftpput-ftp: Likewise.
36476         * build-aux/update-copyright: Likewise.
36477
36478 2009-09-09  Eric Blake  <ebb9@byu.net>
36479
36480         test-link: allow Linux choice of errno
36481         * tests/test-link.c (main): Relax test for alternate error.
36482
36483         strndup: fix improper m4 caching
36484         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36485         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36486         (gl_PREREQ_STRNDUP): Delete.
36487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36488         * modules/string (Makefile.am): Substitute it.
36489         * lib/string.in.h (strndup): Modernize prototype.
36490
36491         getcwd: port to mingw
36492         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36493         different from the POSIX assumptions made throughout the getcwd
36494         module; fortunately, the mingw getcwd does not need replacement.
36495         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36496         * modules/getcwd-tests: New test.
36497         * tests/test-getcwd.c: Likewise.
36498
36499         link: fix platform bugs
36500         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36501         * lib/link.c (link): Work around them.  Fix related mingw bug.
36502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36503         * modules/unistd (Makefile.am): Substitute it.
36504         * lib/unistd.in.h (link): Declare replacement.
36505         * doc/posix-functions/link.texi (link): Document this.
36506         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36507
36508         test-link: consolidate into single C program, test more cases
36509         * tests/test-link.sh: Delete.
36510         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36511         at least Cygwin and Solaris.
36512         * modules/link-tests (Files): Remove unused file.
36513         (Depends-on): Add errno, sys_stat.
36514         (Makefile.am): Simplify.
36515
36516 2009-09-08  Bruno Haible  <bruno@clisp.org>
36517
36518         Work around towlower, towupper bug on mingw.
36519         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36520         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36521         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36522         * doc/posix-functions/towupper.texi: Likewise.
36523         Reported by Eric Blake.
36524
36525 2009-09-08  Jim Meyering  <meyering@redhat.com>
36526
36527         build: don't try to run autoheader if we don't use it
36528         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36529         is not used in configure.ac.
36530
36531 2009-09-08  Eric Blake  <ebb9@byu.net>
36532
36533         euidaccess: fix compilation error
36534         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36535
36536         rawmemchr: relax license
36537         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36538         okay.
36539         Reported by Jim Meyering.
36540
36541         mkfifoat: new module
36542         * modules/mkfifoat: New file.
36543         * lib/mkfifoat.c: Likewise.
36544         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36545         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36546         * modules/sys_stat (Makefile.am): Use them.
36547         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36548         * MODULES.html.sh (File system functions): Mention module.
36549         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36550         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36551         * modules/mkfifoat-tests: New test.
36552         * tests/test-mkfifoat.c: Likewise.
36553
36554         strchrnul: relax license
36555         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36556         okay.
36557         Reported by Jim Meyering.
36558
36559 2009-09-08  Eric Blake  <ebb9@byu.net>
36560
36561         fstatat: fix compilation on Solaris
36562         * lib/fstatat.c (includes): Add fcntl.h.
36563         Reported by Pádraig Brady.
36564
36565 2009-09-07  Eric Blake  <ebb9@byu.net>
36566
36567         rename: modernize replacement
36568         * modules/rename (Depends-on): Add stdio.
36569         (configure.ac): Declare witness.
36570         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36571         stdio take care of replacement.
36572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36573         * modules/stdio (Makefile.am): Substitute them.
36574         * lib/stdio.in.h (rename): Declare replacement.
36575         * lib/rename.c (includes): Allow cross-compilation to non-windows
36576         machines.
36577         * doc/posix-functions/rename.texi (rename): Improve
36578         documentation.
36579
36580         stdio: sort witness names
36581         * modules/stdio (Makefile.am): Sort replacements.
36582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36583         * lib/stdio.in.h: Likewise.
36584
36585         getcwd: minor cleanups
36586         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36587         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36588
36589         openat: provide more convenience names
36590         * modules/faccessat (configure.ac): Add C witness.
36591         * lib/unistd.in.h (readlinkat): Fix typo.
36592         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36593         convenience wrappers.
36594         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36595         wrappers in syntax checks.
36596
36597 2009-09-06  Eric Blake  <ebb9@byu.net>
36598
36599         doc: fix comments in recent patches
36600         * lib/faccessat.c: Mention correct function.
36601         * lib/fchmodat.c: Likewise.
36602         * lib/fchownat.c: Likewise.
36603         * lib/symlinkat.c: Likewise.
36604         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36605         constants.
36606
36607         faccessat, symlinkat: continue cleanup of previous patch
36608         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36609         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36610         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36612         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36613         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36614         set.
36615
36616 2009-09-06  Bruno Haible  <bruno@clisp.org>
36617
36618         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36619         (fstatat): Declare if GNULIB_FSTATAT is set.
36620         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36621         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36622         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36623         * modules/fcntl-h (Files): Remove m4/openat.m4.
36624         * modules/sys_stat (Files): Remove m4/openat.m4.
36625         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36626         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36627         * modules/unistd (Files): Remove m4/openat.m4.
36628         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36629         GNULIB_OPENAT.
36630         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36631         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36632         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36633         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36634         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36635         gl_OPENAT_DEFAULTS.
36636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36637         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36638         Don't require gl_OPENAT_DEFAULTS.
36639         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36640         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36641         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36642         (gl_OPENAT_DEFAULTS): Remove macro.
36643
36644 2009-09-06  Bruno Haible  <bruno@clisp.org>
36645
36646         * modules/openat (configure.ac): Remove unneeded witness.
36647
36648 2009-09-06  Bruno Haible  <bruno@clisp.org>
36649
36650         Set errno to ENOSYS when a function is entirely unsupported.
36651         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36652         EOPNOTSUPP.
36653         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36654         * modules/chown (Depends-on): Remove errno.
36655
36656 2009-09-06  Bruno Haible  <bruno@clisp.org>
36657
36658         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36659
36660 2009-09-06  Bruno Haible  <bruno@clisp.org>
36661
36662         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36663
36664 2009-09-06  Ben Pfaff  <blp@gnu.org>
36665             Bruno Haible  <bruno@clisp.org>
36666
36667         Work around a glibc bug in strtok_r.
36668         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36669         Undefine if UNDEFINE_STRTOK_R is set.
36670         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36672         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36673         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36674         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36675         UNDEFINE_STRTOK_R.
36676         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36677
36678 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36679
36680         exclude: minor fix
36681         * lib/exclude.c: Include wctype.h
36682
36683 2009-09-06  Akim Demaille  <demaille@gostai.com>
36684
36685         bootstrap: improve error message
36686         * build-aux/bootstrap (find_tool): Upon failure, report the list
36687         of candidates.
36688         Honor the initial value of the envvar.
36689
36690 2009-09-05  Eric Blake  <ebb9@byu.net>
36691
36692         symlinkat: new module
36693         * modules/symlinkat: New file.
36694         * lib/symlinkat.c: Likewise.
36695         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36697         * modules/unistd (Makefile.am): Use them.
36698         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36699         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36700         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36701         * MODULES.html.sh (File system functions): Mention module.
36702         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36703         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36704         * modules/symlinkat-tests: New test.
36705         * tests/test-symlinkat.c: Likewise.
36706
36707         test-openat-safer: add more checks
36708         * tests/test-openat-safer.c (main): Check more code paths.
36709
36710 2009-09-05  Jim Meyering  <meyering@redhat.com>
36711
36712         syntax-check: detect unnecessary inclusion of openat.h
36713         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36714
36715 2009-09-05  Bruno Haible  <bruno@clisp.org>
36716
36717         Support towlower, towupper.
36718         * doc/posix-functions/towlower.texi: Mention module wctype.
36719         * doc/posix-functions/towupper.texi: Likewise.
36720         * lib/wctype.in.h (towlower, towupper): New functions.
36721         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36722         (ASSERT): New macro.
36723         (e): New variable.
36724         (main): Test also towlower, towupper. Test WEOF argument.
36725         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36726
36727 2009-09-05  Bruno Haible  <bruno@clisp.org>
36728
36729         Fix conversion behaviour when the input is invalid.
36730         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36731         mark occurring in first pass of indirect conversion.
36732         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36733         input.
36734         Found by clang's static analyzer.
36735
36736 2009-09-05  Bruno Haible  <bruno@clisp.org>
36737
36738         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36739         where direct conversion is possible.
36740
36741 2009-09-04  Eric Blake  <ebb9@byu.net>
36742
36743         openat: fail with ENOENT on empty name
36744         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36745         buffer.
36746
36747         link-follow: fix logic bug in prior patch
36748         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36749         reversed sense of yes and no in prior patch.  Avoid confusing
36750         compilation failure with desired semantics.
36751
36752         link-follow: accomodate mingw and cross-compilation
36753         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36754         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36755         cross-compilation results to -1, to make linkat easier to
36756         implement when cross-compiling.  Trivially support mingw.
36757         * modules/link-follow (configure.ac): Call new name.
36758         * NEWS: Mention this.
36759
36760 2009-09-03  Eric Blake  <ebb9@byu.net>
36761
36762         faccessat: compile replacement
36763         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36764         needed.
36765
36766         fts: fix compilation error
36767         * lib/fts.c (includes): Re-add "openat.h", for
36768         openat_needs_fchdir.
36769
36770         faccessat: new module
36771         * modules/faccessat: New file.
36772         * lib/faccessat.c: Likewise.
36773         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36775         * modules/unistd (Makefile.am): Use it.
36776         * lib/unistd.in.h (faccessat): Declare it.
36777         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36778         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36779         * MODULES.html.sh (File system functions): Mention it.
36780         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36781         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36782
36783         euidaccess: prefer POSIX over non-standard implementation
36784         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36785         * lib/euidaccess.c (euidaccess): Use it if available.
36786
36787         openat: make template easier to use
36788         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36789         AT_FUNC_F2 to be undefined.
36790         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36791         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36792         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36793         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36794         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36795         Likewise.
36796         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36797         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36798         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36799         Likewise.
36800
36801         openat: declare in POSIX headers
36802         * NEWS: Mention this.
36803         * modules/openat (configure.ac): Declare witnesses.
36804         (Depends-on): Add fcntl-h, sys_stat, unistd.
36805         (Include): Mention correct headers.
36806         * modules/fcntl-h (Depends-on): Add link-warning.
36807         (Files): Add openat.m4.
36808         (Makefile.am): Substitute witnesses.
36809         * modules/sys_stat (Files, Makefile.am): Likewise.
36810         * modules/unistd (Files, Makefile.am): Likewise.
36811         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36812         (gl_OPENAT_DEFAULTS): New macro.
36813         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36815         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36816         (SYS_STAT_H): Remove unused variable.
36817         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36818         * lib/fcntl--.h (includes): Remove unneeded header.
36819         * lib/openat-safer.c (includes): Likewise.
36820         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36821         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36822         appropriate headers.
36823         (__OPENAT_PREFIX): Delete.
36824         * lib/fcntl.in.h (openat): Provide declaration.
36825         (AT_FDCWD): Fix Solaris bug.
36826         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36827         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36828         * lib/fchmodat.c (includes):  Adjust to find declaration.
36829         * lib/fchownat.c (includes): Likewise.
36830         * lib/mkdirat.c (includes): Likewise.
36831         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36832         still visible.
36833
36834 2009-09-02  Eric Blake  <ebb9@byu.net>
36835
36836         errno: use consistently
36837         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36838         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36839         * lib/canonicalize.c (ELOOP): Likewise.
36840         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36841         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36842         * lib/lchown.c (EOPNOTSUPP): Likewise.
36843         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36844         * lib/savewd.c (ESTALE): Likewise.
36845         * lib/settime.c (ENOSYS): Likewise.
36846         * lib/utimens.c (ENOSYS): Likewise.
36847         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36848         * lib/chdir-safer.c (ELOOP): Likewise.
36849         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36850         * modules/c-stack (Depends-on): Add errno.
36851         * modules/canonicalize (Depends-on): Likewise.
36852         * modules/chdir-safer (Depends-on): Likewise.
36853         * modules/fdopendir (Depends-on): Likewise.
36854         * modules/inet_ntop (Depends-on): Likewise.
36855         * modules/inet_pton (Depends-on): Likewise.
36856         * modules/lchown (Depends-on): Likewise.
36857         * modules/openat (Depends-on): Likewise.
36858         * modules/savewd (Depends-on): Likewise.
36859         * modules/settime (Depends-on): Likewise.
36860         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36861
36862         fts: avoid leaking fds
36863         * modules/fts (Depends-on): Add cloexec.
36864         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36865         flag.
36866
36867         fts: make directory fds more robust
36868         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36869         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36870
36871         backupfile, chdir-long, fts, savedir: make safer
36872         * lib/backupfile.c (includes): Use "dirent--.h", since
36873         numbered_backup can write to stderr during readdir.
36874         * lib/savedir.c (includes): Likewise.
36875         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36876         emulation can write to stderr on failure.
36877         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36878         * lib/getcwd.c: Document why opendir_safer is unused.
36879         * lib/glob.c: Likewise.
36880         * lib/scandir.c: Likewise.
36881         * lib/openat-proc.c: Likewise, for open_safer.
36882         * modules/backupfile (Depends-on): Add dirent-safer.
36883         * modules/savedir (Depends-on): Likewise.
36884         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36885         * modules/chdir-long (Depends-on): Add openat-safer.
36886
36887         openat-safer: new module
36888         * modules/openat-safer: New file.
36889         * lib/openat-safer.c: Likewise.
36890         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36891         * lib/fcntl-safer.h (openat_safer): Declare.
36892         * lib/fcntl--.h (openat): Override.
36893         * MODULES.html.sh (File descriptor based I/O): Mention it.
36894         * lib/openat.h: Add double-inclusion guards.
36895         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36896         "fcntl--.h", so we can implement openat.
36897         * modules/openat-safer-tests: New test.
36898         * tests/test-openat-safer.c: New file.
36899
36900         dirent-safer: new module
36901         * modules/dirent-safer: New file.
36902         * lib/dirent--.h: Likewise.
36903         * lib/dirent-safer.h: Likewise.
36904         * lib/opendir-safer.c: Likewise.
36905         * m4/dirent-safer.m4: Likewise.
36906         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36907         * modules/dirent-safer-tests: New test.
36908         * tests/test-dirent-safer.c: New file.
36909         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36910
36911         fdopendir: optimize on mingw
36912         * lib/unistd.in.h (_gl_directory_name): New prototype.
36913         * lib/fchdir.c (_gl_directory_name): Implement it.
36914         (fchdir): Use it to simplify implementation.
36915         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36916         fchdir, when available, to avoid calling [f]chdir().
36917
36918         fdopendir: split into its own module
36919         * lib/openat.c (fdopendir): Move...
36920         * lib/fdopendir.c: ...into new file.
36921         * modules/fdopendir: New module.
36922         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36923         * modules/openat (Depends-on): Add fdopendir.
36924         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36925         fdopendir here.
36926         * modules/savedir (Depends-on): Only need fdopendir, not full
36927         openat.
36928         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36929         * lib/openat.h (fdopendir): Drop prototype.
36930         * lib/dirent.in.h (fdopendir): Provide prototype.
36931         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36932         * modules/dirent (Makefile.am): Substitute them.
36933         * MODULES.html.sh (File system functions): Mention it.
36934         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36935         * modules/fdopendir-tests: New file.
36936         * tests/test-fdopendir.c: Likewise.
36937
36938         fchdir: use more consistent macro convention
36939         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36940         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36941         REPLACE_FCHDIR, rather than relying on config.h macros.
36942         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36943         inside a single make-time REPLACE_FCHDIR block, rather than using
36944         the config.h FCHDIR_REPLACEMENT.
36945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36946         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36947         Manage fstat replacement.
36948         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36949         REPLACE_FCHDIR.
36950         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36951         (Makefile.am): Substitute REPLACE_FCHDIR.
36952         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36953         FCHDIR_REPLACEMENT.
36954         * lib/dup-safer.c (dup_safer): Likewise.
36955         * lib/dup2.c (rpl_dup2): Likewise.
36956         * lib/dup3.c (rpl_dup3): Likewise.
36957         * lib/open.c (rpl_open): Likewise.
36958
36959         fchdir: simplify error handling, and support dup3
36960         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36961         stdbool, malloc-posix, realloc-posix.
36962         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36963         (ensure_dirs_slot): Return false on allocation failure.
36964         (rpl_dup2): Delete.
36965         (_gl_register_dup): New function.
36966         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36967         (_gl_register_fd): Close fd on allocation failure.
36968         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36969         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36970         prototype.
36971         (rpl_dup2_fchdir): Delete prototype.
36972         * lib/open.c (open): Update caller.
36973         * lib/dup2.c (dup2): Track fchdir metadata.
36974         * lib/dup3.c (dup3): Likewise.
36975         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36976         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36977
36978 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36979
36980         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36981         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36982         don't pass arguments to AC_OUTPUT.
36983
36984 2009-09-02  Bruno Haible  <bruno@clisp.org>
36985
36986         * modules/mkdtemp (License): Relicense under LGPLv2+.
36987         Reported by Paolo Bonzini.
36988
36989 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36990
36991         Replace uses of obsolete autoconf macros in Jim's modules.
36992         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36993         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36994         can evoke a warning from autoconf when run with -Wobsolete
36995         enabled.  They were declared obsolete for good reasons (see
36996         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36997         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36998         should not continue using the deprecated macros.
36999         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37000         obsolete Autoconf macros with modern counterparts.
37001         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37002         * m4/dos.m4 (gl_AC_DOS): Likewise.
37003         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37004         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37005         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37006         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37007         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37008         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37009         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37010         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37011         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37012         Likewise.
37013         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37014         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37015         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37016         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37017         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37018         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37019
37020 2009-09-01  Eric Blake  <ebb9@byu.net>
37021
37022         fchdir: fix off-by-one bug in previous patch
37023         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37024         (_gl_unregister_fd): Delete useless if.
37025
37026 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37027
37028         maint.mk: sort the list of syntax-check rules
37029         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37030         easier to get a sense of progress when the rules are run sequentially
37031         and take a long time.
37032
37033 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37034
37035         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37036         * modules/netinet_in: Likewise.
37037         * modules/sys_file: Likewise.
37038         * modules/sys_ioctl: Likewise.
37039         * modules/sys_select: Likewise.
37040         * modules/sys_socket: Likewise.
37041         * modules/sys_stat: Likewise.
37042         * modules/sys_time: Likewise.
37043         * modules/sys_times: Likewise.
37044         * modules/sys_utsname: Likewise.
37045         * modules/sys_wait: Likewise.
37046
37047 2009-09-01  Jim Meyering  <meyering@redhat.com>
37048
37049         fts: help ensure that return values are not ignored
37050         * lib/fts_.h (__GNUC_PREREQ): Define.
37051         (__attribute_warn_unused_result__): Define.
37052         (fts_children, fts_close, fts_open, fts_read): Declare with
37053         __attribute_warn_unused_result__.
37054
37055         fts: fts_close now fails also when closing a dir file descriptor fails
37056         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37057         and propagate to caller, along with errno.
37058
37059         announce-gen: correct formatting in --help output
37060         * build-aux/announce-gen (usage): Move the one-line description in
37061         --help output "up", to where it belongs, just after Usage:.
37062
37063 2009-08-31  Eric Blake  <ebb9@byu.net>
37064
37065         fchdir: port to mingw
37066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37067         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37068         opened, then use a substitute.
37069         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37070         replacement.
37071         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37072         (_gl_register_fd): No need to check stat if open already filters
37073         all directories.
37074         (fchdir): Fix error condition to match POSIX.
37075         * modules/fchdir (Depends-on): Add sys_stat.
37076         * doc/posix-functions/open.texi (open): Document the limitation.
37077         * modules/fchdir-tests: New file.
37078         * tests/test-fchdir.c: Likewise.
37079
37080         canonicalize: allow cross-testing from cygwin to mingw
37081         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37082         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37083         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37084         Likewise.
37085         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37086         target does not support symlinks.
37087         * tests/test-canonicalize-lgpl.sh: Likewise.
37088
37089         chown: avoid compilation warning on mingw
37090         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37091         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37092         mingw.
37093         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37094         * modules/chown (Depends-on): Add errno.
37095
37096 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37097
37098         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37099         command.
37100
37101 2009-08-31  Jim Meyering  <meyering@redhat.com>
37102
37103         canonicalize: remove useless initialization
37104         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37105         initialization of local, "end".
37106
37107 2009-08-30  Bruno Haible  <bruno@clisp.org>
37108
37109         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37110         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37111         ENOSYS.
37112
37113 2009-08-30  Bruno Haible  <bruno@clisp.org>
37114
37115         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37116         /usr/xpg4/bin/tr when it exists.
37117         * tests/test-pipe-filter-gi1.sh: Likewise.
37118
37119 2009-08-30  Bruno Haible  <bruno@clisp.org>
37120
37121         Work around deficient /usr/bin/id program on Solaris.
37122         * tests/test-file-has-acl.sh (ID): New variable.
37123         * tests/test-set-mode-acl.sh (ID): Likewise.
37124         * tests/test-copy-acl.sh (ID): Likewise.
37125         * tests/test-copy-file.sh (ID): Likewise.
37126
37127 2009-08-30  Bruno Haible  <bruno@clisp.org>
37128
37129         New module 'xstriconveh'.
37130         * lib/xstriconveh.h: New file.
37131         * lib/xstriconveh.c: New file.
37132         * modules/xstriconveh: New file.
37133
37134 2009-08-30  Bruno Haible  <bruno@clisp.org>
37135
37136         Make it easier to use mem_cd_iconveh.
37137         * lib/striconveh.h (iconveh_t): New type.
37138         (iconveh_open, iconveh_close): New declarations.
37139         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37140         with a single 'const iconveh_t *' argument.
37141         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37142         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37143         with a single 'const iconveh_t *' argument.
37144         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37145         * tests/test-striconveh.c (main): Update.
37146         * NEWS: Mention the change.
37147
37148 2009-08-30  Bruno Haible  <bruno@clisp.org>
37149
37150         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37151         problem.
37152
37153 2009-08-30  Bruno Haible  <bruno@clisp.org>
37154
37155         Work around iconv_open problem on Solaris.
37156         * lib/iconv_open-solaris.gperf: New file.
37157         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37158         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37159         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37160         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37161         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37162         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37163
37164 2009-08-29  Jim Meyering  <meyering@redhat.com>
37165
37166         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37167         * top/maint.mk (cvs-check): Remove target; it was just an alias
37168         to the better-named vc-diff-check.
37169         (maintainer-distcheck): Remove rule.  It was used only from
37170         the (alpha/beta/major) target, and all of its commands but one
37171         were coreutils-specific.
37172         (vc-dist): Remove rule.
37173         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37174         Run vc-diff-check, not vc-dist.
37175         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37176
37177 2009-08-27  Bruno Haible  <bruno@clisp.org>
37178
37179         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37180         of 0.
37181
37182 2009-08-27  Bruno Haible  <bruno@clisp.org>
37183
37184         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37185         compilers.
37186         * doc/func.texi: Document the SunPRO C bug.
37187
37188 2009-08-27  Bruno Haible  <bruno@clisp.org>
37189
37190         Fix link error on Solaris.
37191         * tests/test-parse-duration.c (xstrdup): Remove function.
37192
37193 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37194
37195         ignore-value: handle pointer types, too
37196         * lib/ignore-value.h (__attribute__): Remove definition.
37197         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37198         of a more concise and more-often effective "(void) i" statement.
37199         (ignore_ptr): New function to suppress warnings from functions that
37200         return pointers, and to make it explicit that one function doesn't
37201         handle all cases.
37202
37203 2009-08-25  Bruno Haible  <bruno@clisp.org>
37204
37205         dup2: work around a Linux bug.
37206         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37207         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37208         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37209         Reported by Simon Josefsson.
37210
37211 2009-08-25  Jim Meyering  <meyering@redhat.com>
37212
37213         libguestfs uses gnulib
37214         * users.txt: Add libguestfs.
37215
37216 2009-08-24  Eric Blake  <ebb9@byu.net>
37217
37218         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37219         * lib/pipe2.c (includes): Add binary-io.h.
37220         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37221
37222 2009-08-24  Bruno Haible  <bruno@clisp.org>
37223
37224         Tolerate declared but missing accept4 syscall.
37225         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37226         available.
37227         * lib/sys_socket.in.h (accept4): If the function is already present,
37228         override it.
37229         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37230         * modules/accept4 (Makefile.am): Compile accept4.c always.
37231         Reported by Paolo Bonzini and Eric Blake.
37232
37233 2009-08-23  Bruno Haible  <bruno@clisp.org>
37234
37235         New module 'accept4'.
37236         * lib/sys_socket.in.h (accept4): New declaration.
37237         * lib/accept4.c: New file.
37238         * m4/accept4.m4: New file.
37239         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37240         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37241         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37242         HAVE_ACCEPT4.
37243         * modules/accept4: New file.
37244         * doc/glibc-functions/accept4.texi: Mention the new module.
37245
37246 2009-08-24  Jim Meyering  <meyering@redhat.com>
37247
37248         progname: also set global program_invocation_name, when possible
37249         Before this change, a libtool-enabled program that calls glibc's
37250         error function would report the program name as
37251         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37252         * modules/progname (configure.ac): Check for a declaration of
37253         program_invocation_name.
37254         * lib/progname.c:  Include <errno.h>.
37255         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37256         Set program_invocation_name.
37257
37258 2009-08-23  Bruno Haible  <bruno@clisp.org>
37259
37260         * lib/dup3.c: Include <string.h>.
37261
37262 2009-08-23  Bruno Haible  <bruno@clisp.org>
37263
37264         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37265         * lib/pipe2.c (pipe2): Likewise.
37266         Suggested by Eric Blake.
37267
37268 2009-08-23  Bruno Haible  <bruno@clisp.org>
37269
37270         Tolerate declared but missing dup3 syscall.
37271         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37272         * lib/unistd.in.h (dup3): If the function is already present,
37273         override it.
37274         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37275         * modules/dup3 (Makefile.am): Compile dup3.c always.
37276         Reported by Paolo Bonzini.
37277
37278 2009-08-23  Bruno Haible  <bruno@clisp.org>
37279
37280         Tolerate declared but missing pipe2 syscall.
37281         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37282         available.
37283         * lib/unistd.in.h (pipe2): If the function is already present,
37284         override it.
37285         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37286         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37287         Reported by Paolo Bonzini.
37288
37289 2009-08-23  Bruno Haible  <bruno@clisp.org>
37290
37291         * lib/pipe2.c (pipe2): Move #ifs inside function.
37292
37293 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37294
37295         quotearg: document limitations of quote_these_too
37296         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37297         those limitations are created.
37298         * lib/quotearg.h (set_char_quoting): Document that digits and
37299         letters that are special after backslash are not permitted.
37300         (quotearg_char): Cross-reference set_char_quoting documentation.
37301
37302 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37303
37304         quotearg: implement custom_quoting_style
37305         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37306         right_quote fields.
37307         (set_custom_quoting): New public function.
37308         (quotearg_buffer_restyled): Add left_quote and right_quote
37309         arguments, handle them very much like locale quoting, and update
37310         all uses.
37311         (quotearg_n_custom): New public function.
37312         (quotearg_n_custom_mem): New public function.
37313         (quotearg_custom): New public function.
37314         (quotearg_custom_mem): New public function.
37315         * lib/quotearg.h: Prototype and document new public functions.
37316         (enum quoting_style): For escape_quoting_style and
37317         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37318         ignored even though they're otherwise like c_quoting_style.
37319         Add custom_quoting_style member and document with comparison to
37320         clocale_quoting_style.
37321         * tests/test-quotearg.c (custom_quotes): New array.
37322         (custom_results): New array.
37323         (main): Extend to test custom quoting.
37324
37325 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37326
37327         quotearg: fix right quote escaping when it's in quote_these_too
37328         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37329         quote, be sure to prepend only one backslash.
37330         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37331         (main): Test it.
37332
37333 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37334
37335         quotearg-tests: test escaping of embedded locale quotes
37336         * tests/test-quotearg.c (struct result_strings): Add member for
37337         new input.
37338         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37339         (inputs): Add new input.
37340         (results_g): Add expected results.
37341         (flag_results): Likewise.
37342         (locale_results): Likewise.
37343         (compare_strings): Check those.
37344
37345 2009-08-23  Bruno Haible  <bruno@clisp.org>
37346
37347         Tests for module 'dup3'.
37348         * modules/dup3-tests: New file.
37349         * tests/test-dup3.c: New file.
37350
37351         New module 'dup3'.
37352         * lib/unistd.in.h (dup3): New declaration.
37353         * lib/dup3.c: New file.
37354         * m4/dup3.m4: New file.
37355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37356         HAVE_DUP3.
37357         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37358         * modules/dup3: New file.
37359         * doc/glibc-functions/dup3.texi: Mention the new module.
37360
37361 2009-08-23  Bruno Haible  <bruno@clisp.org>
37362
37363         Tweak the dup2 test.
37364         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37365         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37366         the test file is still empty. Fix argument order of lseek.
37367
37368 2009-08-23  Bruno Haible  <bruno@clisp.org>
37369
37370         Avoid test link errors when the modules getopt-gnu, gettext are used.
37371         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37373
37374 2009-08-23  Bruno Haible  <bruno@clisp.org>
37375
37376         Fix getdtablesize() on mingw.
37377         * lib/getdtablesize.c (getdtablesize): Implement differently.
37378         * lib/unistd.in.h (getdtablesize): Improve comment.
37379
37380 2009-08-23  Bruno Haible  <bruno@clisp.org>
37381
37382         New module 'mkostemp'.
37383         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37384         * lib/stdlib.in.h (mksotemp): New declaration.
37385         * lib/mkostemp.c: New file, from glibc with modifications.
37386         * lib/tempname.h (GT_FILE): Remove outdated comment.
37387         (gen_tempname): Add flags argument.
37388         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37389         (__GT_FILE): Map to 1.
37390         (small_open, large_open): Remove macros.
37391         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37392         * lib/mkstemp.c (mkstemp): Update.
37393         * lib/mkdtemp.c (mkdtemp): Likewise.
37394         * m4/mkostemp.m4: New file.
37395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37396         HAVE_MKOSTEMP.
37397         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37398         HAVE_MKOSTEMP.
37399         * modules/mkostemp: New file, based on modules/mkstemp.
37400         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37401         * NEWS: Mention the change.
37402
37403 2009-08-23  Bruno Haible  <bruno@clisp.org>
37404
37405         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37406         Reported by Eric Blake.
37407
37408 2009-08-23  Bruno Haible  <bruno@clisp.org>
37409
37410         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37411         Reported by Eric Blake.
37412
37413 2009-08-23  Bruno Haible  <bruno@clisp.org>
37414
37415         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37416         * modules/pipe2 (Depends-on): Likewise.
37417
37418 2009-08-23  Eric Blake  <ebb9@byu.net>
37419
37420         fcntl-h: add O_TTY_INIT support
37421         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37422         * tests/test-fcntl-h.c (o): Test it.
37423         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37424
37425         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37426         * modules/fcntl: Move <fcntl.h> header replacement...
37427         * modules/fcntl-h: ...to new name, so as not to collide with
37428         like-named function.
37429         * tests/test-fcntl.c: Rename...
37430         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37431         * modules/fcntl-tests: Rename...
37432         * modules/fcntl-h-tests: ...to this.  Update test file name.
37433         * modules/chdir-long (Depends-on): Update clients.
37434         * modules/chdir-safer (Depends-on): Likewise.
37435         * modules/fcntl-safer (Depends-on): Likewise.
37436         * modules/fts (Depends-on): Likewise.
37437         * modules/mkancesdirs (Depends-on): Likewise.
37438         * modules/mkdir-p (Depends-on): Likewise.
37439         * modules/open (Depends-on): Likewise.
37440         * modules/savewd (Depends-on): Likewise.
37441         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37442         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37443
37444 2009-08-22  Bruno Haible  <bruno@clisp.org>
37445
37446         * modules/binary-io (License): Relicense under LGPL.
37447         * modules/pipe2 (License): Likewise.
37448
37449 2009-08-22  Bruno Haible  <bruno@clisp.org>
37450
37451         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37452         return value.
37453         * lib/pipe-filter-gi.c (filter_init): Likewise.
37454         Reported by Eric Blake.
37455
37456 2009-08-22  Bruno Haible  <bruno@clisp.org>
37457
37458         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37459         * modules/pipe (Depends-on): Add pipe2.
37460
37461 2009-08-22  Bruno Haible  <bruno@clisp.org>
37462
37463         Tests for module 'pipe2'.
37464         * modules/pipe2-tests: New file.
37465         * tests/test-pipe2.c: New file.
37466
37467         New module 'pipe2'.
37468         * lib/unistd.in.h (pipe2): New declaration.
37469         * lib/pipe2.c: New file.
37470         * m4/pipe2.m4: New file.
37471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37472         HAVE_PIPE2.
37473         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37474         * modules/pipe2: New file.
37475         * doc/glibc-functions/pipe2.texi: Mention the new module.
37476
37477 2009-08-22  Bruno Haible  <bruno@clisp.org>
37478
37479         Reference some new glibc functions.
37480         * doc/glibc-functions/accept4.texi: New file.
37481         * doc/glibc-functions/dup3.texi: New file.
37482         * doc/glibc-functions/mkostemp.texi: New file.
37483         * doc/glibc-functions/pipe2.texi: New file.
37484         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37485         (Glibc sys/socket.h): Refer to accept4.
37486         (Glibc unistd.h): Refer to dup3, pipe2.
37487         Reported by Eric Blake.
37488
37489 2009-08-22  Jim Meyering  <meyering@redhat.com>
37490             Bruno Haible  <bruno@clisp.org>
37491
37492         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37493         This makes it so packages using automake-1.11's silent-rules option
37494         can print e.g., a single "GEN    configmake.h" line, rather than
37495         the 30+ statements that perform the job.  If you want to see the
37496         actual commands, you can still run "make V=1".
37497         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37498         so that make output is abbreviated when those variables are defined
37499         appropriately.
37500         * modules/argz: Likewise.
37501         * modules/arpa_inet: Likewise.
37502         * modules/byteswap: Likewise.
37503         * modules/configmake: Likewise.
37504         * modules/dirent: Likewise.
37505         * modules/errno: Likewise.
37506         * modules/fcntl: Likewise.
37507         * modules/float: Likewise.
37508         * modules/fnmatch: Likewise.
37509         * modules/getopt-posix: Likewise.
37510         * modules/glob: Likewise.
37511         * modules/iconv_open: Likewise.
37512         * modules/inttypes: Likewise.
37513         * modules/localcharset: Likewise.
37514         * modules/locale: Likewise.
37515         * modules/math: Likewise.
37516         * modules/netdb: Likewise.
37517         * modules/netinet_in: Likewise.
37518         * modules/poll: Likewise.
37519         * modules/posix_spawnp-tests: Likewise.
37520         * modules/sched: Likewise.
37521         * modules/search: Likewise.
37522         * modules/selinux-h: Likewise.
37523         * modules/signal: Likewise.
37524         * modules/spawn: Likewise.
37525         * modules/stdarg: Likewise.
37526         * modules/stdbool: Likewise.
37527         * modules/stddef: Likewise.
37528         * modules/stdint: Likewise.
37529         * modules/stdio: Likewise.
37530         * modules/stdlib: Likewise.
37531         * modules/string: Likewise.
37532         * modules/strings: Likewise.
37533         * modules/sys_file: Likewise.
37534         * modules/sys_ioctl: Likewise.
37535         * modules/sys_select: Likewise.
37536         * modules/sys_socket: Likewise.
37537         * modules/sys_stat: Likewise.
37538         * modules/sys_time: Likewise.
37539         * modules/sys_times: Likewise.
37540         * modules/sys_utsname: Likewise.
37541         * modules/sys_wait: Likewise.
37542         * modules/sysexits: Likewise.
37543         * modules/time: Likewise.
37544         * modules/unistd: Likewise.
37545         * modules/wchar: Likewise.
37546         * modules/wctype: Likewise.
37547
37548 2009-08-22  Jim Meyering  <meyering@redhat.com>
37549
37550         announce-gen: detect write failure
37551         * build-aux/announce-gen: Add Coda at end.
37552         Remove equivalent-but-more-verbose block at top.
37553
37554 2009-08-19  Akim Demaille  <demaille@gostai.com>
37555
37556         bootstrap: --help to stdout.
37557         * bootstrap (usage): Don't send --help to stderr.
37558         Use a here doc instead of a long string.
37559
37560 2009-08-21  Eric Blake  <ebb9@byu.net>
37561
37562         test-popen-safer: split from test-popen
37563         * tests/test-popen.c (main): Move...
37564         * tests/test-popen.h: ...into new file.
37565         * tests/test-popen-safer2.c: New file.
37566         * modules/popen-tests (Files): Add test-popen.h.
37567         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37568         Suggested by Bruno Haible.
37569
37570         test-fcntl-safer: split from test-open
37571         * tests/test-open.c (main): Move...
37572         * tests/test-open.h: ...into new file.
37573         * tests/test-fcntl-safer.c: New file.
37574         * modules/open-tests (Files): Add test-open.h.
37575         * modules/fcntl-safer-tests: New file.
37576         Suggested by Bruno Haible.
37577
37578         test-fopen-safer: split from test-fopen
37579         * tests/test-fopen.c (main): Move...
37580         * tests/test-fopen.h: ...into new file.
37581         * tests/test-fopen-safer.c: New file.
37582         * modules/fopen-tests (Files): Add test-fopen.h.
37583         * modules/fopen-safer-tests: New file.
37584         Suggested by Bruno Haible.
37585
37586 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37587
37588         popen-safer: test O_CLOEXEC at run-time.
37589         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37590
37591 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37592
37593         fcntl: move more flags to the header
37594         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37595         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37596         * lib/fcntl.in.h: Do both things here.
37597
37598 2009-08-21  Jim Meyering  <meyering@redhat.com>
37599
37600         consistently remove $@-t before redirecting to it
37601         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37602         * modules/alloca-opt: Likewise.
37603         * modules/byteswap: Likewise.
37604         * modules/fnmatch: Likewise.
37605         * modules/getopt-posix: Likewise.
37606         * modules/glob: Likewise.
37607         * modules/poll: Likewise.
37608         * modules/posix_spawnp-tests: Likewise.
37609         * modules/sys_socket: Likewise.
37610         * modules/sysexits: Likewise.
37611
37612 2009-08-21  Eric Blake  <ebb9@byu.net>
37613
37614         popen: simplify access to original popen
37615         * lib/popen.c (rpl_popen): No need to worry about popen being a
37616         macro.
37617         Reported by Bruno Haible.
37618
37619 2009-08-20  Eric Blake  <ebb9@byu.net>
37620
37621         build: avoid some compiler warnings
37622         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37623         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37624         type.
37625         (new_exclude_segment, excluded_file_pattern_p)
37626         (excluded_file_name_p): Reduce scope.
37627         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37628         old-style declaration.
37629
37630 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37631
37632         * tests/test-exclude1.sh: Handle Windows EOL.
37633         * tests/test-exclude2.sh: Likewise.
37634         * tests/test-exclude3.sh: Likewise.
37635         * tests/test-exclude4.sh: Likewise.
37636         * tests/test-exclude5.sh: Likewise.
37637         * tests/test-exclude6.sh: Likewise.
37638         * tests/test-exclude7.sh: Likewise.
37639
37640 2009-08-19  Akim Demaille  <demaille@gostai.com>
37641
37642         bootstrap: find sha1sum when named gsha1sum.
37643         * bootstrap (find_tool): New.
37644         ($SHA1SUM): New.
37645         Use it.
37646
37647 2009-08-20  Jim Meyering  <meyering@redhat.com>
37648
37649         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37650         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37651         expression that converts "." in a file name to "\." in the resulting
37652         regexp.  Start with a dummy statement, so that prior shell variable
37653         definitions are expanded portably.  Reported by Simon Josefsson.
37654
37655 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37656
37657         Fix polling for writeability of a screen buffer.
37658         * lib/poll.c: Distinguish input and screen buffers for the
37659         Win32 implementation.
37660         * lib/select.c: Likewise.
37661
37662 2009-08-19  Eric Blake  <ebb9@byu.net>
37663
37664         popen-safer: prevent popen from clobbering std descriptors
37665         * modules/popen-safer: New file.
37666         * lib/popen-safer.c: Likewise.
37667         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37668         * lib/stdio--.h (popen): Provide override.
37669         * lib/stdio-safer.h (popen_safer): Provide declaration.
37670         * tests/test-popen.c (includes): Partially test this.
37671         * modules/popen-safer-tests: New file, for more tests.
37672         * tests/test-popen-safer.c: Likewise.
37673         * MODULES.html.sh (file stream based Input/Output): Mention it.
37674
37675         tests: test some of the *-safer modules
37676         * modules/fopen-safer (Depends-on): Add fopen.
37677         * modules/fcntl-safer (Depends-on): Add fcntl.
37678         * modules/stdlib-safer (Depends-on): Add stdlib.
37679         (configure.ac): Set indicator.
37680         * modules/unistd-safer (configure.ac): Likewise.
37681         * modules/tmpfile-safer (configure.ac): Likewise.
37682         (Depends-on): Add tmpfile.
37683         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37684         active.
37685         * tests/test-fopen.c (includes): Test safer versions when they are
37686         in use.
37687         * tests/test-open.c (includes): Likewise.
37688
37689         popen: fix cygwin 1.5 bug when stdin closed
37690         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37691         * modules/popen: New file.
37692         * modules/popen-tests: Likewise.
37693         * tests/test-popen.c: Likewise.
37694         * m4/popen.m4: Likewise.
37695         * lib/popen.c: Likewise.
37696         * lib/stdio.in.h (popen): New declaration.
37697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37698         * modules/stdio (Makefile.am): Likewise.
37699         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37700
37701 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37702
37703         maint.mk: give full control over update-copyright exclusions
37704         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37705         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37706         (update-copyright): Don't force inclusion of top-level
37707         ChangeLog.  Don't force exclusion of all COPYING files, but make
37708         them the default exclusion instead.
37709
37710 2009-08-16  Bruno Haible  <bruno@clisp.org>
37711
37712         Fix test failures on Solaris 10.
37713         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37714         tests when Solaris iconv() is used.
37715         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37716         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37717         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37718         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37719         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37720
37721 2009-08-16  Bruno Haible  <bruno@clisp.org>
37722
37723         Fix test failures on Solaris 10.
37724         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37725         'tr' program and pass it as first argument.
37726         * tests/test-pipe-filter-gi1.sh: Likewise.
37727         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37728         program as first argument.
37729         * tests/test-pipe-filter-gi1.c (main): Likewise.
37730
37731 2009-08-16  Eric Blake  <ebb9@byu.net>
37732
37733         fpurge: fix previous commits
37734         * modules/fpurge (Makefile.am): Make replacement conditional,
37735         partially reverting 2007-04-29 change; missed in previous
37736         attempt.
37737         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37738         is missing.
37739
37740 2009-08-16  Bruno Haible  <bruno@clisp.org>
37741
37742         Clarify fpurge's effect on the file position.
37743         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37744         * tests/test-fpurge.c (main): Make a second pass for checking the file
37745         position.
37746
37747 2009-08-16  Bruno Haible  <bruno@clisp.org>
37748
37749         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37750         declaration of fpurge is missing.
37751         * tests/test-fpurge.c (main): Check that the file has not more contents
37752         than expected. Close the file before removing it.
37753
37754 2009-08-15  Eric Blake  <ebb9@byu.net>
37755
37756         fpurge: don't wrap working cygwin implementation
37757         * lib/fpurge.c (fpurge): Fix comment typo.
37758         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37759         1.7 to avoid replacement.
37760         * tests/test-fpurge.c (main): Enhance test.
37761
37762 2009-08-15  Eric Blake  <ebb9@byu.net>
37763         and Jim Meyering  <meyering@redhat.com>
37764
37765         test-update-copyright: skip if perl is insufficient
37766         * tests/test-update-copyright.sh: Failure to run maintainer tool
37767         should not cause testsuite failure on cygwin 1.5.
37768
37769 2009-08-14  Eric Blake  <ebb9@byu.net>
37770
37771         doc: mention more functions added in cygwin 1.7.0
37772         * doc/posix-headers/limits.texi (limits.h): Update for recent
37773         cygwin additions.
37774         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37775         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37776         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37777         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37778         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37779
37780 2009-08-14  Eric Blake  <ebb9@byu.net>
37781
37782         maint.mk: simplify update-copyright rule
37783         * top/maint.mk (update-copyright-local): Delete, and document how
37784         to do it in cfg.mk instead.
37785         (update-copyright-exclude-regexp): Delete, and document how to do
37786         it in .x-update-copyright instead.
37787         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37788         exclude ChangeLog.
37789
37790 2009-08-14  Bruno Haible  <bruno@clisp.org>
37791
37792         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37793
37794 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37795
37796         maint.mk: support update-copyright-env
37797         * top/maint.mk (update-copyright-env): Define place-holder.
37798         (update-copyright): Expand $(update-copyright-env) before
37799         invoking update-copyright.
37800
37801 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37802
37803         update-copyright: implement forced reformatting
37804         * build-aux/update-copyright: Implement and document
37805         UPDATE_COPYRIGHT_FORCE.
37806         * tests/test-update-copyright.sh: Test it.
37807
37808 2009-08-14  Eric Blake  <ebb9@byu.net>
37809         and Bruno Haible  <bruno@clisp.org>
37810
37811         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37812         * tests/test-locale.c: Revert previous patch related to NULL.
37813         * tests/test-stdio.c: Likewise.
37814         * tests/test-stdlib.c: Likewise.
37815         * tests/test-string.c: Likewise.
37816         * tests/test-unistd.c: Likewise.
37817         * modules/time-tests (Depends-on): Add verify.
37818         * modules/wchar-tests (Depends-on): Likewise.
37819         * tests/test-time.c: Test for NULL compliance.
37820         * tests/test-wchar.c: Likewise.
37821         * modules/locale (Depends-on): Add stddef.
37822         * modules/stdio (Depends-on): Likewise.
37823         * modules/stdlib (Depends-on): Likewise.
37824         * modules/string (Depends-on): Likewise.
37825         * modules/time (Depends-on): Likewise.
37826         * modules/unistd (Depends-on): Likewise.
37827         * modules/wchar (Depends-on): Likewise.
37828         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37829         * lib/stdlib.in.h (includes): Likewise.
37830         * lib/string.in.h (includes): Likewise.
37831         * lib/time.in.h (includes): Likewise.
37832         * lib/unistd.in.h (includes): Likewise.
37833         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37834         replaced.
37835         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37836         * m4/stddef_h.m4: New file.
37837         * modules/stddef: Likewise.
37838         * lib/stddef.in.h: Likewise.
37839         * modules/stddef-tests: Likewise.
37840         * tests/test-stddef.c: Likewise.
37841         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37842         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37843         * doc/posix-headers/locale.texi (locale.h): Likewise.
37844         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37845         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37846         * doc/posix-headers/string.texi (string.h): Likewise.
37847         * doc/posix-headers/time.texi (time.h): Likewise.
37848         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37849         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37850
37851 2009-08-14  Eric Blake  <ebb9@byu.net>
37852
37853         doc: improve git diff of texinfo files
37854         * .gitattributes: Add rule for *.texi files, with hint on how to
37855         use it.
37856         Copied from m4, and based on a report by Bruno Haible.
37857
37858 2009-08-14  Bruno Haible  <bruno@clisp.org>
37859
37860         Disable multithread support by default on Cygwin 1.5.x for real.
37861         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37862
37863 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37864
37865         update-copyright: much ado about intervals
37866         * build-aux/update-copyright: Implement and document
37867         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37868         of copyright year intervals.
37869         Also, document UPDATE_COPYRIGHT_YEAR.
37870         * tests/test-update-copyright.sh: Test it.
37871
37872         update-copyright: convert 2-digit to 4-digit years
37873         * build-aux/update-copyright: Implement and document.
37874         * tests/test-update-copyright.sh: Update.
37875
37876 2009-08-14  Jim Meyering  <meyering@redhat.com>
37877
37878         test-exclude: avoid coreutils "make check" failure
37879         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37880         just as in test-argmatch.c.
37881
37882 2009-08-13  Eric Blake  <ebb9@byu.net>
37883
37884         test-dup2: fix bad assumption
37885         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37886         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37887
37888         test-version-etc: fix CRLF portability issue
37889         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37890         recognize \r.
37891         * tests/test-argp-version-etc-1.sh: Likewise.
37892
37893         getopt: update client modules
37894         * modules/argp (Depends-on): Use getopt-gnu.
37895         * modules/git-merge-changelog (Depends-on): Likewise.
37896         * modules/long-options (Depends-on): Likewise.
37897         * modules/xstrtol (Depends-on): Likewise.
37898
37899 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37900
37901         * tests/test-version-etc.sh: Don't fail on different
37902         project/version.  Don't fail on CRLF differences.  Rewrite to use
37903         multiple -e instead of multiple sed forks, suggested by Eric Blake
37904         <ebb9@byu.net>.
37905         * tests/test-argp-version-etc-1.sh: Likewise.
37906
37907 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37908
37909         * tests/test-version-etc.sh: Don't fail on different
37910         project/version.
37911
37912 2009-08-12  Bruno Haible  <bruno@clisp.org>
37913
37914         Tests for modules 'getopt-posix', 'getopt-gnu'.
37915         * modules/getopt-posix-tests: New file.
37916         * tests/test-getopt.c: New file.
37917         * tests/test-getopt.h: New file.
37918         * tests/test-getopt_long.h: New file.
37919
37920         New modules 'getopt-posix', 'getopt-gnu'.
37921         * modules/getopt-gnu: New file, renamed from modules/getopt.
37922         * modules/getopt-posix: New file.
37923         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37924         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37925         (gl_GETOPT): Remove macro.
37926         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37927         Disable the test against BSD systems that declare optreset. Test
37928         against mingw bug. Test against lack of support of optional arguments
37929         on many platforms.
37930         * doc/glibc-headers/getopt.texi: Update module name and list of
37931         relevant platforms.
37932         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37933         'getopt-gnu' and more portability problems.
37934         * NEWS: Mention the changes.
37935
37936 2009-08-12  Bruno Haible  <bruno@clisp.org>
37937
37938         Ensure that optarg etc. get declared by <unistd.h>.
37939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37940         AC_USE_SYSTEM_EXTENSIONS.
37941         * modules/getopt (Depends-on): Add 'extensions'.
37942
37943 2009-08-12  Bruno Haible  <bruno@clisp.org>
37944
37945         Avoid test link errors.
37946         * modules/pipe-filter-ii-tests (Makefile.am): Define
37947         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37948         * modules/pipe-filter-gi-tests (Makefile.am): Define
37949         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37951
37952 2009-08-12  Bruno Haible  <bruno@clisp.org>
37953
37954         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37955         gl_GETOPT_SUBSTITUTE before.
37956         (gl_GETOPT): Use it.
37957         * m4/argp.m4 (gl_ARGP): Update.
37958         Reported by Sergey Poznyakoff.
37959
37960         * m4/getopt.m4: Reorder macros.
37961         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37962         (gl_GETOPT_SUBSTITUTE): Remove macro.
37963
37964 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37965
37966         Minor improvement in gitlog-to-changelog
37967
37968         * build-aux/gitlog-to-changelog: New option `--format' makes
37969         output format string configurable.
37970
37971 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37972
37973         Optimize exclude: use hash tables for non-wildcard patterns.
37974
37975         * lib/exclude.c: Include hash.h and mbuiter.h
37976         (struct exclude_pattern, exclude_segment): New data types.
37977         (struct exclude): Rewrite.
37978         (fnmatch_pattern_has_wildcards): New function.
37979         (new_exclude_segment, free_exclude_segment): New functions.
37980         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37981         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37982         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37983         * modules/exclude: Depend on hash and mbuiter.
37984
37985         * modules/exclude-tests: New file.
37986         * tests/test-exclude.c: New file.
37987         * tests/test-exclude1.sh: New file.
37988         * tests/test-exclude2.sh: New file.
37989         * tests/test-exclude3.sh: New file.
37990         * tests/test-exclude4.sh: New file.
37991         * tests/test-exclude5.sh: New file.
37992         * tests/test-exclude6.sh: New file.
37993         * tests/test-exclude7.sh: New file.
37994
37995 2009-08-12  Bruno Haible  <bruno@clisp.org>
37996
37997         Ensure that getopt() gets declared by <unistd.h>.
37998         * lib/unistd.in.h: Conditionally include getopt.h.
37999         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38000         Set GNULIB_UNISTD_H_GETOPT.
38001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38002         GNULIB_UNISTD_H_GETOPT.
38003         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38004
38005 2009-08-12  Bruno Haible  <bruno@clisp.org>
38006
38007         Clarify logic.
38008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38009         gl_replace_getopt instead of GETOPT_H.
38010
38011 2009-08-12  Bruno Haible  <bruno@clisp.org>
38012
38013         * m4/getopt.m4: Add comments.
38014
38015 2009-08-12  Bruno Haible  <bruno@clisp.org>
38016
38017         Disable multithread support by default on Cygwin 1.5.x.
38018         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38019         set gl_use_threads=no if not specified otherwise.
38020
38021 2009-08-11  Bruno Haible  <bruno@clisp.org>
38022
38023         Avoid compilation error on NetBSD 5.0.
38024         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38025         * tests/test-stdio.c: Likewise.
38026         * tests/test-stdlib.c: Likewise.
38027         * tests/test-string.c: Likewise.
38028         * tests/test-unistd.c: Likewise.
38029         Reported by Greg Troxel <gdt@ir.bbn.com>
38030         at <https://savannah.gnu.org/support/?106973>.
38031
38032 2009-08-11  Bruno Haible  <bruno@clisp.org>
38033
38034         * modules/dup2-tests (Depends-on): Remove close.
38035
38036         Undo 2009-07-19 commit.
38037         * modules/acl-tests (Depends-on): Remove close.
38038         * modules/binary-io-tests (Depends-on): Likewise.
38039         * modules/closein-tests (Depends-on): Likewise.
38040         * modules/flock-tests (Depends-on): Likewise.
38041         * modules/fsync-tests (Depends-on): Likewise.
38042         * modules/lseek-tests (Depends-on): Likewise.
38043         * modules/pipe-tests (Depends-on): Likewise.
38044         * modules/posix_spawn-tests (Depends-on): Likewise.
38045         * modules/posix_spawnp-tests (Depends-on): Likewise.
38046         * modules/stat-time-tests (Depends-on): Likewise.
38047         * modules/yesno-tests (Depends-on): Likewise.
38048
38049 2009-08-10  Bruno Haible  <bruno@clisp.org>
38050
38051         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38052
38053 2009-08-10  Bruno Haible  <bruno@clisp.org>
38054
38055         Fix a gcc warning.
38056         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38057
38058 2009-08-10  Bruno Haible  <bruno@clisp.org>
38059
38060         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38061         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38062         not only the first time.
38063         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38064         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38065         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38066         is 1, not only the the first time.
38067
38068 2009-08-10  Bruno Haible  <bruno@clisp.org>
38069
38070         Make it possible to use module 'gethostname' without module 'close'.
38071         * lib/unistd.in.h (close): Evoke a link error only if
38072         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38074         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38075         * modules/unistd (Makefile.am): Substitute
38076         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38077         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38078         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38079         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38080         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38081         * modules/sys_ioctl (Makefile.am): Substitute
38082         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38083         * modules/socket (configure.ac): On native Windows, set
38084         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38085         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38086         Reported by Sam Steingold <sds@gnu.org>.
38087
38088 2009-08-10  Bruno Haible  <bruno@clisp.org>
38089
38090         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38091         * modules/ioctl (configure.ac): Likewise.
38092
38093 2009-08-10  Bruno Haible  <bruno@clisp.org>
38094
38095         Avoid collision between gnulib wrapper and libintl wrapper.
38096         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38097         already defined in intl/printf.c.
38098         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38099         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38100
38101 2009-08-09  Bruno Haible  <bruno@clisp.org>
38102
38103         Make <sys/select.h> really self-contained, also on Solaris 10.
38104         * lib/sys_select.in.h: Include <string.h>.
38105         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38106         Solaris 10 problem.
38107         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38108         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38109         Reported by Jim Meyering.
38110
38111 2009-08-09  Bruno Haible  <bruno@clisp.org>
38112
38113         Avoid warnings from 'aclocal' that are due to a use of macro name
38114         AM_XGETTEXT_OPTION that is not defined in automake.
38115         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38116         automake.
38117         * modules/error (configure.ac): Likewise.
38118         * modules/propername (configure.ac): Likewise.
38119         * modules/vasprintf (configure.ac): Likewise.
38120         * modules/verror (configure.ac): Likewise.
38121         * modules/xprintf (configure.ac): Likewise.
38122         * modules/xvasprintf (configure.ac): Likewise.
38123
38124 2009-08-08  Bruno Haible  <bruno@clisp.org>
38125
38126         Avoid compilation error in C++ mode.
38127         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38128         Reported by Sam Steingold <sds@gnu.org>.
38129
38130 2009-08-08  Bruno Haible  <bruno@clisp.org>
38131
38132         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38133         for the various Unix platforms.
38134         * doc/posix-headers/limits.texi: Update platforms list regarding
38135         HOST_NAME_MAX.
38136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38137
38138 2009-08-07  Jim Meyering  <meyering@redhat.com>
38139
38140         selinux-at: fix typo in a comment
38141         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38142         Spotted by Paolo Bonzini.
38143
38144         selinux-at: remove redundant m4 code, add documentation
38145         * modules/selinux-at (configure.ac): Remove redundant code.
38146         LIB_SELINUX is already set via the dependent module, selinux-h.
38147         (Include): Add quotes around selinux-at.h.
38148         * lib/selinux-at.h: Add documentation.
38149         Reported by Bruno Haible in
38150         http://marc.info/?l=gnulib-bug&m=124958988300749
38151
38152 2009-08-07  Bruno Haible  <bruno@clisp.org>
38153
38154         Avoid link error on MacOS X 10.3 and 10.4.
38155         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38156         on non-ELF systems.
38157         * lib/argp-pv.c (argp_program_version): Likewise.
38158         Reported by Simon Josefsson.
38159
38160 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38161
38162         * tests/test-version-etc.sh: Use $EXEEXT.
38163
38164 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38165
38166         update-copyright: update documentation to point to maint.mk
38167         * build-aux/update-copyright: Here.
38168
38169 2009-08-06  Jim Meyering  <meyering@redhat.com>
38170
38171         maint.mk: support update-copyright-local
38172         * top/maint.mk (update-copyright-local): Define place-holder.
38173         (update-copyright): Depend on $(update-copyright-local).
38174
38175 2009-08-06  Jim Meyering  <meyering@redhat.com>
38176
38177         selinux-at: new module
38178         Initially written for coreutils, this module will soon be
38179         used by findutils, too.
38180         * MODULES.html.sh [Misc]: Add selinux-at.
38181         * lib/selinux-at.h: New file, from coreutils.
38182         * lib/selinux-at.c: Likewise.
38183         * modules/selinux-at: Likewise.
38184         (License): Change from LGPL to GPL, since it depends
38185         on the GPL'd openat module.
38186
38187         doc: update README
38188         * README: Remove references to cogito.
38189         Remove cvs-repo-updating instructions from 2007.
38190         Don't imply that CVS is better if you have limited disk space.
38191
38192 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38193
38194         update-copyright: support C-style comments
38195         * build-aux/update-copyright: Implement and document.
38196         * tests/test-update-copyright.sh: Test.
38197
38198 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38199
38200         update-copyright: support omitted "(C)"
38201         * build-aux/update-copyright: Implement and document.  Also,
38202         allow variable whitespace before "(C)".
38203         * tests/test-update-copyright.sh: Test.
38204
38205 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38206
38207         update-copyright: don't trip on non-FSF copyright statements
38208         * build-aux/update-copyright: Fix so that the first correctly
38209         formatted FSF copyright statement is recognized no matter what
38210         appears before it.  Update documentation.
38211         * tests/test-update-copyright.sh: Test that.
38212
38213 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38214
38215         update-copyright: clean up code a little
38216         * build-aux/update-copyright: Append "_re" to the name of any
38217         variable holding a regular expression.
38218         Replace "old" and "new" with "stmt" in variable names.
38219         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38220         handled correctly.
38221         Format code more consistently.
38222
38223 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38224
38225         update-copyright-tests: improve portability
38226         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38227         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38228
38229 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38230
38231         update-copyright: support @copyright{} and &copy;
38232         * build-aux/update-copyright: Implement and document.
38233         * tests/test-update-copyright.sh: Test.
38234
38235 2009-08-04  Jim Meyering  <meyering@redhat.com>
38236
38237         update-copyright-tests: correctly test EOL=\r\n handling
38238         * tests/test-update-copyright.sh: Put \r at the end of some lines
38239         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38240
38241         maint.mk: make update-copyright exclusion list more configurable
38242         * top/maint.mk (update-copyright): Default to excluding COPYING,
38243         but allow an override, in case someone does want to update that file.
38244
38245         maint.mk: don't update copyright date in COPYING
38246         * top/maint.mk (update-copyright): Exclude COPYING.
38247
38248         maint.mk: add a copyright-updating rule
38249         * top/maint.mk (update-copyright): New rule.
38250         Derived from coreutils/Makefile.am.
38251
38252         update-copyright: rename some variables
38253         * build-aux/update-copyright: Rename a few variables for clarity.
38254         Tweak syntax.  List Joel E. Denny as coauthor.
38255
38256 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38257
38258         update-copyright: fix bug for 2-digit last year and add tests
38259         * build-aux/update-copyright: Fix bug.
38260         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38261         specified.
38262         * modules/update-copyright-tests: New
38263         * tests/test-update-copyright.sh: New.
38264
38265 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38266
38267         update-copyright: handle leading tabs in line prefix
38268         * build-aux/update-copyright: Count leading tabs as 8 spaces
38269         when computing margin.  This helps with the formatting of
38270         ChangeLogs, for example.
38271         Fix documentation a little.
38272
38273 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38274
38275         update-copyright: support EOL=\r\n
38276         * build-aux/update-copyright: Implement that.
38277
38278 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38279
38280         update-copyright: automatically format copyright statements
38281         * build-aux/update-copyright: Implement that.
38282         Also, be a little more predictable and safer by always failing
38283         when the full copyright format is not perfectly recognized as an
38284         unbroken whole.  Discussed at
38285         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38286         Rewrite documentation.
38287
38288 2009-08-03  Bruno Haible  <bruno@clisp.org>
38289
38290         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38291
38292 2009-08-02  Bruno Haible  <bruno@clisp.org>
38293
38294         Tests for module 'uname'.
38295         * modules/uname-tests: New file.
38296         * tests/test-uname.c: New file.
38297
38298         New module 'uname'.
38299         * lib/uname.c: New file.
38300         * m4/uname.m4: New file.
38301         * modules/uname: New file.
38302         * doc/posix-functions/uname.texi: Mention the new module.
38303
38304 2009-08-02  Bruno Haible  <bruno@clisp.org>
38305
38306         Tests for module 'sys_utsname'.
38307         * modules/sys_utsname-tests: New file.
38308         * tests/test-sys_utsname.c: New file.
38309
38310         New module 'sys_utsname'.
38311         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38312         * m4/sys_utsname_h.m4: New file.
38313         * modules/sys_utsname: New file.
38314         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38315
38316 2009-08-02  Bruno Haible  <bruno@clisp.org>
38317
38318         Implicitly initialize the sockets library.
38319         * lib/gethostname.c: Include sockets.h.
38320         (rpl_gethostname): Invoke gl_sockets_startup.
38321         * lib/socket.c: Include sockets.h.
38322         (rpl_socket): Invoke gl_sockets_startup.
38323         * modules/gethostname (Depends-on): Add sockets.
38324         * modules/socket (Depends-on): Likewise.
38325         * tests/test-poll.c: Don't include sockets.h.
38326         (main): Don't invoke gl_sockets_startup.
38327         * tests/test-select.c: Don't include sockets.h.
38328         (main): Don't invoke gl_sockets_startup.
38329
38330 2009-08-02  Bruno Haible  <bruno@clisp.org>
38331
38332         Allow multiple calls to gl_sockets_startup.
38333         * lib/sockets.c (initialized_sockets_version): New variable.
38334         (gl_sockets_startup): Do nothing if already called for this or a higher
38335         version.
38336         (gl_sockets_cleanup): Reset initialized_sockets_version.
38337
38338 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38339
38340         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38341         different project/version.
38342
38343 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38344             Bruno Haible  <bruno@clisp.org>
38345
38346         Tests for module 'pipe-filter-gi'.
38347         * modules/pipe-filter-gi-tests: New file.
38348         * tests/test-pipe-filter-gi1.sh: New file.
38349         * tests/test-pipe-filter-gi1.c: New file.
38350         * tests/test-pipe-filter-gi2.sh: New file.
38351         * tests/test-pipe-filter-gi2-main.c: New file.
38352         * tests/test-pipe-filter-gi2-child.c: New file.
38353
38354         New module 'pipe-filter-gi'.
38355         * lib/pipe-filter-gi.c: New file.
38356         * modules/pipe-filter-gi: New file.
38357
38358 2009-08-02  Bruno Haible  <bruno@clisp.org>
38359             Paolo Bonzini  <bonzini@gnu.org>
38360
38361         Tests for module 'pipe-filter-ii'.
38362         * modules/pipe-filter-ii-tests: New file.
38363         * tests/test-pipe-filter-ii1.sh: New file.
38364         * tests/test-pipe-filter-ii1.c: New file.
38365         * tests/test-pipe-filter-ii2.sh: New file.
38366         * tests/test-pipe-filter-ii2-main.c: New file.
38367         * tests/test-pipe-filter-ii2-child.c: New file.
38368
38369         New module 'pipe-filter-ii'.
38370         * lib/pipe-filter.h: New file.
38371         * lib/pipe-filter-ii.c: New file.
38372         * lib/pipe-filter-aux.h: New file.
38373         * modules/pipe-filter-ii: New file.
38374
38375 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38376
38377         * lib/gc-libgcrypt.c: Change copyright to FSF.
38378         * lib/gc-gnulib.c: Likewise.
38379
38380 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38381
38382         * lib/gethostname.c: Include limits.h.
38383
38384 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38385             Bruno Haible  <bruno@clisp.org>
38386
38387         Ensure HOST_NAME_MAX as part of the gethostname module.
38388         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38389         define also HOST_NAME_MAX.
38390         * tests/test-gethostname.c: Include <limits.h>.
38391         (main): Check also HOST_NAME_MAX.
38392         * doc/posix-headers/limits.texi: Document the mingw problem.
38393
38394 2009-08-02  Bruno Haible  <bruno@clisp.org>
38395
38396         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38397         Add comments.
38398
38399 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38400
38401         * lib/gethostname.c: Add Windows wrapper.
38402         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38403         * modules/gethostname: Depend on sys_socket & errno, for also
38404         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38405         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38406
38407 2009-07-31  Jim Meyering  <meyering@redhat.com>
38408
38409         getloadavg: fix symbol name in comment
38410         * lib/getloadavg.c: Correct a typo I introduced when adding
38411         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38412         Matt Kraai spotted the problem.
38413
38414 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38415
38416         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38417         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38418         code also if ! defined N_NAME_POINTER.
38419         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38420         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38421         but the n_name member is a 12-byte array.
38422
38423 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38424
38425         update-copyright: generalize comment handling
38426         * build-aux/update-copyright: Handle copyright statements
38427         within more comment styles.
38428         Document usage.
38429         Report any file with an external copyright holder or parse failure.
38430
38431 2009-07-29  Jim Meyering  <meyering@redhat.com>
38432
38433         mktime: correct setting of REPLACE_MKTIME
38434         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38435
38436         update-copyright: new module
38437         * modules/update-copyright: New file.
38438         * build-aux/update-copyright: New file.
38439         * MODULES.html.sh (maint+release support): Add update-copyright.
38440
38441 2009-07-27  Bruno Haible  <bruno@clisp.org>
38442
38443         Fix compilation error when <ctime> is used and mktime is replaced.
38444         * lib/time.in.h (mktime): New declaration.
38445         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38446         REPLACE_MKTIME instead of defining mktime in config.h.
38447         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38448         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38449         Reported by Ross McFarland <rwmcfa1@neces.com>.
38450
38451 2009-07-27  Bruno Haible  <bruno@clisp.org>
38452
38453         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38454         Reported by Matt Kraai <mkraai@beckman.com>.
38455
38456 2009-07-25  Jim Meyering  <meyering@redhat.com>
38457
38458         maint.mk: avoid warnings about missing files
38459         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38460         diagnostic when .prev-version does not exist.
38461         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38462         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38463         nonexistent cfg.mk.
38464         Suggestions from Simon Josefsson.
38465
38466 2009-07-25  Bruno Haible  <bruno@clisp.org>
38467
38468         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38469         defined as macros. Needed on QNX 6.4.1.
38470         Reported by Matt Kraai <mkraai@beckman.com>.
38471
38472 2009-07-23  Jim Meyering  <meyering@redhat.com>
38473
38474         maint.mk: invoke "make dist" with a working value of XZ_OPT
38475         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38476
38477 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38478
38479         Make fseeko.c compile on QNX.
38480         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38481
38482 2009-07-22  Peter Simons  <simons@cryp.to>
38483
38484         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38485         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38486         * lib/md4.h: Likewise.
38487         * lib/md5.h: Likewise.
38488         * lib/sha1.h: Likewise.
38489         * lib/sha256.h: Likewise.
38490         * lib/sha512.h: Likewise.
38491
38492         tests-sha1: don't assign literal string to 'char *' variable
38493         * tests/test-sha1.c (main): Declare locals with "const" to match
38494         attributes of the right hand side.
38495
38496 2009-07-21  Eric Blake  <ebb9@byu.net>
38497
38498         dup2: fix more mingw problems
38499         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38500         fd to itself.
38501         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38502         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38503         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38504         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38505         care of mingw bugs.
38506
38507 2009-07-21  Jim Meyering  <meyering@redhat.com>
38508
38509         vc-list-files: avoid failure when /bin/sh is dash
38510         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38511         On some Debian based systems, /bin/sh is a symlink to dash, and running
38512         this command would omit the "/" following each 'tests' prefix:
38513           dash -x build-aux/vc-list-files -C . tests
38514         That is because bash and dash work differently:
38515           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38516           bash ok
38517           dash odd
38518
38519 2009-07-21  Eric Blake  <ebb9@byu.net>
38520
38521         dup2-tests: test previous patch
38522         * modules/dup2-tests: New file.
38523         * tests/test-dup2.c: Likewise.
38524         * tests/test-open.c (main): Avoid unspecified behavior.
38525         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38526         test.
38527
38528         dup2: work around mingw and cygwin 1.5 bug
38529         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38531         * modules/unistd (Makefile.am): Substitute it.
38532         * lib/unistd.in.h (dup2): Declare the replacement.
38533         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38534         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38535         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38536         * modules/execute (Depends-on): Add dup2.
38537         * modules/fseterr (Depends-on): Likewise.
38538         * modules/pipe (Depends-on): Likewise.
38539         * modules/posix_spawn-internal (Depends-on): Likewise.
38540
38541 2009-07-21  Bruno Haible  <bruno@clisp.org>
38542
38543         * modules/.gitattributes: New file.
38544
38545 2009-07-20  Bruno Haible  <bruno@clisp.org>
38546
38547         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38548         (main): Use it.
38549
38550 2009-07-20  Eric Blake  <ebb9@byu.net>
38551
38552         test-pipe: make a bit more robust.
38553         * tests/test-pipe.c (myerr): Allow error messages regardless of
38554         what we do to stderr.
38555         (test_pipe): Rearrange to avoid deadlock.
38556         (child_main): Try a larger read, to ensure we avoided deadlock.
38557         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38558         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38559         if misused.
38560
38561 2009-07-19  Jim Meyering  <meyering@redhat.com>
38562
38563         fts: avoid false-positive cycle-detection
38564         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38565         for each new command line argument.
38566
38567 2009-07-19  Bruno Haible  <bruno@clisp.org>
38568
38569         Fix build error on mingw with the modules sys_select and unistd.
38570         * modules/acl-tests (Depends-on): Add close.
38571         * modules/binary-io-tests (Depends-on): Likewise.
38572         * modules/closein-tests (Depends-on): Likewise.
38573         * modules/flock-tests (Depends-on): Likewise.
38574         * modules/fsync-tests (Depends-on): Likewise.
38575         * modules/lseek-tests (Depends-on): Likewise.
38576         * modules/pipe-tests (Depends-on): Likewise.
38577         * modules/posix_spawn-tests (Depends-on): Likewise.
38578         * modules/posix_spawnp-tests (Depends-on): Likewise.
38579         * modules/stat-time-tests (Depends-on): Likewise.
38580         * modules/yesno-tests (Depends-on): Likewise.
38581
38582 2009-07-19  Bruno Haible  <bruno@clisp.org>
38583
38584         Unify conditionals.
38585         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38586         macros, not at the compiler macros.
38587         * lib/pipe.c: Likewise.
38588         * lib/execute.c: Likewise.
38589         * lib/spawni.c: Likewise.
38590
38591 2009-07-19  Bruno Haible  <bruno@clisp.org>
38592
38593         Fix handling of closed stdin/stdout/stderr on mingw.
38594         * lib/w32spawn.h: Include unistd.h.
38595         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38596         file descriptor with O_NOINHERIT flag.
38597         (fd_safer_noinherit): New function, based on fd-safer.c.
38598         (dup_safer_noinherit): New function, based on dup-safer.c.
38599         (undup_safer_noinherit): New function.
38600         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38601         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38602         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38603         instead of fd_safer.
38604         * tests/test-pipe.c: Include <windows.h>.
38605         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38606         result.
38607
38608         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38609         from main.
38610         (test_pipe): Pass an extra argument for disambiguation.
38611         (main): Invoke parent_main or child_main.
38612
38613         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38614         consistently.
38615
38616 2009-07-18  Eric Blake  <ebb9@byu.net>
38617
38618         test-pipe: fix mingw build
38619         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38620
38621 2009-07-18  Bruno Haible  <bruno@clisp.org>
38622
38623         * modules/pipe-tests (Makefile.am): Fix typo.
38624
38625 2009-07-18  Eric Blake  <ebb9@byu.net>
38626
38627         error: fix mingw build
38628         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38629         Reported by Bruno Haible.
38630
38631         error: avoid undefined use of stdout
38632         * lib/error.c (error, error_at_line): Check that fd 1 is open
38633         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38634         is handling faults and the close_stdout module wants to report the
38635         detection of closed stdout as an error.
38636
38637 2009-07-17  Eric Blake  <ebb9@byu.net>
38638
38639         pipe: be robust in face of closed fds
38640         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38641         should cause child to misbehave.
38642         * modules/pipe-tests: New module.
38643         * tests/test-pipe.c: New file.
38644         * tests/test-pipe.sh: New file.
38645         Reported by Akim Demaille.
38646
38647 2009-07-14  Bruno Haible  <bruno@clisp.org>
38648
38649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38650         Reported by anonymous kc.
38651
38652 2009-07-07  Jim Meyering  <meyering@redhat.com>
38653
38654         maint.mk: don't look for translatable strings in *.m4 or *.mk
38655         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38656         when searching for translatable strings.
38657
38658 2009-07-05  Jim Meyering  <meyering@redhat.com>
38659
38660         remove superfluous parentheses in STREQ definition
38661         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38662         * lib/getugroups.c (STREQ): Likewise.
38663         * lib/fnmatch.c (STREQ): Likewise.
38664         Spotted by Bruno Haible.
38665
38666 2009-07-04  Jim Meyering  <meyering@redhat.com>
38667
38668         argv-iter: new module
38669         * MODULES.html.sh: Add argv-iter.
38670         * lib/argv-iter.c, lib/argv-iter.h: New files.
38671         * modules/argv-iter: New file.
38672         * modules/argv-iter-tests: New file.
38673         * tests/test-argv-iter.c: Test it.
38674
38675 2009-07-04  Bruno Haible  <bruno@clisp.org>
38676
38677         Fix assertion.
38678         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38679         contains more exact copies of a given entry than file2, leave the extra
38680         copies unpaired rather than aborting.
38681         Reported by Eric Blake.
38682
38683 2009-07-02  Bruno Haible  <bruno@clisp.org>
38684
38685         Speedup git-merge-changelog for git cherry-pick.
38686         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38687         (entries_mapping_get): New function, extracted from compute_mapping.
38688         (entries_mapping_reverse_get): New function.
38689         (compute_mapping): Add a 'full' argument. Return the result in a
38690         'struct entries_mapping'.
38691         (main): Update. Access the mappings through entries_mapping_get.
38692         Reported by Eric Blake.
38693
38694 2009-07-02  Bruno Haible  <bruno@clisp.org>
38695
38696         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38697         best_i.
38698
38699 2009-07-02  Bruno Haible  <bruno@clisp.org>
38700
38701         Speed up approximate search for matching ChangeLog entries.
38702         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38703         argument. Call fstrcmp_bounded instead of fstrcmp.
38704         (compute_mapping, try_split_merged_entry, main): Update callers.
38705
38706 2009-07-02  Bruno Haible  <bruno@clisp.org>
38707
38708         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38709
38710 2009-06-30  Bruno Haible  <bruno@clisp.org>
38711
38712         Reduce the number of uc_is_cased calls.
38713         * lib/unicase.h (casing_suffix_context_t): Add
38714         'first_char_except_ignorable' field.
38715         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38716         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38717         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38718         Update initializer.
38719         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38720         case-ignorable characters.
38721         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38722         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38723         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38724         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38725         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38726
38727 2009-06-30  Bruno Haible  <bruno@clisp.org>
38728
38729         Tests for module 'unicase/ignorable'.
38730         * modules/unicase/ignorable-tests: New file.
38731         * tests/unicase/test-ignorable.c: New file, generated by
38732         gen-uni-tables.
38733
38734         Tests for module 'unicase/cased'.
38735         * modules/unicase/cased-tests: New file.
38736         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38737         * tests/unicase/test-predicate-part1.h: New file, derived from
38738         tests/unictype/test-predicate-part1.h.
38739         * tests/unicase/test-predicate-part2.h: New file, same as
38740         tests/unictype/test-predicate-part2.h.
38741
38742         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38743         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38744         (output_casing_properties): New function.
38745         (main): Call it.
38746         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38747         * lib/unicase/cased.c: Include unictype/bitmap.h.
38748         (uc_is_cased): Define through a bitmap lookup.
38749         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38750         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38751         (uc_is_case_ignorable): Define through a bitmap lookup.
38752         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38753         lib/unictype/bitmap.h.
38754         (Depends-on): Add inline. Clean up.
38755         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38756         lib/unictype/bitmap.h.
38757         (Depends-on): Add inline. Clean up.
38758         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38759         recognition.
38760         * tests/unicase/test-u16-tolower.c (main): Likewise.
38761         * tests/unicase/test-u32-tolower.c (main): Likewise.
38762
38763 2009-06-30  Bruno Haible  <bruno@clisp.org>
38764
38765         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38766         * lib/unicase/u16-casemap.c: Likewise.
38767         * lib/unicase/u32-casemap.c: Likewise.
38768
38769 2009-06-29  Bruno Haible  <bruno@clisp.org>
38770
38771         Define u32_casefold as a wrapper around u32_ct_casefold.
38772         * lib/unicase/u32-casefold.c: Update.
38773         * modules/unicase/u32-casefold (Depends-on): Add
38774         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38775         unicase/empty-suffix-context. Clean up.
38776
38777         Define u16_casefold as a wrapper around u16_ct_casefold.
38778         * lib/unicase/u16-casefold.c: Update.
38779         * modules/unicase/u16-casefold (Depends-on): Add
38780         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38781         unicase/empty-suffix-context. Clean up.
38782
38783         Define u8_casefold as a wrapper around u8_ct_casefold.
38784         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38785         * lib/unicase/u8-casefold.c: Update.
38786         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38787         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38788
38789         Define u32_totitle as a wrapper around u32_ct_totitle.
38790         * lib/unicase/u32-totitle.c: Update.
38791         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38792         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38793
38794         Define u16_totitle as a wrapper around u16_ct_totitle.
38795         * lib/unicase/u16-totitle.c: Update.
38796         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38797         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38798
38799         Define u8_totitle as a wrapper around u8_ct_totitle.
38800         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38801         functions.
38802         (FUNC): Delegate to U_CT_TOTITLE.
38803         * lib/unicase/u8-totitle.c: Update.
38804         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38805         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38806
38807         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38808         invocation.
38809         * modules/unicase/u32-tolower (Depends-on): Add
38810         unicase/empty-prefix-context, unicase/empty-suffix-context.
38811
38812         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38813         invocation.
38814         * modules/unicase/u16-tolower (Depends-on): Add
38815         unicase/empty-prefix-context, unicase/empty-suffix-context.
38816
38817         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38818         * modules/unicase/u8-tolower (Depends-on): Add
38819         unicase/empty-prefix-context, unicase/empty-suffix-context.
38820
38821         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38822         invocation.
38823         * modules/unicase/u32-toupper (Depends-on): Add
38824         unicase/empty-prefix-context, unicase/empty-suffix-context.
38825
38826         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38827         invocation.
38828         * modules/unicase/u16-toupper (Depends-on): Add
38829         unicase/empty-prefix-context, unicase/empty-suffix-context.
38830
38831         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38832         * modules/unicase/u8-toupper (Depends-on): Add
38833         unicase/empty-prefix-context, unicase/empty-suffix-context.
38834
38835         New module 'unicase/u32-ct-casefold'.
38836         * lib/unicase/u32-ct-casefold.c: New file.
38837         * modules/unicase/u32-ct-casefold: New file.
38838
38839         New module 'unicase/u16-ct-casefold'.
38840         * lib/unicase/u16-ct-casefold.c: New file.
38841         * modules/unicase/u16-ct-casefold: New file.
38842
38843         New module 'unicase/u8-ct-casefold'.
38844         * lib/unicase/u8-ct-casefold.c: New file.
38845         * lib/unicase/u-ct-casefold.h: New file, derived from
38846         lib/unicase/u-casefold.h.
38847         * modules/unicase/u8-ct-casefold: New file.
38848
38849         New module 'unicase/u32-ct-totitle'.
38850         * lib/unicase/u32-ct-totitle.c: New file.
38851         * modules/unicase/u32-ct-totitle: New file.
38852
38853         New module 'unicase/u16-ct-totitle'.
38854         * lib/unicase/u16-ct-totitle.c: New file.
38855         * modules/unicase/u16-ct-totitle: New file.
38856
38857         New module 'unicase/u8-ct-totitle'.
38858         * lib/unicase/u8-ct-totitle.c: New file.
38859         * lib/unicase/u-ct-totitle.h: New file, derived from
38860         lib/unicase/u-totitle.h.
38861         * modules/unicase/u8-ct-totitle: New file.
38862
38863         New module 'unicase/u32-ct-tolower'.
38864         * lib/unicase/u32-ct-tolower.c: New file.
38865         * modules/unicase/u32-ct-tolower: New file.
38866
38867         New module 'unicase/u16-ct-tolower'.
38868         * lib/unicase/u16-ct-tolower.c: New file.
38869         * modules/unicase/u16-ct-tolower: New file.
38870
38871         New module 'unicase/u8-ct-tolower'.
38872         * lib/unicase/u8-ct-tolower.c: New file.
38873         * modules/unicase/u8-ct-tolower: New file.
38874
38875         New module 'unicase/u32-ct-toupper'.
38876         * lib/unicase/u32-ct-toupper.c: New file.
38877         * modules/unicase/u32-ct-toupper: New file.
38878
38879         New module 'unicase/u16-ct-toupper'.
38880         * lib/unicase/u16-ct-toupper.c: New file.
38881         * modules/unicase/u16-ct-toupper: New file.
38882
38883         New module 'unicase/u8-ct-toupper'.
38884         * lib/unicase/u8-ct-toupper.c: New file.
38885         * modules/unicase/u8-ct-toupper: New file.
38886
38887         Add context arguments to u*_casemap functions.
38888         * lib/unicase/unicasemap.h: Include unicase.h.
38889         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38890         suffix_context arguments.
38891         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38892         functions.
38893         (FUNC): Add prefix_context and suffix_context arguments. Use
38894         uc_is_cased and uc_is_case_ignorable.
38895         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38896         * lib/unicase/u16-casemap.c: Likewise.
38897         * lib/unicase/u32-casemap.c: Likewise.
38898         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38899         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38900         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38901         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38902         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38903         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38904
38905         New module 'unicase/u32-suffix-context'.
38906         * lib/unicase/u32-suffix-context.c: New file.
38907         * modules/unicase/u32-suffix-context: New file.
38908
38909         New module 'unicase/u16-suffix-context'.
38910         * lib/unicase/u16-suffix-context.c: New file.
38911         * modules/unicase/u16-suffix-context: New file.
38912
38913         New module 'unicase/u8-suffix-context'.
38914         * lib/unicase/u8-suffix-context.c: New file.
38915         * lib/unicase/u-suffix-context.h: New file.
38916         * modules/unicase/u8-suffix-context: New file.
38917
38918         New module 'unicase/empty-suffix-context'.
38919         * lib/unicase/empty-suffix-context.c: New file.
38920         * modules/unicase/empty-suffix-context: New file.
38921
38922         New module 'unicase/u32-prefix-context'.
38923         * lib/unicase/u32-prefix-context.c: New file.
38924         * modules/unicase/u32-prefix-context: New file.
38925
38926         New module 'unicase/u16-prefix-context'.
38927         * lib/unicase/u16-prefix-context.c: New file.
38928         * modules/unicase/u16-prefix-context: New file.
38929
38930         New module 'unicase/u8-prefix-context'.
38931         * lib/unicase/u8-prefix-context.c: New file.
38932         * lib/unicase/u-prefix-context.h: New file.
38933         * lib/unicase/context.h: New file.
38934         * modules/unicase/u8-prefix-context: New file.
38935
38936         New module 'unicase/empty-prefix-context'.
38937         * lib/unicase/empty-prefix-context.c: New file.
38938         * modules/unicase/empty-prefix-context: New file.
38939
38940         New module 'unicase/ignorable'.
38941         * lib/unicase/ignorable.c: New file.
38942         * modules/unicase/ignorable: New file.
38943
38944         New module 'unicase/cased'.
38945         * lib/unicase/caseprop.h: New file.
38946         * lib/unicase/cased.c: New file.
38947         * modules/unicase/cased: New file.
38948
38949         New functions for case mapping of substrings.
38950         * lib/unicase.h (casing_prefix_context_t): New type.
38951         (unicase_empty_prefix_context): New variable.
38952         (u8_casing_prefix_context, u16_casing_prefix_context,
38953         u32_casing_prefix_context, u8_casing_prefixes_context,
38954         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38955         declarations.
38956         (casing_suffix_context_t): New type.
38957         (unicase_empty_suffix_context): New variable.
38958         (u8_casing_suffix_context, u16_casing_suffix_context,
38959         u32_casing_suffix_context, u8_casing_suffixes_context,
38960         u16_casing_suffixes_context, u32_casing_suffixes_context,
38961         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38962         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38963         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38964         declarations.
38965
38966 2009-06-28  Jim Meyering  <meyering@redhat.com>
38967
38968         boostrap: indent only with spaces
38969         * build-aux/bootstrap: Indent only with spaces, never TABs.
38970
38971         bootstrap: split long lines
38972         * build-aux/bootstrap: Keep line length < 80.
38973
38974         bootstrap: sync from coreutils
38975         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38976         just as autoreconf does.  Verify a list of prerequisite
38977         package-name,version-number pairs if defined in bootstrap.conf.
38978         Refer to README-prereq, if prerequisites are not satisfied.
38979
38980 2009-06-27  Eric Blake  <ebb9@byu.net>
38981
38982         tests: add test for bogus NULL definition
38983         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38984         * tests/test-stdlib.c: Likewise.
38985         * tests/test-string.c: Likewise.
38986         * tests/test-locale.c: Likewise.
38987         * tests/test-unistd.c: Likewise.
38988         * modules/stdio-tests (Depends-on): Add verify.
38989         * modules/stdlib-tests (Depends-on): Likewise.
38990         * modules/string-tests (Depends-on): Likewise.
38991         * modules/locale-tests (Depends-on): Likewise.
38992         * modules/unistd-tests (Depends-on): Likewise.
38993
38994 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38995
38996         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38997         self-explaining comment.
38998         * m4/selinux-selinux-h: Update serial.
38999         (gl_LIBSELINUX): New macro, adding a warning for missing development
39000         packages to code extracted from...
39001         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39002         Add warning for missing development packages here, too.
39003
39004 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39005
39006         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39007
39008 2009-06-25  Eric Blake  <ebb9@byu.net>
39009
39010         version-etc: fix regression
39011         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39012         gcc.
39013         (version_etc): Use it, to catch bugs with trailing NULL.
39014         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39015         (version_etc_va): Fix logic bug.
39016         * modules/version-etc-tests: Add test.
39017         * tests/test-version-etc.c: New file.
39018         * tests/test-version-etc.sh: Likewise.
39019
39020 2009-06-25  Sam Steingold  <sds@gnu.org>
39021
39022         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39023         mbtowc declaration.
39024
39025 2009-06-25  Eric Blake  <ebb9@byu.net>
39026
39027         fpurge: migrate into <stdio.h>
39028         * lib/fpurge.h: Delete...
39029         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39030         * lib/fpurge.c (fpurge): Change declaring header.
39031         * modules/fpurge (Files): Drop deleted file.
39032         (Depends-on): Add stdio.
39033         (configure.ac): Set witness.
39034         * modules/stdio (Makefile.am): Support fpurge macros.
39035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39036         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39037         * lib/fflush.c: Update client.
39038         * tests/test-fpurge.c: Likewise.
39039         * NEWS: Mention the change.
39040
39041 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39042
39043         * lib/argp-version-etc.c (program_authors): Add const
39044         qualifier.
39045         * lib/version-etc.c: Fix typos in the comments.
39046         * modules/argp-version-etc: Depends on version-etc.
39047
39048 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39049
39050         argp-version-etc: new module.
39051
39052         * lib/argp-version-etc.c: New file.
39053         * lib/argp-version-etc.h: New file.
39054         * modules/argp-version-etc: New file.
39055         * modules/argp-version-etc-tests: New file.
39056         * tests/test-argp-version-etc.c: New test.
39057         * tests/test-argp-version-etc-1.sh: New test.
39058
39059 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39060
39061         Provide additional interfaces and documentation for version-etc
39062         module.
39063
39064         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39065         interfaces.
39066         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39067         prototypes.
39068
39069 2009-06-24  Bruno Haible  <bruno@clisp.org>
39070
39071         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39072         HAVE_LIB${NAME} macro.
39073         Reported by Sam Steingold <sds@gnu.org>.
39074
39075 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39076
39077         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39078         needed.
39079
39080 2009-06-21  Bruno Haible  <bruno@clisp.org>
39081
39082         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39083         work.
39084         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39085         together with LIB${NAME}, LTLIB${NAME}.
39086         Reported by Sam Steingold <sds@gnu.org>.
39087
39088 2009-06-20  Jim Meyering  <meyering@redhat.com>
39089
39090         tests: make sc_require_test_exit_idiom more generic
39091         * top/maint.mk (Exit_witness_file): New overridable variable.
39092         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39093         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39094
39095 2009-06-19  Jim Meyering  <meyering@redhat.com>
39096
39097         hash: reverse order of src/dst parameters in an internal interface
39098         * lib/hash.c (transfer_entries): Reverse order of parameters to
39099         put DST before SRC.  Adjust callers.
39100
39101         tests: test-hash: avoid wholesale duplication
39102         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39103         Instead, use a loop and add a single conditional.
39104
39105         tests: test-hash: allow seed selection via a command line argument
39106         * tests/test-hash.c (get_seed): New function.
39107         (main): Use it.
39108
39109 2009-06-19  Eric Blake  <ebb9@byu.net>
39110
39111         hash: avoid memory leak on allocation failure
39112         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39113         failure.  Factor repeated algorithm...
39114         (transfer_entries): ...into new helper routine.
39115         (hash_delete): React to hash_rehash return value.
39116
39117         hash: reduce memory pressure in hash_rehash no-op case
39118         * lib/hash.c (next_prime): Avoid overflow.
39119         (hash_initialize): Factor bucket size computation...
39120         (compute_bucket_size): ...into new helper function.
39121         (hash_rehash): Use new function and open coding to reduce memory
39122         pressure, and avoid a memory leak in USE_OBSTACK code.
39123         Reported by Jim Meyering.
39124
39125 2009-06-18  Eric Blake  <ebb9@byu.net>
39126
39127         hash: make rotation more obvious
39128         * modules/hash (Depends-on): Add bitrotate and stdint.
39129         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39130         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39131         (SIZE_MAX): Rely on headers for definition.
39132         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39133         (raw_hasher): Use rotr_sz.
39134         Suggested by Jim Meyering.
39135
39136         hash: fix memory leak in last patch
39137         * lib/hash.c (hash_rehash): Avoid memory leak.
39138
39139         hash: avoid no-op rehashing
39140         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39141
39142         hash: provide default callback functions
39143         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39144         (hash_initialize): Use them as defaults.
39145         * tests/test-hash.c (main): Test this.
39146
39147         hash: minor optimization
39148         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39149         when possible.
39150         (hash_initialize): Document this promise.
39151         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39152         * tests/test-hash.c (hash_compare_strings): Test this.
39153
39154 2009-06-18  Bruno Haible  <bruno@clisp.org>
39155
39156         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39157         going to be replaced anyway.
39158
39159 2009-06-18  Bruno Haible  <bruno@clisp.org>
39160
39161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39162         in one place.
39163         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39164         be replaced anyway.
39165
39166 2009-06-18  Eric Blake  <ebb9@byu.net>
39167
39168         hash: check for resize before insertion
39169         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39170         threshold before insertion, so that a pathological hash_rehash
39171         that fills every bucket can still trigger another rehash.
39172
39173 2009-06-18  Jim Meyering  <meyering@redhat.com>
39174
39175         hash-tests: add a loop around the small tests
39176         * tests/test-hash.c (main): Repeat small tests with selected
39177         small initial table sizes.
39178
39179 2009-06-17  Eric Blake  <ebb9@byu.net>
39180
39181         hash: minor cleanups
39182         * lib/hash.h (hash_entry): Make opaque, by moving...
39183         * lib/hash.c (hash_entry): ...here.
39184         (hash_insert): Clarify restrictions on what can be inserted.
39185         (hash_get_next): Clarify when it is safe to remove an element
39186         during traversal.
39187         (check_tuning): Skip verification when tuning is known safe.
39188         (hash_initialize): Clarify restrictions on tuning.
39189
39190 2009-06-17  Jim Meyering  <jim@meyering.net>
39191         and Eric Blake  <ebb9@byu.net>
39192
39193         hash-tests: new module
39194         * modules/hash-tests: New file.
39195         * tests/test-hash.c: New file.
39196
39197 2009-06-17  Eric Blake  <ebb9@byu.net>
39198
39199         strstr-simple: document new module
39200         * MODULES.html.sh: Document new module.
39201
39202         strstr, strcasestr: replace on platforms with broken memchr
39203         * modules/strstr: Split into...
39204         * modules/strstr-simple: ...new module that does not care about
39205         performance, but does care about glibc bug.
39206         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39207         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39208         if platform memchr is broken, per Debian bug 521737.
39209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39210         memchr.
39211         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39212         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39213         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39214         * modules/mountlist (Depends-on): Add strstr-simple.
39215         * modules/gen-uni-tables (Depends-on): Likewise.
39216         * modules/argz (Depends-on): Add strstr.
39217
39218 2009-06-17  Bruno Haible  <bruno@clisp.org>
39219
39220         * modules/posix_spawn-internal (Depends-on): Add errno.
39221
39222 2009-06-17  Bruno Haible  <bruno@clisp.org>
39223
39224         Define missing ESTALE on Interix 3.5.
39225         * lib/errno.in.h (ESTALE): Assign a value if missing.
39226         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39227         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39228         missing.
39229         * doc/posix-headers/errno.texi: Mention the Interix bug.
39230         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39231
39232 2009-06-15  Eric Blake  <ebb9@byu.net>
39233
39234         memchr, memchr2: add valgrind exception
39235         * lib/memchr.valgrind: New file.
39236         * lib/memchr2.valgrind: New file.
39237         * modules/memchr (Files): Distribute valgrind file.
39238         * modules/memchr2 (Files): Likewise.
39239
39240         docs: memchr is no longer obsolete
39241         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39242         * lib/string.in.h (memchr): Simplify logic.
39243
39244 2009-06-14  Jim Meyering  <meyering@redhat.com>
39245
39246         link-follow: fix the "checking..." message to not mention trailing slash
39247         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39248         never considered trailing slashes.
39249
39250 2009-06-14  Bruno Haible  <bruno@clisp.org>
39251
39252         * m4/memchr.m4: Mention also the bug on IA-64.
39253         * doc/posix-functions/memchr.texi: Likewise.
39254
39255 2009-06-12  Eric Blake  <ebb9@byu.net>
39256
39257         memchr: detect broken x86_64 and alpha implementations
39258         * modules/memchr-tests (Depends-on): Move mmap detection...
39259         * modules/memchr (Depends-on): ...here.
39260         (configure.ac): Set indicator.
39261         * lib/string.in.h (memchr): Declare replacement.
39262         * modules/string (Makefile.am): Trigger replacement.
39263         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39264         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39265         bugs.
39266         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39267         * modules/getpagesize (License): Relax license.
39268
39269 2009-06-11  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/idpriv.h: Add more references.
39272
39273 2009-06-08  Bruno Haible  <bruno@clisp.org>
39274
39275         Tests for module 'idpriv-droptemp'.
39276         * modules/idpriv-droptemp-tests: New file.
39277         * tests/test-idpriv-droptemp.sh: New file.
39278         * tests/test-idpriv-droptemp.su.sh: New file.
39279         * tests/test-idpriv-droptemp.c: New file.
39280
39281         New module 'idpriv-droptemp'.
39282         * lib/idpriv-droptemp.c: New file.
39283         * modules/idpriv-droptemp: New file.
39284
39285 2009-06-08  Bruno Haible  <bruno@clisp.org>
39286
39287         Tests for module 'idpriv-drop'.
39288         * modules/idpriv-drop-tests: New file.
39289         * tests/test-idpriv-drop.sh: New file.
39290         * tests/test-idpriv-drop.su.sh: New file.
39291         * tests/test-idpriv-drop.c: New file.
39292
39293         New module 'idpriv-drop'.
39294         * lib/idpriv.h: New file.
39295         * lib-idpriv-drop.c: New file.
39296         * m4/idpriv.m4: New file.
39297         * modules/idpriv-drop: New file.
39298
39299 2009-06-08  Bruno Haible  <bruno@clisp.org>
39300
39301         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39302         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39303         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39304         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39305         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39306         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39307         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39308
39309 2009-06-08  Eric Blake  <ebb9@byu.net>
39310
39311         test-strstr: use memory fence, when possible
39312         * tests/test-strstr.c (main): Use memory fence, in order to be
39313         more likely to trigger Debian bug 521737.
39314         * modules/strstr-tests (Files): Pull in additional files.
39315
39316         memchr: no longer obsolete, for wider field testing
39317         * modules/memchr (Status, Notice): Delete, this module is no
39318         longer obsolete.
39319         * modules/vasnprintf (Depends-on): Add memchr.
39320
39321 2009-06-07  Jim Meyering  <meyering@redhat.com>
39322
39323         hash: declare some functions with the warn_unused_result attribute
39324         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39325
39326 2009-06-07  Bruno Haible  <bruno@clisp.org>
39327
39328         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39329         Reported by Eric Blake.
39330
39331 2009-06-06  Eric Blake  <ebb9@byu.net>
39332
39333         test-alignof: fix typo with long double
39334         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39335         compiler error.
39336
39337 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39338
39339         Escape non-texinfo { and }s.
39340         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39341         markup error.
39342
39343 2009-06-04  Jim Meyering  <meyering@redhat.com>
39344
39345         gitlog-to-changelog: don't infloop on an empty commit log
39346         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39347         Reported by Boris Petersen <transacid@centerim.org>.
39348
39349 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39350
39351         version-etc: extend for packagers
39352         Add three new configure options, intended for packagers:
39353           --with-packager="packager name"
39354           --with-packager-version="packager-specific version"
39355           --with-packager-bug-reports="packager bug reporting"
39356         An example with coreutils:
39357           $ ./configure \
39358             --with-packager=Gentoo \
39359             --with-packager-bug-report=http://bugs.gentoo.org/ \
39360             --with-packager-version="patchset 1.6"
39361           $ ./src/ls --version | head -n2
39362           ls (GNU coreutils) 7.1-dirty
39363           Packaged by Gentoo (patchset 1.6)
39364         Note that the bug reporting info via --help doesn't show up because
39365         coreutils uses its own custom emit_bug_reporting_address() implementation
39366         in src/system.h.  If it didn't, it'd look like:
39367           $ ./src/ls --help | tail -n4
39368           Report bugs to <bug-coreutils@gnu.org>.
39369           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39370           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39371           General help using GNU software: <http://www.gnu.org/gethelp/>.
39372         * lib/version-etc.c: Print new information, if provided.
39373         * m4/version-etc.m4: New file.
39374         * modules/version-etc (Files): Add m4/version-etc.m4.
39375         (configure.ac): Add gl_VERSION_ETC.
39376
39377 2009-05-31  Bruno Haible  <bruno@clisp.org>
39378
39379         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39380         and 'int64_t'.
39381         * modules/alignof-tests (Dependencies): Add stdint.
39382         Reported by Eric Blake.
39383
39384 2009-05-31  Bruno Haible  <bruno@clisp.org>
39385
39386         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39387         restriction due to compiler bugs.
39388         Reported by Eric Blake.
39389
39390 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39391             Bruno Haible  <bruno@clisp.org>
39392
39393         Fix test-alignof failure.
39394         * lib/alignof.h (alignof_slot): New macro.
39395         (alignof_type): New macro, with the same semantics as the previous
39396         'alignof'.
39397         (alignof): Alias to alignof_slot.
39398         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39399         check that the results are usable as constant expressions.
39400
39401 2009-05-31  Bruno Haible  <bruno@clisp.org>
39402
39403         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39404         * tests/test-memchr.c (main): Check that memchr does not read past the
39405         first occurrence of the byte.
39406         * tests/test-strstr.c (main): Update comment.
39407         Suggested by Eric Blake.
39408
39409 2009-05-30  Bruno Haible  <bruno@clisp.org>
39410
39411         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39412         detail how to use dumpbin.
39413         Reported by David Byron <dbyron@dbyron.com>.
39414
39415 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39416
39417         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39418
39419 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39420
39421         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39422
39423 2009-05-28  Bruno Haible  <bruno@clisp.org>
39424
39425         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39426         build-aux/ files.
39427
39428 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39429
39430         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39431
39432 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39433
39434         * gnulib-tool (sed_transform_main_lib_file)
39435         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39436         regexps.
39437
39438 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39439
39440         * tests/test-strstr.c: Add another self-test.
39441         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39442         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39443
39444 2009-05-23  Bruno Haible  <bruno@clisp.org>
39445
39446         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39447         change.
39448
39449 2009-05-21  Bruno Haible  <bruno@clisp.org>
39450
39451         Simplify use of mode_t varargs.
39452         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39453         uses 'mode_t' or 'int'.
39454         * lib/openat.c (openat): Likewise.
39455         * lib/open-safer.c (open_safer): Likewise.
39456         * m4/mode_t.m4: New file.
39457         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39458         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39459         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39460         * modules/open (Files): Add m4/mode_t.m4.
39461         * modules/openat (Files): Likewise.
39462         * modules/fcntl-safer (Files): Likewise.
39463         Suggested by Eric Blake.
39464
39465 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39466
39467         * doc/glibc-functions/fallocate.texi: New file.
39468         * doc/gnulib.texi: Include it.
39469
39470 2009-05-21  Eric Blake  <ebb9@byu.net>
39471             Bruno Haible  <bruno@clisp.org>
39472
39473         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39474         invocations.
39475         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39476
39477 2009-05-21  Eric Blake  <ebb9@byu.net>
39478             Bruno Haible  <bruno@clisp.org>
39479
39480         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39481         include_next. Fix of 2008-11-20 commit.
39482         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39483         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39484         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39485         NEXT_MATH_H.
39486         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39487         instead of NEXT_MATH_H.
39488
39489 2009-05-21  Bruno Haible  <bruno@clisp.org>
39490
39491         Avoid redefinition warnings for SIZE_MAX.
39492         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39493         Reported by Simon Josefsson.
39494
39495 2009-05-21  Bruno Haible  <bruno@clisp.org>
39496
39497         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39498         AC_CACHE_VAL.
39499
39500 2009-05-20  Bruno Haible  <bruno@clisp.org>
39501
39502         Make zeroptr.h work on mingw.
39503         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39504         mprotect.
39505         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39506         * modules/memchr2-tests (configure.ac): Likewise.
39507         * modules/memcmp-tests (configure.ac): Likewise.
39508         * modules/memmem-tests (configure.ac): Likewise.
39509         * modules/memrchr-tests (configure.ac): Likewise.
39510         Reported by Simon Josefsson.
39511
39512 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39513
39514         * tests/test-glob.c: Include string.h for strcmp prototype.
39515
39516 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39517
39518         * modules/getdelim (Depends-on): Add explicit stdint, although it
39519         was implicitly already pulled in via realloc-posix.
39520         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39521
39522 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39523
39524         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39525         G. Christensen" <tgc@jupiterrise.com>.
39526         * m4/sys_socket_h.m4: Check for sa_family_t.
39527         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39528         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39529         * tests/test-sys_socket.c: Check that sa_family_t works.
39530
39531 2009-05-18  Eric Blake  <ebb9@byu.net>
39532
39533         maint.mk: allow gnulib_dir in VPATH build
39534         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39535
39536 2009-05-15  Jim Meyering  <meyering@redhat.com>
39537
39538         maint.mk: Give gnulib_dir a default definition.
39539         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39540         Thus, most packages no longer need to specify this variable in cfg.mk
39541
39542 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39543
39544         rename.m4: fix typos that would make non-mingw cross-configure fail
39545         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39546
39547 2009-05-13  Eric Blake  <ebb9@byu.net>
39548
39549         mmap-anon: avoid out-of-order autoconf expansion
39550         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39551         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39552         * modules/memchr-tests (Depends-on): Add extensions.
39553         * modules/memchr2-tests (Depends-on): Add extensions.
39554         * modules/memcmp-tests (Depends-on): Add extensions.
39555         * modules/memmem-tests (Depends-on): Add extensions.
39556         * modules/memrchr-tests (Depends-on): Add extensions.
39557
39558 2009-05-13  Bruno Haible  <bruno@clisp.org>
39559
39560         Make some tests ISO C 99 compliant.
39561         * tests/zerosize-ptr.h: New file.
39562         * tests/test-memchr.c: Include zerosize-ptr.h.
39563         (main): Use a zero-size object pointer instead of NULL.
39564         * tests/test-memchr2.c: Include zerosize-ptr.h.
39565         (main): Use a zero-size object pointer instead of NULL.
39566         * tests/test-memcmp.c: Include zerosize-ptr.h.
39567         (main): Use a zero-size object pointer instead of NULL.
39568         * tests/test-memmem.c: Include zerosize-ptr.h.
39569         (main): Use a zero-size object pointer instead of NULL.
39570         * tests/test-memrchr.c: Include zerosize-ptr.h.
39571         (main): Use a zero-size object pointer instead of NULL.
39572         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39573         m4/mmap-anon.m4.
39574         (Depends-on): Add getpagesize.
39575         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39576         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39577         m4/mmap-anon.m4.
39578         (Depends-on): Add getpagesize.
39579         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39580         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39581         m4/mmap-anon.m4.
39582         (Depends-on): Add getpagesize.
39583         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39584         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39585         m4/mmap-anon.m4.
39586         (Depends-on): Add getpagesize.
39587         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39588         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39589         m4/mmap-anon.m4.
39590         (Depends-on): Add getpagesize.
39591         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39592
39593 2009-05-12  Bruno Haible  <bruno@clisp.org>
39594
39595         Tests for module 'alignof'.
39596         * modules/alignof-tests: New file.
39597         * tests/test-alignof.c: New file.
39598
39599 2009-05-12  Bruno Haible  <bruno@clisp.org>
39600
39601         Fix alignof macro.
39602         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39603         vendor compilers that are always correct.
39604
39605 2009-05-12  Bruno Haible  <bruno@clisp.org>
39606
39607         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39608         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39609         not whether its fully works.
39610
39611 2009-05-12  Bruno Haible  <bruno@clisp.org>
39612
39613         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39614
39615 2009-05-12  Jim Meyering  <meyering@redhat.com>
39616
39617         * top/maint.mk: Adjust backslash alignment.
39618
39619 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39620
39621         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39622
39623 2009-05-11  Eric Blake  <ebb9@byu.net>
39624
39625         argp: avoid undefined behavior
39626         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39627         macros.
39628
39629 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39630
39631         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39632         user.name to prevent git commit from complaining.
39633
39634 2009-05-10  Bruno Haible  <bruno@clisp.org>
39635
39636         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39637         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39638         it rewrites every file name only once.
39639         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39640
39641 2009-05-08  Bruno Haible  <bruno@clisp.org>
39642
39643         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39644         instead of 'max'.
39645
39646 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39647
39648         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39649         sockaddr_storage test.
39650
39651 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39652
39653         * modules/sys_socket (Makefile.am): Substitute
39654         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39655         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39656         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39657         * tests/test-sys_socket.c: Check sockaddr_storage.
39658
39659 2009-05-08  Bruno Haible  <bruno@clisp.org>
39660
39661         New module 'alignof'.
39662         * lib/alignof.h: New file.
39663         * modules/alignof: New file.
39664
39665 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39666             Bruno Haible  <bruno@clisp.org>
39667
39668         Fix test-file-has-acl on FreeBSD.
39669         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39670         mask is implicitly added.
39671         * tests/test-file-has-acl.c: Include <signal.h>.
39672         (main): Terminate the test after 5 seconds.
39673         * modules/acl-tests (configure.ac): Check for alarm function.
39674
39675 2009-05-04  Bruno Haible  <bruno@clisp.org>
39676
39677         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39678         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39679         * modules/errno (configure.ac): Drop AC_REQUIRE.
39680         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39681         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39682
39683 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39684
39685         * modules/glob-tests: New module.
39686         * tests/test-glob.c: Add.
39687
39688 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39689
39690         * modules/fnmatch-tests: New module.
39691         * tests/test-fnmatch.c: Add.
39692
39693 2009-05-04  Eric Blake  <ebb9@byu.net>
39694
39695         maint: make the new no-submodule-changes rule VPATH-safe
39696         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39697
39698 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39699             Bruno Haible  <bruno@clisp.org>
39700
39701         acl: Fix infinite loop on FreeBSD.
39702         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39703         of return value from acl_get_entry.
39704         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39705         Likewise.
39706
39707 2009-05-03  Bruno Haible  <bruno@clisp.org>
39708
39709         * lib/acl-internal.h (acl_entries): Clarify return value.
39710         * lib/acl_entries.c (acl_entries): Likewise.
39711
39712 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39713
39714         Bug fix in acl module.
39715         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39716
39717 2009-05-03  Bruno Haible  <bruno@clisp.org>
39718
39719         Create gperf-generated file in the source dir, not in the build dir.
39720         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39721         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39722         * modules/unicase/locale-language (unicase/locale-languages.h):
39723         Likewise.
39724         * modules/unicase/special-casing (unicase/special-casing-table.h):
39725         Likewise.
39726         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39727         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39728         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39729         Reported by Ralf Wildenhues.
39730
39731 2009-05-03  Bruno Haible  <bruno@clisp.org>
39732
39733         * modules/fnmatch (Description, configure.ac): Taken from
39734         fnmatch-posix.
39735         * modules/fnmatch-posix: Turn into a symbolic reference to the
39736         'fnmatch' module, and deprecate.
39737         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39738
39739 2009-05-03  Bruno Haible  <bruno@clisp.org>
39740
39741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39742         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39743         Reported by Ralf Wildenhues.
39744
39745 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39746
39747         * m4/fnmatch.m4: Fix fnmatch re-define.
39748
39749 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39750
39751         priv-set: new module and tests; adapt write-any-file
39752         * lib/priv-set.c: New file.
39753         * lib/priv-set.h: New file.
39754         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39755         * lib/write-any-file.c: Simplify by using priv-set module.
39756         * m4/priv-set.m4: New file.
39757         * modules/priv-set: New file.
39758         * modules/unlinkdir: Add dependency on priv-set module.
39759         * modules/write-any-file: Likewise.
39760
39761         Tests for module 'priv-set'.
39762         * modules/priv-set-tests: New file.
39763         * tests/test-priv-set.c: New file.
39764
39765 2009-05-03  Jim Meyering  <meyering@redhat.com>
39766             Bruno Haible  <bruno@clisp.org>
39767
39768         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39769         use the converted UTF-8 variant of the name instead.
39770
39771 2009-05-03  Jim Meyering  <meyering@redhat.com>
39772
39773         tests: tighten some getdate tests
39774         * tests/test-getdate.c (main): Tighten tests: require equality,
39775         not just greater than.  Set TZ envvar to UTC0.
39776
39777 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39778
39779         getdate: correctly interpret "next monday" when run on a Monday
39780         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39781         that e.g., "next tues" (when run on a tuesday) results in a date
39782         that is one week in the future, and not today's date.
39783         I.e., add a week when the wday is the same as the current one.
39784         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39785         and earlier by Martin Bernreuther and Jan Minář.
39786         * tests/test-getdate.c (main): Check that "next DAY" is always in
39787         the future and that "last DAY" is always in the past.
39788
39789 2009-05-02  Jim Meyering  <meyering@redhat.com>
39790
39791         build: ensure that a release build fails when a submodule is unclean
39792         * top/maint.mk (no-submodule-changes): New rule.
39793         (alpha beta major): Depend on it.
39794
39795 2009-05-02  Bruno Haible  <bruno@clisp.org>
39796
39797         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39798         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39799         shell variable gl_fnmatch_required to detect which variant is
39800         requested.
39801         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39802         gl_FUNC_FNMATCH_POSIX.
39803         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39804         exclude fnmatch-posix.
39805
39806 2009-05-02  Bruno Haible  <bruno@clisp.org>
39807
39808         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39809         * modules/mbsrtowcs (License): Change to LGPLv2+.
39810         * modules/strnlen1 (License): Likewise.
39811         Reported by Simon Josefsson.
39812
39813 2009-05-02  Bruno Haible  <bruno@clisp.org>
39814
39815         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39816         "cross".
39817         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39818         gnulib-tool was called with option --source-base=lib.
39819
39820 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39821
39822         Use automake *-local hooks without commands, for extensibility.
39823         * modules/localcharset (Makefile.am): Rename install-exec-local
39824         rule to install-exec-localcharset, and make it a prerequisite of
39825         install-exec-local.  Likewise, rename the uninstall-local rule to
39826         uninstall-localcharset, and make it a prerequisite of the former.
39827
39828 2009-05-01  Bruno Haible  <bruno@clisp.org>
39829
39830         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39831         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39832         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39834         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39835         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39836         m4/locale-zh.m4, m4/codeset.m4.
39837
39838         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39839         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39840         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39841         m4/locale-zh.m4.
39842
39843         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39844         REPLACE_WCRTOMB if mbstate_t must be replaced.
39845         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39846         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39847
39848 2009-05-01  Bruno Haible  <bruno@clisp.org>
39849
39850         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39851         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39852         dngettext, dcngettext, textdomain, bindtextdomain,
39853         bind_textdomain_codeset): Undefine before redefining.
39854
39855 2009-04-30  Bruno Haible  <bruno@clisp.org>
39856
39857         Fix bug introduced on 2009-04-25.
39858         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39859         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39860         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39861         is defined.
39862         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39863         is defined.
39864         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39865         is defined.
39866         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39867
39868 2009-04-28  Bruno Haible  <bruno@clisp.org>
39869
39870         Comment tweaks.
39871         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39872         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39873         * lib/unicase.h (u*_casexfrm): Likewise.
39874         Reported by Paolo Bonzini.
39875
39876 2009-04-28  Bruno Haible  <bruno@clisp.org>
39877
39878         Fix a compilation error.
39879         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39880         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39881         Reported by Jim Meyering.
39882
39883 2009-04-27  Bruno Haible  <bruno@clisp.org>
39884
39885         New module 'libunistring'.
39886         * modules/libunistring: New file.
39887         * m4/libunistring.m4: New file.
39888         * MODULES.html.sh (Unicode string functions): Add it.
39889
39890 2009-04-27  Eric Blake  <ebb9@byu.net>
39891
39892         maint.mk: allow package-specific header to provide <config.h>
39893         * top/maint.mk (sc_require_config_h): New variable.
39894         (sc_require_config_h, sc_require_config_h_first): Use it.
39895
39896 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39897
39898         * top/maint.mk (sc_avoid_if_before_free): Except
39899         useless-if-before-free script.
39900
39901 2009-04-27  Eric Blake  <ebb9@byu.net>
39902
39903         maintainer-makefile: depend on all required helper scripts
39904         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39905         useless-if-before-free.
39906         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39907         version, rather than assuming gnulib checkout is available.
39908         Reported by Simen Josefsson.
39909
39910 2009-04-26  Bruno Haible  <bruno@clisp.org>
39911
39912         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39913         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39914         "../" or "..".
39915
39916 2009-04-26  Bruno Haible  <bruno@clisp.org>
39917
39918         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39919         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39920         AC_LIB_HAVE_LINKFLAGS.
39921
39922 2009-04-26  Bruno Haible  <bruno@clisp.org>
39923
39924         Simplify calling convention of u*_conv_from_encoding.
39925         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39926         u32_conv_from_encoding): Expect a resultbuf argument and return the
39927         result directly as a pointer.
39928         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39929         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39930         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39931         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39932         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39933         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39934         Update.
39935         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39936         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39937         * lib/vasnprintf.c (VASNPRINTF): Update.
39938         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39939         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39940         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39941         * NEWS: Mention the change.
39942
39943 2009-04-26  Bruno Haible  <bruno@clisp.org>
39944
39945         Simplify calling convention of u*_conv_to_encoding.
39946         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39947         u32_conv_to_encoding): Expect a resultbuf argument and return the
39948         result directly as a pointer.
39949         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39950         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39951         freeing scaled_offsets if mem_iconveha failed.
39952         * lib/unicase/u-casexfrm.h (FUNC): Update.
39953         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39954         * lib/vasnprintf.c (VASNPRINTF): Update.
39955         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39956         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39957         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39958         * NEWS: Mention the change.
39959
39960 2009-04-26  Bruno Haible  <bruno@clisp.org>
39961
39962         Avoid test failures on AIX and OSF/1.
39963         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39964         malloc(0).
39965         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39966         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39967         Likewise.
39968         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39969         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39970         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39971         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39972         * doc/posix-functions/malloc.texi: Document the portability problem
39973         related to malloc(0).
39974
39975 2009-04-26  Bruno Haible  <bruno@clisp.org>
39976
39977         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39978         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39979         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39980
39981 2009-04-25  Bruno Haible  <bruno@clisp.org>
39982
39983         Avoid link error when creating a namespace clean library.
39984         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39985         as macro with arguments if already defined as an alias.
39986         * lib/signbitf.c (gl_signbitf): Don't undefine.
39987         * lib/signbitd.c (gl_signbitd): Don't undefine.
39988         * lib/signbitl.c (gl_signbitl): Don't undefine.
39989
39990 2009-04-25  Jim Meyering  <meyering@redhat.com>
39991
39992         vc-list-files: fix another quoting bug
39993         * build-aux/vc-list-files: Avoid sed backslash expansion
39994         of pathological directory names.
39995
39996 2009-04-25  Eric Blake  <ebb9@byu.net>
39997
39998         vc-list-files: fix shell quoting error
39999         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40000         timestamp.
40001
40002 2009-04-25  Jim Meyering  <meyering@redhat.com>
40003
40004         vc-list-files: restore lost functionality with subdir argument
40005         * build-aux/vc-list-files: When given a non-"." sub-directory
40006         argument, substitute the $dir/ prefix back onto each resulting name.
40007         Otherwise, coreutils' root_tests check would fail.
40008
40009 2009-04-24  Eric Blake  <ebb9@byu.net>
40010
40011         vc-list-files: ignore git symlinks
40012         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40013         than ls-files, to ignore git symlinks.
40014
40015         maint.mk: import improvements from m4
40016         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40017         (move_if_change): Delete unused macro.
40018         (news-date-check, vc-diff-check): Support VPATH builds.
40019         (announcement): Likewise.  Split --bootstrap-tools list...
40020         (boostrap-tools): ...into separate list, which can be overridden
40021         in cfg.mk.
40022         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40023         requiring dependency on useless-if-before-free module.
40024         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40025         Support VPATH builds.
40026
40027 2009-04-24  Jim Meyering  <meyering@redhat.com>
40028
40029         maint.mk: remove coreutils-specific rules and variables
40030         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40031         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40032         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40033
40034         maint.mk: remove obsolete rule
40035         * top/maint.mk (rel-check): Remove rule.
40036         (WGET, WGETFLAGS): Remove now-unused variables.
40037
40038 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40039
40040         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40041         consistency.
40042
40043         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40044         '$(PATH_SEPARATOR)' instead of ':'.
40045
40046 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40047
40048         * lib/getopt1.c (main): Use 'const' for static array.
40049
40050 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40051
40052         * top/maint.mk: Sync with coreutils.
40053         * NEWS: Explain incompatibilities.
40054
40055 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40056             Bruno Haible  <bruno@clisp.org>
40057
40058         Fix cross-compilation results.
40059         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40060         statement, as third argument of AC_TRY_RUN.
40061         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40062         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40063         Likewise.
40064         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40065         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40066         Likewise.
40067         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40068         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40069         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40070
40071 2009-04-20  Bruno Haible  <bruno@clisp.org>
40072
40073         Avoid test failure on mingw.
40074         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40075
40076 2009-04-20  Bruno Haible  <bruno@clisp.org>
40077
40078         Avoid compilation error on mingw.
40079         * modules/localename-tests (Depends-on): Add locale.
40080
40081 2009-04-19  Bruno Haible  <bruno@clisp.org>
40082
40083         Support for building a shared library on Windows platforms.
40084         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40085         (main): Test the presence of UNINORM_NFC here.
40086         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40087         (main): Test the presence of UNINORM_NFD here.
40088         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40089         (main): Test the presence of UNINORM_NFKC here.
40090         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40091         (main): Test the presence of UNINORM_NFKD here.
40092
40093 2009-04-19  Bruno Haible  <bruno@clisp.org>
40094
40095         Avoid a compiler warning.
40096         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40097         Change type of variable 'sequence'.
40098
40099 2009-04-19  Bruno Haible  <bruno@clisp.org>
40100
40101         * modules/configmake (Makefile.am): When the contents of configmake.h
40102         does not change, arrange to preserve its modification time.
40103
40104 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40105
40106         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40107         gettext domain.
40108
40109 2009-04-16  Jim Meyering  <meyering@redhat.com>
40110
40111         useless-if-before-free: improve conversion code
40112         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40113         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40114
40115 2009-04-14  Bruno Haible  <bruno@clisp.org>
40116
40117         * modules/fcntl (Depends-on): Add extensions.
40118         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40119
40120 2009-04-12  Ben Pfaff  <blp@gnu.org>
40121
40122         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40123         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40124
40125 2009-03-20  Ben Pfaff  <blp@gnu.org>
40126
40127         Make rename replace existing destinations on Windows.
40128         * m4/rename.m4: Add test for Mingw.
40129         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40130         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40131         * doc/posix-functions/rename.texi: Document.
40132
40133 2009-04-10  Bruno Haible  <bruno@clisp.org>
40134
40135         New include file "iconveh.h".
40136         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40137         * lib/striconveh.h: Include it.
40138         (enum iconv_ilseq_handler): Remove definition.
40139         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40140         striconveh.h.
40141         * lib/striconveha.c: Include striconveh.h.
40142         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40143         * modules/striconveh (Files): Add lib/iconveh.h.
40144         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40145         lib/striconveh.h.
40146
40147 2009-04-10  Bruno Haible  <bruno@clisp.org>
40148
40149         * lib/uniconv.h: Update comment.
40150
40151 2009-04-10  Bruno Haible  <bruno@clisp.org>
40152
40153         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40154         always.
40155         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40156         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40157         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40158         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40159         "unistring-notinline.h", so that the function gets defined always.
40160         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40161         * lib/unistr/u8-uctomb.c: Likewise.
40162         * lib/unistr/u16-mbtouc.c: Likewise.
40163         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40164         * lib/unistr/u16-uctomb.c: Likewise.
40165         * lib/unistr/u32-mbtouc.c: Likewise.
40166         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40167         * lib/unistr/u32-uctomb.c: Likewise.
40168
40169 2009-04-10  Bruno Haible  <bruno@clisp.org>
40170
40171         Mark 'utime' obsolete.
40172         * modules/utime (Status, Notice): New sections.
40173         Suggested by Jim Meyering.
40174
40175         Fix cross-compile guess for utime test.
40176         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40177         autoconf.
40178         * doc/posix-functions/utime.texi: Give more precisions.
40179         Reported by Jan <ipif@ymail.com>.
40180
40181 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40182
40183         filevercmp: correct today's change
40184         * lib/filevercmp.c: Also handle coreutils' test inputs.
40185         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40186
40187         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40188         for reporting it.
40189         * lib/filevercmp.c: Special handle for "", "." and "..".
40190         * tests/test-filevercmp.c: Enlarge the set suite.
40191
40192 2009-04-07  Jim Meyering  <meyering@redhat.com>
40193
40194         useless-if-before-free: show how to remove braced useless free, too
40195         * build-aux/useless-if-before-free: still only in a comment, though.
40196
40197 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40198
40199         maint.mk: import changes to syntax-check macros from coreutils
40200         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40201         Use them in the relevant macros.
40202
40203 2009-04-06  Bruno Haible  <bruno@clisp.org>
40204
40205         Fix unportable use of bit-fields.
40206         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40207         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40208         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40209
40210 2009-04-06  Bruno Haible  <bruno@clisp.org>
40211
40212         Avoid test failures on AIX and OSF/1.
40213         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40214         that malloc(0) = NULL.
40215         * tests/unicase/test-u8-tolower.c (check): Likewise.
40216         * tests/unicase/test-u8-totitle.c (check): Likewise.
40217         * tests/unicase/test-u8-toupper.c (check): Likewise.
40218         * tests/unicase/test-u16-casefold.c (check): Likewise.
40219         * tests/unicase/test-u16-tolower.c (check): Likewise.
40220         * tests/unicase/test-u16-totitle.c (check): Likewise.
40221         * tests/unicase/test-u16-toupper.c (check): Likewise.
40222         * tests/unicase/test-u32-casefold.c (check): Likewise.
40223         * tests/unicase/test-u32-tolower.c (check): Likewise.
40224         * tests/unicase/test-u32-totitle.c (check): Likewise.
40225         * tests/unicase/test-u32-toupper.c (check): Likewise.
40226         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40227         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40228         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40229         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40230         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40231         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40232         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40233         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40234         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40235         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40236         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40237         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40238
40239 2009-04-05  Bruno Haible  <bruno@clisp.org>
40240
40241         Work around an autoconf limitation.
40242         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40243         comment line if it would be longer than 3 KB.
40244
40245 2009-04-05  Bruno Haible  <bruno@clisp.org>
40246
40247         Avoid test failure with libiconv-1.13.
40248         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40249         of the expected test results.
40250
40251 2009-04-05  Bruno Haible  <bruno@clisp.org>
40252
40253         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40254         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40255         that it should be installed.
40256
40257 2009-04-05  Bruno Haible  <bruno@clisp.org>
40258
40259         * gnulib-tool: New option --copy-file.
40260         (func_usage): Document it.
40261         (func_dest_tmpfilename): Moved out of func_import.
40262         (func_add_file, func_update_file): New functions, extracted from
40263         func_import.
40264         (func_import): Update.
40265
40266 2009-04-05  Karl Berry  <karl@gnu.org>
40267
40268         * README: prominently mention gnulib-tool.
40269         Rearrange sections so getting the code is near the top.
40270
40271 2009-04-05  Bruno Haible  <bruno@clisp.org>
40272
40273         * lib/unicase.h: Mention u*_cmp2.
40274         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40275         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40276         * lib/unicase/ulc-casecmp.c: Likewise.
40277         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40278         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40279         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40280         unistr/u8-cmp.
40281         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40282         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40283         unistr/u16-cmp.
40284         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40285         unistr/u32-cmp.
40286
40287         * lib/uninorm.h: Mention u*_cmp2.
40288         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40289         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40290         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40291         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40292         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40293         unistr/u8-cmp.
40294         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40295         unistr/u16-cmp.
40296         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40297         unistr/u32-cmp.
40298
40299         New module 'unistr/u32-cmp2'.
40300         * lib/unistr/u32-cmp2.c: New file.
40301         * modules/unistr/u32-cmp2: New file.
40302
40303         New module 'unistr/u16-cmp2'.
40304         * lib/unistr/u16-cmp2.c: New file.
40305         * modules/unistr/u16-cmp2: New file.
40306
40307         New module 'unistr/u8-cmp2'.
40308         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40309         * lib/unistr/u8-cmp2.c: New file.
40310         * lib/unistr/u-cmp2.h: New file.
40311         * modules/unistr/u8-cmp2: New file.
40312
40313 2009-04-05  Bruno Haible  <bruno@clisp.org>
40314
40315         * lib/unictype.h (uc_property_is_valid): New macro.
40316         * tests/unictype/test-pr_byname.c (main): Use it.
40317
40318         * lib/unistr.h: Doc fixes.
40319         * lib/uniconv.h: Doc fixes.
40320         * lib/unictype.h: Doc fixes.
40321
40322 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40323
40324         Port coreutils 7.2 to Solaris 8.
40325
40326         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40327         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40328         for Solaris 8.  This is a bit of a hack, as it means it's the
40329         caller's responsibility to add -lnsl if needed, but most likely it
40330         won't be needed since only getaddrinfo uses this and getaddrinfo
40331         isn't needed on Solaris 8.
40332
40333         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40334         problem to Solaris 8 encountered with coreutils 7.2, which
40335         resulted in a message "fnmatch.c:292: warning: passing argument 4
40336         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40337         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40338
40339 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40340
40341         * m4/ld-version-script.m4: Add FIXME comment.
40342
40343 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40344
40345         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40346         SOVERSION variable.
40347
40348 2009-04-02  Bruno Haible  <bruno@clisp.org>
40349
40350         * Makefile (info, html, dvi, pdf): Combine the rules.
40351         Suggested by Jim Meyering.
40352
40353 2009-04-01  Bruno Haible  <bruno@clisp.org>
40354
40355         * Makefile (info, html, dvi, pdf): New targets.
40356         Reported by Reuben Thomas <rrt@sc3d.org>.
40357
40358 2009-04-01  Bruno Haible  <bruno@clisp.org>
40359
40360         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40361         can be put into PATH.
40362         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40363
40364 2009-04-01  Bruno Haible  <bruno@clisp.org>
40365
40366         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40367
40368 2009-04-01  Bruno Haible  <bruno@clisp.org>
40369
40370         Rename module 'visibility'.
40371         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40372         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40373         * doc/gnulib.texi: Update.
40374         * MODULES.html.sh (Misc): Update.
40375         * NEWS: Mention the change.
40376
40377 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40378
40379         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40380         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40381         Eric Blake <ebb9@byu.net> for review.
40382         * MODULES.html.sh: Add lib-msvc-compat.
40383         * doc/gnulib.texi: Link to new section.
40384         * m4/ld-output-def.m4: New file.
40385         * doc/ld-output-def.texi: New file.
40386
40387 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40388
40389         Rename ld-version-script to lib-symbol-versions.  Suggested by
40390         Bruno Haible <bruno@clisp.org>.
40391         * modules/ld-version-script: Renamed to lib-symbol-versions.
40392         * doc/ld-version-script.texi: Fix module name.
40393         * MODULES.html.sh: Add lib-symbol-versions.
40394
40395 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40396
40397         * modules/u64-tests: New file.
40398         * tests/test-u64.c: New file.
40399
40400 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40401
40402         * MODULES.html.sh: Mention u64.
40403         * modules/u64: New module.
40404         * modules/crypto/sha512: Depend on u64 module instead of providing
40405         u64.h.
40406
40407 2009-03-27  Eric Blake  <ebb9@byu.net>
40408
40409         test-strerror: make debugging EAI_SYSTEM easier
40410         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40411         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40412         failure was EAI_SYSTEM.
40413
40414 2009-03-25  Bruno Haible  <bruno@clisp.org>
40415
40416         Fix a problem with --enable-relocatable on Solaris 7.
40417         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40418         since 2008-02-24.
40419
40420 2009-03-25  Eric Blake  <ebb9@byu.net>
40421
40422         test-sockets: avoid gcc warning
40423         * tests/test-sockets.c (main): Silence compiler warning.
40424
40425 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40426
40427         New modules nproc, pthread, contributed by Glen Lenker.
40428
40429         * MODULES.html.sh: Add pthread, nproc.
40430         * lib/nproc.c: New file.
40431         * lib/nproc.h: New file.
40432         * lib/pthread.in.h: New file.
40433         * m4/pthread.m4: New file.
40434         * modules/nproc: New file.
40435         * modules/pthread: New file.
40436
40437 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40438
40439         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40440         New variable.
40441
40442 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40443
40444         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40445         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40446         * tests/test-filevercmp.c: Add tests for backup suffixes.
40447
40448 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40449
40450         * modules/stdlib (Depends-on): Add stdint, needed when defining
40451         struct random_data on, for example, HP-UX 10.20.  Reported by
40452         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40453
40454 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40455
40456         * lib/readline.c (readline): Call fflush on stdout after printing
40457         prompt.
40458
40459 2009-03-20  Bruno Haible  <bruno@clisp.org>
40460
40461         Remove dependency from 'close' module to -lws2_32 on native Windows.
40462         * lib/close-hook.h: New file.
40463         * lib/close-hook.c: New file.
40464         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40465         w32sock.h.
40466         (_gl_close_fd_maybe_socket): Remove function.
40467         (rpl_close): Invoke execute_all_close_hooks instead of
40468         _gl_close_fd_maybe_socket.
40469         * lib/sockets.c: Include close-hook.h, w32sock.h.
40470         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40471         (close_sockets_hook): New variable.
40472         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40473         (gl_sockets_cleanup): Unregister it.
40474         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40475         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40476         * modules/close-hook: New file.
40477         * modules/close (Files): Remove lib/w32sock.h.
40478         (Depends-on): Add close-hook.
40479         (Link): Remove section.
40480         * modules/sockets (Files): Add lib/w32sock.h.
40481         (Depends-on): Add close-hook.
40482         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40483         invocation.
40484         * NEWS: Mention that LIB_CLOSE is gone.
40485
40486 2009-03-23  Eric Blake  <ebb9@byu.net>
40487
40488         signal-tests: test previous patch
40489         * tests/test-signal.c: New file.
40490         * modules/signal-tests: Likewise.
40491
40492         signal.h: always support 'volatile sig_atomic_t'
40493         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40494         (gl_SIGNAL_H_DEFAULTS): Add a default.
40495         * modules/signal (Makefile.am): Substitute if needed.
40496         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40497         users can blindly add volatile.
40498         * doc/posix-headers/signal.texi (signal.h): Document it.
40499         Reported by Matthew Woehlke.
40500
40501 2009-03-23  Jim Meyering  <meyering@redhat.com>
40502
40503         pathmax: PATH_MAX: use pathconf only when available
40504         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40505         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40506         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40507         This avoids a link failure in a PSP cross-compilation environment
40508         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40509
40510         * lib/vasnprintf.c (divide): Fix typo in comment.
40511
40512 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40513
40514         * gnulib-tool (func_filter_filelist): Fix comment.
40515
40516 2009-03-20  Bruno Haible  <bruno@clisp.org>
40517
40518         Make sockets.h self-contained.
40519         * lib/sockets.c: Include sockets.h first.
40520         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40521
40522 2009-03-19  Eric Blake  <ebb9@byu.net>
40523
40524         doc: mention more functions added in cygwin 1.7.0
40525         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40526         addition.
40527         * doc/posix-functions/log2f.texi: Likewise.
40528
40529 2009-03-19  Jim Meyering  <meyering@redhat.com>
40530
40531         fsusage: avoid syntax error due to statement-before-declaration
40532         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40533         after all declarations.  Reported by Matthew Woehlke in
40534         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40535
40536 2009-03-18  Eric Blake  <ebb9@byu.net>
40537
40538         build-aux/compile: sync from automake
40539         * build-aux/compile: New file, from automake.
40540         * config/srclist.txt: Mention build-aux/compile.
40541
40542 2009-03-17  Bruno Haible  <bruno@clisp.org>
40543
40544         * lib/git-merge-changelog.c: Fix typo in comment.
40545         Reported by Reuben Thomas <rrt@sc3d.org>.
40546
40547 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40548
40549         * m4/regex.m4: update and improve help for
40550         --without-included-regex.
40551
40552 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40553
40554         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40555         failure on missing include files.
40556
40557 2009-03-17  Eric Blake  <ebb9@byu.net>
40558
40559         doc: mention more functions added in cygwin 1.7.0
40560         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40561         addition.
40562         * doc/posix-functions/fwscanf.texi: Likewise.
40563         * doc/posix-functions/swprintf.texi: Likewise.
40564         * doc/posix-functions/swscanf.texi: Likewise.
40565         * doc/posix-functions/vfwprintf.texi: Likewise.
40566         * doc/posix-functions/vfwscanf.texi: Likewise.
40567         * doc/posix-functions/vswprintf.texi: Likewise.
40568         * doc/posix-functions/vswscanf.texi: Likewise.
40569         * doc/posix-functions/vwprintf.texi: Likewise.
40570         * doc/posix-functions/vwscanf.texi: Likewise.
40571         * doc/posix-functions/wcscasecmp.texi: Likewise.
40572         * doc/posix-functions/wcsdup.texi: Likewise.
40573         * doc/posix-functions/wcsftime.texi: Likewise.
40574         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40575         * doc/posix-functions/wprintf.texi: Likewise.
40576         * doc/posix-functions/wscanf.texi: Likewise.
40577         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40578
40579 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40580
40581         maint.mk: really add $(AM_MAKEFLAGS)
40582         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40583         was inadvertently omitted in the last commit.
40584         Spotted by Bruno Haible.
40585
40586         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40587         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40588         $(AM_MAKEFLAGS)' rather than plain `make'.
40589
40590         gnulib-tool: execute $MAKE not make
40591         * gnulib-tool: Default $MAKE to 'make'.
40592         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40593         than make.  Initialize $MAKE in the do-autobuild script.
40594
40595         gnulib-tool: use $MAKE not make in generated files
40596         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40597         make, in generated files.  Initialize $MAKE in the do-autobuild
40598         script.
40599
40600         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40601
40602         GNUmakefile: disable parallelism only for multiple, recursive targets
40603         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40604         additions in the Makefile.
40605         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40606         by Automake.
40607         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40608         are listed on the command line and at least one of them is
40609         listed in $(ALL_RECURSIVE_TARGETS).
40610
40611 2009-03-14  Bruno Haible  <bruno@clisp.org>
40612
40613         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40614         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40615         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40616         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40617         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40618         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40619         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40620         unistr/u8-uctomb.
40621         * modules/unistr/u8-strchr (Depends-on): Likewise.
40622         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40623         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40624         unistr/u16-uctomb.
40625         * modules/unistr/u16-strchr (Depends-on): Likewise.
40626         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40627
40628 2009-03-12  Bruno Haible  <bruno@clisp.org>
40629
40630         Work around select() bug on Interix 3.5.
40631         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40632         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40633         * m4/select.m4: New file.
40634         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40635         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40636         * modules/select (Files): Add m4/select.m4.
40637         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40638         * modules/nanosleep (Depends-on): Add select.
40639         * modules/poll (Depends-on): Likewise.
40640         * doc/posix-functions/select.texi: Mention the Interix bug.
40641         Reported by Markus Duft <mduft@gentoo.org>.
40642
40643         * lib/select.c: Renamed from lib/winsock-select.c.
40644         * modules/select (Files): Add lib/select.c, remove
40645         lib/winsock-select.c.
40646         (configure.ac): Update.
40647
40648 2009-03-12  Jim Meyering  <meyering@redhat.com>
40649
40650         avoid gcc warnings about unused macro definitions
40651         * lib/readtokens.c (STREQ): Remove unused definition.
40652         * lib/xmalloc.c (SIZE_MAX): Likewise.
40653         * lib/openat-die.c (N_): Likewise.
40654         * lib/mountlist.c (SIZE_MAX): Remove definition.
40655         Instead, include <stdint.h>.
40656         * lib/readutmp.c: Likewise.
40657         * modules/readutmp (Depends-on): Add stdint.
40658         * modules/mountlist (Depends-on): Add stdint.
40659         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40660
40661 2009-03-10  Bruno Haible  <bruno@clisp.org>
40662
40663         Tests for module 'mbmemcasecoll'.
40664         * modules/mbmemcasecoll-tests: New file.
40665         * tests/test-mbmemcasecoll1.sh: New file.
40666         * tests/test-mbmemcasecoll2.sh: New file.
40667         * tests/test-mbmemcasecoll3.sh: New file.
40668         * tests/test-mbmemcasecoll.c: New file.
40669
40670         New module 'mbmemcasecoll'.
40671         * lib/mbmemcasecoll.h: New file.
40672         * lib/mbmemcasecoll.c: New file.
40673         * modules/mbmemcasecoll: New file.
40674
40675         * tests/test-mbmemcasecmp.h: New file, extracted from
40676         tests/test-mbmemcasecmp.c.
40677         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40678         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40679         (main): Update.
40680         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40681
40682 2009-03-09  Bruno Haible  <bruno@clisp.org>
40683
40684         Tests for module 'mbmemcasecmp'.
40685         * modules/mbmemcasecmp-tests: New file.
40686         * tests/test-mbmemcasecmp1.sh: New file.
40687         * tests/test-mbmemcasecmp2.sh: New file.
40688         * tests/test-mbmemcasecmp3.sh: New file.
40689         * tests/test-mbmemcasecmp.c: New file.
40690
40691         New module 'mbmemcasecmp'.
40692         * lib/mbmemcasecmp.h: New file.
40693         * lib/mbmemcasecmp.c: New file.
40694         * modules/mbmemcasecmp: New file.
40695
40696 2009-03-09  Bruno Haible  <bruno@clisp.org>
40697
40698         Tests for module 'unicase/ulc-casecoll'.
40699         * modules/unicase/ulc-casecoll-tests: New file.
40700         * tests/unicase/test-ulc-casecoll1.sh: New file.
40701         * tests/unicase/test-ulc-casecoll2.sh: New file.
40702         * tests/unicase/test-ulc-casecoll.c: New file.
40703
40704         New module 'unicase/ulc-casecoll'.
40705         * lib/unicase.h (ulc_casecoll): New declaration.
40706         * lib/unicase/ulc-casecoll.c: New file.
40707         * modules/unicase/ulc-casecoll: New file.
40708
40709         New module 'unicase/ulc-casexfrm'.
40710         * lib/unicase.h (ulc_casexfrm): New declaration.
40711         * lib/unicase/ulc-casexfrm.c: New file.
40712         * modules/unicase/ulc-casexfrm: New file.
40713
40714 2009-03-09  Bruno Haible  <bruno@clisp.org>
40715
40716         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40717         invocations.
40718
40719         * m4/mbscasecmp.m4: Remove file.
40720         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40721         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40722
40723         * m4/mbscasestr.m4: Remove file.
40724         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40725         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40726
40727         * m4/mbschr.m4: Remove file.
40728         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40729         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40730
40731         * m4/mbscspn.m4: Remove file.
40732         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40733         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40734
40735         * m4/mbslen.m4: Remove file.
40736         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40737         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40738
40739         * m4/mbsncasecmp.m4: Remove file.
40740         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40741         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40742
40743         * m4/mbsnlen.m4: Remove file.
40744         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40745         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40746
40747         * m4/mbspbrk.m4: Remove file.
40748         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40749         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40750
40751         * m4/mbspcasecmp.m4: Remove file.
40752         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40753         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40754
40755         * m4/mbsrchr.m4: Remove file.
40756         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40757         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40758
40759         * m4/mbssep.m4: Remove file.
40760         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40761         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40762
40763         * m4/mbsspn.m4: Remove file.
40764         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40765         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40766
40767         * m4/mbsstr.m4: Remove file.
40768         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40769         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40770
40771         * m4/mbstok_r.m4: Remove file.
40772         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40773         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40774
40775         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40776
40777         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40778         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40779
40780         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40781
40782 2009-03-08  Bruno Haible  <bruno@clisp.org>
40783
40784         Tests for module 'unicase/ulc-casecmp'.
40785         * modules/unicase/ulc-casecmp-tests: New file.
40786         * tests/unicase/test-ulc-casecmp1.sh: New file.
40787         * tests/unicase/test-ulc-casecmp2.sh: New file.
40788         * tests/unicase/test-ulc-casecmp.c: New file.
40789
40790         New module 'unicase/ulc-casecmp'.
40791         * lib/unicase.h (ulc_casecmp): New declaration.
40792         * lib/unicase/ulc-casecmp.c: New file.
40793         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40794         'const SRC_UNIT *'.
40795         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40796         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40797         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40798         * modules/unicase/ulc-casecmp: New file.
40799
40800         Tests for module 'unicase/u32-is-cased'.
40801         * modules/unicase/u32-is-cased-tests: New file.
40802         * tests/unicase/test-u32-is-cased.c: New file.
40803
40804         Tests for module 'unicase/u16-is-cased'.
40805         * modules/unicase/u16-is-cased-tests: New file.
40806         * tests/unicase/test-u16-is-cased.c: New file.
40807
40808         Tests for module 'unicase/u8-is-cased'.
40809         * modules/unicase/u8-is-cased-tests: New file.
40810         * tests/unicase/test-u8-is-cased.c: New file.
40811         * tests/unicase/test-is-cased.h: New file.
40812
40813         New module 'unicase/u32-is-cased'.
40814         * lib/unicase/u32-is-cased.c: New file.
40815         * modules/unicase/u32-is-cased: New file.
40816
40817         New module 'unicase/u16-is-cased'.
40818         * lib/unicase/u16-is-cased.c: New file.
40819         * modules/unicase/u16-is-cased: New file.
40820
40821         New module 'unicase/u8-is-cased'.
40822         * lib/unicase/u8-is-cased.c: New file.
40823         * lib/unicase/u-is-cased.h: New file.
40824         * modules/unicase/u8-is-cased: New file.
40825
40826         Tests for module 'unicase/u32-is-casefolded'.
40827         * modules/unicase/u32-is-casefolded-tests: New file.
40828         * tests/unicase/test-u32-is-casefolded.c: New file.
40829
40830         Tests for module 'unicase/u16-is-casefolded'.
40831         * modules/unicase/u16-is-casefolded-tests: New file.
40832         * tests/unicase/test-u16-is-casefolded.c: New file.
40833
40834         Tests for module 'unicase/u8-is-casefolded'.
40835         * modules/unicase/u8-is-casefolded-tests: New file.
40836         * tests/unicase/test-u8-is-casefolded.c: New file.
40837         * tests/unicase/test-is-casefolded.h: New file.
40838
40839         New module 'unicase/u32-is-casefolded'.
40840         * lib/unicase/u32-is-casefolded.c: New file.
40841         * modules/unicase/u32-is-casefolded: New file.
40842
40843         New module 'unicase/u16-is-casefolded'.
40844         * lib/unicase/u16-is-casefolded.c: New file.
40845         * modules/unicase/u16-is-casefolded: New file.
40846
40847         New module 'unicase/u8-is-casefolded'.
40848         * lib/unicase/u8-is-casefolded.c: New file.
40849         * modules/unicase/u8-is-casefolded: New file.
40850
40851         Tests for module 'unicase/u32-is-titlecase'.
40852         * modules/unicase/u32-is-titlecase-tests: New file.
40853         * tests/unicase/test-u32-is-titlecase.c: New file.
40854
40855         Tests for module 'unicase/u16-is-titlecase'.
40856         * modules/unicase/u16-is-titlecase-tests: New file.
40857         * tests/unicase/test-u16-is-titlecase.c: New file.
40858
40859         Tests for module 'unicase/u8-is-titlecase'.
40860         * modules/unicase/u8-is-titlecase-tests: New file.
40861         * tests/unicase/test-u8-is-titlecase.c: New file.
40862         * tests/unicase/test-is-titlecase.h: New file.
40863
40864         New module 'unicase/u32-is-titlecase'.
40865         * lib/unicase/u32-is-titlecase.c: New file.
40866         * modules/unicase/u32-is-titlecase: New file.
40867
40868         New module 'unicase/u16-is-titlecase'.
40869         * lib/unicase/u16-is-titlecase.c: New file.
40870         * modules/unicase/u16-is-titlecase: New file.
40871
40872         New module 'unicase/u8-is-titlecase'.
40873         * lib/unicase/u8-is-titlecase.c: New file.
40874         * modules/unicase/u8-is-titlecase: New file.
40875
40876         Tests for module 'unicase/u32-is-lowercase'.
40877         * modules/unicase/u32-is-lowercase-tests: New file.
40878         * tests/unicase/test-u32-is-lowercase.c: New file.
40879
40880         Tests for module 'unicase/u16-is-lowercase'.
40881         * modules/unicase/u16-is-lowercase-tests: New file.
40882         * tests/unicase/test-u16-is-lowercase.c: New file.
40883
40884         Tests for module 'unicase/u8-is-lowercase'.
40885         * modules/unicase/u8-is-lowercase-tests: New file.
40886         * tests/unicase/test-u8-is-lowercase.c: New file.
40887         * tests/unicase/test-is-lowercase.h: New file.
40888
40889         New module 'unicase/u32-is-lowercase'.
40890         * lib/unicase/u32-is-lowercase.c: New file.
40891         * modules/unicase/u32-is-lowercase: New file.
40892
40893         New module 'unicase/u16-is-lowercase'.
40894         * lib/unicase/u16-is-lowercase.c: New file.
40895         * modules/unicase/u16-is-lowercase: New file.
40896
40897         New module 'unicase/u8-is-lowercase'.
40898         * lib/unicase/u8-is-lowercase.c: New file.
40899         * modules/unicase/u8-is-lowercase: New file.
40900
40901         Tests for module 'unicase/u32-is-uppercase'.
40902         * modules/unicase/u32-is-uppercase-tests: New file.
40903         * tests/unicase/test-u32-is-uppercase.c: New file.
40904
40905         Tests for module 'unicase/u16-is-uppercase'.
40906         * modules/unicase/u16-is-uppercase-tests: New file.
40907         * tests/unicase/test-u16-is-uppercase.c: New file.
40908
40909         Tests for module 'unicase/u8-is-uppercase'.
40910         * modules/unicase/u8-is-uppercase-tests: New file.
40911         * tests/unicase/test-u8-is-uppercase.c: New file.
40912         * tests/unicase/test-is-uppercase.h: New file.
40913
40914         New module 'unicase/u32-is-uppercase'.
40915         * lib/unicase/u32-is-uppercase.c: New file.
40916         * modules/unicase/u32-is-uppercase: New file.
40917
40918         New module 'unicase/u16-is-uppercase'.
40919         * lib/unicase/u16-is-uppercase.c: New file.
40920         * modules/unicase/u16-is-uppercase: New file.
40921
40922         New module 'unicase/u8-is-uppercase'.
40923         * lib/unicase/u8-is-uppercase.c: New file.
40924         * modules/unicase/u8-is-uppercase: New file.
40925
40926         New module 'unicase/u32-is-invariant'.
40927         * lib/unicase/u32-is-invariant.c: New file.
40928         * modules/unicase/u32-is-invariant: New file.
40929
40930         New module 'unicase/u16-is-invariant'.
40931         * lib/unicase/u16-is-invariant.c: New file.
40932         * modules/unicase/u16-is-invariant: New file.
40933
40934         New module 'unicase/u8-is-invariant'.
40935         * lib/unicase/u8-is-invariant.c: New file.
40936         * lib/unicase/invariant.h: New file.
40937         * lib/unicase/u-is-invariant.h: New file.
40938         * modules/unicase/u8-is-invariant: New file.
40939
40940         Tests for module 'unicase/u32-casecoll'.
40941         * modules/unicase/u32-casecoll-tests: New file.
40942         * tests/unicase/test-u32-casecoll.c: New file.
40943
40944         Tests for module 'unicase/u16-casecoll'.
40945         * modules/unicase/u16-casecoll-tests: New file.
40946         * tests/unicase/test-u16-casecoll.c: New file.
40947
40948         Tests for module 'unicase/u8-casecoll'.
40949         * modules/unicase/u8-casecoll-tests: New file.
40950         * tests/unicase/test-u8-casecoll.c: New file.
40951
40952         New module 'unicase/u32-casecoll'.
40953         * lib/unicase/u32-casecoll.c: New file.
40954         * modules/unicase/u32-casecoll: New file.
40955
40956         New module 'unicase/u16-casecoll'.
40957         * lib/unicase/u16-casecoll.c: New file.
40958         * modules/unicase/u16-casecoll: New file.
40959
40960         New module 'unicase/u8-casecoll'.
40961         * lib/unicase/u8-casecoll.c: New file.
40962         * lib/unicase/u-casecoll.h: New file.
40963         * modules/unicase/u8-casecoll: New file.
40964
40965         New module 'unicase/u32-casexfrm'.
40966         * lib/unicase/u32-casexfrm.c: New file.
40967         * modules/unicase/u32-casexfrm: New file.
40968
40969         New module 'unicase/u16-casexfrm'.
40970         * lib/unicase/u16-casexfrm.c: New file.
40971         * modules/unicase/u16-casexfrm: New file.
40972
40973         New module 'unicase/u8-casexfrm'.
40974         * lib/unicase/u8-casexfrm.c: New file.
40975         * lib/unicase/u-casexfrm.h: New file.
40976         * modules/unicase/u8-casexfrm: New file.
40977
40978         Tests for module 'unicase/u32-casecmp'.
40979         * modules/unicase/u32-casecmp-tests: New file.
40980         * tests/unicase/test-u32-casecmp.c: New file.
40981
40982         Tests for module 'unicase/u16-casecmp'.
40983         * modules/unicase/u16-casecmp-tests: New file.
40984         * tests/unicase/test-u16-casecmp.c: New file.
40985
40986         Tests for module 'unicase/u8-casecmp'.
40987         * modules/unicase/u8-casecmp-tests: New file.
40988         * tests/unicase/test-u8-casecmp.c: New file.
40989         * tests/unicase/test-casecmp.h: New file.
40990
40991         New module 'unicase/u32-casecmp'.
40992         * lib/unicase/u32-casecmp.c: New file.
40993         * modules/unicase/u32-casecmp: New file.
40994
40995         New module 'unicase/u16-casecmp'.
40996         * lib/unicase/u16-casecmp.c: New file.
40997         * modules/unicase/u16-casecmp: New file.
40998
40999         New module 'unicase/u8-casecmp'.
41000         * lib/unicase/u8-casecmp.c: New file.
41001         * lib/unicase/u-casecmp.h: New file.
41002         * modules/unicase/u8-casecmp: New file.
41003
41004         Tests for module 'unicase/u32-casefold'.
41005         * modules/unicase/u32-casefold-tests: New file.
41006         * tests/unicase/test-u32-casefold.c: New file.
41007
41008         Tests for module 'unicase/u16-casefold'.
41009         * modules/unicase/u16-casefold-tests: New file.
41010         * tests/unicase/test-u16-casefold.c: New file.
41011
41012         Tests for module 'unicase/u8-casefold'.
41013         * modules/unicase/u8-casefold-tests: New file.
41014         * tests/unicase/test-u8-casefold.c: New file.
41015
41016         New module 'unicase/u32-casefold'.
41017         * lib/unicase/u32-casefold.c: New file.
41018         * modules/unicase/u32-casefold: New file.
41019
41020         New module 'unicase/u16-casefold'.
41021         * lib/unicase/u16-casefold.c: New file.
41022         * modules/unicase/u16-casefold: New file.
41023
41024         New module 'unicase/u8-casefold'.
41025         * lib/unicase/u8-casefold.c: New file.
41026         * lib/unicase/u-casefold.h: New file.
41027         * modules/unicase/u8-casefold: New file.
41028
41029         New module 'unicase/tocasefold'.
41030         * lib/unicase/casefold.h: New file.
41031         * lib/unicase/tocasefold.c: New file.
41032         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41033         * modules/unicase/tocasefold: New file.
41034
41035         Tests for module 'unicase/u32-totitle'.
41036         * modules/unicase/u32-totitle-tests: New file.
41037         * tests/unicase/test-u32-totitle.c: New file.
41038
41039         Tests for module 'unicase/u16-totitle'.
41040         * modules/unicase/u16-totitle-tests: New file.
41041         * tests/unicase/test-u16-totitle.c: New file.
41042
41043         Tests for module 'unicase/u8-totitle'.
41044         * modules/unicase/u8-totitle-tests: New file.
41045         * tests/unicase/test-u8-totitle.c: New file.
41046
41047         New module 'unicase/u32-totitle'.
41048         * lib/unicase/u32-totitle.c: New file.
41049         * modules/unicase/u32-totitle: New file.
41050
41051         New module 'unicase/u16-totitle'.
41052         * lib/unicase/u16-totitle.c: New file.
41053         * modules/unicase/u16-totitle: New file.
41054
41055         New module 'unicase/u8-totitle'.
41056         * lib/unicase/u8-totitle.c: New file.
41057         * lib/unicase/u-totitle.h: New file.
41058         * modules/unicase/u8-totitle: New file.
41059
41060         Tests for module 'unicase/u32-tolower'.
41061         * modules/unicase/u32-tolower-tests: New file.
41062         * tests/unicase/test-u32-tolower.c: New file.
41063
41064         Tests for module 'unicase/u16-tolower'.
41065         * modules/unicase/u16-tolower-tests: New file.
41066         * tests/unicase/test-u16-tolower.c: New file.
41067
41068         Tests for module 'unicase/u8-tolower'.
41069         * modules/unicase/u8-tolower-tests: New file.
41070         * tests/unicase/test-u8-tolower.c: New file.
41071
41072         New module 'unicase/u32-tolower'.
41073         * lib/unicase/u32-tolower.c: New file.
41074         * modules/unicase/u32-tolower: New file.
41075
41076         New module 'unicase/u16-tolower'.
41077         * lib/unicase/u16-tolower.c: New file.
41078         * modules/unicase/u16-tolower: New file.
41079
41080         New module 'unicase/u8-tolower'.
41081         * lib/unicase/u8-tolower.c: New file.
41082         * modules/unicase/u8-tolower: New file.
41083
41084         Tests for module 'unicase/u32-toupper'.
41085         * modules/unicase/u32-toupper-tests: New file.
41086         * tests/unicase/test-u32-toupper.c: New file.
41087
41088         Tests for module 'unicase/u16-toupper'.
41089         * modules/unicase/u16-toupper-tests: New file.
41090         * tests/unicase/test-u16-toupper.c: New file.
41091
41092         Tests for module 'unicase/u8-toupper'.
41093         * modules/unicase/u8-toupper-tests: New file.
41094         * tests/unicase/test-u8-toupper.c: New file.
41095
41096         New module 'unicase/u32-toupper'.
41097         * lib/unicase/u32-toupper.c: New file.
41098         * modules/unicase/u32-toupper: New file.
41099
41100         New module 'unicase/u16-toupper'.
41101         * lib/unicase/u16-toupper.c: New file.
41102         * modules/unicase/u16-toupper: New file.
41103
41104         New module 'unicase/u8-toupper'.
41105         * lib/unicase/u8-toupper.c: New file.
41106         * modules/unicase/u8-toupper: New file.
41107
41108         New module 'unicase/u32-casemap'.
41109         * lib/unicase/u32-casemap.c: New file.
41110         * modules/unicase/u32-casemap: New file.
41111
41112         New module 'unicase/u16-casemap'.
41113         * lib/unicase/u16-casemap.c: New file.
41114         * modules/unicase/u16-casemap: New file.
41115
41116         New module 'unicase/u8-casemap'.
41117         * lib/unicase/unicasemap.h: New file.
41118         * lib/unicase/u8-casemap.c: New file.
41119         * lib/unicase/u-casemap.h: New file.
41120         * modules/unicase/u8-casemap: New file.
41121
41122         New module 'unicase/special-casing'.
41123         * lib/unicase/special-casing.h: New file.
41124         * lib/unicase/special-casing.c: New file.
41125         * lib/unicase/special-casing-table.gperf: New file, generated by
41126         gen-uni-tables.c.
41127         * modules/unicase/special-casing: New file.
41128
41129         Tests for module 'unicase/locale-language'.
41130         * modules/unicase/locale-language-tests: New file.
41131         * tests/unicase/test-locale-language.sh: New file.
41132         * tests/unicase/test-locale-language.c: New file.
41133
41134         New module 'unicase/locale-language'.
41135         * lib/unicase/locale-language.c: New file.
41136         * lib/unicase/locale-languages.gperf: New file.
41137         * modules/unicase/locale-language: New file.
41138
41139         Generate more tables for case conversion and case folding.
41140         * lib/gen-uni-tables.c (SCC_*): New enum items.
41141         (struct special_casing_rule): New type.
41142         (casing_rules, num_casing_rules, allocated_casing_rules): New
41143         variables.
41144         (add_casing_rule, fill_casing_rules): New functions.
41145         (struct casefold_rule): New type.
41146         (casefolding_rules, num_casefolding_rules,
41147         allocated_casefolding_rules): New variables.
41148         (fill_casefolding_rules): New function.
41149         (unicode_casefold): New variable.
41150         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41151         sort_casing_rules, output_casing_rules): New functions.
41152         (main): Accept to more arguments: SpecialCasing.txt and
41153         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41154         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41155         Output mapping for casefolding.
41156
41157         * lib/unicase.h: Include stdbool.h, uninorm.h.
41158         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41159         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41160         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41161         arguments.
41162         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41163         resultp arguments.
41164         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41165         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41166         resultp arguments.
41167         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41168         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41169         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41170         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41171         declarations.
41172         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41173
41174 2009-03-08  Bruno Haible  <bruno@clisp.org>
41175
41176         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41177         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41178         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41179         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41180
41181 2009-03-07  Bruno Haible  <bruno@clisp.org>
41182
41183         Adjust u*_normcmp, u*_normcoll API.
41184         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41185         u16_normcoll, u32_normcoll): Change failure conventions.
41186         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41187         errno and return -1.
41188         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41189
41190 2009-03-07  Bruno Haible  <bruno@clisp.org>
41191
41192         Tests for module 'uninorm/u32-normcoll'.
41193         * modules/uninorm/u32-normcoll-tests: New file.
41194         * tests/uninorm/test-u32-normcoll.c: New file.
41195
41196         Tests for module 'uninorm/u16-normcoll'.
41197         * modules/uninorm/u16-normcoll-tests: New file.
41198         * tests/uninorm/test-u16-normcoll.c: New file.
41199
41200         Tests for module 'uninorm/u8-normcoll'.
41201         * modules/uninorm/u8-normcoll-tests: New file.
41202         * tests/uninorm/test-u8-normcoll.c: New file.
41203
41204 2009-03-07  Bruno Haible  <bruno@clisp.org>
41205
41206         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41207         tests/uninorm/test-u32-normcmp.c.
41208         * tests/uninorm/test-u32-normcmp.c: Include it.
41209         (test_nonascii): New function, extracted from main. Add some more
41210         tests.
41211         (main): Invoke test_ascii and test_nonascii.
41212         * modules/uninorm/u32-normcmp-tests (Files): Add
41213         tests/uninorm/test-u32-normcmp.h.
41214         (Depends-on): Remove uninorm/u32-normcmp.
41215
41216         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41217         tests/uninorm/test-u16-normcmp.c.
41218         * tests/uninorm/test-u16-normcmp.c: Include it.
41219         (test_nonascii): New function, extracted from main. Add some more
41220         tests.
41221         (main): Invoke test_ascii and test_nonascii.
41222         * modules/uninorm/u16-normcmp-tests (Files): Add
41223         tests/uninorm/test-u16-normcmp.h.
41224         (Depends-on): Remove uninorm/u16-normcmp.
41225
41226         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41227         tests/uninorm/test-u8-normcmp.c.
41228         * tests/uninorm/test-u8-normcmp.c: Include it.
41229         (test_nonascii): New function, extracted from main. Add some more
41230         tests.
41231         (main): Invoke test_ascii and test_nonascii.
41232         * modules/uninorm/u8-normcmp-tests (Files): Add
41233         tests/uninorm/test-u8-normcmp.h.
41234         (Depends-on): Remove uninorm/u8-normcmp.
41235
41236 2009-03-07  Bruno Haible  <bruno@clisp.org>
41237
41238         New module 'uninorm/u32-normcoll'.
41239         * lib/uninorm/u32-normcoll.c: New file.
41240         * modules/uninorm/u32-normcoll: New file.
41241
41242         New module 'uninorm/u16-normcoll'.
41243         * lib/uninorm/u16-normcoll.c: New file.
41244         * modules/uninorm/u16-normcoll: New file.
41245
41246         New module 'uninorm/u8-normcoll'.
41247         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41248         declarations.
41249         * lib/uninorm/u8-normcoll.c: New file.
41250         * lib/uninorm/u-normcoll.h: New file.
41251         * modules/uninorm/u8-normcoll: New file.
41252
41253         New module 'uninorm/u32-normxfrm'.
41254         * lib/uninorm/u32-normxfrm.c: New file.
41255         * modules/uninorm/u32-normxfrm: New file.
41256
41257         New module 'uninorm/u16-normxfrm'.
41258         * lib/uninorm/u16-normxfrm.c: New file.
41259         * modules/uninorm/u16-normxfrm: New file.
41260
41261         New module 'uninorm/u8-normxfrm'.
41262         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41263         declarations.
41264         * lib/uninorm/u8-normxfrm.c: New file.
41265         * lib/uninorm/u-normxfrm.h: New file.
41266         * modules/uninorm/u8-normxfrm: New file.
41267
41268 2009-03-07  Bruno Haible  <bruno@clisp.org>
41269
41270         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41271         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41272         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41273
41274 2009-03-07  Bruno Haible  <bruno@clisp.org>
41275
41276         New module 'memxfrm'.
41277         * lib/memxfrm.h: New file.
41278         * lib/memxfrm.c: New file.
41279         * modules/memxfrm: New file.
41280
41281 2009-03-07  Bruno Haible  <bruno@clisp.org>
41282
41283         New module 'memcmp2'.
41284         * lib/memcmp2.h: New file.
41285         * lib/memcmp2.c: New file.
41286         * modules/memcmp2: New file.
41287
41288 2009-03-07  Bruno Haible  <bruno@clisp.org>
41289
41290         Tests for module 'uninorm/decomposing-form'.
41291         * modules/uninorm/decomposing-form-tests: New file.
41292         * tests/uninorm/test-decomposing-form.c: New file.
41293
41294         New module 'uninorm/decomposing-form'.
41295         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41296         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41297         Add 'decomposing_variant' field.
41298         * lib/uninorm/decomposing-form.c: New file.
41299         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41300         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41301         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41302         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41303         * modules/uninorm/decomposing-form: New file.
41304         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41305         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41306
41307 2009-03-07  Bruno Haible  <bruno@clisp.org>
41308
41309         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41310         strings.
41311
41312 2009-03-06  Bruno Haible  <bruno@clisp.org>
41313
41314         Tests for module 'uninorm/u32-normcmp'.
41315         * tests/uninorm/test-u32-normcmp.c: New file.
41316         * modules/uninorm/u32-normcmp-tests: New file.
41317
41318         Tests for module 'uninorm/u16-normcmp'.
41319         * tests/uninorm/test-u16-normcmp.c: New file.
41320         * modules/uninorm/u16-normcmp-tests: New file.
41321
41322         Tests for module 'uninorm/u8-normcmp'.
41323         * tests/uninorm/test-u8-normcmp.c: New file.
41324         * modules/uninorm/u8-normcmp-tests: New file.
41325
41326         New module 'uninorm/u32-normcmp'.
41327         * lib/uninorm/u32-normcmp.c: New file.
41328         * modules/uninorm/u32-normcmp: New file.
41329
41330         New module 'uninorm/u16-normcmp'.
41331         * lib/uninorm/u16-normcmp.c: New file.
41332         * modules/uninorm/u16-normcmp: New file.
41333
41334         New module 'uninorm/u8-normcmp'.
41335         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41336         declarations.
41337         * lib/uninorm/u8-normcmp.c: New file.
41338         * lib/uninorm/u-normcmp.h: New file.
41339         * modules/uninorm/u8-normcmp: New file.
41340
41341 2009-03-06  Bruno Haible  <bruno@clisp.org>
41342
41343         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41344         Reported by Eric Blake.
41345
41346 2009-03-06  Eric Blake  <ebb9@byu.net>
41347             Bruno Haible  <bruno@clisp.org>
41348
41349         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41350         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41351         condition.
41352         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41353         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41354         condition.
41355         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41356
41357 2009-03-06  Eric Blake  <ebb9@byu.net>
41358
41359         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41360         to avoid compiler warnings.
41361         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41362
41363 2009-03-05  Bruno Haible  <bruno@clisp.org>
41364
41365         * tests/test-ftell.c (main): Disable test beyond end of file on
41366         FreeMiNT.
41367         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41368
41369 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41370
41371         * lib/filevercmp.c: Move hidden files up in ordering.
41372         * tests/test-filevercmp.c: Add tests for hidden files.
41373
41374 2009-03-04  Bruno Haible  <bruno@clisp.org>
41375
41376         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41377         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41378         AM_CFLAGS.
41379         Reported by Simon Josefsson.
41380
41381 2009-03-03  Bruno Haible  <bruno@clisp.org>
41382
41383         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41384         Reported by Simon Josefsson.
41385
41386         * doc/ld-version-script.texi: Update node reference.
41387
41388 2009-03-03  Bruno Haible  <bruno@clisp.org>
41389
41390         * modules/visibility (License): Change to 'unlimited'.
41391         Suggested by Simon Josefsson.
41392
41393 2009-03-03  Jim Meyering  <meyering@redhat.com>
41394
41395         unlinkdir: cannot_unlink_dir may modify process state
41396         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41397         it's neither thread-safe nor appropriate for use in a library.
41398
41399 2009-03-03  Eric Blake  <ebb9@byu.net>
41400
41401         test-closein: silence test under Darwin
41402         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41403         care if it dies from EPIPE or EBADF.
41404
41405 2009-03-03  Bruno Haible  <bruno@clisp.org>
41406
41407         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41408         earlier.
41409         * doc/visibility.texi: Fix @node and @section.
41410
41411 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41412
41413         * doc/gnulib.texi: Link to sections for ld version script and
41414         visibility.
41415         * doc/visibility.texi: Add @node and @section.
41416         * modules/ld-version-script: New module.
41417         * m4/ld-version-script.m4: New file.
41418         * doc/ld-version-script.texi: New file.
41419
41420 2009-03-02  David Lutterkort  <lutter@redhat.com>
41421
41422         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41424
41425 2009-03-02  Bruno Haible  <bruno@clisp.org>
41426
41427         * doc/visibility.texi: Mention libtool's -export-symbols option.
41428
41429 2009-03-02  Jim Meyering  <meyering@redhat.com>
41430
41431         announce-gen: new option: --no-print-checksums
41432         * build-aux/announce-gen (usage): Describe it.
41433         (print_checksums): Print a newline here, not in the [*] footnote.
41434         (main): Honor it.
41435
41436 2009-03-01  Bruno Haible  <bruno@clisp.org>
41437
41438         Use socklen_t in the native Windows replacements prototypes.
41439         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41440         instead of 'int'.
41441         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41442         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41443         * modules/getsockopt (Depends-on): Add socklen.
41444         * modules/setsockopt (Depends-on): Add socklen.
41445
41446 2009-03-01  Bruno Haible  <bruno@clisp.org>
41447
41448         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41449         least 4.2.
41450
41451 2009-03-01  Eric Blake  <ebb9@byu.net>
41452             Bruno Haible  <bruno@clisp.org>
41453
41454         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41455         error messages.
41456         * lib/wait-process.c (wait_subprocess): Omit error message about
41457         deadly signal sent to the child of termsigp != NULL.
41458
41459 2009-03-01  Eric Blake  <ebb9@byu.net>
41460
41461         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41462
41463 2009-03-01  Bruno Haible  <bruno@clisp.org>
41464
41465         Avoid a gcc warning.
41466         * tests/test-sched.c (b): Make global.
41467         Reported by Eric Blake.
41468
41469 2009-01-19  Martin Lambers  <marlam@marlam.de>
41470
41471         Provide POSIX semantics for socket timeout options on W32.
41472         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41473         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41474         * modules/setsockopt: Depend on sys_time module for struct timeval.
41475         * modules/getsockopt: Depend on sys_time module for struct timeval.
41476
41477 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41478
41479         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41480         __USE_GNU, for consistency with netdb.in.h.
41481         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41482
41483 2009-03-01  Bruno Haible  <bruno@clisp.org>
41484
41485         More support for FreeMiNT.
41486         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41487         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41488
41489 2009-03-01  Bruno Haible  <bruno@clisp.org>
41490
41491         More support for FreeMiNT.
41492         * lib/fpurge.c (fpurge): Correct last commit.
41493         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41494
41495 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41496
41497         Fix unportable awk script in vc-list-files.
41498         * build-aux/vc-list-files: In the replacement awk script, use
41499         substr with a second argument of 1, not zero.
41500         Report by Simon Josefsson.
41501
41502 2009-02-28  Bruno Haible  <bruno@clisp.org>
41503
41504         More support for FreeMiNT.
41505         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41506         to FreeMiNT today.
41507         * lib/fwriting.c (fwriting): Likewise.
41508         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41509
41510 2009-02-28  Bruno Haible  <bruno@clisp.org>
41511
41512         * tests/test-freadseek.c (main): Disable test beyond end of file on
41513         FreeMiNT.
41514         * tests/test-ftello.c (main): Likewise.
41515         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41516
41517 2009-02-28  Bruno Haible  <bruno@clisp.org>
41518
41519         Add tentative support for FreeMiNT.
41520         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41521         * lib/fpurge.c (fpurge): Likewise.
41522         * lib/freadable.c (freadable): Likewise.
41523         * lib/freading.c (freading): Likewise.
41524         * lib/freadptr.c (freadptr): Likewise.
41525         * lib/freadseek.c (freadptrinc): Likewise.
41526         * lib/fseeko.c (rpl_fseeko): Likewise.
41527         * lib/fseterr.c (fseterr): Likewise.
41528         * lib/fwritable.c (fwritable): Likewise.
41529         * lib/fwriting.c (fwriting): Likewise.
41530         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41531         Hourihane.
41532         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41533
41534 2009-02-28  Bruno Haible  <bruno@clisp.org>
41535
41536         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41537         SIGCHLD.
41538         Reported by Jim Meyering.
41539
41540 2009-02-28  Bruno Haible  <bruno@clisp.org>
41541
41542         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41543         Mention the results of these tests on various platforms.
41544         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41545         order.
41546         * doc/posix-functions/printf.texi: Likewise.
41547         * doc/posix-functions/snprintf.texi: Likewise.
41548         * doc/posix-functions/sprintf.texi: Likewise.
41549         * doc/posix-functions/vfprintf.texi: Likewise.
41550         * doc/posix-functions/vprintf.texi: Likewise.
41551         * doc/posix-functions/vsnprintf.texi: Likewise.
41552         * doc/posix-functions/vsprintf.texi: Likewise.
41553         * doc/glibc-functions/obstack_printf.texi: Likewise.
41554         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41555
41556 2009-02-28  Bruno Haible  <bruno@clisp.org>
41557
41558         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41559         Reported by Loïc Minier <lool@dooz.org>.
41560
41561 2009-02-27  Bruno Haible  <bruno@clisp.org>
41562
41563         * gnulib-tool (func_import): Make the sed expression used to create the
41564         sed script for updating the .gitignore file POSIX compliant.
41565         Reported by Eric Blake.
41566
41567 2009-02-27  Bruno Haible  <bruno@clisp.org>
41568
41569         * gnulib-tool (sed): Don't alias as "sed --posix".
41570         Reported by Eric Blake.
41571
41572 2009-02-27  Bruno Haible  <bruno@clisp.org>
41573
41574         Avoid test link errors.
41575         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41576         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41577         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41578         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41580
41581 2009-02-27  Bruno Haible  <bruno@clisp.org>
41582
41583         Avoid spurious "(cached)" in configure output.
41584         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41585         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41586         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41587         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41588         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41589         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41590         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41591         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41592         Reported by Eric Blake.
41593
41594 2009-02-27  Eric Blake  <ebb9@byu.net>
41595
41596         printf: fix regression in previous patch
41597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41598
41599 2009-02-27  Bruno Haible  <bruno@clisp.org>
41600
41601         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41602         value.
41603         * lib/stdint.in.h: Likewise.
41604         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41605
41606 2009-02-27  Eric Blake  <ebb9@byu.net>
41607
41608         doc: mention more functions added in cygwin 1.7.0
41609         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41610         addition.
41611         * doc/posix-functions/open_wmemstream.texi: Likewise.
41612         * doc/posix-functions/wcsnlen.texi: Likewise.
41613         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41614         * doc/posix-functions/wcstod.texi: Likewise.
41615         * doc/posix-functions/wcstof.texi: Likewise.
41616         * doc/posix-functions/wcstoimax.texi: Likewise.
41617         * doc/posix-functions/wcstok.texi: Likewise.
41618         * doc/posix-functions/wcstoumax.texi: Likewise.
41619
41620         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41622         * doc/posix-functions/fprintf.texi: Update.
41623         * doc/posix-functions/printf.texi: Update.
41624         * doc/posix-functions/snprintf.texi: Update.
41625         * doc/posix-functions/sprintf.texi: Update.
41626         * doc/posix-functions/vfprintf.texi: Update.
41627         * doc/posix-functions/vprintf.texi: Update.
41628         * doc/posix-functions/vsnprintf.texi: Update.
41629         * doc/posix-functions/vsprintf.texi: Update.
41630         * doc/glibc-functions/obstack_printf.texi: Update.
41631         * doc/glibc-functions/obstack_vprintf.texi: Update.
41632
41633 2009-02-26  Eric Blake  <ebb9@byu.net>
41634
41635         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41636         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41637         compilation bug by using runtime conversion.
41638         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41639         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41640         * modules/ceill-tests (Files): Use nan.h.
41641         * modules/floorl-tests (Files): Likewise.
41642         * modules/frexpl-tests (Files): Likewise.
41643         * modules/isnanl-tests (Files): Likewise.
41644         * modules/ldexpl-tests (Files): Likewise.
41645         * modules/roundl-tests (Files): Likewise.
41646         * modules/truncl-tests (Files): Likewise.
41647         * tests/test-ceill.c (main): Use a working NaN.
41648         * tests/test-floorl.c (main): Likewise.
41649         * tests/test-frexpl.c (main): Likewise.
41650         * tests/test-isnan.c (test_long_double): Likewise.
41651         * tests/test-isnanl.h (main): Likewise.
41652         * tests/test-ldexpl.h (main): Likewise.
41653         * tests/test-roundl.h (main): Likewise.
41654         * tests/test-truncl.h (main): Likewise.
41655         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41656
41657 2009-02-26  Eric Blake  <ebb9@byu.net>
41658             Bruno Haible  <bruno@clisp.org>
41659
41660         Work around a *printf bug with %ls on Solaris.
41661         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41662         precision is specified, sprintf stops converting the wide string
41663         argument when the number of bytes that have been produced by this
41664         conversion equals or exceeds the precision.
41665         * doc/posix-functions/fprintf.texi: Update.
41666         * doc/posix-functions/printf.texi: Update.
41667         * doc/posix-functions/snprintf.texi: Update.
41668         * doc/posix-functions/sprintf.texi: Update.
41669         * doc/posix-functions/vfprintf.texi: Update.
41670         * doc/posix-functions/vprintf.texi: Update.
41671         * doc/posix-functions/vsnprintf.texi: Update.
41672         * doc/posix-functions/vsprintf.texi: Update.
41673         * doc/glibc-functions/obstack_printf.texi: Update.
41674         * doc/glibc-functions/obstack_vprintf.texi: Update.
41675
41676 2009-02-26  Eric Blake  <ebb9@byu.net>
41677
41678         stdlib: favor compiler check of random.h
41679         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41680         to avoid an ObjC random.h installed by Swarm.
41681
41682 2009-02-26  Bruno Haible  <bruno@clisp.org>
41683
41684         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41685         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41686         Reported by Gary V. Vaughan <gary@gnu.org>.
41687
41688 2009-02-26  Bruno Haible  <bruno@clisp.org>
41689
41690         Fix *printf behaviour regarding the %ls directive.
41691         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41692         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41693         NEED_PRINTF_DIRECTIVE_LS.
41694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41695         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41697         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41698         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41699         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41700         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41701         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41703         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41704         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41705         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41706         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41708         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41709         * doc/posix-functions/fprintf.texi: Update.
41710         * doc/posix-functions/printf.texi: Update.
41711         * doc/posix-functions/snprintf.texi: Update.
41712         * doc/posix-functions/sprintf.texi: Update.
41713         * doc/posix-functions/vfprintf.texi: Update.
41714         * doc/posix-functions/vprintf.texi: Update.
41715         * doc/posix-functions/vsnprintf.texi: Update.
41716         * doc/posix-functions/vsprintf.texi: Update.
41717         * doc/glibc-functions/obstack_printf.texi: Update.
41718         * doc/glibc-functions/obstack_vprintf.texi: Update.
41719         Reported by Eric Blake.
41720
41721 2009-02-25  Bruno Haible  <bruno@clisp.org>
41722
41723         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41724         with known value.
41725         Reported by Gary V. Vaughan <gary@gnu.org>.
41726
41727 2009-02-25  Bruno Haible  <bruno@clisp.org>
41728
41729         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41730         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41731         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41732         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41733         Reported by Gary V. Vaughan <gary@gnu.org>.
41734
41735 2009-02-25  Bruno Haible  <bruno@clisp.org>
41736
41737         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41738         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41739         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41740         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41741         Reported by Gary V. Vaughan <gary@gnu.org>.
41742
41743 2009-02-25  Eric Blake  <ebb9@byu.net>
41744
41745         tests: skip fseek/ftell tests if ungetc is broken
41746         * m4/ungetc.m4: New file.
41747         * modules/fseek-tests: Split test, so ungetc dependency is
41748         separate from rest of test.
41749         * modules/fseeko-tests: Likewise.
41750         * modules/ftell-tests: Likewise.
41751         * modules/ftello-tests: Likewise.
41752         * tests/test-fseek.c (main): Isolate ungetc dependency.
41753         * tests/test-fseeko.c (main): Likewise.
41754         * tests/test-ftell.c (main): Likewise.
41755         * tests/test-ftello.c (main): Likewise.
41756         * tests/test-fseek2.sh: New file.
41757         * tests/test-fseeko2.sh: Likewise.
41758         * tests/test-ftell2.sh: Likewise.
41759         * tests/test-ftello2.sh: Likewise.
41760
41761 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41762
41763         test-getaddrinfo: fix usage of skip return code 77
41764         * tests/test-gettaddrinfo.c: Return skip code 77 only
41765         for first occurance of skip (4x77 is not 77)
41766
41767 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41768
41769         strtod: avoid C99 decl-after-statement
41770         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41771
41772 2009-02-24  Eric Blake  <ebb9@byu.net>
41773
41774         strtod: detect HP-UX 11.31 bug
41775         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41776         Reported by Gary V. Vaughan.
41777
41778 2009-02-23  Bruno Haible  <bruno@clisp.org>
41779
41780         Fix invalid read past end of memory block.
41781         * lib/vasnprintf.c (DCHAR_SET): Define.
41782         (local_wcslen): Define only when needed.
41783         (local_strnlen, local_wcsnlen): New functions.
41784         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41785         directives that involve a conversion ourselves.
41786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41787         wcsnlen, mbrtowc, wcrtomb.
41788         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41789         * tests/test-vasprintf-posix.c (test_function): Likewise.
41790         * tests/test-snprintf-posix.h (test_function): Likewise.
41791         * tests/test-sprintf-posix.h (test_function): Likewise.
41792         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41793
41794 2009-02-22  Bruno Haible  <bruno@clisp.org>
41795
41796         Implement new clarified decomposition of Hangul syllables.
41797         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41798         of type LTV, return only a pairwise decomposition.
41799         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41800         Likewise.
41801         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41802         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41803         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41804
41805 2009-02-22  Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41808         zero-length results and shrink excess allocated memory.
41809         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41810         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41811         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41812         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41813         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41814         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41815         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41816         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41817         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41818         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41819         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41820         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41821
41822 2009-02-21  Bruno Haible  <bruno@clisp.org>
41823
41824         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41825         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41826         spaces after a period. Put a space between a macro name and its
41827         argument list. Trivial rewordings.
41828         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41829         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41830         (main): Return 0 explicitly.
41831
41832 2009-02-21  Bruno Haible  <bruno@clisp.org>
41833
41834         Tests for module 'uninorm/filter'.
41835         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41836         * modules/uninorm/filter-tests: New file.
41837
41838         New module 'uninorm/filter'.
41839         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41840         uninorm_filter_flush, uninorm_filter_free): New declarations.
41841         * lib/uninorm/uninorm-filter.c: New file.
41842         * modules/uninorm/filter: New file.
41843
41844 2009-02-21  Bruno Haible  <bruno@clisp.org>
41845
41846         Tests for module 'uninorm/nfkc'.
41847         * tests/uninorm/test-nfkc.c: New file.
41848         * tests/uninorm/test-u8-nfkc.c: New file.
41849         * tests/uninorm/test-u16-nfkc.c: New file.
41850         * tests/uninorm/test-u32-nfkc.c: New file.
41851         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41852         * tests/uninorm/test-u32-nfkc-big.c: New file.
41853         * modules/uninorm/nfkc-tests: New file.
41854
41855         New module 'uninorm/nfkc'.
41856         * lib/uninorm/nfkc.c: New file.
41857         * modules/uninorm/nfkc: New file.
41858
41859         Tests for module 'uninorm/nfkd'.
41860         * tests/uninorm/test-nfkd.c: New file.
41861         * tests/uninorm/test-u8-nfkd.c: New file.
41862         * tests/uninorm/test-u16-nfkd.c: New file.
41863         * tests/uninorm/test-u32-nfkd.c: New file.
41864         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41865         * tests/uninorm/test-u32-nfkd-big.c: New file.
41866         * modules/uninorm/nfkd-tests: New file.
41867
41868         New module 'uninorm/nfkd'.
41869         * lib/uninorm/nfkd.c: New file.
41870         * modules/uninorm/nfkd: New file.
41871
41872         Tests for module 'uninorm/nfc'.
41873         * tests/uninorm/test-nfc.c: New file.
41874         * tests/uninorm/test-u8-nfc.c: New file.
41875         * tests/uninorm/test-u16-nfc.c: New file.
41876         * tests/uninorm/test-u32-nfc.c: New file.
41877         * tests/uninorm/test-u32-nfc-big.sh: New file.
41878         * tests/uninorm/test-u32-nfc-big.c: New file.
41879         * modules/uninorm/nfc-tests: New file.
41880
41881         New module 'uninorm/nfc'.
41882         * lib/uninorm/nfc.c: New file.
41883         * modules/uninorm/nfc: New file.
41884
41885         Tests for module 'uninorm/nfd'.
41886         * tests/uninorm/test-nfd.c: New file.
41887         * tests/uninorm/test-u8-nfd.c: New file.
41888         * tests/uninorm/test-u16-nfd.c: New file.
41889         * tests/uninorm/test-u32-nfd.c: New file.
41890         * tests/uninorm/test-u32-nfd-big.sh: New file.
41891         * tests/uninorm/test-u32-nfd-big.c: New file.
41892         * tests/uninorm/test-u32-normalize-big.h: New file.
41893         * tests/uninorm/test-u32-normalize-big.c: New file.
41894         * tests/uninorm/NormalizationTest.txt: New file, created from
41895         Unicode 5.1.0 NormalizationTest.txt.
41896         * modules/uninorm/nfd-tests: New file.
41897
41898         New module 'uninorm/nfd'.
41899         * lib/uninorm/nfd.c: New file.
41900         * modules/uninorm/nfd: New file.
41901
41902         New module 'uninorm/u32-normalize'.
41903         * lib/uninorm/u32-normalize.c: New file.
41904         * modules/uninorm/u32-normalize: New file.
41905
41906         New module 'uninorm/u16-normalize'.
41907         * lib/uninorm/u16-normalize.c: New file.
41908         * modules/uninorm/u16-normalize: New file.
41909
41910         New module 'uninorm/u8-normalize'.
41911         * lib/uninorm/u8-normalize.c: New file.
41912         * lib/uninorm/normalize-internal.h: New file.
41913         * lib/uninorm/u-normalize-internal.h: New file.
41914         * modules/uninorm/u8-normalize: New file.
41915
41916         New module 'uninorm/decompose-internal'.
41917         * lib/uninorm/decompose-internal.c: New file.
41918         * modules/uninorm/decompose-internal: New file.
41919
41920         Tests for module 'uninorm/composition'.
41921         * tests/uninorm/test-composition.c: New file.
41922         * modules/uninorm/composition-tests: New file.
41923
41924         New module 'uninorm/composition'.
41925         * lib/uninorm/composition.c: New file.
41926         * lib/uninorm/composition-table.gperf: New file, generated by
41927         gen-uni-tables.
41928         * modules/uninorm/composition: New file.
41929
41930         Tests for module 'uninorm/compat-decomposition'.
41931         * tests/uninorm/test-compat-decomposition.c: New file.
41932         * modules/uninorm/compat-decomposition-tests: New file.
41933
41934         New module 'uninorm/compat-decomposition'.
41935         * lib/uninorm/decompose-internal.h: New file.
41936         * lib/uninorm/compat-decomposition.c: New file.
41937         * modules/uninorm/compat-decomposition: New file.
41938
41939         Tests for module 'uninorm/canonical-decomposition'.
41940         * tests/uninorm/test-canonical-decomposition.c: New file.
41941         * modules/uninorm/canonical-decomposition-tests: New file.
41942
41943         New module 'uninorm/canonical-decomposition'.
41944         * lib/uninorm/canonical-decomposition.c: New file.
41945         * modules/uninorm/canonical-decomposition: New file.
41946
41947         Tests for module 'uninorm/decomposition'.
41948         * tests/uninorm/test-decomposition.c: New file.
41949         * modules/uninorm/decomposition-tests: New file.
41950
41951         New module 'uninorm/decomposition'.
41952         * lib/uninorm/decomposition.c: New file.
41953         * modules/uninorm/decomposition: New file.
41954
41955         New module 'uninorm/decomposition-table'.
41956         * lib/uninorm/decomposition-table.h: New file.
41957         * lib/uninorm/decomposition-table.c: New file.
41958         * lib/uninorm/decomposition-table1.h: New file, generated by
41959         gen-uni-tables.
41960         * lib/uninorm/decomposition-table2.h: New file, generated by
41961         gen-uni-tables.
41962         * modules/uninorm/decomposition-table: New file.
41963
41964         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41965         (UC_DECOMP_*): New enumeration items.
41966         (get_decomposition): New function.
41967         (struct decomp_table): New type.
41968         (output_decomposition, output_decomposition_tables): New functions.
41969         (unicode_composition_exclusions): New variable.
41970         (fill_composition_exclusions, debug_output_composition_tables): New
41971         functions.
41972         (main): Accept one more argument. Invoke fill_composition_exclusions.
41973         Output decomposition and composition tables.
41974
41975         New module 'uninorm/base'.
41976         * lib/uninorm.h: New file.
41977         * lib/unictype.h: Update comment.
41978         * modules/uninorm/base: New file.
41979
41980 2009-02-21  David Lutterkort  <lutter@redhat.com>
41981
41982         Tests for module 'safe-alloc'.
41983         * tests/test-safe-alloc.c: New file.
41984         * modules/safe-alloc-tests: New file.
41985
41986         New module 'safe-alloc'.
41987         * lib/safe-alloc.h: New file.
41988         * lib/safe-alloc.c: New file.
41989         * m4/safe-alloc.m4: New file.
41990         * modules/safe-alloc: New file.
41991         * doc/safe-alloc.texi: New file.
41992         * doc/gnulib.texi: Include it.
41993         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41994         safe-alloc.
41995
41996 2009-02-18  Bruno Haible  <bruno@clisp.org>
41997
41998         Fix link error on non-glibc systems.
41999         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42000         variable.
42001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42002
42003 2009-02-18  Jim Meyering  <meyering@redhat.com>
42004
42005         fts: avoid used-uninitialized error due to recent change
42006         * lib/fts.c (fts_read): Guard uses of the new member,
42007         parent->fts_n_dirs_remaining, since it's not relevant for
42008         the parent of a directory specified on the command-line.
42009
42010 2009-02-17  James Youngman  <jay@gnu.org>
42011             Bruno Haible  <bruno@clisp.org>
42012
42013         * m4/include_next.m4: Reformulate comment.
42014
42015 2009-02-16  Jim Meyering  <meyering@redhat.com>
42016
42017         fts: add #if guards so that the fts_lgpl module still builds
42018         * lib/fts.c: Guard just-added hash-table-using parts with
42019         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42020         Reported by Simon Josefsson.
42021
42022 2009-02-15  Bruno Haible  <bruno@clisp.org>
42023
42024         * modules/array-mergesort-tests: New file.
42025         * tests/test-array-mergesort.c: New file.
42026
42027         New module 'array-mergesort'.
42028         * modules/array-mergesort: New file.
42029         * lib/array-mergesort.h: New file.
42030
42031 2009-02-15  Bruno Haible  <bruno@clisp.org>
42032
42033         Fix 2009-02-07 commit.
42034         * lib/gen-uni-tables.c (output_predicate, output_category,
42035         output_combclass, output_bidi_category, output_decimal_digit,
42036         output_digit, output_numeric, output_mirror, output_scripts,
42037         output_ident_category, output_simple_mapping): Fix format directives.
42038         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42039
42040 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42041
42042         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42043         fixes are available from IBM.
42044
42045 2009-02-13  Jim Meyering  <meyering@redhat.com>
42046
42047         fts: arrange not to stat non-directories in more cases
42048         This makes GNU find (when it doesn't need to stat each file)
42049         *much* more efficient at traversing reiserfs file systems.
42050         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42051         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42052         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42053         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42054         (leaf_optimization_applies): New function.
42055         (LCO_hash, LCO_compare): New helper functions.
42056         (link_count_optimize_ok): New function.
42057         (fts_stat): Initialize new member (if dir).
42058         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42059         we've just stat'ed a directory.  Skip the stat call when possible.
42060         ---
42061         Note this AFS-related exchange:
42062         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42063         and note find's pioctl call in find/fstype.c.
42064         But that is necessary only if you want to enable the
42065         optimization for AFS, and for now, I don't.
42066
42067         fts: move a function definition "up" (no semantic change)
42068         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42069         "up" to precede upcoming use of a related function.
42070
42071 2009-02-11  Jim Meyering  <meyering@redhat.com>
42072
42073         fts: correct internal computation of nlinks (optimization-related)
42074         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42075         whether the current entry is a directory, so don't test it.
42076
42077 2009-02-10  Bruno Haible  <bruno@clisp.org>
42078
42079         Tests for module 'uniwbrk/ulc-wordbreaks'.
42080         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42081         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42082         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42083
42084         Tests for module 'uniwbrk/u32-wordbreaks'.
42085         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42086         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42087
42088         Tests for module 'uniwbrk/u16-wordbreaks'.
42089         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42090         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42091
42092         Tests for module 'uniwbrk/u8-wordbreaks'.
42093         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42094         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42095
42096 2009-02-10  Bruno Haible  <bruno@clisp.org>
42097
42098         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42099         property.
42100         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42101         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42102         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42103
42104 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42105
42106         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42107         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42108
42109 2009-02-10  Bruno Haible  <bruno@clisp.org>
42110
42111         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42112         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42113         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42114         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42115         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42116         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42117
42118 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42119
42120         * lib/sockets.h (gl_fd_to_handle): New function.
42121
42122         * tests/test-sockets.c: Call gl_fd_to_handle.
42123
42124 2009-02-09  Bruno Haible  <bruno@clisp.org>
42125
42126         * doc/havelib.texi: Document the conventions on bi-arch systems.
42127
42128 2009-02-08  Bruno Haible  <bruno@clisp.org>
42129
42130         Document the AC_LIB_LINKFLAGS macro.
42131         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42132         * doc/gnulib.texi: Include it.
42133
42134 2009-02-08  Bruno Haible  <bruno@clisp.org>
42135
42136         Fix wrong order of sections, compared to TOC.
42137         * doc/gnulib.texi: Include relocatable-maint.texi after the
42138         "Regular expressions" node, not before.
42139
42140 2009-02-08  Bruno Haible  <bruno@clisp.org>
42141
42142         Tests for module 'unicase/totitle'.
42143         * modules/unicase/totitle-tests: New file.
42144
42145         Tests for module 'unicase/tolower'.
42146         * modules/unicase/tolower-tests: New file.
42147
42148         Tests for module 'unicase/toupper'.
42149         * modules/unicase/toupper-tests: New file.
42150         * tests/unicase/test-mapping-part1.h: New file.
42151         * tests/unicase/test-mapping-part2.h: New file.
42152
42153         New module 'unicase/totitle'.
42154         * modules/unicase/totitle: New file.
42155         * lib/unicase/totitle.c: New file.
42156
42157         New module 'unicase/tolower'.
42158         * modules/unicase/tolower: New file.
42159         * lib/unicase/tolower.c: New file.
42160
42161         New module 'unicase/toupper'.
42162         * modules/unicase/toupper: New file.
42163         * lib/unicase/toupper.c: New file.
42164         * lib/unicase/simple-mapping.h: New file.
42165
42166         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42167         (mapping_table): New structure.
42168         (output_simple_mapping): New function.
42169         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42170         * modules/gen-uni-tables (Description): Update.
42171         * lib/unicase/toupper.h: New file, automatically generated by
42172         gen-uni-tables.
42173         * lib/unicase/tolower.h: New file, automatically generated by
42174         gen-uni-tables.
42175         * lib/unicase/totitle.h: New file, automatically generated by
42176         gen-uni-tables.
42177         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42178         gen-uni-tables.
42179         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42180         gen-uni-tables.
42181         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42182         gen-uni-tables.
42183
42184         New module 'unicase/base'.
42185         * modules/unicase/base: New file.
42186         * lib/unicase.h: New file.
42187
42188 2009-02-08  Bruno Haible  <bruno@clisp.org>
42189
42190         New module 'uniwbrk/ulc-wordbreaks'.
42191         * modules/uniwbrk/ulc-wordbreaks: New file.
42192         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42193
42194         New module 'uniwbrk/u32-wordbreaks'.
42195         * modules/uniwbrk/u32-wordbreaks: New file.
42196         * lib/uniwbrk/u32-wordbreaks.c: New file.
42197
42198         New module 'uniwbrk/u16-wordbreaks'.
42199         * modules/uniwbrk/u16-wordbreaks: New file.
42200         * lib/uniwbrk/u16-wordbreaks.c: New file.
42201
42202         New module 'uniwbrk/u8-wordbreaks'.
42203         * modules/uniwbrk/u8-wordbreaks: New file.
42204         * lib/uniwbrk/u8-wordbreaks.c: New file.
42205         * lib/uniwbrk/u-wordbreaks.h: New file.
42206
42207         New module 'uniwbrk/table'.
42208         * modules/uniwbrk/table: New file.
42209         * lib/uniwbrk/wbrktable.h: New file.
42210         * lib/uniwbrk/wbrktable.c: New file.
42211
42212         New module 'uniwbrk/wordbreak-property'.
42213         * modules/uniwbrk/wordbreak-property: New file.
42214         * lib/uniwbrk/wordbreak-property.c: New file.
42215
42216         * lib/gen-uni-tables.c (WBP_*): New enum items.
42217         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42218         (unicode_org_wbp): New variable.
42219         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42220         New functions.
42221         (wbp_table): New structure.
42222         (output_wbp, output_wbrk_tables): New functions.
42223         (main): Accept additional argument. Invoke fill_org_wbp,
42224         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42225         output_wbrk_tables.
42226         * modules/gen-uni-tables (Description): Update.
42227         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42228         gen-uni-tables.
42229
42230         New module 'uniwbrk/base'.
42231         * modules/uniwbrk/base: New file.
42232         * lib/uniwbrk.h: New file.
42233
42234 2009-02-08  Bruno Haible  <bruno@clisp.org>
42235
42236         Update to Unicode 5.1.0.
42237         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42238         U+2185..U+2188.
42239         (is_property_default_ignorable_code_point): Don't include characters
42240         of category Cc or Cs and not-a-characters.
42241         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42242         U+0D79, U+109E, U+109F, U+A60C.
42243         * lib/unictype/bidi_of.h: Regenerated.
42244         * lib/unictype/blocks.h: Regenerated.
42245         * lib/unictype/categ_C.h: Regenerated.
42246         * lib/unictype/categ_Cf.h: Regenerated.
42247         * lib/unictype/categ_Cn.h: Regenerated.
42248         * lib/unictype/categ_L.h: Regenerated.
42249         * lib/unictype/categ_Ll.h: Regenerated.
42250         * lib/unictype/categ_Lm.h: Regenerated.
42251         * lib/unictype/categ_Lo.h: Regenerated.
42252         * lib/unictype/categ_Lu.h: Regenerated.
42253         * lib/unictype/categ_M.h: Regenerated.
42254         * lib/unictype/categ_Mc.h: Regenerated.
42255         * lib/unictype/categ_Me.h: Regenerated.
42256         * lib/unictype/categ_Mn.h: Regenerated.
42257         * lib/unictype/categ_N.h: Regenerated.
42258         * lib/unictype/categ_Nd.h: Regenerated.
42259         * lib/unictype/categ_Nl.h: Regenerated.
42260         * lib/unictype/categ_No.h: Regenerated.
42261         * lib/unictype/categ_P.h: Regenerated.
42262         * lib/unictype/categ_Pd.h: Regenerated.
42263         * lib/unictype/categ_Pe.h: Regenerated.
42264         * lib/unictype/categ_Pf.h: Regenerated.
42265         * lib/unictype/categ_Pi.h: Regenerated.
42266         * lib/unictype/categ_Po.h: Regenerated.
42267         * lib/unictype/categ_Ps.h: Regenerated.
42268         * lib/unictype/categ_S.h: Regenerated.
42269         * lib/unictype/categ_Sk.h: Regenerated.
42270         * lib/unictype/categ_Sm.h: Regenerated.
42271         * lib/unictype/categ_So.h: Regenerated.
42272         * lib/unictype/categ_of.h: Regenerated.
42273         * lib/unictype/combining.h: Regenerated.
42274         * lib/unictype/ctype_alnum.h: Regenerated.
42275         * lib/unictype/ctype_alpha.h: Regenerated.
42276         * lib/unictype/ctype_graph.h: Regenerated.
42277         * lib/unictype/ctype_lower.h: Regenerated.
42278         * lib/unictype/ctype_print.h: Regenerated.
42279         * lib/unictype/ctype_punct.h: Regenerated.
42280         * lib/unictype/ctype_upper.h: Regenerated.
42281         * lib/unictype/decdigit.h: Regenerated.
42282         * lib/unictype/digit.h: Regenerated.
42283         * lib/unictype/mirror.h: Regenerated.
42284         * lib/unictype/numeric.h: Regenerated.
42285         * lib/unictype/pr_alphabetic.h: Regenerated.
42286         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42287         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42288         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42289         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42290         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42291         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42292         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42293         * lib/unictype/pr_combining.h: Regenerated.
42294         * lib/unictype/pr_dash.h: Regenerated.
42295         * lib/unictype/pr_decimal_digit.h: Regenerated.
42296         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42297         * lib/unictype/pr_deprecated.h: Regenerated.
42298         * lib/unictype/pr_diacritic.h: Regenerated.
42299         * lib/unictype/pr_extender.h: Regenerated.
42300         * lib/unictype/pr_format_control.h: Regenerated.
42301         * lib/unictype/pr_grapheme_base.h: Regenerated.
42302         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42303         * lib/unictype/pr_grapheme_link.h: Regenerated.
42304         * lib/unictype/pr_id_continue.h: Regenerated.
42305         * lib/unictype/pr_id_start.h: Regenerated.
42306         * lib/unictype/pr_ideographic.h: Regenerated.
42307         * lib/unictype/pr_ignorable_control.h: Regenerated.
42308         * lib/unictype/pr_lowercase.h: Regenerated.
42309         * lib/unictype/pr_math.h: Regenerated.
42310         * lib/unictype/pr_numeric.h: Regenerated.
42311         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42312         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42313         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42314         * lib/unictype/pr_other_id_continue.h: Regenerated.
42315         * lib/unictype/pr_other_lowercase.h: Regenerated.
42316         * lib/unictype/pr_other_math.h: Regenerated.
42317         * lib/unictype/pr_punctuation.h: Regenerated.
42318         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42319         * lib/unictype/pr_soft_dotted.h: Regenerated.
42320         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42321         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42322         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42323         * lib/unictype/pr_uppercase.h: Regenerated.
42324         * lib/unictype/pr_xid_continue.h: Regenerated.
42325         * lib/unictype/pr_xid_start.h: Regenerated.
42326         * lib/unictype/pr_zero_width.h: Regenerated.
42327         * lib/unictype/scripts.h: Regenerated.
42328         * lib/unictype/scripts_byname.gperf: Regenerated.
42329         * lib/unictype/sy_java_ident.h: Regenerated.
42330         * lib/unilbrk/lbrkprop1.h: Regenerated.
42331         * lib/unilbrk/lbrkprop2.h: Regenerated.
42332         * tests/unictype/test-categ_C.c: Regenerated.
42333         * tests/unictype/test-categ_Cf.c: Regenerated.
42334         * tests/unictype/test-categ_Cn.c: Regenerated.
42335         * tests/unictype/test-categ_L.c: Regenerated.
42336         * tests/unictype/test-categ_Ll.c: Regenerated.
42337         * tests/unictype/test-categ_Lm.c: Regenerated.
42338         * tests/unictype/test-categ_Lo.c: Regenerated.
42339         * tests/unictype/test-categ_Lu.c: Regenerated.
42340         * tests/unictype/test-categ_M.c: Regenerated.
42341         * tests/unictype/test-categ_Mc.c: Regenerated.
42342         * tests/unictype/test-categ_Me.c: Regenerated.
42343         * tests/unictype/test-categ_Mn.c: Regenerated.
42344         * tests/unictype/test-categ_N.c: Regenerated.
42345         * tests/unictype/test-categ_Nd.c: Regenerated.
42346         * tests/unictype/test-categ_Nl.c: Regenerated.
42347         * tests/unictype/test-categ_No.c: Regenerated.
42348         * tests/unictype/test-categ_P.c: Regenerated.
42349         * tests/unictype/test-categ_Pd.c: Regenerated.
42350         * tests/unictype/test-categ_Pe.c: Regenerated.
42351         * tests/unictype/test-categ_Pf.c: Regenerated.
42352         * tests/unictype/test-categ_Pi.c: Regenerated.
42353         * tests/unictype/test-categ_Po.c: Regenerated.
42354         * tests/unictype/test-categ_Ps.c: Regenerated.
42355         * tests/unictype/test-categ_S.c: Regenerated.
42356         * tests/unictype/test-categ_Sk.c: Regenerated.
42357         * tests/unictype/test-categ_Sm.c: Regenerated.
42358         * tests/unictype/test-categ_So.c: Regenerated.
42359         * tests/unictype/test-ctype_alnum.c: Regenerated.
42360         * tests/unictype/test-ctype_alpha.c: Regenerated.
42361         * tests/unictype/test-ctype_graph.c: Regenerated.
42362         * tests/unictype/test-ctype_lower.c: Regenerated.
42363         * tests/unictype/test-ctype_print.c: Regenerated.
42364         * tests/unictype/test-ctype_punct.c: Regenerated.
42365         * tests/unictype/test-ctype_upper.c: Regenerated.
42366         * tests/unictype/test-decdigit.h: Regenerated.
42367         * tests/unictype/test-digit.h: Regenerated.
42368         * tests/unictype/test-numeric.h: Regenerated.
42369         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42370         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42371         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42372         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42373         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42374         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42375         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42376         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42377         * tests/unictype/test-pr_combining.c: Regenerated.
42378         * tests/unictype/test-pr_dash.c: Regenerated.
42379         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42380         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42381         * tests/unictype/test-pr_deprecated.c: Regenerated.
42382         * tests/unictype/test-pr_diacritic.c: Regenerated.
42383         * tests/unictype/test-pr_extender.c: Regenerated.
42384         * tests/unictype/test-pr_format_control.c: Regenerated.
42385         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42386         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42387         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42388         * tests/unictype/test-pr_id_continue.c: Regenerated.
42389         * tests/unictype/test-pr_id_start.c: Regenerated.
42390         * tests/unictype/test-pr_ideographic.c: Regenerated.
42391         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42392         * tests/unictype/test-pr_lowercase.c: Regenerated.
42393         * tests/unictype/test-pr_math.c: Regenerated.
42394         * tests/unictype/test-pr_numeric.c: Regenerated.
42395         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42396         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42397         Regenerated.
42398         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42399         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42400         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42401         * tests/unictype/test-pr_other_math.c: Regenerated.
42402         * tests/unictype/test-pr_punctuation.c: Regenerated.
42403         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42404         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42405         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42406         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42407         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42408         * tests/unictype/test-pr_uppercase.c: Regenerated.
42409         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42410         * tests/unictype/test-pr_xid_start.c: Regenerated.
42411         * tests/unictype/test-pr_zero_width.c: Regenerated.
42412
42413         Update to Unicode 5.1.0.
42414         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42415         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42416         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42417         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42418         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42419         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42420         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42421         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42422         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42423         (nonspacing_table_ind): Update.
42424         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42425
42426         Update to Unicode 5.1.0.
42427         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42428         code transform.
42429         * lib/uniname/uniname.c (unicode_character_name,
42430         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42431         * lib/uniname/uninames.h: Regenerated.
42432         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42433
42434 2009-02-07  Bruno Haible  <bruno@clisp.org>
42435
42436         Merge gen-ctype and gen-lbrk into a single program.
42437         * lib/gen-uni-tables.c: New file, incorporating
42438         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42439         Add directory prefixes to the names of the generated files.
42440         * lib/unictype/gen-ctype.c: Remove file.
42441         * lib/unilbrk/gen-lbrk.c: Remove file.
42442         * modules/gen-uni-tables: New file.
42443         * modules/unictype/gen-ctype: Remove file.
42444         * modules/unilbrk/gen-lbrk: Remove file.
42445
42446 2009-02-07  Bruno Haible  <bruno@clisp.org>
42447
42448         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42449
42450         New module 'unistr/u32-strcoll'.
42451         * modules/unistr/u32-strcoll: New file.
42452         * lib/unistr/u32-strcoll.c: New file.
42453
42454         New module 'unistr/u16-strcoll'.
42455         * modules/unistr/u16-strcoll: New file.
42456         * lib/unistr/u16-strcoll.c: New file.
42457
42458         New module 'unistr/u8-strcoll'.
42459         * modules/unistr/u8-strcoll: New file.
42460         * lib/unistr/u8-strcoll.c: New file.
42461         * lib/unistr/u-strcoll.h: New file.
42462
42463 2009-02-07  Bruno Haible  <bruno@clisp.org>
42464
42465         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42466         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42467         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42468         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42469         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42470         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42471
42472 2009-02-07  Bruno Haible  <bruno@clisp.org>
42473
42474         Make 64-bit clean.
42475         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42476         output_combclass, output_bidi_category, output_decimal_digit,
42477         output_digit, output_numeric, output_mirror, output_scripts,
42478         output_ident_category): Use proper width specifier in format strings.
42479
42480 2009-02-07  Bruno Haible  <bruno@clisp.org>
42481
42482         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42483         failure behaviour.
42484
42485 2009-02-07  Jim Meyering  <meyering@redhat.com>
42486
42487         regex: avoid compilation failure with upcoming gcc-4.4
42488         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42489         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42490         "... error: integer overflow in preprocessor expression".
42491
42492 2009-02-05  Ben Pfaff  <blp@gnu.org>
42493
42494         Fix link errors on Windows when close module is used.
42495         * modules/close: Add $(LIB_CLOSE) to Link section.
42496         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42497         $(LIB_CLOSE) on Windows.
42498
42499 2009-02-05  Jim Meyering  <meyering@redhat.com>
42500
42501         still avoid unused-parameter warnings, but do it cleanly
42502         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42503         (get_fs_usage): Cast to void instead.
42504         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42505         (dev_from_mount_options, read_file_system_list): Cast to void.
42506         Prompted by Bruno Haible.
42507
42508 2009-02-04  Jim Meyering  <meyering@redhat.com>
42509
42510         fsusage.c: correct copyright year
42511         * lib/fsusage.c: Reflect year in which the change is pushed into
42512
42513         avoid misc. warnings
42514         * lib/fsusage.c (UNUSED_PARAM): Define.
42515         (get_fs_usage): Mark parameter "disk" as unused.
42516         * lib/getugroups.c (getgrent): Use "void" in prototype.
42517         * lib/mountlist.c: Mark unused parameters.
42518         (read_file_system_list): Declare a local with "const".
42519         * lib/nanosleep.c (getnow): Declare static.
42520         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42521
42522         dirfd: set errno upon failure
42523         * lib/dirfd.c: Include <errno.h>.
42524         Set errno to ENOTSUP when returning -1.
42525         * modules/dirfd (Depends-on): Add errno.
42526         Suggested by John Kodis <kodis@comcast.net>.
42527
42528 2009-02-01  Bruno Haible  <bruno@clisp.org>
42529
42530         Don't assume sizeof (long) >= sizeof (void *).
42531         * lib/memcmp.c: Include stdint.h.
42532         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42533         srcp2 to 'const byte *'.
42534         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42535         types to uintptr_t.
42536         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42537         * modules/memcmp (Depends-on): Add stdint.
42538         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42539
42540 2009-01-30  Eric Blake  <ebb9@byu.net>
42541
42542         fix more require-before-expand issues
42543         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42544         expand, AC_PROG_AWK.
42545         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42546
42547 2009-01-28  Eric Blake  <ebb9@byu.net>
42548
42549         version-etc: use consistent URL formatting
42550         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42551         Improve formatting.  Use fputs for string without %.
42552
42553 2009-01-28  Jim Meyering  <meyering@redhat.com>
42554
42555         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42556         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42557         "underquoted definition of NAME" from autoconf-2.59.
42558
42559 2009-01-28  Bruno Haible  <bruno@clisp.org>
42560
42561         * doc/gnulib.texi: Add "Obsolete modules" to index.
42562
42563 2009-01-28  Jim Meyering  <meyering@redhat.com>
42564
42565         useless-if-before-free: recognize more variants
42566         * build-aux/useless-if-before-free: Also recognize e.g.,
42567         if (NULL != p) free (p);
42568
42569 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42570
42571         test-getaddrinfo: skip (don't fail) this test when there's no network
42572         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42573         on the presumption that it means you lack network access.
42574
42575 2009-01-26  Jim Meyering  <meyering@redhat.com>
42576
42577         fflush: avoid warnings on modern systems
42578         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42579         pos and result, into scopes where they're used.
42580
42581 2009-01-26  Eric Blake  <ebb9@byu.net>
42582
42583         Silence warning reintroduced by recent extensions patch.
42584         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42585         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42586         autoconf.
42587
42588         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42589         * m4/00gnulib.m4: New file.
42590         * gnulib-tool (func_get_filelist): Always use it.
42591         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42592         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42593
42594 2009-01-25  Bruno Haible  <bruno@clisp.org>
42595
42596         Make test-quotearg work on MacOS X and AIX.
42597         * tests/test-quotearg.sh: New file.
42598         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42599         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42600         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42601         include <libintl.h>.
42602         (fake_locale): Remove variable.
42603         (gettext, dgettext, dcgettext): Remove functions.
42604         (main): Instead of setting a fake locale, set a real locale. Call
42605         textdomain and bindtextdomain.
42606         * modules/quotearg-tests (Files): Add the new files.
42607         (Depends-on): Add gettext, setenv, unsetenv.
42608         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42609         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42610         Augment TESTS_ENVIRONMENT.
42611
42612 2009-01-25  Bruno Haible  <bruno@clisp.org>
42613
42614         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42615         fr_FR.ISO8859-1 locale on MacOS X.
42616         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42617         ja_JP.eucJP locale on MacOS X.
42618         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42619         zh_CN.GB18030 locale on MacOS X.
42620
42621 2009-01-25  Bruno Haible  <bruno@clisp.org>
42622
42623         Avoid link errors on MacOS X 10.3.
42624         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42625         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42626
42627 2009-01-25  Bruno Haible  <bruno@clisp.org>
42628
42629         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42630         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42631         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42632         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42633         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42634         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42635         posix_spawnattr_init, posix_spawnattr_setsigmask,
42636         posix_spawnattr_setflags, posix_spawnattr_destroy.
42637
42638         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42639         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42640         * modules/execute (Files): Remove m4/posix_spawn.m4.
42641         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42642         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42643         posix_spawnattr_init, posix_spawnattr_setsigmask,
42644         posix_spawnattr_setflags, posix_spawnattr_destroy.
42645
42646 2009-01-25  Bruno Haible  <bruno@clisp.org>
42647
42648         * lib/glthread/threadlib.c: Include <stdlib.h>.
42649
42650 2009-01-25  Bruno Haible  <bruno@clisp.org>
42651
42652         * lib/glthread/threadlib.c (dummy): New declaration.
42653
42654 2009-01-25  Bruno Haible  <bruno@clisp.org>
42655
42656         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42657         multibyte characters also for the GB18030 encoding. Don't crash when
42658         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42659
42660 2009-01-25  Bruno Haible  <bruno@clisp.org>
42661
42662         Avoid redefining 'struct random_data' on OSF/1 5.1.
42663         * lib/stdlib.in.h: Include <random.h> if it exists.
42664         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42665         HAVE_RANDOM_H. Include <random.h> when testing whether
42666         'struct random_data' exists.
42667         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42668
42669 2009-01-25  Bruno Haible  <bruno@clisp.org>
42670
42671         Don't install charset.alias on MacOS X >= 10.3.
42672         * lib/localcharset.c (DARWIN7): New macro.
42673         (get_charset_aliases): Hardcode the result for Darwin7.
42674         * modules/localcharset (install-exec-local): Don't install
42675         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42676
42677 2009-01-25  Bruno Haible  <bruno@clisp.org>
42678
42679         Don't install charset.alias on mingw and Cygwin.
42680         * modules/localcharset (install-exec-local): Don't install
42681         charset.alias on mingw and Cygwin, if the file does not yet exist.
42682         The result for these platforms is hardcoded in localcharset.c.
42683
42684 2009-01-25  Bruno Haible  <bruno@clisp.org>
42685
42686         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42687         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42688         before requiring AC_USE_SYSTEM_EXTENSIONS.
42689
42690 2009-01-25  Jim Meyering  <meyering@redhat.com>
42691
42692         c-strtod: avoid warnings
42693         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42694         "assignment discards qualifiers from pointer target type" warnings.
42695
42696 2009-01-24  Bruno Haible  <bruno@clisp.org>
42697
42698         Add support for non-UTF-8 locales on MacOS X.
42699         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42700         canonical encodings. For Darwin 7 and newer, don't map traditional
42701         encodings to UTF-8.
42702         Reported by Vincent Lefevre <vincent@vinc17.org>
42703         at <http://savannah.gnu.org/bugs/?25235>.
42704
42705 2009-01-24  Bruno Haible  <bruno@clisp.org>
42706
42707         * doc/gnulib.texi (Obsolete modules): New section.
42708         Reported by Mike Frysinger <vapier@gentoo.org>.
42709
42710 2009-01-24  Bruno Haible  <bruno@clisp.org>
42711
42712         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42713         (%.dvi): New rule.
42714
42715 2009-01-24  Bruno Haible  <bruno@clisp.org>
42716
42717         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42718         Reported by Eric Blake.
42719
42720 2009-01-24  Bruno Haible  <bruno@clisp.org>
42721
42722         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42723         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42724         Reported by Gary V. Vaughan <gary@gnu.org>.
42725
42726 2009-01-24  Bruno Haible  <bruno@clisp.org>
42727
42728         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42729
42730 2009-01-23  Bruno Haible  <bruno@clisp.org>
42731
42732         Make c-strtod, c-strtold usable in libraries.
42733         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42734         (C_STRTOD): Call strdup instead of xstrdup.
42735         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42736         * modules/c-strtold (Depends-on): Likewise.
42737         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42738         * NEWS: Mention the change.
42739         Reported by Michael Gold <mgold@ncf.ca>.
42740
42741 2009-01-23  Jim Meyering  <meyering@redhat.com>
42742
42743         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42744         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42745         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42746
42747 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42748
42749         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42750         GNU CoreUtils.
42751         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42752         * modules/version-etc (Description): Update.
42753
42754 2009-01-22  Bruno Haible  <bruno@clisp.org>
42755
42756         Cache the C locale object.
42757         * lib/c-strtod.c (c_locale_cache): New variable.
42758         (c_locale): New function.
42759         (C_STRTOD): Use it, and don't call freelocale.
42760         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42761         Suggested by Paolo Bonzini.
42762
42763 2009-01-21  Bruno Haible  <bruno@clisp.org>
42764
42765         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42766         conditions other than overflow.
42767
42768 2009-01-21  Bruno Haible  <bruno@clisp.org>
42769
42770         * lib/c-strtod.c: Include errno.h.
42771         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42772         value from STRTOD_L and STRTOD.
42773
42774 2009-01-21  Bruno Haible  <bruno@clisp.org>
42775         and Jim Meyering  <meyering@redhat.com>
42776
42777         nanosleep: skip configure test (fail it) for apple universal builds
42778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42779         universal builds, assume that nanosleep does not work.
42780         * modules/nanosleep (Depends-on): Add multiarch.
42781
42782         mktime: skip configure test (fail it) for apple universal builds
42783         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42784         universal builds, assume that mktime does not work.
42785         * modules/mktime (Depends-on): Add multiarch.
42786
42787 2009-01-21  Eric Blake  <ebb9@byu.net>
42788
42789         multiarch: avoid expand-before-require warning
42790         * modules/multiarch (configure.ac): Require, rather than expand,
42791         gl_MULTIARCH.
42792         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42793         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42794         enforce that all clients require it.  Partial reversion of
42795         2008-12-29 patch.
42796
42797         error: avoid expand-before-require warning
42798         * modules/errno (configure.ac): Require, rather than expand,
42799         gl_HEADER_ERRNO_H.
42800         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42801         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42802         enforce that all clients require it.
42803
42804         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42805         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42806         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42807         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42808
42809 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42810
42811         Revert:
42812         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42813
42814         regex: do not depend on obsolete modules.
42815         * modules/regex: Remove memcmp and memmove.
42816
42817 2009-01-20  Bruno Haible  <bruno@clisp.org>
42818
42819         Make the 'link' module link on Windows NT 4.
42820         * lib/link.c (_WIN32_WINNT): Don't define.
42821         (CreateHardLinkFuncType): New type.
42822         (CreateHardLinkFunc, initialized): New variables.
42823         (initialize): New function.
42824         (link): Invoke CreateHardLink indirectly through the function pointer.
42825
42826 2009-01-20  Bruno Haible  <bruno@clisp.org>
42827
42828         Fix compilation failure on mingw.
42829         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42830
42831 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42832
42833         * doc/c-strtod.texi: Mention a couple of restrictions.
42834
42835 2009-01-20  Jim Meyering  <meyering@redhat.com>
42836
42837         gettimeofday: move more declarations out of functions
42838         * lib/gettimeofday.c: Move extern declarations of tzset and
42839         gmtime out of containing functions.  Prompted by Bruno Haible.
42840
42841 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42842
42843         regex: do not depend on obsolete modules.
42844         * modules/regex: Remove memcmp and memmove.
42845
42846 2009-01-19  Bruno Haible  <bruno@clisp.org>
42847
42848         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42849         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42850         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42851         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42852         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42853
42854 2009-01-19  Bruno Haible  <bruno@clisp.org>
42855
42856         * tests/test-link.c: Include <errno.h>.
42857         (main): Exit with code 77 when a hard link cannot be created due to
42858         the file system.
42859         * tests/test-link.sh: Skip test when a hard link cannot be created due
42860         to the file system.
42861         Suggested by Eric Blake.
42862
42863 2009-01-19  Martin Lambers  <marlam@marlam.de>
42864
42865         * modules/link-tests: New file.
42866         * tests/test-link.sh: New file.
42867         * tests/test-link.c: New file.
42868
42869 2009-01-19  Eric Blake  <ebb9@byu.net>
42870
42871         doc: mention another function added in cygwin 1.7.0
42872         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42873         Another new function in cygwin 1.7.
42874
42875 2009-01-19  Bruno Haible  <bruno@clisp.org>
42876
42877         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42878         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42879         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42880         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42881         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42882         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42883         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42884         * m4/md4.m4 (gl_MD4): Likewise.
42885         * m4/md5.m4 (gl_MD5): Likewise.
42886         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42887         * m4/sha1.m4 (gl_SHA1): Likewise.
42888         * m4/sha256.m4 (gl_SHA256): Likewise.
42889         * m4/sha512.m4 (gl_SHA512): Likewise.
42890
42891 2009-01-19  Bruno Haible  <bruno@clisp.org>
42892
42893         * modules/uniname/uniname-tests (Depends-on): Add progname.
42894         * tests/uniname/test-uninames.c: Include progname.h.
42895         (main): Call set_program_name.
42896
42897         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42898         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42899         (main): Call set_program_name.
42900
42901         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42902         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42903         (main): Call set_program_name.
42904
42905         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42906         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42907         (main): Call set_program_name.
42908
42909         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42910         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42911         (main): Call set_program_name.
42912
42913         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42914         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42915         (main): Call set_program_name.
42916
42917         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42918         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42919         (main): Call set_program_name.
42920
42921         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42922         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42923         (main): Call set_program_name.
42924
42925         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42926         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42927         (main): Call set_program_name.
42928
42929 2009-01-19  Eric Blake  <ebb9@byu.net>
42930
42931         test-unistd: test previous patch
42932         * tests/test-unistd.c: Test *_FILENO macros.
42933
42934         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42935         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42936         Guarantee a definition.
42937         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42938         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42939         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42940         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42941         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42942         Likewise.
42943         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42944         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42945         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42946         Likewise.
42947         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42948         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42949         (STDERR_FILENO): Likewise.
42950         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42951         (STDERR_FILENO): Likewise.
42952         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42953         (STDERR_FILENO): Likewise.
42954         Reported by Elbert Pol.
42955
42956 2009-01-19  Eric Blake  <ebb9@byu.net>
42957
42958         doc: mention more functions added in cygwin 1.7.0
42959         * doc/posix-functions/abort.texi (abort): Update wording related
42960         to cygwin.
42961         * doc/posix-functions/daylight.texi (daylight): Likewise.
42962         * doc/posix-functions/optarg.texi (optarg): Likewise.
42963         * doc/posix-functions/optarg.texi (opterr): Likewise.
42964         * doc/posix-functions/optarg.texi (optind): Likewise.
42965         * doc/posix-functions/optarg.texi (optopt): Likewise.
42966         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42967         worked in 1.5.x, and was withdrawn in 1.7.
42968         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42969         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42970         cygwin versions.
42971         * doc/posix-functions/perror.texi (perror): Likewise.
42972         * doc/posix-functions/printf.texi (printf): Likewise.
42973         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42974         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42975         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42976         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42977         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42978         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42979         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42980         Likewise.
42981         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42982         Likewise.
42983         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42984         this function.
42985         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42986         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42987         Likewise.
42988         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42989         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42990         * doc/posix-functions/confstr.texi (confstr): Likewise.
42991         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42992         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42993         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42994         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42995         * doc/posix-functions/fputws.texi (fputws): Likewise.
42996         * doc/posix-functions/fwide.texi (fwide): Likewise.
42997         * doc/posix-functions/getwc.texi (getwc): Likewise.
42998         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42999         * doc/posix-functions/putwc.texi (putwc): Likewise.
43000         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43001         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43002         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43003         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43004         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43005         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43006         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43007         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43008         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43009         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43010         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43011
43012 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43013
43014         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43015         * lib/ioctl.c: Include <sys/ioctl.h>.
43016
43017 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43018
43019         * modules/getdate-tests (Depends-on): Add progname.
43020         * tests/test-getdate.c: Use progname module, to avoid link errors
43021         on non-glibc systems.
43022
43023 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43024
43025         * modules/filenamecat-tests (Depends-on): Add progname.
43026         * modules/fstrcmp-tests (Depends-on): Likewise.
43027
43028         * tests/test-filenamecat.c: Use progname module, to avoid link
43029         errors on non-glibc systems.
43030         * tests/test-fstrcmp.c: Likewise.
43031
43032 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43033
43034         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43035         * lib/gettimeofday.c: Move extern declaration out of function.
43036
43037 2009-01-18  Bruno Haible  <bruno@clisp.org>
43038
43039         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43040         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43041         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43042
43043 2009-01-18  Bruno Haible  <bruno@clisp.org>
43044
43045         * lib/strftime.c (MEMPCPY): Remove unused macro.
43046         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43047
43048 2009-01-18  Martin Lambers  <marlam@marlam.de>
43049
43050         New module 'link'.
43051         * lib/unistd.in.h (link): New declaration.
43052         * lib/link.c: New file.
43053         * m4/link.m4: New file.
43054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43055         HAVE_LINK.
43056         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43057         * modules/link: New file.
43058         * doc/posix-functions/link.texi: Mention the new module.
43059
43060 2009-01-18  Bruno Haible  <bruno@clisp.org>
43061
43062         * tests/test-avltree_list.c (main): Call set_program_name.
43063         * tests/test-avltree_oset.c (main): Likewise.
43064         * tests/test-obstack-printf.c: Include progname.h.
43065         (main): Call set_program_name.
43066         * tests/test-quotearg.c: Include progname.h.
43067         (main): Call set_program_name.
43068         * tests/test-xmemdup0.c: Include progname.h.
43069         (main): Call set_program_name.
43070
43071 2009-01-18  Bruno Haible  <bruno@clisp.org>
43072
43073         New module 'alphasort'.
43074         * lib/dirent.in.h (alphasort): New declaration.
43075         * lib/alphasort.c: New file, from glibc with modifications.
43076         * m4/alphasort.m4: New file.
43077         * modules/alphasort: New file.
43078         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43079         HAVE_ALPHASORT.
43080         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43081         HAVE_ALPHASORT.
43082         * doc/posix-functions/alphasort.texi: Mention the new module and the
43083         portability problems.
43084
43085 2009-01-18  Bruno Haible  <bruno@clisp.org>
43086
43087         New module 'scandir'.
43088         * lib/dirent.in.h (scandir): New declaration.
43089         * lib/scandir.c: New file, from glibc with modifications.
43090         * m4/scandir.m4: New file.
43091         * modules/scandir: New file.
43092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43093         HAVE_SCANDIR.
43094         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43095         HAVE_SCANDIR.
43096         * doc/posix-functions/scandir.texi: Mention the new module and the
43097         portability problems.
43098
43099 2009-01-17  Bruno Haible  <bruno@clisp.org>
43100
43101         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43102         Update documentation.
43103         (func_remove_suffix): Escape all dots in the suffix. Update
43104         documentation.
43105         (func_filter_filelist): Update documentation.
43106         Reported by Ralf Wildenhues.
43107
43108 2009-01-17  Bruno Haible  <bruno@clisp.org>
43109
43110         * modules/dprintf-posix-tests: New file.
43111         * tests/test-dprintf-posix.sh: New file.
43112         * tests/test-dprintf-posix.c: New file.
43113
43114         New modules 'dprintf', 'dprintf-posix'.
43115         * lib/stdio.in.h (dprintf): New declaration.
43116         * lib/dprintf.c: New file.
43117         * m4/dprintf.m4: New file.
43118         * m4/dprintf-posix.m4: New file.
43119         * modules/dprintf: New file.
43120         * modules/dprintf-posix: New file.
43121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43122         HAVE_DPRINTF, REPLACE_DPRINTF.
43123         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43124         HAVE_DPRINTF, REPLACE_DPRINTF.
43125         * doc/posix-functions/dprintf.texi: Mention the new modules.
43126
43127 2009-01-17  Bruno Haible  <bruno@clisp.org>
43128
43129         * modules/vdprintf-posix-tests: New file.
43130         * tests/test-vdprintf-posix.sh: New file.
43131         * tests/test-vdprintf-posix.c: New file.
43132
43133         New modules 'vdprintf', 'vdprintf-posix'.
43134         * lib/stdio.in.h (vdprintf): New declaration.
43135         * lib/vdprintf.c: New file.
43136         * m4/vdprintf.m4: New file.
43137         * m4/vdprintf-posix.m4: New file.
43138         * modules/vdprintf: New file.
43139         * modules/vdprintf-posix: New file.
43140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43141         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43142         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43143         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43144         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43145
43146 2009-01-17  Bruno Haible  <bruno@clisp.org>
43147
43148         Fix replacement of fopen on mingw.
43149         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43150         mingw.
43151
43152 2009-01-17  Bruno Haible  <bruno@clisp.org>
43153
43154         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43155         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43156
43157 2009-01-17  Bruno Haible  <bruno@clisp.org>
43158
43159         Avoid test-fflush2.sh failure on mingw.
43160         * tests/test-fflush2.c: Include binary-io.h.
43161         (main): Put standard input into binary mode.
43162         * modules/fflush-tests (Depends-on): Add binary-io.
43163
43164 2009-01-17  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/wchar.in.h: In another particular situation, include only the
43167         system's <wchar.h> file.
43168         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43169         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43170         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43171
43172 2009-01-17  Bruno Haible  <bruno@clisp.org>
43173
43174         Support for stripping executables in --enable-relocatable.
43175         * build-aux/install-reloc: Expect one more argument, or an environment
43176         variable RELOC_STRIP_PROG. If set, strip the destination program and
43177         its wrapper.
43178         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43179         RELOC_STRIP_PROG.
43180         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43181         to set RELOCATABLE_STRIP.
43182         * NEWS: Mention the new Makefile requirement.
43183
43184 2009-01-17  Bruno Haible  <bruno@clisp.org>
43185
43186         * build-aux/install-reloc: Remove debugging information left over by
43187         C compiler on MacOS X.
43188
43189 2009-01-17  Bruno Haible  <bruno@clisp.org>
43190
43191         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43192         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43193         _NSGetExecutablePath.
43194
43195 2009-01-16  Jim Meyering  <meyering@redhat.com>
43196
43197         strerror: avoid warnings about discarding "const"
43198         * lib/strerror.c (rpl_strerror): Instead of returning a const
43199         string from each and every "case", use a variable, and add a single
43200         cast after the switch.
43201
43202 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43203
43204         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43205
43206 2009-01-16  Bruno Haible  <bruno@clisp.org>
43207
43208         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43209         array initializer syntax that also works in C++ mode.
43210         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43211
43212 2009-01-16  Jim Meyering  <meyering@redhat.com>
43213
43214         poll: suppress a warning
43215         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43216         to ignore "...unsigned expression < 0 is always false" warnings.
43217
43218 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43219
43220         poll: remove declarations of unused variables
43221         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43222         sockbuf and optlen.
43223
43224 2009-01-15  Bruno Haible  <bruno@clisp.org>
43225
43226         Make fflush-after-ungetc POSIX compliant on BSD systems.
43227         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43228         (clear_ungetc_buffer): Implement also for other systems.
43229         (rpl_fflush): On glibc systems, invoke
43230         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43231         clear_ungetc_buffer after fetching the stream's position, not before.
43232
43233 2009-01-15  Bruno Haible  <bruno@clisp.org>
43234
43235         Make fflush-after-ungetc POSIX compliant on glibc systems.
43236         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43237         after ungetc.
43238         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43239         (rpl_fflush): On glibc systems, simply call the system's fflush
43240         function after clearing the ungetc buffer.
43241         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43242         Instead, lseek only to the end of file, then use the system's fseeko
43243         for the rest. On glibc systems, reset the EOF indicator bit.
43244
43245 2009-01-15  Jim Meyering  <meyering@redhat.com>
43246
43247         openmp.m4: revert quote-adding change, for portability to older autoconf
43248         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43249         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43250         Simon Josefsson noticed the problem when using autoconf-2.61.
43251
43252 2009-01-15  Bruno Haible  <bruno@clisp.org>
43253
43254         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43255         * tests/test-fflush2.c (ASSERT): Always fail.
43256         (main): Add two tests for fflush() after ungetc(), taking into account
43257         the Austin Group's clarification.
43258         Suggested by Eric Blake.
43259
43260 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43261
43262         mktime.m4: remove K&R-style function prototypes
43263         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43264         for the Sun C++ compiler.
43265
43266 2009-01-14  Bruno Haible  <bruno@clisp.org>
43267
43268         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43269         while including <wchar.h>.
43270         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43271         the system's <wchar.h> file.
43272         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43273
43274 2009-01-14  Bruno Haible  <bruno@clisp.org>
43275
43276         * m4/csharp.m4: Don't mention gettext on the serial number line.
43277         * m4/csharpexec.m4: Likewise.
43278         * m4/eaccess.m4: Likewise.
43279         * m4/javaexec.m4: Likewise.
43280         * m4/sig_atomic_t.m4: Likewise.
43281         * m4/tmpdir.m4: Likewise.
43282         * m4/intldir.m4: Bump gettext version.
43283         * m4/lib-ld.m4: Likewise.
43284
43285 2009-01-14  Bruno Haible  <bruno@clisp.org>
43286
43287         * lib/progname.c (set_program_name): Add more comments.
43288         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43289
43290 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43291
43292         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43293         were sys/stat.h does not define it.
43294
43295 2009-01-14  Jim Meyering  <meyering@redhat.com>
43296
43297         many *.m4 files: improve m4 quoting
43298         99% of this change was performed by running the following commands:
43299         git ls-files | grep '\.m4$' | xargs perl -pi \
43300           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43301           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43302           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43303           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43304         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43305         The remainder were to add Copyright dates, increment serial numbers,
43306         undo some changes in comments, exclude m4/intl.m4, and add quotes
43307         around the "1" in ",1" where the unusual spacing prohibited the
43308         above regexps from doing the job.  For more details, see
43309         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43310         * m4/acl.m4: Modified.
43311         * m4/afs.m4: Likewise.
43312         * m4/alloca.m4: Likewise.
43313         * m4/argp.m4: Likewise.
43314         * m4/argz.m4: Likewise.
43315         * m4/atexit.m4: Likewise.
43316         * m4/bison-i18n.m4: Likewise.
43317         * m4/bison.m4: Likewise.
43318         * m4/byteswap.m4: Likewise.
43319         * m4/c-stack.m4: Likewise.
43320         * m4/c-strtod.m4: Likewise.
43321         * m4/calloc.m4: Likewise.
43322         * m4/canonicalize-lgpl.m4: Likewise.
43323         * m4/chown.m4: Likewise.
43324         * m4/clock_time.m4: Likewise.
43325         * m4/codeset.m4: Likewise.
43326         * m4/copy-file.m4: Likewise.
43327         * m4/csharp.m4: Likewise.
43328         * m4/csharpcomp.m4: Likewise.
43329         * m4/csharpexec.m4: Likewise.
43330         * m4/d-ino.m4: Likewise.
43331         * m4/d-type.m4: Likewise.
43332         * m4/dirfd.m4: Likewise.
43333         * m4/double-slash-root.m4: Likewise.
43334         * m4/eaccess.m4: Likewise.
43335         * m4/eealloc.m4: Likewise.
43336         * m4/environ.m4: Likewise.
43337         * m4/errno_h.m4: Likewise.
43338         * m4/euidaccess.m4: Likewise.
43339         * m4/execute.m4: Likewise.
43340         * m4/fatal-signal.m4: Likewise.
43341         * m4/fchdir.m4: Likewise.
43342         * m4/fcntl_h.m4: Likewise.
43343         * m4/fileblocks.m4: Likewise.
43344         * m4/filenamecat.m4: Likewise.
43345         * m4/findprog.m4: Likewise.
43346         * m4/flexmember.m4: Likewise.
43347         * m4/fnmatch.m4: Likewise.
43348         * m4/fopen.m4: Likewise.
43349         * m4/fpending.m4: Likewise.
43350         * m4/fprintf-posix.m4: Likewise.
43351         * m4/free.m4: Likewise.
43352         * m4/frexp.m4: Likewise.
43353         * m4/frexpl.m4: Likewise.
43354         * m4/fsusage.m4: Likewise.
43355         * m4/ftruncate.m4: Likewise.
43356         * m4/gc-camellia.m4: Likewise.
43357         * m4/gc-random.m4: Likewise.
43358         * m4/gc.m4: Likewise.
43359         * m4/getaddrinfo.m4: Likewise.
43360         * m4/getcwd-abort-bug.m4: Likewise.
43361         * m4/getcwd-path-max.m4: Likewise.
43362         * m4/getdate.m4: Likewise.
43363         * m4/getdomainname.m4: Likewise.
43364         * m4/getgroups.m4: Likewise.
43365         * m4/gethostname.m4: Likewise.
43366         * m4/gethrxtime.m4: Likewise.
43367         * m4/getline.m4: Likewise.
43368         * m4/getloadavg.m4: Likewise.
43369         * m4/getndelim2.m4: Likewise.
43370         * m4/getpass.m4: Likewise.
43371         * m4/gettext.m4: Likewise.
43372         * m4/gettime.m4: Likewise.
43373         * m4/gettimeofday.m4: Likewise.
43374         * m4/gnulib-common.m4: Likewise.
43375         * m4/group-member.m4: Likewise.
43376         * m4/host-os.m4: Likewise.
43377         * m4/iconv.m4: Likewise.
43378         * m4/iconv_open.m4: Likewise.
43379         * m4/inet_ntop.m4: Likewise.
43380         * m4/inet_pton.m4: Likewise.
43381         * m4/inline.m4: Likewise.
43382         * m4/intldir.m4: Likewise.
43383         * m4/intlmacosx.m4: Likewise.
43384         * m4/intmax.m4: Likewise.
43385         * m4/intmax_t.m4: Likewise.
43386         * m4/inttypes.m4: Likewise.
43387         * m4/inttypes_h.m4: Likewise.
43388         * m4/inttypes-pri.m4: Likewise.
43389         * m4/isapipe.m4: Likewise.
43390         * m4/isnand.m4: Likewise.
43391         * m4/isnanf.m4: Likewise.
43392         * m4/isnanl.m4: Likewise.
43393         * m4/javacomp.m4: Likewise.
43394         * m4/javaexec.m4: Likewise.
43395         * m4/jm-winsz1.m4: Likewise.
43396         * m4/jm-winsz2.m4: Likewise.
43397         * m4/lchown.m4: Likewise.
43398         * m4/lcmessage.m4: Likewise.
43399         * m4/ldexpl.m4: Likewise.
43400         * m4/lib-ld.m4: Likewise.
43401         * m4/lib-link.m4: Likewise.
43402         * m4/libsigsegv.m4: Likewise.
43403         * m4/link-follow.m4: Likewise.
43404         * m4/localcharset.m4: Likewise.
43405         * m4/locale-fr.m4: Likewise.
43406         * m4/locale-ja.m4: Likewise.
43407         * m4/locale-tr.m4: Likewise.
43408         * m4/locale-zh.m4: Likewise.
43409         * m4/lock.m4: Likewise.
43410         * m4/longlong.m4: Likewise.
43411         * m4/ls-mntd-fs.m4: Likewise.
43412         * m4/lstat.m4: Likewise.
43413         * m4/malloc.m4: Likewise.
43414         * m4/mathl.m4: Likewise.
43415         * m4/mbrtowc.m4: Likewise.
43416         * m4/mbstate_t.m4: Likewise.
43417         * m4/mbswidth.m4: Likewise.
43418         * m4/memchr.m4: Likewise.
43419         * m4/memcmp.m4: Likewise.
43420         * m4/memcpy.m4: Likewise.
43421         * m4/memmem.m4: Likewise.
43422         * m4/memmove.m4: Likewise.
43423         * m4/mempcpy.m4: Likewise.
43424         * m4/memrchr.m4: Likewise.
43425         * m4/memset.m4: Likewise.
43426         * m4/minmax.m4: Likewise.
43427         * m4/mkdir-slash.m4: Likewise.
43428         * m4/mkdtemp.m4: Likewise.
43429         * m4/mktime.m4: Likewise.
43430         * m4/mmap-anon.m4: Likewise.
43431         * m4/mountlist.m4: Likewise.
43432         * m4/nanosleep.m4: Likewise.
43433         * m4/nls.m4: Likewise.
43434         * m4/nocrash.m4: Likewise.
43435         * m4/open.m4: Likewise.
43436         * m4/openat.m4: Likewise.
43437         * m4/openmp.m4: Likewise.
43438         * m4/pathmax.m4: Likewise.
43439         * m4/perl.m4: Likewise.
43440         * m4/physmem.m4: Likewise.
43441         * m4/pipe.m4: Likewise.
43442         * m4/po.m4: Likewise.
43443         * m4/poll.m4: Likewise.
43444         * m4/posixtm.m4: Likewise.
43445         * m4/posixver.m4: Likewise.
43446         * m4/printf-frexp.m4: Likewise.
43447         * m4/printf-frexpl.m4: Likewise.
43448         * m4/printf-posix.m4: Likewise.
43449         * m4/printf-posix-rpl.m4: Likewise.
43450         * m4/printf.m4: Likewise.
43451         * m4/progtest.m4: Likewise.
43452         * m4/putenv.m4: Likewise.
43453         * m4/readline.m4: Likewise.
43454         * m4/readlink.m4: Likewise.
43455         * m4/readutmp.m4: Likewise.
43456         * m4/realloc.m4: Likewise.
43457         * m4/regex.m4: Likewise.
43458         * m4/relocatable.m4: Likewise.
43459         * m4/relocatable-lib.m4: Likewise.
43460         * m4/rename-dest-slash.m4: Likewise.
43461         * m4/rename.m4: Likewise.
43462         * m4/rmdir-errno.m4: Likewise.
43463         * m4/rmdir.m4: Likewise.
43464         * m4/roundf.m4: Likewise.
43465         * m4/roundl.m4: Likewise.
43466         * m4/rpmatch.m4: Likewise.
43467         * m4/save-cwd.m4: Likewise.
43468         * m4/selinux-selinux-h.m4: Likewise.
43469         * m4/setenv.m4: Likewise.
43470         * m4/settime.m4: Likewise.
43471         * m4/sig2str.m4: Likewise.
43472         * m4/sig_atomic_t.m4: Likewise.
43473         * m4/signalblocking.m4: Likewise.
43474         * m4/signbit.m4: Likewise.
43475         * m4/sigpipe.m4: Likewise.
43476         * m4/sockets.m4: Likewise.
43477         * m4/sockpfaf.m4: Likewise.
43478         * m4/st_dm_mode.m4: Likewise.
43479         * m4/stat-time.m4: Likewise.
43480         * m4/stdbool.m4: Likewise.
43481         * m4/stdint.m4: Likewise.
43482         * m4/stdint_h.m4: Likewise.
43483         * m4/stpcpy.m4: Likewise.
43484         * m4/stpncpy.m4: Likewise.
43485         * m4/strcase.m4: Likewise.
43486         * m4/strchrnul.m4: Likewise.
43487         * m4/strcspn.m4: Likewise.
43488         * m4/strdup.m4: Likewise.
43489         * m4/strftime.m4: Likewise.
43490         * m4/strndup.m4: Likewise.
43491         * m4/strnlen.m4: Likewise.
43492         * m4/strpbrk.m4: Likewise.
43493         * m4/strptime.m4: Likewise.
43494         * m4/strsep.m4: Likewise.
43495         * m4/strtod.m4: Likewise.
43496         * m4/strtoimax.m4: Likewise.
43497         * m4/strtok_r.m4: Likewise.
43498         * m4/strtol.m4: Likewise.
43499         * m4/strtoll.m4: Likewise.
43500         * m4/strtoul.m4: Likewise.
43501         * m4/strtoull.m4: Likewise.
43502         * m4/strtoumax.m4: Likewise.
43503         * m4/strverscmp.m4: Likewise.
43504         * m4/threadlib.m4: Likewise.
43505         * m4/timegm.m4: Likewise.
43506         * m4/tm_gmtoff.m4: Likewise.
43507         * m4/tmpdir.m4: Likewise.
43508         * m4/tmpfile.m4: Likewise.
43509         * m4/tzset.m4: Likewise.
43510         * m4/uintmax_t.m4: Likewise.
43511         * m4/unlinkdir.m4: Likewise.
43512         * m4/unlocked-io.m4: Likewise.
43513         * m4/uptime.m4: Likewise.
43514         * m4/userspec.m4: Likewise.
43515         * m4/utimbuf.m4: Likewise.
43516         * m4/utime.m4: Likewise.
43517         * m4/utimes-null.m4: Likewise.
43518         * m4/utimes.m4: Likewise.
43519         * m4/vararrays.m4: Likewise.
43520         * m4/vasnprintf.m4: Likewise.
43521         * m4/vfprintf-posix.m4: Likewise.
43522         * m4/vprintf-posix.m4: Likewise.
43523         * m4/wait-process.m4: Likewise.
43524         * m4/wchar_t.m4: Likewise.
43525         * m4/wint_t.m4: Likewise.
43526         * m4/write-any-file.m4: Likewise.
43527         * m4/yield.m4: Likewise.
43528
43529 2009-01-13  Bruno Haible  <bruno@clisp.org>
43530
43531         Avoid test-copy-file.sh failures when ACL support insufficient.
43532         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43533         TESTS_ENVIRONMENT.
43534         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43535         Reported by Jim Meyering.
43536
43537 2009-01-13  Bruno Haible  <bruno@clisp.org>
43538
43539         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43540         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43541         * modules/unistdio/u8-printf-parse (Files): Likewise.
43542         * modules/unistdio/u32-printf-parse (Files): Likewise.
43543         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43544
43545 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43546
43547         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43548         and m4/inttypes_h.m4 too.
43549
43550 2009-01-12  Eric Blake  <ebb9@byu.net>
43551
43552         tests: IRIX 6.2 cc can't compile -0.0 into .data
43553         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43554         rather than at compile-time.
43555         * tests/test-floorl.c (minus_zero): Likewise.
43556         * tests/test-frexpl.c (minus_zero): Likewise.
43557         * tests/test-isnan.c (minus_zerol): Likewise.
43558         * tests/test-isnanl.h (minus_zero): Likewise.
43559         * tests/test-ldexpl.c (minus_zero): Likewise.
43560         * tests/test-roundl.c (minus_zero): Likewise.
43561         * tests/test-signbit.c (minus_zerol): Likewise.
43562         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43563         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43564         * tests/test-truncl.c (minus_zero): Likewise.
43565         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43566         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43567         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43568
43569 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43570
43571         regex: fix glibc bug 9697
43572         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43573         handling.
43574
43575 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43576
43577         regex: fix glibc bug 697
43578         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43579         being NULL also if there are no backreferences.
43580
43581 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43582
43583         regex: merge glibc changes
43584         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43585         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43586         re_string_skip_chars, re_string_reconstruct): Likewise.
43587         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43588
43589 2009-01-07  Jim Meyering  <meyering@redhat.com>
43590
43591         poll: filter through cppi
43592         * lib/poll.c: Indent cpp directives to reflect nesting.
43593
43594 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43595
43596         poll: don't return uninitialized
43597         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43598
43599 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43600
43601         avoid compile failure on AIX 6.1
43602         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43603         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43604
43605 2009-01-04  Jim Meyering  <meyering@redhat.com>
43606
43607         remove duplicate inclusion of <stdio.h>
43608         * tests/test-fprintf-posix.c: Likewise.
43609         * tests/test-printf-posix.c: Likewise.
43610         * tests/test-snprintf-posix.c: Likewise.
43611         * tests/test-sprintf-posix.c: Likewise.
43612         * tests/test-vasprintf-posix.c: Likewise.
43613         * tests/test-vfprintf-posix.c: Likewise.
43614         * tests/test-vprintf-posix.c: Likewise.
43615         * tests/test-vsnprintf-posix.c: Likewise.
43616         * tests/test-vsprintf-posix.c: Likewise.
43617
43618 2009-01-03  Jim Meyering  <meyering@redhat.com>
43619
43620         gnulib-tool: fix sed-based filtering
43621         * gnulib-tool (func_filter_filelist): Remove extra backslash
43622         in sed_fff_filter definition.
43623
43624 2009-01-02  Jim Meyering  <meyering@redhat.com>
43625
43626         strftime: avoid compilation failure on Solaris 2.6
43627         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43628         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43629         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43630         be available.  Reported by Tom G. Christensen.  Details in
43631         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43632
43633 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43634             Bruno Haible  <bruno@clisp.org>
43635
43636         Speed up gnulib-tool by doing more string processing through shell
43637         built-ins.
43638         * gnulib-tool (fast_func_append): New variable.
43639         (func_remove_prefix, func_remove_suffix): New functions.
43640         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43641         (func_filter_filelist): New function.
43642         (func_get_dependencies): Use func_remove_suffix instead of sed.
43643         (func_get_automake_snippet): Use func_filter_filelist instead of a
43644         subshell and sed invocation.
43645
43646 2009-01-01  Bruno Haible  <bruno@clisp.org>
43647
43648         Fix a security bug.
43649         * gnulib-tool (func_import, import, update): Don't allow the characters
43650         '"', '$', '`', '\' in macro arguments that become part of commands that
43651         are evaluated.
43652
43653 2009-01-01  Bruno Haible  <bruno@clisp.org>
43654
43655         * gnulib-tool (func_reset_sigpipe): Add more comments.
43656
43657 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43658
43659         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43660         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43661         already know the answer.
43662
43663 2009-01-01  Jim Meyering  <meyering@redhat.com>
43664
43665         * lib/version-etc.c (version_etc_va): Update copyright year.
43666
43667 2008-12-30  Bruno Haible  <bruno@clisp.org>
43668
43669         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43670         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43671         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43672
43673 2008-12-29  Eric Blake  <ebb9@byu.net>
43674
43675         multiarch: avoid autoconf AC_REQUIRE bug
43676         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43677         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43678         2.63 and older.
43679         Reported by Bruno Haible, and analyzed in
43680         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43681
43682 2008-12-29  Bruno Haible  <bruno@clisp.org>
43683
43684         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43685         files in subdirectories correctly.
43686         Reported by Ralf Wildenhues.
43687
43688 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43689
43690         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43691         rather than 'join FILE -', for Solaris join.
43692
43693 2008-12-29  Bruno Haible  <bruno@clisp.org>
43694
43695         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43696         quoting.
43697         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43698         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43699         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43700         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43701         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43702         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43703         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43704         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43705         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43706         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43707         * m4/nls.m4 (AM_NLS): Likewise.
43708         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43709         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43710         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43711         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43712         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43713         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43714         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43715         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43716         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43717         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43718         * m4/xsize.m4 (gl_XSIZE): Likewise.
43719         Suggested by Jim Meyering.
43720
43721 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43722
43723         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43724         * lib/parse-duration.c: use a switch instead of cascading if's.
43725
43726 2008-12-29  Eric Blake  <ebb9@byu.net>
43727
43728         wchar.h: supply WEOF on Irix 5.3
43729         * lib/wchar.in.h (wint_t): Also supply WEOF.
43730         * lib/wctype.in.h (wint_t): Likewise.
43731         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43732         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43733         Reported by Tom G. Christensen.
43734
43735 2008-12-26  Bruno Haible  <bruno@clisp.org>
43736
43737         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43738         i486, i586, i686.
43739
43740 2008-12-26  Bruno Haible  <bruno@clisp.org>
43741
43742         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43743
43744 2008-12-26  Bruno Haible  <bruno@clisp.org>
43745
43746         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43747         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43748         not __STDC_CONSTANT_MACROS.
43749         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43750
43751 2008-12-25  Bruno Haible  <bruno@clisp.org>
43752
43753         Add support for universal builds to vasnprintf.
43754         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43755         universal builds, guess no.
43756         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43757         * modules/vasprintf-posix (Depends-on): Likewise.
43758         * modules/fprintf-posix (Depends-on): Likewise.
43759         * modules/vfprintf-posix (Depends-on): Likewise.
43760         * modules/snprintf-posix (Depends-on): Likewise.
43761         * modules/vsnprintf-posix (Depends-on): Likewise.
43762         * modules/sprintf-posix (Depends-on): Likewise.
43763         * modules/vsprintf-posix (Depends-on): Likewise.
43764         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43765         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43766         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43767         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43768         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43769         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43770         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43771
43772         Add support for universal builds to <inttypes.h>.
43773         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43774         _SCNu64_PREFIX): In Apple
43775         universal builds, define directly, using _LP64.
43776         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43777         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43778         * modules/inttypes (Depends-on): Add multiarch.
43779         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43780
43781         Add support for universal builds to <stdint.h>.
43782         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43783         universal builds, define directly, using _LP64.
43784         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43785         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43786         and size_t.
43787         * modules/stdint (Depends-on): Add multiarch.
43788         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43789
43790         New module 'multiarch'.
43791         * modules/multiarch: New file.
43792         * m4/multiarch.m4: New file.
43793
43794 2008-12-25  Bruno Haible  <bruno@clisp.org>
43795
43796         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43797
43798 2008-12-25  Bruno Haible  <bruno@clisp.org>
43799
43800         * modules/btowc (License): Relicense under LGPLv2+.
43801         * modules/mbsinit (License): Likewise.
43802         * modules/mbrtowc (License): Likewise.
43803         * modules/wcrtomb (License): Likewise.
43804         * modules/streq (License): Likewise.
43805         Reported by David Lutterkort <lutter@redhat.com>.
43806
43807 2008-12-23  Bruno Haible  <bruno@clisp.org>
43808
43809         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43810
43811 2008-12-23  Bruno Haible  <bruno@clisp.org>
43812
43813         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43815         GETADDRINFO_LIB, not in LIBS.
43816         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43817         * modules/canon-host (Link): Likewise.
43818         * NEWS: Mention the change.
43819         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43820         GETADDRINFO_LIB.
43821
43822 2008-12-22  Bruno Haible  <bruno@clisp.org>
43823
43824         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43825         * doc/posix-functions/iswalpha_l.texi: Likewise.
43826         * doc/posix-functions/iswblank_l.texi: Likewise.
43827         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43828         * doc/posix-functions/iswctype_l.texi: Likewise.
43829         * doc/posix-functions/iswdigit_l.texi: Likewise.
43830         * doc/posix-functions/iswgraph_l.texi: Likewise.
43831         * doc/posix-functions/iswlower_l.texi: Likewise.
43832         * doc/posix-functions/iswprint_l.texi: Likewise.
43833         * doc/posix-functions/iswpunct_l.texi: Likewise.
43834         * doc/posix-functions/iswspace_l.texi: Likewise.
43835         * doc/posix-functions/iswupper_l.texi: Likewise.
43836         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43837         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43838         * doc/posix-functions/open_wmemstream.texi: Likewise.
43839         * doc/posix-functions/swscanf.texi: Likewise.
43840         * doc/posix-functions/towctrans_l.texi: Likewise.
43841         * doc/posix-functions/towlower.texi: Likewise.
43842         * doc/posix-functions/towlower_l.texi: Likewise.
43843         * doc/posix-functions/towupper.texi: Likewise.
43844         * doc/posix-functions/towupper_l.texi: Likewise.
43845         * doc/posix-functions/vfwprintf.texi: Likewise.
43846         * doc/posix-functions/vfwscanf.texi: Likewise.
43847         * doc/posix-functions/vswscanf.texi: Likewise.
43848         * doc/posix-functions/vwprintf.texi: Likewise.
43849         * doc/posix-functions/vwscanf.texi: Likewise.
43850         * doc/posix-functions/wcpcpy.texi: Likewise.
43851         * doc/posix-functions/wcpncpy.texi: Likewise.
43852         * doc/posix-functions/wcscasecmp.texi: Likewise.
43853         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43854         * doc/posix-functions/wcscoll_l.texi: Likewise.
43855         * doc/posix-functions/wcsdup.texi: Likewise.
43856         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43857         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43858         * doc/posix-functions/wcsnlen.texi: Likewise.
43859         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43860         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43861         * doc/posix-functions/wctrans_l.texi: Likewise.
43862         * doc/posix-functions/wctype_l.texi: Likewise.
43863         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43864         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43865         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43866         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43867         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43868         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43869         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43870         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43871         * doc/glibc-functions/wcschrnul.texi: Likewise.
43872         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43873         * doc/glibc-functions/wcstod_l.texi: Likewise.
43874         * doc/glibc-functions/wcstof_l.texi: Likewise.
43875         * doc/glibc-functions/wcstol_l.texi: Likewise.
43876         * doc/glibc-functions/wcstold_l.texi: Likewise.
43877         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43878         * doc/glibc-functions/wcstoq.texi: Likewise.
43879         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43880         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43881         * doc/glibc-functions/wcstouq.texi: Likewise.
43882         * doc/glibc-functions/wmempcpy.texi: Likewise.
43883
43884 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43885             Eric Blake  <ebb9@byu.net>
43886             Paolo Bonzini  <bonzini@gnu.org>
43887             Bruno Haible  <bruno@clisp.org>
43888
43889         Make c-stack work on Haiku.
43890         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43891         (c_stack_action): Use SA_ONSTACK flag.
43892
43893 2008-12-22  Bruno Haible  <bruno@clisp.org>
43894
43895         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43896
43897 2008-12-22  Bruno Haible  <bruno@clisp.org>
43898
43899         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43900         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43901         being overridden.
43902         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43903         New macros.
43904         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43905         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43906         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43907         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43908
43909 2008-12-22  Bruno Haible  <bruno@clisp.org>
43910
43911         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43912         from test code.
43913
43914 2008-12-22  Eric Blake  <ebb9@byu.net>
43915
43916         Avoid gcc warnings on cygwin.
43917         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43918         Avoid unused variable.
43919         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43920         Likewise.
43921
43922 2008-12-22  Bruno Haible  <bruno@clisp.org>
43923
43924         Remove HAVE_MBRTOWC conditionals.
43925         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43926         (mbscasecmp): Assume mbrtowc function.
43927         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43928         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43929         * lib/mbschr.c: Include mbuiter.h unconditionally.
43930         (mbschr): Assume mbrtowc function.
43931         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43932         (mbscspn): Assume mbrtowc function.
43933         * lib/mbslen.c: Include mbuiter.h unconditionally.
43934         (mbslen): Assume mbrtowc function.
43935         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43936         (mbsncasecmp): Assume mbrtowc function.
43937         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43938         (mbsnlen): Assume mbrtowc function.
43939         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43940         (mbspbrk): Assume mbrtowc function.
43941         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43942         (mbspcasecmp): Assume mbrtowc function.
43943         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43944         (mbsrchr): Assume mbrtowc function.
43945         * lib/mbssep.c: Include mbuiter.h unconditionally.
43946         (mbssep): Assume mbrtowc function.
43947         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43948         (mbsspn): Assume mbrtowc function.
43949         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43950         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43951         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43952         (mbstok_r): Assume mbrtowc function.
43953         * lib/propername.c: Include mbuiter.h unconditionally.
43954         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43955         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43956         (trim2): Assume mbrtowc function.
43957         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43958         (mbsnwidth): Assume mbrtowc function.
43959         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43960         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43961         fallback definitions.
43962         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43963
43964 2008-12-22  Bruno Haible  <bruno@clisp.org>
43965
43966         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43967
43968 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43969
43970         * modules/regex: Request emulations for the mb*/wc* functions we need.
43971         * m4/regex.m4: Don't look for those functions here.
43972         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43973
43974 2008-12-22  Bruno Haible  <bruno@clisp.org>
43975
43976         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43977
43978 2008-12-21  Bruno Haible  <bruno@clisp.org>
43979
43980         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43981         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43982         (Include): Remove conditionalization.
43983         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43984         (Include): Remove conditionalization.
43985         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43986         (Include): Remove conditionalization.
43987         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43988         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43989         * NEWS: Mention the change.
43990         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43991         via Sergey Poznyakoff <gray@gnu.org.ua>.
43992
43993 2008-12-21  Bruno Haible  <bruno@clisp.org>
43994
43995         * MODULES.html.sh (Extended multibyte and wide character utilities
43996         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43997         wcrtomb, wcsrtombs.
43998         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43999         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44000         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44001         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44002
44003 2008-12-21  Bruno Haible  <bruno@clisp.org>
44004
44005         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44006
44007 2008-12-21  Bruno Haible  <bruno@clisp.org>
44008
44009         * modules/wcsnrtombs-tests: New file.
44010         * tests/test-wcsnrtombs1.sh: New file.
44011         * tests/test-wcsnrtombs2.sh: New file.
44012         * tests/test-wcsnrtombs3.sh: New file.
44013         * tests/test-wcsnrtombs4.sh: New file.
44014         * tests/test-wcsnrtombs.c: New file.
44015
44016         New module 'wcsnrtombs'.
44017         * lib/wchar.in.h (wcsnrtombs): New declaration.
44018         * lib/wcsnrtombs.c: New file.
44019         * lib/wcsrtombs-state.c: New file.
44020         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44021         (internal_state): Remove variable.
44022         * m4/wcsnrtombs.m4: New file.
44023         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44024         compilation units.
44025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44026         HAVE_WCSNRTOMBS.
44027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44028         HAVE_WCSNRTOMBS.
44029         * modules/wcsnrtombs: New file.
44030         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44031         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44032
44033 2008-12-21  Bruno Haible  <bruno@clisp.org>
44034
44035         * modules/wcsrtombs-tests: New file.
44036         * tests/test-wcsrtombs1.sh: New file.
44037         * tests/test-wcsrtombs2.sh: New file.
44038         * tests/test-wcsrtombs3.sh: New file.
44039         * tests/test-wcsrtombs4.sh: New file.
44040         * tests/test-wcsrtombs.c: New file.
44041
44042         New module 'wcsrtombs'.
44043         * lib/wchar.in.h (wcsrtombs): New declaration.
44044         * lib/wcsrtombs.c: New file.
44045         * m4/wcsrtombs.m4: New file.
44046         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44047         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44049         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44050         * modules/wcsrtombs: New file.
44051         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44052         bugs.
44053
44054 2008-12-21  Bruno Haible  <bruno@clisp.org>
44055
44056         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44057         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44058         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44059         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44060         if not correct.
44061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44062         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44063         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44064         m4/locale-zh.m4, m4/codeset.m4.
44065         * doc/posix-functions/wcrtomb.texi: Document the bug.
44066
44067 2008-12-21  Bruno Haible  <bruno@clisp.org>
44068
44069         Work around a btowc() bug on IRIX 6.5.
44070         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44071         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44072         REPLACE_WTOBC if not.
44073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44074         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44075         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44076
44077 2008-12-21  Bruno Haible  <bruno@clisp.org>
44078
44079         * modules/wcrtomb-tests: New file.
44080         * tests/test-wcrtomb.sh: New file.
44081         * tests/test-wcrtomb.c: New file.
44082
44083         New module 'wcrtomb'.
44084         * lib/wchar.in.h (wcrtomb): New declaration.
44085         * lib/wcrtomb.c: New file.
44086         * m4/wcrtomb.m4: New file.
44087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44088         HAVE_WCRTOMB.
44089         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44090         HAVE_WCRTOMB.
44091         * modules/wcrtomb: New file.
44092         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44093
44094 2008-12-21  Bruno Haible  <bruno@clisp.org>
44095
44096         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44097         * modules/mbsrtowcs (Files): Likewise.
44098         * modules/wctob (Files): Likewise.
44099         * modules/c-strcase-tests (Files): Likewise.
44100         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44101         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44102         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44103         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44104         * modules/vasnprintf-posix-tests (Files): Likewise.
44105
44106 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44107
44108         gitlog-to-changelog: pass all command-line arguments to git-log
44109         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44110         it is sometimes convenient to filter the commits in various ways.
44111         gitlog-to-changelog only allows --since to specify a start date,
44112         but git-log itself supports many other filtering mechanisms.
44113         At the moment, I want to filter by branch name.  Rather than
44114         adding a --branch option to gitlog-to-changelog, it seems more
44115         flexible to simply pass all options directly to git-log and let
44116         git do the work.  Notice that this effectively makes --since a
44117         redundant option for gitlog-to-changelog, but removing it would
44118         require current usage to change since calls would then require
44119         an additional '--'.
44120
44121 2008-12-21  Bruno Haible  <bruno@clisp.org>
44122
44123         * modules/mbsnrtowcs-tests: New file.
44124         * tests/test-mbsnrtowcs1.sh: New file.
44125         * tests/test-mbsnrtowcs2.sh: New file.
44126         * tests/test-mbsnrtowcs3.sh: New file.
44127         * tests/test-mbsnrtowcs4.sh: New file.
44128         * tests/test-mbsnrtowcs.c: New file.
44129
44130         New module 'mbsnrtowcs'.
44131         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44132         * lib/mbsnrtowcs.c: New file.
44133         * lib/mbsrtowcs-state.c: New file.
44134         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44135         (internal_state): Remove variable.
44136         * m4/mbsnrtowcs.m4: New file.
44137         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44138         compilation units.
44139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44140         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44141         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44142         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44143         * modules/mbsnrtowcs: New file.
44144         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44145         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44146         portability problem.
44147
44148 2008-12-21  Bruno Haible  <bruno@clisp.org>
44149
44150         Work around mbsrtowcs bug.
44151         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44152         (gl_FUNC_MBSRTOWCS): Invoke it.
44153         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44154         m4/locale-zh.m4.
44155         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44156
44157 2008-12-21  Bruno Haible  <bruno@clisp.org>
44158
44159         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44160
44161 2008-12-21  Bruno Haible  <bruno@clisp.org>
44162
44163         Update doc for AIX.
44164         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44165         16-bit wchar_t type.
44166         * doc/posix-functions/btowc.texi: Likewise.
44167         * doc/posix-functions/fgetwc.texi: Likewise.
44168         * doc/posix-functions/fgetws.texi: Likewise.
44169         * doc/posix-functions/fputwc.texi: Likewise.
44170         * doc/posix-functions/fputws.texi: Likewise.
44171         * doc/posix-functions/fwide.texi: Likewise.
44172         * doc/posix-functions/fwprintf.texi: Likewise.
44173         * doc/posix-functions/fwscanf.texi: Likewise.
44174         * doc/posix-functions/getwchar.texi: Likewise.
44175         * doc/posix-functions/getwc.texi: Likewise.
44176         * doc/posix-functions/iswalnum.texi: Likewise.
44177         * doc/posix-functions/iswalpha.texi: Likewise.
44178         * doc/posix-functions/iswblank.texi: Likewise.
44179         * doc/posix-functions/iswcntrl.texi: Likewise.
44180         * doc/posix-functions/iswctype.texi: Likewise.
44181         * doc/posix-functions/iswdigit.texi: Likewise.
44182         * doc/posix-functions/iswgraph.texi: Likewise.
44183         * doc/posix-functions/iswlower.texi: Likewise.
44184         * doc/posix-functions/iswprint.texi: Likewise.
44185         * doc/posix-functions/iswpunct.texi: Likewise.
44186         * doc/posix-functions/iswspace.texi: Likewise.
44187         * doc/posix-functions/iswupper.texi: Likewise.
44188         * doc/posix-functions/iswxdigit.texi: Likewise.
44189         * doc/posix-functions/mbrtowc.texi: Likewise.
44190         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44191         * doc/posix-functions/mbstowcs.texi: Likewise.
44192         * doc/posix-functions/mbtowc.texi: Likewise.
44193         * doc/posix-functions/putwchar.texi: Likewise.
44194         * doc/posix-functions/putwc.texi: Likewise.
44195         * doc/posix-functions/swprintf.texi: Likewise.
44196         * doc/posix-functions/tolower.texi: Likewise.
44197         * doc/posix-functions/toupper.texi: Likewise.
44198         * doc/posix-functions/towctrans.texi: Likewise.
44199         * doc/posix-functions/ungetwc.texi: Likewise.
44200         * doc/posix-functions/vswprintf.texi: Likewise.
44201         * doc/posix-functions/wcrtomb.texi: Likewise.
44202         * doc/posix-functions/wcscat.texi: Likewise.
44203         * doc/posix-functions/wcschr.texi: Likewise.
44204         * doc/posix-functions/wcscmp.texi: Likewise.
44205         * doc/posix-functions/wcscoll.texi: Likewise.
44206         * doc/posix-functions/wcscpy.texi: Likewise.
44207         * doc/posix-functions/wcscspn.texi: Likewise.
44208         * doc/posix-functions/wcsftime.texi: Likewise.
44209         * doc/posix-functions/wcslen.texi: Likewise.
44210         * doc/posix-functions/wcsncat.texi: Likewise.
44211         * doc/posix-functions/wcsncmp.texi: Likewise.
44212         * doc/posix-functions/wcsncpy.texi: Likewise.
44213         * doc/posix-functions/wcspbrk.texi: Likewise.
44214         * doc/posix-functions/wcsrchr.texi: Likewise.
44215         * doc/posix-functions/wcsrtombs.texi: Likewise.
44216         * doc/posix-functions/wcsspn.texi: Likewise.
44217         * doc/posix-functions/wcsstr.texi: Likewise.
44218         * doc/posix-functions/wcstod.texi: Likewise.
44219         * doc/posix-functions/wcstof.texi: Likewise.
44220         * doc/posix-functions/wcstoimax.texi: Likewise.
44221         * doc/posix-functions/wcstok.texi: Likewise.
44222         * doc/posix-functions/wcstold.texi: Likewise.
44223         * doc/posix-functions/wcstoll.texi: Likewise.
44224         * doc/posix-functions/wcstol.texi: Likewise.
44225         * doc/posix-functions/wcstombs.texi: Likewise.
44226         * doc/posix-functions/wcstoull.texi: Likewise.
44227         * doc/posix-functions/wcstoul.texi: Likewise.
44228         * doc/posix-functions/wcstoumax.texi: Likewise.
44229         * doc/posix-functions/wcswidth.texi: Likewise.
44230         * doc/posix-functions/wcsxfrm.texi: Likewise.
44231         * doc/posix-functions/wctob.texi: Likewise.
44232         * doc/posix-functions/wctomb.texi: Likewise.
44233         * doc/posix-functions/wctrans.texi: Likewise.
44234         * doc/posix-functions/wctype.texi: Likewise.
44235         * doc/posix-functions/wcwidth.texi: Likewise.
44236         * doc/posix-functions/wmemchr.texi: Likewise.
44237         * doc/posix-functions/wmemcmp.texi: Likewise.
44238         * doc/posix-functions/wmemcpy.texi: Likewise.
44239         * doc/posix-functions/wmemmove.texi: Likewise.
44240         * doc/posix-functions/wmemset.texi: Likewise.
44241         * doc/posix-functions/wprintf.texi: Likewise.
44242         * doc/posix-functions/wscanf.texi: Likewise.
44243
44244 2008-12-21  Bruno Haible  <bruno@clisp.org>
44245
44246         Update doc for HP-UX 11.11.
44247         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44248         in HP-UX version 11.00, not in all versions of HP-UX 11.
44249         * doc/posix-functions/fwide.texi: Likewise.
44250         * doc/posix-functions/fwprintf.texi: Likewise.
44251         * doc/posix-functions/fwscanf.texi: Likewise.
44252         * doc/posix-functions/inet_ntop.texi: Likewise.
44253         * doc/posix-functions/inet_pton.texi: Likewise.
44254         * doc/posix-functions/mbrlen.texi: Likewise.
44255         * doc/posix-functions/mbrtowc.texi: Likewise.
44256         * doc/posix-functions/mbsinit.texi: Likewise.
44257         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44258         * doc/posix-functions/swprintf.texi: Likewise.
44259         * doc/posix-functions/swscanf.texi: Likewise.
44260         * doc/posix-functions/towctrans.texi: Likewise.
44261         * doc/posix-functions/vfwprintf.texi: Likewise.
44262         * doc/posix-functions/vswprintf.texi: Likewise.
44263         * doc/posix-functions/vwprintf.texi: Likewise.
44264         * doc/posix-functions/wcrtomb.texi: Likewise.
44265         * doc/posix-functions/wcsrtombs.texi: Likewise.
44266         * doc/posix-functions/wcsstr.texi: Likewise.
44267         * doc/posix-functions/wctob.texi: Likewise.
44268         * doc/posix-functions/wctrans.texi: Likewise.
44269         * doc/posix-functions/wmemchr.texi: Likewise.
44270         * doc/posix-functions/wmemcmp.texi: Likewise.
44271         * doc/posix-functions/wmemcpy.texi: Likewise.
44272         * doc/posix-functions/wmemmove.texi: Likewise.
44273         * doc/posix-functions/wmemset.texi: Likewise.
44274         * doc/posix-functions/wprintf.texi: Likewise.
44275         * doc/posix-functions/wscanf.texi: Likewise.
44276
44277 2008-12-21  Bruno Haible  <bruno@clisp.org>
44278
44279         Work around a portability problem.
44280         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44281         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44282
44283 2008-12-20  Bruno Haible  <bruno@clisp.org>
44284
44285         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44286         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44287         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44289         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44290
44291         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44292         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44293         set.
44294         (GNULIB_defined_mbstate_t): New macro.
44295         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44296         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44297         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44298         reuses the system's mbrtowc function but works around the bugs.
44299         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44300         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44301         macros.
44302         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44303         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44304         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44305         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44306         REPLACE_MBSINIT if mbsinit needs to be overridden.
44307         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44308         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44309         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44310         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44311         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44312         m4/locale-zh.m4.
44313         (Depends): Add mbsinit.
44314         * modules/mbsinit (Depends): Add mbrtowc.
44315         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44316
44317 2008-12-20  Bruno Haible  <bruno@clisp.org>
44318
44319         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44320         so that there are no conversion errors on AIX.
44321         * tests/test-mbsrtowcs.c (main): LIkewise.
44322
44323 2008-12-20  Bruno Haible  <bruno@clisp.org>
44324
44325         Work around wctob bug on Solaris <= 9.
44326         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44327         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44329         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44330         * modules/wctob (Files): Add m4/locale-fr.m4.
44331         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44332
44333 2008-12-20  Bruno Haible  <bruno@clisp.org>
44334
44335         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44336         /dev/null.
44337         * tests/test-select-in.sh: Likewise.
44338         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44339
44340 2008-12-20  Bruno Haible  <bruno@clisp.org>
44341
44342         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44343         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44344         Cygwin 1.5.x.
44345
44346 2008-12-20  Bruno Haible  <bruno@clisp.org>
44347
44348         Ensure mbstate_t is defined on HP-UX 11.11.
44349         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44350         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44351         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44352         AC_USE_SYSTEM_EXTENSIONS.
44353         * modules/fnmatch (Depends-on): Add extensions.
44354         * modules/mbrlen (Depends-on): Likewise.
44355         * modules/mbrtowc (Depends-on): Likewise.
44356         * modules/mbsinit (Depends-on): Likewise.
44357         * modules/mbsrtowcs (Depends-on): Likewise.
44358         * modules/mbswidth (Depends-on): Likewise.
44359         * modules/quotearg (Depends-on): Likewise.
44360         * modules/strftime (Depends-on): Likewise.
44361
44362 2008-12-20  Bruno Haible  <bruno@clisp.org>
44363
44364         Ensure wctob is declared on IRIX 6.5.
44365         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44366         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44367         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44369         of HAVE_WCTOB.
44370         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44371         HAVE_WCTOB.
44372         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44373
44374 2008-12-19  Bruno Haible  <bruno@clisp.org>
44375
44376         * modules/mbsrtowcs-tests: New file.
44377         * tests/test-mbsrtowcs1.sh: New file.
44378         * tests/test-mbsrtowcs2.sh: New file.
44379         * tests/test-mbsrtowcs3.sh: New file.
44380         * tests/test-mbsrtowcs4.sh: New file.
44381         * tests/test-mbsrtowcs.c: New file.
44382
44383         New module 'mbsrtowcs'.
44384         * lib/wchar.in.h (mbsrtowcs): New declaration.
44385         * lib/mbsrtowcs.c: New file.
44386         * m4/mbsrtowcs.m4: New file.
44387         * modules/mbsrtowcs: New file.
44388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44389         HAVE_MBSRTOWCS.
44390         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44391         HAVE_MBSRTOWCS.
44392         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44393
44394 2008-12-19  Bruno Haible  <bruno@clisp.org>
44395
44396         New module 'mbrlen'.
44397         * lib/wchar.in.h (mbrlen): New declaration.
44398         * lib/mbrlen.c: New file.
44399         * m4/mbrlen.m4: New file.
44400         * modules/mbrlen: New file.
44401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44402         HAVE_MBRLEN.
44403         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44404         HAVE_MBRLEN.
44405         * doc/posix-functions/mbrlen.texi: Document the new module.
44406
44407 2008-12-19  Bruno Haible  <bruno@clisp.org>
44408
44409         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44410         * modules/mbrtowc (Depends-on): Add verify.
44411         Suggested by Paul Eggert.
44412
44413 2008-12-18  Bruno Haible  <bruno@clisp.org>
44414
44415         * modules/mbsinit-tests: New file.
44416         * tests/test-mbsinit.sh: New file.
44417         * tests/test-mbsinit.c: New file.
44418
44419 2008-12-18  Bruno Haible  <bruno@clisp.org>
44420
44421         * modules/mbrtowc-tests: New file.
44422         * tests/test-mbrtowc1.sh: New file.
44423         * tests/test-mbrtowc2.sh: New file.
44424         * tests/test-mbrtowc3.sh: New file.
44425         * tests/test-mbrtowc4.sh: New file.
44426         * tests/test-mbrtowc.c: New file.
44427
44428         New module 'mbrtowc'.
44429         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44430         mbsinit and mbrtowc.
44431         (mbrtowc): New declaration.
44432         * lib/mbrtowc.c: New file.
44433         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44434         * modules/mbrtowc: New file.
44435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44436         HAVE_MBRTOWC.
44437         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44438         HAVE_MBRTOWC.
44439         * doc/posix-functions/mbrtowc.texi: Document the new module.
44440
44441 2008-12-18  Bruno Haible  <bruno@clisp.org>
44442
44443         New module 'wctob'.
44444         * lib/wchar.in.h (wctob): New declaration.
44445         * lib/wctob.c: New file.
44446         * m4/wctob.m4: New file.
44447         * modules/wctob: New file.
44448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44449         HAVE_WCTOB.
44450         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44451         * doc/posix-functions/wctob.texi: Document the new module.
44452
44453 2008-12-18  Bruno Haible  <bruno@clisp.org>
44454
44455         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44456         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44457
44458 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44459
44460         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44461         G. Christensen" <tgc@jupiterrise.com>.
44462
44463         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44464         G. Christensen" <tgc@jupiterrise.com>.
44465
44466         * lib/flock.c: Need to include string.h.  Reported by "Tom
44467         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44468         <ebb9@byu.net>.
44469
44470 2008-12-18  Bruno Haible  <bruno@clisp.org>
44471
44472         * m4/locale-ja.m4: New file, from GNU gettext.
44473
44474 2008-12-17  Bruno Haible  <bruno@clisp.org>
44475
44476         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44477         Suggested by Eric Blake.
44478
44479 2008-12-17  Bruno Haible  <bruno@clisp.org>
44480
44481         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44482
44483 2008-12-17  Bruno Haible  <bruno@clisp.org>
44484
44485         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44486         * modules/mbsinit (Depends-on): Add verify.
44487         Suggested by Paul Eggert.
44488
44489 2008-12-17  Bruno Haible  <bruno@clisp.org>
44490
44491         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44492         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44493         gl_FUNC_MBRTOWC.
44494         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44495         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44496         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44497         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44498         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44499         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44500         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44501         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44502         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44503         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44504         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44505         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44506         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44507         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44508         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44509         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44510         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44511         * modules/trim (configure.ac): Likewise.
44512
44513 2008-12-17  Bruno Haible  <bruno@clisp.org>
44514
44515         * modules/btowc-tests: New file.
44516         * tests/test-btowc1.sh: New file.
44517         * tests/test-btowc2.sh: New file.
44518         * tests/test-btowc.c: New file.
44519
44520         New module 'btowc'.
44521         * lib/wchar.in.h (btowc): New declaration.
44522         * lib/btowc.c: New file.
44523         * m4/btowc.m4: New file.
44524         * modules/btowc: New file.
44525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44526         HAVE_BTOWC.
44527         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44528         * doc/posix-functions/btowc.texi: Document the new module.
44529
44530 2008-12-17  Bruno Haible  <bruno@clisp.org>
44531
44532         New module 'mbsinit'.
44533         * lib/wchar.in.h (mbsinit): New declaration.
44534         * lib/mbsinit.c: New file.
44535         * m4/mbsinit.m4: New file.
44536         * modules/mbsinit: New file.
44537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44538         HAVE_MBSINIT.
44539         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44540         HAVE_MBSINIT.
44541         * doc/posix-functions/mbsinit.texi: Document the new module.
44542
44543 2008-12-16  Bruno Haible  <bruno@clisp.org>
44544
44545         * lib/unistd.in.h: Add comment.
44546         * tests/test-environ.c: Don't include <stdlib.h>.
44547
44548 2008-12-16  Bruno Haible  <bruno@clisp.org>
44549
44550         * lib/parse-duration.h (parse_duration): Document return value
44551         convention.
44552         * lib/parse-duration.c: Include specification header first. Add
44553         comments.
44554         (_): Remove macro.
44555         (parse_year_month_day, parse_hour_minute_second): Move side effects
44556         outside of strchr call.
44557         (parse_non_iso8601): Move side effects outside of isspace call.
44558         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44559         call.
44560
44561 2008-12-16  Bruno Haible  <bruno@clisp.org>
44562
44563         * tests/test-parse-duration.sh: Produce no output when the test
44564         succeeds.
44565
44566 2008-12-16  Bruno Haible  <bruno@clisp.org>
44567
44568         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44569         expressions.
44570
44571 2008-12-15  Bruno Haible  <bruno@clisp.org>
44572
44573         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44574         * doc/glibc-functions/flistxattr.texi: Likewise.
44575         * doc/glibc-functions/fopencookie.texi: Likewise.
44576         * doc/glibc-functions/fremovexattr.texi: Likewise.
44577         * doc/glibc-functions/fsetxattr.texi: Likewise.
44578         * doc/glibc-functions/getxattr.texi: Likewise.
44579         * doc/glibc-functions/lgetxattr.texi: Likewise.
44580         * doc/glibc-functions/listxattr.texi: Likewise.
44581         * doc/glibc-functions/llistxattr.texi: Likewise.
44582         * doc/glibc-functions/lremovexattr.texi: Likewise.
44583         * doc/glibc-functions/lsetxattr.texi: Likewise.
44584         * doc/glibc-functions/removexattr.texi: Likewise.
44585         * doc/glibc-functions/setxattr.texi: Likewise.
44586         * doc/posix-functions/open_memstream.texi: Likewise.
44587
44588 2008-12-15  Eric Blake  <ebb9@byu.net>
44589
44590         Update doc for cygwin 1.7.
44591         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44592         functions.
44593         * doc/posix-functions/fchmodat.texi: Likewise.
44594         * doc/posix-functions/fchownat.texi: Likewise.
44595         * doc/posix-functions/fdopendir.texi: Likewise.
44596         * doc/posix-functions/fmemopen.texi: Likewise.
44597         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44598         * doc/posix-functions/fstatat.texi: Likewise.
44599         * doc/posix-functions/futimens.texi: Likewise.
44600         * doc/posix-functions/gai_strerror.texi: Likewise.
44601         * doc/posix-functions/getaddrinfo.texi: Likewise.
44602         * doc/posix-functions/getnameinfo.texi: Likewise.
44603         * doc/posix-functions/if_freenameindex.texi: Likewise.
44604         * doc/posix-functions/if_indextoname.texi: Likewise.
44605         * doc/posix-functions/if_nameindex.texi: Likewise.
44606         * doc/posix-functions/if_nametoindex.texi: Likewise.
44607         * doc/posix-functions/insque.texi: Likewise.
44608         * doc/posix-functions/linkat.texi: Likewise.
44609         * doc/posix-functions/llrint.texi: Likewise.
44610         * doc/posix-functions/llrintf.texi: Likewise.
44611         * doc/posix-functions/llrintl.texi: Likewise.
44612         * doc/posix-functions/lockf.texi: Likewise.
44613         * doc/posix-functions/lrintl.texi: Likewise.
44614         * doc/posix-functions/mkdirat.texi: Likewise.
44615         * doc/posix-functions/mkfifoat.texi: Likewise.
44616         * doc/posix-functions/mknodat.texi: Likewise.
44617         * doc/posix-functions/mq_close.texi: Likewise.
44618         * doc/posix-functions/mq_getattr.texi: Likewise.
44619         * doc/posix-functions/mq_notify.texi: Likewise.
44620         * doc/posix-functions/mq_open.texi: Likewise.
44621         * doc/posix-functions/mq_receive.texi: Likewise.
44622         * doc/posix-functions/mq_send.texi: Likewise.
44623         * doc/posix-functions/mq_setattr.texi: Likewise.
44624         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44625         * doc/posix-functions/mq_timedsend.texi: Likewise.
44626         * doc/posix-functions/mq_unlink.texi: Likewise.
44627         * doc/posix-functions/open_memstream.texi: Likewise.
44628         * doc/posix-functions/openat.texi: Likewise.
44629         * doc/posix-functions/posix_fadvise.texi: Likewise.
44630         * doc/posix-functions/posix_fallocate.texi: Likewise.
44631         * doc/posix-functions/posix_madvise.texi: Likewise.
44632         * doc/posix-functions/posix_memalign.texi: Likewise.
44633         * doc/posix-functions/posix_openpt.texi: Likewise.
44634         * doc/posix-functions/readlinkat.texi: Likewise.
44635         * doc/posix-functions/remque.texi: Likewise.
44636         * doc/posix-functions/renameat.texi: Likewise.
44637         * doc/posix-functions/rintl.texi: Likewise.
44638         * doc/posix-functions/sem_unlink.texi: Likewise.
44639         * doc/posix-functions/shm_open.texi: Likewise.
44640         * doc/posix-functions/shm_unlink.texi: Likewise.
44641         * doc/posix-functions/signgam.texi: Likewise.
44642         * doc/posix-functions/sigset.texi: Likewise.
44643         * doc/posix-functions/stpcpy.texi: Likewise.
44644         * doc/posix-functions/stpncpy.texi: Likewise.
44645         * doc/posix-functions/strerror.texi: Likewise.
44646         * doc/posix-functions/strtod.texi: Likewise.
44647         * doc/posix-functions/symlinkat.texi: Likewise.
44648         * doc/posix-functions/unlinkat.texi: Likewise.
44649         * doc/posix-functions/utimensat.texi: Likewise.
44650         * doc/glibc-functions/bindresvport.texi: Likewise.
44651         * doc/glibc-functions/dn_expand.texi: Likewise.
44652         * doc/glibc-functions/exp10.texi: Likewise.
44653         * doc/glibc-functions/exp10f.texi: Likewise.
44654         * doc/glibc-functions/fgetxattr.texi: Likewise.
44655         * doc/glibc-functions/flistxattr.texi: Likewise.
44656         * doc/glibc-functions/fopencookie.texi: Likewise.
44657         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44658         * doc/glibc-functions/fremovexattr.texi: Likewise.
44659         * doc/glibc-functions/fsetxattr.texi: Likewise.
44660         * doc/glibc-functions/getifaddrs.texi: Likewise.
44661         * doc/glibc-functions/getxattr.texi: Likewise.
44662         * doc/glibc-functions/lgetxattr.texi: Likewise.
44663         * doc/glibc-functions/listxattr.texi: Likewise.
44664         * doc/glibc-functions/llistxattr.texi: Likewise.
44665         * doc/glibc-functions/lremovexattr.texi: Likewise.
44666         * doc/glibc-functions/lsetxattr.texi: Likewise.
44667         * doc/glibc-functions/pow10.texi: Likewise.
44668         * doc/glibc-functions/pow10f.texi: Likewise.
44669         * doc/glibc-functions/rcmd_af.texi: Likewise.
44670         * doc/glibc-functions/removexattr.texi: Likewise.
44671         * doc/glibc-functions/res_init.texi: Likewise.
44672         * doc/glibc-functions/res_mkquery.texi: Likewise.
44673         * doc/glibc-functions/res_query.texi: Likewise.
44674         * doc/glibc-functions/res_querydomain.texi: Likewise.
44675         * doc/glibc-functions/res_send.texi: Likewise.
44676         * doc/glibc-functions/rresvport_af.texi: Likewise.
44677         * doc/glibc-functions/setxattr.texi: Likewise.
44678         * doc/glibc-functions/strcasestr.texi: Likewise.
44679
44680 2008-12-15  Bruno Haible  <bruno@clisp.org>
44681
44682         Fix compilation error on OSF/1 4.0.
44683         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44684         <sys/time.h>, simply delegate to the system header.
44685         Reported by Daniel Richard G. <oss@teragram.com>.
44686
44687 2008-12-15  Bruno Haible  <bruno@clisp.org>
44688
44689         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44690         * doc/posix-functions/fchmodat.texi: Likewise.
44691         * doc/posix-functions/fchownat.texi: Likewise.
44692         * doc/posix-functions/fdopendir.texi: Likewise.
44693         * doc/posix-functions/fstatat.texi: Likewise.
44694         * doc/posix-functions/mkdirat.texi: Likewise.
44695         * doc/posix-functions/unlinkat.texi: Likewise.
44696
44697 2008-12-14  Bruno Haible  <bruno@clisp.org>
44698
44699         Update doc for POSIX:2008.
44700         * doc/posix-functions/faccessat.texi: New file.
44701         * doc/posix-functions/fchmodat.texi: New file.
44702         * doc/posix-functions/fchownat.texi: New file.
44703         * doc/posix-functions/fdopendir.texi: New file.
44704         * doc/posix-functions/fstatat.texi: New file.
44705         * doc/posix-functions/futimens.texi: New file.
44706         * doc/posix-functions/linkat.texi: New file.
44707         * doc/posix-functions/mkdirat.texi: New file.
44708         * doc/posix-functions/mkfifoat.texi: New file.
44709         * doc/posix-functions/mknodat.texi: New file.
44710         * doc/posix-functions/open_wmemstream.texi: New file.
44711         * doc/posix-functions/openat.texi: New file.
44712         * doc/posix-functions/psiginfo.texi: New file.
44713         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44714         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44715         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44716         * doc/posix-functions/readlinkat.texi: New file.
44717         * doc/posix-functions/renameat.texi: New file.
44718         * doc/posix-functions/strerror_l.texi: New file.
44719         * doc/posix-functions/symlinkat.texi: New file.
44720         * doc/posix-functions/unlinkat.texi: New file.
44721         * doc/posix-functions/utimensat.texi: New file.
44722         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44723
44724 2008-12-14  Bruno Haible  <bruno@clisp.org>
44725
44726         Update doc for POSIX:2008.
44727         * doc/posix-functions/alphasort.texi: Renamed from
44728         doc/glibc-functions/alphasort.texi.
44729         * doc/posix-functions/dirfd.texi: Renamed from
44730         doc/glibc-functions/dirfd.texi.
44731         * doc/posix-functions/dprintf.texi: Renamed from
44732         doc/glibc-functions/dprintf.texi.
44733         * doc/posix-functions/duplocale.texi: Renamed from
44734         doc/glibc-functions/duplocale.texi.
44735         * doc/posix-functions/fexecve.texi: Renamed from
44736         doc/glibc-functions/fexecve.texi.
44737         * doc/posix-functions/fmemopen.texi: Renamed from
44738         doc/glibc-functions/fmemopen.texi.
44739         * doc/posix-functions/freelocale.texi: Renamed from
44740         doc/glibc-functions/freelocale.texi.
44741         * doc/posix-functions/getdate_err.texi: Renamed from
44742         doc/glibc-functions/getdate_err.texi.
44743         * doc/posix-functions/isalnum_l.texi: Renamed from
44744         doc/glibc-functions/isalnum_l.texi.
44745         * doc/posix-functions/isalpha_l.texi: Renamed from
44746         doc/glibc-functions/isalpha_l.texi.
44747         * doc/posix-functions/isblank_l.texi: Renamed from
44748         doc/glibc-functions/isblank_l.texi.
44749         * doc/posix-functions/iscntrl_l.texi: Renamed from
44750         doc/glibc-functions/iscntrl_l.texi.
44751         * doc/posix-functions/isdigit_l.texi: Renamed from
44752         doc/glibc-functions/isdigit_l.texi.
44753         * doc/posix-functions/isgraph_l.texi: Renamed from
44754         doc/glibc-functions/isgraph_l.texi.
44755         * doc/posix-functions/islower_l.texi: Renamed from
44756         doc/glibc-functions/islower_l.texi.
44757         * doc/posix-functions/isprint_l.texi: Renamed from
44758         doc/glibc-functions/isprint_l.texi.
44759         * doc/posix-functions/ispunct_l.texi: Renamed from
44760         doc/glibc-functions/ispunct_l.texi.
44761         * doc/posix-functions/isspace_l.texi: Renamed from
44762         doc/glibc-functions/isspace_l.texi.
44763         * doc/posix-functions/isupper_l.texi: Renamed from
44764         doc/glibc-functions/isupper_l.texi.
44765         * doc/posix-functions/iswalnum_l.texi: Renamed from
44766         doc/glibc-functions/iswalnum_l.texi.
44767         * doc/posix-functions/iswalpha_l.texi: Renamed from
44768         doc/glibc-functions/iswalpha_l.texi.
44769         * doc/posix-functions/iswblank_l.texi: Renamed from
44770         doc/glibc-functions/iswblank_l.texi.
44771         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44772         doc/glibc-functions/iswcntrl_l.texi.
44773         * doc/posix-functions/iswctype_l.texi: Renamed from
44774         doc/glibc-functions/iswctype_l.texi.
44775         * doc/posix-functions/iswdigit_l.texi: Renamed from
44776         doc/glibc-functions/iswdigit_l.texi.
44777         * doc/posix-functions/iswgraph_l.texi: Renamed from
44778         doc/glibc-functions/iswgraph_l.texi.
44779         * doc/posix-functions/iswlower_l.texi: Renamed from
44780         doc/glibc-functions/iswlower_l.texi.
44781         * doc/posix-functions/iswprint_l.texi: Renamed from
44782         doc/glibc-functions/iswprint_l.texi.
44783         * doc/posix-functions/iswpunct_l.texi: Renamed from
44784         doc/glibc-functions/iswpunct_l.texi.
44785         * doc/posix-functions/iswspace_l.texi: Renamed from
44786         doc/glibc-functions/iswspace_l.texi.
44787         * doc/posix-functions/iswupper_l.texi: Renamed from
44788         doc/glibc-functions/iswupper_l.texi.
44789         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44790         doc/glibc-functions/iswxdigit_l.texi.
44791         * doc/posix-functions/isxdigit_l.texi: Renamed from
44792         doc/glibc-functions/isxdigit_l.texi.
44793         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44794         doc/glibc-functions/mbsnrtowcs.texi.
44795         * doc/posix-functions/mkdtemp.texi: Renamed from
44796         doc/glibc-functions/mkdtemp.texi.
44797         * doc/posix-functions/newlocale.texi: Renamed from
44798         doc/glibc-functions/newlocale.texi.
44799         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44800         doc/glibc-functions/nl_langinfo_l.texi.
44801         * doc/posix-functions/open_memstream.texi: Renamed from
44802         doc/glibc-functions/open_memstream.texi.
44803         * doc/posix-functions/opterr.texi: Renamed from
44804         doc/glibc-functions/opterr.texi.
44805         * doc/posix-functions/optind.texi: Renamed from
44806         doc/glibc-functions/optind.texi.
44807         * doc/posix-functions/optopt.texi: Renamed from
44808         doc/glibc-functions/optopt.texi.
44809         * doc/posix-functions/psignal.texi: Renamed from
44810         doc/glibc-functions/psignal.texi.
44811         * doc/posix-functions/scandir.texi: Renamed from
44812         doc/glibc-functions/scandir.texi.
44813         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44814         doc/glibc-functions/sched_get_priority_min.texi.
44815         * doc/posix-functions/signgam.texi: Renamed from
44816         doc/glibc-functions/signgam.texi.
44817         * doc/posix-functions/stpcpy.texi: Renamed from
44818         doc/glibc-functions/stpcpy.texi.
44819         * doc/posix-functions/stpncpy.texi: Renamed from
44820         doc/glibc-functions/stpncpy.texi.
44821         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44822         doc/glibc-functions/strcasecmp_l.texi.
44823         * doc/posix-functions/strcoll_l.texi: Renamed from
44824         doc/glibc-functions/strcoll_l.texi.
44825         * doc/posix-functions/strfmon_l.texi: Renamed from
44826         doc/glibc-functions/strfmon_l.texi.
44827         * doc/posix-functions/strftime_l.texi: Renamed from
44828         doc/glibc-functions/strftime_l.texi.
44829         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44830         doc/glibc-functions/strncasecmp_l.texi.
44831         * doc/posix-functions/strndup.texi: Renamed from
44832         doc/glibc-functions/strndup.texi.
44833         * doc/posix-functions/strnlen.texi: Renamed from
44834         doc/glibc-functions/strnlen.texi.
44835         * doc/posix-functions/strsignal.texi: Renamed from
44836         doc/glibc-functions/strsignal.texi.
44837         * doc/posix-functions/strxfrm_l.texi: Renamed from
44838         doc/glibc-functions/strxfrm_l.texi.
44839         * doc/posix-functions/timer_gettime.texi: Renamed from
44840         doc/glibc-functions/timer_gettime.texi.
44841         * doc/posix-functions/tolower_l.texi: Renamed from
44842         doc/glibc-functions/tolower_l.texi.
44843         * doc/posix-functions/toupper_l.texi: Renamed from
44844         doc/glibc-functions/toupper_l.texi.
44845         * doc/posix-functions/towctrans_l.texi: Renamed from
44846         doc/glibc-functions/towctrans_l.texi.
44847         * doc/posix-functions/towlower_l.texi: Renamed from
44848         doc/glibc-functions/towlower_l.texi.
44849         * doc/posix-functions/towupper_l.texi: Renamed from
44850         doc/glibc-functions/towupper_l.texi.
44851         * doc/posix-functions/uselocale.texi: Renamed from
44852         doc/glibc-functions/uselocale.texi.
44853         * doc/posix-functions/vdprintf.texi: Renamed from
44854         doc/glibc-functions/vdprintf.texi.
44855         * doc/posix-functions/wcpcpy.texi:
44856         Renamed from doc/glibc-functions/wcpcpy.texi.
44857         * doc/posix-functions/wcpncpy.texi: Renamed from
44858         doc/glibc-functions/wcpncpy.texi.
44859         * doc/posix-functions/wcscasecmp.texi: Renamed from
44860         doc/glibc-functions/wcscasecmp.texi.
44861         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44862         doc/glibc-functions/wcscasecmp_l.texi.
44863         * doc/posix-functions/wcscoll_l.texi: Renamed from
44864         doc/glibc-functions/wcscoll_l.texi.
44865         * doc/posix-functions/wcsdup.texi: Renamed from
44866         doc/glibc-functions/wcsdup.texi.
44867         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44868         doc/glibc-functions/wcsncasecmp.texi.
44869         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44870         doc/glibc-functions/wcsncasecmp_l.texi.
44871         * doc/posix-functions/wcsnlen.texi: Renamed from
44872         doc/glibc-functions/wcsnlen.texi.
44873         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44874         doc/glibc-functions/wcsnrtombs.texi.
44875         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44876         doc/glibc-functions/wcsxfrm_l.texi.
44877         * doc/posix-functions/wctrans_l.texi: Renamed from
44878         doc/glibc-functions/wctrans_l.texi.
44879         * doc/posix-functions/wctype_l.texi: Renamed from
44880         doc/glibc-functions/wctype_l.texi.
44881         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44882         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44883         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44884         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44885         these subsections.
44886         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44887         Remove sections.
44888
44889 2008-12-14  Bruno Haible  <bruno@clisp.org>
44890
44891         Update doc for POSIX:2008.
44892         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44893
44894 2008-12-14  Bruno Haible  <bruno@clisp.org>
44895
44896         Update doc for POSIX:2008.
44897         * doc/pastposix-functions/bcmp.texi: Renamed from
44898         doc/posix-functions/bcmp.texi.
44899         * doc/pastposix-functions/bcopy.texi: Renamed from
44900         doc/posix-functions/bcopy.texi.
44901         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44902         doc/posix-functions/bsd_signal.texi.
44903         * doc/pastposix-functions/bzero.texi: Renamed from
44904         doc/posix-functions/bzero.texi.
44905         * doc/pastposix-functions/ecvt.texi: Renamed from
44906         doc/posix-functions/ecvt.texi.
44907         * doc/pastposix-functions/fcvt.texi: Renamed from
44908         doc/posix-functions/fcvt.texi.
44909         * doc/pastposix-functions/ftime.texi: Renamed from
44910         doc/posix-functions/ftime.texi.
44911         * doc/pastposix-functions/gcvt.texi: Renamed from
44912         doc/posix-functions/gcvt.texi.
44913         * doc/pastposix-functions/getcontext.texi: Renamed from
44914         doc/posix-functions/getcontext.texi.
44915         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44916         doc/posix-functions/gethostbyaddr.texi.
44917         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44918         doc/posix-functions/gethostbyname.texi.
44919         * doc/pastposix-functions/getwd.texi: Renamed from
44920         doc/posix-functions/getwd.texi.
44921         * doc/pastposix-functions/h_errno.texi: Renamed from
44922         doc/posix-functions/h_errno.texi.
44923         * doc/pastposix-functions/index.texi: Renamed from
44924         doc/posix-functions/index.texi.
44925         * doc/pastposix-functions/makecontext.texi: Renamed from
44926         doc/posix-functions/makecontext.texi.
44927         * doc/pastposix-functions/mktemp.texi: Renamed from
44928         doc/posix-functions/mktemp.texi.
44929         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44930         doc/posix-functions/pthread_attr_getstackaddr.texi.
44931         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44932         doc/posix-functions/pthread_attr_setstackaddr.texi.
44933         * doc/pastposix-functions/rindex.texi: Renamed from
44934         doc/posix-functions/rindex.texi.
44935         * doc/pastposix-functions/scalb.texi: Renamed from
44936         doc/posix-functions/scalb.texi.
44937         * doc/pastposix-functions/setcontext.texi: Renamed from
44938         doc/posix-functions/setcontext.texi.
44939         * doc/pastposix-functions/swapcontext.texi: Renamed from
44940         doc/posix-functions/swapcontext.texi.
44941         * doc/pastposix-functions/ualarm.texi: Renamed from
44942         doc/posix-functions/ualarm.texi.
44943         * doc/pastposix-functions/usleep.texi: Renamed from
44944         doc/posix-functions/usleep.texi.
44945         * doc/pastposix-functions/vfork.texi: Renamed from
44946         doc/posix-functions/vfork.texi.
44947         * doc/pastposix-functions/wcswcs.texi: Renamed from
44948         doc/posix-functions/wcswcs.texi.
44949         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44950         (Function Substitutes): Update.
44951
44952 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44953
44954         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44955         m4/strerror.m4.
44956
44957 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44958             Bruno Haible  <bruno@clisp.org>
44959
44960         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44961
44962 2008-12-13  Bruno Haible  <bruno@clisp.org>
44963
44964         * modules/strtoull (Depends-on): Remove unistd.
44965
44966 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44967
44968         * modules/strtoull (Depends-on): Add stdlib.
44969
44970 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44971
44972         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44973
44974 2008-12-10  Jim Meyering  <meyering@redhat.com>
44975
44976         gl_ASSERT: don't say assertions are disabled when they're not
44977         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44978         "checking whether to enable assertions... no", when they are in
44979         fact enabled.  This is solely a bug in the output of configure.
44980         In spite of saying "no", NDEBUG was not defined in that case.
44981         Also, as noted by Eric Blake, leave assertions enabled upon
44982         --enable-assert=INVALID.
44983
44984 2008-12-10  Bruno Haible  <bruno@clisp.org>
44985
44986         Change MODULES.html to refer to POSIX:2008 where possible.
44987         * MODULES.html.sh (POSIX2008_URL): New variable.
44988         (posix_headers): Remove sys/timeb, ucontext.
44989         (posix2001_headers): New variable.
44990         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44991         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44992         index, makecontext, mktemp, pthread_attr_getstackaddr,
44993         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44994         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44995         (posix2001_functions): New variable.
44996         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44997         otherwise.
44998
44999 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45000
45001         add missing include to parse-duration.c
45002         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45003         * modules/parse-duration (Depends-on): Add xalloc.
45004
45005         fix sed script reading maint.mk
45006         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45007         (syntax-check-rules): Use it.
45008
45009 2008-12-09  Bruno Haible  <bruno@clisp.org>
45010
45011         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45012         MacOS X 10.4/PowerPC.
45013         Reported by Simon Josefsson.
45014
45015 2008-12-08  Jim Meyering  <meyering@redhat.com>
45016
45017         work around mingw's lack of some S_IF definitions
45018         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45019         Reported by Simon Josefsson.
45020
45021 2008-12-08  Bruno Haible  <bruno@clisp.org>
45022
45023         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45024         applied to variables. Needed on MacOS X 10.4/PowerPC.
45025         Reported by Simon Josefsson.
45026
45027 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45028         and Eric Blake  <ebb9@byu.net>
45029
45030         assert: honor --enable-assert
45031         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45032         order to honor --enable-assert, rather than treating it as a
45033         synonym for --disable-assert.
45034
45035 2008-12-08  Jim Meyering  <meyering@redhat.com>
45036
45037         * lib/posixtm.c: Remove now-useless declaration of mktime.
45038
45039         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45040
45041 2008-12-07  Bruno Haible  <bruno@clisp.org>
45042
45043         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45044         test_once): Mark functions as static.
45045         * tests/test-tls.c (test_tls): Likewise.
45046
45047 2008-12-07  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45050         iconv_register_autodetect.
45051
45052 2008-12-07  Jim Meyering  <meyering@redhat.com>
45053
45054         posixtm.c: avoid a warning
45055         * lib/posixtm.c (posixtime): Don't initialize tm0.
45056         It's no longer needed to placate gcc4's -Wuninitialized,
45057         and the attempt to placate would elicit a new warning.
45058
45059         unicodeio.c: mark unused parameters
45060         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45061         (fallback_failure_callback): Likewise.
45062
45063 2008-12-07  Bruno Haible  <bruno@clisp.org>
45064
45065         * gnulib-tool (func_create_testdir): When building the tests
45066         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45067         Reported by Simon Josefsson.
45068
45069 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45070
45071         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45072
45073 2008-12-06  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45076         Suggested by Eric Blake.
45077
45078 2008-12-06  Bruno Haible  <bruno@clisp.org>
45079
45080         Fix a c-stack test failure on MacOS X.
45081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45082         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45083         handler for SIGBUS as well.
45084         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45085         install a signal handler for SIGBUS as well.
45086         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45087
45088 2008-12-06  Bruno Haible  <bruno@clisp.org>
45089
45090         Advocacy documentation.
45091         * doc/gnulib-intro.texi (Benefits): New section.
45092         * doc/gnulib.texi: Update.
45093
45094 2008-12-06  Bruno Haible  <bruno@clisp.org>
45095
45096         Document the 'manywarnings' module.
45097         * doc/manywarnings.texi: New file.
45098         * doc/gnulib.texi: Include it.
45099
45100 2008-12-05  Eric Blake  <ebb9@byu.net>
45101
45102         tests: silence some gcc warnings
45103         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45104         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45105         type mismatches.
45106
45107 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45108             Bruno Haible  <bruno@clisp.org>
45109
45110         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45111
45112 2008-11-29  Jim Meyering  <meyering@redhat.com>
45113
45114         unicodeio.c: mark unused parameters
45115         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45116         (fallback_failure_callback): Likewise.
45117
45118         fts: fix a thinko
45119         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45120         (set_stat_type): Return S_IF*-valued "type" directly.
45121         Prompted by James Youngman's spotting a related bug.
45122         Confirmed by further testing through find.
45123
45124         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45125         * lib/fts.c (D_TYPE): Define.
45126         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45127         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45128         (s_ifmt_shift_bits): New function.
45129         (set_stat_type): New function.
45130         (fts_build): When not calling fts_stat, call set_stat_type
45131         to propagate dirent.d_type info to fts_read caller.
45132         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45133         fts_statp->st_mode type information may be valid.
45134
45135 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45136
45137         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45138         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45139         <sds@gnu.org>.
45140
45141 2008-11-20  Bruno Haible  <bruno@clisp.org>
45142
45143         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45144         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45145         INCLUDE_NEXT.
45146         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45147         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45148         * modules/math (Makefile.am): Substitute
45149         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45150         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45151
45152 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45153             Bruno Haible  <bruno@clisp.org>
45154
45155         * lib/stdint.in.h: Define all type macros so that their expansion is
45156         a single typedef'ed token. Fixes a compilation failure in Boost which
45157         does "using ::int8_t;".
45158
45159 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45160
45161         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45162         gl_MANYWARN_ALL_GCC.
45163         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45164         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45165         * modules/manywarnings: New file.
45166         * MODULES.html.sh: Mention manywarnings module.
45167
45168 2008-11-18  Bruno Haible  <bruno@clisp.org>
45169
45170         * doc/gnulib-tool.texi (Unit tests): New section.
45171
45172 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45173
45174         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45175         paths like 'lib/po/foo.po'.
45176
45177 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45178
45179         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45180         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45181
45182 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45183
45184         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45185         parameter works.
45186
45187 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45188
45189         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45190
45191 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45192
45193         * modules/parse-duration-tests: New file.
45194         * tests/test-parse-duration.sh: New file.
45195         * tests/test-parse-duration.c: New file.
45196
45197         New module 'parse-duration'.
45198         * lib/parse-duration.h: New file.
45199         * lib/parse-duration.c: New file.
45200         * modules/parse-duration: New file.
45201
45202 2008-11-17  Bruno Haible  <bruno@clisp.org>
45203
45204         * tests/test-select-out.sh: Comment out the first pipe test.
45205         Reported by Simon Josefsson.
45206
45207 2008-11-17  Bruno Haible  <bruno@clisp.org>
45208
45209         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45210         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45211         gl_HOSTENT.
45212
45213 2008-11-17  Bruno Haible  <bruno@clisp.org>
45214
45215         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45216         -lnetwork and -lnet. Needed for Haiku and BeOS.
45217
45218 2008-11-16  Bruno Haible  <bruno@clisp.org>
45219
45220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45221
45222 2008-11-16  Bruno Haible  <bruno@clisp.org>
45223
45224         Avoid test failure on Haiku.
45225         * tests/test-fsync.c: Include <errno.h>.
45226         (main): Don't require that fsync (0) fails.
45227
45228 2008-11-15  Bruno Haible  <bruno@clisp.org>
45229
45230         New module 'hostent'.
45231         * modules/hostent: New file.
45232         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45233
45234 2008-11-15  Bruno Haible  <bruno@clisp.org>
45235
45236         New module 'servent'.
45237         * modules/servent: New file.
45238         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45239
45240 2008-11-15  Bruno Haible  <bruno@clisp.org>
45241
45242         Avoid generating same test program with two different rules.
45243         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45244         test-frexp to test-frexp-nolibm.
45245         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45246         test-frexpl to test-frexpl-nolibm.
45247
45248 2008-11-15  Bruno Haible  <bruno@clisp.org>
45249
45250         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45251         $(FREXPL_LIBM).
45252
45253 2008-11-15  Bruno Haible  <bruno@clisp.org>
45254
45255         * lib/netdb.in.h: Activate the definitions also when the system's
45256         <netdb.h> has 'struct addrinfo'.
45257         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45258         EAI_OVERFLOW or AI_NUMERICSERV.
45259         * doc/posix-headers/netdb.texi: Document the problem.
45260
45261 2008-11-15  Bruno Haible  <bruno@clisp.org>
45262
45263         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45264
45265         Make the 'sched' module work on platforms where <sched.h> exists but
45266         is incomplete (such as Haiku).
45267         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45268         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45269         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45270         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45271         HAVE_STRUCT_SCHED_PARAM.
45272         * modules/sched (Depends-on): Add include_next.
45273         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45274         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45275         * doc/posix-headers/sched.texi: Document the issue.
45276
45277 2008-11-13  Jim Meyering  <meyering@redhat.com>
45278
45279         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45280         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45281         test would fail due to the difference in the Report bugs to ...
45282         line.  The expected address is empty, "<>", while the actual
45283         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45284
45285 2008-11-12  Bruno Haible  <bruno@clisp.org>
45286
45287         lstat: don't compile lstat.c on systems lacking lstat
45288         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45289         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45290         Reported by Daniel P. Berrange via Jim Meyering.
45291
45292 2008-11-12  Jim Meyering  <meyering@redhat.com>
45293
45294         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45295
45296 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45297
45298         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45299         instead.
45300
45301 2008-11-12  Bruno Haible  <bruno@clisp.org>
45302
45303         * lib/unicodeio.c: Include unistr.h.
45304         (utf8_wctomb): Remove function.
45305         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45306
45307 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45308
45309         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45310         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45311         <bruno@clisp.org>.
45312         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45313
45314 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45315
45316         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45317         * doc/gnulib.texi: Add section for warnings.
45318
45319 2008-11-11  Bruno Haible  <bruno@clisp.org>
45320
45321         * lib/sockets.h: Add a comment.
45322
45323 2008-11-11  Karl Berry  <karl@gnu.org>
45324
45325         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45326
45327 2008-11-11  Eric Blake  <ebb9@byu.net>
45328
45329         fdl.texi: avoid git symlinks
45330         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45331
45332 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45333
45334         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45335
45336 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45337
45338         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45339         (gl_WARN_ADD): Substitute $2 if literal.
45340
45341 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45342
45343         * m4/warning.m4: Remove.
45344
45345 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45346
45347         * m4/warnings.m4: Almost complete rewrite. :-)
45348
45349 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45350
45351         * modules/warnings: New module.
45352         * m4/warnings.m4: New file.
45353         * MODULES.html.sh: Mention warnings module.
45354         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45355         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45356
45357 2008-11-10  Eric Blake  <ebb9@byu.net>
45358
45359         fdl.texi: make a symlink to the latest version
45360         * doc/standards.texi: Revert today's earlier change.
45361         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45362         * doc/fdl.texi: ...and replace this with a symlink to the newer
45363         fdl-1.3.texi.
45364
45365 2008-11-10  Bruno Haible  <bruno@clisp.org>
45366
45367         * tests/test-select-fd.c (main): Accept the result file name as fourth
45368         argument.
45369         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45370         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45371
45372 2008-11-10  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45375         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45376         as autoconf-substituted macros.
45377         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45378         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45379         gl_NETDB_H_DEFAULTS. Set these variables.
45380         * modules/netdb (Makefile.am): Substitute these variables.
45381
45382 2008-11-10  Eric Blake  <ebb9@byu.net>
45383
45384         standards.texi: include correct file for FDL 1.3
45385         * doc/standards.texi (GNU Free Documentation License): Change
45386         include file to pull in FDL 1.3, not 1.2.
45387
45388         fdl.texi: revert accidental change to license
45389         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45390
45391 2008-11-10  Bruno Haible  <bruno@clisp.org>
45392
45393         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45394         cross-compiling guesses also when the native compile gives no result.
45395
45396 2008-11-10  Bruno Haible  <bruno@clisp.org>
45397
45398         * lib/spawni.c (__spawni): Force variable into the stack.
45399
45400 2008-11-10  Bruno Haible  <bruno@clisp.org>
45401
45402         Add support for Haiku.
45403         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45404         glibc and BeOS, but also on Haiku.
45405         * lib/fpurge.c (fpurge): Likewise.
45406         * lib/freadable.c (freadable): Likewise.
45407         * lib/freadahead.c (freadahead): Likewise.
45408         * lib/freading.c (freading): Likewise.
45409         * lib/freadptr.c (freadptr): Likewise.
45410         * lib/freadseek.c (freadptrinc): Likewise.
45411         * lib/fseeko.c (rpl_fseeko): Likewise.
45412         * lib/fseterr.c (fseterr): Likewise.
45413         * lib/fwritable.c (fwritable): Likewise.
45414         * lib/fwriting.c (fwriting): Likewise.
45415         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45416
45417 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45418
45419         * lib/config.charset: Treat Haiku like BeOS.
45420
45421 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45422
45423         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45424         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45425
45426 2008-11-08  Bruno Haible  <bruno@clisp.org>
45427
45428         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45429         AC_CACHE_CHECK.
45430
45431 2008-11-08  Bruno Haible  <bruno@clisp.org>
45432
45433         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45434
45435 2008-11-08  Bruno Haible  <bruno@clisp.org>
45436
45437         * tests/test-select-fd.c: New file.
45438         * tests/test-select-in.sh: New file.
45439         * tests/test-select-out.sh: New file.
45440         * tests/test-select-stdin.c: New file.
45441         * modules/select-tests (Files): Add the new files.
45442         (Depends-on): Add gettimeofday.
45443         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45444         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45445         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45446
45447 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45448             Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45451
45452 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45453
45454         * build-aux/pmccabe2html: Added support for C++ source files.
45455
45456 2008-11-05  Ben Pfaff  <blp@gnu.org>
45457
45458         Fix lib/close.c build on Windows.
45459         * modules/close (Files): Add lib/w32sock.h.
45460
45461 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45462
45463         Accept Bison's NEWS format.
45464         * build-aux/announce-gen (print_news_deltas): Tweak
45465         $re_prefix.
45466
45467 2008-11-04  Bruno Haible  <bruno@clisp.org>
45468
45469         * modules/random_r (Maintainer): Add glibc.
45470
45471 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45472
45473         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45474         by karl@freefriends.org (Karl Berry).
45475         * doc/alloca.texi: Likewise.
45476         * doc/c-ctype.texi: Likewise.
45477         * doc/c-strcase.texi: Likewise.
45478         * doc/c-strcaseeq.texi: Likewise.
45479         * doc/c-strcasestr.texi: Likewise.
45480         * doc/c-strstr.texi: Likewise.
45481         * doc/c-strtod.texi: Likewise.
45482         * doc/c-strtold.texi: Likewise.
45483         * doc/ctime.texi: Likewise.
45484         * doc/error.texi: Likewise.
45485         * doc/fdl.texi: Likewise.
45486         * doc/gcd.texi: Likewise.
45487         * doc/getdate.texi: Likewise.
45488         * doc/gnulib-intro.texi: Likewise.
45489         * doc/gnulib-tool.texi: Likewise.
45490         * doc/gnulib.texi: Likewise.
45491         * doc/inet_ntoa.texi: Likewise.
45492         * doc/maintain.texi: Likewise.
45493         * doc/make-stds.texi: Likewise.
45494         * doc/quote.texi: Likewise.
45495         * doc/regexprops-generic.texi: Likewise.
45496         * doc/standards.texi: Likewise.
45497         * doc/verify.texi: Likewise.
45498         * doc/visibility.texi: Likewise.
45499         * doc/gnulib.texi (GNU Free Documentation License): Include
45500         fdl-1.3.texi instead of fdl.texi.
45501
45502 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45503
45504         * doc/fdl-1.3.texi: New file, from
45505         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45506         * modules/fdl-1.3: Add.
45507         * MODULES.html.sh: Add fdl-1.3.
45508
45509 2008-11-03  Bruno Haible  <bruno@clisp.org>
45510
45511         Make determination of absolute name of header file work with AIX xlc.
45512         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45513         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45514         preprocessing.
45515         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45516         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45517
45518 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45519
45520         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45521         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45522         <ludo@gnu.org>.
45523
45524 2008-11-02  Bruno Haible  <bruno@clisp.org>
45525
45526         Mark 'strpbrk' obsolete.
45527         * modules/strpbrk (Status, Notice): New sections.
45528         * modules/strtok_r (Depends-on): Add strpbrk.
45529
45530 2008-11-02  Bruno Haible  <bruno@clisp.org>
45531
45532         Mark 'strdup' obsolete.
45533         * modules/strdup (Status, Notice): New sections.
45534         * modules/findprog (Depends-on): Add strdup.
45535         * modules/getaddrinfo (Depends-on): Likewise.
45536         * modules/localename (Depends-on): Likewise.
45537         * modules/relocatable-lib (Depends-on): Likewise.
45538         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45539         * modules/relocatable-prog (Depends-on): Likewise.
45540         * modules/trim (Depends-on): Likewise.
45541         * modules/unictype/gen-ctype (Depends-on): Likewise.
45542         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45543
45544 2008-11-02  Bruno Haible  <bruno@clisp.org>
45545
45546         Mark 'strcspn' obsolete.
45547         * modules/strcspn (Status, Notice): New sections.
45548
45549 2008-11-02  Bruno Haible  <bruno@clisp.org>
45550
45551         Mark 'rmdir' obsolete.
45552         * modules/rmdir (Status, Notice): New sections.
45553         * modules/clean-temp (Depends-on): Add rmdir.
45554         * modules/openat (Depends-on): Likewise.
45555
45556 2008-11-02  Bruno Haible  <bruno@clisp.org>
45557
45558         Mark 'raise' obsolete.
45559         * modules/raise (Status, Notice): New sections.
45560         (Include): Specify <signal.h>.
45561         * modules/stdio (Depends-on): Add raise.
45562         * modules/write (Depends-on): Likewise.
45563
45564 2008-11-02  Bruno Haible  <bruno@clisp.org>
45565
45566         Mark 'memset' obsolete.
45567         * modules/memset (Status, Notice): New sections.
45568
45569 2008-11-02  Bruno Haible  <bruno@clisp.org>
45570
45571         Mark 'memmove' obsolete.
45572         * modules/memmove (Status, Notice): New sections.
45573         * modules/argp (Depends-on): Add memmove.
45574         * modules/argz (Depends-on): Likewise.
45575         * modules/canonicalize (Depends-on): Likewise.
45576         * modules/canonicalize-lgpl (Depends-on): Likewise.
45577         * modules/fts (Depends-on): Likewise.
45578         * modules/getcwd (Depends-on): Likewise.
45579         * modules/human (Depends-on): Likewise.
45580         * modules/regex (Depends-on): Likewise.
45581         * modules/striconveh (Depends-on): Likewise.
45582         * modules/trim (Depends-on): Likewise.
45583         * modules/unistr/u8-move (Depends-on): Likewise.
45584         * modules/unistr/u16-move (Depends-on): Likewise.
45585         * modules/unistr/u32-move (Depends-on): Likewise.
45586
45587 2008-11-02  Bruno Haible  <bruno@clisp.org>
45588
45589         Mark 'memcpy' obsolete.
45590         * modules/memcpy (Status, Notice): New sections.
45591
45592 2008-11-02  Bruno Haible  <bruno@clisp.org>
45593
45594         Mark 'memcmp' obsolete.
45595         * modules/memcmp (Status, Notice): New sections.
45596         * modules/argmatch (Depends-on): Add memchr.
45597         * modules/backupfile (Depends-on): Likewise.
45598         * modules/c-strcasestr (Depends-on): Likewise.
45599         * modules/crypto/des (Depends-on): Likewise.
45600         * modules/csharpcomp (Depends-on): Likewise.
45601         * modules/fnmatch (Depends-on): Likewise.
45602         * modules/git-merge-changelog (Depends-on): Likewise.
45603         * modules/isnand (Depends-on): Likewise.
45604         * modules/isnand-nolibm (Depends-on): Likewise.
45605         * modules/isnanf (Depends-on): Likewise.
45606         * modules/isnanf-nolibm (Depends-on): Likewise.
45607         * modules/isnanl (Depends-on): Likewise.
45608         * modules/isnanl-nolibm (Depends-on): Likewise.
45609         * modules/mbchar (Depends-on): Likewise.
45610         * modules/memcoll (Depends-on): Likewise.
45611         * modules/quotearg (Depends-on): Likewise.
45612         * modules/regex (Depends-on): Likewise.
45613         * modules/relocatable-prog (Depends-on): Likewise.
45614         * modules/same (Depends-on): Likewise.
45615         * modules/signbit (Depends-on): Likewise.
45616         * modules/strcasestr-simple (Depends-on): Likewise.
45617         * modules/unictype/gen-ctype (Depends-on): Likewise.
45618         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45619         * modules/uniname/uniname (Depends-on): Likewise.
45620         * modules/unistr/u8-cmp (Depends-on): Likewise.
45621
45622 2008-11-02  Bruno Haible  <bruno@clisp.org>
45623
45624         Mark 'memchr' obsolete.
45625         * modules/memchr (Status, Notice): New sections.
45626         * modules/argp (Depends-on): Add memchr.
45627         * modules/base64 (Depends-on): Likewise.
45628         * modules/c-strcasestr (Depends-on): Likewise.
45629         * modules/chdir-long (Depends-on): Likewise.
45630         * modules/fnmatch (Depends-on): Likewise.
45631         * modules/getsubopt (Depends-on): Likewise.
45632         * modules/git-merge-changelog (Depends-on): Likewise.
45633         * modules/glob (Depends-on): Likewise.
45634         * modules/strcasestr-simple (Depends-on): Likewise.
45635         * modules/strnlen (Depends-on): Likewise.
45636
45637 2008-11-02  Bruno Haible  <bruno@clisp.org>
45638
45639         Mark 'atexit' obsolete.
45640         * modules/atexit (Status, Notice): New sections.
45641         * modules/chdir-long (Depends-on): Add atexit.
45642         * modules/wait-process (Depends-on): Likewise.
45643
45644 2008-11-02  Bruno Haible  <bruno@clisp.org>
45645
45646         * gnulib-tool: New option --with-obsolete.
45647         (func_usage): Document it.
45648         (func_modules_transitive_closure): Drop obsolete dependencies if
45649         incobsolete is not true.
45650         (func_import): Read and save the incobsolete variable to the cache.
45651
45652 2008-11-02  Bruno Haible  <bruno@clisp.org>
45653
45654         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45655         * gnulib-tool: New option --extract-status.
45656         (func_usage): Document it.
45657         (sed_extract_prog): Recognize it.
45658         (func_get_status): New function.
45659
45660 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45661
45662         * modules/sockets (License): Change from LGPL to LGPLv2+.
45663
45664 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45665
45666         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45667
45668 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45669
45670         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45671         Mention times and sys_times.
45672         * modules/sys_times, modules/sys_times-tests: New modules.
45673         * modules/times, modules/times-tests: Likewise
45674         * m4/sys_times_h.m4: New file.
45675         * lib/sys_times.in.h: Likewise
45676         * lib/times.c: Likewise.
45677         * tests/test-sys_times.c: Likewise.
45678         * tests/test-times.c: Likewise.
45679         * doc/posix-headers/sys_times.texi: Update.
45680         * doc/posix-functions/times.texi: Update.
45681
45682 2008-10-28  Jim Meyering  <meyering@redhat.com>
45683
45684         * modules/tempname (Depends-on): Add lstat.
45685
45686         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45687
45688 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45689
45690         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45691         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45692         using idiom used elsewhere in gnulib.
45693
45694 2008-10-27  Jim Meyering  <meyering@redhat.com>
45695
45696         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45697
45698 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45699
45700         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45701         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45702         programs.
45703         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45704
45705 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45706
45707         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45708
45709 2008-10-27  Bruno Haible  <bruno@clisp.org>
45710
45711         * tests/test-lstat.c: Include <stdio.h>.
45712
45713 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45714
45715         * modules/lstat-tests: New module.
45716         * tests/test-lstat.c: New file.
45717
45718 2008-10-26  Jim Meyering  <meyering@redhat.com>
45719
45720         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45721
45722 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45723             Bruno Haible  <bruno@clisp.org>
45724
45725         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45726         * modules/configmake (Include): Add a note that the include must come
45727         after all system headers.
45728         * lib/javaversion.c: Include configmake.h after all other includes.
45729
45730 2008-10-26  Bruno Haible  <bruno@clisp.org>
45731
45732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45733         HAVE_STRUCT_RANDOM_DATA to 1.
45734         (gl_STDLIB_H): Simplify.
45735
45736 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45737
45738         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45739         substitute HAVE_STRUCT_RANDOM_DATA.
45740         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45741         random_data.
45742         * modules/stdlib (Makefile.am): Substitute
45743         HAVE_STRUCT_RANDOM_DATA.
45744
45745 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45746
45747         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45748         * doc/gnulib-intro.texi (Copyright): Likewise.
45749
45750 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45751
45752         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45753         findings.
45754
45755 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45756             Bruno Haible  <bruno@clisp.org>
45757
45758         * lib/unistd.in.h: Include <winsock2.h>.
45759         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45760         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45761         Provide dummy declarations.
45762         (gethostname): Override.
45763         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45764         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45765         gl_PREREQ_SYS_H_WINSOCK2.
45766         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45767         * doc/posix-functions/gethostname.texi: More details.
45768
45769 2008-10-25  Bruno Haible  <bruno@clisp.org>
45770
45771         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45772         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45773         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45774
45775         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45776         here ...
45777         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45778         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45779         gl_UNISTD_H_DEFAULTS.
45780
45781 2008-10-25  Eric Blake  <ebb9@byu.net>
45782
45783         signbit: avoid spurious compiler failure
45784         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45785         declarations inside function.
45786
45787 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45788             Bruno Haible  <bruno@clisp.org>
45789
45790         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45791         * modules/random_r (Depends-on): Add stdint.
45792
45793 2008-10-24  Bruno Haible  <bruno@clisp.org>
45794
45795         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45796         Eggert.
45797         * modules/strerror (License): Likewise.
45798
45799 2008-10-24  Jim Meyering  <meyering@redhat.com>
45800
45801         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45802         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45803
45804 2008-10-24  Eric Blake  <ebb9@byu.net>
45805
45806         getgroups: fix compilation when getgroups is available
45807         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45808         but with <config.h> override of getgroups disabled.
45809
45810 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45811
45812         * doc/gnulib.texi (Header files): Add note about C++ problems.
45813         Explained by Bruno Haible <bruno@clisp.org>.
45814
45815 2008-10-23  Bruno Haible  <bruno@clisp.org>
45816
45817         Define a dummy SA_NODEFER macro on Interix.
45818         * lib/signal.in.h (SA_NODEFER): Define fallback.
45819         Reported by Aleksey Cheusov <cheusov@tut.by> via
45820         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45821
45822 2008-10-23  Bruno Haible  <bruno@clisp.org>
45823
45824         * modules/freadahead (License): Change to LGPLv2+.
45825         Suggested by Simon Josefsson.
45826
45827 2008-10-23  Jim Meyering  <meyering@redhat.com>
45828
45829         random_r: new module
45830         * modules/random_r: New file.
45831         * m4/random_r.m4: New file.
45832         * lib/random_r.c: New file, from glibc.
45833         * modules/random_r-tests: New file.
45834         * tests/test-random_r.c: New file.
45835         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45836          Declare.
45837         (RAND_MAX): Define.
45838         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45839         * modules/stdlib: Substitute them, too.
45840         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45841         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45842         * doc/glibc-functions/random_r.texi: Likewise.
45843         * doc/glibc-functions/setstate_r.texi: Likewise.
45844         * doc/glibc-functions/srandom_r.texi: Likewise.
45845         * config/srclist.txt: Mention it.
45846
45847 2008-10-23  David Lutterkort  <lutter@redhat.com>
45848
45849         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45850         link requirement
45851
45852 2008-10-23  Jim Meyering  <meyering@redhat.com>
45853
45854         selinux-h: mark parameters of stub functions as intentionally unused
45855         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45856         * lib/se-context.in.h: Likewise.
45857
45858 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45859
45860         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45861
45862 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45863
45864         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45865
45866 2008-10-22  Eric Blake  <ebb9@byu.net>
45867
45868         glthread/thread: avoid compiler warning
45869         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45870         Add unreachable abort to silence compiler.
45871
45872 2008-10-22  Eric Blake  <ebb9@byu.net>
45873
45874         netdb: also supply struct addrinfo for cygwin 1.5.x
45875         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45876         older cygwin.
45877         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45878         cygwin.
45879         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45880
45881 2008-10-22  Bruno Haible  <bruno@clisp.org>
45882
45883         * users.txt: Update entry about pspp.
45884
45885 2008-10-21  Bruno Haible  <bruno@clisp.org>
45886
45887         Simplification.
45888         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45889         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45890
45891         Simplification.
45892         * lib/ioctl.c (ioctl): Don't undefine.
45893         * lib/socket.c (socket): Don't undefine.
45894
45895         Remove unused module indicator macros.
45896         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45897         GNULIB_$1 as a C macro.
45898
45899         * doc/posix-functions/close.texi: Undo last change.
45900         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45901         Windows platforms.
45902
45903 2008-10-21  Bruno Haible  <bruno@clisp.org>
45904
45905         Add gethostname() declaration to <unistd.h>.
45906         * lib/unistd.in.h (gethostname): New declaration.
45907         * lib/gethostname.c: Include <unistd.h>.
45908         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45909         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45911         and HAVE_GETHOSTNAME.
45912         * modules/gethostname (Depends-on): Add unistd.
45913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45914         (Include): Specify <unistd.h>.
45915         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45916         HAVE_GETHOSTNAME.
45917         * tests/test-gethostname.c: Include <unistd.h> first.
45918
45919 2008-10-21  Bruno Haible  <bruno@clisp.org>
45920
45921         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45922         * modules/select-tests (Depends-on): Likewise.
45923         Reported by Simon Josefsson.
45924
45925 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45926
45927         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45928         * lib/accept.c: New file, based on winsock.c.
45929         * lib/bind.c: New file, based on winsock.c.
45930         * lib/connect.c: New file, based on winsock.c.
45931         * lib/getpeername.c: New file, based on winsock.c.
45932         * lib/getsockname.c: New file, based on winsock.c.
45933         * lib/getsockopt.c: New file, based on winsock.c.
45934         * lib/ioctl.c: New file, based on winsock.c.
45935         * lib/listen.c: New file, based on winsock.c.
45936         * lib/recv.c: New file, based on winsock.c.
45937         * lib/recvfrom.c: New file, based on winsock.c.
45938         * lib/send.c: New file, based on winsock.c.
45939         * lib/sendto.c: New file, based on winsock.c.
45940         * lib/setsockopt.c: New file, based on winsock.c.
45941         * lib/shutdown.c: New file, based on winsock.c.
45942         * lib/socket.c: New file, based on winsock.c.
45943         * lib/w32sock.h: New file, based on winsock.c.
45944         * lib/winsock.c: Remove file.
45945         * modules/accept: Likewise.
45946         * modules/bind: Likewise.
45947         * modules/connect: Likewise.
45948         * modules/getpeername: Likewise.
45949         * modules/getsockname: Likewise.
45950         * modules/getsockopt: Likewise.
45951         * modules/ioctl: Likewise.
45952         * modules/listen: Likewise.
45953         * modules/recv: Likewise.
45954         * modules/recvfrom: Likewise.
45955         * modules/send: Likewise.
45956         * modules/sendto: Likewise.
45957         * modules/setsockopt: Likewise.
45958         * modules/shutdown: Likewise.
45959         * modules/socket: Use socket.c instead of winsock.c.
45960         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45961         * doc/posix-functions/accept.texi: Doc fix.
45962         * doc/posix-functions/bind.texi: Doc fix.
45963         * doc/posix-functions/close.texi: Doc fix.
45964         * doc/posix-functions/connect.texi: Doc fix.
45965         * doc/posix-functions/getpeername.texi: Doc fix.
45966         * doc/posix-functions/getsockname.texi: Doc fix.
45967         * doc/posix-functions/getsockopt.texi: Doc fix.
45968         * doc/posix-functions/ioctl.texi: Doc fix.
45969         * doc/posix-functions/listen.texi: Doc fix.
45970         * doc/posix-functions/recv.texi: Doc fix.
45971         * doc/posix-functions/recvfrom.texi: Doc fix.
45972         * doc/posix-functions/send.texi: Doc fix.
45973         * doc/posix-functions/sendto.texi: Doc fix.
45974         * doc/posix-functions/setsockopt.texi: Doc fix.
45975         * doc/posix-functions/shutdown.texi: Doc fix.
45976         * doc/posix-functions/socket.texi: Doc fix.
45977
45978 2008-10-20  Bruno Haible  <bruno@clisp.org>
45979
45980         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45981         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45982         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45983         as an alias for SIGABRT.
45984         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45985         (sigaction): Map it to SIGABRT.
45986         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45987
45988 2008-10-20  Bruno Haible  <bruno@clisp.org>
45989
45990         * lib/fts.c: Don't include lstat.h.
45991         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45992
45993         Move the lstat() declaration to <sys/stat.h>.
45994         * lib/lstat.h: Remove file.
45995         * lib/sys_stat.in.h: Add special invocation convention.
45996         (lstat): New declaration.
45997         * lib/lstat.c (orig_lstat): New function.
45998         (rpl_lstat): Use orig_lstat instead of lstat.
45999         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46000         AC_C_INLINE. Set REPLACE_LSTAT.
46001         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46002         and REPLACE_LSTAT.
46003         * modules/lstat (Files): Remove lib/lstat.h.
46004         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46005         (Include): Specify <sys/stat.h> instead of lstat.h.
46006         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46007         REPLACE_LSTAT.
46008         * NEWS: Mention the change.
46009
46010 2008-10-20  Bruno Haible  <bruno@clisp.org>
46011
46012         * modules/posix_spawn-tests: New file.
46013         * tests/test-posix_spawn3.c: New file.
46014
46015 2008-10-20  Bruno Haible  <bruno@clisp.org>
46016
46017         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46018         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46019         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46020         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46021         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46022
46023 2008-10-20  Bruno Haible  <bruno@clisp.org>
46024
46025         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46026         of posix_spawn on AIX 5.3.
46027
46028 2008-10-20  Bruno Haible  <bruno@clisp.org>
46029
46030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46031
46032 2008-10-20  Bruno Haible  <bruno@clisp.org>
46033
46034         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46035         of AC_LANG_PROGRAM.
46036
46037 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46038
46039         * lib/netdb.in.h: Don't define GNU specific constants until they
46040         are supported or needed.  Reported by Bruno Haible
46041         <bruno@clisp.org>.
46042
46043 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46044
46045         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46046
46047 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46048
46049         * lib/getaddrinfo.h: Remove file.
46050         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46051         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46052         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46053         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46054         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46055         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46056         * tests/test-getaddrinfo.c: Likewise.
46057         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46058         * NEWS: Mention change.
46059
46060 2008-10-19  Bruno Haible  <bruno@clisp.org>
46061
46062         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46063
46064 2008-10-19  Bruno Haible  <bruno@clisp.org>
46065
46066         * lib/wait-process.c: Include simply <sys/wait.h>.
46067         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46068         WIFSTOPPED): Remove fallback definitions.
46069         * modules/wait-process (Depends-on): Add sys_wait.
46070
46071         New module 'sys_wait'.
46072         * modules/sys_wait: New file.
46073         * lib/sys_wait.in.h: New file, partially copied from
46074         lib/wait-process.c.
46075         * m4/sys_wait_h.m4: New file.
46076         * doc/posix-headers/sys_wait.texi: Mention the new module.
46077
46078 2008-10-19  Bruno Haible  <bruno@clisp.org>
46079
46080         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46081
46082 2008-10-19  Bruno Haible  <bruno@clisp.org>
46083
46084         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46085         * lib/wait-process.c (WAIT_T): Remove type.
46086         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46087         (wait_subprocess): Update.
46088
46089 2008-10-19  Bruno Haible  <bruno@clisp.org>
46090
46091         New module 'atoll'.
46092         * modules/atoll: New file.
46093         * lib/stdlib.in.h (atoll): New declaration.
46094         * lib/atoll.c: New file, from glibc with modifications.
46095         * m4/atoll.m4: New file.
46096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46097         HAVE_ATOLL.
46098         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46099         * doc/posix-functions/atoll.texi: Mention the new module.
46100
46101 2008-10-19  Bruno Haible  <bruno@clisp.org>
46102
46103         Add strtoull() declaration to <stdlib.h>.
46104         * lib/stdlib.in.h (strtoull): New declaration.
46105         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46106         Set HAVE_STRTOULL.
46107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46108         HAVE_STRTOULL.
46109         * modules/strtoull (Depends-on): Add stdlib.
46110         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46111         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46112         HAVE_STRTOULL.
46113
46114 2008-10-19  Bruno Haible  <bruno@clisp.org>
46115
46116         Add strtoll() declaration to <stdlib.h>.
46117         * lib/stdlib.in.h (strtoll): New declaration.
46118         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46119         Set HAVE_STRTOLL.
46120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46121         HAVE_STRTOLL.
46122         * modules/strtoll (Depends-on): Add stdlib.
46123         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46124         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46125
46126 2008-10-19  Bruno Haible  <bruno@clisp.org>
46127
46128         * modules/bcopy (Depends-on): Add strings.
46129         (Include): Specify <strings.h>.
46130
46131 2008-10-19  Bruno Haible  <bruno@clisp.org>
46132
46133         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46134
46135 2008-10-19  Bruno Haible  <bruno@clisp.org>
46136
46137         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46138         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46139         mingw.
46140
46141 2008-10-19  Bruno Haible  <bruno@clisp.org>
46142
46143         * lib/atanl.c: Don't include isnanl.h.
46144         * lib/cosl.c: Likewise.
46145         * lib/ldexpl.c: Likewise.
46146         * lib/logl.c: Likewise.
46147         * lib/sinl.c: Likewise.
46148         * lib/sqrtl.c: Likewise.
46149         * lib/tanl.c: Likewise.
46150
46151         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46152         * lib/isnanf.h: Remove file.
46153         * lib/isnand.h: Remove file.
46154         * lib/isnanl.h: Remove file.
46155         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46156         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46157         macros.
46158         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46159         HAVE_ISNANF, don't define it as a C macro.
46160         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46161         HAVE_ISNAND, don't define it as a C macro.
46162         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46163         HAVE_ISNANL, don't define it as a C macro.
46164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46165         HAVE_ISNAN[FDL].
46166         * modules/isnanf (Files): Remove lib/isnanf.h.
46167         (Depends-on): Add math.
46168         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46169         (Include): Specify <math.h> instead of isnanf.h.
46170         * modules/isnand (Files): Remove lib/isnand.h.
46171         (Depends-on): Add math.
46172         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46173         (Include): Specify <math.h> instead of isnand.h.
46174         * modules/isnanl (Files): Remove lib/isnanl.h.
46175         (Depends-on): Add math.
46176         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46177         (Include): Specify <math.h> instead of isnanl.h.
46178         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46179         HAVE_ISNAN[FDL].
46180         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46181         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46182         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46183         * NEWS: Mention the change.
46184
46185 2008-10-18  Bruno Haible  <bruno@clisp.org>
46186
46187         Add getusershell(), setusershell(), endusershell() declarations to
46188         <unistd.h>.
46189         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46190         declarations.
46191         * lib/getusershell.c: Include unistd.h.
46192         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46193         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46194         HAVE_GETUSERSHELL.
46195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46196         and HAVE_GETUSERSHELL.
46197         * modules/getusershell (Depends-on): Add unistd, extensions.
46198         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46199         (Include): Specify <unistd.h>.
46200         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46201         HAVE_GETUSERSHELL.
46202
46203 2008-10-18  Bruno Haible  <bruno@clisp.org>
46204
46205         Add a getloadavg() declaration to <stdlib.h>.
46206         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46207         getloadavg declaration.
46208         (getloadavg): New declaration.
46209         * lib/getloadavg.c: Include <stdlib.h> first.
46210         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46211         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46212         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46214         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46215         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46216         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46217         (Include): Specify <stdlib.h>.
46218         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46219         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46220
46221 2008-10-18  Bruno Haible  <bruno@clisp.org>
46222
46223         * lib/dirchownmod.c: Don't include lchmod.h.
46224
46225         Move the lchmod() declaration to <sys/stat.h>.
46226         * lib/lchmod.h: Remove file.
46227         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46228         (lchmod): New declaration, moved here from lib/lchown.h.
46229         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46230         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46232         and HAVE_LCHMOD.
46233         * modules/lchmod (Files): Remove lib/lchmod.h.
46234         (Depends-on): Add sys_stat, extensions.
46235         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46236         (Include): Specify <sys/stat.h> instead of lchmod.h.
46237         * modules/sys_stat (Depends-on): Add link-warning.
46238         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46239         definition of GL_LINK_WARNING.
46240         * NEWS: Mention the change.
46241
46242 2008-10-18  Bruno Haible  <bruno@clisp.org>
46243
46244         * lib/fchdir.c: Don't include dirfd.h.
46245         * lib/fts.c: Likewise.
46246         * lib/getcwd.c: Likewise.
46247         * lib/glob.c: Likewise.
46248
46249         Move the dirfd() declaration to <dirent.h>.
46250         * lib/dirfd.h: Remove file.
46251         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46252         (dirfd): New declaration.
46253         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46254         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46255         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46256         HAVE_DECL_DIRFD.
46257         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46258         HAVE_DECL_DIRFD.
46259         * modules/dirfd (Files): Remove lib/dirfd.h.
46260         (Depends-on): Add dirent, extensions.
46261         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46262         (Include): Specify <dirent.h> instead of dirfd.h.
46263         * modules/dirent (Depends-on): Add link-warning.
46264         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46265         definition of GL_LINK_WARNING.
46266         * NEWS: Mention the change.
46267
46268 2008-10-18  Bruno Haible  <bruno@clisp.org>
46269
46270         Move the euidaccess() declaration to <unistd.h>.
46271         * lib/euidaccess.h: Remove file.
46272         * lib/unistd.in.h (euidaccess): New declaration.
46273         * lib/euidaccess.c: Don't include euidaccess.h.
46274         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46275         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46277         and HAVE_EUIDACCESS.
46278         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46279         (Depends-on): Add unistd.
46280         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46281         (Include): Specify <unistd.h> instead of euidaccess.h.
46282         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46283         HAVE_EUIDACCESS.
46284         * NEWS: Mention the change.
46285
46286 2008-10-18  Bruno Haible  <bruno@clisp.org>
46287
46288         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46289
46290         Move the getdomainname() declaration to <unistd.h>.
46291         * lib/getdomainname.h: Remove file.
46292         * lib/unistd.in.h (getdomainname): New declaration.
46293         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46294         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46295         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46296         HAVE_GETDOMAINNAME.
46297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46298         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46299         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46300         (Depends-on): Add unistd, extensions.
46301         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46302         (Includes): Specify <unistd.h> instead of getdomainname.h.
46303         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46304         HAVE_GETDOMAINNAME.
46305         * NEWS: Mention the change.
46306
46307 2008-10-18  Bruno Haible  <bruno@clisp.org>
46308
46309         * modules/dirent: New file.
46310         * m4/dirent_h.m4: New file.
46311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46312         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46313         * modules/fchdir (Files): Remove lib/dirent.in.h.
46314         (Depends-on): Add dirent.
46315         (Makefile.am): Move rules to modules/dirent.
46316         * doc/posix-headers/dirent.texi: Mention the new module.
46317
46318 2008-10-18  Bruno Haible  <bruno@clisp.org>
46319
46320         Avoid -Wunused-parameter warnings in public gnulib header files.
46321         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46322         macro.
46323         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46324
46325 2008-10-18  Bruno Haible  <bruno@clisp.org>
46326
46327         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46328         * doc/glibc-functions/error.texi: Mention the module 'error'.
46329         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46330         * doc/glibc-functions/getdomainname.texi: Mention the module
46331         'getdomainname'.
46332         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46333         * doc/glibc-functions/getpagesize.texi: Mention the module
46334         'getpagesize'.
46335         * doc/glibc-functions/getusershell.texi: Mention the module
46336         'getusershell'.
46337         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46338         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46339         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46340         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46341         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46342         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46343         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46344         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46345         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46346         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46347         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46348         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46349         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46350         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46351
46352 2008-10-17  Bruno Haible  <bruno@clisp.org>
46353
46354         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46355         HP-UX and IRIX, use -0.0L.
46356         * tests/test-ceill.c (minus_zero): Likewise.
46357         * tests/test-floorl.c (minus_zero): Likewise.
46358         * tests/test-frexpl.c (minus_zero): Likewise.
46359         * tests/test-isnan.c (minus_zerol): Likewise.
46360         * tests/test-isnanl.h (minus_zero): Likewise.
46361         * tests/test-ldexpl.c (minus_zero): Likewise.
46362         * tests/test-roundl.c (minus_zero): Likewise.
46363         * tests/test-signbit.c (minus_zerol): Likewise.
46364         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46365         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46366         * tests/test-truncl.c (minus_zero): Likewise.
46367         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46368         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46369         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46370         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46371
46372 2008-10-17  Bruno Haible  <bruno@clisp.org>
46373
46374         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46375         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46376         that it gets activated only for gcc >= 3.0.
46377         * lib/dirent.in.h: Likewise.
46378         * lib/errno.in.h: Likewise.
46379         * lib/fcntl.in.h: Likewise.
46380         * lib/float.in.h: Likewise.
46381         * lib/iconv.in.h: Likewise.
46382         * lib/inttypes.in.h: Likewise.
46383         * lib/locale.in.h: Likewise.
46384         * lib/math.in.h: Likewise.
46385         * lib/netdb.in.h: Likewise.
46386         * lib/netinet_in.in.h: Likewise.
46387         * lib/search.in.h: Likewise.
46388         * lib/signal.in.h: Likewise.
46389         * lib/spawn.in.h: Likewise.
46390         * lib/stdarg.in.h: Likewise.
46391         * lib/stdint.in.h: Likewise.
46392         * lib/stdio.in.h: Likewise.
46393         * lib/stdlib.in.h: Likewise.
46394         * lib/string.in.h: Likewise.
46395         * lib/strings.in.h: Likewise.
46396         * lib/sys_file.in.h: Likewise.
46397         * lib/sys_ioctl.in.h: Likewise.
46398         * lib/sys_select.in.h: Likewise.
46399         * lib/sys_socket.in.h: Likewise.
46400         * lib/sys_stat.in.h: Likewise.
46401         * lib/sys_time.in.h: Likewise.
46402         * lib/sysexits.in.h: Likewise.
46403         * lib/time.in.h: Likewise.
46404         * lib/unistd.in.h: Likewise.
46405         * lib/wchar.in.h: Likewise.
46406         * lib/wctype.in.h: Likewise.
46407         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46408
46409 2008-10-17  Jim Meyering  <meyering@redhat.com>
46410
46411         ignore-value: don't depend on inline module
46412         * modules/ignore-value (Depends-on): Remove 'inline'.
46413         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46414         Suggestion from Bruno Haible.
46415
46416 2008-10-17  Bruno Haible  <bruno@clisp.org>
46417
46418         New implementation of condition variables for Win32.
46419         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46420         (gl_linked_waitqueue_t): New type.
46421         (gl_cond_t): Use it.
46422         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46423         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46424         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46425         (glthread_cond_init_func, glthread_cond_wait_func,
46426         glthread_cond_timedwait_func, glthread_cond_signal_func,
46427         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46428         Reimplemented on the basis of gl_linked_waitqueue_t.
46429         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46430         gl_waitqueue_t.
46431         (gl_rwlock_t): Update.
46432         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46433
46434 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46435
46436         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46437         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46438
46439 2008-10-17  Jim Meyering  <meyering@redhat.com>
46440
46441         ignore-value: new module
46442         * modules/ignore-value: New file.
46443         * lib/ignore-value.h: New file.
46444         * MODULES.html.sh (Compiler warning management): New section,
46445         just for this module.  More to come.
46446
46447 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46448
46449         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46450         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46451         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46452
46453 2008-10-16  Jim Meyering  <meyering@redhat.com>
46454
46455         openat-die.c: avoid 'no previous prototype' warning
46456         * lib/openat-die.c: Include "openat.h".
46457         Reported by Reuben Thomas <rrt@sc3d.org>.
46458
46459 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46460
46461         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46462         * lib/netdb.in.h: Fix typo.
46463         Reported by Bruno Haible  <bruno@clisp.org>
46464
46465         * lib/netdb.in.h: Include sys/socket.h for platforms without
46466         netdb.h, to get structures like hostent on MinGW.
46467         * modules/netdb (Depends-on): Add sys_socket.
46468
46469 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46470
46471         * modules/netdb, modules/netdb-tests: New file.
46472         * m4/netdb_h.m4: New file.
46473         * lib/netdb.in.h: Add, currently just an empty file pending
46474         definitions.
46475         * tests/test-netdb.c: New file.
46476         * doc/posix-headers/netdb.texi: Mention that we replace it if
46477         needed.
46478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46479         netdb.
46480
46481 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46482
46483         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46484         with code.
46485
46486 2008-10-13  Bruno Haible  <bruno@clisp.org>
46487
46488         * lib/glthread/cond.c (glthread_cond_wait_func,
46489         glthread_cond_timedwait_func): Add a comment.
46490
46491 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46492
46493         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46494         * tests/test-select.c: Likewise,
46495
46496 2008-10-13  Bruno Haible  <bruno@clisp.org>
46497
46498         * lib/glthread/cond.c (glthread_cond_wait_func,
46499         glthread_cond_timedwait_func): Fix variable name.
46500         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46501
46502 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46503
46504         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46505         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46506         struct sockaddr.sa_len.
46507         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46508
46509 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46510
46511         * build-aux/pmccabe2html: Add css and css_url parameters.
46512
46513 2008-10-12  Bruno Haible  <bruno@clisp.org>
46514
46515         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46516         calling aclx_get.
46517         Reported by Rainer Tammer <tammer@tammer.net>.
46518
46519 2008-10-12  Bruno Haible  <bruno@clisp.org>
46520
46521         Use msvcrt aware primitives for creation/termination of Win32 threads.
46522         * lib/glthread/thread.c: Include <process.h>.
46523         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46524         (wrapper_func): Update signature.
46525         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46526
46527 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46528             Bruno Haible  <bruno@clisp.org>
46529
46530         Provide a Win32 implementation of the 'cond' module.
46531         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46532         * lib/glthread/cond.c (glthread_cond_init_func,
46533         glthread_cond_wait_func, glthread_cond_timedwait_func,
46534         glthread_cond_signal_func, glthread_cond_broadcast_func,
46535         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46536         * modules/cond (Dependencies): Add gettimeofday.
46537
46538 2008-10-11  Bruno Haible  <bruno@clisp.org>
46539
46540         Make sleep work on older versions of mingw.
46541         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46542         only whether it exists.
46543         * doc/posix-functions/sleep.texi: Mention the problem with older
46544         versions of mingw.
46545
46546 2008-10-11  Bruno Haible  <bruno@clisp.org>
46547
46548         New module 'shutdown'.
46549         * modules/shutdown: New file.
46550         * lib/sys_socket.in.h (shutdown): New declaration.
46551         * lib/winsock.c (shutdown): New function.
46552         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46553         GNULIB_SHUTDOWN.
46554         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46555         * doc/posix-functions/shutdown.texi: Document the new module.
46556
46557 2008-10-11  Jim Meyering  <meyering@redhat.com>
46558
46559         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46560
46561 2008-10-11  Bruno Haible  <bruno@clisp.org>
46562
46563         New module 'fclose'.
46564         * modules/fclose: New file.
46565         * lib/stdio.in.h (fclose): New declaration.
46566         * lib/fclose.c: New file.
46567         * m4/fclose.m4: New file.
46568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46569         REPLACE_FCLOSE.
46570         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46571         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46572         REPLACE_FCLOSE.
46573         * modules/close (Depends-on): fclose.
46574         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46575
46576 2008-10-11  Bruno Haible  <bruno@clisp.org>
46577
46578         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46579         set errno and don't call _close.
46580
46581 2008-10-10  Bruno Haible  <bruno@clisp.org>
46582
46583         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46584         ACL, not afterwards. Fixes test failure on Cygwin.
46585
46586 2008-10-09  Ben Pfaff  <blp@gnu.org>
46587
46588         * build-aux/announce-gen: Fix gnulib version related part of usage
46589         message.  Die with a useful error message if no tarballs are
46590         found.
46591
46592 2008-10-10  Jim Meyering  <meyering@redhat.com>
46593
46594         bootstrap: use git's --depth=N option only if it's supported
46595         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46596         recognize the --depth option.  Reported by Pádraig Brady.
46597
46598 2008-10-09  Bruno Haible  <bruno@clisp.org>
46599
46600         New module 'ioctl'.
46601         * modules/ioctl: New file.
46602         * lib/sys_socket.in.h (ioctl): Remove declaration.
46603         * lib/winsock.c: Include <sys/ioctl.h>.
46604         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46605         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46606         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46607         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46608         * doc/posix-functions/ioctl.texi: Mention the new module.
46609
46610 2008-10-09  Bruno Haible  <bruno@clisp.org>
46611
46612         New module 'sys_ioctl'.
46613         * lib/sys_ioctl.in.h: New file.
46614         * m4/sys_ioctl_h.m4: New file.
46615         * modules/sys_ioctl: New file.
46616         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46617
46618 2008-10-09  Bruno Haible  <bruno@clisp.org>
46619
46620         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46621         * lib/winsock.c: Include <stdarg.h>.
46622         (rpl_ioctl): Change to second argument 'int' and then varargs.
46623
46624 2008-10-09  Bruno Haible  <bruno@clisp.org>
46625
46626         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46627         when the sys_socket module is present and the system has <winsock2.h>.
46628
46629 2008-10-09  Bruno Haible  <bruno@clisp.org>
46630
46631         * doc/posix-functions/close.texi: Mention module 'close' instead of
46632         module 'sys_socket'.
46633
46634 2008-10-09  Bruno Haible  <bruno@clisp.org>
46635
46636         * doc/glibc-headers/sys_ioctl.texi: New file.
46637         * doc/gnulib.texi: Include it.
46638
46639 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46640             Bruno Haible  <bruno@clisp.org>
46641
46642         Combine the two replacements of 'close'.
46643         * lib/sys_socket.in.h (close): Define to a reminder to include
46644         <unistd.h>.
46645         (_gl_close_fd_maybe_socket): New declaration.
46646         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46647         * lib/winsock.c (close): Remove undefinition.
46648         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46649         needed for the gnulib module 'close'.
46650         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46651         define to an error symbol or to a warning, if suitable.
46652         * lib/close.c: Include <sys/socket.h>.
46653         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46654         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46655         UNISTD_H_HAVE_WINSOCK2_H.
46656         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46658         UNISTD_H_HAVE_WINSOCK2_H.
46659         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46660         (configure.ac): Set a module indicator.
46661         (Makefile.am): Substitute GNULIB_CLOSE.
46662         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46663         * modules/poll-tests (Depends-on): Add close.
46664         * modules/select-tests (Depends-on): Likewise.
46665
46666 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46667             Bruno Haible  <bruno@clisp.org>
46668
46669         New module 'close'.
46670         * modules/close: New file.
46671         * lib/unistd.in.h (close): Move declaration out of the
46672         FCHDIR_REPLACEMENT scope.
46673         (_gl_unregister_fd): New declaration.
46674         * lib/close.c: New file.
46675         * lib/fchdir.c (rpl_close): Remove function.
46676         * m4/close.m4: New file.
46677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46678         close.
46679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46680         REPLACE_CLOSE.
46681         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46682         REPLACE_CLOSE.
46683         * modules/fchdir (Depends-on): Add close.
46684
46685 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46686             Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/fcntl.in.h (open): Simplify conditionals.
46689         (_gl_register_fd): New declaration.
46690         * lib/fchdir.c (rpl_open): Remove function.
46691         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46692         also.
46693         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46694         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46695         open.
46696
46697 2008-10-09  Jim Meyering  <meyering@redhat.com>
46698
46699         GNUmakefile: use the more name-space-friendly "_version"
46700         * top/GNUmakefile (_dummy): Update.
46701         (_version): Rename from "version".
46702
46703 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46704             Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46707         rpl_close.
46708         (_gl_register_fd): New function, extracted from rpl_open.
46709         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46710         (rpl_open, rpl_opendir): Use _gl_register_fd.
46711
46712 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46713
46714         Fix organization of 'open' replacement.
46715         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46716         (gl_FUNC_OPEN): Use it.
46717         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46718
46719 2008-10-08  Bruno Haible  <bruno@clisp.org>
46720
46721         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46722
46723 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46724
46725         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46726         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46727         listen).
46728
46729 2008-10-08  Eric Blake  <ebb9@byu.net>
46730
46731         GNUmakefile: add 'make version' target
46732         * top/GNUmakefile (_curr-ver): Split version update rules...
46733         (version): ...into a target.
46734
46735 2008-10-07  Bruno Haible  <bruno@clisp.org>
46736
46737         Use a more portable replacement expression for -0.0L.
46738         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46739         instead of -0.0L. Fix m4 quotation.
46740
46741         * tests/test-signbit.c: Include <float.h>.
46742         (minus_zero): New variable.
46743         (test_signbitl): Use minus_zero instead of -zero.
46744         * modules/signbit-tests (Depends-on): Add float.
46745
46746         * tests/test-ceill.c: Include <float.h>.
46747         (zero): Remove variable.
46748         (minus_zero): New variable.
46749         (main): Use minus_zero instead of -zero.
46750         * modules/ceill-tests (Depends-on): Add float.
46751
46752         * tests/test-floorl.c: Include <float.h>.
46753         (zero): Remove variable.
46754         (minus_zero): New variable.
46755         (main): Use minus_zero instead of -zero.
46756         * modules/floorl-tests (Depends-on): Add float.
46757
46758         * tests/test-roundl.c: Include <float.h>.
46759         (zero): Remove variable.
46760         (minus_zero): New variable.
46761         (main): Use minus_zero instead of -zero.
46762         * modules/roundl-tests (Depends-on): Add float.
46763
46764         * tests/test-truncl.c: Include <float.h>.
46765         (zero): Remove variable.
46766         (minus_zero): New variable.
46767         (main): Use minus_zero instead of -zero.
46768         * modules/truncl-tests (Depends-on): Add float.
46769
46770         * tests/test-frexpl.c (zero): Remove variable.
46771         (minus_zero): New variable.
46772         (main): Use minus_zero instead of -zero.
46773         * modules/frexpl-tests (Depends-on): Add float.
46774
46775         * tests/test-isnan.c (zerol): Remove variable.
46776         (minus_zerol): New variable.
46777         (test_long_double): Use minus_zerol instead of -zerol.
46778         * modules/isnan-tests (Depends-on): Add float.
46779
46780         * tests/test-isnanl.h (zero): Remove variable.
46781         (minus_zero): New variable.
46782         (main): Use minus_zero instead of -zero.
46783         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46784         * modules/isnanl-tests (Depends-on): Add float.
46785
46786         * tests/test-ldexpl.c (zero): Remove variable.
46787         (minus_zero): New variable.
46788         (main): Use minus_zero instead of -zero.
46789         * modules/ldexpl-tests (Depends-on): Add float.
46790
46791         * tests/test-snprintf-posix.h (zerol): Remove variable.
46792         (minus_zerol): New variable.
46793         (test_function): Use minus_zerol instead of -zerol.
46794         * modules/snprintf-posix-tests (Depends-on): Add float.
46795         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46796
46797         * tests/test-sprintf-posix.h (zerol): Remove variable.
46798         (minus_zerol): New variable.
46799         (test_function): Use minus_zerol instead of -zerol.
46800         * modules/sprintf-posix-tests (Depends-on): Add float.
46801         * modules/vsprintf-posix-tests (Depends-on): Add float.
46802
46803         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46804         (minus_zerol): New variable.
46805         (test_function): Use minus_zerol instead of -zerol.
46806         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46807
46808         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46809         (minus_zerol): New variable.
46810         (test_function): Use minus_zerol instead of -zerol.
46811         * modules/vasprintf-posix-tests (Depends-on): Add float.
46812
46813 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46814
46815         * MODULES.html.sh (Support for building documentation): Mention
46816         pmccabe2html.  Sort entries.
46817
46818         Add pmccabe2html module, from gnupdf.
46819         * build-aux/pmccabe.css: New file.
46820         * build-aux/pmccabe2html: New file.
46821         * m4/pmccabe2html.m4: New file.
46822         * modules/pmccabe2html: New file.
46823
46824 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46825
46826         flock: new module
46827         * MODULES.html.sh: Add to list of modules.
46828         * lib/flock.c: flock implementation for Windows and Unix systems
46829         which have fcntl.
46830         * doc/glibc-functions/flock.texi: Update documentation.
46831         * lib/sys_file.in.h: <sys/file.h> header file.
46832         * m4/flock.m4: M4 macros.
46833         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46834         * modules/flock: flock module.
46835         * modules/flock-tests: flock tests module.
46836         * modules/sys_file: sys/file.h module.
46837         * tests/test-flock.c: test suite for flock.
46838
46839 2008-10-06  Jim Meyering  <meyering@redhat.com>
46840
46841         bootstrap: check for LT_INIT more portably still ;-)
46842         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46843         Spotted by Bruno Haible.
46844
46845 2008-10-06  Eric Blake  <ebb9@byu.net>
46846
46847         test-signbit: avoid tripping Irix cc bug on -0.0L
46848         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46849         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46850         entire testsuite consistent and avoids an Irix 6.2 bug.
46851
46852 2008-10-05  Bruno Haible  <bruno@clisp.org>
46853             Jim Meyering  <jim@meyering.net>
46854
46855         Add an option for ignoring EPIPE during close_stdout.
46856         * lib/closeout.h: Include <stdbool.h>.
46857         (close_stdout_set_ignore_EPIPE): New declaration.
46858         * lib/closeout.c: Include <stdbool.h>.
46859         (ignore_EPIPE): New variable.
46860         (close_stdout_set_ignore_EPIPE): New function.
46861         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46862         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46863         failure.
46864         * modules/closeout (Depends-on): Add stdbool.
46865
46866 2008-10-05  Bruno Haible  <bruno@clisp.org>
46867
46868         * modules/accept: New file.
46869         * modules/bind: New file.
46870         * modules/connect: New file.
46871         * modules/getpeername: New file.
46872         * modules/getsockname: New file.
46873         * modules/getsockopt: New file.
46874         * modules/listen: New file.
46875         * modules/recv: New file.
46876         * modules/recvfrom: New file.
46877         * modules/send: New file.
46878         * modules/sendto: New file.
46879         * modules/setsockopt: New file.
46880         * modules/socket: New file.
46881         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46882         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46883         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46884         the particular module is requested. Add a link warning when the
46885         particular module is not requested.
46886         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46887         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46888         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46889         the particular module is requested.
46890         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46891         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46892         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46893         * modules/sys_socket (Depends-on): Add link-warning.
46894         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46895         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46896         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46897         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46898         GL_LINK_WARNING.
46899         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46900         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46901         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46902         * doc/posix-functions/getpeername.texi: Mention the new module
46903         'getpeername'.
46904         * doc/posix-functions/getsockname.texi: Mention the new module
46905         'getsockname'.
46906         * doc/posix-functions/getsockopt.texi: Mention the new module
46907         'getsockopt'.
46908         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46909         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46910         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46911         * doc/posix-functions/send.texi: Mention the new module 'send'.
46912         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46913         * doc/posix-functions/setsockopt.texi: Mention the new module
46914         'setsockopt'.
46915         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46916         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46917         listen, connect, accept.
46918         * modules/select-tests (Depends-on): Likewise.
46919
46920 2008-10-05  Bruno Haible  <bruno@clisp.org>
46921
46922         * lib/winsock.c (strerror): Remove unused #undef.
46923         (rpl_close): Remove unused local variable.
46924
46925         * modules/sys_socket (Depends-on); Add errno.
46926
46927 2008-10-05  Bruno Haible  <bruno@clisp.org>
46928
46929         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46930         (select): Add a link warning when the 'select' module is not used.
46931         * modules/sys_select (Depends-on): Add link-warning.
46932         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46933         Suggested by Paolo Bonzini.
46934
46935 2008-10-05  Jim Meyering  <meyering@redhat.com>
46936
46937         bootstrap: check for LT_INIT more portably
46938         * build-aux/bootstrap: Avoid using grep -E, since it's not
46939         portable enough.  Suggestion from Bruno Haible.
46940
46941 2008-10-05  Bruno Haible  <bruno@clisp.org>
46942
46943         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46944         as being fixed by gnulib.
46945
46946 2008-10-05  Bruno Haible  <bruno@clisp.org>
46947
46948         * modules/select-tests: New file, mostly copied from
46949         modules/sys_select-tests.
46950         * tests/test-select.c: New file, mostly copied from
46951         tests/test-sys_select.c.
46952         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46953         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46954         (Makefile.am): Remove test_sys_select_LDADD.
46955
46956         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46957         to an undefined symbol, for an error message.
46958         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46959         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46960         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46961         winsock-select.c here.
46962         * modules/sys_select (Files): Remove lib/winsock-select.c.
46963         (Depends-on): Remove alloca.
46964         (Makefile.am): Substitute GNULIB_SELECT.
46965         * modules/select: New file.
46966         * doc/posix-functions/select.texi: Update.
46967
46968 2008-10-05  Bruno Haible  <bruno@clisp.org>
46969
46970         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46971         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46972         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46973         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46974         getdtablesize.
46975         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46976         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46977
46978 2008-10-05  Bruno Haible  <bruno@clisp.org>
46979
46980         * modules/getdtablesize-tests: New file.
46981         * tests/test-getdtablesize.c: New file.
46982
46983         New module 'getdtablesize'.
46984         * lib/unistd.in.h (getdtablesize): New declaration.
46985         * lib/getdtablesize.c: New file.
46986         * m4/getdtablesize.m4: New file.
46987         * modules/getdtablesize: New file.
46988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46989         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46990         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46991         HAVE_GETDTABLESIZE.
46992         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46993
46994 2008-10-05  Bruno Haible  <bruno@clisp.org>
46995
46996         * modules/sched (Makefile.am): Fix typo.
46997         Reported by Simon Josefsson.
46998
46999 2008-10-05  Jim Meyering  <meyering@redhat.com>
47000
47001         bootstrap: check for LT_INIT, too
47002         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47003         are deprecated.  Suggestion from Ralf Wildenhues.
47004
47005 2008-10-05  Bruno Haible  <bruno@clisp.org>
47006
47007         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47008         overriding them by ours.
47009         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47010
47011 2008-10-05  Jim Meyering  <meyering@redhat.com>
47012
47013         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47014         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47015         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47016
47017 2008-10-04  Bruno Haible  <bruno@clisp.org>
47018
47019         * modules/dup2 (License): Change to LGPLv2+.
47020         * modules/sleep (License): Likewise.
47021         * modules/perror (License): Likewise.
47022         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47023         Blake.
47024         * modules/signal (License): Likewise.
47025         * modules/sigprocmask (License): Likewise.
47026         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47027         Meyering.
47028
47029 2008-10-04  Bruno Haible  <bruno@clisp.org>
47030
47031         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47032         Reported by Rainer Tammer <tammer@tammer.net>.
47033
47034 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47035             Bruno Haible  <bruno@clisp.org>
47036
47037         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47038         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47039         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47040
47041 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47042
47043         filevercmp: new module
47044         * lib/filevercmp.h: New function filevercmp comparing version strings.
47045         * lib/filevercmp.c: Implementation of filevercmp function.
47046         * modules/filevercmp: Module metadata.
47047         * tests/test-filevercmp.c: Unit test for new module.
47048         * modules/filevercmp-tests: Unit test metadata.
47049         * MODULES.html.sh: Add filevercmp module.
47050
47051 2008-10-03  Bruno Haible  <bruno@clisp.org>
47052
47053         * lib/c-ctype.h: Add comment.
47054         Reported by Jim Meyering.
47055
47056 2008-10-02  Bruno Haible  <bruno@clisp.org>
47057
47058         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47059
47060 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47061
47062         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47063         name of bootstrap.conf accordingly.
47064
47065 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47066
47067         * build-aux/bootstrap: Install git-merge-changelog configuration
47068         items into .gitconfig if needed.
47069
47070 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47071
47072         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47073         git repository, and initialize/update it accordingly.
47074
47075 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47076
47077         * modules/fsync-tests: New file.
47078         * tests/test-fsync.c: New file.
47079
47080         New module 'fsync'.
47081         * lib/fsync.c: New file.
47082         * m4/fsync.m4: New file.
47083         * modules/fsync: New file.
47084         * lib/unistd.in.h (fsync): New declaration.
47085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47086         GNULIB_FSYNC and HAVE_FSYNC.
47087         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47088         * MODULES.html.sh (posix_functions): Add fsync.
47089         * doc/posix-functions/fsync.texi: Mention the new module.
47090
47091 2008-10-02  Jim Meyering  <meyering@redhat.com>
47092
47093         fts.c: sync with similar code from coreutils' remove.c
47094         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47095         Guard also with "#if defined __linux__", since for now at least,
47096         this code is Linux-kernel-specific.
47097
47098 2008-10-02  Jim Meyering  <meyering@redhat.com>
47099
47100         fts: bug fixes
47101         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47102         Include <sys/vfs.h>, not <sys/statfs.h>.
47103
47104         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47105         Include <sys/vfs.h>, not <sys/statfs.h>.
47106
47107 2008-10-01  Bruno Haible  <bruno@clisp.org>
47108
47109         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47110         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47111         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47112         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47113         * doc/posix-functions/posix_spawnp.texi: Likewise.
47114         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47115         whether posix_spawn actually works.
47116         * m4/pipe.m4 (gl_PIPE): Likewise.
47117         * modules/execute (Files): Add m4/posix_spawn.m4.
47118         * modules/pipe (Files): Add m4/posix_spawn.m4.
47119         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47120
47121 2008-10-01  Jim Meyering  <meyering@redhat.com>
47122
47123         remove trailing spaces
47124         * NEWS: Likewise.
47125         * lib/poll.c (poll): Likewise.
47126         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47127         * lib/winsock.c (rpl_close): Likewise.
47128         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47129         * modules/yield: Likewise.
47130         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47131         * tests/test-sys_select.c (connect_to_socket): Likewise.
47132
47133         fts.c: adjust a new interface to be more generally useful
47134         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47135         (fts_build): Adjust caller.
47136
47137 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47138
47139         * modules/cond-tests: New file.
47140         * tests/test-cond.c: New file.
47141
47142 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47143             Bruno Haible  <bruno@clisp.org>
47144
47145         * modules/cond (Dependencies): Add errno, time.
47146         * lib/glthread/cond.h: Include <time.h>.
47147         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47148         across platforms.
47149
47150 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47151             Bruno Haible  <bruno@clisp.org>
47152
47153         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47154
47155 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47156             Bruno Haible  <bruno@clisp.org>
47157
47158         * modules/tls-tests (Depends-on): Add thread, yield.
47159         (configure.ac): Remove all checks.
47160         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47161         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47162         gl_thread_self): Remove definitions. Include glthread/thread.h and
47163         glthread/yield.h instead.
47164         (test_tls): Pass an additional NULL argument to gl_thread_join.
47165
47166 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47167             Bruno Haible  <bruno@clisp.org>
47168
47169         * modules/lock-tests (Depends-on): Add thread, yield.
47170         (configure.ac): Remove all checks.
47171         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47172         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47173         gl_thread_self): Remove definitions. Include glthread/thread.h and
47174         glthread/yield.h instead.
47175         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47176         additional NULL argument to gl_thread_join.
47177
47178 2008-09-30  Bruno Haible  <bruno@clisp.org>
47179
47180         Fix the Win32 implementation of the 'thread' module.
47181         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47182         pointer type.
47183         (gl_thread_self): Invoke gl_thread_self_func.
47184         (gl_thread_self_func): New declaration.
47185         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47186         (do_init_self_key, init_self_key): New functions.
47187         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47188         Remove some fields.
47189         (running_threads, running_lock): Remove variables.
47190         (get_current_thread_handle): New function.
47191         (gl_thread_self_func, wrapper_func, glthread_create_func,
47192         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47193         simplified.
47194
47195 2008-09-30  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47198         files.
47199
47200 2008-09-30  Jim Meyering  <meyering@redhat.com>
47201
47202         fts.m4: correct the test for statfs.f_type
47203         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47204         when checking for statfs.f_type.
47205
47206 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47207
47208         tests: avoid some compiler warnings
47209         * tests/test-memchr.c (main): Pass NULL indirectly.
47210         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47211
47212 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
47213
47214         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47215         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47216         exactly specified dayshifts.
47217         (dayshift): New rule.
47218         (rel): Add dayshift.
47219         (relative_time_table) [tomorrow, yesterday, today, now]:
47220         Use tDAY_SHIFT in place of tDAY_UNIT.
47221         * tests/test-getdate.c: Add tests for now-disallowed countable
47222         dayshifts, e.g., "4 yesterday ago".
47223
47224 2008-09-29  Bruno Haible  <bruno@clisp.org>
47225
47226         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47227         * tests/test-posix_spawn1.in.sh: Renamed from
47228         tests/test-posix_spawn.in.sh.
47229         * tests/test-posix_spawn2.c: New file.
47230         * tests/test-posix_spawn2.in.sh: New file.
47231         * modules/posix_spawnp-tests (Files): Update.
47232         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47233
47234 2008-09-29  Bruno Haible  <bruno@clisp.org>
47235
47236         Propagate effects of putenv/setenv/unsetenv to child processes.
47237         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47238         * lib/pipe.c (create_pipe): Likewise.
47239
47240 2008-09-29  Bruno Haible  <bruno@clisp.org>
47241
47242         Enable use of shell scripts as executables in mingw.
47243         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47244         run the program as a shell script.
47245         * lib/pipe.c (create_pipe): Likewise.
47246         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47247         resulting array.
47248
47249 2008-09-29  Eric Blake  <ebb9@byu.net>
47250
47251         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47252
47253 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47254
47255         * doc/posix-functions/accept.texi: Update mingw problems.
47256         * doc/posix-functions/bind.texi: Update mingw problems.
47257         * doc/posix-functions/close.texi: Update mingw problems.
47258         * doc/posix-functions/connect.texi: Update mingw problems.
47259         * doc/posix-functions/getpeername.texi: Update mingw problems.
47260         * doc/posix-functions/getsockname.texi: Update mingw problems.
47261         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47262         * doc/posix-functions/ioctl.texi: Update mingw problems.
47263         * doc/posix-functions/listen.texi: Update mingw problems.
47264         * doc/posix-functions/recv.texi: Update mingw problems.
47265         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47266         * doc/posix-functions/select.texi: Update mingw problems.
47267         * doc/posix-functions/send.texi: Update mingw problems.
47268         * doc/posix-functions/sendto.texi: Update mingw problems.
47269         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47270         * doc/posix-functions/socket.texi: Update mingw problems.
47271
47272 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47273             Bruno Haible  <bruno@clisp.org>
47274
47275         * lib/sys_select.in.h: Include sys/time.h.
47276         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47277         * modules/sys_select: Depend on sys_time.
47278         * tests/test-sys_select.c: Test that sys/select.h defines struct
47279         timeval fully.
47280
47281 2008-09-29  Bruno Haible  <bruno@clisp.org>
47282
47283         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47284         * lib/sys_select.in.h: Likewise.
47285
47286 2008-09-29  Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47289
47290 2008-09-29  Bruno Haible  <bruno@clisp.org>
47291
47292         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47293         Set LIBSOCKET instead of augmenting LIBS.
47294         * modules/sockets (Link): New section.
47295         * modules/sockets-tests (test_sockets_LDADD): New variable.
47296         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47297         * modules/poll-tests (test_poll_LDADD): New variable.
47298         * NEWS: Document the change.
47299
47300 2008-09-29  Bruno Haible  <bruno@clisp.org>
47301
47302         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47303         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47304         ARPA_INET_H directly.
47305         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47306
47307 2008-09-28  Bruno Haible  <bruno@clisp.org>
47308
47309         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47310         from gl_HEADER_SYS_SOCKET.
47311         (gl_HEADER_SYS_SOCKET): Invoke it.
47312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47313
47314 2008-09-28  Bruno Haible  <bruno@clisp.org>
47315
47316         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47317         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47318         Needed on OSF/1 4.0.
47319
47320 2008-09-28  Bruno Haible  <bruno@clisp.org>
47321
47322         Override open more carefully.
47323         * lib/open.c (orig_open): New function.
47324         (rpl_open): Use orig_open instead of open.
47325         * lib/fcntl.in.h: Add special invocation convention.
47326         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47327         (gl_FUNC_OPEN): Invoke it.
47328
47329         Override freopen more carefully.
47330         * lib/freopen.c (orig_freopen): New function.
47331         (rpl_freopen): Use orig_freopen instead of freopen.
47332         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47333         (gl_FUNC_FREOPEN): Invoke it.
47334
47335         Override fopen more carefully.
47336         * lib/fopen.c (orig_fopen): New function.
47337         (rpl_fopen): Use orig_fopen instead of fopen.
47338         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47339         (gl_FUNC_FOPEN): Invoke it.
47340         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47341
47342 2008-09-28  Bruno Haible  <bruno@clisp.org>
47343
47344         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47345         SIGPIPE.
47346
47347 2008-09-28  Bruno Haible  <bruno@clisp.org>
47348
47349         * tests/test-sigaction.c (handler, main): Disable the check whether
47350         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47351         glibc systems with LinuxThreads.
47352
47353 2008-09-28  Bruno Haible  <bruno@clisp.org>
47354
47355         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47356
47357         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47358         with AIX xlc.
47359         * lib/fcntl.in.h (open): Likewise.
47360         Reported by Rainer Tammer <tammer@tammer.net>.
47361
47362 2008-09-28  Bruno Haible  <bruno@clisp.org>
47363
47364         * modules/posix_spawnp-tests: New file.
47365         * tests/test-posix_spawn.c: New file.
47366         * tests/test-posix_spawn.in.sh: New file.
47367
47368         New module 'posix_spawnp'.
47369         * modules/posix_spawnp: New file.
47370         * lib/spawnp.c: New file, from GNU libc with modifications.
47371         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47372
47373         New module 'posix_spawn'.
47374         * modules/posix_spawn: New file.
47375         * lib/spawn.c: New file, from GNU libc with modifications.
47376         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47377
47378         New module 'posix_spawnattr_destroy'.
47379         * modules/posix_spawnattr_destroy: New file.
47380         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47381         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47382         module.
47383
47384         New module 'posix_spawnattr_setsigmask'.
47385         * modules/posix_spawnattr_setsigmask: New file.
47386         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47387         modifications.
47388         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47389         new module.
47390
47391         New module 'posix_spawnattr_getsigmask'.
47392         * modules/posix_spawnattr_getsigmask: New file.
47393         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47394         modifications.
47395         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47396         new module.
47397
47398         New module 'posix_spawnattr_setsigdefault'.
47399         * modules/posix_spawnattr_setsigdefault: New file.
47400         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47401         modifications.
47402         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47403         new module.
47404
47405         New module 'posix_spawnattr_getsigdefault'.
47406         * modules/posix_spawnattr_getsigdefault: New file.
47407         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47408         modifications.
47409         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47410         new module.
47411
47412         New module 'posix_spawnattr_setschedpolicy'.
47413         * modules/posix_spawnattr_setschedpolicy: New file.
47414         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47415         modifications.
47416         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47417         new module.
47418
47419         New module 'posix_spawnattr_getschedpolicy'.
47420         * modules/posix_spawnattr_getschedpolicy: New file.
47421         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47422         modifications.
47423         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47424         new module.
47425
47426         New module 'posix_spawnattr_setschedparam'.
47427         * modules/posix_spawnattr_setschedparam: New file.
47428         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47429         modifications.
47430         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47431         new module.
47432
47433         New module 'posix_spawnattr_getschedparam'.
47434         * modules/posix_spawnattr_getschedparam: New file.
47435         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47436         modifications.
47437         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47438         new module.
47439
47440         New module 'posix_spawnattr_setpgroup'.
47441         * modules/posix_spawnattr_setpgroup: New file.
47442         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47443         modifications.
47444         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47445         module.
47446
47447         New module 'posix_spawnattr_getpgroup'.
47448         * modules/posix_spawnattr_getpgroup: New file.
47449         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47450         modifications.
47451         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47452         module.
47453
47454         New module 'posix_spawnattr_setflags'.
47455         * modules/posix_spawnattr_setflags: New file.
47456         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47457         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47458         module.
47459
47460         New module 'posix_spawnattr_getflags'.
47461         * modules/posix_spawnattr_getflags: New file.
47462         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47463         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47464         module.
47465
47466         New module 'posix_spawnattr_init'.
47467         * modules/posix_spawnattr_init: New file.
47468         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47469         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47470         module.
47471
47472         New module 'posix_spawn_file_actions_destroy'.
47473         * modules/posix_spawn_file_actions_destroy: New file.
47474         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47475         modifications.
47476         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47477         the new module.
47478
47479         New module 'posix_spawn_file_actions_addopen'.
47480         * modules/posix_spawn_file_actions_addopen: New file.
47481         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47482         modifications.
47483         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47484         the new module.
47485
47486         New module 'posix_spawn_file_actions_adddup2'.
47487         * modules/posix_spawn_file_actions_adddup2: New file.
47488         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47489         modifications.
47490         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47491         the new module.
47492
47493         New module 'posix_spawn_file_actions_addclose'.
47494         * modules/posix_spawn_file_actions_addclose: New file.
47495         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47496         modifications.
47497         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47498         the new module.
47499
47500         New module 'posix_spawn_file_actions_init'.
47501         * modules/posix_spawn_file_actions_init: New file.
47502         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47503         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47504         new module.
47505
47506         New module 'posix_spawn-internal'.
47507         * modules/posix_spawn-internal: New file.
47508         * lib/spawn_int.h: New file, from GNU libc with modifications.
47509         * lib/spawni.c: New file, from GNU libc with modifications.
47510         * m4/posix_spawn.m4: New file.
47511
47512         New module 'spawn'.
47513         * modules/spawn: New file.
47514         * lib/spawn.in.h: New file, from GNU libc with modifications.
47515         * m4/spawn_h.m4: New file.
47516         * doc/posix-headers/spawn.texi: Mention the new module.
47517
47518 2008-09-28  Bruno Haible  <bruno@clisp.org>
47519
47520         * modules/sched-tests: New file.
47521         * tests/test-sched.c: New file.
47522
47523         New module 'sched'.
47524         * modules/sched: New file.
47525         * lib/sched.in.h: New file.
47526         * m4/sched_h.m4: New file.
47527         * doc/posix-headers/sched.texi: Mention the new module.
47528
47529 2008-09-27  Eric Blake  <ebb9@byu.net>
47530
47531         Fix previous patch, and tweak references to $0.
47532         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47533         (func_version, func_gnulib_dir): Don't call this program
47534         gnulib-tool.
47535         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47536         with using $0 in function.
47537         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47538         (func_fatal_error): Reuse the name the user invoked us with.
47539
47540 2008-09-27  Bruno Haible  <bruno@clisp.org>
47541
47542         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47543         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47544         (gl_ICONV_H): Not here.
47545         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47546         instead of assigning ICONV_H directly.
47547
47548         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47550         WCHAR_H directly.
47551
47552 2008-09-27  Bruno Haible  <bruno@clisp.org>
47553
47554         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47555         * modules/arpa_inet (Depends-on): Add link-warning.
47556         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47557         * modules/unistd (Makefile.am): Likewise.
47558
47559 2008-09-26  Bruno Haible  <bruno@clisp.org>
47560
47561         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47562         variables.
47563         (func_version): Essentially copied from gnulib-tool.
47564         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47565         func_readlink): Copied from gnulib-tool.
47566
47567 2008-09-26  Bruno Haible  <bruno@clisp.org>
47568
47569         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47570         invoking git-version-gen.
47571
47572 2008-09-26  Bruno Haible  <bruno@clisp.org>
47573
47574         * posix-modules: Update to directory names changed on 2008-01-19.
47575         Remove commas in output before splitting into words. No more need to
47576         avoid 'ftruncate' since 2007-02-19.
47577
47578 2008-09-26  Bruno Haible  <bruno@clisp.org>
47579
47580         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47581
47582 2008-09-26  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47585         * modules/fwriteerror (Depends-on): Add errno.
47586
47587 2008-09-26  Bruno Haible  <bruno@clisp.org>
47588
47589         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47590         * tests/test-vc-list-files-cvs.sh: Likewise.
47591
47592 2008-09-26  Bruno Haible  <bruno@clisp.org>
47593
47594         * doc/posix-headers/sys_resource.texi: Reorder items.
47595
47596 2008-09-26  Jim Meyering  <meyering@redhat.com>
47597
47598         fts: tweak inode comparison function
47599         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47600         inode numbers, as documented.
47601
47602         fts: sort dirent entries on inode number before traversing
47603         This avoids a quadratic, seek-related performance penalty when
47604         operating on a directory containing many entries (measurable at 10k;
47605         3.5 hours at 2 million entries with a cold cache) on certain types
47606         of file systems, including ext3 and ext4, but not tmpfs.
47607         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47608         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47609         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47610         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47611         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47612         (fts_build): Set the stat.st_ino member from D_INO.
47613         If it is likely to be useful, sort dirent entries on inode number.
47614
47615         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47616         and the struct statfs.f_type member.
47617         * modules/fts (Depends-on): Add d-ino.
47618
47619 2008-09-26  Bruno Haible  <bruno@clisp.org>
47620
47621         * modules/sigpipe-die (Depends-on): Add sigpipe.
47622
47623         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47624         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47625         and GNULIB_STDIO_H_SIGPIPE are set.
47626         * lib/stdio-write.c: New file.
47627         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47628         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47629         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47630         REPLACE_STDIO_WRITE_FUNCS.
47631         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47632         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47633         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47634         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47635         * modules/stdio (Files): Add lib/stdio-write.c.
47636         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47637         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47638         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47639         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47640         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47641         REPLACE_FPRINTF_POSIX.
47642         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47643         REPLACE_PRINTF_POSIX.
47644         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47645         REPLACE_VFPRINTF_POSIX.
47646         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47647         REPLACE_VPRINTF_POSIX.
47648         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47649         SIGPIPE issue.
47650         * doc/posix-functions/fputc.texi: Likewise.
47651         * doc/posix-functions/fputs.texi: Likewise.
47652         * doc/posix-functions/fwrite.texi: Likewise.
47653         * doc/posix-functions/printf.texi: Likewise.
47654         * doc/posix-functions/putc.texi: Likewise.
47655         * doc/posix-functions/putchar.texi: Likewise.
47656         * doc/posix-functions/puts.texi: Likewise.
47657         * doc/posix-functions/vfprintf.texi: Likewise.
47658         * doc/posix-functions/vprintf.texi: Likewise.
47659
47660         * modules/safe-write (Depends-on): Add write.
47661
47662         * modules/sigpipe-tests: New file.
47663         * tests/test-sigpipe.c: New file.
47664         * tests/test-sigpipe.sh: New file.
47665
47666         * modules/write: New file.
47667         * lib/unistd.in.h: Include <sys/types.h>.
47668         (write): New declaration.
47669         * lib/write.c: New file.
47670         * m4/write.m4: New file.
47671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47672         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47673         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47674         GNULIB_WRITE, REPLACE_WRITE.
47675         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47676         and the SIGPIPE issue.
47677
47678         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47679         (raise): New declaration.
47680         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47681         (ext_signal): New function.
47682         (rpl_raise): New function.
47683         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47684         GNULIB_SIGNAL_H_SIGPIPE.
47685         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47686         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47687
47688         * modules/sigpipe: New file.
47689         * m4/sigpipe.m4: New file.
47690
47691 2008-09-25  Derek Price  <derek@ximbiot.com>
47692             Bruno Haible  <bruno@clisp.org>
47693
47694         * gnulib-tool (func_import): Report all license incompatibilities, not
47695         just the first one.
47696
47697 2008-09-25  Bruno Haible  <bruno@clisp.org>
47698
47699         * gnulib-tool (func_import): When computing the edits, consider not
47700         only the Makefile.ams that exist but also those that will be generated.
47701
47702 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47703
47704         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47705         fixes gnulib-tool --test warning about duplicate dependency.
47706
47707 2008-09-25  Bruno Haible  <bruno@clisp.org>
47708
47709         * gnulib-tool: Don't ask the user to perform edits in the generated
47710         Makefile.ams.
47711         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47712         apply to the Makefile.am being generated.
47713         (func_emit_tests_Makefile_am): Execute edits that apply to the
47714         Makefile.am being generated.
47715         (func_import): Setup list of Makefile.am edits before emitting the
47716         Makefile.ams, not at the end.
47717         (func_create_testdir): Update.
47718         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47719
47720 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47721
47722         * gnulib-tool (func_import): Store the --tests-base option in the
47723         comment in gnulib-cache.m4.
47724
47725 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47726
47727         * NEWS: Document increased portability that sys_select now provides.
47728
47729         * lib/sys_select.in.h: Install select wrapper.
47730         * lib/sys_socket.in.h: Use more descriptive name when there is no
47731         select wrapper.
47732         * lib/winsock-select.c: New.
47733         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47734         Require gl_HEADER_SYS_SOCKET.
47735         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47736         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47737         * tests/test-sys_select.c: Add functional tests.
47738
47739 2008-09-24  Eric Blake  <ebb9@byu.net>
47740
47741         open, fopen: close fd leak in last patch
47742         * lib/open.c (rpl_open): Close fd before returning error.
47743         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47744         * doc/posix-functions/open.texi (open): Document that Irix also
47745         has the bug.
47746         * doc/posix-functions/fopen.texi (fopen): Likewise.
47747         Reported by Paolo Bonzini.
47748
47749 2008-09-24  Bruno Haible  <bruno@clisp.org>
47750
47751         Ensure that a filename ending in a slash cannot be used to access a
47752         non-directory.
47753         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47754         to check whether it's really a directory.
47755         * lib/fopen.c: Include fcntl.h, unistd.h.
47756         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47757         and fdopen().
47758         * modules/fopen (Depends-on): Add unistd.
47759         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47760         * tests/test-fopen.c (main): Likewise.
47761         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47762         * doc/posix-functions/fopen.texi: Likewise.
47763         Reported by Eric Blake.
47764
47765 2008-09-23  Eric Blake  <ebb9@byu.net>
47766
47767         c-stack: avoid compiler optimizations when provoking overflow
47768         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47769         recursion harder to optimize, to ensure a stack overflow occurs.
47770         * tests/test-c-stack.c (recurse): Likewise.
47771         Borrowed from libsigsegv.
47772
47773         c-stack: work around Irix sigaltstack bug
47774         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47775         whether sigaltstack uses wrong end of stack_t (copied in part from
47776         libsigsegv).
47777         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47778         Irix bug, without requiring an over-allocation.
47779         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47780         bug.
47781
47782         fopen: document mingw bug on directories
47783         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47784         not allowing a stream visiting a directory, even though reading
47785         from such a stream is not portable.
47786
47787 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47788
47789         * lib/poll.c: Rewrite.
47790         * modules/poll: Depend on alloca.
47791
47792 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47793
47794         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47795         instead define prototypes for a full set of wrappers.  Ensure
47796         that Cygwin does not use the compatibility code, which is only
47797         for MinGW.
47798         * lib/winsock.c: New.
47799         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47800         * modules/sys_socket: Add lib/winsock.c.
47801
47802         * modules/poll-tests: Add errno and perror.
47803         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47804
47805 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47806
47807         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47808
47809 2008-09-23  Bruno Haible  <bruno@clisp.org>
47810
47811         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47812         * doc/glibc-functions/*: Likewise.
47813
47814 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47815
47816         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47817         success.
47818
47819 2008-09-22  Eric Blake  <ebb9@byu.net>
47820             Bruno Haible  <bruno@clisp.org>
47821
47822         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47823         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47824         supply %A but mishandle pseudo-NaN.
47825         Reported by Simon Josefsson.
47826
47827 2008-09-21  Bruno Haible  <bruno@clisp.org>
47828
47829         * tests/test-lock.c (main): Tweak skip message.
47830         * tests/test-tls.c (main): Likewise.
47831
47832 2008-09-21  Bruno Haible  <bruno@clisp.org>
47833
47834         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47835         whether 'struct sigaction' has sa_sigaction here...
47836         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47837         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47838
47839 2008-09-21  Bruno Haible  <bruno@clisp.org>
47840
47841         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47842         section.
47843         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47844         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47845         the new section.
47846         (Support for obsolete systems lacking POSIX:2001): New section.
47847         (String handling <string.h>): Move strdup to the new section.
47848         Suggested by Simon Josefsson and Paolo Bonzini.
47849
47850 2008-09-21  Bruno Haible  <bruno@clisp.org>
47851
47852         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47853         exponents in %e and %g results on 'long double'. Needed for mingw's
47854         improved *printf functions.
47855         * tests/test-vasprintf-posix.c (test_function): Likewise.
47856         * tests/test-snprintf-posix.h (test_function): Likewise.
47857         * tests/test-sprintf-posix.h (test_function): Likewise.
47858         Reported by Eric Blake.
47859
47860 2008-09-21  Bruno Haible  <bruno@clisp.org>
47861
47862         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47863         * tests/test-sprintf-posix.h (test_function): Likewise.
47864
47865 2008-09-21  Bruno Haible  <bruno@clisp.org>
47866
47867         * modules/getpass (Depends-on): Add strdup-posix.
47868
47869         New module 'strdup-posix'.
47870         * modules/strdup-posix: New file.
47871         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47872         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47874         REPLACE_STRDUP.
47875         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47876         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47877         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47878         strdup-posix.
47879
47880         * modules/strdup (Depends-on): Remove malloc-posix.
47881
47882 2008-09-20  Bruno Haible  <bruno@clisp.org>
47883
47884         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47885         Wildenhues.
47886
47887 2008-09-20  Bruno Haible  <bruno@clisp.org>
47888
47889         Ensure that wint_t gets defined on IRIX 5.3.
47890         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47891         * lib/wctype.in.h (wint_t): Likewise.
47892         (__wctype_wint_t): Remove type.
47893         (isw*): Use wint_t instead of __wctype_wint_t.
47894         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47895         * modules/wchar (Files): Add m4/wint_t.m4.
47896         (Makefile.am): Substitute HAVE_WINT_T.
47897         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47898         * tests/test-wctype.c: Check that wint_t is defined.
47899         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47900         * doc/posix-headers/wctype.texi: Likewise.
47901         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47902
47903 2008-09-18  Bruno Haible  <bruno@clisp.org>
47904
47905         * gnulib-tool (func_exit): Update comment.
47906
47907 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47908
47909         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47910         assumes strdup exists and does not depend on strdup to return
47911         ENOMEM on out of memory conditions.
47912
47913 2008-09-18  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47916         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47917         digits for the exponent.
47918
47919 2008-09-18  Jim Meyering  <meyering@redhat.com>
47920             Bruno Haible  <bruno@clisp.org>
47921
47922         * lib/vasnprintf.c (decimal_point_char): Define also if
47923         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47924
47925 2008-09-16  Bruno Haible  <bruno@clisp.org>
47926         and Eric Blake  <ebb9@byu.net>
47927
47928         vasnprintf: support Irix 5.3
47929         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47930         that mishandle long double infinity.
47931         Reported by Tom G. Christensen.
47932
47933 2008-09-16  Bruno Haible  <bruno@clisp.org>
47934
47935         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47936         Solaris 9.
47937         * doc/glibc-functions/alphasort.texi: Likewise.
47938         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47939
47940 2008-09-16  Jim Meyering  <meyering@redhat.com>
47941
47942         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47943         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47944         a umask modification leak out of a subshell.  Otherwise, the
47945         opensolaris /bin/sh would be accepted and thus cause unwarranted
47946         failures in the coreutils test suite.
47947
47948 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47949
47950         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47951         to succeed.
47952
47953 2008-09-16  Jim Meyering  <meyering@redhat.com>
47954
47955         avoid spurious test failure when library is built without ACL support
47956         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47957         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47958         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47959         * tests/test-copy-acl.sh: Likewise.
47960
47961 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47962
47963         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47964         based on character occurrence counts.
47965
47966 2008-09-15  Eric Blake  <ebb9@byu.net>
47967
47968         tests: avoid some compiler warnings
47969         * tests/test-memchr.c (main): Pass NULL indirectly.
47970         * tests/test-closein.c (main): Avoid unused variable.
47971
47972 2008-09-15  Bruno Haible  <bruno@clisp.org>
47973
47974         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47975         are missing on OpenBSD 4.0 individually.
47976         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47977
47978 2008-09-15  Bruno Haible  <bruno@clisp.org>
47979
47980         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47981         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47982         * doc/posix-functions/perror.texi: Likewise.
47983         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47984         is missing.
47985         Reported by Eric Blake.
47986
47987         * lib/errno.in.h: Use replacement values >= 2000.
47988         Reported by Eric Blake.
47989
47990 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47991
47992         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47993         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47994         limit.
47995         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47996         compareseq was aborted.
47997
47998 2008-09-14  Bruno Haible  <bruno@clisp.org>
47999
48000         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48001         yvec_edit_count.
48002         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48003         (fstrcmp_bounded): Simplify result computation accordingly.
48004
48005 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48006
48007         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48008         (fstrcmp): Define in terms of fstrcmp_bounded.
48009         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48010         lower_bound argument.
48011         Return quickly if the result is certainly < lower_bound.
48012         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48013
48014 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48015
48016         * lib/diffseq.h (EARLY_ABORT): New macro.
48017         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48018         evaluates to true.
48019
48020 2008-09-14  Bruno Haible  <bruno@clisp.org>
48021
48022         * modules/perror-tests: New file.
48023         * tests/test-perror.sh: New file.
48024         * tests/test-perror.c: New file.
48025
48026         New module 'perror'.
48027         * lib/stdio.in.h (perror): New declaration.
48028         * lib/perror.c: New file.
48029         * m4/perror.m4: New file.
48030         * modules/perror: New file.
48031         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48032         * doc/posix-functions/perror.texi: Mention the perror module.
48033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48034         REPLACE_PERROR.
48035         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48036         REPLACE_PERROR.
48037
48038 2008-09-14  Bruno Haible  <bruno@clisp.org>
48039
48040         * modules/stdio (Makefile.am): Reorder to match the order in
48041         lib/stdio.in.h.
48042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48043
48044 2008-09-13  Bruno Haible  <bruno@clisp.org>
48045
48046         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48047
48048 2008-09-13  Bruno Haible  <bruno@clisp.org>
48049
48050         Extend strerror to cover the added errno values.
48051         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48052         (rpl_strerror): Provide error messages for the added errno values and
48053         for the WSA* values.
48054         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48055         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48056         strerror.
48057         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48058         * modules/strerror (Depends-on): Add errno.
48059         * doc/posix-functions/strerror.texi: Document the change.
48060         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48061         and EOVERFLOW.
48062
48063 2008-09-13  Bruno Haible  <bruno@clisp.org>
48064
48065         * modules/EOVERFLOW: Remove file.
48066         * m4/eoverflow.m4: Remove file.
48067         * modules/EOVERFLOW-tests: Remove file.
48068         * tests/test-EOVERFLOW.c: Remove file.
48069         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48070         * modules/ftell (Depends-on): Likewise.
48071         * modules/getdelim (Depends-on): Likewise.
48072         * modules/getugroups (Depends-on): Likewise.
48073         * modules/poll (Depends-on): Likewise.
48074         * modules/snprintf (Depends-on): Likewise.
48075         * modules/sprintf-posix (Depends-on): Likewise.
48076         * modules/vasnprintf (Depends-on): Likewise.
48077         * modules/vasprintf (Depends-on): Likewise.
48078         * modules/vfprintf-posix (Depends-on): Likewise.
48079         * modules/vsnprintf (Depends-on): Likewise.
48080         * modules/vsprintf-posix (Depends-on): Likewise.
48081         * modules/xvasprintf (Depends-on): Likewise.
48082         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48083         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48084         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48085         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48086         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48087         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48088         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48089         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48090         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48091         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48092         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48093         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48094         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48095         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48096         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48097         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48098         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48099         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48100         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48101         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48102         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48103         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48104         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48105         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48106         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48107         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48108         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48109         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48110         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48111         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48112         * MODULES.html.sh: Remove EOVERFLOW.
48113         * NEWS: Mention the change.
48114
48115 2008-09-13  Bruno Haible  <bruno@clisp.org>
48116
48117         * modules/errno-tests: New file.
48118         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48119
48120         * lib/errno.in.h: New file.
48121         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48122         * modules/errno: New file.
48123         * doc/posix-headers/errno.texi: Update documentation.
48124         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48125
48126 2008-09-13  Bruno Haible  <bruno@clisp.org>
48127
48128         * tests/test-poll.c: Use #if for native Windows, rather than testing
48129         __MSVCRT__.
48130
48131 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48132             Bruno Haible  <bruno@clisp.org>
48133
48134         * lib/glob.c: Don't include <pwd.h> on native Windows.
48135         (WINDOWS32): New macro.
48136         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48137
48138 2008-09-13  Bruno Haible  <bruno@clisp.org>
48139
48140         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48141         (ETIMEDOUT): Remove macro.
48142         (glthread_cond_timedwait_multithreaded): New declaration.
48143         (glthread_cond_timedwait): Use it.
48144         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48145         (glthread_cond_timedwait_multithreaded): New function.
48146
48147 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48148
48149         * modules/poll-tests: Do not check for io.h.
48150         * tests/test-poll.c: Check for __MSVCRT__ instead.
48151
48152 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48153
48154         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48155         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48156         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48157
48158 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48159
48160         * modules/poll-tests: New.
48161         * tests/test-poll.c: New.
48162
48163 2008-09-12  Eric Blake  <ebb9@byu.net>
48164
48165         frexp: test for NetBSD failure on -0.0
48166         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48167         not all, bugs from NetBSD 3.0 have been fixed.
48168         * doc/posix-functions/frexp.texi (frexp): Document bug.
48169         Reported by Thomas Klausner.
48170
48171         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48172         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48173         literal -0.0.
48174         Reported by Jonathan C. Patschke <jp@centtech.com>.
48175
48176 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48177
48178         * lib/glthread/cond.h: Use dummy implementation also if
48179         USE_WIN32_THREADS.
48180
48181 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48182
48183         * modules/fnmatch-posix (License): Change to LGPLv2+.
48184         * modules/fnmatch-gnu (License): Likewise.
48185
48186 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48187
48188         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48189
48190 2008-09-11  Jim Meyering  <meyering@redhat.com>
48191
48192         * users.txt: Add gtk-vnc.
48193
48194 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48195
48196         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48197         rotate amounts.
48198
48199         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48200         required for 16-bit and 8-bit rotates.
48201         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48202         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48203         UINT8_MAX instead of hard-coded constants.
48204         Suggested by Paul Eggert.
48205
48206 2008-09-07  Bruno Haible  <bruno@clisp.org>
48207
48208         * tests/test-striconveh.c (main): Check behaviour when converting from
48209         UTF-7.
48210
48211         Make striconveh work better with stateful encodings.
48212         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48213         that iconv does not increment the inptr when returning -1/EINVAL.
48214
48215 2008-09-07  Bruno Haible  <bruno@clisp.org>
48216
48217         * build-aux/config.rpath: Update according to libtool-2.2.6.
48218         * build-aux/config.libpath: Likewise.
48219
48220 2008-09-06  Bruno Haible  <bruno@clisp.org>
48221
48222         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48223         * lib/freadptr.c (freadptr): Likewise.
48224         * lib/freadseek.c (freadptrinc): Likewise.
48225         Reported by Simon Josefsson.
48226
48227 2008-09-06  Bruno Haible  <bruno@clisp.org>
48228
48229         * modules/freadptr (License): Change to LGPLv2+.
48230         * modules/freadseek (License): Likewise.
48231         Suggested by Eric Blake.
48232
48233         * modules/memchr2 (License): Change to LGPLv2+.
48234         Approved by Eric Blake.
48235
48236 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48237             Bruno Haible  <bruno@clisp.org>
48238
48239         Make gnulib-tool work with native 'sed' on AIX.
48240         * gnulib-tool (sed_noop): New variable.
48241         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48242         func_add_or_update, func_create_testdir): Use it to initialize sed
48243         script variables.
48244         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48245
48246 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48247             Bruno Haible  <bruno@clisp.org>
48248
48249         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48250         also works after #include directives.
48251
48252 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
48253
48254         getdate.y: reject an out-of-range timezone value
48255         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48256         the range [-24...+24].  When specified with only one or two digits,
48257         * tests/test-getdate.c: Tests for the fix.
48258         * doc/getdate.texi: Document this change.
48259
48260 2008-09-03  Bruno Haible  <bruno@clisp.org>
48261
48262         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48263
48264 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48265
48266         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48267         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48268         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48269         Blake <ebb9@byu.net>.
48270
48271         * tests/test-bitrotate.c: Add more test vectors.
48272
48273 2008-09-02  Eric Blake  <ebb9@byu.net>
48274
48275         vasnprintf-posix: handle large precision via %.*d
48276         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48277         when handling it ourselves.
48278         * tests/test-vasnprintf-posix.c (test_function): Add test.
48279         * tests/test-snprintf-posix.h (test_function): Likewise.
48280         * tests/test-sprintf-posix.h (test_function): Likewise.
48281         * tests/test-vasprintf-posix.c (test_function): Likewise.
48282         Reported by Alain Guibert.
48283
48284 2008-09-01  Eric Blake  <ebb9@byu.net>
48285
48286         c-stack: make configure-time check more robust
48287         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48288         successful sigaction call.
48289         Reported by Tom G. Christensen.
48290
48291 2008-09-01  Bruno Haible  <bruno@clisp.org>
48292
48293         New module 'findprog-lgpl'.
48294         * modules/findprog-lgpl: New file.
48295         * lib/findprog-lgpl.c: New file.
48296         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48297         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48298         to decide whether to use strdup or xstrdup, concatenated_filename or
48299         xconcatenated_filename.
48300
48301 2008-09-01  Bruno Haible  <bruno@clisp.org>
48302
48303         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48304         'xconcat-filename' (GPL).
48305         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48306         (License): Change to LGPLv2+.
48307         * modules/xconcat-filename: New file.
48308         * lib/concat-filename.h (concatenated_filename): Change specification.
48309         (xconcatenated_filename): New declaration.
48310         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48311         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48312         memory situations.
48313         * lib/xconcat-filename.c: New file.
48314         * NEWS: Mention the change.
48315         * lib/findprog.c: Include concat-filename.h, not filename.h.
48316         (find_in_path): Use xconcatenated_filename instead of
48317         concatenated_filename.
48318         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48319         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48320         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48321         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48322         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48323         instead of concatenated_filename.
48324         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48325         (execute_java_class): Use xconcatenated_filename instead of
48326         concatenated_filename.
48327         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48328         * modules/javacomp (Depends-on): Likewise.
48329         * modules/javaexec (Depends-on): Likewise.
48330
48331 2008-09-01  Bruno Haible  <bruno@clisp.org>
48332
48333         Split module 'filename' into 'filename' and 'concat-filename'.
48334         * modules/filename: Keep only lib/filename.h.
48335         (License): Change to LGPLv2+.
48336         * modules/concat-filename: New file, extracted from modules/filename.
48337         * lib/filename.h (concatenated_filename): Remove declaration.
48338         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48339         * lib/concat-filename.c: Include concat-filename.h.
48340         * NEWS: Mention the change.
48341
48342 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48343
48344         * lib/bitrotate.h (rotl8, rotr8): Add.
48345
48346         * modules/bitrotate (configure.ac): Need
48347         AC_REQUIRE([AC_C_INLINE]).
48348         (Description): Mention stdint.h.  Reported by Bruno Haible
48349         <bruno@clisp.org>.
48350
48351         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48352         Paolo Bonzini <bonzini@gnu.org>.
48353
48354 2008-08-31  Bruno Haible  <bruno@clisp.org>
48355
48356         Assume Solaris specific bi-arch conventions on Solaris systems.
48357         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48358         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48359         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48360         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48361         like acl_libdirstem.
48362         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48363         acl_libdirstem.
48364         * NEWS: Mention the change.
48365         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48366
48367 2008-08-31  Jim Meyering  <meyering@redhat.com>
48368
48369         * lib/strftime.h: Add comments describing the two added arguments.
48370
48371         remove duplicate #include directives
48372         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48373         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48374
48375 2008-08-31  Bruno Haible  <bruno@clisp.org>
48376
48377         New module 'sigpipe-die'.
48378         * modules/sigpipe-die: New file.
48379         * lib/sigpipe-die.h: New file.
48380         * lib/sigpipe-die.c: New file.
48381         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48382
48383 2008-08-31  Bruno Haible  <bruno@clisp.org>
48384
48385         Don't override previously installed signal handlers.
48386         * lib/fatal-signal.c (saved_sigactions): New variable.
48387         (uninstall_handlers): Reset the signal to the saved handler, not
48388         to SIG_DFL (except when ignored).
48389         (install_handlers): Save the previous handlers.
48390
48391 2008-08-30  Bruno Haible  <bruno@clisp.org>
48392
48393         * gnulib-tool (func_reset_sigpipe): New function.
48394         (func_get_automake_snippet, func_modules_transitive_closure,
48395         func_import): Invoke it before a join command that reads from stdin,
48396         to avoid "echo: write error: Broken pipe" error messages on stderr.
48397         Reported by Sam Steingold <sds@gnu.org>.
48398
48399 2008-08-30  Bruno Haible  <bruno@clisp.org>
48400
48401         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48402         Code copied from m4/open.m4.
48403         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48404         access and the filename ends in a slash. Code copied from lib/open.c.
48405         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48406         * tests/test-fopen.c (main): Check against bug with trailing slash.
48407
48408 2008-08-29  Bruno Haible  <bruno@clisp.org>
48409
48410         Avoid some "gcc -pedantic" warnings.
48411         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48412         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48413         * lib/dirent.in.h: Likewise.
48414         * lib/fcntl.in.h: Likewise.
48415         * lib/float.in.h: Likewise.
48416         * lib/iconv.in.h: Likewise.
48417         * lib/inttypes.in.h: Likewise.
48418         * lib/locale.in.h: Likewise.
48419         * lib/math.in.h: Likewise.
48420         * lib/netinet_in.in.h: Likewise.
48421         * lib/search.in.h: Likewise.
48422         * lib/signal.in.h: Likewise.
48423         * lib/stdarg.in.h: Likewise.
48424         * lib/stdint.in.h: Likewise.
48425         * lib/stdio.in.h: Likewise.
48426         * lib/stdlib.in.h: Likewise.
48427         * lib/string.in.h: Likewise.
48428         * lib/strings.in.h: Likewise.
48429         * lib/sys_select.in.h: Likewise.
48430         * lib/sys_socket.in.h: Likewise.
48431         * lib/sys_stat.in.h: Likewise.
48432         * lib/sys_time.in.h: Likewise.
48433         * lib/sysexits.in.h: Likewise.
48434         * lib/time.in.h: Likewise.
48435         * lib/unistd.in.h: Likewise.
48436         * lib/wchar.in.h: Likewise.
48437         * lib/wctype.in.h: Likewise.
48438         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48439         * modules/fchdir (Makefile.am): Likewise.
48440         * modules/fcntl (Makefile.am): Likewise.
48441         * modules/float (Makefile.am): Likewise.
48442         * modules/iconv_open (Makefile.am): Likewise.
48443         * modules/inttypes (Makefile.am): Likewise.
48444         * modules/locale (Makefile.am): Likewise.
48445         * modules/math (Makefile.am): Likewise.
48446         * modules/netinet_in (Makefile.am): Likewise.
48447         * modules/search (Makefile.am): Likewise.
48448         * modules/signal (Makefile.am): Likewise.
48449         * modules/stdarg (Makefile.am): Likewise.
48450         * modules/stdint (Makefile.am): Likewise.
48451         * modules/stdio (Makefile.am): Likewise.
48452         * modules/stdlib (Makefile.am): Likewise.
48453         * modules/string (Makefile.am): Likewise.
48454         * modules/strings (Makefile.am): Likewise.
48455         * modules/sys_select (Makefile.am): Likewise.
48456         * modules/sys_socket (Makefile.am): Likewise.
48457         * modules/sys_stat (Makefile.am): Likewise.
48458         * modules/sys_time (Makefile.am): Likewise.
48459         * modules/sysexits (Makefile.am): Likewise.
48460         * modules/time (Makefile.am): Likewise.
48461         * modules/unistd (Makefile.am): Likewise.
48462         * modules/wchar (Makefile.am): Likewise.
48463         * modules/wctype (Makefile.am): Likewise.
48464         Reported by Reuben Thomas <rrt@sc3d.org>.
48465
48466 2008-08-29  Bruno Haible  <bruno@clisp.org>
48467
48468         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48469         any more.
48470
48471 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48472
48473         * MODULES.html.sh (Misc): Add bitrotate.
48474
48475         * modules/bitrotate: New file.
48476
48477         * lib/bitrotate.h: New file.
48478
48479         * modules/bitrotate-tests: New file.
48480
48481         * tests/test-bitrotate.c: New file.
48482
48483         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48484         on the bitrotate module.
48485
48486         * lib/arctwo.c: Use new bitrotate module.
48487
48488 2008-08-29  Jim Meyering  <meyering@redhat.com>
48489
48490         bootstrap: merge changes from coreutils
48491         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48492         of copied files.  Remove a kludge, now that this is fixed.
48493         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48494         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48495         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48496
48497 2008-08-29  Bruno Haible  <bruno@clisp.org>
48498
48499         * MODULES.html.sh: Remove --cvs-urls option.
48500
48501 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48502
48503         maint.mk: adjust to file name change
48504         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48505
48506 2008-08-28  Jim Meyering  <meyering@redhat.com>
48507
48508         * modules/getndelim2 (License): Relicense to LGPLv2+.
48509         Approved by Richard Stallman for the version of 1995, and by
48510         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48511
48512 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48513
48514         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48515         dummy if one is not available.  Do not touch them if
48516         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48517         (getc_maybe_unlocked): New.
48518         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48519
48520 2008-08-26  Eric Blake  <ebb9@byu.net>
48521
48522         doc/INSTALL: resync from autoconf
48523         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48524         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48525         moving...
48526         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48527         * INSTALL: Regenerate.
48528         * INSTALL.ISO: New file.
48529         * INSTALL.UTF-8: Likewise.
48530
48531 2008-08-26  Jim Meyering  <meyering@redhat.com>
48532
48533         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48534         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48535         these definitions conditional, so that they may be overridden, too.
48536
48537 2008-08-26  Bruno Haible  <bruno@clisp.org>
48538
48539         Generate INSTALL file variants with prettier quotes.
48540         * doc/Makefile (INSTALL_PRELUDE): New macro.
48541         (INSTALL): Use it.
48542         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48543
48544 2008-08-26  Bruno Haible  <bruno@clisp.org>
48545
48546         Run makeinfo in an English locale.
48547         * doc/Makefile (MAKEINFO): New variable.
48548
48549 2008-08-26  Bruno Haible  <bruno@clisp.org>
48550
48551         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48552         Suggested by Eric Blake.
48553
48554 2008-08-25  Bruno Haible  <bruno@clisp.org>
48555
48556         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48557
48558 2008-08-25  Eric Blake  <ebb9@byu.net>
48559
48560         c-stack: test that stack overflow can be caught
48561         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48562         that platform allows handling stack overflow; at least OS/2 EMX
48563         has sigaltstack, but crashes before transferring control to
48564         handler on stack overflow.
48565         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48566         check for HAVE_STACK_OVERFLOW_HANDLING.
48567         Reported by Elbert Pol.
48568
48569 2008-08-25  Bruno Haible  <bruno@clisp.org>
48570
48571         * doc/posix-functions/strftime.texi: Fix description of strftime
48572         module.
48573
48574 2008-08-24  Bruno Haible  <bruno@clisp.org>
48575
48576         * tests/uniwidth/test-uc_width2.c: New file.
48577         * tests/uniwidth/test-uc_width2.sh: New file.
48578         * modules/uniwidth/width-tests (Files): Add the new files.
48579         (TESTS): Add uniwidth/test-uc_width2.sh.
48580         (TESTS_ENVIRONMENT): New variable.
48581         (check_PROGRAMS): Add test-uc_width2.
48582         (test_uc_width2_SOURCES): New variable.
48583
48584         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48585         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48586         not 0x00AB.
48587         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48588
48589 2008-08-22  Eric Blake  <ebb9@byu.net>
48590
48591         test-lock, test-tls: mention why a test is skipped
48592         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48593         skipped.
48594         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48595
48596         count-one-bits: relax license
48597         * modules/count-one-bits (License): Relicense to LGPLv2+.
48598         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48599
48600 2008-08-22  Andreas Schwab  <schwab@suse.de>
48601
48602         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48603         Remove spurious space in assignment.
48604
48605 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48606
48607         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48608         Paul Eggert <eggert@CS.UCLA.EDU>.
48609
48610 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48611
48612         * modules/gettext: Add m4/threadlib.m4.
48613
48614 2008-08-19  Eric Blake  <ebb9@byu.net>
48615
48616         test-c-stack: fix compilation failure on FreeBSD 5.0
48617         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48618         headers before <sys/resource.h>.
48619         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48620         the bug.
48621         Reported by Nelson H. F. Beebe.
48622
48623         strverscmp: migrate from "strverscmp.h" to <string.h>
48624         * modules/string (Makefile.am): Add new hooks.
48625         * modules/strverscmp (Files): Remove strverscmp.h.
48626         (Depends-on): Add string.
48627         (configure.ac): Add indicator.
48628         (Include): Mention new header.
48629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48630         defaults.
48631         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48632         results.
48633         * lib/strverscmp.h: Delete.
48634         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48635         * tests/test-strverscmp.c (includes): Adjust client.
48636         * lib/check-version.c (includes): Likewise.
48637         * NEWS: Document the change.
48638
48639         strverscmp: add unit test
48640         * modules/strverscmp-tests: New file.
48641         * tests/test-strverscmp.c: Likewise.
48642
48643 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48644
48645         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48646         regarding Windows crypto stuff, from Mono.
48647
48648 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48649
48650         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48651         if present, for intel RND.  Return error on failures.
48652
48653 2008-08-18  Ben Pfaff  <blp@gnu.org>
48654
48655         gitlog-to-changelog: give better diagnostic for failed pipe-open
48656         * build-aux/gitlog-to-changelog: Improve error message: suggest
48657         that the version of Git may be too old.
48658
48659 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48660
48661         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48662         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48663
48664 2008-08-18  Bruno Haible  <bruno@clisp.org>
48665
48666         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48667         pthread_in_use().
48668
48669 2008-08-18  Bruno Haible  <bruno@clisp.org>
48670
48671         * lib/glthread/threadlib.c: Include <pthread.h>.
48672
48673 2008-08-18  Bruno Haible  <bruno@clisp.org>
48674
48675         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48676         glthread_recursive_lock_* macros.
48677         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48678         Fix syntax error.
48679
48680 2008-08-18  Bruno Haible  <bruno@clisp.org>
48681
48682         * lib/glthread/thread.c: Avoid forcing a context switch right after
48683         thread creation.
48684
48685 2008-08-17  Bruno Haible  <bruno@clisp.org>
48686
48687         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48688         * lib/glthread/thread.h: Provide Win32 specific implementation.
48689         * modules/thread (Files): Add lib/glthread/thread.c.
48690         (Depends-on): Add lock.
48691         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48692
48693 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48694
48695         New module 'yield'.
48696         * modules/yield: New file.
48697         * lib/glthread/yield.h: New file.
48698         * m4/yield.m4: New file.
48699         * MODULES.html.sh (Multithreading): Add yield.
48700
48701 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48702
48703         New module 'thread'.
48704         * modules/thread: New file.
48705         * lib/glthread/thread.h: New file.
48706         * m4/thread.m4: New file.
48707         * MODULES.html.sh (Multithreading): Add thread.
48708
48709 2008-08-17  Bruno Haible  <bruno@clisp.org>
48710
48711         * lib/glthread/lock.h: Include <stdlib.h> always.
48712         * lib/glthread/tls.h: Likewise.
48713         * lib/glthread/cond.h: Likewise.
48714
48715 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48716
48717         New module 'cond'.
48718         * modules/cond: New file.
48719         * lib/glthread/cond.h: New file.
48720         * lib/glthread/cond.c: New file.
48721         * m4/cond.m4: New file.
48722         * MODULES.html.sh (Multithreading): Add cond.
48723
48724 2008-08-16  Eric Blake  <ebb9@byu.net>
48725
48726         c-stack: fix regression on Irix 5.3 from 2008-06-21
48727         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48728         sa_sigaction...
48729         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48730         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48731         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48732         * modules/signal (Makefile.am): Use the value.
48733         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48734         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48735         * doc/posix-headers/signal.texi (signal.h): Document this
48736         portability issue.
48737         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48738         Reported by Tom G. Christensen.
48739
48740 2008-08-17  Bruno Haible  <bruno@clisp.org>
48741
48742         New module 'threadlib'.
48743         * modules/threadlib: New file.
48744         * lib/glthread/threadlib.c: New file, extracted from
48745         lib/glthread/lock.c.
48746         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48747         functions.
48748         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48749         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48750         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48751         macros.
48752         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48753         (gl_DISABLE_THREADS): Remove macro.
48754         * modules/lock (Files): Remove build-aux/config.rpath.
48755         (Depends-on): Remove havelib. Add threadlib.
48756         (configure.ac-early): Remove section.
48757         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48758         * modules/tls (Depends-on): Remove lock. Add threadlib.
48759         (Link): New section, copied from threadlib.
48760         * MODULES.html.sh (Multithreading): Add threadlib.
48761
48762 2008-08-14  Bruno Haible  <bruno@clisp.org>
48763
48764         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48765         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48766         glthread_rwlock_unlock, glthread_rwlock_destroy,
48767         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48768         glthread_recursive_lock_destroy): Define as macros always.
48769         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48770         glthread_lock_lock.
48771         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48772         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48773         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48774         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48775         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48776         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48777         (glthread_recursive_lock_lock_func): Renamed from
48778         glthread_recursive_lock_lock.
48779         (glthread_recursive_lock_unlock_func): Renamed from
48780         glthread_recursive_lock_unlock.
48781         (glthread_recursive_lock_destroy_func): Renamed from
48782         glthread_recursive_lock_destroy.
48783
48784 2008-08-14  Bruno Haible  <bruno@clisp.org>
48785
48786         * lib/glthread/lock.h: Renamed from lib/lock.h.
48787         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48788         * lib/glthread/tls.h: Renamed from lib/tls.h.
48789         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48790         * lib/fstrcmp.c: Update includes.
48791         * lib/strsignal.c: Update includes.
48792         * modules/lock (Files, Makefile.am): Update.
48793         (Include): Change to "glthread/lock.h".
48794         * modules/tls (Files, Makefile.am): Update.
48795         (Include): Change to "glthread/tls.h".
48796         * tests/test-lock.c: Update includes.
48797         * tests/test-tls.c: Update includes.
48798         * NEWS: Mention the renamed header files.
48799
48800 2008-08-11  Jim Meyering  <meyering@redhat.com>
48801
48802         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48803
48804 2008-08-11  Eric Blake  <ebb9@byu.net>
48805
48806         test-c-stack: avoid C99-ism
48807         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48808         before statement.
48809         Reported by Alain Guibert.
48810
48811 2008-08-10  Jim Meyering  <meyering@redhat.com>
48812
48813         ensure that return value of uinttostr et al are not ignored
48814         * lib/inttostr.h (__GNUC_PREREQ): Define.
48815         (__attribute_warn_unused_result__): Define.
48816         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48817
48818 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48819
48820         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48821         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48822
48823 2008-08-07  Jim Meyering  <meyering@redhat.com>
48824
48825         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48826
48827         * modules/mkstemp (License): Relicense under LGPLv2+.
48828         * modules/tempname (License): Likewise.
48829
48830 2008-08-06  Bruno Haible  <bruno@clisp.org>
48831
48832         * lib/poll.c (poll): Further micro-optimization.
48833
48834 2008-08-06  Jim Meyering  <meyering@redhat.com>
48835
48836         inet_pton.c: use locale-independent tolower
48837         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48838         (inet_pton6): Use c_tolower rather than tolower.
48839         * modules/inet_pton (Depends-on): Add c-ctype.
48840
48841 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48842
48843         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48844         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48845
48846 2008-08-06  Jim Meyering  <meyering@redhat.com>
48847
48848         * modules/inet_pton (License): Relicense under LGPLv2+.
48849
48850 2008-08-03  Bruno Haible  <bruno@clisp.org>
48851
48852         Additional non-aborting API for lock and tls.
48853         * lib/lock.h: Include <errno.h>.
48854         (glthread_lock_init): New macro/function.
48855         (gl_lock_init): Define as wrapper around glthread_lock_init.
48856         (glthread_lock_lock): New macro/function.
48857         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48858         (glthread_lock_unlock): New macro/function.
48859         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48860         (glthread_lock_destroy): New macro/function.
48861         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48862         (glthread_rwlock_init): New macro/function.
48863         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48864         (glthread_rwlock_rdlock): New macro/function.
48865         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48866         (glthread_rwlock_wrlock): New macro/function.
48867         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48868         (glthread_rwlock_unlock): New macro/function.
48869         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48870         (glthread_rwlock_destroy): New macro/function.
48871         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48872         (glthread_recursive_lock_init): New macro/function.
48873         (gl_recursive_lock_init): Define as wrapper around
48874         glthread_recursive_lock_init.
48875         (glthread_recursive_lock_lock): New macro/function.
48876         (gl_recursive_lock_lock): Define as wrapper around
48877         glthread_recursive_lock_lock.
48878         (glthread_recursive_lock_unlock): New macro/function.
48879         (gl_recursive_lock_unlock): Define as wrapper around
48880         glthread_recursive_lock_unlock.
48881         (glthread_recursive_lock_destroy): New macro/function.
48882         (gl_recursive_lock_destroy): Define as wrapper around
48883         glthread_recursive_lock_destroy.
48884         (glthread_once): New macro/function.
48885         (gl_once): Define as wrapper around glthread_once.
48886         Update function declarations.
48887         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48888         glthread_rwlock_init. Return error code.
48889         (glthread_rwlock_rdlock_multithreaded): Renamed from
48890         glthread_rwlock_rdlock. Return error code.
48891         (glthread_rwlock_wrlock_multithreaded): Renamed from
48892         glthread_rwlock_wrlock. Return error code.
48893         (glthread_rwlock_unlock_multithreaded): Renamed from
48894         glthread_rwlock_unlock. Return error code.
48895         (glthread_rwlock_destroy_multithreaded): Renamed from
48896         glthread_rwlock_destroy. Return error code.
48897         (glthread_recursive_lock_init_multithreaded): Renamed from
48898         glthread_recursive_lock_init. Return error code.
48899         (glthread_recursive_lock_lock_multithreaded): Renamed from
48900         glthread_recursive_lock_lock. Return error code.
48901         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48902         glthread_recursive_lock_unlock. Return error code.
48903         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48904         glthread_recursive_lock_destroy. Return error code.
48905         (glthread_once_call): Make static.
48906         (glthread_once_multithreaded): Renamed from glthread_once.
48907         * lib/tls.h: Include <errno.h>.
48908         (glthread_tls_key_init): New macro/function.
48909         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48910         (glthread_tls_set): New macro/function.
48911         (gl_tls_set): Define as wrapper around glthread_tls_set.
48912         (glthread_tls_key_destroy): New macro/function.
48913         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48914         Update function declarations.
48915         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48916         glthread_tls_get.
48917         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48918
48919 2008-08-04  Eric Blake  <ebb9@byu.net>
48920
48921         gnumakefile: use space, not TAB, outside of targets
48922         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48923
48924 2008-08-02  Jim Meyering  <meyering@redhat.com>
48925
48926         getdate.y: avoid locale-dependent date parsing failure
48927         In Turkish locales, getdate would fail to recognize keywords
48928         containing a lowercase "i".  The solution is not to rely on
48929         locale-sensitive case-conversion.
48930         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48931         (lookup_word): Use c_toupper in place of toupper.
48932         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48933         Reported by Vefa Bicakci <bicave@superonline.com> in
48934         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48935         * modules/getdate (Depends-on): Add c-ctype.
48936
48937 2008-08-02  Bruno Haible  <bruno@clisp.org>
48938
48939         * gnulib-tool (func_import): When updating or creating a .gitignore
48940         file, prepend each added line with a slash, and ignore leading slashes
48941         from the existing lines.
48942         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48943
48944 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48945
48946         Portability fix for GNU make 3.79.1.
48947         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48948         versions do not understand.
48949
48950 2008-08-01  Bruno Haible  <bruno@clisp.org>
48951
48952         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48953         * tests/test-isnanf.h (zero): New variable.
48954         (main): Avoid literal -0.0f.
48955         * tests/test-isnand.h (zero): New variable.
48956         (main): Avoid literal -0.0.
48957         * tests/test-isnanl.h (zero): New variable.
48958         (main): Avoid literal -0.0L.
48959         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48960         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48961         -0.0, -0.0L.
48962         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48963         (test_signbitd): Avoid literal -0.0.
48964         (test_signbitl): Avoid literal -0.0L.
48965         * tests/test-ceilf1.c (zero): New variable.
48966         (main): Avoid literal -0.0f.
48967         * tests/test-ceill.c (zero): New variable.
48968         (main): Avoid literal -0.0L.
48969         * tests/test-floorf1.c (zero): New variable.
48970         (main): Avoid literal -0.0f.
48971         * tests/test-floorl.c (zero): New variable.
48972         (main): Avoid literal -0.0L.
48973         * tests/test-roundf1.c (zero): New variable.
48974         (main): Avoid literal -0.0f.
48975         * tests/test-round1.c (zero): New variable.
48976         (main): Avoid literal -0.0.
48977         * tests/test-roundl.c (zero): New variable.
48978         (main): Avoid literal -0.0L.
48979         * tests/test-truncf1.c (zero): New variable.
48980         (main): Avoid literal -0.0f.
48981         * tests/test-trunc1.c (zero): New variable.
48982         (main): Avoid literal -0.0.
48983         * tests/test-truncl.c (zero): New variable.
48984         (main): Avoid literal -0.0L.
48985         * tests/test-frexp.c (zero): New variable.
48986         (main): Avoid literal -0.0.
48987         * tests/test-frexpl.c (zero): New variable.
48988         (main): Avoid literal -0.0L.
48989         * tests/test-ldexpl.c (zero): New variable.
48990         (main): Avoid literal -0.0L.
48991         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48992         (zerod, zerol): New variables.
48993         (test_function): Avoid literals -0.0, -0.0L.
48994         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48995         (zerod, zerol): New variables.
48996         (test_function): Avoid literals -0.0, -0.0L.
48997         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48998         (zerod, zerol): New variables.
48999         (test_function): Avoid literals -0.0, -0.0L.
49000         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49001         (zerod, zerol): New variables.
49002         (test_function): Avoid literals -0.0, -0.0L.
49003         * tests/test-strtod.c (zero): New variable.
49004         (main): Avoid literal -0.0.
49005         Reported by Jonathan C. Patschke <jp@centtech.com>.
49006
49007 2008-07-31  Jim Meyering  <meyering@redhat.com>
49008
49009         sha256.h: correct definition of SHA224_DIGEST_SIZE
49010         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49011         Reported by Paulie Pena IV <paulie4@gmail.com>.
49012         Define as 224 / 8, rather than as a literal.
49013         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49014         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49015         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49016
49017 2008-07-31  Bruno Haible  <bruno@clisp.org>
49018
49019         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49020         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49021         Reported by Jonathan Patschke <jp@centtech.com>.
49022
49023 2008-07-31  Bruno Haible  <bruno@clisp.org>
49024
49025         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49026         Reported by Paolo Bonzini <bonzini@gnu.org>.
49027
49028 2008-07-30  Eric Blake  <ebb9@byu.net>
49029
49030         test-strtod: allow compilation without -lm
49031         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49032         Reported by Dennis Clarke <blastwave@gmail.com>.
49033
49034 2008-07-28  Jim Meyering  <meyering@redhat.com>
49035
49036         bootstrap: work also when there are no .po files in po/
49037         * build-aux/bootstrap (update_po_files): Complete the change
49038         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49039
49040 2008-07-27  Jim Meyering  <meyering@redhat.com>
49041
49042         * users.txt: Add zile.
49043
49044 2008-07-26  Ben Pfaff  <blp@gnu.org>
49045
49046         Add missing dependencies on new m4/exponent[fdl].m4 files.
49047         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49048         * modules/isnand-nolibm: Add m4/exponentd.m4.
49049         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49050         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49051         m4/isnan[fdl].m4, because the macros actually used moved.
49052         Reported by Jim Meyering.
49053
49054 2008-07-14  Ben Pfaff  <blp@gnu.org>
49055
49056         Add isinf module.
49057         * lib/isinf.c: New file.
49058         * lib/math.in.h: Define isinf macro if we have decided to replace
49059         it.
49060         * m4/isinf.m4: New file.
49061         * m4/math_h.m4: Initialize and substitute variables for isinf
49062         module.
49063         * modules/isinf: New file.
49064         * modules/isinf-tests: New file.
49065         * modules/math: Add substitutions for new module.
49066         * tests/test-isinf.c: New file.
49067         * doc/posix-functions/isinf.texi: Mention new module.
49068         * MODULES.html.sh: Mention new module.
49069
49070 2008-07-14  Ben Pfaff  <blp@gnu.org>
49071
49072         Factor out some macros for use by additional modules.
49073         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49074         exponentf.m4.
49075         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49076         exponentd.m4.
49077         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49078         file exponentl.m4.
49079         * m4/exponentf.m4: New file.
49080         * m4/exponentd.m4: New file.
49081         * m4/exponentl.m4: New file.
49082         * modules/isnanf: Use new file m4/exponentf.m4.
49083         * modules/isnand: Use new file m4/exponentd.m4.
49084         * modules/isnanl: Use new file m4/exponentl.m4.
49085
49086 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49087
49088         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49089         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49090         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49091         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49092
49093         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49094         readlink on platforms without PATH_MAX.
49095
49096 2008-07-21  Eric Blake  <ebb9@byu.net>
49097
49098         Warn, not fail, on stale version.
49099         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49100
49101         Don't allow installation with stale devel version number.
49102         * top/GNUmakefile (_is-install-target): New macro.
49103         (_curr-ver): Forbid installation with stale version number.
49104
49105 2008-07-20  Bruno Haible  <bruno@clisp.org>
49106
49107         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49108         TESTS_ENVIRONMENT.
49109         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49110
49111 2008-07-20  Bruno Haible  <bruno@clisp.org>
49112
49113         * lib/c-stack.h (c_stack_action): Add documentation.
49114         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49115
49116 2008-07-20  Bruno Haible  <bruno@clisp.org>
49117
49118         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49119         * modules/readlink (License): Likewise.
49120
49121 2008-07-17  Eric Blake  <ebb9@byu.net>
49122
49123         * modules/c-stack (Link): Fix typo.
49124
49125         Make c-stack use libsigsegv, when available.
49126         * modules/c-stack (Depends-on): Add libsigsegv.
49127         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49128         needed.
49129         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49130         (segv_handler, overflow_handler, c_stack_action)
49131         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49132         implementation when libsigsegv is available, but only when using
49133         the library is necessary.
49134         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49135         comment, explaining why XSI check fails on Linux.
49136         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49137         * tests/test-c-stack2.sh: Tweak skip message.
49138         * NEWS: Document new link-time requirements.
49139
49140 2008-07-16  Eric Blake  <ebb9@byu.net>
49141
49142         c-stack: Expose false positives when not using libsigsegv.
49143         * modules/c-stack-tests (Files): Expand test.
49144         * tests/test-c-stack.c (main): Add means to conditionally trigger
49145         non-overflow SIGSEGV.
49146         * tests/test-c-stack2.sh: New file.
49147
49148 2008-07-14  Bruno Haible  <bruno@clisp.org>
49149
49150         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49151         Reported by Eric Blake.
49152
49153 2008-07-14  Sam Steingold  <sds@gnu.org>
49154             Bruno Haible  <bruno@clisp.org>
49155
49156         New module libsigsegv.
49157         * modules/libsigsegv: New file.
49158         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49159         modifications.
49160         * MODULES.html.sh (Signal handling): New section.
49161
49162 2008-07-14  Bruno Haible  <bruno@clisp.org>
49163
49164         * modules/unictype/ctype-* (Description): Add the word "function".
49165         Improves the resulting doc in MODULES.html.
49166
49167 2008-07-12  Ben Pfaff  <blp@gnu.org>
49168
49169         Add longlong module.
49170         * modules/longlong: New file.
49171
49172 2008-07-12  Bruno Haible  <bruno@clisp.org>
49173
49174         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49175         to empty.
49176
49177 2008-07-10  Ben Pfaff  <blp@gnu.org>
49178
49179         Add isnan module.
49180         * doc/posix-functions/isnan.texi: Mention new module.
49181         * lib/math.in.h: Define isnan macro if we have decided to replace
49182         it.
49183         * m4/isnan.m4: New file.
49184         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49185         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49186         also.
49187         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49188         redundancy.
49189         * m4/math_h.m4: Initialize and substitute variables for isnan
49190         module.
49191         * modules/isnan: New file.
49192         * modules/isnan-tests: New file.
49193         * modules/math: Add substitutions for new module.
49194         * tests/test-isnan.c: New file.
49195         * MODULES.html.sh: Mention new module.
49196
49197 2008-07-10  Ben Pfaff  <blp@gnu.org>
49198
49199         Add isnanf module.
49200         * lib/isnanf.m4: New file.
49201         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49202         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49203         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49204         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49205         * modules/isnanf: New file.
49206         * modules/isnanf-tests: New file.
49207         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49208         files.
49209         * tests/test-isnanf-nolibm.c: factored most of its contents into
49210         new file tests/test-isnanf.h.
49211         * tests/test-isnanf.h: New file.
49212         * tests/test-isnanf.c: New file.
49213         * MODULES.html.sh: Mention new module.
49214         * doc/glibc-functions/isnanf.texi: Mention new module.
49215
49216 2008-07-10  Ben Pfaff  <blp@gnu.org>
49217
49218         Add isnand module.
49219         * lib/isnand.h: New file.
49220         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49221         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49222         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49223         functionality also.
49224         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49225         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49226         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49227         * modules/isnand: New file.
49228         * modules/isnand-tests: New file.
49229         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49230         files.
49231         * tests/test-isnand-nolibm.c: factored most of its contents into
49232         new file tests/test-isnand.h.
49233         * tests/test-isnand.h: New file.
49234         * tests/test-isnand.c: New file.
49235         * MODULES.html.sh: Mention new module.
49236
49237 2008-07-10  Ben Pfaff  <blp@gnu.org>
49238
49239         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49240         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49241         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49242         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49243         * modules/isnanf-nolibm: Update references to renamed files.
49244         * modules/isnand-nolibm: Likewise.
49245         * modules/isnanf-nolibm-tests: Likewise.
49246         * modules/isnand-nolibm-tests: Likewise.
49247         * lib/frexp.c: Likewise.
49248         * lib/isfinite.c: Likewise.
49249         * lib/signbitd.c: Likewise.
49250         * lib/signbitf.c: Likewise.
49251         * lib/vasnprintf.c: Likewise.
49252         * tests/test-ceilf1.c: Likewise.
49253         * tests/test-ceilf2.c: Likewise.
49254         * tests/test-floorf1.c: Likewise.
49255         * tests/test-floorf2.c: Likewise.
49256         * tests/test-frexp.c: Likewise.
49257         * tests/test-round1.c: Likewise.
49258         * tests/test-round2.c: Likewise.
49259         * tests/test-roundf1.c: Likewise.
49260         * tests/test-strtod.c: Likewise.
49261         * tests/test-trunc1.c: Likewise.
49262         * tests/test-trunc2.c: Likewise.
49263         * tests/test-truncf1.c: Likewise.
49264         * tests/test-truncf2.c: Likewise.
49265         * NEWS: Mention the renamed header files.
49266
49267 2008-07-11  Jim Meyering  <meyering@redhat.com>
49268
49269         vc-list-files: make the last-resort awk code more portable
49270         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49271         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49272         does not support it.
49273
49274 2008-07-10  Eric Blake  <ebb9@byu.net>
49275
49276         Work with tar's bootstrap.
49277         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49278         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49279         an m4 comment.
49280
49281 2008-07-09  Jim Meyering  <meyering@redhat.com>
49282
49283         posix-shell.m4: fix typo that made this test malfunction
49284         * m4/posix-shell.m4: Remove capitalization in variable name.
49285
49286 2008-07-08  Bruno Haible  <bruno@clisp.org>
49287
49288         * m4/onceonly.m4: Update comments.
49289         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49290
49291 2008-07-04  Jim Meyering  <meyering@redhat.com>
49292
49293         * users.txt: Add vc-dwim.
49294         (bison, coreutils): Use the gitweb URL.
49295
49296 2008-07-03  Jim Meyering  <meyering@redhat.com>
49297
49298         * users.txt: Add libffcall.  From Sam Steingold.
49299
49300 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
49301
49302         getdate.y: do not ignore TZ with relative day, month or year offset
49303         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49304         relative-date-handling, since otherwise, the latter would clobber the
49305         sole output (an updated Start value) of the tz-handling block.
49306         * tests/test-getdate.c: Tests for the fix
49307
49308 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49309
49310         Recognize 'foo_LIBRARIES += libgnu.a'.
49311         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49312         makefile snippet has already specified an installation location,
49313         also using '+='.
49314
49315 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
49316
49317         getdate.y: factor out common actions
49318         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49319         Use them in place of open-coded actions.
49320
49321 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49322
49323         Add self-test for getdate module.
49324         * modules/getdate-tests: New file.
49325         * tests/test-getdate.c: New file.
49326
49327 2008-06-29  Bruno Haible  <bruno@clisp.org>
49328
49329         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49330         .gitignore.
49331         Reported by Sylvain Beucler <beuc@beuc.net>.
49332
49333 2008-06-29  Bruno Haible  <bruno@clisp.org>
49334
49335         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49336         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49337
49338 2008-06-29  Bruno Haible  <bruno@clisp.org>
49339
49340         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49341         EXTRA_DIST.
49342         Reported by Sylvain Beucler <beuc@beuc.net>.
49343
49344 2008-06-26  Jim Meyering  <meyering@redhat.com>
49345
49346         make several modules depend on the "open" module
49347         This provides slightly increased consistency when opening-for-write
49348         the name of a non-directory spelled with a trailing slash.
49349         * modules/chdir-safer: Likewise.
49350         * modules/chown: Likewise.
49351         * modules/clean-temp: Likewise.
49352         * modules/copy-file: Likewise.
49353         * modules/fchdir: Likewise.
49354         * modules/fcntl-safer: Likewise.
49355         * modules/pipe: Likewise.
49356         * modules/utime: Likewise.
49357         Prompted by Eric Blake and Bruno Haible.
49358
49359 2008-06-24  Andreas Schwab  <schwab@suse.de>
49360
49361         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49362         literals can be used as initializers for global variables.
49363
49364 2008-06-23  Eric Blake  <ebb9@byu.net>
49365
49366         Make gnulib-cache.m4 easier to diff.
49367         * gnulib-tool (func_import): Allow newlines when reading cached
49368         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49369
49370 2008-06-23  Bruno Haible  <bruno@clisp.org>
49371
49372         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49373         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49374         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49375         m4/signalblocking.m4.
49376         (gl_PREREQ_SIGACTION): Don't invoke it.
49377         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49378         gl_PREREQ_SIG_HANDLER_H.
49379         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49380         Don't check for sigaction here.
49381
49382 2008-06-23  Bruno Haible  <bruno@clisp.org>
49383
49384         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49385         (install_handlers): Don't set the SA_RESETHAND flag.
49386
49387 2008-06-23  Bruno Haible  <bruno@clisp.org>
49388
49389         * m4/sigaction.m4: Comment fixes.
49390         * lib/signal.in.h: Likewise.
49391
49392 2008-06-23  Eric Blake  <ebb9@byu.net>
49393
49394         Fix typo.
49395         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49396
49397         Avoid SA_ namespace.
49398         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49399         Reported by Ralf Wildenhues.
49400
49401         Avoid test failure due to SA_RESTORER.
49402         * tests/test-sigaction.c (SA_MASK): New macro.
49403         (main): Avoid failing due to extension flags being set.
49404         Reported by Jim Meyering.
49405
49406         Revert use of sig-handler.h in sigprocmask.c.
49407         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49408         it requires the existence of struct sigaction.
49409         * lib/sigprocmask.c (handler_t): Restore typedef.
49410         (rpl_signal, old_handlers): Use local type.
49411
49412 2008-06-22  Bruno Haible  <bruno@clisp.org>
49413
49414         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49415         conditionally.
49416         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49417
49418 2008-06-22  Bruno Haible  <bruno@clisp.org>
49419
49420         * doc/posix-functions/siginterrupt.texi: Move note.
49421
49422         * lib/signal.in.h (SA_RESTART): New macro.
49423         * lib/sigaction.c: Update comment.
49424
49425         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49426
49427         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49428         (gl_PREREQ_SIGPROCMASK): Invoke it.
49429         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49430
49431         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49432
49433         * lib/sigprocmask.c: Update a comment.
49434
49435 2008-06-21  Eric Blake  <ebb9@byu.net>
49436
49437         Use sigaction module rather than signal().
49438         * modules/c-stack (Depends-on): Add sigaction.
49439         * modules/fatal-signal (Depends-on): Likewise.
49440         * modules/nanosleep (Depends-on): Likewise.
49441         * modules/sigprocmask (Files): Add sig-handler.h.
49442         * modules/sigaction (Files): Likewise.
49443         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49444         Eggert.
49445         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49446         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49447         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49448         (init_fatal_signals): Likewise.
49449         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49450         (siginterrupt): Delete fallback.
49451         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49452         instead.
49453         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49454         siginterrupt.
49455
49456         New module sigaction, for mingw.
49457         * modules/sigaction: New module...
49458         * modules/sigaction-tests: ...and its test.
49459         * m4/sigaction.m4: New file.
49460         * lib/sigaction.c: Likewise.
49461         * tests/test-sigaction.c: Likewise.
49462         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49463         * modules/signal (Makefile.am): Likewise.
49464         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49465         needed.
49466         * doc/posix-headers/signal.texi (signal.h): Mention provided
49467         types.
49468         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49469         that sigaction is preferable.
49470         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49471         module.
49472         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49473         sigaction.
49474
49475         Improve robustness of sigprocmask by overriding signal.
49476         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49477         is in use.
49478         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49479         (SIGKILL, SIGSTOP): Provide fallbacks.
49480         (rpl_signal): Implement.
49481         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49482         signal can be called inside handlers.
49483
49484         Fix nanosleep module on mingw.
49485         * modules/nanosleep (Depends-on): Add sys_select.
49486         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49487
49488         Fix licensing of sigprocmask.
49489         * modules/raise (License): Relicense as LGPL.
49490
49491 2008-06-21  Bruno Haible  <bruno@clisp.org>
49492
49493         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49494         result if it contains question marks.
49495         Reported by Michael Geng <linux@michaelgeng.de>.
49496
49497 2008-06-19  Bruno Haible  <bruno@clisp.org>
49498
49499         Fix CVS-ism.
49500         * doc/gnulib.texi: Include updated-stamp.texi.
49501         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49502         (updated-stamp.texi): New rule.
49503         (gnulib.info): Depend on it.
49504         * doc/.gitignore: Add updated-stamp.texi.
49505         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49506
49507 2008-06-19  Bruno Haible  <bruno@clisp.org>
49508
49509         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49510         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49511
49512 2008-06-19  Eric Blake  <ebb9@byu.net>
49513
49514         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49515         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49516         Reported by Stepan Kasal.
49517
49518 2008-06-18  Bruno Haible  <bruno@clisp.org>
49519
49520         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49521         Reported by Eric Blake.
49522
49523 2008-06-18  Eric Blake  <ebb9@byu.net>
49524
49525         Work around cygwin 1.5.25 strsignal bug.
49526         * tests/test-strsignal.c: Allow for const char *.
49527         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49528
49529 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49530
49531         * users.txt: Update URL to article and add author/date
49532         information.
49533
49534 2008-06-17  Bruno Haible  <bruno@clisp.org>
49535
49536         New macro gl_DISABLE_THREADS.
49537         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49538         if the user did not pass --enable-threads or --disable-threads option.
49539         (gl_DISABLE_THREADS): New macro.
49540         Reported by Eric Blake <ebb9@byu.net>.
49541
49542 2008-06-17  Bruno Haible  <bruno@clisp.org>
49543
49544         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49545         when the macro ignores it.
49546         Based on a patch by Eric Blake <ebb9@byu.net>.
49547
49548 2008-06-17  Bruno Haible  <bruno@clisp.org>
49549
49550         * modules/tls (License): Change to LGPLv2+.
49551         Reported by Eric Blake.
49552
49553 2008-06-17  Eric Blake  <ebb9@byu.net>
49554
49555         Simplify c-stack prerequisites.
49556         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49558         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49559         check.
49560         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49561         <sys/resource.h>.
49562
49563         Move c-stack test into testsuite.
49564         * modules/c-stack-tests: New file.
49565         * lib/c-stack.c [DEBUG]: Move test program...
49566         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49567         fail test if sigaltstack is lacking.
49568         * tests/test-c-stack.sh: New driver file.
49569
49570 2008-06-16  Eric Blake  <ebb9@byu.net>
49571
49572         Use raise module consistently.
49573         * modules/fatal-signal (Depends-on): Add raise.
49574         * modules/sigprocmask (Depends-on): Likewise.
49575         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49576         * lib/sigprocmask.c (sigprocmask): Likewise.
49577         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49578         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49579
49580         Fix compliance bug in sigpending.
49581         * lib/sigprocmask.c (sigpending): Return pending array via
49582         parameter, not return value.
49583
49584 2008-06-14  Eric Blake  <ebb9@byu.net>
49585
49586         Improve obstack-printf test code.
49587         * tests/test-obstack-printf.c (test_function): Fix comment, and
49588         simplify usage of obstack_* in macros.  Add a test for coverage.
49589         Reported by Bruno Haible.
49590
49591 2008-06-14  Bruno Haible  <bruno@clisp.org>
49592
49593         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49594         array size as a constant, not as a const variable.
49595         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49596         AC_USE_SYSTEM_EXTENSIONS.
49597         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49598         Test whether the obstack_printf function actually exists.
49599         * modules/obstack-printf (Depends-on): Add extensions.
49600         (Include): Remove obstack.h.
49601         * modules/obstack-printf-posix (Depends-on): Add extensions.
49602         (Include): Remove obstack.h.
49603
49604 2008-06-13  Eric Blake  <ebb9@byu.net>
49605
49606         Add obstack-printf and obstack-printf-posix modules.
49607         * modules/obstack-printf: New file.
49608         * modules/obstack-printf-posix: Likewise.
49609         * MODULES.html.sh (Misc): Mention them.
49610         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49611         Likewise.
49612         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49613         Likewise.
49614         * modules/stdio (Makefile.am): Accomodate new modules.
49615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49616         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49617         Declare.
49618         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49619         functions.
49620         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49621         (gl_REPLACE_OBSTACK_PRINTF): New macros
49622         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49623         * tests/test-obstack-printf.c: New file.
49624         * modules/obstack-printf-tests: Likewise.
49625         * modules/obstack-printf-posix-tests: Likewise.
49626
49627 2008-06-11  Bruno Haible  <bruno@clisp.org>
49628
49629         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49630         * lib/open.c: Include errno.h.
49631         (open): Fail when attempting to write to a file that has a trailing
49632         slash.
49633         * tests/test-open.c (main): Test against trailing slash bug.
49634         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49635
49636 2008-06-10  Bruno Haible  <bruno@clisp.org>
49637
49638         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49639         for $? to work inside the trap command, with various /bin/sh-s.
49640         * tests/test-vc-list-files-cvs.sh: Likewise.
49641
49642 2008-06-10  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/acl-internal.h: Don't include gettext.h here.
49645         * lib/set-mode-acl.c: Include gettext.h here.
49646         * lib/copy-acl.c: Likewise.
49647
49648 2008-06-10  Bruno Haible  <bruno@clisp.org>
49649
49650         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49651         * lib/wait-process.c (wait_subprocess): Likewise.
49652         * lib/execute.h (execute): Add termsigp argument.
49653         * lib/execute.c (execute): Likewise.
49654         * lib/csharpcomp.c (compile_csharp_using_pnet,
49655         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49656         * lib/csharpexec.c (execute_csharp_using_pnet,
49657         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49658         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49659         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49660         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49661         is_jikes_present): Update.
49662         * lib/javaexec.c (execute_java_class): Update.
49663         * lib/javaversion.c (execute_and_read_line): Update.
49664         * NEWS: Document the changes.
49665         Reported by Eric Blake.
49666
49667 2008-06-10  Eric Blake  <ebb9@byu.net>
49668
49669         Add missing include.
49670         * tests/test-strstr.c (includes): Add <signal.h>.
49671         * tests/test-strcasestr.c (includes): Likewise.
49672         * tests/test-memmem.c (includes): Likewise.
49673
49674 2008-06-10  Bruno Haible  <bruno@clisp.org>
49675
49676         * lib/wait-process.c (wait_subprocess): Add an assertion.
49677
49678 2008-06-10  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49681
49682 2008-06-10  Bruno Haible  <bruno@clisp.org>
49683
49684         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49685         using alarm().
49686         * tests/test-strcasestr.c (main): Likewise.
49687         * tests/test-strstr.c (main): Likewise.
49688
49689 2008-06-09  Bruno Haible  <bruno@clisp.org>
49690
49691         Work around the Solaris 10 ACE ACLs ABI change.
49692         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49693         declare if ACL_NO_TRIVIAL is present.
49694         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49695         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49696         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49697         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49698         define if ACL_NO_TRIVIAL is present.
49699         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49700         and use the current ABI.
49701         (file_has_acl): Use same #if condition as elsewhere.
49702         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49703         in use, and use the current ABI.
49704         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49705         Reported by Jim Meyering.
49706
49707 2008-06-09  Eric Blake  <ebb9@byu.net>
49708
49709         Work around environments that (stupidly) ignore SIGALRM.
49710         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49711         before using alarm().
49712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49713         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49714         Reported by Ian Beckwith <ianb@erislabs.net>.
49715
49716         Produce autobuild blurb earlier in log.
49717         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49718
49719 2008-06-09  Jim Meyering  <meyering@redhat.com>
49720         and Ondřej Vašík  <ovasik@redhat.com>
49721
49722         utimens.c: correct kernel bug work-around
49723         Ondřej Vašík found that the invalid return value of 280 indicates
49724         failure, not success, and the kernel bug we're trying to work
49725         around affects not just the utimensat call, but also the fallback
49726         futimens call.
49727         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49728         not success.
49729         [HAVE_FUTIMENS]: Use the same work-around, here.
49730
49731 2008-06-09  Jim Meyering  <meyering@redhat.com>
49732
49733         add more guards around definition of ACE_-related code
49734         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49735         ALLOW and ACE_OWNER are also defined.
49736
49737 2008-06-08  Bruno Haible  <bruno@clisp.org>
49738
49739         * lib/acl-internal.h: Add me as co-author.
49740         * lib/file-has-acl.c: Likewise.
49741         * lib/set-mode-acl.c: Likewise.
49742         * lib/copy-acl.c: Likewise.
49743
49744 2008-06-08  Bruno Haible  <bruno@clisp.org>
49745
49746         Add support for AIX ACLs.
49747         * lib/acl-internal.h (acl_nontrivial): New declaration.
49748         * lib/file-has-acl.c (acl_nontrivial): New function.
49749         (file_has_acl): Add implementation using AIX 4 ACL API.
49750         * lib/set-mode-acl.c (qset_acl): Likewise.
49751         * lib/copy-acl.c (qcopy_acl): Likewise.
49752
49753 2008-06-08  Bruno Haible  <bruno@clisp.org>
49754
49755         Add support for HP-UX ACLs.
49756         * lib/acl-internal.h (acl_nontrivial): New declaration.
49757         * lib/file-has-acl.c (acl_nontrivial): New function.
49758         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49759         * lib/set-mode-acl.c (qset_acl): Likewise.
49760         * lib/copy-acl.c (qcopy_acl): Likewise.
49761
49762 2008-06-08  Bruno Haible  <bruno@clisp.org>
49763
49764         Add support for Cygwin ACLs.
49765         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49766         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49767         the chmod_or_fchmod call.
49768         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49769
49770 2008-06-08  Bruno Haible  <bruno@clisp.org>
49771
49772         Fix bug with setuid modes in Solaris 10+ code.
49773         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49774         succeeded, when the mode contains some special bits.
49775
49776 2008-06-08  Bruno Haible  <bruno@clisp.org>
49777
49778         Add support for Solaris 7..10 ACLs.
49779         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49780         declarations.
49781         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49782         functions.
49783         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49784         * lib/set-mode-acl.c (qset_acl): Likewise.
49785         * lib/copy-acl.c (qcopy_acl): Likewise.
49786
49787 2008-06-08  Bruno Haible  <bruno@clisp.org>
49788
49789         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49790         declaration.
49791         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49792         (acl_access_nontrivial): Remove MacOS X case.
49793         (file_has_acl): Use acl_extended_nontrivial.
49794         * lib/copy-acl.c (qcopy_acl): Likewise.
49795
49796 2008-06-08  Bruno Haible  <bruno@clisp.org>
49797
49798         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49799
49800 2008-06-08  Jim Meyering  <meyering@redhat.com>
49801
49802         * modules/acl (Maintainer): Add Bruno Haible.
49803
49804 2008-06-07  Bruno Haible  <bruno@clisp.org>
49805
49806         Improve support for Tru64 ACLs.
49807         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49808         ACL on OSF/1.
49809
49810 2008-06-07  Bruno Haible  <bruno@clisp.org>
49811
49812         Add support for MacOS X ACLs.
49813         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49814         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49815         * lib/set-mode-acl.c (qset_acl): Likewise.
49816         * lib/copy-acl.c (qcopy_acl): Likewise.
49817
49818 2008-06-07  Bruno Haible  <bruno@clisp.org>
49819
49820         Fix memory leak introduced on 2008-05-22.
49821         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49822         use.
49823
49824 2008-06-07  Bruno Haible  <bruno@clisp.org>
49825
49826         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49827         to construct an empty ACL.
49828
49829 2008-06-07  Bruno Haible  <bruno@clisp.org>
49830
49831         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49832         precisely.
49833         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49834
49835 2008-06-07  Bruno Haible  <bruno@clisp.org>
49836
49837         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49838         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49839
49840 2008-06-07  Bruno Haible  <bruno@clisp.org>
49841
49842         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49843         regardless of POSIX.
49844         * doc/posix-functions/_longjmp.texi: Likewise.
49845         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49846         SystemV platform in this case.
49847
49848 2008-06-06  Eric Blake  <ebb9@byu.net>
49849
49850         Document abort() bugs.
49851         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49852
49853         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49854         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49855         sigsetjmp.
49856         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49857         siglongjmp, but only as a macro.
49858         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49859         is obsolete.
49860         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49861
49862         Tweak documentation to cover cygwin argz bugs.
49863         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49864         argz bug fix; no code change needed since no cygwin releases
49865         occurred between the last fix and the bug being tested.
49866         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49867         module and recently fixed cygwin bugs.
49868         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49869         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49870         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49871         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49872         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49873         Likewise.
49874         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49875         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49876         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49877         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49878         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49879         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49880         Likewise.
49881
49882         Avoid gcc warning on cygwin.
49883         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49884         !ACL_NO_TRIVIAL]: Avoid unused variable.
49885
49886 2008-06-05  Eric Blake  <ebb9@byu.net>
49887
49888         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49889         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49890         git-version-gen fails to come up with a version.
49891         Reported by Simon Josefsson.
49892
49893 2008-06-05  Jim Meyering  <meyering@redhat.com>
49894             Paul Eggert  <eggert@cs.ucla.edu>
49895
49896         utimens.c: work around a probable Linux kernel bug
49897         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49898         appears to be a kernel bug that causes utimensat to return 280
49899         instead of 0, indicating success.
49900
49901 2008-06-04  Bruno Haible  <bruno@clisp.org>
49902
49903         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49904         2008-06-01 commit.
49905
49906 2008-06-04  Bruno Haible  <bruno@clisp.org>
49907
49908         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49909         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49910         (file_has_acl): Use it. Save errno afterwards.
49911         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49912
49913 2008-06-03  Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49916         draft code. Simplify #ifs.
49917         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49918         Put Solaris code after POSIX-draft code. Fix comments regarding
49919         Solaris 10, HP-UX. Mention Cygwin.
49920         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49921
49922 2008-06-03  Eric Blake  <ebb9@byu.net>
49923
49924         Provide fallback for older kernels.
49925         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49926         Provide runtime fallback if kernel lacks support.
49927         Reported by Mike Frysinger.
49928
49929 2008-06-02  Bruno Haible  <bruno@clisp.org>
49930
49931         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49932         it exists.
49933
49934 2008-06-02  Bruno Haible  <bruno@clisp.org>
49935
49936         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49937         * lib/copy-acl.c (qcopy_acl): Update comment.
49938
49939 2008-06-02  Bruno Haible  <bruno@clisp.org>
49940
49941         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49942         like ACL APIs.
49943
49944 2008-06-02  Bruno Haible  <bruno@clisp.org>
49945
49946         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49947         * tests/test-set-mode-acl.sh: Likewise.
49948         * tests/test-copy-acl.sh: Likewise.
49949         * tests/test-copy-file.sh: Likewise.
49950
49951 2008-06-02  Bruno Haible  <bruno@clisp.org>
49952
49953         * tests/test-file-has-acl.sh: Remove unused code.
49954
49955 2008-06-01  Bruno Haible  <bruno@clisp.org>
49956
49957         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49958         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49959         messages.
49960         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49961
49962 2008-06-01  Bruno Haible  <bruno@clisp.org>
49963
49964         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49965         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49966         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49967         APIs.
49968         * modules/acl-tests (configure.ac): Remove tests now contained in
49969         m4/acl.m4.
49970
49971 2008-06-02  Jim Meyering  <meyering@redhat.com>
49972
49973         announce-gen: use a better key-server host name
49974         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49975         it may be more consistently reliable.  Suggested by Werner Koch
49976         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49977
49978 2008-06-01  Bruno Haible  <bruno@clisp.org>
49979
49980         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49981         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49982
49983 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49984
49985         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49986
49987 2008-06-01  Bruno Haible  <bruno@clisp.org>
49988
49989         New ACL tests.
49990         * tests/test-file-has-acl.sh: New file.
49991         * tests/test-file-has-acl.c: New file.
49992         * tests/test-set-mode-acl.sh: New file.
49993         * tests/test-set-mode-acl.c: New file.
49994         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49995         * tests/test-copy-acl.c: New file.
49996         * modules/acl-tests: New file, based on modules/copy-file-tests.
49997         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49998         (Depends-on): Add acl-tests.
49999         (configure.ac): Remove checks.
50000         (Makefile.am): Don't create test-sameacls program here any more.
50001
50002 2008-06-01  Bruno Haible  <bruno@clisp.org>
50003
50004         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50005         * tests/test-sameacls.c: Include progname.h.
50006         (main): Invoke set_program_name. Portability fixes for MacOS X,
50007         Solaris, HP-UX.
50008
50009 2008-06-01  Bruno Haible  <bruno@clisp.org>
50010
50011         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50012         function.
50013         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50014
50015 2008-06-01  Bruno Haible  <bruno@clisp.org>
50016
50017         * modules/rpmatch (Depends-on): Add strdup.
50018
50019 2008-06-01  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/pipe.c: Include unistd-safer.h.
50022         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50023         * modules/pipe (Depends-on): Add unistd-safer.
50024
50025 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50026
50027         * modules/autobuild (configure.ac): Call AB_INIT.
50028
50029 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50030
50031         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50032         Suggested by Bruno Haible <bruno@clisp.org>.
50033
50034 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50035
50036         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50037         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50038         <bruno@clisp.org>.
50039
50040 2008-05-29  Eric Blake  <ebb9@byu.net>
50041
50042         Prefer new POSIX 200x interfaces over futimesat.
50043         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50044         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50045         when available.
50046         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50047
50048 2008-05-28  Bruno Haible  <bruno@clisp.org>
50049
50050         * modules/stpcpy (License): Change to LGPLv2+.
50051         Requested by David Lutterkort <dlutter@redhat.com>.
50052
50053 2008-05-27  Bruno Haible  <bruno@clisp.org>
50054
50055         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50056         current mingw.
50057         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50058
50059 2008-05-27  Bruno Haible  <bruno@clisp.org>
50060
50061         * modules/iconv_open (Link): New section, from module 'iconv'.
50062         * modules/striconv (Link): Likewise.
50063         * modules/striconveh (Link): Likewise.
50064         * modules/xstriconv (Link): Likewise.
50065         * modules/unicodeio (Link): Likewise.
50066         * modules/propername (Link): Likewise.
50067         Reported by Jim Meyering.
50068
50069 2008-05-26  Jim Meyering  <meyering@redhat.com>
50070
50071         sha256: do not artificially restrict buffer length to be < 2^32
50072         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50073         uint32_t to size_t.
50074         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50075         to match.
50076
50077         avoid unaligned access errors, e.g., on sparc
50078         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50079         direct access through a possibly-unaligned uint64* pointer.
50080         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50081         direct access through a possibly-unaligned uint32* pointer.
50082         Prompted by this patch from Tom "spot" Callaway:
50083         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50084
50085         sha512.c: fix typo in comment
50086         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50087
50088 2008-05-25  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50091         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50092         (Makefile.am): Update lib_SOURCES.
50093
50094 2008-05-25  Bruno Haible  <bruno@clisp.org>
50095
50096         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50097
50098 2008-05-25  Jim Meyering  <meyering@redhat.com>
50099
50100         useless-if-before-free: freed expr may have white-space differences
50101         * build-aux/useless-if-before-free: Recognize cases in which the
50102         freed expression differs from the tested one in embedded white
50103         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50104         $1 was used, so we can't make any regexp shy.  Improved tests now
50105         detect this.
50106
50107         useless-if-before-free: accept white space in the expression.
50108         * build-aux/useless-if-before-free: For now, any white space
50109         in the expression must be identical in the free argument.
50110
50111         useless-if-before-free: efficiency tweak
50112         * build-aux/useless-if-before-free: Make the expression-matching
50113         regexp "shy".
50114         Make the *outer* regexp shy, not the expr-matching one.
50115
50116         update code-in-comment to accept cast of free arg
50117         * build-aux/useless-if-before-free: Update regexp.
50118
50119 2008-05-25  Bruno Haible  <bruno@clisp.org>
50120
50121         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50122         * modules/copy-file-tests (Files, Makefile.am): Update.
50123         * tests/test-copy-file.c (func_test_copy): Update.
50124
50125 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50126
50127         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50128
50129 2008-05-23  Bruno Haible  <bruno@clisp.org>
50130
50131         Improve support for ACLs on OSF/1.
50132         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50133         Remove fallback for unknown flavors of ACLs.
50134
50135 2008-05-22  Bruno Haible  <bruno@clisp.org>
50136
50137         Add support for ACLs on OSF/1.
50138         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50139         replacements.
50140         (acl_free_text): New macro fallback.
50141         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50142         acl_free.
50143         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50144         acl_free_text function. Require AC_C_INLINE.
50145
50146 2008-05-22  Bruno Haible  <bruno@clisp.org>
50147
50148         Make copy_acl work on MacOS X 10.5.
50149         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50150         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50151         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50152         If MODE_INSIDE_ACL, don't assume that every system has the same text
50153         representation for ACLs as FreeBSD.
50154         * lib/copy-acl.c (copy_acl): Add support for platforms with
50155         !MODE_INSIDE_ACL.
50156         * lib/file-has-acl.c (file_has_acl): Likewise.
50157         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50158         FreeBSD, MacOS X, or IRIX, respectively.
50159
50160 2008-05-22  Bruno Haible  <bruno@clisp.org>
50161
50162         * lib/acl.h: Don't include <sys/acl.h>.
50163         (GETACLCNT): Move fallback to lib/acl-internal.h.
50164         * lib/acl-internal.h: Include <sys/acl.h> here.
50165         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50166
50167 2008-05-22  Bruno Haible  <bruno@clisp.org>
50168
50169         Split off copy_acl function to separate file.
50170         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50171         * lib/acl.c (copy_acl): Moved function to separate file.
50172         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50173         * modules/acl (Files): Add lib/copy-acl.c.
50174         (Makefiles.am): Augment lib_SOURCES.
50175
50176 2008-05-22  Bruno Haible  <bruno@clisp.org>
50177
50178         * modules/copy-file-tests: New file.
50179         * tests/test-copy-file.sh: New file.
50180         * tests/test-copy-file.c: New file.
50181         * tests/test-copy-file-sameacls.c: New file.
50182
50183 2008-05-22  Eric Blake  <ebb9@byu.net>
50184
50185         Avoid gcc warning.
50186         * tests/test-memcmp.c (main): Pass NULL indirectly.
50187
50188 2008-05-21  Bruno Haible  <bruno@clisp.org>
50189
50190         Add reference doc about ACLs.
50191         * doc/acl-resources.txt: New file.
50192         * doc/acl-cygwin.txt: New file.
50193
50194 2008-05-21  Bruno Haible  <bruno@clisp.org>
50195
50196         Avoid one more warning from gcc.
50197         * lib/vasnprintf.c (IF_LINT): Update comments.
50198         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50199
50200 2008-05-21  Jim Meyering  <meyering@redhat.com>
50201
50202         avoid a warning from gcc
50203         * lib/vasnprintf.c (IF_LINT): Define.
50204         (scale10_round_decimal_long_double):
50205         Use it to avoid a "may be used uninitialized" warning.
50206         (scale10_round_decimal_double): Likewise.
50207
50208 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50209
50210         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50211         declared.
50212
50213 2008-05-20  Bruno Haible  <bruno@clisp.org>
50214
50215         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50216         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50217
50218 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50219
50220         * modules/memcmp-tests: New file.
50221         * tests/test-memcmp.c: New file.
50222
50223 2008-05-19  Bruno Haible  <bruno@clisp.org>
50224
50225         * modules/propername (Notice, configure.ac): Put quoted "..." into
50226         --keyword option.
50227         * lib/propername.h: Update comments accordingly.
50228         Reported by Eric Blake.
50229
50230 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50231
50232         * modules/getpass-gnu (Depends-on): Add fseeko.
50233
50234 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50235
50236         * modules/base64-tests: New file.
50237
50238 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50239
50240         * lib/base64.c (base64_decode_ctx): If a decode context structure
50241         was passed in use it to ignore newlines.  If a context structure
50242         was _not_ passed in, continue to treat newlines as garbage (this
50243         is the historical behavior).  Formerly base64_decode.
50244         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50245         takes a decode context structure.
50246         * lib/base64.h (base64_decode): Macro for four-argument calls.
50247         (base64_decode_alloc): Likewise.
50248         * lib/base64.c (base64_decode_ctx): If a decode context structure
50249         was passed in use it to ignore newlines.  If a context structure
50250         was _not_ passed in, continue to treat newlines as garbage (this
50251         is the historical behavior).  Formerly base64_decode.
50252         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50253         takes a decode context structure.
50254         * lib/base64.h (base64_decode): Macro for four-argument calls.
50255         (base64_decode_alloc): Likewise.
50256
50257 2008-05-19  Jim Meyering  <meyering@redhat.com>
50258
50259         avoid a warning from gcc
50260         * lib/trim.c (IF_LINT): Define.
50261         (trim2): Use it to avoid a "may be used uninitialized" warning.
50262
50263         Fix doc typo.
50264         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50265
50266 2008-05-19  Bruno Haible  <bruno@clisp.org>
50267
50268         * doc/glibc-functions/getpass.texi: Document limits of other
50269         implementations.
50270
50271 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50272             Bruno Haible <bruno@clisp.org>
50273
50274         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50275
50276 2008-05-18  Bruno Haible  <bruno@clisp.org>
50277
50278         * modules/propername: New file, from GNU gettext.
50279         * lib/propername.h: New file, from GNU gettext.
50280         * lib/propername.c: New file, from GNU gettext.
50281         * MODULES.html.sh (Internationalization functions): Add propername.
50282
50283 2008-05-16  Jim Meyering  <meyering@redhat.com>
50284             Bruno Haible  <bruno@clisp.org>
50285
50286         Avoid some warnings from "gcc -Wshadow".
50287         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50288
50289 2008-05-15  Eric Blake  <ebb9@byu.net>
50290
50291         Extend previous patch to cygwin 1.7.0.
50292         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50293         fast implementation in cygwin >= 1.7.0.
50294         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50296
50297 2008-05-15  Bruno Haible  <bruno@clisp.org>
50298
50299         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50300         implementation in glibc >= 2.9.
50301         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50303
50304 2008-05-15  Bruno Haible  <bruno@clisp.org>
50305
50306         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50307         (Unicode string functions): Add unilbrk/*.
50308         Reported by Karl Berry.
50309
50310 2008-05-15  Eric Blake  <ebb9@byu.net>
50311
50312         Fix violation of <stdbool.h> replacement in regex.
50313         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50314         * lib/regexec.c (re_search_internal): Likewise.
50315         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50316
50317 2008-05-15  Jim Meyering  <meyering@redhat.com>
50318
50319         avoid distracting test output when git or cvs is not found
50320         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50321         * tests/test-vc-list-files-git.sh: Likewise.
50322
50323 2008-05-15  Eric Blake  <ebb9@byu.net>
50324
50325         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50326         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50327         glibc version.
50328         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50329         * doc/posix-functions/strstr.texi (strstr): Likewise.
50330         * lib/str-two-way.h (MAX): Sychronize with glibc.
50331
50332 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50333
50334         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50335         opr.ctx_type.
50336         (calc_first): Initialize constraint field.
50337         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50338         Fix grammar.
50339         (duplicate_node): Merge constraint field for all node types.
50340         (calc_eclosure_iter): Look at constraint field for all node types.
50341         * lib/regex_internal.c (create_cd_newstate): Don't look at
50342         opr.ctx_type.
50343
50344 2008-05-14  Bruno Haible  <bruno@clisp.org>
50345
50346         Help GCC to do better code generation.
50347         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50348         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50349         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50350         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50351         Declare with attribute 'malloc' if supported.
50352
50353 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50354
50355         use "echo STR|wc -c" rather than unportable "expr length STR"
50356         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50357         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50358
50359 2008-05-14  Jim Meyering  <meyering@redhat.com>
50360
50361         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50362         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50363         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50364         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50365         via Collin Lasse.
50366
50367 2008-05-14  Eric Blake  <ebb9@byu.net>
50368
50369         Avoid quadratic growth in gl_LIBSOURCES.
50370         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50371         Suggested by Bruno Haible.
50372
50373         Test xmemdup0.
50374         * modules/xmemdup0-tests: New file.
50375         * tests/test-xmemdup0.c: Likewise.
50376
50377 2008-05-13  Eric Blake  <ebb9@byu.net>
50378
50379         Split xmemdup0 into its own module.
50380         * modules/xmemdup0: New file.
50381         * lib/xmemdup0.h: Likewise.
50382         * lib/xmemdup0.c: Likewise.
50383         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50384         * lib/xalloc.h (xmemdup0): Remove.
50385         * lib/xmalloc.c (xmemdup0): Likewise.
50386
50387 2008-05-13  Eric Blake  <ebb9@byu.net>
50388             Bruno Haible  <bruno@clisp.org>
50389
50390         Reduce number of forks required during autoconf.
50391         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50392         and gl_LIBSOURCES_DIR.
50393         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50394         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50395         m4_syscmd per file.
50396         <m4_foreach_w>: Move...
50397         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50398
50399 2008-05-13  Eric Blake  <ebb9@byu.net>
50400
50401         * gnulib-tool: Fix various comment typos.
50402
50403 2008-05-12  Bruno Haible  <bruno@clisp.org>
50404
50405         Tailor the linebreaking algorithm.
50406         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50407
50408 2008-05-12  Bruno Haible  <bruno@clisp.org>
50409
50410         Update to Unicode 5.0.0.
50411         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50412         LBP_JV, LBP_JT. Redistribute values.
50413         (unilbrk_table): Change size.
50414         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50415         Unicode TR#14 rev. 22.
50416         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50417         LBP_JV, LBP_JT. Redistribute values.
50418         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50419         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50420         Update.
50421         * lib/unilbrk/lbrkprop1.h: Regenerated.
50422         * lib/unilbrk/lbrkprop2.h: Regenerated.
50423         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50424         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50425         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50426         Likewise.
50427         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50428         Likewise.
50429         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50430         result.
50431         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50432         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50433         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50434         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50435         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50436         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50437
50438 2008-05-11  Bruno Haible  <bruno@clisp.org>
50439
50440         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50441
50442 2008-05-11  Bruno Haible  <bruno@clisp.org>
50443
50444         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50445         * modules/unilbrk/gen-lbrk: New file.
50446
50447 2008-05-11  Bruno Haible  <bruno@clisp.org>
50448
50449         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50450         * m4/sha512.m4 (gl_SHA512): Likewise.
50451
50452 2008-05-11  Jim Meyering  <meyering@redhat.com>
50453
50454         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50455         * modules/crypto/sha256: New file.
50456         * modules/crypto/sha512: Likewise.
50457         * lib/sha256.c: Likewise.
50458         * lib/sha256.h: Likewise.
50459         * lib/sha512.c: Likewise.
50460         * lib/sha512.h: Likewise.
50461         * lib/u64.h: Likewise.
50462         * m4/sha256.m4: Likewise.
50463         * m4/sha512.m4: Likewise.
50464         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50465
50466 2008-05-10  Bruno Haible  <bruno@clisp.org>
50467
50468         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50469         (Input/Output <stdio.h>): Add xprintf.
50470         (Signal handling <signal.h>): Add strsignal.
50471         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50472         (Core language properties): Add func.
50473         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50474         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50475         strings.
50476         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50477         (Input/output): New section.
50478         (File system functions): Add openat-die, stat-macros.
50479         (Networking functions): Add sockets.
50480         (Unicode string functions): Add unictype/*.
50481         (Support for building libraries and executables): Add gperf.
50482         (Support for building documentation): Add agpl-3.0.
50483         (Misc): Add nocrash.
50484
50485 2008-05-10  Bruno Haible  <bruno@clisp.org>
50486
50487         * modules/unictype/gen-ctype: New file.
50488
50489 2008-05-10  Jim Meyering  <meyering@redhat.com>
50490
50491         Make chdir-safer.c more efficient on a system with no symlinks.
50492         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50493         also if ELOOP is zero.  Suggested by Bruno Haible.
50494
50495         Make chdir-safer.c slightly safer.
50496         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50497         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50498
50499         Avoid compile failure on systems without ELOOP (like mingw).
50500         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50501         Reported by Bruno Haible.
50502
50503 2008-05-10  Bruno Haible  <bruno@clisp.org>
50504
50505         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50506         (is_utf8_encoding): Use a case-insensitive comparison.
50507         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50508         streq.
50509
50510 2008-05-10  Bruno Haible  <bruno@clisp.org>
50511
50512         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50513         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50514         * lib/unilbrk/ulc-common.h (iconv_string_length,
50515         iconv_string_keeping_offsets): Remove declarations.
50516         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50517         Don't include <iconv.h>, streq.h, xsize.h.
50518         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50519         conversion.
50520         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50521         <iconv.h>, streq.h, xsize.h.
50522         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50523         conversion.
50524         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50525         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50526         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50527         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50528
50529 2008-05-10  Bruno Haible  <bruno@clisp.org>
50530
50531         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50532         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50533
50534         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50535         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50536
50537         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50538         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50539
50540         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50541         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50542
50543         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50544         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50545
50546         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50547         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50548
50549         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50550         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50551
50552         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50553         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50554
50555 2008-05-10  Bruno Haible  <bruno@clisp.org>
50556
50557         Split up 'linebreak' module.
50558         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50559         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50560         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50561         modifications.
50562         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50563         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50564         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50565         lib/linebreak.c.
50566         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50567         lib/linebreak.c.
50568         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50569         lib/linebreak.c.
50570         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50571         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50572         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50573         lib/linebreak.c.
50574         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50575         lib/linebreak.c.
50576         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50577         lib/linebreak.c.
50578         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50579         lib/linebreak.c.
50580         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50581         lib/linebreak.c.
50582         * modules/unilbrk/base: New file.
50583         * modules/unilbrk/tables: New file.
50584         * modules/unilbrk/u8-possible-linebreaks: New file.
50585         * modules/unilbrk/u16-possible-linebreaks: New file.
50586         * modules/unilbrk/u32-possible-linebreaks: New file.
50587         * modules/unilbrk/ulc-common: New file.
50588         * modules/unilbrk/ulc-possible-linebreaks: New file.
50589         * modules/unilbrk/u8-width-linebreaks: New file.
50590         * modules/unilbrk/u16-width-linebreaks: New file.
50591         * modules/unilbrk/u32-width-linebreaks: New file.
50592         * modules/unilbrk/ulc-width-linebreaks: New file.
50593         * lib/linebreak.h: Remove file.
50594         * lib/linebreak.c: Remove file.
50595         * m4/linebreak.m4: Remove file.
50596         * modules/linebreak: Remove file.
50597         * NEWS: Mention the changes.
50598
50599 2008-05-09  Eric Blake  <ebb9@byu.net>
50600
50601         Add xmemdup0.
50602         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50603         implementation.
50604         * lib/xmalloc.c (xmemdup0): New C implementation.
50605
50606 2008-05-08  Bruno Haible  <bruno@clisp.org>
50607
50608         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50609
50610 2008-05-07  Eric Blake  <ebb9@byu.net>
50611
50612         Support cross-compilation of <wctype.h>.
50613         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50614         AC_CACHE_CHECK.
50615
50616 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50617
50618         * build-aux/vc-list-files: Add support for bzr.
50619
50620 2008-05-03  Jim Meyering  <meyering@redhat.com>
50621
50622         avoid failed assertion with tight malloc
50623         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50624
50625 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50626
50627         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50628         are needed from arpa/inet.h.
50629         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50630         Reported by Bruno Haible.
50631
50632 2008-05-02  Jim Meyering  <meyering@redhat.com>
50633
50634         avoid compilation error on FreeBSD 6
50635         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50636
50637 2008-05-01  Jim Meyering  <meyering@redhat.com>
50638
50639         useless-if-before-free: correct --help's exit status description
50640         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50641         for one or more matches, etc.  Reported by Bruno Haible.
50642
50643         vc-list-files: make the stand-alone gnulib test work
50644         * modules/vc-list-files-tests (configure.ac):
50645         Define and AC_SUBST abs_aux_dir.
50646         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50647         $(abs_top_srcdir) to each script and having each of them
50648         duplicate the work of setting PATH, set PATH here, using
50649         the new variable, abs_aux_dir instead.
50650         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50651         * tests/test-vc-list-files-git.sh: Likewise.
50652         Reported by Bruno Haible.
50653
50654 2008-05-01  Bruno Haible  <bruno@clisp.org>
50655
50656         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50657         reallocation. Rename 'done' to 'found_delimiter'.
50658
50659 2008-05-01  Jim Meyering  <meyering@redhat.com>
50660
50661         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50662         * build-aux/vc-list-files: Use `...`, not $(...).
50663
50664 2008-04-30  Jim Meyering  <meyering@redhat.com>
50665
50666         add tests for vc-list-files
50667         * modules/vc-list-files-tests: New module.
50668         * tests/test-vc-list-files-cvs.sh: New file.
50669         * tests/test-vc-list-files-git.sh: New file.
50670
50671         avoid a warning from gcc
50672         * lib/getndelim2.c (IF_LINT): Define.
50673         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50674
50675         vc-list-files: work properly with build-aux/cvsu, too
50676         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50677         to all cvs-based clauses.
50678
50679         vc-list-files: work properly in the CVS+awk case, too
50680         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50681
50682         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50683         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50684         take more than one file argument, so .  Add quotes, just in case $dir
50685         ever contains a shell meta-character.  Prompted by Soren Hansen in
50686         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50687
50688 2008-04-29  Eric Blake  <ebb9@byu.net>
50689
50690         Optimize getndelim2 to use block operations when possible.
50691         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50692         freadseek, and memchr2.
50693         * lib/getndelim2.c (getndelim2): Use them for block reads.
50694
50695 2008-04-29  Bruno Haible  <bruno@clisp.org>
50696
50697         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50698         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50699         * modules/inet_ntop (Depends-on): Add extensions.
50700         * modules/inet_pton (Depends-on): Likewise.
50701         Reported by Simon Josefsson.
50702
50703 2008-04-29  Jim Meyering  <meyering@redhat.com>
50704
50705         When the is more than one match in a block, match all of them.
50706         * build-aux/useless-if-before-free: Iterate through each block
50707         until there are no more matches.
50708
50709         Fix broken useless-if-before-free script.
50710         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50711         the expression to match cast of argument to free-like function.
50712
50713 2008-04-29  Eric Blake  <ebb9@byu.net>
50714
50715         Use new header.
50716         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50717
50718 2008-04-29  Jim Meyering  <meyering@redhat.com>
50719
50720         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50721         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50722         by gnulib to exist and to declare e.g., inet_ntop.
50723         Don't include "inet_ntop.h", now removed.
50724
50725         * m4/arpa_inet_h.m4: Remove trailing blanks.
50726
50727 2008-04-29  Eric Blake  <ebb9@byu.net>
50728
50729         Silence valgrind on safe reads beyond potential array bounds.
50730         * lib/rawmemchr.valgrind: New file.
50731         * lib/strchrnul.valgrind: Likewise.
50732         * modules/rawmemchr (Files): Distribute new file.
50733         * modules/strchrnul (Files): Likewise.
50734         Suggested by Bruno Haible.
50735
50736 2008-04-29  Bruno Haible  <bruno@clisp.org>
50737
50738         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50739         (inet_ntop, inet_pton): Change portability warning's wording.
50740         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50741         Invoke gl_CHECK_NEXT_HEADERS.
50742         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50743         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50744         set ARPA_INET_H.
50745         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50746         * modules/arpa_inet (Description): No longer only for systems that
50747         lack it.
50748         (Depends-on): Add include_next.
50749         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50750         HAVE_ARPA_INET_H.
50751
50752 2008-04-29  Jim Meyering  <meyering@redhat.com>
50753
50754         * modules/mkdir (License): Re-license as LGPLv2+.
50755
50756 2008-04-29  Bruno Haible  <bruno@clisp.org>
50757
50758         * modules/rawmemchr (Maintainer): Set to Eric.
50759         * modules/strchrnul (Maintainer): Likewise.
50760
50761 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50762
50763         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50764         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50765
50766         * modules/arpa_inet (arpa/inet.h): Use them.
50767
50768 2008-04-28  Eric Blake  <ebb9@byu.net>
50769
50770         Test getndelim2.
50771         * modules/getndelim2-tests: New file.
50772         * tests/test-getndelim2.c: Likewise.
50773         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50774         stream.
50775         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50776
50777         * MODULES.html.sh: Document new module.
50778
50779 2008-04-20  Bruno Haible  <bruno@clisp.org>
50780
50781         * lib/c-stack.c (die): Use raise.
50782         * modules/c-stack (Depends-on): Add raise.
50783
50784 2008-04-28  Bruno Haible  <bruno@clisp.org>
50785
50786         Expect rpmatch to be declared.
50787         * lib/yesno.c (rpmatch): Remove declaration.
50788
50789         Declare rpmatch.
50790         * lib/stdlib.in.h (rpmatch): New declaration.
50791         * lib/rpmatch.c: Include <stdlib.h> first.
50792         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50793         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50795         HAVE_RPMATCH.
50796         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50797         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50798         (Include): Set to <stdlib.h>.
50799         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50800         HAVE_RPMATCH.
50801         * NEWS: Document the change.
50802
50803 2008-04-28  Bruno Haible  <bruno@clisp.org>
50804
50805         Change rpmatch to use nl_langinfo when appropriate.
50806         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50807         (N_): New macro.
50808         (localized_pattern): New function/macro.
50809         (try): Remove match, nomatch arguments. Copy the pattern into safe
50810         memory before caching it.
50811         (rpmatch): Use localized_pattern. Add translator comments.
50812         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50813         Suggested by Eric Blake.
50814         * modules/rpmatch (Depends-on): Add stdbool.
50815
50816 2008-04-28  Eric Blake  <ebb9@byu.net>
50817
50818         Add rawmemchr module, matching glibc.
50819         * modules/string (Makefile.am): New indicator.
50820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50821         * lib/string.in.h (rawmemchr): Declare when appropriate.
50822         * modules/rawmemchr: New file.
50823         * m4/rawmemchr.m4: Likewise.
50824         * lib/rawmemchr.c: Likewise.
50825         * modules/rawmemchr-tests: Likewise.
50826         * tests/test-rawmemchr.c: Likewise.
50827         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50828         module.
50829         * modules/strchrnul (Depends-on): Add rawmemchr.
50830         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50831
50832         Whitespace cleanup.
50833         * tests/test-strchrnul.c: Reindent.
50834         * lib/strchrnul.c: Likewise.
50835
50836         Optimize and test strchrnul.
50837         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50838         * modules/strchrnul-tests: New file.
50839         * tests/test-strchrnul.c: Likewise.
50840
50841         Remove intprops dependency.
50842         * modules/memchr (Depends-on): Remove intprops.
50843         * modules/memrchr (Depends-on): Likewise.
50844         * modules/memchr2 (Depends-on): Likewise.
50845         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50846         * lib/memrchr.c (__memrchr): Likewise.
50847         * lib/memrchr2.c (memchr2): Likewise.
50848         Reported by Simon Josefsson.
50849
50850 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50851
50852         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50853         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50854
50855 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50856
50857         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50858
50859         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50860
50861         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50862
50863         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50864         declarations.
50865         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50866
50867         * m4/inet_pton.m4: Don't check for header files.
50868
50869         * m4/inet_ntop.m4: Don't check for header files.
50870
50871 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50872
50873         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50874         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50875         trigger for cygwin).
50876         Reported by Bruno Haible  <bruno@clisp.org>.
50877
50878 2008-04-28  Bruno Haible  <bruno@clisp.org>
50879
50880         * doc/posix-functions/strdup.texi: Mention mingw problem.
50881
50882 2008-04-27  Bruno Haible  <bruno@clisp.org>
50883
50884         * modules/stat-time-tests (Depends-on): Add sleep.
50885         * tests/test-stat-time.c (force_unlink): New function.
50886         (cleanup): Use it.
50887         (test_mtime): Remove the ctime related tests.
50888         (test_ctime): New function, containing the ctime related tests.
50889         (main): Call test_ctime, except on native Windows platforms.
50890
50891 2008-04-27  Bruno Haible  <bruno@clisp.org>
50892
50893         * lib/rpmatch.c (rpmatch): Add some comments.
50894         Reported by James Youngman <jay@gnu.org>.
50895
50896 2008-04-27  Bruno Haible  <bruno@clisp.org>
50897
50898         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50899         quiet NaNs.
50900
50901 2008-04-27  Bruno Haible  <bruno@clisp.org>
50902
50903         Make test-yesno.sh work on mingw.
50904         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50905         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50906         (main): Set stdin to binary mode.
50907         * modules/yesno-tests (Depends-on): Add binary-io.
50908
50909 2008-04-27  Bruno Haible  <bruno@clisp.org>
50910
50911         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50912         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50913         argument that lie outside the IEEE 854 domain.
50914         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50915         (gl_ISFINITE): Use it.
50916         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50917
50918 2008-04-27  Bruno Haible  <bruno@clisp.org>
50919
50920         Allow local renaming in config.h.
50921         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50922
50923 2008-04-27  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/memchr.c (__memchr): Change type of 'i'.
50926         * lib/memchr2.c (memchr2): Likewise.
50927
50928 2008-04-26  Eric Blake  <ebb9@byu.net>
50929         and Bruno Haible  <bruno@clisp.org>
50930
50931         Optimize and test memrchr.
50932         * modules/memrchr (Depends-on): Add intprops.
50933         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50934         * modules/memrchr-tests: New file.
50935         * tests/test-memrchr.c: New file.
50936
50937 2008-04-26  Bruno Haible  <bruno@clisp.org>
50938
50939         Add tentative support for DragonFly BSD.
50940         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50941         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50942         fp.
50943         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50944         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50945         * lib/fpurge.c (fpurge): Likewise.
50946         * lib/freadable.c (freaadable): Likewise.
50947         * lib/freadahead.c (freadahead): Likewise.
50948         * lib/freading.c (freading): Likewise.
50949         * lib/freadptr.c (freadptr): Likewise.
50950         * lib/freadseek.c (freadptrinc): Likewise.
50951         * lib/fseeko.c (fseeko): Likewise.
50952         * lib/fseterr.c (fseterr): Likewise.
50953         * lib/fwritable.c (fwritable): Likewise.
50954         * lib/fwriting.c (fwriting): Likewise.
50955
50956 2008-04-26  Bruno Haible  <bruno@clisp.org>
50957
50958         * lib/stdio-impl.h: New file.
50959         * lib/fbufmode.c: Include stdio-impl.h.
50960         (fbufmode): Use fp_, remove redundant #defines.
50961         * lib/fflush.c: Include stdio-impl.h.
50962         (clear_ungetc_buffer): Remove redundant #defines.
50963         * lib/fpurge.c: Include stdio-impl.h.
50964         (fpurge): Remove redundant #defines.
50965         * lib/freadable.c: Include stdio-impl.h.
50966         (freadable): Remove redundant #defines.
50967         * lib/freadahead.c: Include stdio-impl.h.
50968         (freadahead): Remove redundant #defines.
50969         * lib/freading.c: Include stdio-impl.h.
50970         (freading): Remove redundant #defines.
50971         * lib/freadptr.c: Include stdio-impl.h.
50972         (freadptr): Remove redundant #defines.
50973         * lib/freadseek.c: Include stdio-impl.h.
50974         (freadptrinc): Remove redundant #defines.
50975         * lib/fseeko.c: Include stdio-impl.h.
50976         (rpl_fseeko): Remove redundant #defines.
50977         * lib/fseterr.c: Include stdio-impl.h.
50978         (fseterr): Remove redundant #defines.
50979         * lib/fwritable.c: Include stdio-impl.h.
50980         (fwritable: Remove redundant #defines.
50981         * lib/fwriting.c: Include stdio-impl.h.
50982         (fwriting): Remove redundant #defines.
50983         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50984         * modules/fflush (Files): Likewise.
50985         * modules/fpurge (Files): Likewise.
50986         * modules/freadable (Files): Likewise.
50987         * modules/freadahead (Files): Likewise.
50988         * modules/freading (Files): Likewise.
50989         * modules/freadptr (Files): Likewise.
50990         * modules/freadseek (Files): Likewise.
50991         * modules/fseeko (Files): Likewise.
50992         * modules/fseterr (Files): Likewise.
50993         * modules/fwritable (Files): Likewise.
50994         * modules/fwriting (Files): Likewise.
50995
50996 2008-04-26  Bruno Haible  <bruno@clisp.org>
50997
50998         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50999         restore_seek_optimization, update_fpos_cache): New functions, extracted
51000         from rpl_fflush.
51001         (rpl_fflush): Use them.
51002         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51003         (gl_REPLACE_FFLUSH): Use it.
51004
51005 2008-04-26  Bruno Haible  <bruno@clisp.org>
51006
51007         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51008         on Solaris.
51009         * tests/test-xstrtoimax.sh: Likewise.
51010         * tests/test-xstrtoumax.sh: Likewise.
51011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51012
51013 2008-04-26  Bruno Haible  <bruno@clisp.org>
51014
51015         * modules/memchr-tests: New file.
51016         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51017
51018 2008-04-26  Eric Blake  <ebb9@byu.net>
51019             Bruno Haible  <bruno@clisp.org>
51020
51021         * lib/memchr.c: Include intprops.h.
51022         (__memchr): Optimize parallel detection of matching bytes. Rename local
51023         variables. Add explanatory comments.
51024
51025 2008-04-26  Bruno Haible  <bruno@clisp.org>
51026
51027         Fix module 'memchr', broken since 2000-10-28.
51028         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51029
51030 2008-04-26  Bruno Haible  <bruno@clisp.org>
51031
51032         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51033         comments.
51034
51035 2008-04-25  Eric Blake  <ebb9@byu.net>
51036
51037         Use native fstatat on cygwin 1.7.0.
51038         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51039         first.
51040
51041 2008-04-23  Eric Blake  <ebb9@byu.net>
51042
51043         Improve memchr2 performance.
51044         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51045         NUL bytes.
51046         * modules/memchr2 (Depends-on): Use intprops.h.
51047
51048 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51049
51050         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51051         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51052         <blp@cs.stanford.edu>.
51053
51054 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51055
51056         * lib/arpa_inet.in.h: New file.
51057
51058         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51059         (Makefile.am): Sed in substitute header file.
51060
51061         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51062         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51063
51064         * modules/inet_ntop (configure.ac): Use
51065         gl_ARPA_INET_MODULE_INDICATOR.
51066
51067         * modules/inet_pton (configure.ac): Use
51068         gl_ARPA_INET_MODULE_INDICATOR.
51069
51070 2008-04-22  Jim Meyering  <meyering@redhat.com>
51071
51072         * modules/verify (License): Re-license as LGPLv2+.
51073
51074 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51075
51076         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51077         parameter to void* as per POSIX standard (MinGW uses char*).
51078
51079 2008-04-21  Bruno Haible  <bruno@clisp.org>
51080
51081         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51082         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51083         Define to replacements if REPLACE_ISWCNTRL is 1.
51084         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51085         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51086         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51087         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51088         what it fixes.
51089         * doc/posix-functions/iswalpha.texi: Likewise.
51090         * doc/posix-functions/iswblank.texi: Likewise.
51091         * doc/posix-functions/iswcntrl.texi: Likewise.
51092         * doc/posix-functions/iswdigit.texi: Likewise.
51093         * doc/posix-functions/iswgraph.texi: Likewise.
51094         * doc/posix-functions/iswlower.texi: Likewise.
51095         * doc/posix-functions/iswprint.texi: Likewise.
51096         * doc/posix-functions/iswpunct.texi: Likewise.
51097         * doc/posix-functions/iswspace.texi: Likewise.
51098         * doc/posix-functions/iswupper.texi: Likewise.
51099         * doc/posix-functions/iswxdigit.texi: Likewise.
51100         Reported by Alain Guibert.
51101
51102 2008-04-21  Bruno Haible  <bruno@clisp.org>
51103
51104         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51105         Patch by Alain Guibert.
51106
51107 2008-04-21  Bruno Haible  <bruno@clisp.org>
51108
51109         Fix test failures on mingw.
51110         * tests/test-xstrtol.c (print_no_progname): New function.
51111         (main): Install it in error_print_progname hook.
51112         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51113         * tests/test-xstrtoimax.sh: Likewise.
51114         * tests/test-xstrtoumax.sh: Likewise.
51115
51116 2008-04-21  Bruno Haible  <bruno@clisp.org>
51117
51118         Fix test failure on mingw.
51119         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51120
51121 2008-04-21  Bruno Haible  <bruno@clisp.org>
51122
51123         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51124         Actually assign a value.
51125
51126 2008-04-20  Bruno Haible  <bruno@clisp.org>
51127
51128         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51129         take 2.
51130         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51131         'canonicalize-lgpl' module is also used.
51132         * lib/canonicalize-lgpl.c: Undo last change.
51133         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51134
51135 2008-04-20  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51138         config.h. Provide _mkdir based fallback for mingw.
51139         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51140         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51141         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51142         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51143         rather than defining mkdir in config.h.
51144         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51145         (gl_SYS_STAT_H_DEFAULTS): New macro.
51146         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51147         HAVE_IO_H any more.
51148         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51149         HAVE_DECL_MKDIR and HAVE_IO_H.
51150
51151 2008-04-20  Bruno Haible  <bruno@clisp.org>
51152
51153         * lib/isapipe.c: Port to native Windows platforms.
51154
51155 2008-04-20  Bruno Haible  <bruno@clisp.org>
51156
51157         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51158
51159 2008-04-21  Eric Blake  <ebb9@byu.net>
51160
51161         Work around preprocessors that don't handle UINTMAX_MAX.
51162         * lib/memchr2.c (memchr2): Avoid embedded #if.
51163         Reported by Alain Guibert, fix suggested by Bruno Haible.
51164
51165 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51166
51167         * doc/posix-functions/strftime.texi (strftime): Explain better
51168         Windows incompatibility.  Suggested by Micah Cowan
51169         <micah@cowan.name>.
51170
51171 2008-04-20  Bruno Haible  <bruno@clisp.org>
51172
51173         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51174         unistr/u8-mblen.
51175
51176 2008-04-20  Bruno Haible  <bruno@clisp.org>
51177
51178         Fix test failure on platforms with non-GNU iconv.
51179         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51180         (U_TO_U8): Use it, rather than u16_to_u8.
51181         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51182         units at the end of the input string.
51183         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51184
51185 2008-04-20  Bruno Haible  <bruno@clisp.org>
51186
51187         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51188         when the resulting length is 0.
51189         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51190
51191 2008-04-20  Bruno Haible  <bruno@clisp.org>
51192
51193         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51194         works.
51195         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51196
51197 2008-04-20  Bruno Haible  <bruno@clisp.org>
51198
51199         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51200         * modules/tsearch-tests (configure.ac): Test for initstate function.
51201
51202 2008-04-20  Bruno Haible  <bruno@clisp.org>
51203
51204         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51205         for nlink_t if missing.
51206         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51207
51208 2008-04-19  Bruno Haible  <bruno@clisp.org>
51209
51210         Work around snprintf bug on Linux libc5.
51211         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51213         gl_SNPRINTF_SIZE1.
51214         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51215         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51216         that test failed.
51217         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51218         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51219         * modules/snprintf (Files): Add m4/printf.m4.
51220         * modules/vsnprintf (Files): Likewise.
51221         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51222         * doc/posix-functions/vsnprintf.texi: Likewise.
51223
51224 2008-04-19  Bruno Haible  <bruno@clisp.org>
51225
51226         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51227         from 0.0058 to less than 10^-7.
51228
51229 2008-04-19  Bruno Haible  <bruno@clisp.org>
51230
51231         Fix rounding when a precision is given.
51232         * lib/vasnprintf.c (is_borderline): New function.
51233         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51234         9...9x.
51235         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51236         %e, %g.
51237         * tests/test-vasprintf-posix.c (test_function): Likewise.
51238         * tests/test-snprintf-posix.h (test_function): Likewise.
51239         * tests/test-sprintf-posix.h (test_function): Likewise.
51240         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51241         * tests/test-printf-posix.h (test_function): Likewise.
51242         * tests/test-printf-posix.output: Update.
51243         Reported by John Darrington <john@darrington.wattle.id.au> via
51244         Ben Pfaff <blp@cs.stanford.edu>.
51245
51246 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51247
51248         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51249         Suggested by Bruno Haible <bruno@clisp.org>.
51250
51251 2008-04-17  Bruno Haible  <bruno@clisp.org>
51252
51253         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51254         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51255         implementation.
51256         Patch by Bruce Merry <bmerry@gmail.com>.
51257
51258 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51259
51260         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51261         doesn't work under Windows.
51262
51263 2008-04-16  Bruno Haible  <bruno@clisp.org>
51264
51265         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51266         New macros.
51267         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51268         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51269         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51270         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51271         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51272         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51273         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51274         macros.
51275         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51276         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51277         Northern Sotho, Uighur.
51278
51279 2008-04-16  Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51282         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51283         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51284         Reported by Daniel Bergström <daniel@octocode.com>.
51285
51286 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51287             Bruno Haible  <bruno@clisp.org>
51288
51289         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51290         function.
51291         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51292         New functions, mostly extracted from gl_locale_name_default.
51293         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51294
51295 2008-04-16  Eric Blake  <ebb9@byu.net>
51296
51297         Adjust strtod detection to catch glibc 2.7 bug.
51298         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51299         Reported by John Gatewood Ham.
51300
51301 2008-04-16  Bruno Haible  <bruno@clisp.org>
51302
51303         Add tentative support for Linux libc5.
51304         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51305         * lib/fpurge.c (fpurge): Likewise.
51306         * lib/freadable.c (freadable): Likewise.
51307         * lib/freadahead.c (freadahead): Likewise.
51308         * lib/freading.c (freading): Likewise.
51309         * lib/freadptr.c (freadptr): Likewise.
51310         * lib/freadseek.c (freadptrinc): Likewise.
51311         * lib/fseeko.c (rpl_fseeko): Likewise.
51312         * lib/fseterr.c (fseterr): Likewise.
51313         * lib/fwritable.c (fwritable): Likewise.
51314         * lib/fwriting.c (fwriting): Likewise.
51315         Reported by Alain Guibert <alguibert+bts@free.fr>.
51316
51317 2008-04-15  Bruno Haible  <bruno@clisp.org>
51318
51319         * modules/mathl (configure.ac): Define module indicator.
51320
51321 2008-04-15  Bruno Haible  <bruno@clisp.org>
51322
51323         * lib/logl.c (logl): Remove unused variables.
51324
51325 2008-04-15  Bruno Haible  <bruno@clisp.org>
51326
51327         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51328         fails.
51329
51330 2008-04-15  Bruno Haible  <bruno@clisp.org>
51331
51332         * lib/trim.c (trim2): Fix argument of isspace() macro.
51333
51334 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51335
51336         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51337         to 0.
51338         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51339
51340 2008-04-14  Bruno Haible  <bruno@clisp.org>
51341
51342         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51343         AC_LANG_PROGRAM argument.
51344         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51345         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51347         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51348         * m4/math_h.m4 (gl_MATH_H): Likewise.
51349         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51350         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51351         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51352         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51353         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51354         * m4/regex.m4 (gl_REGEX): Likewise.
51355         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51356         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51357         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51358         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51359         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51360         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51362         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51363
51364 2008-04-14  Jim Meyering  <meyering@redhat.com>
51365
51366         test-strtod: fix typos: s/abs/fabs/
51367         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51368
51369 2008-04-13  Bruno Haible  <bruno@clisp.org>
51370
51371         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51372         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51373         module is also used and while not building the reloc-wrapper.
51374
51375 2008-04-13  Bruno Haible  <bruno@clisp.org>
51376
51377         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51378
51379 2008-04-13  Bruno Haible  <bruno@clisp.org>
51380
51381         Fix AIX compilation failure introduced on 2008-04-02.
51382         * tests/test-frexp.c (exp): Undefine before redefining.
51383         * tests/test-frexpl.c (exp): Likewise.
51384
51385 2008-04-13  Bruno Haible  <bruno@clisp.org>
51386
51387         Work around a HP-UX stdio bug.
51388         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51389         * tests/test-ftello.c (main): Likewise.
51390         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51391         * doc/posix-functions/ftello.texi: Likewise.
51392
51393 2008-04-13  Bruno Haible  <bruno@clisp.org>
51394
51395         Make test-signbit pass on HP-UX/hppa.
51396         * tests/test-signbit.c (minus_zerol): New variable.
51397         (test_signbitl): Use it.
51398
51399 2008-04-13  Bruno Haible  <bruno@clisp.org>
51400
51401         Make truncl work on OSF/1 4.0.
51402         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51403         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51404         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51406         HAVE_DECL_TRUNCL.
51407         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51408         HAVE_DECL_TRUNCL.
51409         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51410
51411 2008-04-13  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51414
51415 2008-04-13  Bruno Haible  <bruno@clisp.org>
51416
51417         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51418         expression, so as to avoid HP-UX 11 cc compiler bug.
51419
51420 2008-04-13  Bruno Haible  <bruno@clisp.org>
51421
51422         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51423
51424 2008-04-13  Bruno Haible  <bruno@clisp.org>
51425
51426         * lib/git-merge-changelog.c: Remove empty declaration outside of
51427         functions.
51428
51429 2008-04-13  Bruno Haible  <bruno@clisp.org>
51430
51431         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51432
51433 2008-04-13  Bruno Haible  <bruno@clisp.org>
51434
51435         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51436         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51437         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51438         also if it exists but lacks definitions of the SHUT_* macros.
51439         * modules/sys_socket (Description): Update.
51440         Reported by Elbert Pol <e.pol@chello.nl>.
51441
51442 2008-04-13  Bruno Haible  <bruno@clisp.org>
51443
51444         * lib/localcharset.c (OS2): Don't redefine if already defined.
51445         Reported by Elbert Pol <e.pol@chello.nl>.
51446
51447 2008-04-13  Bruno Haible  <bruno@clisp.org>
51448
51449         * lib/binary-io.h [__EMX__]: Include <io.h>.
51450         Reported by Elbert Pol <e.pol@chello.nl>.
51451
51452 2008-04-12  Bruno Haible  <bruno@clisp.org>
51453
51454         * lib/fpucw.h: Enable the definitions also for x86_64.
51455         Needed for NetBSD/x86_64.
51456         Reported by Thomas Klausner <tk@giga.or.at>.
51457
51458 2008-04-12  Bruno Haible  <bruno@clisp.org>
51459
51460         * tests/test-strtod.c: Include isnand.h.
51461         (main): Use isnand instead of isnan.
51462         Reported by Jim Meyering.
51463
51464 2008-04-12  Bruno Haible  <bruno@clisp.org>
51465
51466         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51467         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51468
51469 2008-04-12  Jim Meyering  <meyering@redhat.com>
51470
51471         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51472
51473 2008-04-12  Bruno Haible  <bruno@clisp.org>
51474
51475         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51476         Reported by Elbert Pol <e.pol@chello.nl>.
51477
51478 2008-04-12  Eric Blake  <ebb9@byu.net>
51479
51480         Work around Solaris 10 math.h bug.
51481         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51482         (gl_MATH_H_DEFAULTS): Set up default.
51483         * modules/math (Makefile.am): Replace new indicators.
51484         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51485         * tests/test-math.c (main): Test this.
51486         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51487         * doc/posix-headers/math.texi (math.h): Mention bug.
51488         Reported by Nelson H. F. Beebe and Jim Meyering.
51489
51490 2008-04-11  Bruno Haible  <bruno@clisp.org>
51491
51492         Adapt to future versions of Apple GCC.
51493         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51494         Reported by Peter O'Gorman <peter@pogma.com>.
51495
51496 2008-04-11  Bruno Haible  <bruno@clisp.org>
51497
51498         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51499
51500 2008-04-11  Bruno Haible  <bruno@clisp.org>
51501
51502         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51503
51504         * modules/getaddrinfo-tests (Makefile.am): Define
51505         test_getaddrinfo_LDADD.
51506
51507 2008-04-11  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51510         (init): Fix syntax error.
51511         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51512         is declared.
51513
51514 2008-04-11  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51517         * modules/glob (Depends-on): Add stdbool.
51518
51519 2008-04-11  Bruno Haible  <bruno@clisp.org>
51520
51521         * lib/trim.c: Include <string.h>.
51522
51523 2008-04-11  Eric Blake  <ebb9@byu.net>
51524
51525         Avoid compile failure on OS/2.
51526         * lib/regex_internal.h (internal_function): Disable optimization
51527         on OS/2 (__EMX__), where it caused compiler error.
51528         Reported by Elbert Pol.
51529
51530 2008-04-11  Bruno Haible  <bruno@clisp.org>
51531
51532         Flush the standard error stream before aborting. Needed on mingw.
51533         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51534         * tests/test-array_list.c (ASSERT): Likewise.
51535         * tests/test-array_oset.c (ASSERT): Likewise.
51536         * tests/test-avltree_list.c (ASSERT): Likewise.
51537         * tests/test-avltree_oset.c (ASSERT): Likewise.
51538         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51539         * tests/test-binary-io.c (ASSERT): Likewise.
51540         * tests/test-byteswap.c (ASSERT): Likewise.
51541         * tests/test-c-ctype.c (ASSERT): Likewise.
51542         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51543         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51544         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51545         * tests/test-c-strstr.c (ASSERT): Likewise.
51546         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51547         * tests/test-canonicalize.c (ASSERT): Likewise.
51548         * tests/test-carray_list.c (ASSERT): Likewise.
51549         * tests/test-ceilf1.c (ASSERT): Likewise.
51550         * tests/test-ceilf2.c (ASSERT): Likewise.
51551         * tests/test-ceill.c (ASSERT): Likewise.
51552         * tests/test-count-one-bits.c (ASSERT): Likewise.
51553         * tests/test-fbufmode.c (ASSERT): Likewise.
51554         * tests/test-fflush2.c (ASSERT): Likewise.
51555         * tests/test-floorf1.c (ASSERT): Likewise.
51556         * tests/test-floorf2.c (ASSERT): Likewise.
51557         * tests/test-floorl.c (ASSERT): Likewise.
51558         * tests/test-fopen.c (ASSERT): Likewise.
51559         * tests/test-fpending.c (ASSERT): Likewise.
51560         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51561         * tests/test-fpurge.c (ASSERT): Likewise.
51562         * tests/test-freadable.c (ASSERT): Likewise.
51563         * tests/test-freadahead.c (ASSERT): Likewise.
51564         * tests/test-freading.c (ASSERT): Likewise.
51565         * tests/test-freadptr.c (ASSERT): Likewise.
51566         * tests/test-freadptr2.c (ASSERT): Likewise.
51567         * tests/test-freadseek.c (ASSERT): Likewise.
51568         * tests/test-freopen.c (ASSERT): Likewise.
51569         * tests/test-frexp.c (ASSERT): Likewise.
51570         * tests/test-frexpl.c (ASSERT): Likewise.
51571         * tests/test-fseek.c (ASSERT): Likewise.
51572         * tests/test-fseeko.c (ASSERT): Likewise.
51573         * tests/test-fstrcmp.c (ASSERT): Likewise.
51574         * tests/test-ftell.c (ASSERT): Likewise.
51575         * tests/test-ftello.c (ASSERT): Likewise.
51576         * tests/test-func.c (ASSERT): Likewise.
51577         * tests/test-fwritable.c (ASSERT): Likewise.
51578         * tests/test-fwriting.c (ASSERT): Likewise.
51579         * tests/test-getdelim.c (ASSERT): Likewise.
51580         * tests/test-getline.c (ASSERT): Likewise.
51581         * tests/test-i-ring.c (ASSERT): Likewise.
51582         * tests/test-iconv-utf.c (ASSERT): Likewise.
51583         * tests/test-iconv.c (ASSERT): Likewise.
51584         * tests/test-isfinite.c (ASSERT): Likewise.
51585         * tests/test-isnand.c (ASSERT): Likewise.
51586         * tests/test-isnanf.c (ASSERT): Likewise.
51587         * tests/test-isnanl.h (ASSERT): Likewise.
51588         * tests/test-ldexpl.c (ASSERT): Likewise.
51589         * tests/test-linked_list.c (ASSERT): Likewise.
51590         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51591         * tests/test-localename.c (ASSERT): Likewise.
51592         * tests/test-lseek.c (ASSERT): Likewise.
51593         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51594         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51595         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51596         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51597         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51598         * tests/test-mbschr.c (ASSERT): Likewise.
51599         * tests/test-mbscspn.c (ASSERT): Likewise.
51600         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51601         * tests/test-mbspbrk.c (ASSERT): Likewise.
51602         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51603         * tests/test-mbsrchr.c (ASSERT): Likewise.
51604         * tests/test-mbsspn.c (ASSERT): Likewise.
51605         * tests/test-mbsstr1.c (ASSERT): Likewise.
51606         * tests/test-mbsstr2.c (ASSERT): Likewise.
51607         * tests/test-mbsstr3.c (ASSERT): Likewise.
51608         * tests/test-memchr2.c (ASSERT): Likewise.
51609         * tests/test-memmem.c (ASSERT): Likewise.
51610         * tests/test-open.c (ASSERT): Likewise.
51611         * tests/test-printf-frexp.c (ASSERT): Likewise.
51612         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51613         * tests/test-printf-posix.c (ASSERT): Likewise.
51614         * tests/test-quotearg.c (ASSERT): Likewise.
51615         * tests/test-rbtree_list.c (ASSERT): Likewise.
51616         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51617         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51618         * tests/test-round1.c (ASSERT): Likewise.
51619         * tests/test-roundf1.c (ASSERT): Likewise.
51620         * tests/test-roundl.c (ASSERT): Likewise.
51621         * tests/test-signbit.c (ASSERT): Likewise.
51622         * tests/test-sleep.c (ASSERT): Likewise.
51623         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51624         * tests/test-snprintf.c (ASSERT): Likewise.
51625         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51626         * tests/test-stat-time.c (ASSERT): Likewise.
51627         * tests/test-strcasestr.c (ASSERT): Likewise.
51628         * tests/test-strerror.c (ASSERT): Likewise.
51629         * tests/test-striconv.c (ASSERT): Likewise.
51630         * tests/test-striconveh.c (ASSERT): Likewise.
51631         * tests/test-striconveha.c (ASSERT): Likewise.
51632         * tests/test-strsignal.c (ASSERT): Likewise.
51633         * tests/test-strstr.c (ASSERT): Likewise.
51634         * tests/test-strtod.c (ASSERT): Likewise.
51635         * tests/test-trunc1.c (ASSERT): Likewise.
51636         * tests/test-trunc2.c (ASSERT): Likewise.
51637         * tests/test-truncf1.c (ASSERT): Likewise.
51638         * tests/test-truncf2.c (ASSERT): Likewise.
51639         * tests/test-truncl.c (ASSERT): Likewise.
51640         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51641         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51642         * tests/test-vasnprintf.c (ASSERT): Likewise.
51643         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51644         * tests/test-vasprintf.c (ASSERT): Likewise.
51645         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51646         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51647         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51648         * tests/test-vsnprintf.c (ASSERT): Likewise.
51649         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51650         * tests/test-wcwidth.c (ASSERT): Likewise.
51651         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51652         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51653         * tests/test-xvasprintf.c (ASSERT): Likewise.
51654         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51655         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51656         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51657         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51658         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51659         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51660         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51661         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51662         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51663         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51664         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51665         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51666         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51667         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51668         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51669         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51670         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51671         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51672         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51673         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51674         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51675         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51676         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51677         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51678         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51679         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51680         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51681         * tests/unictype/test-combining.c (ASSERT): Likewise.
51682         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51683         * tests/unictype/test-digit.c (ASSERT): Likewise.
51684         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51685         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51686         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51687         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51688         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51689         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51690         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51691         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51692         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51693         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51694         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51695         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51696         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51697         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51698         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51699         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51700         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51701         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51702         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51703         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51704         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51705         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51706         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51707         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51708         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51709         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51710         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51711         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51712         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51713         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51714         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51715         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51716         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51717         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51718         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51719         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51720         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51721         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51722         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51723         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51724         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51725         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51726         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51727         Reported by Eric Blake.
51728
51729 2008-04-11  Bruno Haible  <bruno@clisp.org>
51730
51731         * lib/wchar.in.h: Tweak comment.
51732
51733 2008-04-11  Bruno Haible  <bruno@clisp.org>
51734
51735         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51736         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51737         gl_COMMON.
51738         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51739
51740 2008-04-11  Bruno Haible  <bruno@clisp.org>
51741
51742         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51743
51744 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51745
51746         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51747         of attempting to use non-existing /dev/*random.  Based on patch
51748         from Adam Strzelecki <ono@java.pl> in
51749         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51750
51751 2008-04-08  Bruno Haible  <bruno@clisp.org>
51752
51753         Add tentative support for emx+gcc.
51754         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51755         * lib/fpurge.c (fpurge): Likewise.
51756         * lib/freadable.c (freadable): Likewise.
51757         * lib/freadahead.c (freadahead): Likewise.
51758         * lib/freading.c (freading): Likewise.
51759         * lib/freadptr.c (freadptr): Likewise.
51760         * lib/freadseek.c (freadptrinc): Likewise.
51761         * lib/fseeko.c (rpl_fseeko): Likewise.
51762         * lib/fseterr.c (fseterr): Likewise.
51763         * lib/fwritable.c (fwritable): Likewise.
51764         * lib/fwriting.c (fwriting): Likewise.
51765         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51766
51767 2008-04-09  Eric Blake  <ebb9@byu.net>
51768
51769         Avoid some autoconf warnings.
51770         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51771         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51772         * m4/afs.m4 (gl_AFS): Likewise.
51773         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51774         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51775         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51776         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51777         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51778         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51779         (AC_CHECK_DECLS_ONCE): Likewise.
51780         Rename file...
51781         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51782         gnulib-tool requires autoconf 2.59 or better.
51783         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51784
51785 2008-04-08  Eric Blake  <ebb9@byu.net>
51786
51787         Use 'git describe --match' if present (added in git 1.5.5).
51788         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51789         if possible.
51790
51791 2008-04-08  Bruno Haible  <bruno@clisp.org>
51792
51793         Add tentative support for OpenServer.
51794         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51795         _ptr, _cnt.
51796         * lib/fpurge.c (fpurge): Likewise.
51797         * lib/freadable.c (freadable): Likewise.
51798         * lib/freadahead.c (freadahead): Likewise.
51799         * lib/freading.c (freading): Likewise.
51800         * lib/freadptr.c (freadptr): Likewise.
51801         * lib/freadseek.c (freadptrinc): Likewise.
51802         * lib/fseeko.c (rpl_fseeko): Likewise.
51803         * lib/fseterr.c (fseterr): Likewise.
51804         * lib/fwritable.c (fwritable): Likewise.
51805         * lib/fwriting.c (fwriting): Likewise.
51806         Reported by Roger Cornelius <rac@tenzing.org> and
51807         Brian K. White <brian@aljex.com>.
51808
51809 2008-04-06  Jim Meyering  <meyering@redhat.com>
51810
51811         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51812
51813 2008-04-06  Bruno Haible  <bruno@clisp.org>
51814
51815         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51816         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51817         * tests/test-printf-posix.sh: Likewise.
51818         * tests/test-vfprintf-posix.sh: Likewise.
51819         * tests/test-vprintf-posix.sh: Likewise.
51820         * tests/test-xprintf-posix.sh: Likewise.
51821
51822 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51823
51824         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51825         hide error from 'ls', needed on OS/2.
51826         Report by Elbert Pol <elbert.pol@gmail.com>.
51827
51828 2008-04-04  Eric Blake  <ebb9@byu.net>
51829
51830         Make test-fseeko.c failures meaningful.
51831         * tests/test-fseeko.c: Print line number on failure.
51832         * tests/test-fseek.c: Likewise.
51833         Reported by Nelson H. F. Beebe.
51834
51835         Improve strtod bug detection check.
51836         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51837         required for Solaris 10.
51838         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51839
51840 2008-04-04  Bruno Haible  <bruno@clisp.org>
51841
51842         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51843         by m4/setenv.m4.
51844
51845 2008-04-03  Eric Blake  <ebb9@byu.net>
51846
51847         Ensure sane .version contents.
51848         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51849         version string.
51850         * build-aux/git-version-gen: Improve documentation.
51851
51852         Make GNU make output nicer.
51853         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51854         MAKECMDGOALS to enforce message for all command line targets.  Set
51855         srcdir for use in maint.mk.
51856
51857         Another maintainer tweak.
51858         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51859         a target that regenerates version.
51860
51861 2008-04-03  Jim Meyering  <meyering@redhat.com>
51862
51863         vc-list-files: don't cause coreutils "make po-check" failure
51864         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51865
51866 2008-04-03  Eric Blake  <ebb9@byu.net>
51867
51868         Allow VPATH usage of vc-list-files.
51869         * build-aux/vc-list-files (scriptversion): Add timestamp.
51870         (options): Add --help, --version, -C.
51871         (CVS): Support installed cvsu.
51872
51873 2008-04-02  Bruno Haible  <bruno@clisp.org>
51874
51875         Avoid some "statement with no effect" warnings from gcc.
51876         * tests/test-wctype.c (main): Explicitly ignore unused values.
51877         Reported by Jim Meyering.
51878
51879 2008-04-02  Jim Meyering  <meyering@redhat.com>
51880
51881         Avoid some warnings from "gcc -Wshadow".
51882         * tests/test-frexp.c (exp): Define to a different identifier.
51883         * tests/test-frexpl.c (exp): Likewise.
51884
51885 2008-04-03  Jim Meyering  <meyering@redhat.com>
51886
51887         bootstrap: remove dangling *.[ch] symlinks from lib
51888         * build-aux/bootstrap [dangling symlink removal]: Move find's
51889         -depth option to precede all others, to avoid a warning.
51890         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51891
51892 2008-04-02  Bruno Haible  <bruno@clisp.org>
51893
51894         Avoid some warnings from "gcc -Wshadow".
51895         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51896         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51897         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51898         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51899         Reported by Jim Meyering.
51900
51901 2008-04-01  Bruno Haible  <bruno@clisp.org>
51902
51903         Fix test to work on IRIX 6.5 with cc.
51904         * tests/test-math.c (numeric_equal): New function.
51905         (main): Use it.
51906
51907 2008-04-01  Bruno Haible  <bruno@clisp.org>
51908
51909         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51910
51911 2008-04-01  Bruno Haible  <bruno@clisp.org>
51912
51913         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51914         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51915         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51916         (Depends-on): Remove math.
51917
51918         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51919         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51920         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51921         (Depends-on): Remove math.
51922
51923         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51924         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51925         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51926         (Depends-on): Remove math.
51927         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51928         (Depends-on): Remove math.
51929
51930         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51931         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51932         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51933         (Depends-on): Remove math.
51934         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51935         (Depends-on): Remove math.
51936
51937         * tests/test-round1.c: Include nan.h.
51938         (main): Use NaNd instead of NAN.
51939         * modules/round-tests (Files): Add tests/nan.h.
51940
51941         * tests/test-trunc1.c: Include nan.h.
51942         (main): Use NaNd instead of NAN.
51943         * modules/trunc-tests (Files): Add tests/nan.h.
51944
51945         * tests/test-roundf1.c: Include nan.h.
51946         (main): Use NaNf instead of NAN.
51947         * modules/roundf-tests (Files): Add tests/nan.h.
51948
51949         * tests/test-truncf1.c: Include nan.h.
51950         (main): Use NaNf instead of NAN.
51951         * modules/truncf-tests (Files): Add tests/nan.h.
51952
51953         * tests/test-ceilf1.c: Include nan.h.
51954         (main): Use NaNf instead of NAN.
51955         * modules/ceilf-tests (Files): Add tests/nan.h.
51956
51957         * tests/test-floorf1.c: Include nan.h.
51958         (main): Use NaNf instead of NAN.
51959         * modules/floorf-tests (Files): Add tests/nan.h.
51960
51961         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51962         (main): Use NaNf instead of NAN.
51963         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51964
51965         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51966         (main): Use NaNd instead of NAN.
51967         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51968
51969         * tests/test-frexp.c: Include nan.h.
51970         (main): Use NaNd instead of NAN.
51971         * modules/frexp-tests (Files): Add tests/nan.h.
51972
51973         * lib/isnan.c: Don't include <math.h>.
51974         (FUNC): Don't use NAN macro.
51975         * modules/isnand-nolibm (Depends-on): Remove math.
51976         * modules/isnanf-nolibm (Depends-on): Remove math.
51977         * modules/isnanl (Depends-on): Remove math.
51978         * modules/isnanl-nolibm (Depends-on): Remove math.
51979
51980         * tests/nan.h: New file.
51981
51982 2008-04-01  Eric Blake  <ebb9@byu.net>
51983
51984         Fix typos.
51985         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51986         values to be the right type.
51987
51988         For now, cater to gnulib strtod inaccuracies.
51989         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51990         fractional results.  While not as nice from a QoI perspective, it
51991         is a quicker patch than correctly implementing decimal to binary
51992         rounding.
51993
51994 2008-03-31  Eric Blake  <ebb9@byu.net>
51995
51996         Guarantee a definition of NAN.
51997         * lib/math.in.h (NAN): Define if missing.
51998         * tests/test-math.c (main): Test it.
51999         * doc/posix-headers/math.texi (math.h): Document this.
52000         * lib/isnan.c (rpl_isnand): Use it.
52001         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52002         * tests/test-floorf1.c (NaN): Likewise.
52003         * tests/test-frexp.c (NaN): Likewise.
52004         * tests/test-isnand.c (NaN): Likewise.
52005         * tests/test-isnanf.c (NaN): Likewise.
52006         * tests/test-round1.c (NaN): Likewise.
52007         * tests/test-roundf1.c (NaN): Likewise.
52008         * tests/test-snprintf-posix.h (NaN): Likewise.
52009         * tests/test-sprintf-posix.h (NaN): Likewise.
52010         * tests/test-trunc1.c (NaN): Likewise.
52011         * tests/test-truncf1.c (NaN): Likewise.
52012         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52013         * tests/test-vasprintf-posix.c (NaN): Likewise.
52014         * modules/isnand-nolibm (Depends-on): Add math.
52015         * modules/isnanf-nolibm (Depends-on): Likewise.
52016         * modules/isnanl (Depends-on): Likewise.
52017         * modules/isnanl-nolibm (Depends-on): Likewise.
52018         * modules/snprintf-posix-tests (Depends-on): Likewise.
52019         * modules/sprintf-posix-tests (Depends-on): Likewise.
52020         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52021         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52022         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52023         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52024
52025 2008-03-31  Bruno Haible  <bruno@clisp.org>
52026
52027         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52028         * doc/posix-functions/strtod.texi: Likewise.
52029
52030 2008-03-31  Bruno Haible  <bruno@clisp.org>
52031
52032         * tests/test-strtod.c (main): Don't use C99 syntax.
52033
52034 2008-03-31  Bruno Haible  <bruno@clisp.org>
52035
52036         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52037         Reported by Eric Blake.
52038
52039 2008-03-31  Jim Meyering  <meyering@redhat.com>
52040
52041         Don't compare actual signbit return values.
52042         * tests/test-strtod.c (main): Rather, compare only their
52043         zero/non-zero nature.
52044
52045 2008-03-31  Eric Blake  <ebb9@byu.net>
52046
52047         More strtod documentation.
52048         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52049         failures as distinct bugs.
52050
52051 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52052
52053         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52054         Problem reported by Erik Benada in
52055         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52056
52057 2008-03-30  Bruno Haible  <bruno@clisp.org>
52058
52059         * tests/test-strtod.c: Add comments about which assertion fails on which
52060         platform.
52061         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52062
52063 2008-03-30  Eric Blake  <ebb9@byu.net>
52064
52065         Test signbit behavior on zeros.
52066         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52067         (test_signbitd, test_signbitl): Likewise.
52068
52069         More strtod touchups.
52070         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52071         sign of negative underflow, for now.  Use .5, not .1.
52072         * doc/posix-functions/strtod.texi (strtod): Mention these
52073         limitations.
52074         Reported by Jim Meyering.
52075
52076 2008-03-30  Bruno Haible  <bruno@clisp.org>
52077
52078         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52079         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52080
52081 2008-03-30  Bruno Haible  <bruno@clisp.org>
52082
52083         Avoid failure when attempting to return empty iconv results on some
52084         platforms.
52085         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52086         allocation, don't report ENOMEM when the resulting string is empty.
52087
52088 2008-03-30  Bruno Haible  <bruno@clisp.org>
52089
52090         Fix buffer overrun.
52091         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52092         Don't consider the width for tmp_length. Check count against tmp_length
52093         before doing the padding. Ensure enough allocation during padding.
52094
52095 2008-03-30  Eric Blake  <ebb9@byu.net>
52096
52097         strtod touchups.
52098         * lib/strtod.c (strtod): Avoid compiler warnings.
52099         Reported by Jim Meyering.
52100
52101 2008-03-30  Bruno Haible  <bruno@clisp.org>
52102
52103         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52104         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52105         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52106         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52107         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52108         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52109         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52110         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52111
52112         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52113         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52114         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52115         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52116         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52117         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52118         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52119         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52120
52121         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52122         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52123         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52124         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52125         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52126         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52127         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52128         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52129
52130         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52131         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52132
52133         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52134         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52135
52136         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52137         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52138
52139         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52141         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52142
52143         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52145         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52146
52147         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52148         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52149         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52150
52151         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52152         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52153         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52154
52155         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52156         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52158         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52159         (Depends-on): Add EOVERFLOW.
52160         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52161         (Depends-on): Add EOVERFLOW.
52162         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52163         (Depends-on): Add EOVERFLOW.
52164         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52165         (Depends-on): Add EOVERFLOW.
52166         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52167         (Depends-on): Add EOVERFLOW.
52168         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52169         (Depends-on): Add EOVERFLOW.
52170         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52171         (Depends-on): Add EOVERFLOW.
52172         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52173         (Depends-on): Add EOVERFLOW.
52174
52175         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52176         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52177         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52178
52179         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52181         * modules/snprintf (Depends-on): Add EOVERFLOW.
52182
52183         * lib/poll.c (EOVERFLOW): Remove fallback.
52184         * modules/poll (Depends-on): Add EOVERFLOW.
52185
52186         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52187         * modules/getugroups (Depends-on): Add EOVERFLOW.
52188
52189         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52190         * modules/getdelim (Depends-on): Add EOVERFLOW.
52191
52192         * lib/ftell.c (EOVERFLOW): Remove fallback.
52193         * modules/ftell (Depends-on): Add EOVERFLOW.
52194
52195         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52196         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52197         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52198
52199         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52200
52201         * modules/EOVERFLOW-tests: New file.
52202         * tests/test-EOVERFLOW.c: New file.
52203
52204         * modules/EOVERFLOW: New file.
52205         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52206
52207 2008-03-30  Bruno Haible  <bruno@clisp.org>
52208
52209         Fix bug introduced on 2007-06-10.
52210         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52211         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52212
52213 2008-03-30  Bruno Haible  <bruno@clisp.org>
52214
52215         Improve freadseek's efficiency after ungetc.
52216         * lib/freadseek.c: Include freadahead.h.
52217         (freadptrinc): New function, extracted from freadseek.
52218         (freadseek): Use it in a loop. Use freadahead to determine the number
52219         of loop iterations.
52220         * modules/freadseek (Depends-on): Add freadahead.
52221         (configure.ac): Require AC_C_INLINE.
52222
52223 2008-03-30  Bruno Haible  <bruno@clisp.org>
52224
52225         * lib/freadseek.c (freadseek): Don't ignore the return value of
52226         freadptr.
52227
52228 2008-03-29  Eric Blake  <ebb9@byu.net>
52229
52230         Add hex float support.
52231         * modules/strtod (Depends-on): Add c-ctype.
52232         (Link): Mention POW_LIB.
52233         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52234         whitespace between 'e' and exponent.
52235         * tests/test-strtod.c (main): Enable hex float tests.
52236         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52237         now provides.
52238
52239         Document various strtod bugs, with some fixes.
52240         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52241         "-0x", "inf", "nan", and hex constants.
52242         * doc/posix-functions/atof.texi (atof): Likewise.
52243         * modules/stdlib (Makefile.am): Support strtod.
52244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52245         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52246         detect additional strtod bugs.
52247         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52248         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52249         bool where appropriate.  Parse 'inf' and 'nan'.
52250         * tests/test-strtod.c: New file.
52251         * modules/strtod (Depends-on): Add stdbool, stdlib.
52252         (configure.ac): Turn on module indicator.
52253         * modules/strtod-tests: New module.
52254
52255 2008-03-29  Eric Blake  <ebb9@byu.net>
52256
52257         Fix ftell on mingw.
52258         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52259         * modules/ftell-tests (Depends-on): Add binary-io.
52260         * modules/ftello-tests (Depends-on): Likewise.
52261         * tests/test-ftell.c (main): Enhance test to cover behavior after
52262         ungetc.  Enforce binary mode.
52263         * tests/test-ftello.c (main): Likewise.
52264
52265         Pass test-freadseek on cygwin.
52266         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52267         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52268         ungetc buffer.
52269
52270         * tests/test-fflush2.c (main): Fix typo.
52271
52272 2008-03-29  Bruno Haible  <bruno@clisp.org>
52273
52274         * tests/test-fflush2.c (main): Temporarily disable the contents of
52275         this test.
52276         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52277         Reported by Eric Blake.
52278
52279 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52280
52281         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52282         (GC_SHA224_DIGEST_SIZE): Add.
52283
52284         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52285         (gc_hash_digest_length): Likewise.
52286         (gc_hash_buffer): Likewise.
52287
52288 2008-03-25  Bruno Haible  <bruno@clisp.org>
52289
52290         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52291         detail which gettext release to use.
52292         Reported by Simon Josefsson.
52293
52294 2008-03-26  Jim Meyering  <meyering@redhat.com>
52295
52296         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52297         * modules/gnumakefile (clean-GNUmakefile): Also, use
52298         test ... && ... || : syntax rather than if-then ... fi.
52299
52300         gnumakefile: Don't double-quote-expand $(VPATH) value.
52301         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52302
52303 2008-03-24  Eric Blake  <ebb9@byu.net>
52304
52305         Alter GNUmakefile to install into top directory.
52306         * modules/maintainer-makefile: Split, and add dependency...
52307         * modules/gnumakefile: to this new module.
52308         * build-aux/GNUmakefile: Move...
52309         * top/GNUmakefile: ...here.
52310         * build-aux/maint.mk: Move...
52311         * top/maint.mk: ...here.
52312         * MODULES.html.sh (Support for maintaining...): Document new
52313         module.
52314
52315 2008-03-23  Bruno Haible  <bruno@clisp.org>
52316
52317         * gnulib-tool: New options --vc-files, --no-vc-files.
52318         (func_usage): Document them.
52319         (vc_files): New variable.
52320         (func_import): Consider vc_files.
52321         (func_create_testdir): Set vc_files to empty.
52322         Suggested by Jim Meyering and Karl Berry.
52323
52324 2008-03-23  Bruno Haible  <bruno@clisp.org>
52325
52326         Fix regex compilation error on HP-UX 11.
52327         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52328         * modules/regex (Files): Add m4/mbstate_t.m4.
52329         Reported by Ton Voon <ton.voon@altinity.com>.
52330
52331 2008-03-23  Bruno Haible  <bruno@clisp.org>
52332
52333         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52334
52335 2008-03-23  Eric Blake  <ebb9@byu.net>
52336             Bruno Haible  <bruno@clisp.org>
52337
52338         Install files from top/ in the destination directory.
52339         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52340         augmentation also for the files from top/.
52341         (func_import, func_create_testdir): Rewrite file names:
52342         top/filename -> filename.
52343
52344 2008-03-23  Bruno Haible  <bruno@clisp.org>
52345
52346         Tweak "gnulib --version" output.
52347         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52348
52349 2008-03-23  Bruno Haible  <bruno@clisp.org>
52350
52351         Tweak "gnulib --version" output.
52352         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52353         rather than contents of ChangeLog, when possible.
52354
52355 2008-03-21  Eric Blake  <ebb9@byu.net>
52356
52357         More --version tweaks.
52358         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52359         date of last ChangeLog entry.
52360
52361 2008-03-21  Jim Meyering  <meyering@redhat.com>
52362
52363         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52364
52365 2008-03-20  Eric Blake  <ebb9@byu.net>
52366
52367         VPATH fix.
52368         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52369
52370 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52371
52372         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52373         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52374
52375 2008-03-20  Eric Blake  <ebb9@byu.net>
52376
52377         Sync GNUmakefile with coreutils.
52378         * build-aux/GNUmakefile (have-Makefile): Rename...
52379         (_have-Makefile): ...to this, for namespace consideration.
52380         (GNUmakefile.cfg): Include, if present.
52381         (_autoreconf): Define a default.
52382         (_is-dist-target): New rule for rebuilds to pick up intra-release
52383         version.
52384         (maint-cfg.mk): Rename...
52385         (cfg.mk): ...to this.
52386
52387 2008-03-18  Jim Meyering  <meyering@redhat.com>
52388
52389         New script and module: mktempd
52390         * MODULES.html.sh (maint+release support): Add mktempd.
52391         * build-aux/mktempd: New file.
52392         * modules/mktempd: New file.
52393
52394 2008-03-15  Jim Meyering  <meyering@redhat.com>
52395
52396         Undo last change.
52397         * lib/sha1.c, lib/md5.c: 63 != ~63.
52398         Reported by Andreas Schwab.
52399
52400         sha1.c, md5.c: Hoist a redundant expression.
52401         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52402         "ctx->buflen" only once, before calling *_process_block.
52403         * lib/md5.c (md5_process_bytes): Likewise.
52404
52405 2008-03-14  Eric Blake  <ebb9@byu.net>
52406
52407         Bump copyright year in files generated by gnulib-tool.
52408         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52409         gnulib-tool, rather than hard-coding it.
52410
52411         Fix 'gnulib-tool --version' output to work with git.
52412         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52413         (startup): ...here.
52414         (func_version): Use it to invoke git-version-gen, rather than
52415         relying on CVS keyword expansion.  Modernize wording.
52416         (cvsdatestamp, last_checkin_date, version): Kill unused
52417         variables.
52418
52419 2008-03-12  Jim Meyering  <meyering@redhat.com>
52420
52421         Recognize optional cast of the argument to free.
52422         * build-aux/useless-if-before-free: Update regexps.
52423
52424         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52425
52426 2008-03-11  Bruno Haible  <bruno@clisp.org>
52427
52428         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52429         by a single package.
52430         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52431         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52432         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52433         Reported by Sam Steingold <sds@gnu.org>.
52434
52435 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52436
52437         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52438         repositories.
52439
52440 2008-03-11  Bruno Haible  <bruno@clisp.org>
52441
52442         Avoid conflicts between local macro definitions.
52443         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52444         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52445
52446 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52447             Bruno Haible  <bruno@clisp.org>
52448
52449         Make va_copy work with some version of xlc on AIX 5.1.
52450         * lib/stdarg.in.h: New file.
52451         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52452         On AIX, use a <stdarg.h> file substitute.
52453         * modules/stdarg (Files): Add lib/stdarg.in.h.
52454         (Depends-on): Add include_next.
52455         (Makefile.am): Build a stdarg.h substitute if requested.
52456         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52457
52458 2008-03-10  Bruno Haible  <bruno@clisp.org>
52459
52460         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52461         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52462         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52463
52464 2008-03-10  Bruno Haible  <bruno@clisp.org>
52465
52466         * modules/stdlib (Depends-on): Add include_next, remove
52467         absolute-header.
52468
52469 2008-03-09  Bruno Haible  <bruno@clisp.org>
52470
52471         * lib/freadahead.h (freadahead): Document more precisely.
52472         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52473         the sum of both buffer sizes.
52474         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52475         * NEWS: Document the change.
52476
52477 2008-03-09  Bruno Haible  <bruno@clisp.org>
52478
52479         Extend freadptr to return also the buffer size.
52480         * lib/freadptr.h (freadptr): Add sizep argument.
52481         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52482         (freadptr): Add sizep argument. Determine buffer size like freadahead
52483         does.
52484         * tests/test-freadptr.c: Don't include freadahead.h.
52485         (main): Adapt for new calling convention of freadptr.
52486         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52487         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52488         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52489         tests/test-freadptr2.sh.
52490         (Depends): Remove freadahead.
52491         (TESTS): Add test-freadptr2.sh.
52492         (check_PROGRAMS): Add test-freadptr2.
52493
52494 2008-03-09  Bruno Haible  <bruno@clisp.org>
52495
52496         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52497         Report and solution by Simon Josefsson.
52498
52499 2008-03-06  Bruno Haible  <bruno@clisp.org>
52500
52501         Make fflush after ungetc work on BSD platforms.
52502         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52503         * tests/test-fflush2.c: New file.
52504         * tests/test-fflush2.sh: New file.
52505         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52506         tests/test-fflush2.c.
52507         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52508         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52509
52510 2008-03-06  Eric Blake  <ebb9@byu.net>
52511
52512         Likewise for ftello.
52513         * modules/ftello (Dependencies): Add extensions.
52514         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52515
52516 2008-03-06  Bruno Haible  <bruno@clisp.org>
52517
52518         * modules/fseeko (Dependencies): Add extensions.
52519         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52520         Needed on glibc systems.
52521
52522 2008-03-06  Bruno Haible  <bruno@clisp.org>
52523
52524         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52525         email address.
52526         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52527
52528 2008-03-06  Bruno Haible  <bruno@clisp.org>
52529
52530         * users.txt: Add libgnupdf.
52531
52532 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52533
52534         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52535         (Header File Substitutes, Function Substitutes,
52536         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52537         (Build robot for gnulib): Fix typo.
52538
52539 2008-03-06  Bruno Haible  <bruno@clisp.org>
52540
52541         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52542         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52543
52544 2008-03-06  Bruno Haible  <bruno@clisp.org>
52545
52546         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52547         * doc/gnulib.texi: Include it.
52548
52549 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52550
52551         * modules/func (License): Change license to unlimited; there was
52552         no LGPL parts in the module anyway.
52553
52554 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52555
52556         * modules/__func__: Renamed to modules/func.
52557         * modules/__func__-tests: Renamed to modules/func-tests.
52558         * tests/test-__func__.c: Renamed to tests/test-func.c.
52559         * m4/__func__.m4: Renamed to m4/func.m4.
52560         * doc/gnulib.texi (__func__): Section renamed to func.
52561         Suggested by Eric Blake <ebb9@byu.net>.
52562
52563 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52564
52565         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52566         about __func__.  Make example self-contained.  Suggested by Eric
52567         Blake <ebb9@byu.net>.
52568
52569         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52570         Suggested by Eric Blake <ebb9@byu.net>.
52571
52572 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52573
52574         * modules/__func__: New file.
52575         * modules/__func__-tests: New file.
52576         * tests/test-__func__.c: New file.
52577         * m4/__func__.m4: New file.
52578         * doc/gnulib.texi (__func__): Document __func__ module.
52579
52580 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52581
52582         * modules/byteswap (License): Re-license as LGPLv2+.
52583
52584 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52585
52586         * doc/Makefile: Add pdf target.
52587
52588 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52589
52590         * modules/inline (License): Use 'unlimited', since there are only
52591         *.m4 files in this module.
52592
52593 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52594             Bruno Haible  <bruno@clisp.org>
52595
52596         Add support for HP C 7.1 on OpenVMS 8.3.
52597         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52598
52599 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52600
52601         Update VMS specifics.
52602         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52603
52604 2008-03-02  Jim Meyering  <meyering@redhat.com>
52605
52606         Remove the last dependency on the "free" module.
52607         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52608         Reported by Bob Proulx.
52609
52610         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52611
52612         Remove useless "if" tests before free.  Deprecate "free" module.
52613         * doc/posix-functions/free.texi: Mention that this
52614         module is no longer useful.
52615         * modules/free (Notice): Say this module is obsolete.
52616         * modules/readutmp (Depends-on): Remove free.
52617         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52618         * lib/putenv.c (putenv): Likewise.
52619         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52620         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52621         * tests/test-c-strcasestr.c (main): Likewise.
52622         * tests/test-c-strstr.c (main): Likewise.
52623         * tests/test-mbscasestr1.c (main): Likewise.
52624         * tests/test-mbscasestr2.c (main): Likewise.
52625         * tests/test-mbsstr1.c (main): Likewise.
52626         * tests/test-mbsstr2.c (main): Likewise.
52627         * tests/test-memmem.c (main): Likewise.
52628         * tests/test-strcasestr.c (main): Likewise.
52629         * tests/test-striconv.c (main): Likewise.
52630         * tests/test-striconveh.c (main): Likewise.
52631         * tests/test-striconveha.c (main): Likewise.
52632         * tests/test-strstr.c (main): Likewise.
52633
52634         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52635
52636         bootstrap: sync from coreutils again
52637         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52638
52639 2008-03-01  Jim Meyering  <meyering@redhat.com>
52640
52641         bootstrap: sync from coreutils
52642         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52643         also when the target doesn't exist.
52644
52645 2008-03-01  Eric Blake  <ebb9@byu.net>
52646
52647         Fix bugs in last patch.
52648         * lib/memchr2.c (memchr2): Fix typo.
52649         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52650         extension.
52651         Reported by Bruce Korb.
52652
52653         New module 'memchr2'.
52654         * modules/memchr2: New file.
52655         * modules/memchr2-tests: Likewise.
52656         * lib/memchr2.h: Likewise.
52657         * lib/memchr2.c: Likewise, based on memchr.c.
52658         * tests/test-memchr2.c: New test.
52659         * MODULES.html.sh (String handling): Add memchr2.
52660
52661 2008-02-29  Bruno Haible  <bruno@clisp.org>
52662
52663         * modules/freadseek-tests: New file.
52664         * tests/test-freadseek.sh: New file.
52665         * tests/test-freadseek.c: New file.
52666
52667         New module 'freadseek'.
52668         * modules/freadseek: New file.
52669         * lib/freadseek.h: New file.
52670         * lib/freadseek.c: New file.
52671         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52672
52673 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52674
52675         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52676         wydawca.
52677
52678         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52679         program_invocation_name and program_invocation_short_name are
52680         present.
52681
52682 2008-02-28  Bruno Haible  <bruno@clisp.org>
52683
52684         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52685         * tests/test-freadptr.sh: Also test non-seekable stdin.
52686
52687 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52688
52689         * build-aux/bootstrap (source_base, m4_base)
52690         (doc_base, tests_base): New variables.
52691         (gnulib_tool_options): Do not hardcode base directories, use
52692         the above variables instead.
52693
52694 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52695
52696         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52697
52698 2008-02-28  Bruno Haible  <bruno@clisp.org>
52699
52700         * modules/freadptr-tests: New file.
52701         * tests/test-freadptr.sh: New file.
52702         * tests/test-freadptr.c: New file.
52703
52704         New module 'freadptr'.
52705         * modules/freadptr: New file.
52706         * lib/freadptr.h: New file.
52707         * lib/freadptr.c: New file.
52708         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52709
52710 2008-02-26  Karl Berry  <karl@freefriends.org>
52711
52712         Sync from Libtool:
52713         * libltdl/argz.c (argz_add, argz_count): New functions.
52714         * libltdl/argz.in.h: Declare them.
52715         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52716
52717 2008-02-22  Bruno Haible  <bruno@clisp.org>
52718
52719         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52720         is a pointer type.  Needed for HP-UX 10.
52721         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52722         * doc/posix-functions/gmtime_r.texi: Likewise.
52723         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52724
52725 2008-02-24  Bruno Haible  <bruno@clisp.org>
52726
52727         * modules/environ-tests: New file.
52728         * tests/test-environ.c: New file.
52729
52730         New module 'environ'.
52731         * modules/environ: New file.
52732         * lib/unistd.in.h (environ): New declaration.
52733         * m4/environ.m4: New file.
52734         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52735         after use.
52736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52737         HAVE_DECL_ENVIRON.
52738         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52739         HAVE_DECL_ENVIRON.
52740         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52741         wrong claim that 'environ' is missing on some systems.
52742         * modules/execute (Depends-on): Add environ.
52743         * lib/execute.c (environ): Remove fallback declaration.
52744         * modules/pipe (Depends-on): Add environ.
52745         * lib/pipe.c (environ): Remove fallback declaration.
52746         * modules/setenv (Depends-on): Add environ.
52747         * lib/setenv.c (environ): Remove fallback declaration.
52748         * modules/unsetenv (Depends-on): Add environ.
52749         * lib/unsetenv.c (environ): Remove fallback declaration.
52750         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52751         m4/environ.m4.
52752         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52753         (gl_PREREQ_UNSETENV): Likewise.
52754
52755 2008-02-24  Bruno Haible  <bruno@clisp.org>
52756
52757         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52758
52759 2008-02-20  Bob Proulx  <bob@proulx.com>
52760
52761         Enable use of older two part flavor 'git describe'.
52762         * build-aux/git-version-gen: If using the older two part flavor of
52763         git version then recreate the third part now present in the
52764         newer three part flavor of git describe.
52765
52766 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52767
52768         * lib/fts.c (fts_build): Typo correction to comment.
52769
52770 2008-02-17  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52773         generating no-op conflicts.
52774
52775 2008-02-17  Bruno Haible  <bruno@clisp.org>
52776
52777         Speed up by 10%.
52778         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52779         result_entries, rather than an index-based loop.
52780
52781 2008-02-17  Bruno Haible  <bruno@clisp.org>
52782
52783         Speed up by 25%.
52784         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52785         'hashcode_cached'.
52786         (entry_create): New function.
52787         (entry_hashcode): Use the cached hashcode if possible.
52788         (read_changelog_file, try_split_merged_entry): Use entry_create.
52789
52790 2008-02-17  Bruno Haible  <bruno@clisp.org>
52791
52792         Speed up from O(n^2) to O(n) for long ChangeLog files.
52793         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52794         (read_changelog_file): Change implementation of entries_reversed list
52795         to rbtreehash.
52796         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52797
52798 2008-02-17  Bruno Haible  <bruno@clisp.org>
52799
52800         New option --split-merged-entry.
52801         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52802         (find_paragraph_end, try_split_merged_entry): New functions.
52803         (long_options): Add option --split-merged-entry.
52804         (usage): Document option --split-merged-entry.
52805         (main): Implement option --split-merged-entry.
52806         Reported by Eric Blake.
52807
52808 2008-02-17  Bruno Haible  <bruno@clisp.org>
52809
52810         * lib/git-merge-changelog.c: Include c-strstr.h.
52811         (main): Support the "git pull --rebase" situation.
52812         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52813         Reported by Eric Blake.
52814
52815 2008-02-16  Eric Blake  <ebb9@byu.net>
52816
52817         Avoid doubling \ in common case of "c-maybe" quoting style.
52818         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52819         eliding outer quotes.
52820         * lib/quotearg.h: Document this.
52821         * tests/test-quotearg.c (result_strings, inputs, results_g)
52822         (flag_results, locale_results): Test it by adding a new string to
52823         each test group.
52824         (compare_strings): Test new string.
52825
52826 2008-02-13  Eric Blake  <ebb9@byu.net>
52827
52828         Avoid trigraph quoting in default output.
52829         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52830         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52831         unless explicitly requested.
52832         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52833
52834 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52835
52836         Don't rely on signed integer overflowing to negative value.
52837         * lib/getugroups.c (getugroups): Include <limits.h>.
52838         Instead, compare against INT_MAX, and increment only if the test passes.
52839
52840 2008-02-13  Jim Meyering  <meyering@redhat.com>
52841         and Eric Blake  <ebb9@byu.net>
52842
52843         Avoid shadowing warning and compile errors on Linux.
52844         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52845         forwarding macros on Linux.
52846         (dcgettext): Define a stub, for Linux.
52847         (results_g, main): Avoid warnings.
52848
52849 2008-02-12  Eric Blake  <ebb9@byu.net>
52850
52851         Silence warning in last patch.
52852         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52853
52854         Quotearg part 4: add tests, fix c-maybe colon quoting.
52855         * lib/quotearg.h: Improve documentation.
52856         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52857         escapes when adding outer quotes.  When quoting trigraphs, use
52858         valid C notation.  When quoting NUL, omit extra characters if next
52859         character is not digit.  Alter prototype.
52860         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52861         callers.
52862         * modules/quotearg-tests: New module.
52863         * tests/test-quotearg.c: New test.
52864
52865 2008-02-07  Eric Blake  <ebb9@byu.net>
52866
52867         Quotearg part 3: add flag to control outer quote elision.
52868         * lib/quotearg.h (c_maybe_quoting_style): New style.
52869         (enum quoting_flags): Better documentation of flags.
52870         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52871         c-maybe style.
52872         (quotearg_buffer_restyled): Handle new flag to elide outer
52873         quotes.
52874
52875         Quotearg part 2: add flag that can control NUL elision.
52876         * lib/quotearg.h (set_quoting_flags): New prototype.
52877         * lib/quotearg.c (struct quoting_options): Add flag field.
52878         (set_quoting_flags): New function.
52879         (quotearg_buffer_restyled): Add flags parameter.
52880         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52881         (quotearg_n_options): Set the flag, since length cannot be
52882         returned.
52883         (quoting_options_from_style): Default flags correctly.
52884
52885         Quotearg part 1: more wrappers, restore quotearg_char state.
52886         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52887         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52888         (quotearg_colon_mem): New wrappers.
52889         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52890         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52891         functions.
52892         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52893         (quotearg_colon_mem): New functions.
52894
52895 2008-02-11  Bruno Haible  <bruno@clisp.org>
52896
52897         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52898         library in the current directory: it does not work with parallel make.
52899         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52900
52901 2008-02-11  Bruno Haible  <bruno@clisp.org>
52902
52903         * .gitattributes: New file.
52904
52905 2008-02-11  Jim Meyering  <meyering@redhat.com>
52906
52907         useless-if-before-free: Fix reversed exit values.
52908         * build-aux/useless-if-before-free: Use correct values
52909         for EXIT_MATCH and EXIT_NO_MATCH.
52910
52911         * build-aux/useless-if-before-free: Close stdout carefully.
52912
52913 2008-02-10  Bruno Haible  <bruno@clisp.org>
52914
52915         New module 'git-merge-changelog'.
52916         * modules/git-merge-changelog: New file.
52917         * lib/git-merge-changelog.c: New file.
52918
52919 2008-02-10  Jim Meyering  <meyering@redhat.com>
52920
52921         useless-if-before-free: New option: --list (-l).
52922
52923         useless-if-before-free: Don't exit immediately upon open failure.
52924         * build-aux/useless-if-before-free: Exit 2 for errors.
52925         Upon failure to open a file, don't exit immediately.
52926         Rather, just warn and continue with any remaining files.
52927
52928 2008-02-10  Bruno Haible  <bruno@clisp.org>
52929
52930         New abstract list operation 'node_set_value'.
52931         * lib/gl_list.h (gl_list_node_set_value): New function.
52932         (struct gl_list_implementation): New field node_set_value.
52933         * lib/gl_list.c (gl_list_node_set_value): New function.
52934         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52935         (gl_array_list_implementation): Update.
52936         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52937         (gl_carray_list_implementation): Update.
52938         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52939         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52940         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52941         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52942         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52943         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52944         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52945         Update.
52946         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52947         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52948         (gl_sublist_list_implementation): Update.
52949
52950 2008-02-10  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52953         Needed when ELEMENT is #defined to 'some_type *'.
52954
52955 2008-02-10  Jim Meyering  <meyering@redhat.com>
52956
52957         New script and module: useless-if-before-free
52958         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52959         * build-aux/useless-if-before-free: New file.
52960         * modules/useless-if-before-free: New file.
52961
52962         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52963
52964         xstrtol_error: Fix typo.
52965         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52966         s/exit_failure/exit_status/.
52967
52968 2008-02-09  Jim Meyering  <meyering@redhat.com>
52969
52970         New script and module: gitlog-to-changelog
52971         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52972         * modules/gitlog-to-changelog: New file.
52973         * build-aux/gitlog-to-changelog: New file.
52974
52975 2008-02-08  Jim Meyering  <meyering@redhat.com>
52976
52977         Avoid two "parameter unused" warnings.
52978         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52979         Mark "st" as used.
52980
52981         Use "git COMMAND", not "git-COMMAND".
52982         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52983         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52984         * build-aux/git-version-gen: Use "git status", not "git-status".
52985
52986 2008-02-07  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52989         Avoids a crash on Windows Vista.
52990         Reported by Adam Strzelecki <ono@java.pl> via
52991         Simon Josefsson <simon@josefsson.org>.
52992
52993 2008-02-06  Bruno Haible  <bruno@clisp.org>
52994
52995         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52996         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52997         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52999         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53000         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53001         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53002         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53003         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53004         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53005         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53006         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53007         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53008         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53009         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53010         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53011         left-adjust flag.
53012         * tests/test-snprintf-posix.h (test_function): Likewise.
53013         * tests/test-sprintf-posix.h (test_function): Likewise.
53014         * tests/test-vasprintf-posix.c (test_function): Likewise.
53015         * doc/posix-functions/fprintf.texi: Update.
53016         * doc/posix-functions/printf.texi: Update.
53017         * doc/posix-functions/snprintf.texi: Update.
53018         * doc/posix-functions/sprintf.texi: Update.
53019         * doc/posix-functions/vfprintf.texi: Update.
53020         * doc/posix-functions/vprintf.texi: Update.
53021         * doc/posix-functions/vsnprintf.texi: Update.
53022         * doc/posix-functions/vsprintf.texi: Update.
53023         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53024
53025 2008-02-06  Bruno Haible  <bruno@clisp.org>
53026
53027         Fix bug introduced on 2008-01-26.
53028         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53029
53030 2008-02-06  Bruno Haible  <bruno@clisp.org>
53031
53032         Fix bug introduced on 2007-06-10.
53033         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53034         !NEED_PRINTF_FLAG_ZERO.
53035
53036 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53037
53038         getloadavg: use libperfstat on AIX5
53039         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53040
53041 2008-02-03  Bruno Haible  <bruno@clisp.org>
53042
53043         * lib/diffseq.h: Add comments about required #includes.
53044         Reported by Michael Biggs <gnulib@doubleplum.net>.
53045
53046 2008-02-01  Bruno Haible  <bruno@clisp.org>
53047
53048         * users.txt: Add gnuit.
53049
53050 2008-01-31  Bruno Haible  <bruno@clisp.org>
53051
53052         * lib/md4.c (set_uint32): Mark as inline.
53053         * lib/md5.c (set_uint32): Likewise.
53054         * lib/sha1.c (set_uint32): Likewise.
53055         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53056         * m4/md5.m4 (gl_MD5): Likewise.
53057         * m4/sha1.m4 (gl_SHA1): Likewise.
53058
53059 2008-01-31  Jim Meyering  <meyering@redhat.com>
53060
53061         Use "sizeof VAR", rather than a literal "4".
53062         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53063         * lib/md4.c (md4_read_ctx): Likewise.
53064         * lib/sha1.c (sha1_read_ctx): Likewise.
53065
53066 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53067
53068         * tests/test-sha1.c: New file, based on test-md5.c.
53069
53070         * modules/crypto/sha1-tests: New file.
53071
53072 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53073
53074         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53075
53076 2008-01-31  Jim Meyering  <meyering@redhat.com>
53077
53078         Prefer "sizeof v" over the equivalent "4".
53079         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53080         * lib/md5.c (set_uint32): Likewise.
53081         * lib/sha1.c (set_uint32): Likewise.
53082
53083 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53084
53085         * lib/sha1.c (set_uint32): Mark function as static.
53086
53087 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53088
53089         md2: clarify comments to say that alignment is not required.
53090         * lib/md2.h: Remove warning about alignment in comment.
53091         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53092         never been required.
53093
53094 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53095
53096         md4: adapt alignment constraint fix from sha1.
53097         * lib/md4.c (set_uint32): New function, from sha1.c
53098         (md4_read_ctx): Use it.
53099         (md4_finish_ctx): Doc fix.
53100         * lib/md4.h: Doc fix.
53101
53102 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53103
53104         md5: adapt alignment constraint fix from sha1.
53105         * lib/md5.c (set_uint32): New function, from sha1.c
53106         (md5_read_ctx): Use it.
53107         (md5_finish_ctx): Doc fix.
53108         * lib/md5.h: Doc fix.
53109
53110 2008-01-30  Peter Palfrader  <weasel@debian.org>
53111
53112         sha1: remove the result buffer alignment constraint
53113         * lib/sha1.c (set_uint32): New function.
53114         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53115         constraint.
53116         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53117         * lib/sha1.h: Likewise.
53118
53119 2008-01-30  Andreas Schwab  <schwab@suse.de>
53120             Bruno Haible  <bruno@clisp.org>
53121
53122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53123         correct definition of LDBL_MIN_EXP.
53124
53125 2008-01-30  Karl Berry  <karl@gnu.org>
53126
53127         * config/srclist-update: try to preserve x bit on updates.
53128         * config/srclistvars.sh: update for karl.
53129
53130 2008-01-29  Jim Meyering  <meyering@redhat.com>
53131
53132         vasnprintf.c: Avoid warning about unused label
53133         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53134         "overflow" label definition and associated code with the
53135         same cpp condition that guards the sole use of that label.
53136
53137 2008-01-26  Bruno Haible  <bruno@clisp.org>
53138
53139         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53140         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53141         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53142         * lib/isnanl-nolibm.h (isnanl): Likewise.
53143         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53144
53145 2008-01-26  Bruno Haible  <bruno@clisp.org>
53146
53147         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53148         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53149
53150 2008-01-26  Bruno Haible  <bruno@clisp.org>
53151
53152         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53153         GCC >= 4.0 built-in.
53154         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53155
53156 2008-01-26  Bruno Haible  <bruno@clisp.org>
53157
53158         Rename isnan, applicable to 'double' only, to isnand.
53159         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53160         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53161         (configure.ac): Update.
53162         (Include): Replace "isnan.h" with "isnand.h".
53163         * m4/isnand.m4: Renamed from m4/isnan.m4.
53164         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53165         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53166         instead of isnan.c.
53167         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53168         instead of HAVE_ISNAN_IN_LIBC.
53169         (isnand): Renamed from isnan.
53170         * lib/isnand.c: New file.
53171         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53172         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53173         (Makefile.am): Update.
53174         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53175         Include isnand.h instead of isnan.h.
53176         (main): Test isnand instead of isnan.
53177         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53178         isnan-nolibm.
53179         * modules/frexp (Depends-on): Likewise.
53180         * modules/frexp-tests (Depends-on): Likewise.
53181         * modules/frexp-nolibm (Depends-on): Likewise.
53182         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53183         * modules/isfinite (Depends-on): Likewise.
53184         * modules/round-tests (Depends-on): Likewise.
53185         * modules/signbit (Depends-on): Likewise.
53186         * modules/signbit-tests (Depends-on): Likewise.
53187         * modules/snprintf-posix (Depends-on): Likewise.
53188         * modules/sprintf-posix (Depends-on): Likewise.
53189         * modules/trunc-tests (Depends-on): Likewise.
53190         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53191         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53192         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53193         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53194         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53195         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53196         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53197         * modules/vasnprintf-posix (Depends-on): Likewise.
53198         * modules/vasprintf-posix (Depends-on): Likewise.
53199         * modules/vfprintf-posix (Depends-on): Likewise.
53200         * modules/vsnprintf-posix (Depends-on): Likewise.
53201         * modules/vsprintf-posix (Depends-on): Likewise.
53202         * lib/frexp.c: Include isnand.h instead of isnan.h.
53203         (ISNAN): Set to isnand instead of isnan.
53204         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53205         (gl_isfinited): Use isnand instead of isnan.
53206         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53207         (gl_signbitd): Use isnand instead of isnan.
53208         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53209         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53210         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53211         (main): Use isnand instead of isnan.
53212         * tests/test-round1.c: Include isnand.h.
53213         (main): Use isnand instead of isnan.
53214         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53215         (ISNAN): Set to isnand instead of isnan.
53216         * tests/test-trunc1.c: Include isnand.h.
53217         (main): Use isnand instead of isnan.
53218         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53219         (equal): Use isnand instead of isnan.
53220         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53221         isnand-nolibm.
53222         * NEWS: Mention the change.
53223
53224 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53225             Bruno Haible  <bruno@clisp.org>
53226
53227         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53228         the GCC builtins for signbits are present and set
53229         REPLACE_SIGNBIT_USING_GCC if so.
53230         * lib/math.in.h (signbit): Define using GCC builtins if
53231         REPLACE_SIGNBIT_USING_GCC is set.
53232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53233         REPLACE_SIGNBIT_USING_GCC.
53234         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53235
53236 2008-01-25  Jim Meyering  <meyering@redhat.com>
53237
53238         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53239         * lib/poll.c: Include <config.h>, not "config.h".
53240         * tests/test-getaddrinfo.c: Likewise.
53241
53242 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53243
53244         * modules/sockets-tests: New file.
53245
53246 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53247
53248         * modules/sockets: New module, can be used to call WSA_Startup and
53249         WSA_Cleanup when needed.
53250
53251         * lib/sockets.h, lib/sockets.c: New files.
53252
53253         * m4/sockets.m4: New file.
53254
53255         * tests/test-sockets.c: New file.
53256
53257 2008-01-19  Bruno Haible  <bruno@clisp.org>
53258
53259         * doc/posix-headers: Renamed from doc/headers.
53260         * doc/posix-functions: Renamed from doc/functions.
53261         * doc/gnulib.texi: Update.
53262
53263 2008-01-19  Bruno Haible  <bruno@clisp.org>
53264
53265         * doc/glibc-functions/strcasestr.texi: Include contents of
53266         doc/functions/strcasestr.texi, fixing the list of platforms.
53267         * doc/functions/strcasestr.texi: Remove file.
53268
53269 2008-01-19  Bruno Haible  <bruno@clisp.org>
53270
53271         * doc/glibc-functions/memmem.texi: Include contents of
53272         doc/functions/memmem.texi.
53273         * doc/functions/memmem.texi: Remove file.
53274
53275 2008-01-18  Bruno Haible  <bruno@clisp.org>
53276
53277         * doc/glibc-functions/*.texi: New files.
53278         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53279         to use the new files.
53280
53281 2008-01-17  Bruno Haible  <bruno@clisp.org>
53282
53283         * tests/test-gethostname.c (main): Fix printf statement.
53284
53285 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53286
53287         * modules/gethostname-tests: New file.
53288
53289         * tests/test-gethostname.c: New file.
53290
53291 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53292
53293         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53294         used by the UNAME case.  Reported by Bruno Haible
53295         <bruno@clisp.org>.
53296
53297 2008-01-17  Eric Blake  <ebb9@byu.net>
53298
53299         Convert c-strcasestr to be more efficient.
53300         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53301         (Depends-on): Add c-strcase, remove malloca, strnlen.
53302         * tests/test-c-strcasestr.c (main): Enhance test.
53303         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53304
53305 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53306
53307         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53308         Use it in creating po/Makevars.
53309
53310 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53311
53312         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53313         Applications that requires it should initialize libgcrypt
53314         manually.
53315
53316 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53317
53318         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53319
53320 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53321
53322         Fix problem with getdate on mingw32 reported by Simon Josefsson
53323         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53324         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53325         tzname", when deciding whether to declare tzname.
53326         * lib/strftime.c (tzname): Likewise.
53327
53328 2008-01-15  Bruno Haible  <bruno@clisp.org>
53329
53330         Work around a MacOS X 10.5 bug in frexpl().
53331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53332         * doc/functions/frexpl.texi: Document the bug.
53333         Reported by Elias Pipping <pipping@gentoo.org>.
53334
53335 2008-01-14  Eric Blake  <ebb9@byu.net>
53336
53337         Touch up previous patch.
53338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53339         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53340
53341         Convert strcasestr module to use Two-Way algorithm.
53342         * modules/strcasestr-simple: New module, based on the old
53343         strcasestr, but with Two-Way rather than KMP.
53344         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53345         * lib/string.in.h (rpl_strcasestr): Declare.
53346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53347         performance.
53348         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53349         * modules/string (Makefile.am): Support strcasestr.
53350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53351         * modules/strcasestr-tests (Depends-on): Check for alarm.
53352         * tests/test-strcasestr.c: Augment test.
53353         * lib/str-two-way.h: Clean up stray macro.
53354         * NEWS: Document new module.
53355         * MODULES.html.sh (string handling): Likewise.
53356         * doc/functions/strcasestr.texi: New file.
53357         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53358         here, since it is not a POSIX function.
53359
53360 2008-01-14  Colin Watson  <cjwatson@debian.org>
53361             Bruno Haible  <bruno@clisp.org>
53362
53363         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53364         works fine; if not, set REPLACE_STRSIGNAL.
53365         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53367         REPLACE_STRSIGNAL.
53368         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53369         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53370         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53371
53372 2008-01-14  Bruno Haible  <bruno@clisp.org>
53373
53374         * modules/strsignal (Include): Change to <string.h>.
53375
53376 2008-01-14  Colin Watson  <cjwatson@debian.org>
53377
53378         * modules/argp (Notice): Add a notice recommending to change
53379         XGETTEXT_OPTIONS.
53380         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53381
53382 2008-01-13  Colin Watson  <cjwatson@debian.org>
53383
53384         * modules/strsignal-tests: New file.
53385         * tests/test-strsignal.c: New file.
53386
53387         * lib/strsignal.c: New file, from glibc with modifications.
53388         * lib/siglist.h: New file, from glibc with modifications.
53389         * lib/string.in.h (strsignal): New declaration.
53390         * m4/strsignal.m4: New file.
53391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53392         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53393         * modules/strsignal: New file.
53394         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53395         HAVE_DECL_STRSIGNAL.
53396
53397 2008-01-13  Bruno Haible  <bruno@clisp.org>
53398
53399         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53400         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53401         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53402         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53403
53404 2008-01-13  Bruno Haible  <bruno@clisp.org>
53405
53406         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53407         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53408         * lib/argp.h (__attribute__): Likewise.
53409         * lib/c-stack.c (__attribute__): Likewise.
53410         * lib/error.h (__attribute__): Likewise.
53411         * lib/fts.c (__attribute__): Likewise.
53412         * lib/openat.h (__attribute__): Likewise.
53413         * lib/stdio.in.h (__attribute__): Likewise.
53414         * lib/string.in.h (__attribute__): Likewise.
53415         * lib/utimens.c (__attribute__): Likewise.
53416         * lib/vasnprintf.h (__attribute__): Likewise.
53417         * lib/xalloc.h (__attribute__): Likewise.
53418         * lib/xprintf.h (__attribute__): Likewise.
53419         * lib/xstrtol.h (__attribute__): Likewise.
53420         * lib/xvasprintf.h (__attribute__): Likewise.
53421
53422 2008-01-12  Bruno Haible  <bruno@clisp.org>
53423
53424         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53425         * doc/glibc-headers/a.out.texi: New file.
53426         * doc/glibc-headers/aliases.texi: New file.
53427         * doc/glibc-headers/alloca.texi: New file.
53428         * doc/glibc-headers/ar.texi: New file.
53429         * doc/glibc-headers/argp.texi: New file.
53430         * doc/glibc-headers/argz.texi: New file.
53431         * doc/glibc-headers/byteswap.texi: New file.
53432         * doc/glibc-headers/crypt.texi: New file.
53433         * doc/glibc-headers/endian.texi: New file.
53434         * doc/glibc-headers/envz.texi: New file.
53435         * doc/glibc-headers/err.texi: New file.
53436         * doc/glibc-headers/error.texi: New file.
53437         * doc/glibc-headers/execinfo.texi: New file.
53438         * doc/glibc-headers/fpu_control.texi: New file.
53439         * doc/glibc-headers/fstab.texi: New file.
53440         * doc/glibc-headers/fts.texi: New file.
53441         * doc/glibc-headers/getopt.texi: New file.
53442         * doc/glibc-headers/ieee754.texi: New file.
53443         * doc/glibc-headers/ifaddrs.texi: New file.
53444         * doc/glibc-headers/libintl.texi: New file.
53445         * doc/glibc-headers/mcheck.texi: New file.
53446         * doc/glibc-headers/mntent.texi: New file.
53447         * doc/glibc-headers/obstack.texi: New file.
53448         * doc/glibc-headers/paths.texi: New file.
53449         * doc/glibc-headers/printf.texi: New file.
53450         * doc/glibc-headers/pty.texi: New file.
53451         * doc/glibc-headers/resolv.texi: New file.
53452         * doc/glibc-headers/shadow.texi: New file.
53453         * doc/glibc-headers/sysexits.texi: New file.
53454         * doc/glibc-headers/ttyent.texi: New file.
53455
53456 2008-01-12  Jim Meyering  <meyering@redhat.com>
53457
53458         announce-gen: emit Gnulib's git-based version string.
53459         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53460         New option --gnulib-version=V, where V is expected to be
53461         the output of running git describe in the gnulib directory.
53462         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53463         not useful, and plan to stop publishing an xdelta file with each
53464         coreutils release.
53465
53466         * build-aux/announce-gen: Also check for lzma-compressed files.
53467
53468 2008-01-11  Bruno Haible  <bruno@clisp.org>
53469
53470         * tests/test-memmem.c (main): Increase maximum allowed time.
53471         * tests/test-strstr.c (main): Likewise.
53472
53473 2008-01-11  Bruno Haible  <bruno@clisp.org>
53474
53475         * doc/functions/memmem.texi: Add more precisions about platforms.
53476         * doc/functions/strstr.texi: Likewise.
53477
53478 2008-01-10  Eric Blake  <ebb9@byu.net>
53479
53480         * m4/strstr.m4: Delete cruft from copy-n-paste.
53481         Reported by Bruno Haible.
53482
53483 2008-01-10  Bruno Haible  <bruno@clisp.org>
53484
53485         Make c-strstr rely on strstr.
53486         * lib/c-strstr.c: Don't include str-kmp.h.
53487         (c_strstr): Define in terms of strstr.
53488         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53489         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53490
53491 2008-01-10  Bruno Haible  <bruno@clisp.org>
53492
53493         * doc/gnulib.texi (String Functions in C Locale): New section.
53494         * doc/c-ctype.texi: New file.
53495         * doc/c-strcase.texi: New file.
53496         * doc/c-strcaseeq.texi: New file.
53497         * doc/c-strcasestr.texi: New file.
53498         * doc/c-strstr.texi: New file.
53499         * doc/c-strtod.texi: New file.
53500         * doc/c-strtold.texi: New file.
53501
53502 2008-01-10  Eric Blake  <ebb9@byu.net>
53503
53504         * lib/relocatable.h: Fix a comment.
53505
53506 2008-01-10  Eric Blake  <ebb9@byu.net>
53507
53508         Share two-way algorithm.
53509         * lib/str-two-way.h: New file, merged from...
53510         * lib/memmem.c: ...here...
53511         * lib/strstr.c: ...and here.
53512         * modules/memmem (Files): Use it.
53513         * modules/strstr (Files): Likewise.
53514
53515         Avoid quadratic strstr implementations.
53516         * lib/strstr.c: New file.
53517         * m4/strstr.m4: Likewise.
53518         * modules/strstr: Likewise.
53519         * modules/strstr-tests: Likewise.
53520         * tests/test-strstr.c: Likewise.
53521         * lib/string.in.h (rpl_strstr): Declare.
53522         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53524         * modules/string (Makefile.am): Likewise.
53525         * MODULES.html.sh (string handling): Mention new module.
53526         * doc/functions/strstr.texi (strstr): Document the bug.
53527
53528 2008-01-10  Bruno Haible  <bruno@clisp.org>
53529
53530         * lib/relocatable.h (relocate): State whether result is freshly
53531         allocated or not.
53532         * lib/relocatable.c (relocate): Return a freshly allocated string
53533         instead of a pointer to a privately held string.
53534         Reported by Sylvain Beucler <beuc@gnu.org>.
53535
53536 2008-01-10  Colin Watson  <cjwatson@debian.org>
53537
53538         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53539         s/S_ISNLK/S_ISLNK/.
53540
53541 2008-01-09  Bruno Haible  <bruno@clisp.org>
53542
53543         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53544         and other files.
53545         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53546         if it's only a guess.
53547         * modules/memmem: Simplify by depending on memmem-simple.
53548
53549 2008-01-09  Bruno Haible  <bruno@clisp.org>
53550
53551         Work around OpenBSD 4.0 tdelete() bug.
53552         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53553         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53554         macros and don't redefine the enum values.
53555         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53556         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53557         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53558
53559 2008-01-09  Bruno Haible  <bruno@clisp.org>
53560
53561         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53562         (main): Don't perform the tests if setlocale did not install a UTF-8
53563         locale. Needed on OpenBSD 4.0.
53564         * modules/wcwidth-tests (Depends-on): Add localcharset.
53565
53566 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53567
53568         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53569         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53570         * NEWS: announce this.
53571         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53572
53573 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53574         and Eric Blake  <ebb9@byu.net>
53575
53576         Add memmem-simple module.
53577         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53578         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53579         * modules/memmem-simple: New file.
53580         * modules/memmem (Description): Tweak.
53581         * MODULES.html.sh (string handling): Mention new module.
53582         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53583         addressed by memmem-simple.
53584         * NEWS: Document the difference.
53585
53586 2008-01-09  Eric Blake  <ebb9@byu.net>
53587
53588         Give gcc some memmem optimization hints.
53589         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53590         (strcasestr): Declare as pure.
53591         * modules/memmem (Maintainer): Claim my implementation.
53592
53593 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53594
53595         Support AIX 6.1 and higher.
53596         * build-aux/config.libpath: Likewise.
53597         * build-aux/config.rpath: Likewise.
53598
53599 2008-01-08  Jim Meyering  <meyering@redhat.com>
53600             Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53603         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53604         Reported by Peter Fales in
53605         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53606
53607 2008-01-08  Bruno Haible  <bruno@clisp.org>
53608
53609         * modules/unictype/category-of (Depends-on): Add
53610         unictype/category-none.
53611         * modules/unictype/category-and-tests (Depends-on): Add
53612         unictype/category-{L,N,Lu,Nd}.
53613         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53614         * modules/unictype/category-or-tests (Depends-on): Add
53615         unictype/category-{L,N}.
53616         * modules/unictype/category-name-tests (Depends-on): Add
53617         unictype/category-{Z,Nl}.
53618         Reported by Simon Josefsson.
53619
53620 2008-01-08  Bruno Haible  <bruno@clisp.org>
53621
53622         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53623         convention better.
53624         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53625         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53626         Reported by Peter Miller <millerp@canb.auug.org.au>.
53627
53628 2008-01-08  Eric Blake  <ebb9@byu.net>
53629
53630         Rewrite memmem to guarantee linear complexity without malloc.
53631         * lib/memmem.c (memmem): Use Two-Way rather than
53632         Knuth-Morris-Pratt, to allow O(1) space usage.
53633         (critical_factorization, two_way_short_needle)
53634         (two_way_long_needle): New functions.
53635         (knuth_morris_pratt): Delete.
53636         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53637         Add stdint.
53638         * tests/test-memmem.c (main): Add tests for periodic needle and
53639         sublinear performance.
53640         * doc/functions/memmem.texi (memmem): Document other deficiencies
53641         in cygwin and older glibc.
53642
53643 2008-01-08  Bruno Haible  <bruno@clisp.org>
53644
53645         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53646         augmentation.
53647
53648 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53649
53650         Add a configure time option: --disable-acl.
53651         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53652         AC_ARG_ENABLE(acl).
53653
53654 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53655
53656         * tests/test-localename.c: Don't include obsolete "setenv.h".
53657
53658         * modules/localename-tests (Depends-on): Need unsetenv.
53659
53660 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53661
53662         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53663
53664 2008-01-06  Colin Watson  <cjwatson@debian.org>
53665
53666         * users.txt: Add man-db.
53667
53668 2008-01-07  Bruno Haible  <bruno@clisp.org>
53669
53670         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53671         previous section name.
53672
53673 2008-01-07  Bruno Haible  <bruno@clisp.org>
53674
53675         * lib/progname.c (set_program_name): Don't strip off a leading
53676         "lt-" prefix outside a .libs directory.
53677         Suggested by Paul Eggert.
53678
53679 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53680             Bruno Haible  <bruno@clisp.org>
53681
53682         Improve memory cleanup in 'relocatable' module.
53683         * lib/relocatable.h (compute_curr_prefix): Change return type to
53684         'char *'.
53685         * lib/relocatable.c (compute_curr_prefix): Change return type to
53686         'char *'. Free curr_installdir after use.
53687         (relocate): Free curr_prefix_better after use.
53688         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53689
53690 2008-01-01  Bruno Haible  <bruno@clisp.org>
53691
53692         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53693         failure on older glibc systems.
53694         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53695
53696 2008-01-05  Eric Blake  <ebb9@byu.net>
53697
53698         Avoid quadratic system memmem.
53699         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53700         Reported by Ralf Wildenhues.
53701
53702         Fix memmem test for mingw.
53703         * modules/memmem-tests (configure.ac): Check for alarm.
53704         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53705         it.
53706         * doc/functions/memmem.texi: New file.
53707         * doc/gnulib.texi (Function Substitutes): Add memmem.
53708         Reported by Bruno Haible.
53709
53710 2008-01-04  Bruno Haible  <bruno@clisp.org>
53711
53712         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53713         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53714         gl_HEADER_STRING_H_DEFAULTS.
53715
53716 2008-01-04  Eric Blake  <ebb9@byu.net>
53717
53718         Shorten duration of memmem test.
53719         * tests/test-memmem.c (main): Use alarm to declare failure if test
53720         is taking too long.
53721         Reported by Ralf Wildenhues.
53722
53723 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53724
53725         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53726         string, needed by strerror.
53727
53728 2008-01-03  Colin Watson  <cjwatson@debian.org>
53729             Bruno Haible  <bruno@clisp.org>
53730
53731         * doc/gnulib-tool.texi (Localization): New section.
53732
53733 2008-01-02  Bruno Haible  <bruno@clisp.org>
53734
53735         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53736         variables to 'unsigned char *' type.
53737         Reported by Paul Eggert.
53738
53739 2008-01-02  Jim Meyering  <jim@meyering.net>
53740
53741         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53742
53743 2007-12-31  Jim Meyering  <jim@meyering.net>
53744
53745         Avoid use of private FTS type name.
53746         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53747
53748 2007-12-30  Karl Berry  <karl@gnu.org>
53749
53750         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53751         work around defect in Texinfo and/or the standalone Info browser.
53752
53753 2007-12-30  Bruno Haible  <bruno@clisp.org>
53754
53755         Unify 5 copies of the KMP code.
53756         * lib/str-kmp.h: New file.
53757         * lib/c-strcasestr.c: Include str-kmp.h.
53758         (knuth_morris_pratt): Remove function.
53759         (c_strcasestr): Update.
53760         * lib/c-strstr.c: Include str-kmp.h.
53761         (knuth_morris_pratt): Remove function.
53762         (c_strcasestr): Update.
53763         * lib/mbscasestr.c: Include str-kmp.h.
53764         (knuth_morris_pratt_unibyte): Remove function.
53765         * lib/mbsstr.c: Include str-kmp.h.
53766         (knuth_morris_pratt_unibyte): Remove function.
53767         * lib/strcasestr.c: Include str-kmp.h.
53768         (knuth_morris_pratt): Remove function.
53769         (strcasestr): Update.
53770         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53771         * modules/c-strstr (Files): Likewise.
53772         * modules/mbscasestr (Files): Likewise.
53773         * modules/mbsstr (Files): Likewise.
53774         * modules/strcasestr (Files): Likewise.
53775         Suggested by Paul Eggert.
53776
53777 2007-12-30  Bruno Haible  <bruno@clisp.org>
53778
53779         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53780         defined.
53781
53782 2007-12-30  Bruno Haible  <bruno@clisp.org>
53783
53784         * lib/xmalloca.h: Include xalloc.h.
53785         (xnmalloca): New macro.
53786
53787 2007-12-30  Bruno Haible  <bruno@clisp.org>
53788
53789         * lib/malloca.h (nmalloca): New macro.
53790         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53791         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53792         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53793         knuth_morris_pratt_multibyte): Likewise.
53794         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53795         knuth_morris_pratt_multibyte): Likewise.
53796         * lib/memmem.c (knuth_morris_pratt): Likewise.
53797         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53798
53799 2007-12-25  Bruno Haible  <bruno@clisp.org>
53800
53801         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53802         * lib/glob.c: Don't include openat.h.
53803         (link_exists2_p): Add back the code that deals with the
53804         !GLOB_ALTDIRFUNC case.
53805         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53806         let it do the filename concatenation.
53807         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53808         * modules/glob (Depends-on): Remove openat.
53809
53810 2007-12-31  Bruno Haible  <bruno@clisp.org>
53811
53812         * modules/dirfd (License): Change to LGPLv2+.
53813         Approved by Jim Meyering.
53814
53815 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53816
53817         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53818         when multiplying M by sizeof (size_t).
53819
53820 2007-12-10  Martin Lambers  <marlam@marlam.de>
53821
53822         Override getpagesize on mingw.
53823         * lib/getpagesize.c: New file.
53824         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53825         * modules/getpagesize (Files): Add lib/getpagesize.c.
53826         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53828         REPLACE_GETPAGESIZE.
53829         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53830
53831 2007-12-25  Bruno Haible  <bruno@clisp.org>
53832
53833         * modules/localcharset (Notice): New field.
53834         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53835         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53836
53837 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53838             Bruno Haible  <bruno@clisp.org>
53839
53840         Avoid using the syntax symbol() in formatted documentation.
53841         * MODULES.html.sh (func_module): When replacing symbol() with a
53842         hyperlink, remove the parentheses. Show an error if some remain.
53843         Recognize and render the '...' syntax.
53844         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53845         Rework. Add paragraph about GCC's inlining.
53846         * doc/alloca.texi: Likewise.
53847         * doc/error.texi: Remove parentheses from symbol reference.
53848         * doc/gnulib-intro.texi: Likewise.
53849         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53850         * modules/fnmatch (Description): Reword to say "the ... function".
53851         * modules/full-read (Description): Likewise.
53852         * modules/full-write (Description): Likewise.
53853         * modules/safe-read (Description): Likewise.
53854         * modules/safe-write (Description): Likewise.
53855         * modules/strchrnul (Description): Likewise.
53856         * modules/trim (Description): Likewise.
53857         * modules/error (Description): Remove parentheses from symbol
53858         references.
53859         * modules/verror (Description): Likewise.
53860         Reported by Karl Berry.
53861
53862 2007-12-25  Bruno Haible  <bruno@clisp.org>
53863
53864         Fixup after 2007-10-16 commit.
53865         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53866
53867 2007-12-24  Bruno Haible  <bruno@clisp.org>
53868
53869         Make --enable-relocatable work with DESTDIR.
53870         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53871         to compute installdir from destprog.
53872         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53873         also set the RELOC_DESTDIR variable.
53874         Reported by Левашев Иван <octagram@bluebottle.com>.
53875
53876 2007-12-24  Bruno Haible  <bruno@clisp.org>
53877
53878         Fix link error due to xalloc_die().
53879         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53880         of xreadlink.
53881         * lib/relocwrapper.c: Update comments.
53882         * build-aux/install-reloc: Remove xreadlink.c from file list.
53883         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53884         xreadlink.c.
53885         Reported by Левашев Иван <octagram@bluebottle.com>.
53886
53887 2007-12-24  Bruno Haible  <bruno@clisp.org>
53888
53889         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53890         * lib/setenv.h: Remove file.
53891         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53892         lib/setenv.h.
53893         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53894         (Depends-on): Add stdlib.
53895         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53896         gl_FUNC_UNSETENV.
53897         (Include): Replace setenv.h with <stdlib.h>.
53898         * modules/unsetenv: New file.
53899         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53900         * lib/unsetenv.c: Include <stdlib.h> first.
53901         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53902         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53903         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53904         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53905         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53906         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53908         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53909         * doc/functions/unsetenv.texi: Update.
53910         * modules/xsetenv (Depends-on): Add unsetenv.
53911         * modules/getdate (Depends-on): Likewise.
53912         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53913         * lib/xsetenv.c: Don't include setenv.h.
53914         * lib/getdate.y: Likewise.
53915         * lib/relocwrapper.c: Likewise.
53916         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53917         (Depends-on): Add stdlib.
53918         * NEWS: Mention the changes.
53919         Reported by Левашев Иван <octagram@bluebottle.com>.
53920
53921 2007-12-23  Bruno Haible  <bruno@clisp.org>
53922
53923         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53924         indentation.
53925
53926 2007-12-23  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/c-strcasestr.c: Add more comments.
53929         * lib/c-strstr.c: Likewise.
53930         * lib/mbscasestr.c: Likewise.
53931         * lib/mbsstr.c: Likewise.
53932         * lib/strcasestr.c: Likewise.
53933         * lib/memmem.c: Likewise.
53934
53935 2007-12-23  Bruno Haible  <bruno@clisp.org>
53936
53937         * tests/test-memmem.c: Include <string.h> first.
53938
53939 2007-12-22  Bruno Haible  <bruno@clisp.org>
53940
53941         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53942         the contents of $testsbase.
53943         Reported by Ralf Wildenhues.
53944
53945 2007-12-22  Bruno Haible  <bruno@clisp.org>
53946
53947         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53948         two variables local_ldadd_before, local_ldadd_last.
53949
53950 2007-12-20  Eric Blake  <ebb9@byu.net>
53951
53952         Work around circular library issue when cross-compiling.
53953         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53954         that progname.o does not need to pull in rpl_memcmp.
53955
53956 2007-12-19  Eric Blake  <ebb9@byu.net>
53957
53958         Fix memmem to avoid O(n^2) worst-case complexity.
53959         * lib/memmem.c (knuth_morris_pratt): New function.
53960         (memmem): Use it if first few naive iterations fail.
53961         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53962         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53963         * modules/memchr (License): Likewise.
53964         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53965         malloca.
53966         * tests/test-memmem.c: Rewrite, borrowing ideas from
53967         test-mbsstr1.c; the old version wouldn't even compile!
53968         * modules/memmem-tests: New file.
53969         * lib/string.in.h (rpl_memmem): Add declaration.
53970         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53972         REPLACE_MEMMEM.
53973
53974 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53975
53976         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53977         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53978         before any system include files, and undef after them all.  This
53979         should fix a problem on VMS reported by John E. Malmberg in
53980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53981
53982 2007-12-17  Eric Blake  <ebb9@byu.net>
53983
53984         Revert addition of verify, for BSD/OS.
53985         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53986         can't handle large files, for the sake of obsolete platforms.
53987         * modules/fseeko (Depends-on): Remove verify.
53988         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53989         * doc/functions/ftello.texi (ftello): Likewise.
53990         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53991         Reported by Larry Jones.
53992
53993 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53994
53995         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53996         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53997
53998 2007-12-17  Jim Meyering  <meyering@redhat.com>
53999
54000         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54001         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54002         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54003         * modules/getcwd (Depends-on): Add openat.
54004         Reported by Petr Salinger.
54005
54006 2007-12-17  Bruno Haible  <bruno@clisp.org>
54007
54008         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54009         avoid a segmentation fault of the configure test on x86_64 systems.
54010
54011 2007-12-15  Jim Meyering  <meyering@redhat.com>
54012
54013         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54014
54015 2007-12-13  Eric Blake  <ebb9@byu.net>
54016
54017         Another fseek test.
54018         * tests/test-fseek.c (main): Also test ungetc handling.
54019         * tests/test-fseeko.c (main): Likewise.
54020         * modules/fseeko (Depends-on): Add verify.
54021         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54022         large.
54023         Reported by Larry Jones.
54024
54025         Fix fseeko on mingw.
54026         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54027         seek.
54028
54029         Beef up fseek tests.
54030         * tests/test-fseek.c (main): Also test eof handling.
54031         * tests/test-fseeko.c (main): Likewise.
54032         Reported by Larry Jones.
54033
54034 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54035
54036         Fix fseeko on BSD-based platforms.
54037         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54038         successful seek.
54039
54040 2007-12-12  Eric Blake  <ebb9@byu.net>
54041
54042         Allow circular dependency of separate libtests.a
54043         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54044         when use_libtests.
54045
54046 2007-12-11  Eric Blake  <ebb9@byu.net>
54047
54048         Fix bug with -0.0L in previous patch.
54049         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54050         * tests/test-isnan.c (main): Also test on zeroes.
54051         * tests/test-isnanf.c (main): Likewise.
54052         * tests/test-isnanl.h (main): Likewise.
54053
54054         Detect pseudo-denormals on x86 even when cross-compiling.
54055         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54056         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54057         invalid bit patterns that happen to satisfy ==.
54058
54059         Avoid link failures with separate libtests.a.
54060         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54061         last, to satisfy circular dependencies.
54062
54063 2007-12-11  Eric Blake  <ebb9@byu.net>
54064         and Bruno Haible  <bruno@clisp.org>
54065
54066         Fix OpenBSD 4.0 <float.h> handling of long double.
54067         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54068         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54069         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54070
54071 2007-12-11  Jim Meyering  <meyering@redhat.com>
54072
54073         * users.txt: Add libvirt.
54074
54075         Support versions of autoconf prior to 2.59c.
54076         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54077         if it is not already defined.
54078
54079 2007-12-09  Bruno Haible  <bruno@clisp.org>
54080
54081         Let 'gnulib-tool --import' collect sources needed for the tests in
54082         tests/ rather than in lib/.
54083         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54084         argument. If true, add rules to generate libtests.a, and put libtests.a
54085         into $(LDADD). Consider source files in subdirectories and set
54086         uses_subdirs.
54087         (func_emit_initmacro_start, func_emit_initmacro_end,
54088         func_emit_initmacro_done): Pass all arguments explicitly.
54089         (func_import): Determine two module lists main_modules,
54090         testsrelated_modules. Determine use_libtests. Determine two variables
54091         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54092         instead of just sed_transform_lib_file. Determine two variables
54093         main_files and testsrelated_files. Compute 'files' as the union of
54094         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54095         func_add_or_update. In the generated gnulib-comp.m4, collect the
54096         object files for tests/ in different variables than those for lib/.
54097         Substitute LIBTESTS_LIBDEPS.
54098         (func_create_testdir): Combine the uses_subdirs results from
54099         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54100
54101 2007-12-09  Bruno Haible  <bruno@clisp.org>
54102
54103         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54104         the build-aux directory.
54105
54106 2007-12-09  Bruno Haible  <bruno@clisp.org>
54107
54108         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54109         introduced on 2006-09-09.
54110
54111 2007-12-07  Jim Meyering  <meyering@redhat.com>
54112
54113         Let these macros work also with autoconf-2.59.
54114         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54115         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54116         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54117
54118 2007-12-06  Jim Meyering  <meyering@redhat.com>
54119
54120         Avoid a configure-time syntax error in gl_FUNC_ACL.
54121         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54122         function in each branch, before testing the cache variable.
54123
54124 2007-12-04  Eric Blake  <ebb9@byu.net>
54125
54126         Make scripts executable.
54127         * build-aux/config.guess: Add execute permissions.
54128         * build-aux/config.sub: Likewise.
54129         * build-aux/gendocs.sh: Likewise.
54130
54131         Fix frexp on mingw.
54132         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54133         cross-compiling.
54134         * doc/functions/frexp.texi (frexp): Document the bug.
54135
54136         Make cygwin fseeko check more reliable.
54137         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54138         version numbers, rather than unrelated feature check.
54139         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54140         * doc/functions/ftello.texi (ftello): Likewise.
54141         Reported by Bruno Haible.
54142
54143         * m4/strerror.m4: Bump version number.
54144
54145 2007-12-03  Bruno Haible  <bruno@clisp.org>
54146
54147         * doc/functions/mprotect.texi: Mention the mingw problem.
54148
54149 2007-12-03  Eric Blake  <ebb9@byu.net>
54150
54151         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54152         REPLACE_STRERROR is initialized before this macro.
54153
54154 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54155
54156         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54157         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54158         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54159         put -lsec in even for programs other than 'ls'.  This fixes a problem
54160         for gettext reported by Bruno Haible in
54161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54162         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54163         Add support for Solaris 10.  This isn't efficient, but should get the
54164         job done for now.
54165
54166 2007-12-03  James Youngman  <jay@gnu.org>
54167
54168         * doc/regexprops-generic.texi: change "an close-group" to "a
54169         close-group" and "illegal" to "not allowed".
54170
54171 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54172
54173         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54174         pr_byname.h. Needed for the rare case when the maintainer has done
54175         "make maintainer-clean" in the source directory and then attempts a
54176         build outside the source directory.
54177         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54178         scripts_byname.h.
54179
54180 2007-12-02  Martin Lambers <marlam@marlam.de>
54181             Bruno Haible  <bruno@clisp.org>
54182
54183         * lib/getpagesize.h: Remove file.
54184         * lib/unistd.in.h: Include declaration of getpagesize here.
54185         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54186         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54187         HAVE_SYS_PARAM_H.
54188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54189         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54190         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54191         (Depends-on): Add unistd.
54192         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54193         (Include): Use <unistd.h> instead of getpagesize.h.
54194         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54195         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54196         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54197         gl_GETPAGESIZE invocation, already handled by module dependency.
54198         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54199
54200 2007-12-02  Bruno Haible  <bruno@clisp.org>
54201
54202         * modules/strings-tests: New file.
54203         * tests/test-strings.c: New file.
54204
54205         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54206         * lib/strings.in.h: New file.
54207         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54208         * m4/strings_h.m4: New file.
54209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54210         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54211         * modules/strings: New file.
54212         * modules/string (Makefile.am): Update.
54213         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54214         Reported by Karl Berry.
54215
54216 2007-12-01  Eric Blake  <ebb9@byu.net>
54217
54218         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54219         accomodate fix in cygwin 1.5.25.
54220
54221 2007-12-01  Jim Meyering  <meyering@redhat.com>
54222
54223         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54224         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54225         that would inhibit utf8-optimization of a regexp containing line-
54226         or buffer-anchors, e.g., `^', `$'.
54227
54228 2007-11-30  Bruno Haible  <bruno@clisp.org>
54229
54230         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54231         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54232         glthread_recursive_lock_init.
54233         * lib/lock.c (glthread_recursive_lock_init)
54234         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54235         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54236
54237 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54238
54239         New function qset_acl, like set_acl but with syscall semantics.
54240         * lib/acl.h (qset_acl): New decl.
54241         * lib/acl.c (qset_acl): New function.
54242         (set_acl): Use new function.  Use more-consistent diagnostics.
54243
54244 2007-11-28  Jim Meyering  <meyering@redhat.com>
54245
54246         * modules/physmem (License): Change from GPL to LGPLv2+.
54247
54248 2007-11-26  Bruno Haible  <bruno@clisp.org>
54249
54250         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54251         'long double' type has excess precision.
54252         Reported by Jim Meyering in
54253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54254
54255 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54256
54257         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54258         Sync from <http://gnu.org/licenses>.
54259         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54260         with license text from same location.
54261         * doc/maintain.texi, doc/standards.texi:  Sync from
54262         <http://savannah.gnu.org/projects/gnustandards>.
54263
54264 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
54265         and Jim Meyering  <meyering@redhat.com>
54266
54267         Adjust getdate' grammar to accept a slightly more regular language.
54268         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54269         Before, the former was rejected.
54270         * lib/getdate.y (digits_to_date_time): New function, factored
54271         out of ...
54272         (number): ...here.  Just call digits_to_date_time.
54273         (hybrid): New non-terminal to handle an <unsigned number,
54274         signed relative offset> sequence consistently.
54275
54276 2007-11-18  Jim Meyering  <meyering@redhat.com>
54277
54278         Pull my changes from coreutils:
54279         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54280         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54281         use of $gnulib_tool_option_extras, so that it's separated from the
54282         preceding argument.
54283
54284         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54285         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54286         parent destination directories before copying a file into place.
54287
54288 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54289
54290         bootstrap: work also with 4-argument variant of AC_INIT
54291         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54292
54293 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54294
54295         Port test-getaddrinfo to Solaris.
54296         Problem reported by Bruno Haible in
54297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54298         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54299         explanation of setting 'hints'.
54300         Don't reject an implementation merely because it returns EAI_SERVICE.
54301         (EAI_SERVICE): Define to 0 if not defined.
54302
54303 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54304
54305         The license of gnu-make and posix-shell is now "GPLed build tool".
54306         * modules/gnu-make (License): Likewise.
54307         * modules/posix-shell (License): Likewise.
54308
54309         New module posix-shell, for determining a POSIX shell
54310         or perhaps something that is close enough to a POSIX shell.
54311         * m4/posix-shell.m4: New file.
54312         * modules/posix-shell: New file.
54313
54314         * MODULES.html.sh: Mention new module.
54315
54316         New module gnu-make, for determining whether we're using GNU Make.
54317         * m4/gnu-make.m4: New file.
54318         * modules/gnu-make: New file.
54319         * MODULES.html.sh: Mention new module.
54320
54321 2007-11-14  Jim Meyering  <meyering@redhat.com>
54322
54323         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54324         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54325         use this macro to create a function _definition_.
54326         Remove useless "#undef ARGMATCH_DIE".
54327
54328 2007-11-14  Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/config.charset: Update for OpenBSD 4.1.
54331         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54332
54333 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54334
54335         Document 64-bit #if problems in stdint.texi.
54336         * doc/headers/stdint.texi (stdint.h): Mention problems with
54337         64-bit-#if, and how to work around them.
54338
54339         Don't insist on 'long long int' support in the preprocessor.  It
54340         breaks too many things.  For example, PRIdMAX still uses a 'long
54341         long int' format with the latest Sun compiler, even though
54342         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54343         preprocessor problem.  This causes the latest coreutils to dump
54344         core on Solaris 10 sparc with the Sun C compiler.
54345         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54346         the troublesome expressions at configure-time, not at #if-time.
54347         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54348         preprocessor.
54349         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54350         compile-time C checks, done at 'configure'-time.
54351         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54352         * modules/inttypes (Makefile): Substitute the new symbols that
54353         gl_INTTYPES_H now generates.
54354         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54355
54356 2007-11-12  Bruno Haible  <bruno@clisp.org>
54357
54358         Tests for Unicode character classification functions.
54359
54360         * modules/unictype/bidicategory-byname-tests: New file.
54361         * modules/unictype/bidicategory-name-tests: New file.
54362         * modules/unictype/bidicategory-of-tests: New file.
54363         * modules/unictype/bidicategory-test-tests: New file.
54364         * modules/unictype/block-list-tests: New file.
54365         * modules/unictype/block-of-tests: New file.
54366         * modules/unictype/block-test-tests: New file.
54367         * modules/unictype/category-C-tests: New file.
54368         * modules/unictype/category-Cc-tests: New file.
54369         * modules/unictype/category-Cf-tests: New file.
54370         * modules/unictype/category-Cn-tests: New file.
54371         * modules/unictype/category-Co-tests: New file.
54372         * modules/unictype/category-Cs-tests: New file.
54373         * modules/unictype/category-L-tests: New file.
54374         * modules/unictype/category-Ll-tests: New file.
54375         * modules/unictype/category-Lm-tests: New file.
54376         * modules/unictype/category-Lo-tests: New file.
54377         * modules/unictype/category-Lt-tests: New file.
54378         * modules/unictype/category-Lu-tests: New file.
54379         * modules/unictype/category-M-tests: New file.
54380         * modules/unictype/category-Mc-tests: New file.
54381         * modules/unictype/category-Me-tests: New file.
54382         * modules/unictype/category-Mn-tests: New file.
54383         * modules/unictype/category-N-tests: New file.
54384         * modules/unictype/category-Nd-tests: New file.
54385         * modules/unictype/category-Nl-tests: New file.
54386         * modules/unictype/category-No-tests: New file.
54387         * modules/unictype/category-P-tests: New file.
54388         * modules/unictype/category-Pc-tests: New file.
54389         * modules/unictype/category-Pd-tests: New file.
54390         * modules/unictype/category-Pe-tests: New file.
54391         * modules/unictype/category-Pf-tests: New file.
54392         * modules/unictype/category-Pi-tests: New file.
54393         * modules/unictype/category-Po-tests: New file.
54394         * modules/unictype/category-Ps-tests: New file.
54395         * modules/unictype/category-S-tests: New file.
54396         * modules/unictype/category-Sc-tests: New file.
54397         * modules/unictype/category-Sk-tests: New file.
54398         * modules/unictype/category-Sm-tests: New file.
54399         * modules/unictype/category-So-tests: New file.
54400         * modules/unictype/category-Z-tests: New file.
54401         * modules/unictype/category-Zl-tests: New file.
54402         * modules/unictype/category-Zp-tests: New file.
54403         * modules/unictype/category-Zs-tests: New file.
54404         * modules/unictype/category-and-not-tests: New file.
54405         * modules/unictype/category-and-tests: New file.
54406         * modules/unictype/category-byname-tests: New file.
54407         * modules/unictype/category-name-tests: New file.
54408         * modules/unictype/category-none-tests: New file.
54409         * modules/unictype/category-of-tests: New file.
54410         * modules/unictype/category-or-tests: New file.
54411         * modules/unictype/category-test-withtable-tests: New file.
54412         * modules/unictype/combining-class-tests: New file.
54413         * modules/unictype/ctype-alnum-tests: New file.
54414         * modules/unictype/ctype-alpha-tests: New file.
54415         * modules/unictype/ctype-blank-tests: New file.
54416         * modules/unictype/ctype-cntrl-tests: New file.
54417         * modules/unictype/ctype-digit-tests: New file.
54418         * modules/unictype/ctype-graph-tests: New file.
54419         * modules/unictype/ctype-lower-tests: New file.
54420         * modules/unictype/ctype-print-tests: New file.
54421         * modules/unictype/ctype-punct-tests: New file.
54422         * modules/unictype/ctype-space-tests: New file.
54423         * modules/unictype/ctype-upper-tests: New file.
54424         * modules/unictype/ctype-xdigit-tests: New file.
54425         * modules/unictype/decimal-digit-tests: New file.
54426         * modules/unictype/digit-tests: New file.
54427         * modules/unictype/mirror-tests: New file.
54428         * modules/unictype/numeric-tests: New file.
54429         * modules/unictype/property-alphabetic-tests: New file.
54430         * modules/unictype/property-ascii-hex-digit-tests: New file.
54431         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54432         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54433         * modules/unictype/property-bidi-block-separator-tests: New file.
54434         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54435         * modules/unictype/property-bidi-common-separator-tests: New file.
54436         * modules/unictype/property-bidi-control-tests: New file.
54437         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54438         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54439         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54440         * modules/unictype/property-bidi-european-digit-tests: New file.
54441         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54442         * modules/unictype/property-bidi-left-to-right-tests: New file.
54443         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54444         * modules/unictype/property-bidi-other-neutral-tests: New file.
54445         * modules/unictype/property-bidi-pdf-tests: New file.
54446         * modules/unictype/property-bidi-segment-separator-tests: New file.
54447         * modules/unictype/property-bidi-whitespace-tests: New file.
54448         * modules/unictype/property-byname-tests: New file.
54449         * modules/unictype/property-combining-tests: New file.
54450         * modules/unictype/property-composite-tests: New file.
54451         * modules/unictype/property-currency-symbol-tests: New file.
54452         * modules/unictype/property-dash-tests: New file.
54453         * modules/unictype/property-decimal-digit-tests: New file.
54454         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54455         * modules/unictype/property-deprecated-tests: New file.
54456         * modules/unictype/property-diacritic-tests: New file.
54457         * modules/unictype/property-extender-tests: New file.
54458         * modules/unictype/property-format-control-tests: New file.
54459         * modules/unictype/property-grapheme-base-tests: New file.
54460         * modules/unictype/property-grapheme-extend-tests: New file.
54461         * modules/unictype/property-grapheme-link-tests: New file.
54462         * modules/unictype/property-hex-digit-tests: New file.
54463         * modules/unictype/property-hyphen-tests: New file.
54464         * modules/unictype/property-id-continue-tests: New file.
54465         * modules/unictype/property-id-start-tests: New file.
54466         * modules/unictype/property-ideographic-tests: New file.
54467         * modules/unictype/property-ids-binary-operator-tests: New file.
54468         * modules/unictype/property-ids-trinary-operator-tests: New file.
54469         * modules/unictype/property-ignorable-control-tests: New file.
54470         * modules/unictype/property-iso-control-tests: New file.
54471         * modules/unictype/property-join-control-tests: New file.
54472         * modules/unictype/property-left-of-pair-tests: New file.
54473         * modules/unictype/property-line-separator-tests: New file.
54474         * modules/unictype/property-logical-order-exception-tests: New file.
54475         * modules/unictype/property-lowercase-tests: New file.
54476         * modules/unictype/property-math-tests: New file.
54477         * modules/unictype/property-non-break-tests: New file.
54478         * modules/unictype/property-not-a-character-tests: New file.
54479         * modules/unictype/property-numeric-tests: New file.
54480         * modules/unictype/property-other-alphabetic-tests: New file.
54481         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54482         * modules/unictype/property-other-grapheme-extend-tests: New file.
54483         * modules/unictype/property-other-id-continue-tests: New file.
54484         * modules/unictype/property-other-id-start-tests: New file.
54485         * modules/unictype/property-other-lowercase-tests: New file.
54486         * modules/unictype/property-other-math-tests: New file.
54487         * modules/unictype/property-other-uppercase-tests: New file.
54488         * modules/unictype/property-paired-punctuation-tests: New file.
54489         * modules/unictype/property-paragraph-separator-tests: New file.
54490         * modules/unictype/property-pattern-syntax-tests: New file.
54491         * modules/unictype/property-pattern-white-space-tests: New file.
54492         * modules/unictype/property-private-use-tests: New file.
54493         * modules/unictype/property-punctuation-tests: New file.
54494         * modules/unictype/property-quotation-mark-tests: New file.
54495         * modules/unictype/property-radical-tests: New file.
54496         * modules/unictype/property-sentence-terminal-tests: New file.
54497         * modules/unictype/property-soft-dotted-tests: New file.
54498         * modules/unictype/property-space-tests: New file.
54499         * modules/unictype/property-terminal-punctuation-tests: New file.
54500         * modules/unictype/property-test-tests: New file.
54501         * modules/unictype/property-titlecase-tests: New file.
54502         * modules/unictype/property-unassigned-code-value-tests: New file.
54503         * modules/unictype/property-unified-ideograph-tests: New file.
54504         * modules/unictype/property-uppercase-tests: New file.
54505         * modules/unictype/property-variation-selector-tests: New file.
54506         * modules/unictype/property-white-space-tests: New file.
54507         * modules/unictype/property-xid-continue-tests: New file.
54508         * modules/unictype/property-xid-start-tests: New file.
54509         * modules/unictype/property-zero-width-tests: New file.
54510         * modules/unictype/scripts-tests: New file.
54511         * modules/unictype/syntax-c-ident-tests: New file.
54512         * modules/unictype/syntax-c-whitespace-tests: New file.
54513         * modules/unictype/syntax-java-ident-tests: New file.
54514         * modules/unictype/syntax-java-whitespace-tests: New file.
54515         * tests/unictype/test-bidi_byname.c: New file.
54516         * tests/unictype/test-bidi_name.c: New file.
54517         * tests/unictype/test-bidi_of.c: New file.
54518         * tests/unictype/test-bidi_test.c: New file.
54519         * tests/unictype/test-block_list.c: New file.
54520         * tests/unictype/test-block_of.c: New file.
54521         * tests/unictype/test-block_test.c: New file.
54522         * tests/unictype/test-categ_and.c: New file.
54523         * tests/unictype/test-categ_and_not.c: New file.
54524         * tests/unictype/test-categ_byname.c: New file.
54525         * tests/unictype/test-categ_name.c: New file.
54526         * tests/unictype/test-categ_none.c: New file.
54527         * tests/unictype/test-categ_of.c: New file.
54528         * tests/unictype/test-categ_or.c: New file.
54529         * tests/unictype/test-categ_test_withtable.c: New file.
54530         * tests/unictype/test-combining.c: New file.
54531         * tests/unictype/test-decdigit.c: New file.
54532         * tests/unictype/test-digit.c: New file.
54533         * tests/unictype/test-mirror.c: New file.
54534         * tests/unictype/test-numeric.c: New file.
54535         * tests/unictype/test-pr_byname.c: New file.
54536         * tests/unictype/test-pr_test.c: New file.
54537         * tests/unictype/test-predicate-part1.h: New file.
54538         * tests/unictype/test-predicate-part2.h: New file.
54539         * tests/unictype/test-scripts.c: New file.
54540         * tests/unictype/test-sy_c_ident.c: New file.
54541         * tests/unictype/test-sy_java_ident.c: New file.
54542
54543         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54544         for Unicode 5.0.0.
54545         * tests/unictype/test-categ_Cc.c: Likewise.
54546         * tests/unictype/test-categ_Cf.c: Likewise.
54547         * tests/unictype/test-categ_Cn.c: Likewise.
54548         * tests/unictype/test-categ_Co.c: Likewise.
54549         * tests/unictype/test-categ_Cs.c: Likewise.
54550         * tests/unictype/test-categ_L.c: Likewise.
54551         * tests/unictype/test-categ_Ll.c: Likewise.
54552         * tests/unictype/test-categ_Lm.c: Likewise.
54553         * tests/unictype/test-categ_Lo.c: Likewise.
54554         * tests/unictype/test-categ_Lt.c: Likewise.
54555         * tests/unictype/test-categ_Lu.c: Likewise.
54556         * tests/unictype/test-categ_M.c: Likewise.
54557         * tests/unictype/test-categ_Mc.c: Likewise.
54558         * tests/unictype/test-categ_Me.c: Likewise.
54559         * tests/unictype/test-categ_Mn.c: Likewise.
54560         * tests/unictype/test-categ_N.c: Likewise.
54561         * tests/unictype/test-categ_Nd.c: Likewise.
54562         * tests/unictype/test-categ_Nl.c: Likewise.
54563         * tests/unictype/test-categ_No.c: Likewise.
54564         * tests/unictype/test-categ_P.c: Likewise.
54565         * tests/unictype/test-categ_Pc.c: Likewise.
54566         * tests/unictype/test-categ_Pd.c: Likewise.
54567         * tests/unictype/test-categ_Pe.c: Likewise.
54568         * tests/unictype/test-categ_Pf.c: Likewise.
54569         * tests/unictype/test-categ_Pi.c: Likewise.
54570         * tests/unictype/test-categ_Po.c: Likewise.
54571         * tests/unictype/test-categ_Ps.c: Likewise.
54572         * tests/unictype/test-categ_S.c: Likewise.
54573         * tests/unictype/test-categ_Sc.c: Likewise.
54574         * tests/unictype/test-categ_Sk.c: Likewise.
54575         * tests/unictype/test-categ_Sm.c: Likewise.
54576         * tests/unictype/test-categ_So.c: Likewise.
54577         * tests/unictype/test-categ_Z.c: Likewise.
54578         * tests/unictype/test-categ_Zl.c: Likewise.
54579         * tests/unictype/test-categ_Zp.c: Likewise.
54580         * tests/unictype/test-categ_Zs.c: Likewise.
54581         * tests/unictype/test-ctype_alnum.c: Likewise.
54582         * tests/unictype/test-ctype_alpha.c: Likewise.
54583         * tests/unictype/test-ctype_blank.c: Likewise.
54584         * tests/unictype/test-ctype_cntrl.c: Likewise.
54585         * tests/unictype/test-ctype_digit.c: Likewise.
54586         * tests/unictype/test-ctype_graph.c: Likewise.
54587         * tests/unictype/test-ctype_lower.c: Likewise.
54588         * tests/unictype/test-ctype_print.c: Likewise.
54589         * tests/unictype/test-ctype_punct.c: Likewise.
54590         * tests/unictype/test-ctype_space.c: Likewise.
54591         * tests/unictype/test-ctype_upper.c: Likewise.
54592         * tests/unictype/test-ctype_xdigit.c: Likewise.
54593         * tests/unictype/test-decdigit.h: Likewise.
54594         * tests/unictype/test-digit.h: Likewise.
54595         * tests/unictype/test-numeric.h: Likewise.
54596         * tests/unictype/test-pr_alphabetic.c: Likewise.
54597         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54598         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54599         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54600         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54601         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54602         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54603         * tests/unictype/test-pr_bidi_control.c: Likewise.
54604         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54605         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54606         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54607         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54608         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54609         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54610         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54611         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54612         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54613         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54614         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54615         * tests/unictype/test-pr_combining.c: Likewise.
54616         * tests/unictype/test-pr_composite.c: Likewise.
54617         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54618         * tests/unictype/test-pr_dash.c: Likewise.
54619         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54620         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54621         * tests/unictype/test-pr_deprecated.c: Likewise.
54622         * tests/unictype/test-pr_diacritic.c: Likewise.
54623         * tests/unictype/test-pr_extender.c: Likewise.
54624         * tests/unictype/test-pr_format_control.c: Likewise.
54625         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54626         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54627         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54628         * tests/unictype/test-pr_hex_digit.c: Likewise.
54629         * tests/unictype/test-pr_hyphen.c: Likewise.
54630         * tests/unictype/test-pr_id_continue.c: Likewise.
54631         * tests/unictype/test-pr_id_start.c: Likewise.
54632         * tests/unictype/test-pr_ideographic.c: Likewise.
54633         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54634         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54635         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54636         * tests/unictype/test-pr_iso_control.c: Likewise.
54637         * tests/unictype/test-pr_join_control.c: Likewise.
54638         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54639         * tests/unictype/test-pr_line_separator.c: Likewise.
54640         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54641         * tests/unictype/test-pr_lowercase.c: Likewise.
54642         * tests/unictype/test-pr_math.c: Likewise.
54643         * tests/unictype/test-pr_non_break.c: Likewise.
54644         * tests/unictype/test-pr_not_a_character.c: Likewise.
54645         * tests/unictype/test-pr_numeric.c: Likewise.
54646         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54647         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54648         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54649         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54650         * tests/unictype/test-pr_other_id_start.c: Likewise.
54651         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54652         * tests/unictype/test-pr_other_math.c: Likewise.
54653         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54654         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54655         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54656         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54657         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54658         * tests/unictype/test-pr_private_use.c: Likewise.
54659         * tests/unictype/test-pr_punctuation.c: Likewise.
54660         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54661         * tests/unictype/test-pr_radical.c: Likewise.
54662         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54663         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54664         * tests/unictype/test-pr_space.c: Likewise.
54665         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54666         * tests/unictype/test-pr_titlecase.c: Likewise.
54667         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54668         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54669         * tests/unictype/test-pr_uppercase.c: Likewise.
54670         * tests/unictype/test-pr_variation_selector.c: Likewise.
54671         * tests/unictype/test-pr_white_space.c: Likewise.
54672         * tests/unictype/test-pr_xid_continue.c: Likewise.
54673         * tests/unictype/test-pr_xid_start.c: Likewise.
54674         * tests/unictype/test-pr_zero_width.c: Likewise.
54675         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54676         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54677
54678 2007-11-12  Bruno Haible  <bruno@clisp.org>
54679
54680         Unicode character classification functions.
54681         * lib/unictype.h: New file.
54682         * modules/unictype/base: New file.
54683         * modules/unictype/category-L: New file.
54684         * modules/unictype/category-Lu: New file.
54685         * modules/unictype/category-Ll: New file.
54686         * modules/unictype/category-Lt: New file.
54687         * modules/unictype/category-Lm: New file.
54688         * modules/unictype/category-Lo: New file.
54689         * modules/unictype/category-M: New file.
54690         * modules/unictype/category-Mn: New file.
54691         * modules/unictype/category-Mc: New file.
54692         * modules/unictype/category-Me: New file.
54693         * modules/unictype/category-N: New file.
54694         * modules/unictype/category-Nd: New file.
54695         * modules/unictype/category-Nl: New file.
54696         * modules/unictype/category-No: New file.
54697         * modules/unictype/category-P: New file.
54698         * modules/unictype/category-Pc: New file.
54699         * modules/unictype/category-Pd: New file.
54700         * modules/unictype/category-Ps: New file.
54701         * modules/unictype/category-Pe: New file.
54702         * modules/unictype/category-Pi: New file.
54703         * modules/unictype/category-Pf: New file.
54704         * modules/unictype/category-Po: New file.
54705         * modules/unictype/category-S: New file.
54706         * modules/unictype/category-Sm: New file.
54707         * modules/unictype/category-Sc: New file.
54708         * modules/unictype/category-Sk: New file.
54709         * modules/unictype/category-So: New file.
54710         * modules/unictype/category-Z: New file.
54711         * modules/unictype/category-Zs: New file.
54712         * modules/unictype/category-Zl: New file.
54713         * modules/unictype/category-Zp: New file.
54714         * modules/unictype/category-C: New file.
54715         * modules/unictype/category-Cc: New file.
54716         * modules/unictype/category-Cf: New file.
54717         * modules/unictype/category-Cs: New file.
54718         * modules/unictype/category-Co: New file.
54719         * modules/unictype/category-Cn: New file.
54720         * modules/unictype/category-or: New file.
54721         * modules/unictype/category-of: New file.
54722         * modules/unictype/category-test: New file.
54723         * modules/unictype/category-test-withtable: New file.
54724         * modules/unictype/category-byname: New file.
54725         * modules/unictype/category-none: New file.
54726         * modules/unictype/category-and: New file.
54727         * modules/unictype/category-and-not: New file.
54728         * modules/unictype/category-name: New file.
54729         * modules/unictype/combining-class: New file.
54730         * modules/unictype/category-all: New file.
54731         * modules/unictype/bidicategory-all: New file.
54732         * modules/unictype/bidicategory-byname: New file.
54733         * modules/unictype/bidicategory-name: New file.
54734         * modules/unictype/bidicategory-of: New file.
54735         * modules/unictype/bidicategory-test: New file.
54736         * modules/unictype/decimal-digit: New file.
54737         * modules/unictype/digit: New file.
54738         * modules/unictype/numeric: New file.
54739         * modules/unictype/mirror: New file.
54740         * modules/unictype/property-white-space: New file.
54741         * modules/unictype/property-alphabetic: New file.
54742         * modules/unictype/property-other-alphabetic: New file.
54743         * modules/unictype/property-not-a-character: New file.
54744         * modules/unictype/property-default-ignorable-code-point: New file.
54745         * modules/unictype/property-other-default-ignorable-code-point: New
54746         file.
54747         * modules/unictype/property-deprecated: New file.
54748         * modules/unictype/property-logical-order-exception: New file.
54749         * modules/unictype/property-variation-selector: New file.
54750         * modules/unictype/property-private-use: New file.
54751         * modules/unictype/property-unassigned-code-value: New file.
54752         * modules/unictype/property-uppercase: New file.
54753         * modules/unictype/property-other-uppercase: New file.
54754         * modules/unictype/property-lowercase: New file.
54755         * modules/unictype/property-other-lowercase: New file.
54756         * modules/unictype/property-titlecase: New file.
54757         * modules/unictype/property-soft-dotted: New file.
54758         * modules/unictype/property-id-start: New file.
54759         * modules/unictype/property-other-id-start: New file.
54760         * modules/unictype/property-id-continue: New file.
54761         * modules/unictype/property-other-id-continue: New file.
54762         * modules/unictype/property-xid-start: New file.
54763         * modules/unictype/property-xid-continue: New file.
54764         * modules/unictype/property-pattern-white-space: New file.
54765         * modules/unictype/property-pattern-syntax: New file.
54766         * modules/unictype/property-join-control: New file.
54767         * modules/unictype/property-grapheme-base: New file.
54768         * modules/unictype/property-grapheme-extend: New file.
54769         * modules/unictype/property-other-grapheme-extend: New file.
54770         * modules/unictype/property-grapheme-link: New file.
54771         * modules/unictype/property-bidi-control: New file.
54772         * modules/unictype/property-bidi-left-to-right: New file.
54773         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54774         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54775         * modules/unictype/property-bidi-european-digit: New file.
54776         * modules/unictype/property-bidi-eur-num-separator: New file.
54777         * modules/unictype/property-bidi-eur-num-terminator: New file.
54778         * modules/unictype/property-bidi-arabic-digit: New file.
54779         * modules/unictype/property-bidi-common-separator: New file.
54780         * modules/unictype/property-bidi-block-separator: New file.
54781         * modules/unictype/property-bidi-segment-separator: New file.
54782         * modules/unictype/property-bidi-whitespace: New file.
54783         * modules/unictype/property-bidi-non-spacing-mark: New file.
54784         * modules/unictype/property-bidi-boundary-neutral: New file.
54785         * modules/unictype/property-bidi-pdf: New file.
54786         * modules/unictype/property-bidi-embedding-or-override: New file.
54787         * modules/unictype/property-bidi-other-neutral: New file.
54788         * modules/unictype/property-hex-digit: New file.
54789         * modules/unictype/property-ascii-hex-digit: New file.
54790         * modules/unictype/property-ideographic: New file.
54791         * modules/unictype/property-unified-ideograph: New file.
54792         * modules/unictype/property-radical: New file.
54793         * modules/unictype/property-ids-binary-operator: New file.
54794         * modules/unictype/property-ids-trinary-operator: New file.
54795         * modules/unictype/property-zero-width: New file.
54796         * modules/unictype/property-space: New file.
54797         * modules/unictype/property-non-break: New file.
54798         * modules/unictype/property-iso-control: New file.
54799         * modules/unictype/property-format-control: New file.
54800         * modules/unictype/property-dash: New file.
54801         * modules/unictype/property-hyphen: New file.
54802         * modules/unictype/property-punctuation: New file.
54803         * modules/unictype/property-line-separator: New file.
54804         * modules/unictype/property-paragraph-separator: New file.
54805         * modules/unictype/property-quotation-mark: New file.
54806         * modules/unictype/property-sentence-terminal: New file.
54807         * modules/unictype/property-terminal-punctuation: New file.
54808         * modules/unictype/property-currency-symbol: New file.
54809         * modules/unictype/property-math: New file.
54810         * modules/unictype/property-other-math: New file.
54811         * modules/unictype/property-paired-punctuation: New file.
54812         * modules/unictype/property-left-of-pair: New file.
54813         * modules/unictype/property-combining: New file.
54814         * modules/unictype/property-composite: New file.
54815         * modules/unictype/property-decimal-digit: New file.
54816         * modules/unictype/property-numeric: New file.
54817         * modules/unictype/property-diacritic: New file.
54818         * modules/unictype/property-extender: New file.
54819         * modules/unictype/property-ignorable-control: New file.
54820         * modules/unictype/property-test: New file.
54821         * modules/unictype/property-byname: New file.
54822         * modules/unictype/property-all: New file.
54823         * modules/unictype/scripts: New file.
54824         * modules/unictype/scripts-all: New file.
54825         * modules/unictype/block-of: New file.
54826         * modules/unictype/block-test: New file.
54827         * modules/unictype/block-list: New file.
54828         * modules/unictype/block-all: New file.
54829         * modules/unictype/syntax-c-whitespace: New file.
54830         * modules/unictype/syntax-java-whitespace: New file.
54831         * modules/unictype/syntax-c-ident: New file.
54832         * modules/unictype/syntax-java-ident: New file.
54833         * modules/unictype/ctype-alnum: New file.
54834         * modules/unictype/ctype-alpha: New file.
54835         * modules/unictype/ctype-cntrl: New file.
54836         * modules/unictype/ctype-digit: New file.
54837         * modules/unictype/ctype-graph: New file.
54838         * modules/unictype/ctype-lower: New file.
54839         * modules/unictype/ctype-print: New file.
54840         * modules/unictype/ctype-punct: New file.
54841         * modules/unictype/ctype-space: New file.
54842         * modules/unictype/ctype-upper: New file.
54843         * modules/unictype/ctype-xdigit: New file.
54844         * modules/unictype/ctype-blank: New file.
54845         * lib/unictype/bidi_byname.c: New file.
54846         * lib/unictype/bidi_name.c: New file.
54847         * lib/unictype/bidi_of.c: New file.
54848         * lib/unictype/bidi_test.c: New file.
54849         * lib/unictype/bitmap.h: New file.
54850         * lib/unictype/block_test.c: New file.
54851         * lib/unictype/blocks.c: New file.
54852         * lib/unictype/categ_C.c: New file.
54853         * lib/unictype/categ_Cc.c: New file.
54854         * lib/unictype/categ_Cf.c: New file.
54855         * lib/unictype/categ_Cn.c: New file.
54856         * lib/unictype/categ_Co.c: New file.
54857         * lib/unictype/categ_Cs.c: New file.
54858         * lib/unictype/categ_L.c: New file.
54859         * lib/unictype/categ_Ll.c: New file.
54860         * lib/unictype/categ_Lm.c: New file.
54861         * lib/unictype/categ_Lo.c: New file.
54862         * lib/unictype/categ_Lt.c: New file.
54863         * lib/unictype/categ_Lu.c: New file.
54864         * lib/unictype/categ_M.c: New file.
54865         * lib/unictype/categ_Mc.c: New file.
54866         * lib/unictype/categ_Me.c: New file.
54867         * lib/unictype/categ_Mn.c: New file.
54868         * lib/unictype/categ_N.c: New file.
54869         * lib/unictype/categ_Nd.c: New file.
54870         * lib/unictype/categ_Nl.c: New file.
54871         * lib/unictype/categ_No.c: New file.
54872         * lib/unictype/categ_P.c: New file.
54873         * lib/unictype/categ_Pc.c: New file.
54874         * lib/unictype/categ_Pd.c: New file.
54875         * lib/unictype/categ_Pe.c: New file.
54876         * lib/unictype/categ_Pf.c: New file.
54877         * lib/unictype/categ_Pi.c: New file.
54878         * lib/unictype/categ_Po.c: New file.
54879         * lib/unictype/categ_Ps.c: New file.
54880         * lib/unictype/categ_S.c: New file.
54881         * lib/unictype/categ_Sc.c: New file.
54882         * lib/unictype/categ_Sk.c: New file.
54883         * lib/unictype/categ_Sm.c: New file.
54884         * lib/unictype/categ_So.c: New file.
54885         * lib/unictype/categ_Z.c: New file.
54886         * lib/unictype/categ_Zl.c: New file.
54887         * lib/unictype/categ_Zp.c: New file.
54888         * lib/unictype/categ_Zs.c: New file.
54889         * lib/unictype/categ_and.c: New file.
54890         * lib/unictype/categ_and_not.c: New file.
54891         * lib/unictype/categ_byname.c: New file.
54892         * lib/unictype/categ_name.c: New file.
54893         * lib/unictype/categ_none.c: New file.
54894         * lib/unictype/categ_of.c: New file.
54895         * lib/unictype/categ_or.c: New file.
54896         * lib/unictype/categ_test.c: New file.
54897         * lib/unictype/combining.c: New file.
54898         * lib/unictype/ctype_alnum.c: New file.
54899         * lib/unictype/ctype_alpha.c: New file.
54900         * lib/unictype/ctype_blank.c: New file.
54901         * lib/unictype/ctype_cntrl.c: New file.
54902         * lib/unictype/ctype_digit.c: New file.
54903         * lib/unictype/ctype_graph.c: New file.
54904         * lib/unictype/ctype_lower.c: New file.
54905         * lib/unictype/ctype_print.c: New file.
54906         * lib/unictype/ctype_punct.c: New file.
54907         * lib/unictype/ctype_space.c: New file.
54908         * lib/unictype/ctype_upper.c: New file.
54909         * lib/unictype/ctype_xdigit.c: New file.
54910         * lib/unictype/decdigit.c: New file.
54911         * lib/unictype/digit.c: New file.
54912         * lib/unictype/identsyntaxmap.h: New file.
54913         * lib/unictype/mirror.c: New file.
54914         * lib/unictype/numeric.c: New file.
54915         * lib/unictype/pr_alphabetic.c: New file.
54916         * lib/unictype/pr_ascii_hex_digit.c: New file.
54917         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54918         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54919         * lib/unictype/pr_bidi_block_separator.c: New file.
54920         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54921         * lib/unictype/pr_bidi_common_separator.c: New file.
54922         * lib/unictype/pr_bidi_control.c: New file.
54923         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54924         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54925         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54926         * lib/unictype/pr_bidi_european_digit.c: New file.
54927         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54928         * lib/unictype/pr_bidi_left_to_right.c: New file.
54929         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54930         * lib/unictype/pr_bidi_other_neutral.c: New file.
54931         * lib/unictype/pr_bidi_pdf.c: New file.
54932         * lib/unictype/pr_bidi_segment_separator.c: New file.
54933         * lib/unictype/pr_bidi_whitespace.c: New file.
54934         * lib/unictype/pr_byname.c: New file.
54935         * lib/unictype/pr_byname.gperf: New file.
54936         * lib/unictype/pr_combining.c: New file.
54937         * lib/unictype/pr_composite.c: New file.
54938         * lib/unictype/pr_currency_symbol.c: New file.
54939         * lib/unictype/pr_dash.c: New file.
54940         * lib/unictype/pr_decimal_digit.c: New file.
54941         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54942         * lib/unictype/pr_deprecated.c: New file.
54943         * lib/unictype/pr_diacritic.c: New file.
54944         * lib/unictype/pr_extender.c: New file.
54945         * lib/unictype/pr_format_control.c: New file.
54946         * lib/unictype/pr_grapheme_base.c: New file.
54947         * lib/unictype/pr_grapheme_extend.c: New file.
54948         * lib/unictype/pr_grapheme_link.c: New file.
54949         * lib/unictype/pr_hex_digit.c: New file.
54950         * lib/unictype/pr_hyphen.c: New file.
54951         * lib/unictype/pr_id_continue.c: New file.
54952         * lib/unictype/pr_id_start.c: New file.
54953         * lib/unictype/pr_ideographic.c: New file.
54954         * lib/unictype/pr_ids_binary_operator.c: New file.
54955         * lib/unictype/pr_ids_trinary_operator.c: New file.
54956         * lib/unictype/pr_ignorable_control.c: New file.
54957         * lib/unictype/pr_iso_control.c: New file.
54958         * lib/unictype/pr_join_control.c: New file.
54959         * lib/unictype/pr_left_of_pair.c: New file.
54960         * lib/unictype/pr_line_separator.c: New file.
54961         * lib/unictype/pr_logical_order_exception.c: New file.
54962         * lib/unictype/pr_lowercase.c: New file.
54963         * lib/unictype/pr_math.c: New file.
54964         * lib/unictype/pr_non_break.c: New file.
54965         * lib/unictype/pr_not_a_character.c: New file.
54966         * lib/unictype/pr_numeric.c: New file.
54967         * lib/unictype/pr_other_alphabetic.c: New file.
54968         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54969         * lib/unictype/pr_other_grapheme_extend.c: New file.
54970         * lib/unictype/pr_other_id_continue.c: New file.
54971         * lib/unictype/pr_other_id_start.c: New file.
54972         * lib/unictype/pr_other_lowercase.c: New file.
54973         * lib/unictype/pr_other_math.c: New file.
54974         * lib/unictype/pr_other_uppercase.c: New file.
54975         * lib/unictype/pr_paired_punctuation.c: New file.
54976         * lib/unictype/pr_paragraph_separator.c: New file.
54977         * lib/unictype/pr_pattern_syntax.c: New file.
54978         * lib/unictype/pr_pattern_white_space.c: New file.
54979         * lib/unictype/pr_private_use.c: New file.
54980         * lib/unictype/pr_punctuation.c: New file.
54981         * lib/unictype/pr_quotation_mark.c: New file.
54982         * lib/unictype/pr_radical.c: New file.
54983         * lib/unictype/pr_sentence_terminal.c: New file.
54984         * lib/unictype/pr_soft_dotted.c: New file.
54985         * lib/unictype/pr_space.c: New file.
54986         * lib/unictype/pr_terminal_punctuation.c: New file.
54987         * lib/unictype/pr_test.c: New file.
54988         * lib/unictype/pr_titlecase.c: New file.
54989         * lib/unictype/pr_unassigned_code_value.c: New file.
54990         * lib/unictype/pr_unified_ideograph.c: New file.
54991         * lib/unictype/pr_uppercase.c: New file.
54992         * lib/unictype/pr_variation_selector.c: New file.
54993         * lib/unictype/pr_white_space.c: New file.
54994         * lib/unictype/pr_xid_continue.c: New file.
54995         * lib/unictype/pr_xid_start.c: New file.
54996         * lib/unictype/pr_zero_width.c: New file.
54997         * lib/unictype/scripts.c: New file.
54998         * lib/unictype/sy_c_ident.c: New file.
54999         * lib/unictype/sy_c_whitespace.c: New file.
55000         * lib/unictype/sy_java_ident.c: New file.
55001         * lib/unictype/sy_java_whitespace.c: New file.
55002
55003         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55004         Unicode 5.0.0.
55005         * lib/unictype/blocks.h: Likewise.
55006         * lib/unictype/categ_C.h: Likewise.
55007         * lib/unictype/categ_Cc.h: Likewise.
55008         * lib/unictype/categ_Cf.h: Likewise.
55009         * lib/unictype/categ_Cn.h: Likewise.
55010         * lib/unictype/categ_Co.h: Likewise.
55011         * lib/unictype/categ_Cs.h: Likewise.
55012         * lib/unictype/categ_L.h: Likewise.
55013         * lib/unictype/categ_Ll.h: Likewise.
55014         * lib/unictype/categ_Lm.h: Likewise.
55015         * lib/unictype/categ_Lo.h: Likewise.
55016         * lib/unictype/categ_Lt.h: Likewise.
55017         * lib/unictype/categ_Lu.h: Likewise.
55018         * lib/unictype/categ_M.h: Likewise.
55019         * lib/unictype/categ_Mc.h: Likewise.
55020         * lib/unictype/categ_Me.h: Likewise.
55021         * lib/unictype/categ_Mn.h: Likewise.
55022         * lib/unictype/categ_N.h: Likewise.
55023         * lib/unictype/categ_Nd.h: Likewise.
55024         * lib/unictype/categ_Nl.h: Likewise.
55025         * lib/unictype/categ_No.h: Likewise.
55026         * lib/unictype/categ_P.h: Likewise.
55027         * lib/unictype/categ_Pc.h: Likewise.
55028         * lib/unictype/categ_Pd.h: Likewise.
55029         * lib/unictype/categ_Pe.h: Likewise.
55030         * lib/unictype/categ_Pf.h: Likewise.
55031         * lib/unictype/categ_Pi.h: Likewise.
55032         * lib/unictype/categ_Po.h: Likewise.
55033         * lib/unictype/categ_Ps.h: Likewise.
55034         * lib/unictype/categ_S.h: Likewise.
55035         * lib/unictype/categ_Sc.h: Likewise.
55036         * lib/unictype/categ_Sk.h: Likewise.
55037         * lib/unictype/categ_Sm.h: Likewise.
55038         * lib/unictype/categ_So.h: Likewise.
55039         * lib/unictype/categ_Z.h: Likewise.
55040         * lib/unictype/categ_Zl.h: Likewise.
55041         * lib/unictype/categ_Zp.h: Likewise.
55042         * lib/unictype/categ_Zs.h: Likewise.
55043         * lib/unictype/categ_of.h: Likewise.
55044         * lib/unictype/combining.h: Likewise.
55045         * lib/unictype/ctype_alnum.h: Likewise.
55046         * lib/unictype/ctype_alpha.h: Likewise.
55047         * lib/unictype/ctype_blank.h: Likewise.
55048         * lib/unictype/ctype_cntrl.h: Likewise.
55049         * lib/unictype/ctype_digit.h: Likewise.
55050         * lib/unictype/ctype_graph.h: Likewise.
55051         * lib/unictype/ctype_lower.h: Likewise.
55052         * lib/unictype/ctype_print.h: Likewise.
55053         * lib/unictype/ctype_punct.h: Likewise.
55054         * lib/unictype/ctype_space.h: Likewise.
55055         * lib/unictype/ctype_upper.h: Likewise.
55056         * lib/unictype/ctype_xdigit.h: Likewise.
55057         * lib/unictype/decdigit.h: Likewise.
55058         * lib/unictype/digit.h: Likewise.
55059         * lib/unictype/mirror.h: Likewise.
55060         * lib/unictype/numeric.h: Likewise.
55061         * lib/unictype/pr_alphabetic.h: Likewise.
55062         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55063         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55064         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55065         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55066         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55067         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55068         * lib/unictype/pr_bidi_control.h: Likewise.
55069         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55070         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55071         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55072         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55073         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55074         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55075         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55076         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55077         * lib/unictype/pr_bidi_pdf.h: Likewise.
55078         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55079         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55080         * lib/unictype/pr_combining.h: Likewise.
55081         * lib/unictype/pr_composite.h: Likewise.
55082         * lib/unictype/pr_currency_symbol.h: Likewise.
55083         * lib/unictype/pr_dash.h: Likewise.
55084         * lib/unictype/pr_decimal_digit.h: Likewise.
55085         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55086         * lib/unictype/pr_deprecated.h: Likewise.
55087         * lib/unictype/pr_diacritic.h: Likewise.
55088         * lib/unictype/pr_extender.h: Likewise.
55089         * lib/unictype/pr_format_control.h: Likewise.
55090         * lib/unictype/pr_grapheme_base.h: Likewise.
55091         * lib/unictype/pr_grapheme_extend.h: Likewise.
55092         * lib/unictype/pr_grapheme_link.h: Likewise.
55093         * lib/unictype/pr_hex_digit.h: Likewise.
55094         * lib/unictype/pr_hyphen.h: Likewise.
55095         * lib/unictype/pr_id_continue.h: Likewise.
55096         * lib/unictype/pr_id_start.h: Likewise.
55097         * lib/unictype/pr_ideographic.h: Likewise.
55098         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55099         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55100         * lib/unictype/pr_ignorable_control.h: Likewise.
55101         * lib/unictype/pr_iso_control.h: Likewise.
55102         * lib/unictype/pr_join_control.h: Likewise.
55103         * lib/unictype/pr_left_of_pair.h: Likewise.
55104         * lib/unictype/pr_line_separator.h: Likewise.
55105         * lib/unictype/pr_logical_order_exception.h: Likewise.
55106         * lib/unictype/pr_lowercase.h: Likewise.
55107         * lib/unictype/pr_math.h: Likewise.
55108         * lib/unictype/pr_non_break.h: Likewise.
55109         * lib/unictype/pr_not_a_character.h: Likewise.
55110         * lib/unictype/pr_numeric.h: Likewise.
55111         * lib/unictype/pr_other_alphabetic.h: Likewise.
55112         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55113         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55114         * lib/unictype/pr_other_id_continue.h: Likewise.
55115         * lib/unictype/pr_other_id_start.h: Likewise.
55116         * lib/unictype/pr_other_lowercase.h: Likewise.
55117         * lib/unictype/pr_other_math.h: Likewise.
55118         * lib/unictype/pr_other_uppercase.h: Likewise.
55119         * lib/unictype/pr_paired_punctuation.h: Likewise.
55120         * lib/unictype/pr_paragraph_separator.h: Likewise.
55121         * lib/unictype/pr_pattern_syntax.h: Likewise.
55122         * lib/unictype/pr_pattern_white_space.h: Likewise.
55123         * lib/unictype/pr_private_use.h: Likewise.
55124         * lib/unictype/pr_punctuation.h: Likewise.
55125         * lib/unictype/pr_quotation_mark.h: Likewise.
55126         * lib/unictype/pr_radical.h: Likewise.
55127         * lib/unictype/pr_sentence_terminal.h: Likewise.
55128         * lib/unictype/pr_soft_dotted.h: Likewise.
55129         * lib/unictype/pr_space.h: Likewise.
55130         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55131         * lib/unictype/pr_titlecase.h: Likewise.
55132         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55133         * lib/unictype/pr_unified_ideograph.h: Likewise.
55134         * lib/unictype/pr_uppercase.h: Likewise.
55135         * lib/unictype/pr_variation_selector.h: Likewise.
55136         * lib/unictype/pr_white_space.h: Likewise.
55137         * lib/unictype/pr_xid_continue.h: Likewise.
55138         * lib/unictype/pr_xid_start.h: Likewise.
55139         * lib/unictype/pr_zero_width.h: Likewise.
55140         * lib/unictype/scripts.h: Likewise.
55141         * lib/unictype/scripts_byname.gperf: Likewise.
55142         * lib/unictype/sy_c_ident.h: Likewise.
55143         * lib/unictype/sy_c_whitespace.h: Likewise.
55144         * lib/unictype/sy_java_ident.h: Likewise.
55145         * lib/unictype/sy_java_whitespace.h: Likewise.
55146
55147         * lib/unictype/Makefile: New file.
55148         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55149         glibc.
55150         * lib/unictype/3level.h: New file, copied from glibc.
55151         * lib/unictype/3levelbit.h: New file.
55152
55153 2007-11-11  Bruno Haible  <bruno@clisp.org>
55154
55155         * modules/gperf: New file.
55156         * modules/iconv_open (Depends-on): Add it.
55157         (Makefile.am): Remove the GPERF definition.
55158
55159 2007-11-11  Bruno Haible  <bruno@clisp.org>
55160
55161         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55162         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55163
55164 2007-11-11  Bruno Haible  <bruno@clisp.org>
55165
55166         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55167         (usage): Remove function.
55168
55169 2007-11-11  Bruno Haible  <bruno@clisp.org>
55170
55171         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55172         gl_FUNC_CEILF_LIBS.
55173         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55174         gl_FUNC_CEIL_LIBS.
55175         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55176         gl_FUNC_CEILL_LIBS.
55177         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55178         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55179         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55180
55181 2007-11-11  Bruno Haible  <bruno@clisp.org>
55182
55183         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55184         roundf were declared but do not exist on functions.
55185         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55186         roundl were declared but do not exist on functions.
55187         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55188         HAVE_FLOORL_AND_CEILL, respectively.
55189         Needed for Sun C on Solaris 10.
55190
55191 2007-11-11  Bruno Haible  <bruno@clisp.org>
55192
55193         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55194         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55195         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55196         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55197         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55198         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55199         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55200         HAVE_DECL_ROUNDF.
55201         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55202         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55204         of HAVE_DECL_ROUND*.
55205         * modules/math (Makefile.am): Update.
55206
55207 2007-11-10  Bruno Haible  <bruno@clisp.org>
55208
55209         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55210         ptrdiff_t as m4/intl.m4.
55211
55212 2007-11-10  Jim Meyering  <meyering@redhat.com>
55213
55214         Avoid link failure for the argmatch test.
55215         * tests/test-argmatch.c (usage): Define function to avoid a link
55216         failure: argmatch_die requires a usage function.
55217
55218 2007-11-09  Bruno Haible  <bruno@clisp.org>
55219
55220         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55221         * doc/functions/vsnprintf.texi: Likewise.
55222         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55223         with a size argument < 2.
55224
55225 2007-11-09  Bruno Haible  <bruno@clisp.org>
55226
55227         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55228         buffer. Fixes an inefficiency introduced on 2007-11-03.
55229
55230 2007-11-09  Bruno Haible  <bruno@clisp.org>
55231
55232         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55233         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55234
55235 2007-11-08  Jim Meyering  <meyering@redhat.com>
55236
55237         Change cache variable name prefix "jm_" to "gl_" everywhere.
55238         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55239         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55240         * m4/uptime.m4: s/gl_/jm_/
55241
55242 2007-11-07  Bruno Haible  <bruno@clisp.org>
55243
55244         Update to GNU gettext 0.17.
55245         * m4/intl.m4: Update to GNU gettext 0.17.
55246         * m4/po.m4: Likewise.
55247         * modules/gettext (Files): Remove m4/ulonglong.m4.
55248         (configure.ac): Require gettext infrastructure from version 0.17.
55249
55250 2007-11-06  Bruno Haible  <bruno@clisp.org>
55251
55252         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55253         symbolic values are not defined in a public header.
55254         * lib/freadable.c (freadable) [QNX]: Likewise.
55255         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55256         * lib/freading.c (freading) [QNX]: Likewise.
55257         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55258         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55259         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55260         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55261         Reported by Alain Magloire.
55262
55263         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55264
55265 2007-11-05  Bruno Haible  <bruno@clisp.org>
55266
55267         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55268         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55269         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55270         Reported by Eric Blake.
55271
55272 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55273             Bruno Haible  <bruno@clisp.org>
55274
55275         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55276         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55277         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55278         (malloc): Undefine also before including <stdlib.h>.
55279         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55280         Needed on OSF/1 4.0.
55281
55282 2007-11-05  Jim Meyering  <meyering@redhat.com>
55283
55284         git-version-gen: sync from coreutils.
55285         * build-aux/git-version-gen: Add comments.
55286         Change the first '-' to '.' in the snapshot version string,
55287         e.g., 6.9-377-08144 -> 6.9.377-08144
55288         Remove first parameter.
55289         Don't declare a version "-dirty" merely because a time
55290         stamp has changed.
55291
55292 2007-11-04  Bruno Haible  <bruno@clisp.org>
55293
55294         * lib/lock.h: Protect all macro definitions containing an 'if'
55295         statement through a "do { ... } while (0)".
55296         * lib/tls.h: Likewise.
55297
55298 2007-11-04  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55301
55302 2007-11-04  Bruno Haible  <bruno@clisp.org>
55303
55304         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55305         * modules/fprintf-posix (Depends-on): Add nocrash.
55306         * modules/snprintf-posix (Depends-on): Likewise.
55307         * modules/sprintf-posix (Depends-on): Likewise.
55308         * modules/vasnprintf-posix (Depends-on): Likewise.
55309         * modules/vasprintf-posix (Depends-on): Likewise.
55310         * modules/vfprintf-posix (Depends-on): Likewise.
55311         * modules/vsnprintf-posix (Depends-on): Likewise.
55312         * modules/vsprintf-posix (Depends-on): Likewise.
55313         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55314         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55315         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55316         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55317         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55318         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55319         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55320
55321 2007-11-04  Bruno Haible  <bruno@clisp.org>
55322
55323         * modules/nocrash: New file.
55324         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55325         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55326
55327 2007-11-04  Bruno Haible  <bruno@clisp.org>
55328
55329         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55330         precision handling.
55331         * tests/test-vasprintf-posix.c (test_function): Likewise.
55332         * tests/test-snprintf-posix.h (test_function): Likewise.
55333         * tests/test-sprintf-posix.h (test_function): Likewise.
55334
55335         Fix *printf behaviour for large precisions on mingw and BeOS.
55336         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55337         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55339         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55340         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55341         gl_PRINTF_PRECISION and test its result. Invoke
55342         gl_PREREQ_VASNPRINTF_PRECISION.
55343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55344         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55350         * doc/functions/fprintf.texi: Update.
55351         * doc/functions/printf.texi: Update.
55352         * doc/functions/snprintf.texi: Update.
55353         * doc/functions/sprintf.texi: Update.
55354         * doc/functions/vfprintf.texi: Update.
55355         * doc/functions/vprintf.texi: Update.
55356         * doc/functions/vsnprintf.texi: Update.
55357         * doc/functions/vsprintf.texi: Update.
55358
55359 2007-11-04  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55362
55363 2007-11-04  Bruno Haible  <bruno@clisp.org>
55364
55365         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55366         Reported by Sylvain Beucler <beuc@gnu.org>.
55367
55368 2007-11-03  Bruno Haible  <bruno@clisp.org>
55369
55370         * tests/test-fprintf-posix2.sh: New file.
55371         * tests/test-fprintf-posix2.c: New file.
55372         * modules/fprintf-posix-tests (Files): Add them.
55373         (TESTS): Add test-fprintf-posix2.sh.
55374         (configure.ac): Check for getrlimit and setrlimit.
55375         (check_PROGRAMS): Add test-fprintf-posix2.
55376
55377         * tests/test-printf-posix2.sh: New file.
55378         * tests/test-printf-posix2.c: New file.
55379         * modules/printf-posix-tests (Files): Add them.
55380         (TESTS): Add test-printf-posix2.sh.
55381         (configure.ac): Check for getrlimit and setrlimit.
55382         (check_PROGRAMS): Add test-printf-posix2.
55383
55384         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55385         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55386         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55387         (decode_double): New function, copied from decode_long_double.
55388         (scale10_round_decimal_decoded): New function, extracted from
55389         scale10_round_decimal_long_double.
55390         (scale10_round_decimal_long_double): Use it.
55391         (scale10_round_decimal_double): New function.
55392         (floorlog10): New function.
55393         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55395         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55396         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55397         gl_PRINTF_ENOMEM and test its result. Invoke
55398         gl_PREREQ_VASNPRINTF_ENOMEM.
55399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55400         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55403         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55405         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55406         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55407         * modules/snprintf-posix (Depends-on): Likewise.
55408         * modules/sprintf-posix (Depends-on): Likewise.
55409         * modules/vasnprintf-posix (Depends-on): Likewise.
55410         * modules/vasprintf-posix (Depends-on): Likewise.
55411         * modules/vfprintf-posix (Depends-on): Likewise.
55412         * modules/vsnprintf-posix (Depends-on): Likewise.
55413         * modules/vsprintf-posix (Depends-on): Likewise.
55414         * doc/functions/fprintf.texi: Update.
55415         * doc/functions/printf.texi: Update.
55416         * doc/functions/snprintf.texi: Update.
55417         * doc/functions/sprintf.texi: Update.
55418         * doc/functions/vfprintf.texi: Update.
55419         * doc/functions/vprintf.texi: Update.
55420         * doc/functions/vsnprintf.texi: Update.
55421         * doc/functions/vsprintf.texi: Update.
55422
55423 2007-11-03  Bruno Haible  <bruno@clisp.org>
55424
55425         * modules/frexp-nolibm-tests: New file.
55426
55427         * modules/frexp-nolibm: New file.
55428         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55429
55430 2007-11-03  Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55433         value is C99 compliant.
55434         Needed for OSF/1 5.1.
55435
55436 2007-11-03  Bruno Haible  <bruno@clisp.org>
55437
55438         Fix out-of-memory handling of vasnprintf.
55439         * lib/printf-parse.c: Include <errno.h>.
55440         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55441         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55442         is already set.
55443
55444 2007-11-02  Eric Blake  <ebb9@byu.net>
55445
55446         Fix tests on cygwin.
55447         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55448
55449 2007-11-01  Bruno Haible  <bruno@clisp.org>
55450
55451         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55452         warning.
55453         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55454         needed for POSIX compatibility.
55455
55456 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55457
55458         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55459         for compatibility with GNU.
55460
55461 2007-11-01  Bruno Haible  <bruno@clisp.org>
55462
55463         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55464         (putenv): Renamed from rpl_putenv. Change argument type from
55465         'const char *' to 'char *'.
55466         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55467         of defining putenv in config.h, just set REPLACE_PUTENV.
55468         * modules/putenv (Depends-on): Add stdlib.
55469         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55470         (Include): Use <stdlib.h>.
55471         * lib/stdlib.in.h (putenv): New declaration.
55472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55473         REPLACE_PUTENV.
55474         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55475         REPLACE_PUTENV.
55476         Needed for MacOS X 10.5.0.
55477         Reported by Peter O'Gorman <peter@pogma.com>.
55478
55479 2007-11-01  Jim Meyering  <meyering@redhat.com>
55480
55481         Treat an empty date string exactly like "0".
55482         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55483         if the remaining date string (to be parsed) is empty, use "0".
55484         Reported by Mischa Molhoek and discussed in this thread:
55485         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55486
55487 2007-10-31  Bruno Haible  <bruno@clisp.org>
55488
55489         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55490         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55491         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55492         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55493         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55494         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55495
55496 2007-10-31  Bruno Haible  <bruno@clisp.org>
55497
55498         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55499         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55500         (AC_TYPE_LONG_LONG_INT): Use it.
55501         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55502         it as well.
55503         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55504         to m4/longlong.m4.
55505         * modules/stdint (Files): Remove m4/ulonglong.m4.
55506         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55507         m4/ulonglong.m4.
55508         * modules/strtoumax (Files): Likewise.
55509
55510 2007-10-30  Bruno Haible  <bruno@clisp.org>
55511
55512         * modules/xvasprintf-posix: New file.
55513         Suggested by Eric Blake.
55514
55515 2007-10-30  Bruno Haible  <bruno@clisp.org>
55516
55517         * modules/xprintf-posix-tests: New file.
55518         * tests/test-xprintf-posix.sh: New file.
55519         * tests/test-xprintf-posix.c: New file.
55520         * tests/test-xfprintf-posix.c: New file.
55521
55522         * modules/xprintf-posix: New file.
55523
55524 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55525
55526         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55527         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55528         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55529
55530 2007-10-29  Bruno Haible  <bruno@clisp.org>
55531
55532         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55533         contain the special marker '_cv_'.
55534         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55535         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55536         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55537         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55538         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55539         Reported by Ralf Wildenhues.
55540
55541 2007-10-29  Bruno Haible  <bruno@clisp.org>
55542
55543         * gnulib-tool (func_import): When --lgpl is not specified, set
55544         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55545         GPLv3.
55546         Reported by Simon Josefsson.
55547
55548 2007-10-28  Bruno Haible  <bruno@clisp.org>
55549
55550         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55551         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55552         HAVE_DECL_ISFINITE.
55553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55554         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55555         HAVE_DECL_ISFINITE.
55556
55557 2007-10-28  Bruno Haible  <bruno@clisp.org>
55558
55559         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55560         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55561
55562 2007-10-28  Bruno Haible  <bruno@clisp.org>
55563
55564         Fix link errors with Sun C 5.0 on Solaris 10.
55565         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55566         function is declared but not present in the compiler's libm.
55567         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55568         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55569         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55570         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55571         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55572         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55573         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55575         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55576         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55577         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55578         HAVE_DECL_FLOORL.
55579
55580 2007-10-28  Bruno Haible  <bruno@clisp.org>
55581
55582         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55583         gl_FUNC_FLOORL. Cache the result.
55584         (gl_FUNC_FLOORL): Use it.
55585         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55586         gl_FUNC_CEILL. Cache the result.
55587         (gl_FUNC_CEILL): Use it.
55588
55589         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55590         gl_FUNC_FLOOR. Cache the result.
55591         (gl_FUNC_FLOOR): Use it.
55592         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55593         gl_FUNC_CEIL. Cache the result.
55594         (gl_FUNC_CEIL): Use it.
55595
55596         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55597         gl_FUNC_FLOORF. Cache the result.
55598         (gl_FUNC_FLOORF): Use it.
55599         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55600         gl_FUNC_CEILF. Cache the result.
55601         (gl_FUNC_CEILF): Use it.
55602
55603 2007-10-28  Bruno Haible  <bruno@clisp.org>
55604
55605         * gnulib-tool: Allow specifying the LGPL version number through
55606         --lgpl=2 or --lgpl=3.
55607         (func_usage): Document --lgpl with argument.
55608         Handle --lgpl=... arguments.
55609         (func_import): Recognize also gl_LGPL calls with an argument. When
55610         --lgpl=2 is used and the module's license is just LGPL, report an
55611         error. Set sed_transform_lib_file according to the lgpl variable. In
55612         the generated files, use --lgpl or gl_LGPL invocations with argument,
55613         if necessary.
55614         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55615         an LGPv2+ license.
55616         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55617         gl_LGPL macro.
55618
55619 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55620             Bruno Haible  <bruno@clisp.org>
55621
55622         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55623         (u16_uctomb_aux): Likewise.
55624         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55625         !HAVE_INLINE.
55626         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55627
55628 2007-10-28  Bruno Haible  <bruno@clisp.org>
55629
55630         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55631         Invoke AM_GETTEXT_OPTION if it exists.
55632         * modules/vasprintf: Likewise.
55633         * modules/verror: Likewise.
55634         * modules/xprintf: Likewise.
55635         * modules/xvasprintf: Likewise.
55636
55637 2007-10-27  Ben Pfaff  <blp@gnu.org>
55638
55639         * lib/math.in.h: Define isfinite macro and prototypes for
55640         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55641         implementations.
55642         * m4/math_h.m4: New substitutions for isfinite module.
55643         * lib/isfinite.c: New file.
55644         * m4/isfinite.m4: New file.
55645         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55646         * modules/isfinite: New file.
55647         * modules/isfinite-tests: New file.
55648         * tests/tests-isfinite.c: New file.
55649         * doc/functions/isfinite.texi: Mention isfinite module.
55650         * MODULES.html.sh: Mention new module.
55651
55652 2007-10-27  Ben Pfaff  <blp@gnu.org>
55653
55654         Ralf Wildenhues reported that Tru64 4.0D declares the round
55655         functions but does not have definitions.
55656         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55657         cannot be found in any library, set the output variable to
55658         "missing" instead of "".
55659         * m4/round.m4: Also use our substitute if we cannot find round in
55660         any library, even if it is declared.
55661         * m4/roundf.m4: Likewise for roundf.
55662         * m4/roundl.m4: Likewise for roundl.
55663         * lib/math.in.h: Undefine roundf, round, roundl before defining
55664         their replacements, to allow for hypothetical systems where these
55665         may be defined as macros but not available in libraries.
55666
55667 2007-10-27  Bruno Haible  <bruno@clisp.org>
55668
55669         * doc/gnulib.texi: Invoke @firstparagraphindent.
55670         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55671         changes in gnulib.
55672         (Source changes): New section.
55673
55674 2007-10-26  Bruno Haible  <bruno@clisp.org>
55675
55676         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55677         borrowed from autoconf.
55678
55679 2007-10-26  Bruno Haible  <bruno@clisp.org>
55680
55681         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55682         strerror returned the empty string. Needed on HP-UX 11.00.
55683
55684 2007-10-24  Micah Cowan  <micah@cowan.name>
55685
55686         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55687         * build-aux/bootstrap: Remove support for now-unnecessary option,
55688         --cvs-user, and envvars CVS_USER, CVS_RSH.
55689
55690 2007-10-24  Jim Meyering  <meyering@redhat.com>
55691
55692         Avoid diagnostics from sha1sum when there is no cached checksum.
55693         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55694         if the po.s1 file hasn't been created yet.
55695
55696         * build-aux/bootstrap: Sync from coreutils:
55697         2007-10-24  Jim Meyering  <meyering@redhat.com>
55698         Get gnulib from the git repository, not from an obsolete cvs one.
55699         * build-aux/bootstrap: Suggestion from Micah Cowan.
55700         2007-10-04  Jim Meyering  <jim@meyering.net>
55701         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55702         (update_po_files): Work also when there are no .po files in po/.
55703
55704 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55705
55706         * README: Append ".git" to git and cg examples.
55707         Problem reported by Benoit Sigoure.
55708
55709 2007-10-23  Micah Cowan  <micah@cowan.name>
55710
55711         * users.txt: Add wget.
55712
55713 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55714
55715         Fix linking of some unistdio tests on FreeBSD.
55716         * modules/unistdio/u16-vsnprintf-tests
55717         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55718         * modules/unistdio/u16-vsprintf-tests
55719         (test_u16_vsnprintf1_LDADD): Likewise.
55720         * modules/unistdio/u32-vsnprintf-tests
55721         (test_u32_vsnprintf1_LDADD): Likewise.
55722         * modules/unistdio/u32-vsprintf-tests
55723         (test_u32_vsprintf1_LDADD): Likewise.
55724         * modules/unistdio/u8-vsnprintf-tests
55725         (test_u8_vsnprintf1_LDADD): Likewise.
55726         * modules/unistdio/u8-vsprintf-tests
55727         (test_u8_vsprintf1_LDADD): Likewise.
55728         * modules/unistdio/ulc-vsnprintf-tests
55729         (test_ulc_vsnprintf1_LDADD): Likewise.
55730         * modules/unistdio/ulc-vsprintf-tests
55731         (test_ulc_vsprintf1_LDADD): Likewise.
55732
55733         Fix linking of some uniconv tests on FreeBSD.
55734         * modules/uniconv/u16-conv-from-enc-tests
55735         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55736         * modules/uniconv/u16-conv-to-enc-tests
55737         (test_u16_conv_to_enc_LDADD): Likewise.
55738         * modules/uniconv/u16-strconv-from-enc-tests
55739         (test_u16_strconv_from_enc_LDADD): Likewise.
55740         * modules/uniconv/u16-strconv-to-enc-tests
55741         (test_u16_strconv_to_enc_LDADD): Likewise.
55742         * modules/uniconv/u32-conv-from-enc-tests
55743         (test_u32_conv_from_enc_LDADD): Likewise.
55744         * modules/uniconv/u32-conv-to-enc-tests
55745         (test_u32_conv_to_enc_LDADD): Likewise.
55746         * modules/uniconv/u32-strconv-from-enc-tests
55747         (test_u32_strconv_from_enc_LDADD): Likewise.
55748         * modules/uniconv/u32-strconv-to-enc-tests
55749         (test_u32_strconv_to_enc_LDADD): Likewise.
55750         * modules/uniconv/u8-conv-from-enc-tests
55751         (test_u8_conv_from_enc_LDADD): Likewise.
55752         * modules/uniconv/u8-conv-to-enc-tests
55753         (test_u8_conv_to_enc_LDADD): Likewise.
55754         * modules/uniconv/u8-strconv-from-enc-tests
55755         (test_u8_strconv_from_enc_LDADD): Likewise.
55756         * modules/uniconv/u8-strconv-to-enc-tests
55757         (test_u8_strconv_to_enc_LDADD): Likewise.
55758
55759 2007-10-22  Bruno Haible  <bruno@clisp.org>
55760
55761         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55762         size.
55763
55764 2007-10-22  Eric Blake  <ebb9@byu.net>
55765
55766         Tweak x*printf documentation.
55767         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55768         variable name and comments.
55769         Suggested by Bruno Haible.
55770
55771 2007-10-22  Bruno Haible  <bruno@clisp.org>
55772
55773         * lib/acl.c (copy_acl): Fix file name in comment.
55774
55775 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55776
55777         Fix Tru64 problem with stdbool.h.
55778         * lib/stdbool.in.h (false, true):
55779         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55780         Don't declare as an enum in this situation; it runs afoul of Tru64.
55781         Problem reported by Steven M. Schweda in
55782         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55783
55784 2007-10-22  Eric Blake  <ebb9@byu.net>
55785
55786         Also wrap vf?printf.
55787         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55788         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55789         (xvprintf, xvfprintf): New functions.
55790
55791 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55792
55793         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55794         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55795
55796         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55797         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55798
55799 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55800
55801         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55802         by Bruno Haible.
55803
55804 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55805
55806         * lib/getloadavg.c
55807         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55808         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55809
55810         * tests/test-i-ring.c: Work for C89.
55811
55812 2007-10-22  Bruno Haible  <bruno@clisp.org>
55813
55814         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55815         -1u, in preprocessor expression, so that we don't test for the bug
55816         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55817         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55818
55819 2007-10-22  Eric Blake  <ebb9@byu.net>
55820
55821         * tests/test-yesno.sh: Silence stderr during test.
55822
55823 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55824
55825         * modules/crypto/gc-camellia: New file.
55826
55827         * m4/gc-camellia.m4: New file.
55828
55829         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55830
55831         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55832
55833 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55834
55835         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55836         --help to stdout.  Reported by sms@antinode.org (Steven
55837         M. Schweda).
55838
55839 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55840
55841         * users.txt: Fix link to libksba.
55842
55843 2007-10-21  Ben Pfaff  <blp@gnu.org>
55844
55845         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55846         round.c roundf implementation that depends on floorf and ceilf to
55847         be tested unconditionally.
55848
55849 2007-10-21  Ben Pfaff  <blp@gnu.org>
55850
55851         * m4/check-libm-func.m4: Removed.
55852         * m4/check-math-lib.m4: New file.
55853         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55854         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55855         definition and lack of AC_LIBOBJ([roundf]).
55856         * m4/roundl.m4: Ditto, and similarly for roundl.
55857         * modules/round: Reference new m4 file.
55858         * modules/roundf: Ditto.
55859         * modules/roundl: Ditto.
55860         * tests/test-round2.c (main): Use ROUND instead of round.
55861         Bug report from Bruno Haible.
55862
55863 2007-10-21  Bruno Haible  <bruno@clisp.org>
55864
55865         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55866         context.
55867
55868 2007-10-21  Bruno Haible  <bruno@clisp.org>
55869
55870         * tests/test-wcwidth.c (main): Allow negative result for some control
55871         characters.
55872
55873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55874         Needed on OSF/1 5.1.
55875
55876 2007-10-21  Bruno Haible  <bruno@clisp.org>
55877
55878         * tests/test-floorf1.c: Include isnanf.h.
55879         (main): Use isnanf() instead of isnan().
55880         * tests/test-ceilf1.c: Include isnanf.h.
55881         (main): Use isnanf() instead of isnan().
55882         * tests/test-truncf1.c: Include isnanf.h.
55883         (main): Use isnanf() instead of isnan().
55884         * tests/test-roundf1.c: Include isnanf.h.
55885         (main): Use isnanf() instead of isnan().
55886
55887 2007-10-21  Eric Blake  <ebb9@byu.net>
55888
55889         * users.txt: Update URL for m4.
55890
55891 2007-10-21  Bruno Haible  <bruno@clisp.org>
55892
55893         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55894
55895 2007-10-21  Bruno Haible  <bruno@clisp.org>
55896
55897         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55898         Git's management files if the CVS files are not present.
55899
55900 2007-10-20  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55903         gcc-3.4.x.
55904
55905 2007-10-20  Ben Pfaff  <blp@gnu.org>
55906
55907         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55908         implementations.
55909         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55910         * lib/round.c: New file.
55911         * lib/roundf.c: New file.
55912         * lib/roundl.c: New file.
55913         * m4/round.m4: New file.
55914         * m4/roundf.m4: New file.
55915         * m4/roundl.m4: New file.
55916         * m4/check-libm-func-m4: New file.
55917         * modules/math: Replace round, roundf, roundl related @VARS@ in
55918         math.in.h.
55919         * modules/round: New file.
55920         * modules/round-tests: New file.
55921         * modules/roundf: New file.
55922         * modules/roundf-tests: New file.
55923         * modules/roundl: New file.
55924         * modules/roundl-tests: New file.
55925         * tests/test-round1.c: New file.
55926         * tests/test-round2.c: New file.
55927         * tests/test-roundf1.c: New file.
55928         * tests/test-roundf2.c: New file.
55929         * tests/test-roundl.c: New file.
55930         * doc/functions/round.texi: Mention round module.
55931         * doc/functions/roundf.texi: Mention roundf module.
55932         * doc/functions/roundl.texi: Mention roundl module.
55933         * MODULES.html.sh: Mention new modules.
55934         Thanks to Bruno Haible for suggestions.
55935
55936 2007-10-20  Jim Meyering  <meyering@redhat.com>
55937
55938         * lib/xprintf.c: Include <config.h> unconditionally.
55939
55940         Change xprintf's license to GPL.
55941         * modules/xprintf (License): s/LGPL/GPL/, since this module
55942         depends on modules (exit and exitfail) which are GPL.
55943         Suggestion from Bruno Haible.
55944
55945         xprintf fixes.
55946         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55947         Use a clearer diagnostic.
55948         Patch from Bruno Haible.
55949
55950 2007-10-20  Bruno Haible  <bruno@clisp.org>
55951
55952         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55953         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55954         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55955
55956 2007-10-20  Bruno Haible  <bruno@clisp.org>
55957
55958         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55959         precision in the comparison result > x - 1 or similar.
55960         * tests/test-ceilf2.c (correct_result_p): Likewise.
55961         * tests/test-truncf2.c (correct_result_p): Likewise.
55962         * tests/test-trunc2.c (correct_result_p): Likewise.
55963         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55964
55965 2007-10-20  Bruno Haible  <bruno@clisp.org>
55966
55967         * modules/ceil: New file.
55968         * m4/ceil.m4: New file.
55969         * doc/functions/ceil.texi: Mention the 'ceil' module.
55970
55971 2007-10-20  Bruno Haible  <bruno@clisp.org>
55972
55973         * modules/floor: New file.
55974         * m4/floor.m4: New file.
55975         * doc/functions/floor.texi: Mention the 'floor' module.
55976
55977 2007-10-20  Bruno Haible  <bruno@clisp.org>
55978
55979         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55980         of %a.
55981         * modules/floorf-tests (Depends-on): Likewise.
55982         * modules/truncf-tests (Depends-on): Likewise.
55983         * modules/trunc-tests (Depends-on): Likewise.
55984         Reported by Ben Pfaff.
55985
55986 2007-10-19  Jim Meyering  <meyering@redhat.com>
55987
55988         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55989         Don't bother testing specific errno values.  Just test ferror.
55990
55991         New module: xprintf
55992         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55993
55994 2007-10-19  Bruno Haible  <bruno@clisp.org>
55995
55996         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55997         syntax.
55998         * modules/javaexec (Makefile.am): Likewise.
55999         * modules/relocatable-prog (Makefile.am): Likewise.
56000         Suggested by Jim Meyering.
56001
56002 2007-10-18  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56005         Reported by Jim Meyering.
56006
56007 2007-10-18  Eric Blake  <ebb9@byu.net>
56008
56009         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56010
56011 2007-10-18  Bruno Haible  <bruno@clisp.org>
56012
56013         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56014         the format string into writable memory. Needed in Fortify conditions.
56015
56016 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56017             Bruno Haible  <bruno@clisp.org>
56018
56019         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56020         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56021         * modules/trim (Depends-on): Add mbchar.
56022         (configure.ac): Add gl_FUNC_MBRTOWC.
56023         (Makefile.am): Augment lib_SOURCES.
56024
56025 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         Modify glob.c to use fstatat and dirfd, to simplify it.
56028         Suggested by Eric Blake.
56029         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56030         Don't include <stdbool.h>; not used.
56031         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56032         (link_exists_p): Simplify implementation, since we can now assume
56033         dirfd and fstatat.
56034         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56035
56036 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56037
56038         * gnulib-tool (func_get_dependencies): Fix sed script to
56039         match only tests.
56040
56041 2007-10-17  Bruno Haible  <bruno@clisp.org>
56042
56043         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56044         allow locale names without encoding suffix.
56045         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56046         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56047
56048 2007-10-16  Bruno Haible  <bruno@clisp.org>
56049
56050         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56051         * lib/getgroups.c (getgroups): Likewise.
56052         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56053
56054 2007-10-16  Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56057         * modules/malloc-posix (License): Likewise.
56058         * modules/realloc-posix (License): Likewise.
56059         * modules/calloc-posix (License): Likewise.
56060         * modules/intprops (License): Change from GPL to LGPL, with
56061         Paul Eggert's approval.
56062
56063 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56064
56065         Merge glibc changes into lib/glob.c.
56066
56067         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56068         2007-10-15 04:59:03 UTC.  Here are the changes:
56069
56070         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56071
56072         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56073
56074         * lib/glob.c: Add some branch prediction throughout.
56075
56076         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56077
56078         [BZ #5103]
56079         * lib/glob.c (glob): Recognize patterns starting \/.
56080
56081         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56082
56083         [BZ #3996]
56084         * lib/glob.c (attribute_hidden): Define if not defined.
56085         (glob): Unescape dirname, filename or username when needed and not
56086         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56087         is NULL.  Handle unescaped [ in pattern without closing ].
56088         Don't pass GLOB_CHECK down to recursive glob for directories.
56089         (__glob_pattern_type): New function.
56090         (__glob_pattern_p): Implement using __glob_pattern_type.
56091         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56092         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56093         Remove unreachable code.
56094
56095         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56096
56097         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56098         explain why there are no leaks.
56099
56100         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56101
56102         [BZ #3253]
56103         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56104         time, rather allocate increasingly bigger arrays of pointers, if
56105         possible with alloca, if too large with malloc.
56106
56107 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56108
56109         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56110         Problem reported by H.Merijn Brand in
56111         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56112         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56113         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56114
56115 2007-10-15  Bruno Haible  <bruno@clisp.org>
56116
56117         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56118         with explicit rpl_ prefix.
56119         * lib/fopen.c (fopen): Likewise.
56120         * lib/freopen.c (freopen): Likewise.
56121         * lib/iconv.c (iconv): Likewise.
56122         * lib/iconv_close.c (iconv_close): Likewise.
56123
56124 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56125
56126         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56127
56128 2007-10-15  Bruno Haible  <bruno@clisp.org>
56129
56130         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56131         <stddef.h> instead of <stdlib.h> since we only need NULL.
56132         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56133
56134 2007-10-15  Bruno Haible  <bruno@clisp.org>
56135
56136         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56137         Replace paragraph talking about LIBOBJS.
56138         Reported by Colin Watson <cjwatson@debian.org>.
56139
56140 2007-10-15  Bruno Haible  <bruno@clisp.org>
56141
56142         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56143         <stdlib.h> before using NULL.
56144
56145 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56146
56147         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56148         Reported by Albert Chin <china@thewrittenword.com>.
56149
56150 2007-10-14  Bruno Haible  <bruno@clisp.org>
56151
56152         * modules/iconv_open-utf-tests: New file.
56153         * tests/test-iconv-utf.c: New file.
56154
56155         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56156         * modules/iconv_open-utf: New file.
56157         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56158         (iconv, iconv_close): New declarations.
56159         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56160         be defined.
56161         (iconv_open): Add special handling of conversion between UTF-8 and
56162         UTF-{16,32}{BE,LE}.
56163         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56164         * lib/iconv_close.c: New file.
56165         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56166         gl_FUNC_ICONV_OPEN.
56167         (gl_FUNC_ICONV_OPEN): Use it.
56168         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56169         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56170         and REPLACE_ICONV_UTF.
56171         * modules/iconv_open (Depends-on): Add c-strcase.
56172         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56173         ICONV_CONST.
56174         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56175
56176 2007-10-13  Albert Chin  <china@thewrittenword.com>
56177             Bruno Haible  <bruno@clisp.org>
56178
56179         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56180         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56181
56182 2007-10-13  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56185         defined, use the ISO C99 inline semantics.
56186         * lib/argp.h (ARGP_EI): Likewise.
56187
56188 2007-10-13  Bruno Haible  <bruno@clisp.org>
56189
56190         Handle 'inline' change in gcc 4.3.0.
56191         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56192         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56193         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56194         argp_fmtstream_point): Disable 'extern' declaration if the function
56195         definition is going to be provided inline.
56196         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56197         semantics, not the ISO C99 inline semantics.
56198         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56199         'extern' declaration if the function definition is going to be provided
56200         inline.
56201         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56202         the GNU C inline semantics, not the ISO C99 inline semantics. With
56203         GCC 4.2, avoid a warning.
56204
56205 2007-10-13  Bruno Haible  <bruno@clisp.org>
56206
56207         * lib/freading.h (freading): Enable the use of __freading for
56208         glibc >= 2.7.
56209         * lib/freading.c (freading): Likewise.
56210
56211 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56212
56213         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56214         "warning: C99 inline functions are not supported; using GNU89".
56215
56216 2007-10-12  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56219         of 2.
56220         * tests/test-ceilf2.c: New file.
56221         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56222
56223         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56224         * modules/ceilf-tests: Update.
56225
56226 2007-10-12  Bruno Haible  <bruno@clisp.org>
56227
56228         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56229         of 2.
56230         * tests/test-floorf2.c: New file.
56231         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56232
56233         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56234         * modules/floorf-tests: Update.
56235
56236 2007-10-12  Bruno Haible  <bruno@clisp.org>
56237
56238         * tests/test-trunc2.c: New file.
56239         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56240
56241         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56242         * modules/trunc-tests: Update.
56243
56244 2007-10-12  Bruno Haible  <bruno@clisp.org>
56245
56246         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56247         of 2.
56248         * tests/test-truncf2.c: New file.
56249         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56250
56251         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56252         * modules/truncf-tests: Update.
56253
56254 2007-10-11  Eric Blake  <ebb9@byu.net>
56255
56256         Don't claim strerror is broken on Interix.
56257         * doc/functions/strerror.texi (strerror): Known broken systems are
56258         now Solaris 8, and not Interix.
56259         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56260         Interix on cross-compile.
56261         Reported by Martin Koeppe in
56262         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56263
56264 2007-10-11  Bruno Haible  <bruno@clisp.org>
56265
56266         * modules/i-ring-tests: New file.
56267         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56268         instead of assert.
56269
56270 2007-10-11  Bruno Haible  <bruno@clisp.org>
56271
56272         * modules/filenamecat-tests: New file.
56273         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56274         * lib/filenamecat.c: Remove test code.
56275
56276 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56277
56278         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56279
56280         * lib/strerror.c: Include <string.h> always, to test interface,
56281         and to remove the need for the dummy.
56282         Include intprops.h to compute width instead of doing it ourselves
56283         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56284         (strerror): Define it to return NULL if there's no system strerror.
56285         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56286         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56287         ancient pre-strerror Unix systems well any more.  Saying "unknown
56288         system error" is enough.
56289         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56290         simpler strerror.c implementation.
56291         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56292         Simplify the tests to reflect the simpler strerror implementation.
56293         * modules/strerror (Depends-on): Add intprops.
56294
56295 2007-10-09  Eric Blake  <ebb9@byu.net>
56296
56297         Silence test-fpending.
56298         * modules/fpending-tests (Files): Add wrapper script.
56299         * tests/test-fpending.sh: New file.
56300
56301 2007-10-09  Bruno Haible  <bruno@clisp.org>
56302
56303         * MODULES.html.sh (func_module): Don't create a hyperlink for
56304         function names like 'printf_frexp'.
56305         (Misc): Add crc, memxor.
56306         (Characteristics of floating types): New section.
56307         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56308         isnanf-nolibm, signbit, trunc, truncf, truncl.
56309         (Enhancements for ISO C 99 functions): New subsection Input/output.
56310         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56311         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56312         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56313         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56314         (Enhancements for POSIX:2001 functions): Add chdir-long.
56315         (File system functions): Add areadlink, chdir-safer, read-file.
56316         Remove cycle-check.
56317         (File system as inode set): New section.
56318         (Date and time): Add gethrxtime.
56319         (Multithreading): Add openmp.
56320         (Internationalization functions): Add localename.
56321         (Unicode string functions): Add unistr/u*-mbsnlen.
56322         (Support for maintaining and releasing projects): Add git-version-gen.
56323         (Lone files): Remove directories.
56324
56325 2007-10-08  Ben Pfaff  <blp@gnu.org>
56326
56327         * lib/xmalloca.h: Fix typo in comment.
56328
56329 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56330
56331         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56332         when avoiding problems with integer overflow.  Use a portable test
56333         instead.
56334
56335 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56336
56337         * modules/dummy (License): Change to LGPLv2+.
56338         * modules/float (License): Likewise
56339         * modules/realloc (License): Likewise
56340         * modules/stdlib (License): Likewise
56341
56342 2007-10-07  Bruno Haible  <bruno@clisp.org>
56343
56344         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56345         * floor.c (TWO_MANT_DIG): Likewise.
56346         * ceil.c (TWO_MANT_DIG): Likewise.
56347         Reported by Ben Pfaff.
56348
56349 2007-10-07  Bruno Haible  <bruno@clisp.org>
56350
56351         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56352         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56353         * lib/frexp.c (FUNC): Likewise.
56354         * lib/printf-frexp.h (printf_frexp): Likewise.
56355         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56356         * lib/printf-frexp.c (FUNC): Likewise.
56357         Suggested by Jim Meyering.
56358
56359 2007-10-07  Jim Meyering  <meyering@redhat.com>
56360
56361         Make xnanosleep's integer overflow test more robust.
56362         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56363         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56364
56365 2007-10-07  Bruno Haible  <bruno@clisp.org>
56366
56367         * NEWS: Mention the license change.
56368
56369         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56370         abbreviations in the modules files.
56371
56372         Change copyright notice from GPLv2+ to GPLv3+.
56373         * README: Change copyright notice.
56374         * MODULES.html.sh: Likewise.
56375         * build-aux/bootstrap.conf: Likewise.
56376         * build-aux/config.libpath: Likewise.
56377         * build-aux/csharpcomp.sh.in: Likewise.
56378         * build-aux/csharpexec.sh.in: Likewise.
56379         * build-aux/install-reloc: Likewise.
56380         * build-aux/javacomp.sh.in: Likewise.
56381         * build-aux/javaexec.sh.in: Likewise.
56382         * build-aux/ldd.sh.in: Likewise.
56383         * build-aux/reloc-ldflags: Likewise.
56384         * build-aux/relocatable.sh.in: Likewise.
56385         * build-aux/x-to-1.in: Likewise.
56386         * check-module: Likewise.
56387         * config/srclistvars.sh: Likewise.
56388         * gnulib-tool: Likewise.
56389         * lib/acl-internal.h: Likewise.
56390         * lib/acl.c: Likewise.
56391         * lib/acl.h: Likewise.
56392         * lib/acl_entries.c: Likewise.
56393         * lib/areadlink-with-size.c: Likewise.
56394         * lib/areadlink.c: Likewise.
56395         * lib/areadlink.h: Likewise.
56396         * lib/argmatch.c: Likewise.
56397         * lib/argmatch.h: Likewise.
56398         * lib/argp-ba.c: Likewise.
56399         * lib/argp-eexst.c: Likewise.
56400         * lib/argp-fmtstream.c: Likewise.
56401         * lib/argp-fmtstream.h: Likewise.
56402         * lib/argp-fs-xinl.c: Likewise.
56403         * lib/argp-help.c: Likewise.
56404         * lib/argp-namefrob.h: Likewise.
56405         * lib/argp-parse.c: Likewise.
56406         * lib/argp-pin.c: Likewise.
56407         * lib/argp-pv.c: Likewise.
56408         * lib/argp-pvh.c: Likewise.
56409         * lib/argp-xinl.c: Likewise.
56410         * lib/argp.h: Likewise.
56411         * lib/at-func.c: Likewise.
56412         * lib/atanl.c: Likewise.
56413         * lib/backupfile.c: Likewise.
56414         * lib/backupfile.h: Likewise.
56415         * lib/basename.c: Likewise.
56416         * lib/binary-io.h: Likewise.
56417         * lib/byteswap.in.h: Likewise.
56418         * lib/c-stack.c: Likewise.
56419         * lib/c-stack.h: Likewise.
56420         * lib/c-strcasestr.c: Likewise.
56421         * lib/c-strcasestr.h: Likewise.
56422         * lib/c-strstr.c: Likewise.
56423         * lib/c-strstr.h: Likewise.
56424         * lib/c-strtod.c: Likewise.
56425         * lib/calloc.c: Likewise.
56426         * lib/canon-host.c: Likewise.
56427         * lib/canon-host.h: Likewise.
56428         * lib/canonicalize-lgpl.c: Likewise.
56429         * lib/canonicalize.c: Likewise.
56430         * lib/canonicalize.h: Likewise.
56431         * lib/ceil.c: Likewise.
56432         * lib/ceilf.c: Likewise.
56433         * lib/ceill.c: Likewise.
56434         * lib/chdir-long.c: Likewise.
56435         * lib/chdir-long.h: Likewise.
56436         * lib/chdir-safer.c: Likewise.
56437         * lib/chdir-safer.h: Likewise.
56438         * lib/chown.c: Likewise.
56439         * lib/classpath.c: Likewise.
56440         * lib/classpath.h: Likewise.
56441         * lib/clean-temp.c: Likewise.
56442         * lib/clean-temp.h: Likewise.
56443         * lib/cloexec.c: Likewise.
56444         * lib/close-stream.c: Likewise.
56445         * lib/closein.c: Likewise.
56446         * lib/closein.h: Likewise.
56447         * lib/closeout.c: Likewise.
56448         * lib/closeout.h: Likewise.
56449         * lib/concat-filename.c: Likewise.
56450         * lib/copy-file.c: Likewise.
56451         * lib/copy-file.h: Likewise.
56452         * lib/count-one-bits.h: Likewise.
56453         * lib/crc.c: Likewise.
56454         * lib/crc.h: Likewise.
56455         * lib/creat-safer.c: Likewise.
56456         * lib/csharpcomp.c: Likewise.
56457         * lib/csharpcomp.h: Likewise.
56458         * lib/csharpexec.c: Likewise.
56459         * lib/csharpexec.h: Likewise.
56460         * lib/cycle-check.c: Likewise.
56461         * lib/cycle-check.h: Likewise.
56462         * lib/diacrit.c: Likewise.
56463         * lib/diacrit.h: Likewise.
56464         * lib/diffseq.h: Likewise.
56465         * lib/dirchownmod.c: Likewise.
56466         * lib/dirent.in.h: Likewise.
56467         * lib/dirfd.c: Likewise.
56468         * lib/dirfd.h: Likewise.
56469         * lib/dirname.c: Likewise.
56470         * lib/dirname.h: Likewise.
56471         * lib/dummy.c: Likewise.
56472         * lib/dup-safer.c: Likewise.
56473         * lib/dup2.c: Likewise.
56474         * lib/eealloc.h: Likewise.
56475         * lib/error.c: Likewise.
56476         * lib/error.h: Likewise.
56477         * lib/euidaccess.c: Likewise.
56478         * lib/exclude.c: Likewise.
56479         * lib/exclude.h: Likewise.
56480         * lib/execute.c: Likewise.
56481         * lib/execute.h: Likewise.
56482         * lib/exitfail.c: Likewise.
56483         * lib/exitfail.h: Likewise.
56484         * lib/expl.c: Likewise.
56485         * lib/fatal-signal.c: Likewise.
56486         * lib/fatal-signal.h: Likewise.
56487         * lib/fbufmode.c: Likewise.
56488         * lib/fbufmode.h: Likewise.
56489         * lib/fchdir.c: Likewise.
56490         * lib/fchmodat.c: Likewise.
56491         * lib/fchownat.c: Likewise.
56492         * lib/fcntl--.h: Likewise.
56493         * lib/fcntl-safer.h: Likewise.
56494         * lib/fcntl.in.h: Likewise.
56495         * lib/fd-safer.c: Likewise.
56496         * lib/fflush.c: Likewise.
56497         * lib/file-has-acl.c: Likewise.
56498         * lib/file-set.c: Likewise.
56499         * lib/file-type.c: Likewise.
56500         * lib/file-type.h: Likewise.
56501         * lib/fileblocks.c: Likewise.
56502         * lib/filemode.c: Likewise.
56503         * lib/filemode.h: Likewise.
56504         * lib/filename.h: Likewise.
56505         * lib/filenamecat.c: Likewise.
56506         * lib/filenamecat.h: Likewise.
56507         * lib/findprog.c: Likewise.
56508         * lib/findprog.h: Likewise.
56509         * lib/float.in.h: Likewise.
56510         * lib/floor.c: Likewise.
56511         * lib/floorf.c: Likewise.
56512         * lib/floorl.c: Likewise.
56513         * lib/fopen-safer.c: Likewise.
56514         * lib/fopen.c: Likewise.
56515         * lib/fpending.c: Likewise.
56516         * lib/fpending.h: Likewise.
56517         * lib/fprintf.c: Likewise.
56518         * lib/fprintftime.h: Likewise.
56519         * lib/fpucw.h: Likewise.
56520         * lib/fpurge.c: Likewise.
56521         * lib/fpurge.h: Likewise.
56522         * lib/freadable.c: Likewise.
56523         * lib/freadable.h: Likewise.
56524         * lib/freadahead.c: Likewise.
56525         * lib/freadahead.h: Likewise.
56526         * lib/freading.c: Likewise.
56527         * lib/freading.h: Likewise.
56528         * lib/free.c: Likewise.
56529         * lib/freopen.c: Likewise.
56530         * lib/frexp.c: Likewise.
56531         * lib/frexpl.c: Likewise.
56532         * lib/fseek.c: Likewise.
56533         * lib/fseterr.c: Likewise.
56534         * lib/fseterr.h: Likewise.
56535         * lib/fstatat.c: Likewise.
56536         * lib/fstrcmp.c: Likewise.
56537         * lib/fstrcmp.h: Likewise.
56538         * lib/fsusage.c: Likewise.
56539         * lib/fsusage.h: Likewise.
56540         * lib/ftell.c: Likewise.
56541         * lib/ftello.c: Likewise.
56542         * lib/fts-cycle.c: Likewise.
56543         * lib/fts.c: Likewise.
56544         * lib/fts_.h: Likewise.
56545         * lib/full-read.c: Likewise.
56546         * lib/full-read.h: Likewise.
56547         * lib/full-write.c: Likewise.
56548         * lib/full-write.h: Likewise.
56549         * lib/fwritable.c: Likewise.
56550         * lib/fwritable.h: Likewise.
56551         * lib/fwriteerror.c: Likewise.
56552         * lib/fwriteerror.h: Likewise.
56553         * lib/fwriting.c: Likewise.
56554         * lib/fwriting.h: Likewise.
56555         * lib/gcd.c: Likewise.
56556         * lib/gcd.h: Likewise.
56557         * lib/getcwd.c: Likewise.
56558         * lib/getdate.h: Likewise.
56559         * lib/getdate.y: Likewise.
56560         * lib/getdomainname.c: Likewise.
56561         * lib/getdomainname.h: Likewise.
56562         * lib/getgroups.c: Likewise.
56563         * lib/gethostname.c: Likewise.
56564         * lib/gethrxtime.c: Likewise.
56565         * lib/gethrxtime.h: Likewise.
56566         * lib/getloadavg.c: Likewise.
56567         * lib/getndelim2.c: Likewise.
56568         * lib/getndelim2.h: Likewise.
56569         * lib/getnline.c: Likewise.
56570         * lib/getnline.h: Likewise.
56571         * lib/getopt.c: Likewise.
56572         * lib/getopt.in.h: Likewise.
56573         * lib/getopt1.c: Likewise.
56574         * lib/getopt_int.h: Likewise.
56575         * lib/getpagesize.h: Likewise.
56576         * lib/getsubopt.c: Likewise.
56577         * lib/gettime.c: Likewise.
56578         * lib/getugroups.c: Likewise.
56579         * lib/getugroups.h: Likewise.
56580         * lib/getusershell.c: Likewise.
56581         * lib/gl_anyavltree_list1.h: Likewise.
56582         * lib/gl_anyavltree_list2.h: Likewise.
56583         * lib/gl_anyhash_list1.h: Likewise.
56584         * lib/gl_anyhash_list2.h: Likewise.
56585         * lib/gl_anylinked_list1.h: Likewise.
56586         * lib/gl_anylinked_list2.h: Likewise.
56587         * lib/gl_anyrbtree_list1.h: Likewise.
56588         * lib/gl_anyrbtree_list2.h: Likewise.
56589         * lib/gl_anytree_list1.h: Likewise.
56590         * lib/gl_anytree_list2.h: Likewise.
56591         * lib/gl_anytree_oset.h: Likewise.
56592         * lib/gl_anytreehash_list1.h: Likewise.
56593         * lib/gl_anytreehash_list2.h: Likewise.
56594         * lib/gl_array_list.c: Likewise.
56595         * lib/gl_array_list.h: Likewise.
56596         * lib/gl_array_oset.c: Likewise.
56597         * lib/gl_array_oset.h: Likewise.
56598         * lib/gl_avltree_list.c: Likewise.
56599         * lib/gl_avltree_list.h: Likewise.
56600         * lib/gl_avltree_oset.c: Likewise.
56601         * lib/gl_avltree_oset.h: Likewise.
56602         * lib/gl_avltreehash_list.c: Likewise.
56603         * lib/gl_avltreehash_list.h: Likewise.
56604         * lib/gl_carray_list.c: Likewise.
56605         * lib/gl_carray_list.h: Likewise.
56606         * lib/gl_linked_list.c: Likewise.
56607         * lib/gl_linked_list.h: Likewise.
56608         * lib/gl_linkedhash_list.c: Likewise.
56609         * lib/gl_linkedhash_list.h: Likewise.
56610         * lib/gl_list.c: Likewise.
56611         * lib/gl_list.h: Likewise.
56612         * lib/gl_oset.c: Likewise.
56613         * lib/gl_oset.h: Likewise.
56614         * lib/gl_rbtree_list.c: Likewise.
56615         * lib/gl_rbtree_list.h: Likewise.
56616         * lib/gl_rbtree_oset.c: Likewise.
56617         * lib/gl_rbtree_oset.h: Likewise.
56618         * lib/gl_rbtreehash_list.c: Likewise.
56619         * lib/gl_rbtreehash_list.h: Likewise.
56620         * lib/gl_sublist.c: Likewise.
56621         * lib/gl_sublist.h: Likewise.
56622         * lib/group-member.c: Likewise.
56623         * lib/group-member.h: Likewise.
56624         * lib/hard-locale.c: Likewise.
56625         * lib/hard-locale.h: Likewise.
56626         * lib/hash-pjw.c: Likewise.
56627         * lib/hash-pjw.h: Likewise.
56628         * lib/hash-triple.c: Likewise.
56629         * lib/hash.c: Likewise.
56630         * lib/hash.h: Likewise.
56631         * lib/human.c: Likewise.
56632         * lib/human.h: Likewise.
56633         * lib/i-ring.c: Likewise.
56634         * lib/i-ring.h: Likewise.
56635         * lib/idcache.c: Likewise.
56636         * lib/imaxabs.c: Likewise.
56637         * lib/imaxdiv.c: Likewise.
56638         * lib/inet_pton.c: Likewise.
56639         * lib/inet_pton.h: Likewise.
56640         * lib/intprops.h: Likewise.
56641         * lib/inttostr.c: Likewise.
56642         * lib/inttostr.h: Likewise.
56643         * lib/inttypes.in.h: Likewise.
56644         * lib/isapipe.c: Likewise.
56645         * lib/isdir.c: Likewise.
56646         * lib/isnan.c: Likewise.
56647         * lib/isnan.h: Likewise.
56648         * lib/isnanf.c: Likewise.
56649         * lib/isnanf.h: Likewise.
56650         * lib/isnanl-nolibm.h: Likewise.
56651         * lib/isnanl.c: Likewise.
56652         * lib/isnanl.h: Likewise.
56653         * lib/javacomp.c: Likewise.
56654         * lib/javacomp.h: Likewise.
56655         * lib/javaexec.c: Likewise.
56656         * lib/javaexec.h: Likewise.
56657         * lib/javaversion.c: Likewise.
56658         * lib/javaversion.h: Likewise.
56659         * lib/javaversion.java: Likewise.
56660         * lib/lbrkprop.h: Likewise.
56661         * lib/lchmod.h: Likewise.
56662         * lib/lchown.c: Likewise.
56663         * lib/ldexpl.c: Likewise.
56664         * lib/linebreak.c: Likewise.
56665         * lib/linebreak.h: Likewise.
56666         * lib/linebuffer.c: Likewise.
56667         * lib/linebuffer.h: Likewise.
56668         * lib/locale.in.h: Likewise.
56669         * lib/logl.c: Likewise.
56670         * lib/long-options.c: Likewise.
56671         * lib/long-options.h: Likewise.
56672         * lib/lstat.c: Likewise.
56673         * lib/lstat.h: Likewise.
56674         * lib/math.in.h: Likewise.
56675         * lib/mbchar.c: Likewise.
56676         * lib/mbchar.h: Likewise.
56677         * lib/mbfile.h: Likewise.
56678         * lib/mbiter.h: Likewise.
56679         * lib/mbscasecmp.c: Likewise.
56680         * lib/mbscasestr.c: Likewise.
56681         * lib/mbschr.c: Likewise.
56682         * lib/mbscspn.c: Likewise.
56683         * lib/mbslen.c: Likewise.
56684         * lib/mbsncasecmp.c: Likewise.
56685         * lib/mbsnlen.c: Likewise.
56686         * lib/mbspbrk.c: Likewise.
56687         * lib/mbspcasecmp.c: Likewise.
56688         * lib/mbsrchr.c: Likewise.
56689         * lib/mbssep.c: Likewise.
56690         * lib/mbsspn.c: Likewise.
56691         * lib/mbsstr.c: Likewise.
56692         * lib/mbstok_r.c: Likewise.
56693         * lib/mbswidth.c: Likewise.
56694         * lib/mbswidth.h: Likewise.
56695         * lib/mbuiter.h: Likewise.
56696         * lib/memcasecmp.c: Likewise.
56697         * lib/memcasecmp.h: Likewise.
56698         * lib/memchr.c: Likewise.
56699         * lib/memcmp.c: Likewise.
56700         * lib/memcoll.c: Likewise.
56701         * lib/memcoll.h: Likewise.
56702         * lib/memcpy.c: Likewise.
56703         * lib/memrchr.c: Likewise.
56704         * lib/mkancesdirs.c: Likewise.
56705         * lib/mkdir-p.c: Likewise.
56706         * lib/mkdir-p.h: Likewise.
56707         * lib/mkdir.c: Likewise.
56708         * lib/mkdirat.c: Likewise.
56709         * lib/mkdtemp.c: Likewise.
56710         * lib/mkstemp-safer.c: Likewise.
56711         * lib/mkstemp.c: Likewise.
56712         * lib/modechange.c: Likewise.
56713         * lib/modechange.h: Likewise.
56714         * lib/mountlist.c: Likewise.
56715         * lib/mountlist.h: Likewise.
56716         * lib/mpsort.c: Likewise.
56717         * lib/nanosleep.c: Likewise.
56718         * lib/obstack.c: Likewise.
56719         * lib/obstack.h: Likewise.
56720         * lib/open-safer.c: Likewise.
56721         * lib/open.c: Likewise.
56722         * lib/openat-die.c: Likewise.
56723         * lib/openat-priv.h: Likewise.
56724         * lib/openat-proc.c: Likewise.
56725         * lib/openat.c: Likewise.
56726         * lib/openat.h: Likewise.
56727         * lib/pagealign_alloc.c: Likewise.
56728         * lib/pagealign_alloc.h: Likewise.
56729         * lib/physmem.c: Likewise.
56730         * lib/physmem.h: Likewise.
56731         * lib/pipe-safer.c: Likewise.
56732         * lib/pipe.c: Likewise.
56733         * lib/pipe.h: Likewise.
56734         * lib/posixtm.c: Likewise.
56735         * lib/posixtm.h: Likewise.
56736         * lib/posixver.c: Likewise.
56737         * lib/printf-frexp.c: Likewise.
56738         * lib/printf-frexp.h: Likewise.
56739         * lib/printf-frexpl.c: Likewise.
56740         * lib/printf-frexpl.h: Likewise.
56741         * lib/printf.c: Likewise.
56742         * lib/progname.c: Likewise.
56743         * lib/progname.h: Likewise.
56744         * lib/progreloc.c: Likewise.
56745         * lib/putenv.c: Likewise.
56746         * lib/quote.c: Likewise.
56747         * lib/quote.h: Likewise.
56748         * lib/quotearg.c: Likewise.
56749         * lib/quotearg.h: Likewise.
56750         * lib/raise.c: Likewise.
56751         * lib/readline.c: Likewise.
56752         * lib/readline.h: Likewise.
56753         * lib/readlink.c: Likewise.
56754         * lib/readtokens.c: Likewise.
56755         * lib/readtokens.h: Likewise.
56756         * lib/readtokens0.c: Likewise.
56757         * lib/readtokens0.h: Likewise.
56758         * lib/readutmp.c: Likewise.
56759         * lib/readutmp.h: Likewise.
56760         * lib/realloc.c: Likewise.
56761         * lib/relocwrapper.c: Likewise.
56762         * lib/rename-dest-slash.c: Likewise.
56763         * lib/rename.c: Likewise.
56764         * lib/rmdir.c: Likewise.
56765         * lib/rpmatch.c: Likewise.
56766         * lib/safe-read.c: Likewise.
56767         * lib/safe-read.h: Likewise.
56768         * lib/safe-write.c: Likewise.
56769         * lib/safe-write.h: Likewise.
56770         * lib/same-inode.h: Likewise.
56771         * lib/same.c: Likewise.
56772         * lib/same.h: Likewise.
56773         * lib/save-cwd.c: Likewise.
56774         * lib/save-cwd.h: Likewise.
56775         * lib/savedir.c: Likewise.
56776         * lib/savedir.h: Likewise.
56777         * lib/savewd.c: Likewise.
56778         * lib/savewd.h: Likewise.
56779         * lib/search.in.h: Likewise.
56780         * lib/setenv.c: Likewise.
56781         * lib/setenv.h: Likewise.
56782         * lib/settime.c: Likewise.
56783         * lib/sh-quote.c: Likewise.
56784         * lib/sh-quote.h: Likewise.
56785         * lib/sig2str.c: Likewise.
56786         * lib/sig2str.h: Likewise.
56787         * lib/signal.in.h: Likewise.
56788         * lib/signbitd.c: Likewise.
56789         * lib/signbitf.c: Likewise.
56790         * lib/signbitl.c: Likewise.
56791         * lib/sigprocmask.c: Likewise.
56792         * lib/sincosl.c: Likewise.
56793         * lib/sleep.c: Likewise.
56794         * lib/sprintf.c: Likewise.
56795         * lib/sqrtl.c: Likewise.
56796         * lib/stat-time.h: Likewise.
56797         * lib/stdio--.h: Likewise.
56798         * lib/stdio-safer.h: Likewise.
56799         * lib/stdlib--.h: Likewise.
56800         * lib/stdlib-safer.h: Likewise.
56801         * lib/stdlib.in.h: Likewise.
56802         * lib/stpcpy.c: Likewise.
56803         * lib/stpncpy.c: Likewise.
56804         * lib/strchrnul.c: Likewise.
56805         * lib/strcspn.c: Likewise.
56806         * lib/strerror.c: Likewise.
56807         * lib/strftime.c: Likewise.
56808         * lib/strftime.h: Likewise.
56809         * lib/striconveh.c: Likewise.
56810         * lib/striconveh.h: Likewise.
56811         * lib/striconveha.c: Likewise.
56812         * lib/striconveha.h: Likewise.
56813         * lib/stripslash.c: Likewise.
56814         * lib/strnlen1.c: Likewise.
56815         * lib/strnlen1.h: Likewise.
56816         * lib/strtod.c: Likewise.
56817         * lib/strtoimax.c: Likewise.
56818         * lib/strtok_r.c: Likewise.
56819         * lib/strtol.c: Likewise.
56820         * lib/strtoll.c: Likewise.
56821         * lib/strtoul.c: Likewise.
56822         * lib/strtoull.c: Likewise.
56823         * lib/sysexits.in.h: Likewise.
56824         * lib/tempname.c: Likewise.
56825         * lib/tempname.h: Likewise.
56826         * lib/timespec.h: Likewise.
56827         * lib/tls.c: Likewise.
56828         * lib/tls.h: Likewise.
56829         * lib/tmpdir.c: Likewise.
56830         * lib/tmpdir.h: Likewise.
56831         * lib/tmpfile-safer.c: Likewise.
56832         * lib/tmpfile.c: Likewise.
56833         * lib/trigl.c: Likewise.
56834         * lib/trigl.h: Likewise.
56835         * lib/trim.c: Likewise.
56836         * lib/trim.h: Likewise.
56837         * lib/trunc.c: Likewise.
56838         * lib/truncf.c: Likewise.
56839         * lib/truncl.c: Likewise.
56840         * lib/tsearch.c: Likewise.
56841         * lib/unicodeio.c: Likewise.
56842         * lib/unicodeio.h: Likewise.
56843         * lib/unistd--.h: Likewise.
56844         * lib/unistd-safer.h: Likewise.
56845         * lib/unistdio/ulc-fprintf.c: Likewise.
56846         * lib/unistdio/ulc-vfprintf.c: Likewise.
56847         * lib/unlinkdir.c: Likewise.
56848         * lib/unlinkdir.h: Likewise.
56849         * lib/unlocked-io.h: Likewise.
56850         * lib/unsetenv.c: Likewise.
56851         * lib/userspec.c: Likewise.
56852         * lib/utime.c: Likewise.
56853         * lib/utimecmp.c: Likewise.
56854         * lib/utimecmp.h: Likewise.
56855         * lib/utimens.c: Likewise.
56856         * lib/verify.h: Likewise.
56857         * lib/verror.c: Likewise.
56858         * lib/verror.h: Likewise.
56859         * lib/version-etc-fsf.c: Likewise.
56860         * lib/version-etc.c: Likewise.
56861         * lib/version-etc.h: Likewise.
56862         * lib/vfprintf.c: Likewise.
56863         * lib/vprintf.c: Likewise.
56864         * lib/vsprintf.c: Likewise.
56865         * lib/w32spawn.h: Likewise.
56866         * lib/wait-process.c: Likewise.
56867         * lib/wait-process.h: Likewise.
56868         * lib/wcwidth.c: Likewise.
56869         * lib/write-any-file.c: Likewise.
56870         * lib/xalloc-die.c: Likewise.
56871         * lib/xalloc.h: Likewise.
56872         * lib/xasprintf.c: Likewise.
56873         * lib/xgetcwd.c: Likewise.
56874         * lib/xgetcwd.h: Likewise.
56875         * lib/xgetdomainname.c: Likewise.
56876         * lib/xgetdomainname.h: Likewise.
56877         * lib/xgethostname.c: Likewise.
56878         * lib/xmalloc.c: Likewise.
56879         * lib/xmalloca.c: Likewise.
56880         * lib/xmalloca.h: Likewise.
56881         * lib/xmemcoll.c: Likewise.
56882         * lib/xnanosleep.c: Likewise.
56883         * lib/xreadlink.c: Likewise.
56884         * lib/xreadlink.h: Likewise.
56885         * lib/xsetenv.c: Likewise.
56886         * lib/xsetenv.h: Likewise.
56887         * lib/xstriconv.c: Likewise.
56888         * lib/xstriconv.h: Likewise.
56889         * lib/xstrndup.c: Likewise.
56890         * lib/xstrndup.h: Likewise.
56891         * lib/xstrtod.c: Likewise.
56892         * lib/xstrtod.h: Likewise.
56893         * lib/xstrtol-error.c: Likewise.
56894         * lib/xstrtol.c: Likewise.
56895         * lib/xstrtol.h: Likewise.
56896         * lib/xtime.h: Likewise.
56897         * lib/xvasprintf.c: Likewise.
56898         * lib/xvasprintf.h: Likewise.
56899         * lib/yesno.c: Likewise.
56900         * lib/yesno.h: Likewise.
56901         * posix-modules: Likewise.
56902         * tests/test-alloca-opt.c: Likewise.
56903         * tests/test-arcfour.c: Likewise.
56904         * tests/test-arctwo.c: Likewise.
56905         * tests/test-argmatch.c: Likewise.
56906         * tests/test-argp-2.sh: Likewise.
56907         * tests/test-argp.c: Likewise.
56908         * tests/test-arpa_inet.c: Likewise.
56909         * tests/test-array_list.c: Likewise.
56910         * tests/test-array_oset.c: Likewise.
56911         * tests/test-atexit.c: Likewise.
56912         * tests/test-avltree_list.c: Likewise.
56913         * tests/test-avltree_oset.c: Likewise.
56914         * tests/test-avltreehash_list.c: Likewise.
56915         * tests/test-base64.c: Likewise.
56916         * tests/test-binary-io.c: Likewise.
56917         * tests/test-byteswap.c: Likewise.
56918         * tests/test-c-ctype.c: Likewise.
56919         * tests/test-c-strcasecmp.c: Likewise.
56920         * tests/test-c-strcasestr.c: Likewise.
56921         * tests/test-c-strncasecmp.c: Likewise.
56922         * tests/test-c-strstr.c: Likewise.
56923         * tests/test-canonicalize-lgpl.c: Likewise.
56924         * tests/test-canonicalize.c: Likewise.
56925         * tests/test-carray_list.c: Likewise.
56926         * tests/test-ceilf.c: Likewise.
56927         * tests/test-ceill.c: Likewise.
56928         * tests/test-count-one-bits.c: Likewise.
56929         * tests/test-crc.c: Likewise.
56930         * tests/test-dirname.c: Likewise.
56931         * tests/test-fbufmode.c: Likewise.
56932         * tests/test-fcntl.c: Likewise.
56933         * tests/test-fflush.c: Likewise.
56934         * tests/test-floorf.c: Likewise.
56935         * tests/test-floorl.c: Likewise.
56936         * tests/test-fopen.c: Likewise.
56937         * tests/test-fprintf-posix.c: Likewise.
56938         * tests/test-fprintf-posix.h: Likewise.
56939         * tests/test-fpurge.c: Likewise.
56940         * tests/test-freadable.c: Likewise.
56941         * tests/test-freadahead.c: Likewise.
56942         * tests/test-freading.c: Likewise.
56943         * tests/test-freopen.c: Likewise.
56944         * tests/test-frexp.c: Likewise.
56945         * tests/test-frexpl.c: Likewise.
56946         * tests/test-fseek.c: Likewise.
56947         * tests/test-fseeko.c: Likewise.
56948         * tests/test-fseterr.c: Likewise.
56949         * tests/test-fstrcmp.c: Likewise.
56950         * tests/test-ftell.c: Likewise.
56951         * tests/test-ftello.c: Likewise.
56952         * tests/test-fwritable.c: Likewise.
56953         * tests/test-fwriting.c: Likewise.
56954         * tests/test-getaddrinfo.c: Likewise.
56955         * tests/test-getpass.c: Likewise.
56956         * tests/test-gettimeofday.c: Likewise.
56957         * tests/test-hmac-md5.c: Likewise.
56958         * tests/test-hmac-sha1.c: Likewise.
56959         * tests/test-iconv.c: Likewise.
56960         * tests/test-iconvme.c: Likewise.
56961         * tests/test-inttypes.c: Likewise.
56962         * tests/test-isnan.c: Likewise.
56963         * tests/test-isnanf.c: Likewise.
56964         * tests/test-isnanl-nolibm.c: Likewise.
56965         * tests/test-isnanl.c: Likewise.
56966         * tests/test-isnanl.h: Likewise.
56967         * tests/test-ldexpl.c: Likewise.
56968         * tests/test-linked_list.c: Likewise.
56969         * tests/test-linkedhash_list.c: Likewise.
56970         * tests/test-locale.c: Likewise.
56971         * tests/test-localename.c: Likewise.
56972         * tests/test-lock.c: Likewise.
56973         * tests/test-lseek.c: Likewise.
56974         * tests/test-malloca.c: Likewise.
56975         * tests/test-math.c: Likewise.
56976         * tests/test-mbscasecmp.c: Likewise.
56977         * tests/test-mbscasestr1.c: Likewise.
56978         * tests/test-mbscasestr2.c: Likewise.
56979         * tests/test-mbscasestr3.c: Likewise.
56980         * tests/test-mbscasestr4.c: Likewise.
56981         * tests/test-mbschr.c: Likewise.
56982         * tests/test-mbscspn.c: Likewise.
56983         * tests/test-mbsncasecmp.c: Likewise.
56984         * tests/test-mbspbrk.c: Likewise.
56985         * tests/test-mbspcasecmp.c: Likewise.
56986         * tests/test-mbsrchr.c: Likewise.
56987         * tests/test-mbsspn.c: Likewise.
56988         * tests/test-mbsstr1.c: Likewise.
56989         * tests/test-mbsstr2.c: Likewise.
56990         * tests/test-mbsstr3.c: Likewise.
56991         * tests/test-md5.c: Likewise.
56992         * tests/test-memmem.c: Likewise.
56993         * tests/test-netinet_in.c: Likewise.
56994         * tests/test-open.c: Likewise.
56995         * tests/test-printf-frexp.c: Likewise.
56996         * tests/test-printf-frexpl.c: Likewise.
56997         * tests/test-printf-posix.c: Likewise.
56998         * tests/test-printf-posix.h: Likewise.
56999         * tests/test-rbtree_list.c: Likewise.
57000         * tests/test-rbtree_oset.c: Likewise.
57001         * tests/test-rbtreehash_list.c: Likewise.
57002         * tests/test-read-file.c: Likewise.
57003         * tests/test-rijndael.c: Likewise.
57004         * tests/test-search.c: Likewise.
57005         * tests/test-signbit.c: Likewise.
57006         * tests/test-sleep.c: Likewise.
57007         * tests/test-snprintf-posix.c: Likewise.
57008         * tests/test-snprintf-posix.h: Likewise.
57009         * tests/test-snprintf.c: Likewise.
57010         * tests/test-sprintf-posix.c: Likewise.
57011         * tests/test-sprintf-posix.h: Likewise.
57012         * tests/test-stat-time.c: Likewise.
57013         * tests/test-stdbool.c: Likewise.
57014         * tests/test-stdint.c: Likewise.
57015         * tests/test-stdio.c: Likewise.
57016         * tests/test-stdlib.c: Likewise.
57017         * tests/test-stpncpy.c: Likewise.
57018         * tests/test-strcasestr.c: Likewise.
57019         * tests/test-striconv.c: Likewise.
57020         * tests/test-striconveh.c: Likewise.
57021         * tests/test-striconveha.c: Likewise.
57022         * tests/test-string.c: Likewise.
57023         * tests/test-sys_select.c: Likewise.
57024         * tests/test-sys_socket.c: Likewise.
57025         * tests/test-sys_stat.c: Likewise.
57026         * tests/test-sys_time.c: Likewise.
57027         * tests/test-sysexits.c: Likewise.
57028         * tests/test-time.c: Likewise.
57029         * tests/test-tls.c: Likewise.
57030         * tests/test-trunc.c: Likewise.
57031         * tests/test-truncf.c: Likewise.
57032         * tests/test-truncl.c: Likewise.
57033         * tests/test-unistd.c: Likewise.
57034         * tests/test-vasnprintf-posix.c: Likewise.
57035         * tests/test-vasnprintf-posix2.c: Likewise.
57036         * tests/test-vasnprintf.c: Likewise.
57037         * tests/test-vasprintf-posix.c: Likewise.
57038         * tests/test-vasprintf.c: Likewise.
57039         * tests/test-verify.c: Likewise.
57040         * tests/test-vfprintf-posix.c: Likewise.
57041         * tests/test-vprintf-posix.c: Likewise.
57042         * tests/test-vsnprintf-posix.c: Likewise.
57043         * tests/test-vsnprintf.c: Likewise.
57044         * tests/test-vsprintf-posix.c: Likewise.
57045         * tests/test-wchar.c: Likewise.
57046         * tests/test-wctype.c: Likewise.
57047         * tests/test-wcwidth.c: Likewise.
57048         * tests/test-xstrtol.c: Likewise.
57049         * tests/test-xvasprintf.c: Likewise.
57050         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57051         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57052         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57053         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57054         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57055         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57056         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57057         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57058         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57059         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57060         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57061         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57062         * tests/uniname/test-uninames.c: Likewise.
57063         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57064         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57065         * tests/unistdio/test-u16-printf1.h: Likewise.
57066         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57067         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57068         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57069         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57070         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57071         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57072         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57073         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57074         * tests/unistdio/test-u32-printf1.h: Likewise.
57075         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57076         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57077         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57078         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57079         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57080         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57081         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57082         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57083         * tests/unistdio/test-u8-printf1.h: Likewise.
57084         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57085         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57086         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57087         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57088         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57089         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57090         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57091         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57092         * tests/unistdio/test-ulc-printf1.h: Likewise.
57093         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57094         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57095         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57096         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57097         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57098         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57099         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57100         * tests/uniwidth/test-u16-width.c: Likewise.
57101         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57102         * tests/uniwidth/test-u32-width.c: Likewise.
57103         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57104         * tests/uniwidth/test-u8-width.c: Likewise.
57105         * tests/uniwidth/test-uc_width.c: Likewise.
57106         * config/srclist-update: Likewise.
57107         (fixlicense): Update to GPLv3+.
57108
57109         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57110         * tests/test-tsearch.c: Change copyright notice.
57111
57112         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57113         * lib/c-strcaseeq.h: Change copyright notice.
57114         * lib/streq.h: Likewise.
57115         * lib/uniconv.h: Likewise.
57116         * lib/uniconv/u-conv-from-enc.h: Likewise.
57117         * lib/uniconv/u-conv-to-enc.h: Likewise.
57118         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57119         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57120         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57121         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57122         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57123         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57124         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57125         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57126         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57127         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57128         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57129         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57130         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57131         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57132         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57133         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57134         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57135         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57136         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57137         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57138         * lib/uniname.h: Likewise.
57139         * lib/uniname/uniname.c: Likewise.
57140         * lib/unistdio.h: Likewise.
57141         * lib/unistdio/u-asnprintf.h: Likewise.
57142         * lib/unistdio/u-asprintf.h: Likewise.
57143         * lib/unistdio/u-printf-args.c: Likewise.
57144         * lib/unistdio/u-printf-args.h: Likewise.
57145         * lib/unistdio/u-printf-parse.h: Likewise.
57146         * lib/unistdio/u-snprintf.h: Likewise.
57147         * lib/unistdio/u-sprintf.h: Likewise.
57148         * lib/unistdio/u-vasprintf.h: Likewise.
57149         * lib/unistdio/u-vsnprintf.h: Likewise.
57150         * lib/unistdio/u-vsprintf.h: Likewise.
57151         * lib/unistdio/u16-asnprintf.c: Likewise.
57152         * lib/unistdio/u16-asprintf.c: Likewise.
57153         * lib/unistdio/u16-printf-parse.c: Likewise.
57154         * lib/unistdio/u16-snprintf.c: Likewise.
57155         * lib/unistdio/u16-sprintf.c: Likewise.
57156         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57157         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57158         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57159         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57160         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57161         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57162         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57163         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57164         * lib/unistdio/u16-vasnprintf.c: Likewise.
57165         * lib/unistdio/u16-vasprintf.c: Likewise.
57166         * lib/unistdio/u16-vsnprintf.c: Likewise.
57167         * lib/unistdio/u16-vsprintf.c: Likewise.
57168         * lib/unistdio/u32-asnprintf.c: Likewise.
57169         * lib/unistdio/u32-asprintf.c: Likewise.
57170         * lib/unistdio/u32-printf-parse.c: Likewise.
57171         * lib/unistdio/u32-snprintf.c: Likewise.
57172         * lib/unistdio/u32-sprintf.c: Likewise.
57173         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57174         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57175         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57176         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57177         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57178         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57179         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57180         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57181         * lib/unistdio/u32-vasnprintf.c: Likewise.
57182         * lib/unistdio/u32-vasprintf.c: Likewise.
57183         * lib/unistdio/u32-vsnprintf.c: Likewise.
57184         * lib/unistdio/u32-vsprintf.c: Likewise.
57185         * lib/unistdio/u8-asnprintf.c: Likewise.
57186         * lib/unistdio/u8-asprintf.c: Likewise.
57187         * lib/unistdio/u8-printf-parse.c: Likewise.
57188         * lib/unistdio/u8-snprintf.c: Likewise.
57189         * lib/unistdio/u8-sprintf.c: Likewise.
57190         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57191         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57192         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57193         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57194         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57195         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57196         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57197         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57198         * lib/unistdio/u8-vasnprintf.c: Likewise.
57199         * lib/unistdio/u8-vasprintf.c: Likewise.
57200         * lib/unistdio/u8-vsnprintf.c: Likewise.
57201         * lib/unistdio/u8-vsprintf.c: Likewise.
57202         * lib/unistdio/ulc-asnprintf.c: Likewise.
57203         * lib/unistdio/ulc-asprintf.c: Likewise.
57204         * lib/unistdio/ulc-printf-parse.c: Likewise.
57205         * lib/unistdio/ulc-snprintf.c: Likewise.
57206         * lib/unistdio/ulc-sprintf.c: Likewise.
57207         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57208         * lib/unistdio/ulc-vasprintf.c: Likewise.
57209         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57210         * lib/unistdio/ulc-vsprintf.c: Likewise.
57211         * lib/unistr.h: Likewise.
57212         * lib/unistr/u-cpy-alloc.h: Likewise.
57213         * lib/unistr/u-cpy.h: Likewise.
57214         * lib/unistr/u-endswith.h: Likewise.
57215         * lib/unistr/u-move.h: Likewise.
57216         * lib/unistr/u-set.h: Likewise.
57217         * lib/unistr/u-startswith.h: Likewise.
57218         * lib/unistr/u-stpcpy.h: Likewise.
57219         * lib/unistr/u-stpncpy.h: Likewise.
57220         * lib/unistr/u-strcat.h: Likewise.
57221         * lib/unistr/u-strcpy.h: Likewise.
57222         * lib/unistr/u-strcspn.h: Likewise.
57223         * lib/unistr/u-strdup.h: Likewise.
57224         * lib/unistr/u-strlen.h: Likewise.
57225         * lib/unistr/u-strncat.h: Likewise.
57226         * lib/unistr/u-strncpy.h: Likewise.
57227         * lib/unistr/u-strnlen.h: Likewise.
57228         * lib/unistr/u-strpbrk.h: Likewise.
57229         * lib/unistr/u-strspn.h: Likewise.
57230         * lib/unistr/u-strstr.h: Likewise.
57231         * lib/unistr/u-strtok.h: Likewise.
57232         * lib/unistr/u16-check.c: Likewise.
57233         * lib/unistr/u16-chr.c: Likewise.
57234         * lib/unistr/u16-cmp.c: Likewise.
57235         * lib/unistr/u16-cpy-alloc.c: Likewise.
57236         * lib/unistr/u16-cpy.c: Likewise.
57237         * lib/unistr/u16-endswith.c: Likewise.
57238         * lib/unistr/u16-mblen.c: Likewise.
57239         * lib/unistr/u16-mbsnlen.c: Likewise.
57240         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57241         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57242         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57243         * lib/unistr/u16-mbtouc.c: Likewise.
57244         * lib/unistr/u16-mbtoucr.c: Likewise.
57245         * lib/unistr/u16-move.c: Likewise.
57246         * lib/unistr/u16-next.c: Likewise.
57247         * lib/unistr/u16-prev.c: Likewise.
57248         * lib/unistr/u16-set.c: Likewise.
57249         * lib/unistr/u16-startswith.c: Likewise.
57250         * lib/unistr/u16-stpcpy.c: Likewise.
57251         * lib/unistr/u16-stpncpy.c: Likewise.
57252         * lib/unistr/u16-strcat.c: Likewise.
57253         * lib/unistr/u16-strchr.c: Likewise.
57254         * lib/unistr/u16-strcmp.c: Likewise.
57255         * lib/unistr/u16-strcpy.c: Likewise.
57256         * lib/unistr/u16-strcspn.c: Likewise.
57257         * lib/unistr/u16-strdup.c: Likewise.
57258         * lib/unistr/u16-strlen.c: Likewise.
57259         * lib/unistr/u16-strmblen.c: Likewise.
57260         * lib/unistr/u16-strmbtouc.c: Likewise.
57261         * lib/unistr/u16-strncat.c: Likewise.
57262         * lib/unistr/u16-strncmp.c: Likewise.
57263         * lib/unistr/u16-strncpy.c: Likewise.
57264         * lib/unistr/u16-strnlen.c: Likewise.
57265         * lib/unistr/u16-strpbrk.c: Likewise.
57266         * lib/unistr/u16-strrchr.c: Likewise.
57267         * lib/unistr/u16-strspn.c: Likewise.
57268         * lib/unistr/u16-strstr.c: Likewise.
57269         * lib/unistr/u16-strtok.c: Likewise.
57270         * lib/unistr/u16-to-u32.c: Likewise.
57271         * lib/unistr/u16-to-u8.c: Likewise.
57272         * lib/unistr/u16-uctomb-aux.c: Likewise.
57273         * lib/unistr/u16-uctomb.c: Likewise.
57274         * lib/unistr/u32-check.c: Likewise.
57275         * lib/unistr/u32-chr.c: Likewise.
57276         * lib/unistr/u32-cmp.c: Likewise.
57277         * lib/unistr/u32-cpy-alloc.c: Likewise.
57278         * lib/unistr/u32-cpy.c: Likewise.
57279         * lib/unistr/u32-endswith.c: Likewise.
57280         * lib/unistr/u32-mblen.c: Likewise.
57281         * lib/unistr/u32-mbsnlen.c: Likewise.
57282         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57283         * lib/unistr/u32-mbtouc.c: Likewise.
57284         * lib/unistr/u32-mbtoucr.c: Likewise.
57285         * lib/unistr/u32-move.c: Likewise.
57286         * lib/unistr/u32-next.c: Likewise.
57287         * lib/unistr/u32-prev.c: Likewise.
57288         * lib/unistr/u32-set.c: Likewise.
57289         * lib/unistr/u32-startswith.c: Likewise.
57290         * lib/unistr/u32-stpcpy.c: Likewise.
57291         * lib/unistr/u32-stpncpy.c: Likewise.
57292         * lib/unistr/u32-strcat.c: Likewise.
57293         * lib/unistr/u32-strchr.c: Likewise.
57294         * lib/unistr/u32-strcmp.c: Likewise.
57295         * lib/unistr/u32-strcpy.c: Likewise.
57296         * lib/unistr/u32-strcspn.c: Likewise.
57297         * lib/unistr/u32-strdup.c: Likewise.
57298         * lib/unistr/u32-strlen.c: Likewise.
57299         * lib/unistr/u32-strmblen.c: Likewise.
57300         * lib/unistr/u32-strmbtouc.c: Likewise.
57301         * lib/unistr/u32-strncat.c: Likewise.
57302         * lib/unistr/u32-strncmp.c: Likewise.
57303         * lib/unistr/u32-strncpy.c: Likewise.
57304         * lib/unistr/u32-strnlen.c: Likewise.
57305         * lib/unistr/u32-strpbrk.c: Likewise.
57306         * lib/unistr/u32-strrchr.c: Likewise.
57307         * lib/unistr/u32-strspn.c: Likewise.
57308         * lib/unistr/u32-strstr.c: Likewise.
57309         * lib/unistr/u32-strtok.c: Likewise.
57310         * lib/unistr/u32-to-u16.c: Likewise.
57311         * lib/unistr/u32-to-u8.c: Likewise.
57312         * lib/unistr/u32-uctomb.c: Likewise.
57313         * lib/unistr/u8-check.c: Likewise.
57314         * lib/unistr/u8-chr.c: Likewise.
57315         * lib/unistr/u8-cmp.c: Likewise.
57316         * lib/unistr/u8-cpy-alloc.c: Likewise.
57317         * lib/unistr/u8-cpy.c: Likewise.
57318         * lib/unistr/u8-endswith.c: Likewise.
57319         * lib/unistr/u8-mblen.c: Likewise.
57320         * lib/unistr/u8-mbsnlen.c: Likewise.
57321         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57322         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57323         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57324         * lib/unistr/u8-mbtouc.c: Likewise.
57325         * lib/unistr/u8-mbtoucr.c: Likewise.
57326         * lib/unistr/u8-move.c: Likewise.
57327         * lib/unistr/u8-next.c: Likewise.
57328         * lib/unistr/u8-prev.c: Likewise.
57329         * lib/unistr/u8-set.c: Likewise.
57330         * lib/unistr/u8-startswith.c: Likewise.
57331         * lib/unistr/u8-stpcpy.c: Likewise.
57332         * lib/unistr/u8-stpncpy.c: Likewise.
57333         * lib/unistr/u8-strcat.c: Likewise.
57334         * lib/unistr/u8-strchr.c: Likewise.
57335         * lib/unistr/u8-strcmp.c: Likewise.
57336         * lib/unistr/u8-strcpy.c: Likewise.
57337         * lib/unistr/u8-strcspn.c: Likewise.
57338         * lib/unistr/u8-strdup.c: Likewise.
57339         * lib/unistr/u8-strlen.c: Likewise.
57340         * lib/unistr/u8-strmblen.c: Likewise.
57341         * lib/unistr/u8-strmbtouc.c: Likewise.
57342         * lib/unistr/u8-strncat.c: Likewise.
57343         * lib/unistr/u8-strncmp.c: Likewise.
57344         * lib/unistr/u8-strncpy.c: Likewise.
57345         * lib/unistr/u8-strnlen.c: Likewise.
57346         * lib/unistr/u8-strpbrk.c: Likewise.
57347         * lib/unistr/u8-strrchr.c: Likewise.
57348         * lib/unistr/u8-strspn.c: Likewise.
57349         * lib/unistr/u8-strstr.c: Likewise.
57350         * lib/unistr/u8-strtok.c: Likewise.
57351         * lib/unistr/u8-to-u16.c: Likewise.
57352         * lib/unistr/u8-to-u32.c: Likewise.
57353         * lib/unistr/u8-uctomb-aux.c: Likewise.
57354         * lib/unistr/u8-uctomb.c: Likewise.
57355         * lib/unitypes.h: Likewise.
57356         * lib/uniwidth.h: Likewise.
57357         * lib/uniwidth/cjk.h: Likewise.
57358         * lib/uniwidth/u16-strwidth.c: Likewise.
57359         * lib/uniwidth/u16-width.c: Likewise.
57360         * lib/uniwidth/u32-strwidth.c: Likewise.
57361         * lib/uniwidth/u32-width.c: Likewise.
57362         * lib/uniwidth/u8-strwidth.c: Likewise.
57363         * lib/uniwidth/u8-width.c: Likewise.
57364         * lib/uniwidth/width.c: Likewise.
57365
57366 2007-10-07  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57369         The file is still under LGPL (see modules/inttypes).
57370
57371 2007-10-06  Bruno Haible  <bruno@clisp.org>
57372
57373         * modules/trunc (Dependencies): Add 'extensions'.
57374         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57375         Reported by Ben Pfaff <blp@gnu.org>.
57376
57377 2007-10-06  Bruno Haible  <bruno@clisp.org>
57378
57379         * modules/freopen-tests: New file.
57380         * tests/test-freopen.c: New file.
57381
57382         * modules/fopen-tests: New file.
57383         * tests/test-fopen.c: New file.
57384
57385         * modules/fopen: New file.
57386         * lib/fopen.c: New file.
57387         * m4/fopen.m4: New file.
57388         * modules/freopen: New file.
57389         * lib/freopen.c: New file.
57390         * m4/freopen.m4: New file.
57391         * lib/stdio.in.h (fopen, freopen): New declarations.
57392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57393         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57394         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57395         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57396         * doc/functions/fopen.texi: Mention the 'fopen' module.
57397         * doc/functions/freopen.texi: Mention the 'freopen' module.
57398
57399 2007-10-06  Bruno Haible  <bruno@clisp.org>
57400
57401         * modules/open-tests: New file.
57402         * tests/test-open.c: New file.
57403
57404         * modules/open: New file.
57405         * lib/open.c: New file.
57406         * m4/open.m4: New file.
57407         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57408         lib/open.c does.
57409         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57410         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57411         macros.
57412         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57413         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57414         REPLACE_OPEN.
57415         * doc/functions/open.texi: Mention the 'open' module.
57416
57417 2007-10-04  Bruno Haible  <bruno@clisp.org>
57418
57419         * modules/ceill-tests: New file.
57420         * tests/test-ceill.c: New file.
57421
57422         * modules/ceill: New file.
57423         * lib/ceill.c: Replace entire file.
57424         * m4/ceill.m4: New file.
57425         * lib/math.in.h (ceill): Replace declaration.
57426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57427         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57428         * doc/functions/ceill.texi: Mention the 'ceill' module.
57429         * modules/mathl (Files): Remove lib/ceill.c.
57430         (Depends-on): Add ceill.
57431
57432 2007-10-04  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/ceilf-tests: New file.
57435         * tests/test-ceilf.c: New file.
57436
57437         * modules/ceilf: New file.
57438         * lib/ceil.c: New file.
57439         * lib/ceilf.c: New file.
57440         * m4/ceilf.m4: New file.
57441         * lib/math.in.h (ceilf): New declaration.
57442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57443         HAVE_DECL_CEILF.
57444         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57445         HAVE_DECL_CEILF.
57446         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57447
57448 2007-10-04  Bruno Haible  <bruno@clisp.org>
57449
57450         * modules/floorl-tests: New file.
57451         * tests/test-floorl.c: New file.
57452
57453         * modules/floorl: New file.
57454         * lib/floorl.c: Replace entire file.
57455         * m4/floorl.m4: New file.
57456         * lib/math.in.h (floorl): Replace declaration.
57457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57458         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57459         * doc/functions/floorl.texi: Mention the 'floorl' module.
57460         * modules/mathl (Files): Remove lib/floorl.c.
57461         (Depends-on): Add floorl.
57462
57463 2007-10-04  Bruno Haible  <bruno@clisp.org>
57464
57465         * modules/floorf-tests: New file.
57466         * tests/test-floorf.c: New file.
57467
57468         * modules/floorf: New file.
57469         * lib/floor.c: New file.
57470         * lib/floorf.c: New file.
57471         * m4/floorf.m4: New file.
57472         * lib/math.in.h (floorf): New declaration.
57473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57474         HAVE_DECL_FLOORF.
57475         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57476         HAVE_DECL_FLOORF.
57477         * doc/functions/floorf.texi: Mention the 'floorf' module.
57478
57479 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57480             Bruno Haible  <bruno@clisp.org>
57481
57482         Advertise for the Git server instead of the CVS server.
57483         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57484         repository instead of the CVS one.
57485         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57486         about all VCS systems generically.
57487         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57488
57489 2007-10-04  Bruno Haible  <bruno@clisp.org>
57490
57491         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57492         means.
57493         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57494
57495 2007-10-04  Bruno Haible  <bruno@clisp.org>
57496
57497         * modules/truncl-tests: New file.
57498         * tests/test-truncl.c: New file.
57499
57500         * modules/truncl: New file.
57501         * lib/truncl.c: New file.
57502         * m4/truncl.m4: New file.
57503         * lib/math.in.h (truncl): New declaration.
57504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57505         HAVE_DECL_TRUNCL.
57506         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57507         HAVE_DECL_TRUNCL.
57508         * doc/functions/truncl.texi: Mention the 'truncl' module.
57509
57510 2007-10-04  Bruno Haible  <bruno@clisp.org>
57511
57512         * modules/truncf-tests: New file.
57513         * tests/test-truncf.c: New file.
57514
57515         * modules/truncf: New file.
57516         * lib/trunc.c: Make paramerizable through USE_* macros.
57517         * lib/truncf.c: New file.
57518         * m4/truncf.m4: New file.
57519         * lib/math.in.h (truncf): New declaration.
57520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57521         HAVE_DECL_TRUNCF.
57522         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57523         HAVE_DECL_TRUNCF.
57524         * doc/functions/truncf.texi: Mention the 'truncf' module.
57525
57526 2007-10-03  Bruno Haible  <bruno@clisp.org>
57527
57528         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57529         augmentation also for tests modules.
57530         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57531         * modules/atexit-tests (Makefile.am): Likewise.
57532         * modules/binary-io-tests (Makefile.am): Likewise.
57533         * modules/c-strcase-tests (Makefile.am): Likewise.
57534         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57535         * modules/canonicalize-tests (Makefile.am): Likewise.
57536         * modules/closein-tests (Makefile.am): Likewise.
57537         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57538         * modules/freadahead-tests (Makefile.am): Likewise.
57539         * modules/fseek-tests (Makefile.am): Likewise.
57540         * modules/fseeko-tests (Makefile.am): Likewise.
57541         * modules/ftell-tests (Makefile.am): Likewise.
57542         * modules/ftello-tests (Makefile.am): Likewise.
57543         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57544         * modules/isnanl-tests (Makefile.am): Likewise.
57545         * modules/lseek-tests (Makefile.am): Likewise.
57546         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57547         * modules/mbscasestr-tests (Makefile.am): Likewise.
57548         * modules/mbschr-tests (Makefile.am): Likewise.
57549         * modules/mbscspn-tests (Makefile.am): Likewise.
57550         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57551         * modules/mbspbrk-tests (Makefile.am): Likewise.
57552         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57553         * modules/mbsrchr-tests (Makefile.am): Likewise.
57554         * modules/mbsspn-tests (Makefile.am): Likewise.
57555         * modules/mbsstr-tests (Makefile.am): Likewise.
57556         * modules/printf-posix-tests (Makefile.am): Likewise.
57557         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57558         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57559         * modules/tsearch-tests (Makefile.am): Likewise.
57560         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57561         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57562         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57563         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57564         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57565         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57566         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57567         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57568         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57569         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57570         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57571         * modules/xstrtol-tests (Makefile.am): Likewise.
57572         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57573         * modules/yesno-tests (Makefile.am): Likewise.
57574
57575 2007-10-03  Bruno Haible  <bruno@clisp.org>
57576
57577         * modules/trunc-tests: New file.
57578         * tests/test-trunc.c: New file.
57579
57580         * modules/trunc: New file.
57581         * lib/trunc.c: New file.
57582         * m4/trunc.m4: New file.
57583         * lib/math.in.h (trunc): New declaration.
57584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57585         HAVE_DECL_TRUNC.
57586         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57587         HAVE_DECL_TRUNC.
57588         * doc/functions/trunc.texi: Mention the 'trunc' module.
57589
57590 2007-10-03  Bruno Haible  <bruno@clisp.org>
57591
57592         * tests/test-fpending.c: New file, mostly copied
57593         from coreutils/lib/t-fpending.c.
57594         * modules/fpending-tests: New file.
57595
57596 2007-10-03  Bruno Haible  <bruno@clisp.org>
57597
57598         Port the stdio extensions to QNX (untested).
57599         * lib/fseterr.c (fseterr): Add support for QNX.
57600         * lib/fbufmode.c (fbufmode): Likewise.
57601         * lib/freadable.c (freadable): Likewise.
57602         * lib/fwritable.c (fwritable): Likewise.
57603         * lib/freading.c (freading): Likewise.
57604         * lib/fwriting.c (fwriting): Likewise.
57605         * lib/freadahead.c (freadahed): Likewise.
57606         * lib/fpurge.c (fpurge): Likewise.
57607         * lib/fseeko.c (rpl_fseeko): Likewise.
57608
57609 2007-10-03  Bruno Haible  <bruno@clisp.org>
57610             Jim Meyering  <jim@meyering.net>
57611             Eric Blake  <ebb9@byu.net>
57612
57613         * doc/relocatable.texi: Use @command instead of @program.
57614
57615 2007-10-02  Jim Meyering  <jim@meyering.net>
57616
57617         Perform one more "_.h" -> ".in.h" substitution.
57618         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57619         instead of unistd_.h here, too.
57620
57621 2007-10-01  Bruno Haible  <bruno@clisp.org>
57622
57623         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57624         Needed for the alloca-opt module.
57625
57626 2007-09-30  Bruno Haible  <bruno@clisp.org>
57627
57628         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57629         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57630         alloca_.h.
57631         * lib/argz.in.h: Renamed from lib/argz_.h.
57632         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57633         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57634         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57635         byteswap_.h.
57636         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57637         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57638         dirent_.h.
57639         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57640         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57641         fcntl_.h.
57642         * lib/float.in.h: Renamed from lib/float_.h.
57643         * modules/float (Files, Makefile.am): Use float.in.h instead of
57644         float_.h.
57645         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57646         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57647         fnmatch_.h.
57648         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57649         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57650         getopt_.h.
57651         * lib/glob.in.h: Renamed from lib/glob_.h.
57652         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57653         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57654         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57655         iconv_.h.
57656         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57657         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57658         inttypes_.h.
57659         * lib/locale.in.h: Renamed from lib/locale_.h.
57660         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57661         locale_.h.
57662         * lib/math.in.h: Renamed from lib/math_.h.
57663         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57664         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57665         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57666         of netinet_in_.h. Add dependency.
57667         * lib/poll.in.h: Renamed from lib/poll_.h.
57668         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57669         * lib/search.in.h: Renamed from lib/search_.h.
57670         * modules/search (Files, Makefile.am): Use search.in.h instead of
57671         search_.h.
57672         * lib/signal.in.h: Renamed from lib/signal_.h.
57673         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57674         _signal.h.
57675         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57676         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57677         stdbool_.h.
57678         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57679         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57680         stdint_.h.
57681         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57682         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57683         stdio_.h.
57684         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57685         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57686         stdlib_.h.
57687         * lib/string.in.h: Renamed from lib/string_.h.
57688         * modules/string (Files, Makefile.am): Use string.in.h instead of
57689         string_.h.
57690         * doc/gnulib-tool.texi (Initial import): Update.
57691         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57692         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57693         of sys_select_.h. Add dependency.
57694         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57695         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57696         of sys_socket_.h.
57697         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57698         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57699         sys_stat_.h.
57700         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57701         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57702         sys_time_.h.
57703         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57704         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57705         sysexits_.h.
57706         * lib/time.in.h: Renamed from lib/time_.h.
57707         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57708         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57709         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57710         unistd_.h.
57711         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57712         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57713         wchar_.h.
57714         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57715         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57716         wctype_.h.
57717         * build-aux/bootstrap (slurp): Update.
57718         * lib/.cppi-disable: Update.
57719
57720 2007-09-30  Bruno Haible  <bruno@clisp.org>
57721
57722         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57723         Needed on BeOS.
57724
57725 2007-09-30  Bruno Haible  <bruno@clisp.org>
57726
57727         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57728
57729 2007-09-29  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57732
57733 2007-09-29  Bruno Haible  <bruno@clisp.org>
57734
57735         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57736         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57737         * build-aux/install-reloc: Compile also areadlink.c.
57738         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57739
57740 2007-09-29  Bruno Haible  <bruno@clisp.org>
57741
57742         * gnulib-tool (func_emit_initmacro_done): Indentation.
57743
57744 2007-09-29  Bruno Haible  <bruno@clisp.org>
57745
57746         * README: Add CVS checkout update instructions.
57747         Info from Bob Proulx <bob@proulx.com>.
57748
57749 2007-09-28  Eric Blake  <ebb9@byu.net>
57750
57751         Provide move-if-change.
57752         * build-aux/move-if-change: New file, based on best practice
57753         rather than any canonical upstream location.
57754
57755 2007-09-28  Jim Meyering  <jim@meyering.net>
57756
57757         Fix canonicalize loop-detection corner case.
57758         Do not attempt to stat the symlink values stored via seen_triple.
57759         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57760         on linux-2.6.18, (but not 2.6.22).
57761         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57762         triple_compare.  The former compares dev,ino,filename, while the latter
57763         would actually stat dirname(filename) when dev and ino were equal.
57764         * lib/hash-triple.c: Install <string.h>.
57765         (STREQ): Define.
57766         (triple_compare_ino_str): New function.
57767         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57768
57769 2007-09-28  Eric Blake  <ebb9@byu.net>
57770
57771         Enforce that AC_REPLACE_FUNCS files exist.
57772         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57773         override check for typos.
57774
57775         Fix test-closein on Solaris 10.
57776         * tests/test-closein.c (main): Don't assume stdin can be inherited
57777         closed on all systems.
57778         * tests/test-closein.sh: Likewise.
57779         Reported by Piotr Tarnowski.
57780
57781 2007-09-28  Jim Meyering  <jim@meyering.net>
57782
57783         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57784
57785 2007-09-27  Jim Meyering  <jim@meyering.net>
57786
57787         canonicalize: Avoid a false-positive cycle failure.
57788         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57789         Sort.  Remove cycle-check.
57790         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57791         not cycle-check.h.
57792         (seen_triple): New function.
57793         (canonicalize_filename_mode): Use it instead of cycle-check.
57794         * tests/test-canonicalize.c: Add a test for this bug.
57795         * tests/test-canonicalize.sh: Set up and run the test.
57796
57797         New module, file-set, from coreutils.
57798         * modules/file-set: Define it.
57799         * lib/file-set.c, lib/file-set.h: Implement.
57800
57801         New module, hash-triple, from coreutils.
57802         * modules/hash-triple: Define it.
57803         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57804
57805 2007-09-25  Eric Blake  <ebb9@byu.net>
57806
57807         Fix strerror on Interix.
57808         * lib/string_.h (strerror): Declare replacement.
57809         * doc/functions/strerror.texi (strerror): Document the Interix
57810         shortcoming.
57811         * modules/string (Makefile.am): Support new hooks.
57812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57813         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57814         gl_FUNC_STRERROR_SEPARATE.
57815         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57816         * lib/strerror.c (rpl_strerror): Provide replacement.
57817         * modules/strerror (Depends-on): Add string.
57818         (configure.ac): Detect use of module.
57819         * tests/test-strerror.c: New file.
57820         * modules/strerror-tests: New test module.
57821         * modules/argp (Depends-on): Add strerror.
57822         * modules/error (Depends-on): Likewise.
57823         Reported by Martin Koeppe.
57824
57825 2007-09-24  Bruno Haible  <bruno@clisp.org>
57826
57827         * README: Update git instructions.
57828
57829 2007-09-24  Eric Blake  <ebb9@byu.net>
57830
57831         Revert fpending breakage from 2007-09-08.
57832         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57833         __fpending.c.
57834
57835 2007-09-24  Jim Meyering  <jim@meyering.net>
57836
57837         filenamecat.c: Add a test.
57838         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57839         showing how the function works when DIR is the empty string.
57840
57841 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57842
57843         * tests/test-canonicalize.sh: Turn on executable bit.
57844
57845 2007-09-19  Eric Blake  <ebb9@byu.net>
57846
57847         * README: Update CVS instructions.
57848
57849 2007-09-18  Bruno Haible  <bruno@clisp.org>
57850
57851         * modules/areadlink: New file.
57852         * lib/areadlink.h (areadlink): New declaration.
57853         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57854
57855 2007-09-17  Jim Meyering  <jim@meyering.net>
57856
57857         * lib/savewd.c (ESTALE) [!defined]: Define.
57858         Reported to be required on Interix by Martin Koeppe.
57859
57860 2007-09-17  Bruno Haible  <bruno@clisp.org>
57861
57862         * gnulib-tool (func_version): Use $version.
57863
57864 2007-09-16  Bruno Haible  <bruno@clisp.org>
57865
57866         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57867         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57868         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57869         Reported by Greg Schafer <gschafer@zip.com.au>.
57870
57871 2007-09-15  Bruno Haible  <bruno@clisp.org>
57872
57873         * gnulib-tool (sed): Try a little harder to make bash understand the
57874         alias.
57875         Reported by Bruce Korb <bruce.korb@gmail.com>.
57876
57877 2007-09-13  Eric Blake  <ebb9@byu.net>
57878
57879         * ChangeLog: Remove conflict markers.
57880
57881 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57882
57883         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57884         Reported by Bruno Haible <bruno@clisp.org>.
57885
57886 2007-09-12  Bruno Haible  <bruno@clisp.org>
57887
57888         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57889         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57890         is not defined.
57891
57892 2007-09-12  Eric Blake  <ebb9@byu.net>
57893
57894         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57895         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57896         Autoconf definition.
57897         * modules/euidaccess (Depends-on): Add extensions, for
57898         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57899         * modules/fnmatch (Depends-on): Likewise.
57900         * modules/getaddrinfo (Depends-on): Likewise.
57901         * modules/getdelim (Depends-on): Likewise.
57902         * modules/getline (Depends-on): Likewise.
57903         * modules/getsubopt (Depends-on): Likewise.
57904         * modules/gettext (Depends-on): Likewise.
57905         * modules/group-member (Depends-on): Likewise.
57906         * modules/mbchar (Depends-on): Likewise.
57907         * modules/memmem (Depends-on): Likewise.
57908         * modules/mempcpy (Depends-on): Likewise.
57909         * modules/memrchr (Depends-on): Likewise.
57910         * modules/pagealign_alloc (Depends-on): Likewise.
57911         * modules/readutmp (Depends-on): Likewise.
57912         * modules/stpcpy (Depends-on): Likewise.
57913         * modules/stpncpy (Depends-on): Likewise.
57914         * modules/strchrnul (Depends-on): Likewise.
57915         * modules/strndup (Depends-on): Likewise.
57916         * modules/strsep (Depends-on): Likewise.
57917         * modules/strverscmp (Depends-on): Likewise.
57918         * modules/vasprintf (Depends-on): Likewise.
57919         * modules/wcwidth (Depends-on): Likewise.
57920         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57921         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57922         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57923         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57924         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57925         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57926         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57927         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57928         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57929         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57930         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57931         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57932         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57933         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57934         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57935         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57936         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57937         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57938         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57939         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57940         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57941         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57942         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57943         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57944         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57946         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57947         so that lock.m4 can be used in gettext without extensions module.
57948
57949 2007-09-11  Bruno Haible  <bruno@clisp.org>
57950
57951         * m4/isc-posix.m4: Remove file.
57952         Suggested by Eric Blake.
57953
57954 2007-09-11  Eric Blake  <ebb9@byu.net>
57955
57956         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57957
57958 2007-09-10  Bruno Haible  <bruno@clisp.org>
57959
57960         * posix-modules: Fix typo in error message.
57961         Reported by Matt <mkraai@beckman.com>.
57962
57963 2007-09-09  Bruno Haible  <bruno@clisp.org>
57964
57965         * doc/functions/getdelim.texi: Update list of platforms lacking the
57966         function.
57967         * doc/functions/getline.texi: Likewise.
57968
57969 2007-09-09  Jim Meyering  <jim@meyering.net>
57970
57971         * lib/hash.c (hash_initialize): Detect calloc failure.
57972         Reported by Bruno Haible.
57973
57974 2007-09-09  Bruno Haible  <bruno@clisp.org>
57975
57976         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57977         malloc or realloc fails.
57978
57979 2007-09-09  Bruno Haible  <bruno@clisp.org>
57980
57981         * modules/getcwd (Depends-on): Add malloc-posix.
57982         * modules/glob (Depends-on): Likewise.
57983         * modules/putenv (Depends-on): Likewise.
57984         * modules/strdup (Depends-on): Likewise.
57985         * modules/getdelim (Depends-on): Add realloc-posix.
57986         * modules/read-file (Depends-on): Likewise.
57987
57988 2007-09-09  Bruno Haible  <bruno@clisp.org>
57989
57990         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57991         (gl_FUNC_MALLOC_POSIX): Require it.
57992         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57993         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57994         * modules/realloc (Files): Add m4/malloc.m4.
57995         * modules/calloc (Files): Likewise.
57996
57997 2007-09-09  Bruno Haible  <bruno@clisp.org>
57998
57999         * modules/malloc-posix: New file.
58000         * modules/malloc (Depends-on): Add malloc-posix.
58001         * lib/malloc.c: Include errno.h.
58002         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58003         and a POSIX-compatible malloc into a single function. Set ENOMEM
58004         when returning NULL.
58005         * m4/malloc.m4: New file.
58006         * doc/functions/malloc.texi: Mention the malloc-posix module.
58007         * lib/stdlib_.h (malloc): New declaration.
58008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58009         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58010         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58011         and HAVE_MALLOC_POSIX.
58012
58013 2007-09-09  Bruno Haible  <bruno@clisp.org>
58014
58015         * modules/realloc-posix: New file.
58016         * modules/realloc (Depends-on): Add realloc-posix.
58017         * lib/realloc.c: Include errno.h.
58018         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58019         and a POSIX-compatible realloc into a single function. Set ENOMEM
58020         when returning NULL.
58021         * m4/realloc.m4: New file.
58022         * doc/functions/realloc.texi: Mention the realloc-posix module.
58023         * lib/stdlib_.h (realloc): New declaration.
58024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58025         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58026         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58027         and HAVE_REALLOC_POSIX.
58028
58029 2007-09-09  Bruno Haible  <bruno@clisp.org>
58030
58031         * modules/calloc-posix: New file.
58032         * modules/calloc (Depends-on): Add calloc-posix.
58033         * lib/calloc.c: Include errno.h.
58034         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58035         and a POSIX-compatible calloc into a single function. Set ENOMEM
58036         when returning NULL.
58037         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58038         * doc/functions/calloc.texi: Mention the calloc-posix module.
58039         * lib/stdlib_.h (calloc): New declaration.
58040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58041         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58042         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58043         and HAVE_CALLOC_POSIX.
58044
58045 2007-09-09  Bruno Haible  <bruno@clisp.org>
58046
58047         Allow for modules to show an arbitrary notice.
58048         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58049         * gnulib-tool: New option --extract-notice.
58050         (func_usage): Document it.
58051         (sed_extract_prog): Update.
58052         (func_get_notice): New function.
58053         (func_modules_notice): New function.
58054         (func_import, func_create_testdir): Invoke it.
58055         Suggested by Jim Meyering.
58056
58057 2007-09-09  Bruno Haible  <bruno@clisp.org>
58058
58059         * gnulib-tool: New options --verbose, --quiet.
58060         (func_usage): Document them.
58061         (verbose): New variable.
58062         (func_execute_command): New function.
58063         (func_import): Don't show the module list and the file list if
58064         $verbose < 0.
58065         (func_create_testdir): Likewise. Use func_execute_command.
58066         (func_create_megatestdir): Use func_execute_command.
58067
58068 2007-09-08  Bruno Haible  <bruno@clisp.org>
58069
58070         * gnulib-tool (func_import): Prefer rsync over wget when available,
58071         for fetching the PO files.
58072
58073 2007-09-08  Bruno Haible  <bruno@clisp.org>
58074
58075         * posix-modules: New file. Portions copied from gnulib-tool.
58076         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58077
58078 2007-09-08  Jim Meyering  <jim@meyering.net>
58079
58080         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58081         * lib/fpending.h: Rename from __fpending.h.
58082         * lib/fpending.c: Rename from __fpending.c.
58083         Include "fpending.h", not "__fpending.h".
58084         * lib/__fpending.h, lib/__fpending.c: Remove files.
58085         * modules/fpending (Files): Reflect new file names.
58086         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58087
58088 2007-09-08  Bruno Haible  <bruno@clisp.org>
58089
58090         * m4/inttypes-h.m4: Remove stub file.
58091
58092 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58093
58094         * doc/headers/stdint.texi: Discuss #include_next issue.
58095
58096 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58097
58098         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58099
58100 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58101
58102         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58103         in variable name.
58104
58105 2007-09-03  Jim Meyering  <jim@meyering.net>
58106
58107         New module: git-version-gen.
58108         * modules/git-version-gen: New file.
58109
58110         Import changes from coreutils for bootstrap script.
58111
58112         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58113
58114         bootstrap: uses rsync to download the .po files
58115         * build-aux/bootstrap (po_download_command_format): New global.
58116         (download_po_files): Use rsync.
58117         (update_po_files): Don't remove .po files after download,
58118         so future rsync runs can take advantage of the copies.
58119
58120         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58121
58122         Solve the unnecessary-.po-file-regeneration problem once and for all.
58123         * build-aux/bootstrap (download_po_files): New function, renamed from
58124         get_translations.  Now, downloads, but doesn't update LINGUAS.
58125         (update_po_files): New function.
58126
58127         bootstrap: Ignore more.
58128         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58129         uniwidth to e.g., lib/.gitignore.
58130         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58131
58132         * build-aux/bootstrap: New setting: vc_ignore.
58133         (insert_sorted_if_absent): Create $file if absent.
58134         Adapt to new, possibly empty, list: $vc_ignore.
58135
58136         bootstrap: generate more ignorable names
58137         * build-aux/bootstrap (slurp): When generating ignorable names,
58138         also map .sin to .sed, .gperf to .c, and .y to .c.
58139
58140 2007-09-03  Jim Meyering  <jim@meyering.net>
58141
58142         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58143         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58144
58145 2007-09-02  Bruno Haible  <bruno@clisp.org>
58146
58147         Fix mis-recognition of 'mcs' on QNX 6.
58148         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58149         output contains the string "Mono".
58150         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58151         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58152
58153 2007-09-01  Bruno Haible  <bruno@clisp.org>
58154
58155         Fix collision between uniwidth/* and linebreak modules.
58156         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58157         u32_width): Remove declarations.
58158         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58159         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58160         streq3, streq2, streq1, streq0): Remove functions.
58161         (STREQ): Remove macro.
58162         (is_cjk_encoding): Remove function.
58163         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58164         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58165         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58166         * NEWS: Document the change.
58167
58168 2007-09-01  Bruno Haible  <bruno@clisp.org>
58169
58170         * lib/streq.h: Add double-inclusion guard.
58171
58172 2007-09-01  Karl Berry  <karl@gnu.org>
58173
58174         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58175
58176 2007-08-28  Jim Meyering  <jim@meyering.net>
58177
58178         Rename mreadlink_with_size to areadlink_with_size.
58179         * NEWS: Document the change.
58180         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58181         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58182         * lib/mreadlink.h: Rename this to...
58183         * lib/areadlink.h: ...this.
58184         * modules/mreadlink-with-size: Rename this to...
58185         * modules/areadlink-with-size: ...this.
58186         * lib/canonicalize.c: Reflect the renaming.
58187         * modules/canonicalize: Likewise.
58188
58189 2007-08-26  Bruno Haible  <bruno@clisp.org>
58190
58191         * gnulib-tool (func_import): When deciding which files to remove,
58192         consider also dangling symbolic links.
58193         Reported by Eric Blake.
58194
58195 2007-08-26  Bruno Haible  <bruno@clisp.org>
58196
58197         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58198
58199 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58200
58201         * lib/readline.c: Don't include getline.h, the prototype is now
58202         found in stdio.h.
58203
58204 2007-08-23  Jim Meyering  <jim@meyering.net>
58205
58206         Getdelim touchup.
58207         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58208         around the funlockfile call, since funlockfile never sets errno.
58209         Don't set errno upon failed realloc.
58210
58211 2007-08-22  Eric Blake  <ebb9@byu.net>
58212
58213         Getline touchups.
58214         * lib/getdelim.c (getdelim): Revert regression that required *n to
58215         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58216         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58217         getdelim, rather than whether implementation is missing.
58218         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58219         * lib/stdio_.h (getline): Also declare if replacement is
58220         required.
58221         * doc/functions/getdelim.texi: New file.
58222         * doc/functions/getline.texi: Likewise.
58223         * doc/gnulib.texi (Function Substitutes): Add new files.
58224         Reported by Bruno Haible.
58225
58226 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58227
58228         * users.txt: Add Guile.
58229
58230 2007-08-22  Eric Blake  <ebb9@byu.net>
58231
58232         * tests/test-getdelim.c (main): Use remove, not unlink.
58233         * tests/test-getline.c (main): Likewise.
58234
58235         Move getline and getdelim into stdio.h, per POSIX 200x.
58236         * modules/getline (Files): Remove getline.h.
58237         (Depends-on): Add stdio.
58238         (configure.ac): Add module indicator.
58239         * modules/getdelim (Files): Remove getdelim.h.
58240         (Depends-on): Add stdio.
58241         (configure.ac): Add module indicator.
58242         * modules/stdio (Makefile.am): Work with new indicators.
58243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58244         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58245         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58246         * lib/getdelim.h: Delete.
58247         * lib/getline.h: Delete.
58248         * lib/stdio_.h (getdelim, getline): Declare.
58249         * modules/getdelim-tests: New module.
58250         * modules/getline-tests: Likewise.
58251         * tests/test-getdelim.c: New file.
58252         * tests/test-getline.c: Likewise.
58253         * NEWS: Document the change.
58254         * lib/getline.c: Update choice of header.
58255         * lib/csharpcomp.c: Likewise.
58256         * lib/getpass.c: Likewise.
58257         * lib/javacomp.c: Likewise.
58258         * lib/javaversion.c: Likewise.
58259         * lib/yesno.c: Likewise.
58260         * lib/getdelim.c: Likewise.
58261         (getdelim): Set errno on failure, and avoid memory leak.
58262
58263 2007-08-19  Bruno Haible  <bruno@clisp.org>
58264
58265         * modules/closein (Depends-on): Add freadahead.
58266         * lib/closein.c: Include freadahead.h.
58267         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58268         is zero.
58269
58270 2007-08-19  Bruno Haible  <bruno@clisp.org>
58271
58272         * modules/freadahead-tests: New file.
58273         * tests/test-freadahead.sh: New file.
58274         * tests/test-freadahead.c: New file.
58275
58276         * modules/freadahead: New file.
58277         * lib/freadahead.h: New file.
58278         * lib/freadahead.c: New file.
58279         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58280         fbufmode, fpurge, freadable, fwritable.
58281
58282 2007-08-19  Eric Blake  <ebb9@byu.net>
58283
58284         Test yesno in combination with closein.
58285         * lib/yesno.c (yesno): Document use of stdin.
58286         * modules/yesno-tests (Files): New module.
58287         * tests/test-yesno.c (main): New file.
58288         * tests/test-yesno.sh: Likewise.
58289
58290 2007-08-19  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58293         * lib/fseeko.c (rpl_fseeko): Likewise.
58294         * lib/fseterr.c (fseterr): Likewise.
58295
58296 2007-08-19  Bruno Haible  <bruno@clisp.org>
58297
58298         * tests/test-lseek.c (main): Disable a test for BeOS.
58299         * doc/functions/lseek.texi: Document the BeOS bug.
58300
58301 2007-08-19  Bruno Haible  <bruno@clisp.org>
58302             Eric Blake  <ebb9@byu.net>
58303
58304         * lib/lseek.c: Include <sys/stat.h>.
58305         (rpl_lseek): Add workaround code also for Unix platforms.
58306         Needed for BeOS.
58307         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58308         * doc/functions/lseek.texi: Document BeOS definiency.
58309
58310 2007-08-18  Bruno Haible  <bruno@clisp.org>
58311
58312         * modules/fstrcmp-tests: New file.
58313         * tests/test-fstrcmp.c: New file.
58314
58315 2007-08-18  Bruno Haible  <bruno@clisp.org>
58316
58317         * modules/fstrcmp: New file, from GNU gettext with modifications.
58318         * lib/fstrcmp.h: New file, from GNU gettext.
58319         * lib/fstrcmp.c: New file, from GNU gettext.
58320         * MODULES.html.sh (String handling): Add fstrcmp.
58321
58322 2007-08-18  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58325         'bool'.
58326         (diag, compareseq): Remove const from the ctxt argument.
58327         (USE_HEURISTIC): Undefine at the end.
58328
58329 2007-08-18  Jim Meyering  <jim@meyering.net>
58330
58331         New file: lib/idcache.h
58332         * NEWS: Mention the addition.
58333         * modules/idcache (Files): Add lib/idcache.h
58334         * lib/idcache.c: Include "idcache.h".
58335         Don't include <sys/types.h>.
58336         Add a FIXME comment.
58337         Move file-scoped "static" declarations to the top.
58338         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58339
58340 2007-08-17  Bruno Haible  <bruno@clisp.org>
58341         and Paul Eggert  <eggert@cs.ucla.edu>
58342
58343         * MODULES.html.sh: Add diffseq.
58344         * modules/diffseq: New file.
58345         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58346         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58347
58348 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         Import changes from coreutils for bootstrap script.
58351
58352         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58353
58354         * build-aux/bootstrap (slurp): Work even in environments where
58355         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58356         current code does not slurp files whose names start with ".", and
58357         this looks like it might be a troublesome area.
58358
58359         2007-07-11  Jim Meyering  <jim@meyering.net>
58360
58361         If there's a GPL vN copyright comment, require that N == 3.
58362
58363         2007-07-08  Jim Meyering  <jim@meyering.net>
58364
58365         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58366         * build-aux/bootstrap (mam_template): Move definition out of loop.
58367
58368         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58369
58370         * build-aux/bootstrap (symlink_to_dir): Rename function from
58371         symlink_to_gnulib.  Add a directory parameter.  Update all
58372         callers.
58373         (cp_mark_as_generated): Also check for -- and link to -- files in
58374         gl/.
58375
58376         2007-07-08  Jim Meyering  <jim@meyering.net>
58377
58378         Adapt to deeper hierarchy in gnulib.
58379         * build-aux/bootstrap (symlink_to_dir): If the destination
58380         directory doesn't exist, create it. This is required at least for
58381         "lib/uniwidth/cjk.h".
58382
58383         2007-05-15  Jim Meyering  <jim@meyering.net>
58384
58385         * build-aux/bootstrap: Now that generated Makefile.am files
58386         are no longer under version control, they must be created at
58387         bootstrap time.
58388
58389 2007-08-14  Ben Pfaff  <blp@gnu.org>
58390
58391         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58392
58393 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58394
58395         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58396         given the changes below.
58397         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58398         even on hosts that have padding bits beyond the supported 64.
58399
58400 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58401
58402         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58403         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58404         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58405         depends on it.
58406         (xstrtol_error): Remove.
58407         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58408         but with a different signature.
58409         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58410         * lib/xstrtol-error.c: Include exitfail.h.
58411         (xstrtol_fatal): New function, with a different signature from the
58412         old xstrtol_error, so that the caller need not worry about passing
58413         in an exit status, or about storage management of the option argument.
58414         (xstrtol_error): Now a static function.  Redo signature to
58415         implement xstrtol_fatal.  Output the correct number of hyphens in
58416         front of the option so that the caller need not worry about
58417         storage management.
58418         (N_): New macro.
58419         (_): Remove; not used now.
58420         * modules/xstrtol: Depend on getopt.
58421         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58422         of old STRTOL_FATAL_ERROR macro.
58423         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58424         of test program.
58425         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58426         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58427
58428 2007-08-08  Eric Blake  <ebb9@byu.net>
58429
58430         * lib/xstrtol-error.c: Add missing include.
58431
58432         Move xstrtol messages into gnulib domain, when --pobase is used.
58433         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58434         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58435         * modules/xstrtol (Files): Distribute new file.
58436         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58437         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58438         * tests/test-xstrtol.c: ...into new file.
58439         * tests/test-xstrtoul.c: Also test xstrtoul.
58440         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58441         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58442         * tests/test-xstrtol.sh: Drive the tests.
58443         * tests/test-xstrtoimax.sh: Likewise.
58444         * tests/test-xstrtoumax.sh: Likewise.
58445         * modules/xstrtol-tests: New module.
58446         * modules/xstrtoimax-tests: Likewise.
58447         * modules/xstrtoumax-tests: Likewise.
58448
58449 2007-08-08  Jim Meyering  <jim@meyering.net>
58450
58451         New function: mfile_name_concat.
58452         * lib/filenamecat.c (mfile_name_concat): New function, just like
58453         file_name_concat, but return NULL upon failure rather than exiting
58454         with a diagnostic.
58455         * lib/filenamecat.h: Declare it.
58456
58457 2007-08-07  Bruno Haible  <bruno@clisp.org>
58458
58459         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58460         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58461         warning from gcc.
58462         Reported by Eric Blake.
58463
58464 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58465
58466         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58467         * modules/crypto/arcfour (License): Likewise.
58468         * modules/crypto/des-tests (License): Likewise.
58469         * modules/crypto/gc-arctwo-tests (License): Likewise.
58470         * modules/crypto/gc-des-tests (License): Likewise.
58471         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58472         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58473         * modules/crypto/gc-md2-tests (License): Likewise.
58474         * modules/crypto/gc-md4-tests (License): Likewise.
58475         * modules/crypto/gc-md5-tests (License): Likewise.
58476         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58477         * modules/crypto/gc-rijndael-tests (License): Likewise.
58478         * modules/crypto/gc-sha1-tests (License): Likewise.
58479         * modules/crypto/gc-tests (License): Likewise.
58480         * modules/crypto/hmac-md5 (License): Likewise.
58481         * modules/crypto/hmac-sha1 (License): Likewise.
58482         * modules/crypto/md2-tests (License): Likewise.
58483         * modules/crypto/md4-tests (License): Likewise.
58484         * modules/crypto/md5 (License): Likewise.
58485         * modules/crypto/rijndael (License): Likewise.
58486         * modules/crypto/sha1 (License): Likewise.
58487         * modules/memxor (License): Likewise.
58488
58489 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58490         and Bruno Haible  <bruno@clisp.org>
58491
58492         * NEWS: Describe interface changes to human, xstrtol.
58493         * lib/human.h: Include <xstrtol.h>.
58494         (human_options): Return enum strtol_error, not int.  Remove
58495         bool arg; take int * instead.
58496         * lib/human.c: Don't include "gettext.h".
58497         (_): Remove; no longer used.
58498         Don't include <xstrtol.h>, since human.h does it.
58499         (human_options): Adjust to abovementioned interface changes.
58500         Do not report error to stderr; that's now the caller's
58501         responsibility.
58502         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58503         interface change.
58504         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58505         Str, Argument_type_string.  All uses changed.  Put " argument"
58506         in diagnostics to make them clearer.  Change wording of suffix
58507         message for clarity.
58508         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58509         Argument_type_string.
58510         (STRTOL_FATAL_WARN): Remove; no longer used.
58511         * modules/human (Depends-on): Remove gettext-h.
58512
58513 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58514
58515         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58516
58517 2007-07-31  Bruno Haible  <bruno@clisp.org>
58518
58519         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58520         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58521         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58522
58523 2007-07-31  Bruno Haible  <bruno@clisp.org>
58524
58525         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58526         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58527
58528 2007-07-30  Bruno Haible  <bruno@clisp.org>
58529
58530         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58531         * modules/c-ctype (License): Likewise.
58532         * modules/c-strcase (License): Likewise.
58533         * modules/check-version (License): Likewise.
58534         * modules/iconv (License): Likewise.
58535         * modules/iconv_open (License): Likewise.
58536         * modules/read-file (License): Likewise.
58537         * modules/striconv (License): Likewise.
58538         * modules/strverscmp (License): Likewise.
58539         * modules/vasprintf (License): Likewise.
58540         * modules/crypto/des (License): Likewise.
58541         * modules/crypto/gc (License): Likewise.
58542         * modules/crypto/gc-arcfour (License): Likewise.
58543         * modules/crypto/gc-arctwo (License): Likewise.
58544         * modules/crypto/gc-des (License): Likewise.
58545         * modules/crypto/gc-hmac-md5 (License): Likewise.
58546         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58547         * modules/crypto/gc-md2 (License): Likewise.
58548         * modules/crypto/gc-md4 (License): Likewise.
58549         * modules/crypto/gc-md5 (License): Likewise.
58550         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58551         * modules/crypto/gc-random (License): Likewise.
58552         * modules/crypto/gc-rijndael (License): Likewise.
58553         * modules/crypto/gc-sha1 (License): Likewise.
58554         * modules/crypto/md2 (License): Likewise.
58555         * modules/crypto/md4 (License): Likewise.
58556
58557 2007-07-30  Jim Meyering  <jim@meyering.net>
58558
58559         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58560         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58561         it has valid stat data.  This bug would cause du not to count the
58562         sizes of inaccessible directories.
58563         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58564         in <http://bugzilla.redhat.com/250077>.
58565
58566 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58567             Bruno Haible  <bruno@clisp.org>
58568
58569         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58570         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58571         #include_next, gives a diagnostic about it, but reports no error in
58572         the exit code.
58573         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58574
58575 2007-07-24  Ben Pfaff  <blp@gnu.org>
58576
58577         Improve name: "count-one-bits" is better than "popcount".
58578         * MODULES.html.sh: Update name.
58579         * lib/popcount.h: Renamed lib/count-one-bits.h.
58580         (popcount): Renamed count_one_bits.
58581         (popcountl): Renamed count_one_bits_l.
58582         (popcountll): Renamed count_one_bits_ll.
58583         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58584         * modules/popcount: Renamed module/count-one-bits.
58585         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58586         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58587
58588 2007-07-23  Ben Pfaff  <blp@gnu.org>
58589
58590         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58591         better code generation, and add U to large constants to avoid
58592         warnings, in non-GCC case.
58593         Suggested by Bruno Haible.
58594
58595 2007-07-23  Ben Pfaff  <blp@gnu.org>
58596
58597         * lib/popcount.h: Use verify_true instead of if...abort.
58598         * modules/popcount: Depend on verify module.
58599         Suggested by Jim Meyering.
58600
58601 2007-07-23  Bruno Haible  <bruno@clisp.org>
58602
58603         * gnulib-tool (func_import): Create a .cvsignore file also when the
58604         directory is not yet in CVS but the toplevel directory is. When
58605         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58606         Reported by Karl Berry.
58607
58608 2007-07-22  Ben Pfaff  <blp@gnu.org>
58609
58610         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58611         case.
58612         Suggested by Eric Blake.
58613
58614 2007-07-22  Ben Pfaff  <blp@gnu.org>
58615
58616         New module: popcount.
58617         * MODULES.html.sh: Add popcount.
58618         * modules/popcount: New file.
58619         * modules/popcount-tests: New file.
58620         * tests/test-popcount.c: New file.
58621         * lib/popcount.h: New file.
58622         * m4/popcount.m4: New file.
58623
58624 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58625
58626         * build-aux/announce-gen: Update to GPLv3.
58627
58628         * build-aux/config.guess: Update from config.
58629
58630 2007-07-21  Bruno Haible  <bruno@clisp.org>
58631
58632         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58633         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58634
58635 2007-07-20  Jim Meyering  <jim@meyering.net>
58636
58637         * check-module: Diagnose a self-dependency.
58638
58639 2007-07-19  Bruno Haible  <bruno@clisp.org>
58640
58641         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58642         empty.
58643         Reported by Eric Blake.
58644
58645 2007-07-18  Bruno Haible  <bruno@clisp.org>
58646
58647         * gnulib-tool: New options --po-base, --po-domain.
58648         (func_usage): Document them.
58649         (pobase, po_domain): New variables.
58650         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58651         DEFAULT_TEXT_DOMAIN.
58652         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58653         (func_import): Consider pobase and po_domain. Create a po/ directory.
58654         (func_create_testdir): Set pobase and po_domain to empty.
58655         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58656         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58657
58658 2007-07-18  Bruno Haible  <bruno@clisp.org>
58659
58660         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58661         EXTRA_DIST augmentation for files in build-aux/.
58662
58663 2007-07-16  Bruno Haible  <bruno@clisp.org>
58664
58665         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58666         * modules/getdelim (License): Likewise.
58667
58668 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58669
58670         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58671         * modules/d-type (License): Likewise.
58672         * modules/extensions (License): Likewise.
58673         * modules/fnmatch (License): Likewise.
58674         * modules/fseeko (License): Likewise.
58675         * modules/getaddrinfo (License): Likewise.
58676         * modules/getline (License): Likewise.
58677         * modules/getlogin_r (License): Likewise.
58678         * modules/getpass (License): Likewise.
58679         * modules/gettimeofday (License): Likewise.
58680         * modules/glob (License): Likewise.
58681         * modules/inet_ntop (License): Likewise.
58682         * modules/malloc (License): Likewise.
58683         * modules/malloca (License): Likewise.
58684         * modules/memmem (License): Likewise.
58685         * modules/mempcpy (License): Likewise.
58686         * modules/memset (License): Likewise.
58687         * modules/minmax (License): Likewise.
58688         * modules/mktime (License): Likewise.
58689         * modules/netinet_in (License): Likewise.
58690         * modules/pathmax (License): Likewise.
58691         * modules/poll (License): Likewise.
58692         * modules/regex (License): Likewise.
58693         * modules/snprintf (License): Likewise.
58694         * modules/stdbool (License): Likewise.
58695         * modules/stdint (License): Likewise.
58696         * modules/stdio (License): Likewise.
58697         * modules/strcase (License): Likewise.
58698         * modules/strcasestr (License): Likewise.
58699         * modules/strdup (License): Likewise.
58700         * modules/string (License): Likewise.
58701         * modules/strndup (License): Likewise.
58702         * modules/strnlen (License): Likewise.
58703         * modules/strpbrk (License): Likewise.
58704         * modules/strptime (License): Likewise.
58705         * modules/strsep (License): Likewise.
58706         * modules/sys_select (License): Likewise.
58707         * modules/sys_socket (License): Likewise.
58708         * modules/sys_stat (License): Likewise.
58709         * modules/sys_time (License): Likewise.
58710         * modules/time (License): Likewise.
58711         * modules/time_r (License): Likewise.
58712         * modules/timegm (License): Likewise.
58713         * modules/unistd (License): Likewise.
58714         * modules/vsnprintf (License): Likewise.
58715         * modules/wctype (License): Likewise.
58716
58717 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58718
58719         * modules/argz (License): LGPLv2+.
58720
58721 2007-07-15  Karl Berry  <karl@gnu.org>
58722
58723         * doc/gnulib.texi: revise node structure per new fdl.texi.
58724
58725 2007-07-14  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58728         the output file.
58729         * lib/uniname/uninames.h: Regenerated.
58730
58731 2007-07-14  Karl Berry  <karl@gnu.org>
58732
58733         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58734         omitting sectioning and index commands.
58735
58736 2007-07-13  Bruno Haible  <bruno@clisp.org>
58737
58738         New gnulib-tool option --more-symlinks.
58739         * gnulib-tool (func_usage): Document --more-symlinks.
58740         (do_copyrights): New variable.
58741         Recognize option --more-symlinks.
58742         (func_import): Don't add a copyright notice transform to
58743         sed_transform_lib_file if do_copyrights is empty.
58744
58745 2007-07-13  Bruno Haible  <bruno@clisp.org>
58746
58747         * lib/vasnprintf.c (decimal_point_char): Define also if
58748         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58749         && !NEED_PRINTF_DIRECTIVE_A.
58750         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58751         Gary V. Vaughan <gary@gnu.org>.
58752
58753 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         * lib/inttypes_.h: Undo previous change, since it was fixed
58756         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58757
58758 2007-07-13  Bruno Haible  <bruno@clisp.org>
58759
58760         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58761         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58762
58763 2007-07-13  Jim Meyering  <jim@meyering.net>
58764
58765         df: Don't fail for Tru64's "file-on-file mount".
58766         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58767         so we fall through and use statfs instead.  Details here:
58768         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58769         Reported by Albert Chin.
58770
58771 2007-07-13  Bruno Haible  <bruno@clisp.org>
58772
58773         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58774         * modules/configmake (License): Likewise.
58775         * modules/gettext (License): Likewise.
58776         * modules/gettext-h (License): Likewise.
58777         * modules/include_next (License): Likewise.
58778         * modules/link-warning (License): Likewise.
58779         * modules/localcharset (License): Likewise.
58780         * modules/localename (License): Likewise.
58781         * modules/lock (License): Likewise.
58782         * modules/relocatable-lib-lgpl (License): Likewise.
58783         * modules/size_max (License): Likewise.
58784         * modules/vasnprintf (License): Likewise.
58785         * modules/wchar (License): Likewise.
58786         * modules/xsize (License): Likewise.
58787
58788 2007-07-13  Bruno Haible  <bruno@clisp.org>
58789
58790         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58791         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58792
58793 2007-07-12  Bruno Haible  <bruno@clisp.org>
58794
58795         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58796         in the modules files.
58797
58798 2007-07-11  Karl Berry  <karl@gnu.org>
58799
58800         * MODULES.html.sh (func_module): use
58801          sed -e '\|^'"${includefile}"'$|d'
58802          instead of /.../d, to avoid errors on $includefile's containing /.
58803
58804 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58805
58806         * gnulib-tool (func_import): Avoid duplication of --avoid
58807         statements
58808         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58809         names to `_' in variable names.
58810
58811 2007-07-10  Eric Blake  <ebb9@byu.net>
58812
58813         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58814         * NEWS: Document this change.
58815
58816 2007-07-08  Bruno Haible  <bruno@clisp.org>
58817
58818         Update to Unicode 5.0.
58819         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58820         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58821         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58822         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58823         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58824         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58825         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58826         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58827         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58828         U+10A3F, U+1D242..U+1D244.
58829         (nonspacing_table_ind): Update.
58830         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58831         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58832
58833 2007-07-08  Bruno Haible  <bruno@clisp.org>
58834
58835         Update to Unicode 5.0.
58836         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58837         code transform. Extend the name index field of unicode_name_to_code and
58838         unicode_code_to_name from 16 to 24 bits.
58839         * lib/uniname/uniname.c (unicode_character_name,
58840         unicode_name_character): Add the range 0x12xxx to the code transform.
58841         * lib/uniname/uninames.h: Regenerated.
58842         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58843
58844 2007-07-07  Bruno Haible  <bruno@clisp.org>
58845
58846         * modules/wcwidth-tests: New file.
58847         * tests/test-wcwidth.c: New file.
58848
58849         Work around MacOS X wcwidth() bug.
58850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58851         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58852         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58853         original wcwidth in non-UTF-8 locales.
58854         * modules/wcwidth (Depends-on): Add localcharset, streq,
58855         uniwidth/width.
58856         * doc/functions/wcwidth.texi: Update.
58857
58858 2007-07-07  Bruno Haible  <bruno@clisp.org>
58859
58860         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58861         (wcwidth): New declaration.
58862         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58863         macros.
58864         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58865         here. Prepare for creating <wchar.h> unconditionally.
58866         * modules/wchar (Depends-on): Add link-warning.
58867         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58868         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58869         * lib/wcwidth.h: Remove file.
58870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58871         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58872         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58873         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58874         (Include): Replace wcwidth.h with <wchar.h>.
58875         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58876         * lib/mbchar.h: Don't include wcwidth.h.
58877         * lib/mbswidth.c: Likewise.
58878         * NEWS: Mention the change.
58879
58880 2007-07-07  Bruno Haible  <bruno@clisp.org>
58881
58882         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58883         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58884         definition with an external declaration.
58885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58886         defined as a function. Remove AC_C_INLINE requirement.
58887         * modules/wcwidth (Files): Add lib/wcwidth.c.
58888         (Makefile.am): Remove redundant statement.
58889
58890 2007-07-07  Bruno Haible  <bruno@clisp.org>
58891
58892         * MODULES.html.sh (Unicode string functions): Add the new modules.
58893
58894         * tests/uniwidth/test-u32-strwidth.c: New file.
58895         * modules/uniwidth/u32-strwidth-tests: New file.
58896
58897         * lib/uniwidth/u32-strwidth.c: New file.
58898         * modules/uniwidth/u32-strwidth: New file.
58899
58900         * tests/uniwidth/test-u16-strwidth.c: New file.
58901         * modules/uniwidth/u16-strwidth-tests: New file.
58902
58903         * lib/uniwidth/u16-strwidth.c: New file.
58904         * modules/uniwidth/u16-strwidth: New file.
58905
58906         * tests/uniwidth/test-u8-strwidth.c: New file.
58907         * modules/uniwidth/u8-strwidth-tests: New file.
58908
58909         * lib/uniwidth/u8-strwidth.c: New file.
58910         * modules/uniwidth/u8-strwidth: New file.
58911
58912         * tests/uniwidth/test-u32-width.c: New file.
58913         * modules/uniwidth/u32-width-tests: New file.
58914
58915         * lib/uniwidth/u32-width.c: New file.
58916         * modules/uniwidth/u32-width: New file.
58917
58918         * tests/uniwidth/test-u16-width.c: New file.
58919         * modules/uniwidth/u16-width-tests: New file.
58920
58921         * lib/uniwidth/u16-width.c: New file.
58922         * modules/uniwidth/u16-width: New file.
58923
58924         * tests/uniwidth/test-u8-width.c: New file.
58925         * modules/uniwidth/u8-width-tests: New file.
58926
58927         * lib/uniwidth/u8-width.c: New file.
58928         * modules/uniwidth/u8-width: New file.
58929
58930         * tests/uniwidth/test-uc_width.c: New file.
58931         * modules/uniwidth/width-tests: New file.
58932
58933         * lib/uniwidth/width.c: New file, from GNU libiconv.
58934         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58935         * modules/uniwidth/width: New file.
58936
58937         * lib/uniwidth.h: New file, from GNU libiconv.
58938         * modules/uniwidth/base: New file.
58939
58940 2007-07-07  Bruno Haible  <bruno@clisp.org>
58941
58942         * lib/uniname.h: New file, from GNU gettext.
58943         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58944         * lib/uniname/uninames.h: New file, from GNU gettext.
58945         * lib/uniname/uniname.c: New file, from GNU gettext.
58946         * tests/uniname/test-uninames.sh: New file.
58947         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58948         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58949         * modules/uniname/base: New file.
58950         * modules/uniname/uniname: New file.
58951         * modules/uniname/uniname-tests: New file.
58952         * MODULES.html.sh (Unicode string functions): Add the new modules.
58953
58954 2007-07-06  Bruno Haible  <bruno@clisp.org>
58955
58956         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58957
58958 2007-07-06  Bruno Haible  <bruno@clisp.org>
58959
58960         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58961         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58962         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58963         include <sys/time.h>.
58964         Reported by Eric Blake.
58965
58966 2007-07-06  Eric Blake  <ebb9@byu.net>
58967
58968         Fix testing canonicalize on cygwin.
58969         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58970         Revert patch from 2007-06-19.
58971         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58972         canonicalize module is also in use.
58973         * tests/test-canonicalize.c: New file.
58974         * tests/test-canonicalize.sh: Likewise.
58975         * modules/canonicalize-tests: Likewise.
58976
58977 2007-07-06  Jim Meyering  <jim@meyering.net>
58978
58979         * lib/getugroups.c (getugroups): Detect getgrent failure.
58980         Adjust comment to reflect reality: this function may return -1.
58981
58982 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58983
58984         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58985         the new TP address.
58986         (usage): Fix typo
58987         (gnulib_mk): New variable.
58988
58989 2007-07-05  Jim Meyering  <jim@meyering.net>
58990
58991         Don't let endgrent clobber errno, no matter how improbable.
58992         * lib/getugroups.c (getugroups): Save and restore errno around
58993         endgrent call.
58994
58995         Close the group DB even when failing with 2^31 or more members.
58996         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58997
58998 2007-07-04  Jim Meyering  <jim@meyering.net>
58999
59000         * lib/getugroups.h: New file.
59001         * lib/getugroups.c: Include "getugroups.h".
59002         Remove uses of "register" keyword.
59003         Move local variable, "cp", down into scope where used.
59004         Give "username" parameter the "const" attribute.
59005         * modules/getugroups (Files): Add lib/getugroups.h
59006
59007 2007-07-04  Karl Berry  <karl@gnu.org>
59008
59009         * MODULES.html.sh (func_all_modules): Complete rename of
59010         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59011
59012 2007-07-02  Bruno Haible  <bruno@clisp.org>
59013
59014         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59015         mode, when inttypes.h comes from gnulib.
59016         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59017
59018 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59019
59020         * NEWS: Mention lgpl module name change.
59021
59022         * modules/lgpl-2.1: Renamed from lgpl.
59023
59024         * NEWS: Mention gpl module name change.
59025
59026         * modules/gpl-3.0: New file, based on gpl-2.0.
59027
59028         * modules/gpl-2.0: Renamed from gpl.
59029
59030         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59031         doc/gpl-2.0.texi.
59032
59033 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59034
59035         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59036         #define __STDC_LIMIT_MACROS temporarily while including
59037         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59038         Problem reported by Joel E. Denny in
59039         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59040
59041 2007-07-01  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/unistdio.h: New file.
59044         * lib/unistdio/u-asnprintf.h: New file.
59045         * lib/unistdio/u-asprintf.h: New file.
59046         * lib/unistdio/u-printf-args.c: New file.
59047         * lib/unistdio/u-printf-args.h: New file.
59048         * lib/unistdio/u-printf-parse.h: New file.
59049         * lib/unistdio/u-snprintf.h: New file.
59050         * lib/unistdio/u-sprintf.h: New file.
59051         * lib/unistdio/u-vasprintf.h: New file.
59052         * lib/unistdio/u-vsnprintf.h: New file.
59053         * lib/unistdio/u-vsprintf.h: New file.
59054         * lib/unistdio/ulc-asnprintf.c: New file.
59055         * lib/unistdio/ulc-asprintf.c: New file.
59056         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59057         * lib/unistdio/ulc-printf-parse.c: New file.
59058         * lib/unistdio/ulc-snprintf.c: New file.
59059         * lib/unistdio/ulc-sprintf.c: New file.
59060         * lib/unistdio/ulc-vasnprintf.c: New file.
59061         * lib/unistdio/ulc-vasprintf.c: New file.
59062         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59063         * lib/unistdio/ulc-vsnprintf.c: New file.
59064         * lib/unistdio/ulc-vsprintf.c: New file.
59065         * lib/unistdio/u8-asnprintf.c: New file.
59066         * lib/unistdio/u8-asprintf.c: New file.
59067         * lib/unistdio/u8-printf-parse.c: New file.
59068         * lib/unistdio/u8-snprintf.c: New file.
59069         * lib/unistdio/u8-sprintf.c: New file.
59070         * lib/unistdio/u8-vasnprintf.c: New file.
59071         * lib/unistdio/u8-vasprintf.c: New file.
59072         * lib/unistdio/u8-vsnprintf.c: New file.
59073         * lib/unistdio/u8-vsprintf.c: New file.
59074         * lib/unistdio/u8-u8-asnprintf.c: New file.
59075         * lib/unistdio/u8-u8-asprintf.c: New file.
59076         * lib/unistdio/u8-u8-snprintf.c: New file.
59077         * lib/unistdio/u8-u8-sprintf.c: New file.
59078         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59079         * lib/unistdio/u8-u8-vasprintf.c: New file.
59080         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59081         * lib/unistdio/u8-u8-vsprintf.c: New file.
59082         * lib/unistdio/u16-asnprintf.c: New file.
59083         * lib/unistdio/u16-asprintf.c: New file.
59084         * lib/unistdio/u16-printf-parse.c: New file.
59085         * lib/unistdio/u16-snprintf.c: New file.
59086         * lib/unistdio/u16-sprintf.c: New file.
59087         * lib/unistdio/u16-vasnprintf.c: New file.
59088         * lib/unistdio/u16-vasprintf.c: New file.
59089         * lib/unistdio/u16-vsnprintf.c: New file.
59090         * lib/unistdio/u16-vsprintf.c: New file.
59091         * lib/unistdio/u16-u16-asnprintf.c: New file.
59092         * lib/unistdio/u16-u16-asprintf.c: New file.
59093         * lib/unistdio/u16-u16-snprintf.c: New file.
59094         * lib/unistdio/u16-u16-sprintf.c: New file.
59095         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59096         * lib/unistdio/u16-u16-vasprintf.c: New file.
59097         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59098         * lib/unistdio/u16-u16-vsprintf.c: New file.
59099         * lib/unistdio/u32-asnprintf.c: New file.
59100         * lib/unistdio/u32-asprintf.c: New file.
59101         * lib/unistdio/u32-printf-parse.c: New file.
59102         * lib/unistdio/u32-snprintf.c: New file.
59103         * lib/unistdio/u32-sprintf.c: New file.
59104         * lib/unistdio/u32-vasnprintf.c: New file.
59105         * lib/unistdio/u32-vasprintf.c: New file.
59106         * lib/unistdio/u32-vsnprintf.c: New file.
59107         * lib/unistdio/u32-vsprintf.c: New file.
59108         * lib/unistdio/u32-u32-asnprintf.c: New file.
59109         * lib/unistdio/u32-u32-asprintf.c: New file.
59110         * lib/unistdio/u32-u32-snprintf.c: New file.
59111         * lib/unistdio/u32-u32-sprintf.c: New file.
59112         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59113         * lib/unistdio/u32-u32-vasprintf.c: New file.
59114         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59115         * lib/unistdio/u32-u32-vsprintf.c: New file.
59116         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59117         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59118         * tests/unistdio/test-ulc-printf1.h: New file.
59119         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59120         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59121         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59122         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59123         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59124         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59125         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59126         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59127         * tests/unistdio/test-u8-asnprintf1.c: New file.
59128         * tests/unistdio/test-u8-asnprintf1.h: New file.
59129         * tests/unistdio/test-u8-printf1.h: New file.
59130         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59131         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59132         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59133         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59134         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59135         * tests/unistdio/test-u8-vasprintf1.c: New file.
59136         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59137         * tests/unistdio/test-u8-vsprintf1.c: New file.
59138         * tests/unistdio/test-u16-asnprintf1.c: New file.
59139         * tests/unistdio/test-u16-asnprintf1.h: New file.
59140         * tests/unistdio/test-u16-printf1.h: New file.
59141         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59142         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59143         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59144         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59145         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59146         * tests/unistdio/test-u16-vasprintf1.c: New file.
59147         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59148         * tests/unistdio/test-u16-vsprintf1.c: New file.
59149         * tests/unistdio/test-u32-asnprintf1.c: New file.
59150         * tests/unistdio/test-u32-asnprintf1.h: New file.
59151         * tests/unistdio/test-u32-printf1.h: New file.
59152         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59153         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59154         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59155         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59156         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59157         * tests/unistdio/test-u32-vasprintf1.c: New file.
59158         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59159         * tests/unistdio/test-u32-vsprintf1.c: New file.
59160         * modules/unistdio/base: New file.
59161         * modules/unistdio/u-printf-args: New file.
59162         * modules/unistdio/ulc-asnprintf: New file.
59163         * modules/unistdio/ulc-asprintf: New file.
59164         * modules/unistdio/ulc-fprintf: New file.
59165         * modules/unistdio/ulc-printf-parse: New file.
59166         * modules/unistdio/ulc-snprintf: New file.
59167         * modules/unistdio/ulc-sprintf: New file.
59168         * modules/unistdio/ulc-vasnprintf: New file.
59169         * modules/unistdio/ulc-vasprintf: New file.
59170         * modules/unistdio/ulc-vfprintf: New file.
59171         * modules/unistdio/ulc-vsnprintf: New file.
59172         * modules/unistdio/ulc-vsprintf: New file.
59173         * modules/unistdio/u8-asnprintf: New file.
59174         * modules/unistdio/u8-asprintf: New file.
59175         * modules/unistdio/u8-printf-parse: New file.
59176         * modules/unistdio/u8-snprintf: New file.
59177         * modules/unistdio/u8-sprintf: New file.
59178         * modules/unistdio/u8-vasnprintf: New file.
59179         * modules/unistdio/u8-vasprintf: New file.
59180         * modules/unistdio/u8-vsnprintf: New file.
59181         * modules/unistdio/u8-vsprintf: New file.
59182         * modules/unistdio/u8-u8-asnprintf: New file.
59183         * modules/unistdio/u8-u8-asprintf: New file.
59184         * modules/unistdio/u8-u8-snprintf: New file.
59185         * modules/unistdio/u8-u8-sprintf: New file.
59186         * modules/unistdio/u8-u8-vasnprintf: New file.
59187         * modules/unistdio/u8-u8-vasprintf: New file.
59188         * modules/unistdio/u8-u8-vsnprintf: New file.
59189         * modules/unistdio/u8-u8-vsprintf: New file.
59190         * modules/unistdio/u16-asnprintf: New file.
59191         * modules/unistdio/u16-asprintf: New file.
59192         * modules/unistdio/u16-printf-parse: New file.
59193         * modules/unistdio/u16-snprintf: New file.
59194         * modules/unistdio/u16-sprintf: New file.
59195         * modules/unistdio/u16-vasnprintf: New file.
59196         * modules/unistdio/u16-vasprintf: New file.
59197         * modules/unistdio/u16-vsnprintf: New file.
59198         * modules/unistdio/u16-vsprintf: New file.
59199         * modules/unistdio/u16-u16-asnprintf: New file.
59200         * modules/unistdio/u16-u16-asprintf: New file.
59201         * modules/unistdio/u16-u16-snprintf: New file.
59202         * modules/unistdio/u16-u16-sprintf: New file.
59203         * modules/unistdio/u16-u16-vasnprintf: New file.
59204         * modules/unistdio/u16-u16-vasprintf: New file.
59205         * modules/unistdio/u16-u16-vsnprintf: New file.
59206         * modules/unistdio/u16-u16-vsprintf: New file.
59207         * modules/unistdio/u32-asnprintf: New file.
59208         * modules/unistdio/u32-asprintf: New file.
59209         * modules/unistdio/u32-printf-parse: New file.
59210         * modules/unistdio/u32-snprintf: New file.
59211         * modules/unistdio/u32-sprintf: New file.
59212         * modules/unistdio/u32-vasnprintf: New file.
59213         * modules/unistdio/u32-vasprintf: New file.
59214         * modules/unistdio/u32-vsnprintf: New file.
59215         * modules/unistdio/u32-vsprintf: New file.
59216         * modules/unistdio/u32-u32-asnprintf: New file.
59217         * modules/unistdio/u32-u32-asprintf: New file.
59218         * modules/unistdio/u32-u32-snprintf: New file.
59219         * modules/unistdio/u32-u32-sprintf: New file.
59220         * modules/unistdio/u32-u32-vasnprintf: New file.
59221         * modules/unistdio/u32-u32-vasprintf: New file.
59222         * modules/unistdio/u32-u32-vsnprintf: New file.
59223         * modules/unistdio/u32-u32-vsprintf: New file.
59224         * modules/unistdio/ulc-asnprintf-tests: New file.
59225         * modules/unistdio/ulc-vasnprintf-tests: New file.
59226         * modules/unistdio/ulc-vasprintf-tests: New file.
59227         * modules/unistdio/ulc-vsnprintf-tests: New file.
59228         * modules/unistdio/ulc-vsprintf-tests: New file.
59229         * modules/unistdio/u8-asnprintf-tests: New file.
59230         * modules/unistdio/u8-vasnprintf-tests: New file.
59231         * modules/unistdio/u8-vasprintf-tests: New file.
59232         * modules/unistdio/u8-vsnprintf-tests: New file.
59233         * modules/unistdio/u8-vsprintf-tests: New file.
59234         * modules/unistdio/u16-asnprintf-tests: New file.
59235         * modules/unistdio/u16-vasnprintf-tests: New file.
59236         * modules/unistdio/u16-vasprintf-tests: New file.
59237         * modules/unistdio/u16-vsnprintf-tests: New file.
59238         * modules/unistdio/u16-vsprintf-tests: New file.
59239         * modules/unistdio/u32-asnprintf-tests: New file.
59240         * modules/unistdio/u32-vasnprintf-tests: New file.
59241         * modules/unistdio/u32-vasprintf-tests: New file.
59242         * modules/unistdio/u32-vsnprintf-tests: New file.
59243         * modules/unistdio/u32-vsprintf-tests: New file.
59244         * MODULES.html.sh (Unicode string functions): Add the new modules.
59245
59246 2007-07-01  Bruno Haible  <bruno@clisp.org>
59247
59248         * lib/sprintf.c (sprintf): Limit the available length estimation,
59249         to avoid address wraparound.
59250         * lib/vsprintf.c (vsprintf): Likewise.
59251         * modules/sprintf-posix (Dependencies): Add stdint.
59252         * modules/vsprintf-posix (Dependencies): Likewise.
59253
59254 2007-07-01  Bruno Haible  <bruno@clisp.org>
59255
59256         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59257         Windows PATH as well. Conservative double-quoting. Comments.
59258
59259 2007-07-01  Bruno Haible  <bruno@clisp.org>
59260             Eric Blake  <ebb9@byu.net>
59261             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59262
59263         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59264         empty components in $PATH, denoting '.'.
59265
59266 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59267
59268         * gnulib-tool: Fix indentation.
59269         (func_create_megatestdir): Likewise.
59270         Report by Bruno Haible.
59271
59272 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59273
59274         Sync from Automake.
59275         * build-aux/gnupload: Fix shell portability issues with for loops.
59276         Report by Karl Berry.
59277
59278 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59279
59280         * build-aux/maint.mk (POURL): Use translationproject.org.
59281
59282 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59283             Bruno Haible  <bruno@clisp.org>
59284
59285         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59286         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59287         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59288         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59289         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59290
59291 2007-06-27  Bruno Haible  <bruno@clisp.org>
59292
59293         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59294         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59295
59296 2007-06-26  Karl Berry  <karl@gnu.org>
59297
59298         * MODULES.html.sh: remove xreadlink-with-size.
59299
59300 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59301
59302         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59303         method that I hope also handles the double-include problem noted
59304         by Bruno Haible in
59305         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59306
59307 2007-06-23  Bruno Haible  <bruno@clisp.org>
59308
59309         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59310         Don't let the 'mostlyclean' target fail if the last subdirectory could
59311         not be removed.
59312         Reported by Karl Berry.
59313
59314 2007-06-23  Bruno Haible  <bruno@clisp.org>
59315
59316         * gnulib-tool (echo): Add a speedier workaround for ksh.
59317         * tests/test-echo.sh: Likewise.
59318
59319 2007-06-23  Bruno Haible  <bruno@clisp.org>
59320
59321         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59322         * tests/test-echo.sh: Likewise.
59323
59324 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59325
59326         * gnulib-tool (IFS): Initialize early, so we don't set it to
59327         empty later.
59328         (self_abspathname): Rewrite algorithm to set it, reindent.
59329         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59330         (func_create_megatestdir): Merge some sed scripts.
59331
59332 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59333
59334         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59335         exposed by Sun Studio 11 cc on Solaris 8.
59336
59337 2007-06-22  Bruno Haible  <bruno@clisp.org>
59338
59339         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59340         backslashes.
59341         * tests/test-echo.sh: New file.
59342
59343 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59344
59345         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59346         simplify `sed_replace_build_aux' scripts, they are portable but
59347         echoing them with `echo' is not.
59348         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59349
59350 2007-06-21  Karl Berry  <karl@gnu.org>
59351
59352         * config/srclist.txt: guess we can't handle the licenses via
59353         srclist at the moment.
59354
59355 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59356
59357         * MODULES.html.sh: Add include_next.
59358         * modules/include_next: New file.
59359
59360 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59361
59362         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59363         INCLUDE_NEXT.
59364         (gl_CHECK_NEXT_HEADERS): New macro.
59365         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59366         the obsolescent gl_ABSOLUTE_HEADER.
59367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59368         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59369         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59370         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59371         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59372         * m4/math_h.m4 (gl_MATH_H): Likewise.
59373         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59374         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59375         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59376         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59377         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59378         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59379         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59380         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59381         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59382         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59383         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59384         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59385         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59386         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59387         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59388         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59389         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59390         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59391         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59392         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59393         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59394         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59395         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59396         * lib/float_.h: Likewise.
59397         * lib/inttypes_.h: Likewise.
59398         * lib/math_.h: Likewise.
59399         * lib/search_.h: Likewise.
59400         * lib/signal_.h: Likewise.
59401         * lib/stdint_.h: Likewise.
59402         * lib/stdio_.h: Likewise.
59403         * lib/stdlib_.h: Likewise.
59404         * lib/string_.h: Likewise.
59405         * lib/sys_stat_.h: Likewise.
59406         * lib/sys_time_.h: Likewise.
59407         * lib/time_.h: Likewise.
59408         * lib/unistd_.h: Likewise.
59409         * lib/wchar_.h: Likewise.
59410         * lib/wctype_.h: Likewise.
59411         * lib/dirent_.h: Likewise.
59412         * lib/iconv_.h: Likewise.
59413         * lib/locale_.h: Likewise.
59414         * lib/netinet_in_.h: Likewise.
59415         * lib/sys_select_.h: Likewise.
59416         * lib/sys_socket_.h: Likewise.
59417         * lib/sysexits_.h: Likewise.
59418         * modules/fcntl (Depends-on): Depend on include_next, not
59419         absolute_header.
59420         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59421         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59422         * modules/fchdir: Likewise.
59423         * modules/float: Likewise.
59424         * modules/iconv_open: Likewise.
59425         * modules/inttypes: Likewise.
59426         * modules/locale: Likewise.
59427         * modules/math: Likewise.
59428         * modules/netinet_in: Likewise.
59429         * modules/search: Likewise.
59430         * modules/signal: Likewise.
59431         * modules/stdint: Likewise.
59432         * modules/stdio: Likewise.
59433         * modules/stdlib: Likewise.
59434         * modules/string: Likewise.
59435         * modules/sys_select: Likewise.
59436         * modules/sys_socket: Likewise.
59437         * modules/sys_stat: Likewise.
59438         * modules/sys_time: Likewise.
59439         * modules/sysexits: Likewise.
59440         * modules/time: Likewise.
59441         * modules/unistd: Likewise.
59442         * modules/wchar: Likewise.
59443         * modules/wctype: Likewise.
59444         * modules/sys_stat: Change maintainer to "all".
59445         * modules/unistd: Likewise.
59446
59447 2007-06-20  Karl Berry  <karl@gnu.org>
59448
59449         * config/srclist.txt: track www changes in license files.
59450
59451 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59452
59453         * build-aux/bootstrap: Remove stray dot.
59454         Make sure build_aux settings are honored when linking
59455         gnulib_extra_files.
59456
59457 2007-06-19  Eric Blake  <ebb9@byu.net>
59458
59459         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59460         Allow compilation on cygwin.
59461
59462 2007-06-19  Jim Meyering  <jim@meyering.net>
59463
59464         xreadlink-with-size: Remove module.  No longer used.
59465         Ex-callers now use xreadlink or mreadlink-with-size.
59466         * modules/xreadlink-with-size: Remove module.
59467         * lib/xreadlink-with-size.c: Remove file.
59468         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59469         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59470         just before the function definition *is* accurate.
59471
59472         Eliminate one way canonicalize_filename_mode could exit.
59473         * lib/canonicalize.c (canonicalize_filename_mode):
59474         Use mreadlink_with_size, not xreadlink_with_size.
59475
59476 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         Detect porting problems to FreeBSD/arm, which has time_t wider than
59479         long int.  Original problem reported for GNU diff by Xin Li in
59480         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59481         * modules/getdate (Depends-on): Add intprops, verify.
59482         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59483         is an integer type no wider than long int.
59484
59485 2007-06-18  Jim Meyering  <jim@meyering.net>
59486
59487         New module: mreadlink-with-size.
59488         * MODULES.html.sh: Add mreadlink-with-size.
59489         * modules/mreadlink-with-size: New module
59490         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59491         not xreadlink-with-size.
59492         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59493
59494 2007-06-16  Bruno Haible  <bruno@clisp.org>
59495
59496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59497         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59498         Reported by Gary V. Vaughan <gary@gnu.org>.
59499
59500 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59501
59502         Revamp lchown so that it lives in unistd.h where it belongs.
59503         * lib/lchown.h: Remove.
59504         * lib/dirchownmod.c: Don't include lib/lchown.h.
59505         * lib/fchownat.c: Likewise.
59506         * lib/openat.c: Likewise.
59507         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59508         does not follow symlinks.
59509         (EOPNOTSUPP): Define if not defined.
59510         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59511         is defined to 0.
59512         (lchown): New decl.
59513         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59514         Do not check for lchown decl.
59515         Set REPLACE_LCHOWN.
59516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59517         REPLACE_LCHOWN.
59518         * modules/chown: Make it clear it follows symlinks.
59519         * modules/lchown: Make it clear it doesn't follow symlinks.
59520         (Files): Remove lib/lchown.h
59521         (Depends-on): Add unistd.
59522         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59523         (Include): Include <unistd.h>, not "lchown.h".
59524         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59525         REPLACE_LCHOWN.
59526
59527 2007-06-15  Jim Meyering  <jim@meyering.net>
59528
59529         Change license (GPL to LGPL) of fsusage and dependents.
59530         * modules/fsusage (License): Change to LGPL.
59531         * modules/full-read (License): Likewise.
59532         * modules/full-write (License): Likewise.
59533         * modules/safe-read (License): Likewise.
59534         * modules/safe-write (License): Likewise.
59535
59536 2007-06-14  Ben Pfaff  <blp@gnu.org>
59537
59538         Missing part of allocsa -> malloca transition.
59539         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59540         gl_MALLOCA.
59541
59542 2007-06-12  Bruno Haible  <bruno@clisp.org>
59543
59544         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59545         to ia64, x86_64, i386.
59546         Reported by Eric Blake.
59547
59548 2007-06-12  Bruno Haible  <bruno@clisp.org>
59549
59550         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59551         cross-compiling to x86_64.
59552
59553 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59554
59555         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59556         glitch reported by Ralf Wildenhues in
59557         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59558
59559         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59560         Vin Shelton.
59561
59562 2007-06-11  Bruno Haible  <bruno@clisp.org>
59563
59564         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59565         replacement string.
59566         Reported by Eric Blake.
59567
59568 2007-06-10  Bruno Haible  <bruno@clisp.org>
59569
59570         Prepare vasnprintf code for use with Unicode strings.
59571         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59572         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59573         TYPE_U32_STRING.
59574         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59575         a_u32_string variants.
59576         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59577         * lib/printf-args.c: Don't include config.h and the specification
59578         header if PRINTF_FETCHARGS is already defined.
59579         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59580         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59581         TYPE_U16_STRING, TYPE_U32_STRING.
59582         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59583         u16_directive, u16_directives, u32_directive, u32_directives): New
59584         types.
59585         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59586         New declarations.
59587         * lib/printf-parse.c: Don't include config.h and the specification
59588         header if PRINTF_PARSE is already defined. Eliminate the set of
59589         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59590         them now. Include c-ctype.h.
59591         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59592         directive and CHAR_T_ONLY_ASCII.
59593         * lib/vasnprintf.c: Don't include config.h and the specification header
59594         if VASNPRINTF is already defined.
59595         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59596         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59597         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59598         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59599         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59600         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59601         code accordingly.
59602         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59603         pad_ourselves also in this case, with the 'c' and 's' directives, and
59604         with a different notion of "width".
59605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59606
59607 2007-06-10  Bruno Haible  <bruno@clisp.org>
59608
59609         * modules/unistr/u32-mbsnlen: New file.
59610         * lib/unistr/u32-mbsnlen.c: New file.
59611
59612         * modules/unistr/u16-mbsnlen: New file.
59613         * lib/unistr/u16-mbsnlen.c: New file.
59614
59615         * modules/unistr/u8-mbsnlen: New file.
59616         * lib/unistr/u8-mbsnlen.c: New file.
59617
59618         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59619         declarations.
59620
59621 2007-06-10  Bruno Haible  <bruno@clisp.org>
59622
59623         * lib/string_.h (mbsnlen): New declaration.
59624         * lib/mbsnlen.c: New file.
59625         * m4/mbsnlen.m4: New file.
59626         * modules/mbsnlen: New file.
59627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59628         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59629         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59630
59631 2007-06-10  Bruno Haible  <bruno@clisp.org>
59632
59633         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59634
59635 2007-06-10  Bruno Haible  <bruno@clisp.org>
59636
59637         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59638         * lib/mbuiter.h: Likewise.
59639
59640 2007-06-10  Bruno Haible  <bruno@clisp.org>
59641
59642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59643         declaration.
59644
59645 2007-06-10  Karl Berry  <karl@gnu.org>
59646
59647         * config/srclist.txt: remove gettext entries, Bruno prefers
59648         to update individually.
59649
59650 2007-06-10  Bruno Haible  <bruno@clisp.org>
59651
59652         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59653         'maxlen'. Ensure only length + width bytes are allocated, not
59654         length + 1 + width.
59655
59656 2007-06-09  Bruno Haible  <bruno@clisp.org>
59657
59658         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59659         (CHAR_T): Remove macro.
59660         (VASNPRINTF): Update.
59661
59662 2007-06-09  Bruno Haible  <bruno@clisp.org>
59663
59664         * MODULES.html.sh (Unicode string functions): Add the new modules.
59665
59666         * modules/uniconv/u32-conv-to-enc: New file.
59667         * lib/uniconv/u32-conv-to-enc.c: New file.
59668         * modules/uniconv/u32-conv-to-enc-tests: New file.
59669         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59670
59671         * modules/uniconv/u16-conv-to-enc: New file.
59672         * lib/uniconv/u16-conv-to-enc.c: New file.
59673         * lib/uniconv/u-conv-to-enc.h: New file.
59674         * modules/uniconv/u16-conv-to-enc-tests: New file.
59675         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59676
59677         * modules/uniconv/u8-conv-to-enc: New file.
59678         * lib/uniconv/u8-conv-to-enc.c: New file.
59679         * modules/uniconv/u8-conv-to-enc-tests: New file.
59680         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59681
59682         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59683         u32_conv_to_encoding): New declarations.
59684
59685 2007-06-09  Bruno Haible  <bruno@clisp.org>
59686
59687         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59688
59689 2007-06-09  Bruno Haible  <bruno@clisp.org>
59690
59691         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59692         * modules/malloca: Renamed from modules/allocsa, updated.
59693         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59694         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59695         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59696         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59697         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59698         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59699         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59700         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59701         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59702         * modules/c-strcasestr (Depends-on): Update.
59703         * lib/c-strcasestr.c: Update.
59704         * modules/c-strstr (Depends-on): Update.
59705         * lib/c-strstr.c: Update.
59706         * modules/canonicalize-lgpl (Depends-on): Update.
59707         * lib/canonicalize-lgpl.c: Update.
59708         * modules/clean-temp (Depends-on): Update.
59709         * lib/clean-temp.c: Update.
59710         * modules/csharpcomp (Depends-on): Update.
59711         * lib/csharpcomp.c: Update.
59712         * modules/csharpexec (Depends-on): Update.
59713         * lib/csharpexec.c: Update.
59714         * modules/javacomp (Depends-on): Update.
59715         * lib/javacomp.c: Update.
59716         * modules/javaexec (Depends-on): Update.
59717         * lib/javaexec.c: Update.
59718         * modules/mbscasestr (Depends-on): Update.
59719         * lib/mbscasestr.c: Update.
59720         * modules/mbsstr (Depends-on): Update.
59721         * lib/mbsstr.c: Update.
59722         * modules/setenv (Depends-on): Update.
59723         * lib/setenv.c: Update.
59724         * modules/strcasestr (Depends-on): Update.
59725         * lib/strcasestr.c: Update.
59726         * modules/striconveha (Depends-on): Update.
59727         * lib/striconveha.c: Update.
59728         * modules/relocatable-prog-wrapper (Files): Update.
59729         * lib/relocwrapper.c: Update.
59730         * build-aux/install-reloc: Update.
59731         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59732
59733 2007-06-08  Bruno Haible  <bruno@clisp.org>
59734
59735         Port to uClibc.
59736         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59737         * lib/fpurge.c (fpurge): Likewise.
59738         * lib/freading.c (freading): Likewise.
59739         * lib/fseeko.c (rpl_fseeko): Likewise.
59740         * lib/fseterr.c (fseterr): Likewise.
59741         * lib/fwriting.c (fwriting): Likewise.
59742         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59743
59744 2007-06-08  Bruno Haible  <bruno@clisp.org>
59745
59746         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59747         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59748         * modules/gettext (Files): Add m4/intlmacosx.m4.
59749
59750 2007-06-07  Bruno Haible  <bruno@clisp.org>
59751
59752         * modules/localename-tests: New file.
59753         * tests/test-localename.c: New file.
59754
59755         New module 'localename'.
59756         * lib/localename.h: New file.
59757         * lib/localename.c: New file, from GNU gettext.
59758         * m4/localename.m4: New file.
59759         * modules/localename: New file.
59760
59761 2007-06-07  Bruno Haible  <bruno@clisp.org>
59762
59763         Work around the lack of <wchar.h> on some builds of uClibc.
59764         * doc/headers/wchar.texi: Update.
59765         * lib/wchar_.h: Include <wchar.h> only if it exists.
59766         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59767         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59768         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59769         doesn't exist.
59770         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59771         * modules/mbfile (Depends-on): Add wchar.
59772         * modules/mbiter (Depends-on): Likewise.
59773         * modules/mbuiter (Depends-on): Likewise.
59774         Reported by Simon Josefsson.
59775
59776 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59777
59778         Work around problem reported by Steven M. Schweda in
59779         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59780         Tru64 5.1B with the Compaq compiler environment installed declares
59781         an 'isblank' function but does not define it in the C library.
59782         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59783         * lib/regex_internal.h (isblank): Likewise.
59784         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59785         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59786
59787 2007-06-05  Bruno Haible  <bruno@clisp.org>
59788
59789         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59790         ia64.
59791         * modules/printf-safe: New file.
59792         * modules/fprintf-posix (Depends-on): Add printf-safe.
59793         * modules/printf-posix (Depends-on): Likewise.
59794         * modules/snprintf-posix (Depends-on): Likewise.
59795         * modules/sprintf-posix (Depends-on): Likewise.
59796         * modules/vasnprintf-posix (Depends-on): Likewise.
59797         * modules/vasprintf-posix (Depends-on): Likewise.
59798         * modules/vfprintf-posix (Depends-on): Likewise.
59799         * modules/vprintf-posix (Depends-on): Likewise.
59800         * modules/vsnprintf-posix (Depends-on): Likewise.
59801         * modules/vsprintf-posix (Depends-on): Likewise.
59802         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59803         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59804         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59805         "no" on i386, x86_64, ia64.
59806         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59807         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59808         on i386, x86_64, ia64.
59809         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59810         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59811         on i386, x86_64, ia64.
59812         * tests/test-vasnprintf-posix.c: Include float.h.
59813         (LDBL80_WORDS): New macro.
59814         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59815         on i386, x86_64, ia64.
59816         * tests/test-vasprintf-posix.c: Include float.h.
59817         (LDBL80_WORDS): New macro.
59818         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59819         on i386, x86_64, ia64.
59820         * tests/test-snprintf-posix.c: Include float.h.
59821         * tests/test-sprintf-posix.c: Likewise.
59822         * tests/test-vsnprintf-posix.c: Likewise.
59823         * tests/test-vsprintf-posix.c: Likewise.
59824
59825 2007-06-05  Bruno Haible  <bruno@clisp.org>
59826
59827         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59828         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59829         non-IEEE numbers on i386, x86_64, ia64.
59830         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59831         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59832         * tests/test-isnanl.h: Include float.h.
59833         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59834
59835 2007-06-05  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59838         also the %a / %A. Handle the %a / %A code before this extra handling.
59839
59840 2007-06-05  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59843         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59844
59845 2007-06-05  Bruno Haible  <bruno@clisp.org>
59846
59847         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59848         typo in variable name.
59849
59850 2007-06-05  Eric Blake  <ebb9@byu.net>
59851
59852         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59853         Reported by Simon Josefsson.
59854
59855 2007-06-04  Bruno Haible  <bruno@clisp.org>
59856
59857         Avoid test failures on some PowerPC platforms.
59858         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59859         Define differently for PowerPC.
59860         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59861         Reported by Gary V. Vaughan <gary@gnu.org>.
59862
59863 2007-06-02  Bruno Haible  <bruno@clisp.org>
59864
59865         Fix test-stdint failure on FreeBSD/ia64.
59866         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59867         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59868         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59869         * doc/headers/stdint.texi: Update.
59870
59871 2007-06-01  Bruno Haible  <bruno@clisp.org>
59872
59873         * tests/test-binary-io.c (main): Pass a third argument to open().
59874         Reported by Gary V. Vaughan <gary@gnu.org>.
59875
59876 2007-06-01  Bruno Haible  <bruno@clisp.org>
59877
59878         * doc/functions/frexpl.texi: Update for mingw.
59879
59880 2007-06-01  Bruno Haible  <bruno@clisp.org>
59881
59882         * tests/test-lseek.c (main): Disable test of errno for invalid third
59883         argument.
59884         * doc/functions/lseek.texi: Update.
59885         Reported by Gary V. Vaughan <gary@gnu.org>.
59886
59887 2007-05-28  Bruno Haible  <bruno@clisp.org>
59888
59889         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59890
59891 2007-05-31  Eric Blake  <ebb9@byu.net>
59892
59893         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59894         cross compiling.
59895
59896 2007-05-30  Eric Blake  <ebb9@byu.net>
59897         and Bruno Haible  <bruno@clisp.org>
59898
59899         Work around mingw test failures exposed by m4-1.4.9b.
59900         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59901         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59902         moment.
59903
59904 2007-05-30  Bruno Haible  <bruno@clisp.org>
59905
59906         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59907         assuming that they are closed. Needed on HP-UX 11.
59908
59909 2007-05-29  Bruno Haible  <bruno@clisp.org>
59910
59911         Fix a problem with #include_next.
59912         * lib/dirent_.h: Split the double-inclusion guard.
59913         * lib/fcntl_.h: Likewise.
59914         * lib/float_.h: Likewise.
59915         * lib/iconv_.h: Likewise.
59916         * lib/inttypes_.h: Likewise.
59917         * lib/locale_.h: Likewise.
59918         * lib/math_.h: Likewise.
59919         * lib/netinet_in_.h: Likewise.
59920         * lib/search_.h: Likewise.
59921         * lib/signal_.h: Likewise.
59922         * lib/stdint_.h: Likewise.
59923         * lib/stdio_.h: Likewise.
59924         * lib/stdlib_.h: Likewise.
59925         * lib/string_.h: Likewise.
59926         * lib/sys_select_.h: Likewise.
59927         * lib/sys_socket_.h: Likewise.
59928         * lib/sys_stat_.h: Likewise.
59929         * lib/sys_time_.h: Likewise.
59930         * lib/sysexits_.h: Likewise.
59931         * lib/time_.h: Likewise.
59932         * lib/unistd_.h: Likewise.
59933         * lib/wchar_.h: Likewise.
59934         * lib/wctype_.h: Likewise.
59935
59936 2007-05-29  Bruno Haible  <bruno@clisp.org>
59937
59938         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59939         for the moment.
59940
59941 2007-05-29  Bruno Haible  <bruno@clisp.org>
59942
59943         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59944         invocation.
59945         Reported by Eric Blake.
59946
59947 2007-05-29  Bruno Haible  <bruno@clisp.org>
59948
59949         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59950         compiling case.
59951
59952 2007-05-29  Eric Blake  <ebb9@byu.net>
59953             Bruno Haible  <bruno@clisp.org>
59954
59955         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59956         cross compiles.
59957
59958 2007-05-28  Eric Blake  <ebb9@byu.net>
59959
59960         * modules/closein-tests (test_closein_LDADD): Support test on
59961         cygwin with libtool.
59962
59963 2007-05-28  Bruno Haible  <bruno@clisp.org>
59964
59965         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59966         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59967         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59968         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59969         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59970         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59971         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59972         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59973         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59974
59975 2007-05-28  Eric Blake  <ebb9@byu.net>
59976
59977         Unconditionally include <config.h> in unit tests.
59978         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59979         * tests/test-allocsa.c, tests/test-arcfour.c,
59980         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59981         tests/test-array_list.c, tests/test-array_oset.c,
59982         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59983         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59984         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59985         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59986         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59987         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59988         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59989         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59990         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59991         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59992         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59993         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59994         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59995         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59996         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59997         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59998         test-md5.c, test-memmem.c, test-printf-posix.c,
59999         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60000         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60001         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60002         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60003         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60004         test-vasnprintf-posix2.c, test-vasnprintf.c,
60005         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60006         test-vfprintf-posix.c, test-vprintf-posix.c,
60007         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60008         test-xvasprintf.c: Likewise.
60009
60010 2007-05-28  Bruno Haible  <bruno@clisp.org>
60011
60012         * gnulib-tool (func_import): Remember the --with-tests command-line
60013         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60014         Reported by Eric Blake.
60015
60016 2007-05-28  Bruno Haible  <bruno@clisp.org>
60017
60018         * modules/ftell-tests: New file.
60019         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60020         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60021
60022         * lib/ftell.c: New file.
60023         * modules/ftell: New file.
60024         * m4/ftell.m4: New file.
60025         * doc/functions/ftell.texi: Update.
60026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60027         REPLACE_FTELL.
60028         * lib/stdio_.h (rpl_ftell): New declaration.
60029         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60030         REPLACE_FTELL.
60031
60032 2007-05-28  Eric Blake  <ebb9@byu.net>
60033
60034         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60035
60036 2007-05-28  Bruno Haible  <bruno@clisp.org>
60037
60038         * modules/fseek-tests: New file.
60039         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60040         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60041
60042         * lib/fseek.c: New file.
60043         * modules/fseek: New file.
60044         * m4/fseek.m4: New file.
60045         * doc/functions/fseek.texi: Update.
60046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60047         REPLACE_FSEEK.
60048         * lib/stdio_.h (rpl_fseek): New declaration.
60049         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60050         REPLACE_FSEEK.
60051
60052 2007-05-28  Bruno Haible  <bruno@clisp.org>
60053
60054         * lib/stdio_.h (fflush): More comments.
60055
60056 2007-05-28  Bruno Haible  <bruno@clisp.org>
60057
60058         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60059         runtime test.
60060
60061 2007-05-28  Eric Blake  <ebb9@byu.net>
60062
60063         Improve lseek module.
60064         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60065         * lib/unistd_.h (lseek): Scale back link warning message.
60066         * tests/test-lseek.c: Beef up test.
60067         * tests/test-lseek.sh: Exercise more facets of lseek.
60068         Reported by Bruno Haible.
60069
60070 2007-05-28  Bruno Haible  <bruno@clisp.org>
60071
60072         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60073         to define.
60074
60075 2007-05-27  Bruno Haible  <bruno@clisp.org>
60076
60077         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60078
60079 2007-05-27  Bruno Haible  <bruno@clisp.org>
60080
60081         * modules/openmp: New file.
60082         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60083         Noah Misch.
60084
60085 2007-05-26  Bruno Haible  <bruno@clisp.org>
60086
60087         * modules/chdir-long (Depends-on): Add fchdir.
60088         * modules/chdir-safer (Depends-on): Likewise.
60089         * modules/fts (Depends-on): Likewise.
60090         * modules/fts-lgpl (Depends-on): Likewise.
60091         * modules/openat (Depends-on): Likewise.
60092         * modules/savewd (Depends-on): Likewise.
60093
60094 2007-05-24  Eric Blake  <ebb9@byu.net>
60095
60096         Fix lseek on mingw.
60097         * modules/lseek: New module.
60098         * m4/lseek.m4: New file.
60099         * lib/lseek.c: New file.
60100         * modules/lseek-tests: New file.
60101         * tests/test-lseek.c: New file.
60102         * tests/test-lseek.sh: New file.
60103         * MODULES.html.sh: Document lseek module.
60104         * modules/fflush (Depends-on): Add lseek, fseeko.
60105         * modules/fseeko (Depends-on): Likewise.
60106         * modules/ftello (Depends-on): Likewise.
60107         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60108         broken.
60109         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60110         broken.
60111         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60112         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60113         * lib/ftello.c (rpl_ftello): Likewise.
60114         * tests/test-fseeko.c (main): Test this.
60115         * tests/test-fseeko.sh: Likewise.
60116         * tests/test-ftello.c (main): Likewise.
60117         * tests/test-ftello.sh: Likewise.
60118         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60119         implies replacing fseek.
60120         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60121         HAVE_FTELLO.
60122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60123         * modules/unistd (Makefile.am): Likewise.
60124         * lib/unistd_.h (lseek): Declare a replacement.
60125         * doc/functions/lseek.texi (lseek): Document this fix.
60126         * doc/functions/fseek.texi (fseek): Likewise.
60127         * doc/functions/ftell.texi (ftell): Likewise.
60128
60129 2007-05-24  Bruno Haible  <bruno@clisp.org>
60130
60131         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60132         in the printed representation of a NaN.
60133         * tests/test-vasprintf-posix.c (test_function): Likewise.
60134         * tests/test-snprintf-posix.h (test_function): Likewise.
60135         * tests/test-sprintf-posix.h (test_function): Likewise.
60136         Reported by Eric Blake.
60137
60138 2007-05-23  Eric Blake  <ebb9@byu.net>
60139
60140         Fix fseeko/ftello on cygwin 1.5.24.
60141         * doc/functions/fseeko.texi (fseeko): Document the fix.
60142         * doc/functions/ftello.texi (ftello): Document the fix.
60143         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60144         * doc/functions/stdout.text (stdout): New file.
60145         * doc/functions/stderr.text (stderr): New file.
60146         * doc/gnulib.texi (Function Substitutes): Use new files.
60147         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60148         prior to 1.7.0.
60149         * tests/test-ftello.c (main): Likewise for ftello.
60150         * tests/test-fseeko.sh: New file.
60151         * tests/test-ftello.sh: New file.
60152         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60153         with seekable stdin.
60154         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60155         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60156         (gl_REPLACE_FSEEKO): New macro.
60157         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60158         * modules/fseeko (Files): Distribute fseeko.c.
60159         * modules/ftello (Files): Distribute ftello.c.
60160         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60161         mode.
60162         * lib/ftello.c (rpl_ftello): New file.
60163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60164         fseeko, ftello.
60165         (gl_STDIN_LARGE_OFFSET): New macro.
60166         * modules/stdio (Makefile.am): Perform the replacement.
60167         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60168
60169 2007-05-23  Bruno Haible  <bruno@clisp.org>
60170
60171         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60172         GNULIB_POSIXCHECK is defined.
60173
60174 2007-05-21  Bruno Haible  <bruno@clisp.org>
60175
60176         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60177         Check also the output for NaN arguments. When cross-compiling, guess
60178         no on IRIX.
60179         * lib/vasnprintf.c: Update comments.
60180         * tests/test-vasnprintf-posix.c (strisnan): New function.
60181         (test_function): Use it.
60182         * tests/test-vasprintf-posix.c (strisnan): New function.
60183         (test_function): Use it.
60184         * tests/test-snprintf-posix.h (strisnan): New function.
60185         (test_function): Use it.
60186         * tests/test-sprintf-posix.h (strisnan): New function.
60187         (test_function): Use it.
60188         Reported by Eric Blake.
60189
60190 2007-05-20  Bruno Haible  <bruno@clisp.org>
60191
60192         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60193         numbers that fails on BeOS.
60194         * doc/functions/frexpl.texi: Update.
60195
60196 2007-05-20  Jim Meyering  <jim@meyering.net>
60197
60198         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60199         forced upon us by glibc-2.6.
60200
60201 2007-05-20  Bruno Haible  <bruno@clisp.org>
60202
60203         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60204         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60205         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60206         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60207         NEED_PRINTF_INFINITE.
60208         (is_infinitel): New function.
60209         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60211         gl_PREREQ_VASNPRINTF_INFINITE.
60212         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60213         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60214         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60215         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60216         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60217         gl_PREREQ_VASNPRINTF_INFINITE.
60218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60223         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60225         * doc/functions/fprintf.texi: Update.
60226         * doc/functions/printf.texi: Update.
60227         * doc/functions/snprintf.texi: Update.
60228         * doc/functions/sprintf.texi: Update.
60229         * doc/functions/vfprintf.texi: Update.
60230         * doc/functions/vprintf.texi: Update.
60231         * doc/functions/vsnprintf.texi: Update.
60232         * doc/functions/vsprintf.texi: Update.
60233
60234 2007-05-20  Bruno Haible  <bruno@clisp.org>
60235
60236         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60237         was not found in libc.
60238         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60239
60240 2007-05-20  Bruno Haible  <bruno@clisp.org>
60241
60242         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60243         printed as "-nan" instead of "nan".
60244         * tests/test-vasprintf-posix.c (test_function): Likewise.
60245         * tests/test-snprintf-posix.h (test_function): Likewise.
60246         * tests/test-sprintf-posix.h (test_function): Likewise.
60247         Needed for HP-UX 11.
60248
60249 2007-05-20  Jim Meyering  <jim@meyering.net>
60250
60251         Fix buggy test for the fchownat-deref bug.
60252         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60253         symlink required for the run-test.  Without it, this test would
60254         always declare that fchownat doesn't work, and client code would
60255         unnecessarily use the replacement function with fixed libc.
60256         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60257         Reported by Greg Schafer.
60258
60259 2007-05-19  Bruno Haible  <bruno@clisp.org>
60260
60261         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60262         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60263         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60264         Needed for IRIX 6.5 and Solaris 2.5.1.
60265
60266 2007-05-19  Bruno Haible  <bruno@clisp.org>
60267
60268         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60269         (test_function): Skip tests involving -0.0 on platforms where
60270         -0.0 = 0.0.
60271         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60272         (test_function): Skip tests involving -0.0 on platforms where
60273         -0.0 = 0.0.
60274         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60275         (test_function): Skip tests involving -0.0 on platforms where
60276         -0.0 = 0.0.
60277         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60278         (test_function): Skip tests involving -0.0 on platforms where
60279         -0.0 = 0.0.
60280         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60281         tests.
60282         * tests/test-printf-posix.h (test_function): Likewise.
60283         * tests/test-printf-posix.output: Remove all -0.0 related results.
60284         Needed for IRIX 6.5.
60285
60286 2007-05-19  Bruno Haible  <bruno@clisp.org>
60287
60288         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60289         printed as "nan0x7fffffff" instead of "nan".
60290         * tests/test-vasprintf-posix.c (test_function): Likewise.
60291         * tests/test-snprintf-posix.h (test_function): Likewise.
60292         * tests/test-sprintf-posix.h (test_function): Likewise.
60293         * tests/test-fprintf-posix.h (NaN): Remove macro.
60294         (test_function): Remove all NaN related tests.
60295         * tests/test-printf-posix.h (NaN): Remove macro.
60296         (test_function): Remove all NaN related tests.
60297         * tests/test-printf-posix.output: Remove all NaN related results.
60298         Needed for IRIX 6.5.
60299
60300 2007-05-19  Bruno Haible  <bruno@clisp.org>
60301
60302         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60303         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60304
60305 2007-05-19  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/float_.h: New file.
60308         * m4/float_h.m4: New file.
60309         * modules/float: New file.
60310         * modules/isnanl (Dependencies): Add float.
60311         * modules/isnanl-nolibm (Dependencies): Likewise.
60312         * modules/mathl (Dependencies): Likewise.
60313         * modules/printf-frexpl (Dependencies): Likewise.
60314         * modules/signbit (Dependencies): Likewise.
60315         * modules/vasnprintf (Dependencies): Likewise.
60316         * doc/headers/float.texi: Update.
60317
60318 2007-05-19  Jim Meyering  <jim@meyering.net>
60319
60320         * lib/utimens.c (gl_futimens): Rename from futimens,
60321         now that glibc-2.6 declares futimens.
60322         * lib/utimens.h: Likewise.
60323
60324 2007-05-19  Bruno Haible  <bruno@clisp.org>
60325
60326         Avoid test failures on mingw.
60327         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60328         * tests/test-printf-posix.sh: Likewise.
60329         * tests/test-vfprintf-posix.sh: Likewise.
60330         * tests/test-vprintf-posix.sh: Likewise.
60331
60332 2007-05-19  Bruno Haible  <bruno@clisp.org>
60333
60334         Fix *printf result for NaN, Inf, -0.0 on mingw.
60335         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60336         * lib/vasnprintf.c: Include math.h and isnan.h.
60337         (is_infinite_or_zero): New function.
60338         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60339         values in the %f, %F, %e, %E, %g, %G directives.
60340         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60341         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60342         gl_PRINTF_INFINITE and test its result. Invoke
60343         gl_PREREQ_VASNPRINTF_INFINITE.
60344         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60345         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60346         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60347         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60348         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60349         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60350         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60351         * doc/functions/fprintf.texi: Update.
60352         * doc/functions/printf.texi: Update.
60353         * doc/functions/snprintf.texi: Update.
60354         * doc/functions/sprintf.texi: Update.
60355         * doc/functions/vfprintf.texi: Update.
60356         * doc/functions/vprintf.texi: Update.
60357         * doc/functions/vsnprintf.texi: Update.
60358         * doc/functions/vsprintf.texi: Update.
60359
60360 2007-05-19  Bruno Haible  <bruno@clisp.org>
60361
60362         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60363         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60364         Instead of multiplying with 10^k, set extra_zeroes to k.
60365         (scale10_round_long_double): Remove function.
60366
60367 2007-05-18  Bruno Haible  <bruno@clisp.org>
60368
60369         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60370         introduced on 2007-05-06.
60371
60372 2007-05-18  Bruno Haible  <bruno@clisp.org>
60373
60374         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60375         %g directives.
60376         * tests/test-vasprintf-posix.c (test_function): Likewise.
60377         * tests/test-snprintf-posix.h (test_function): Likewise.
60378         * tests/test-sprintf-posix.h (test_function): Likewise.
60379
60380 2007-05-18  Bruno Haible  <bruno@clisp.org>
60381
60382         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60383         (strmatch): New function.
60384         (test_function): Test the %f directive on numbers of various exponents.
60385         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60386         (strmatch): New function.
60387         (test_function): Test the %f directive on numbers of various exponents.
60388         * tests/test-snprintf-posix.h (strmatch): New function.
60389         (test_function): Test the %f directive on numbers of various exponents.
60390         * tests/test-sprintf-posix.h (strmatch): New function.
60391         (test_function): Test the %f directive on numbers of various exponents.
60392         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60393         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60394         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60395         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60396
60397 2007-05-18  Bruno Haible  <bruno@clisp.org>
60398
60399         Add support for 'long double' number output.
60400         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60401         * lib/vasnprintf.c: Include math.h and float+.h.
60402         (mp_limb_t): New type.
60403         (GMP_LIMB_BITS): New macro.
60404         (mp_twolimb_t): New type.
60405         (GMP_TWOLIMB_BITS): New macro.
60406         (mpn_t): New type.
60407         (multiply, divide, convert_to_decimal, decode_long_double,
60408         scale10_round_long_double, scale10_round_decimal_long_double,
60409         floorlog10l): New functions.
60410         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60411         for the %f, %F, %e, %E, %g, %G directives.
60412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60413         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60414         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60415         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60416         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60417         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60418         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60419         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60420         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60421         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60422         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60423         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60424         * modules/snprintf-posix (Depends-on): Likewise.
60425         * modules/sprintf-posix (Depends-on): Likewise.
60426         * modules/vasnprintf-posix (Depends-on): Likewise.
60427         * modules/vasprintf-posix (Depends-on): Likewise.
60428         * modules/vfprintf-posix (Depends-on): Likewise.
60429         * modules/vsnprintf-posix (Depends-on): Likewise.
60430         * modules/vsprintf-posix (Depends-on): Likewise.
60431         * modules/vasnprintf (Files): Add lib/float+.h.
60432         * doc/functions/fprintf.texi: Update.
60433         * doc/functions/printf.texi: Update.
60434         * doc/functions/snprintf.texi: Update.
60435         * doc/functions/sprintf.texi: Update.
60436         * doc/functions/vfprintf.texi: Update.
60437         * doc/functions/vprintf.texi: Update.
60438         * doc/functions/vsnprintf.texi: Update.
60439         * doc/functions/vsprintf.texi: Update.
60440
60441 2007-05-18  Bruno Haible  <bruno@clisp.org>
60442
60443         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60444
60445 2007-05-18  Bruno Haible  <bruno@clisp.org>
60446
60447         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60448         for printing 64-bit integers. Needed for mingw.
60449
60450 2007-05-18  Bruno Haible  <bruno@clisp.org>
60451
60452         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60453         gl_FUNC_FREXPL_WORKS.
60454         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60455
60456 2007-05-18  Bruno Haible  <bruno@clisp.org>
60457
60458         * modules/frexpl-nolibm-tests: New file.
60459
60460         * modules/frexpl-nolibm: New file.
60461         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60462
60463 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60464
60465         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60466         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60467         GCC 4.2, which otherwise issues a lot of warnings.
60468         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60469         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60470         Likewise.
60471         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60472         * modules/iconv_open (iconv.h): Likewise.
60473         * modules/locale (locale.h): Likewise.
60474         * modules/netinet_in (netinet/in.h): Likewise.
60475         * modules/sys_select (sys_select.h): Likewise.
60476         * modules/sys_socket (sys/socket.h): Likewise.
60477         * modules/sys_stat (sys/stat.h): Likewise.
60478         * modules/sysexits (sysexits.h): Likewise.
60479         * modules/unistd (unistd.h): Likewise.
60480
60481 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60482
60483         * modules/closein-tests (Makefile.am): Distribute
60484         `test-closein.sh'.
60485
60486 2007-05-17  Bruno Haible  <bruno@clisp.org>
60487
60488         * tests/test-printf-posix.output: Renamed from
60489         tests/test-fprintf-posix.out.
60490         * modules/fprintf-posix-tests: Update.
60491         * modules/printf-posix-tests: Update.
60492         * modules/vfprintf-posix-tests: Update.
60493         * modules/vprintf-posix-tests: Update.
60494         * tests/test-fprintf-posix.sh: Update.
60495         * tests/test-printf-posix.sh: Update.
60496         * tests/test-vfprintf-posix.sh: Update.
60497         * tests/test-vprintf-posix.sh: Update.
60498         Reported by Ralf Wildenhues.
60499
60500 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60503         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60504         GCC 4.2, which otherwise issues a lot of warnings.
60505         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60506         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60507         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60508         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60509         it should no longer be needed.
60510         * lib/string_.h: Likewise.
60511         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60512         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60513         * modules/inttypes (inttypes.h): Likewise.
60514         * modules/math (math.h): Likewise.
60515         * modules/search (search.h): Likewise.
60516         * modules/signal (signal.h): Likewise.
60517         * modules/stdint (stdint.h): Likewise.
60518         * modules/stdio (stdio.h): Likewise.
60519         * modules/stdlib (stdlib.h): Likewise.
60520         * modules/string (string.h): Likewise.
60521         * modules/sys_time (sys/time.h): Likewise.
60522         * modules/time (time.h): Likewise.
60523         * modules/wchar (wchar.h): Likewise.
60524         * modules/wctype (wtype.h): Likewise.
60525
60526 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60527
60528         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60529
60530 2007-05-13  Bruno Haible  <bruno@clisp.org>
60531
60532         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60533         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60534         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60535         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60536         (gl_PREREQ_STRTOK_R): Don't require it here.
60537
60538 2007-05-13  Bruno Haible  <bruno@clisp.org>
60539
60540         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60541         when used in C++ mode.
60542
60543 2007-05-12  Bruno Haible  <bruno@clisp.org>
60544
60545         * lib/linebuffer.h: Tweak doc.
60546         * lib/linebuffer.c: Likewise.
60547
60548 2007-05-12  James Youngman  <jay@gnu.org>
60549
60550         * lib/linebuffer.c (readlinebuffer_delim): New function,
60551         like readlinebuffer, but use a caller-specified delimiter.
60552         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60553         as the delimiter.
60554         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60555
60556 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60557
60558         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60559         * modules/openat (Files): Remove openat-die.c.
60560         (Depends-on): Add openat-die.
60561         * modules/openat-die: New module.
60562
60563 2007-05-06  Bruno Haible  <bruno@clisp.org>
60564
60565         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60566         Update with info about Cygwin.
60567         * doc/functions/fprintf.texi: Update.
60568         * doc/functions/printf.texi: Update.
60569         * doc/functions/snprintf.texi: Update.
60570         * doc/functions/sprintf.texi: Update.
60571         * doc/functions/vfprintf.texi: Update.
60572         * doc/functions/vprintf.texi: Update.
60573         * doc/functions/vsnprintf.texi: Update.
60574         * doc/functions/vsprintf.texi: Update.
60575         Reported by Eric Blake.
60576
60577 2007-05-06  Bruno Haible  <bruno@clisp.org>
60578
60579         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60580         padding ourselves for the floating-point directives.
60581         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60584         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60585         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60587         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60588         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60589         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60590         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60591         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60593         * tests/test-snprintf-posix.h (test_function): Also check the width
60594         and some flags in the %f directive.
60595         * tests/test-sprintf-posix.h (test_function): Likewise.
60596         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60597         * tests/test-vasprintf-posix.c (test_function): Likewise.
60598         * doc/functions/fprintf.texi: Update.
60599         * doc/functions/printf.texi: Update.
60600         * doc/functions/snprintf.texi: Update.
60601         * doc/functions/sprintf.texi: Update.
60602         * doc/functions/vfprintf.texi: Update.
60603         * doc/functions/vprintf.texi: Update.
60604         * doc/functions/vsnprintf.texi: Update.
60605         * doc/functions/vsprintf.texi: Update.
60606
60607 2007-05-06  Bruno Haible  <bruno@clisp.org>
60608
60609         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60610         pass the ' flag character to sprintf or snprintf.
60611         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60613         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60614         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60615         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60617         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60618         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60619         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60620         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60621         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60622         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60623         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60624         flag.
60625         * tests/test-sprintf-posix.h (test_function): Likewise.
60626         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60627         * tests/test-vasprintf-posix.c (test_function): Likewise.
60628         * doc/functions/fprintf.texi: Update.
60629         * doc/functions/printf.texi: Update.
60630         * doc/functions/snprintf.texi: Update.
60631         * doc/functions/sprintf.texi: Update.
60632         * doc/functions/vfprintf.texi: Update.
60633         * doc/functions/vprintf.texi: Update.
60634         * doc/functions/vsnprintf.texi: Update.
60635         * doc/functions/vsprintf.texi: Update.
60636
60637 2007-05-01  Bruno Haible  <bruno@clisp.org>
60638
60639         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60640
60641 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60642
60643         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60644         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60645
60646 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60647
60648         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60649         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60651
60652 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60653
60654         * lib/argp-help.c (struct hol_entry): New member `ord'.
60655         (HOL_ENTRY_PTRCMP): Use ord for comparison
60656         (hol_sort): Initialize ord.
60657
60658 2007-05-01  Bruno Haible  <bruno@clisp.org>
60659
60660         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60661         Reported by Eric Blake.
60662         * doc/gnulib.texi (Function Substitutes): Update.
60663
60664 2007-05-01  Bruno Haible  <bruno@clisp.org>
60665
60666         * doc/functions.texi: Remove file, now redundant through
60667         doc/functions/*.texi.
60668
60669 2007-05-01  Bruno Haible  <bruno@clisp.org>
60670
60671         * modules/argp (Depends-on): Add sleep.
60672
60673 2007-05-01  Bruno Haible  <bruno@clisp.org>
60674
60675         * modules/sleep-tests: New file.
60676         * tests/test-sleep.c: New file.
60677
60678         * modules/sleep: New file.
60679         * lib/sleep.c: New file.
60680         * m4/sleep.m4: New file.
60681         * lib/unistd_.h (sleep): New declaration.
60682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60683         HAVE_SLEEP.
60684         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60685         * doc/functions/sleep.texi: Document the sleep module.
60686
60687 2007-05-01  Bruno Haible  <bruno@clisp.org>
60688
60689         * lib/sigprocmask.h: Remove file.
60690         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60691         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60692         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60693         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60694         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60695         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60696         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60697         HAVE_SIGSET_T as a shell variable.
60698         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60699         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60700         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60701         (Depends-on): Add signal. Remove verify.
60702         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60703         (Include): Mention <signal.h> instead of sigprocmask.h.
60704         * NEWS: Mention the change.
60705         * lib/fatal-signal.c: Don't include sigprocmask.h.
60706
60707 2007-05-01  Bruno Haible  <bruno@clisp.org>
60708
60709         * modules/signal: New file.
60710         * lib/signal_.h: New file.
60711         * m4/signal_h.m4: New file.
60712
60713 2007-05-01  Bruno Haible  <bruno@clisp.org>
60714
60715         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60716         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60717         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60718         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60719
60720 2007-05-01  Bruno Haible  <bruno@clisp.org>
60721
60722         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60723         configure time.
60724         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60725         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60726         * modules/sys_stat (Makefile.am): Substitute their values into
60727         sys/stat.h.
60728
60729 2007-05-01  Bruno Haible  <bruno@clisp.org>
60730
60731         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60732         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60733         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60734
60735 2007-05-01  Bruno Haible  <bruno@clisp.org>
60736
60737         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60738         'assert' module here.
60739
60740 2007-05-01  Bruno Haible  <bruno@clisp.org>
60741
60742         * doc/functions/*.texi: New files.
60743         * doc/functions/google-ranking.txt: New file.
60744         * doc/gnulib.texi (Function Substitutes): New chapter.
60745         (ctime, inet_ntoa): Remove sections.
60746         * doc/ctime.texi: Remove file.
60747         * doc/inet_ntoa.texi: Remove file.
60748         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60749         dependencies.
60750         (%.info): New rule, specifying a --reference-limit.
60751
60752 2007-05-01  Bruno Haible  <bruno@clisp.org>
60753
60754         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60755
60756 2007-05-01  Bruno Haible  <bruno@clisp.org>
60757
60758         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60759         the portability of 'mkdir' to mingw systems.
60760
60761 2007-05-01  Bruno Haible  <bruno@clisp.org>
60762
60763         * doc/headers/google-ranking.txt: New file.
60764
60765 2007-04-30  Eric Blake  <ebb9@byu.net>
60766
60767         Prefer fseeko to fseek.
60768         * modules/getpass (Depends-on): Add fseeko.
60769         * lib/getpass.c (getpass): Use fseeko, not fseek.
60770
60771 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60772
60773         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60774         assumes the sorting is stable, while most qsort implementations
60775         are not.  Use argument addresses to ensure they never compare as
60776         equal.
60777
60778         * tests/test-argp-2.sh (usage-indent test): Fix output
60779         (func_compare): Restore diff options
60780         * tests/test-argp.c: Restore #include "progname.h"
60781
60782 2007-04-29  Bruno Haible  <bruno@clisp.org>
60783
60784         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60785         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60786         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60788         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60789         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60790         (TESTS, check_PROGRAMS): Add test-snprintf.
60791         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60792         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60793         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60794         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60795         assertions that fail on HP-UX, OSF/1, or IRIX.
60796         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60797
60798 2007-04-29  Bruno Haible  <bruno@clisp.org>
60799
60800         * MODULES.html.sh (posix_functions): Remove 'contents'.
60801
60802 2007-04-29  Karl Berry  <karl@gnu.org>
60803
60804         * config/srclist.txt (gendocs_template_min): new entry.
60805
60806 2007-04-29  Bruno Haible  <bruno@clisp.org>
60807
60808         Work around fpurge bug on BSD systems.
60809         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60810         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60811         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60812         fpurge to rpl_fpurge if the system already has this function.
60813         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60814         the case where the system already has this function. Correct invariants
60815         on BSD systems.
60816         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60817         BSD systems.
60818
60819 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60820
60821         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60822         proposed by Sven Verdoolaege.
60823
60824         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60825         options.
60826         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60827         (usage and help tests): Update
60828
60829 2007-04-29  Bruno Haible  <bruno@clisp.org>
60830
60831         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60832         Print more information in case of failure. Disable a test on BeOS.
60833
60834 2007-04-29  Bruno Haible  <bruno@clisp.org>
60835
60836         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60837         This helps debugging on systems on which no gdb is available.
60838
60839 2007-04-29  Bruno Haible  <bruno@clisp.org>
60840
60841         * lib/freading.h: Improve comments.
60842         * lib/fwriting.h: Likewise.
60843         * tests/test-freading.c (main): Don't check freading immediately after
60844         repositioning. Needed for glibc.
60845
60846 2007-04-29  Bruno Haible  <bruno@clisp.org>
60847
60848         * lib/freading.c (freading): Trivial simplification.
60849
60850 2007-04-28  Bruno Haible  <bruno@clisp.org>
60851
60852         * tests/test-fwriting.c (main): Also test the interaction between
60853         fflush and fwriting.
60854         * modules/fwriting-tests (Depends-on): Add fflush.
60855
60856         * tests/test-freading.c (main): Also test the interaction between
60857         fflush and freading.
60858         * modules/freading-tests (Depends-on): Add fflush.
60859
60860 2007-04-28  Bruno Haible  <bruno@clisp.org>
60861
60862         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60863         fseeko and ftello.
60864         Suggested by Eric Blake.
60865
60866 2007-04-28  Jim Meyering  <jim@meyering.net>
60867
60868         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60869         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60870         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60871
60872 2007-04-27  Eric Blake  <ebb9@byu.net>
60873
60874         * doc/headers/assert.texi (assert.h): Document assert module use.
60875
60876 2007-04-27  Bruno Haible  <bruno@clisp.org>
60877
60878         * doc/headers/*.texi: New files.
60879         * doc/gnulib.texi (Header File Substitutes): New chapter.
60880         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60881         dependencies.
60882         (standards.info ,standards.html, standards.dvi): Update dependencies.
60883         (mostlyclean, clean): New targets.
60884
60885 2007-04-27  Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60888         * modules/sysexits (Files, Makefile.am): Update.
60889
60890         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60891         * modules/sys_socket (Files, Makefile.am): Update.
60892
60893         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60894         * modules/sys_stat (Files, Makefile.am): Update.
60895
60896 2007-04-27  Eric Blake  <ebb9@byu.net>
60897
60898         * lib/freading.h: Improve comments.
60899         * lib/fwriting.h: Likewise.
60900         * lib/fflush.c: Likewise.
60901
60902         Fix closein for mingw.
60903         * modules/closein-tests: Add tests for closein.
60904         * tests/test-closein.c: New file.
60905         * tests/test-closein.sh: Likewise.
60906         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60907         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60908
60909 2007-04-27  Bruno Haible  <bruno@clisp.org>
60910
60911         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60912         version is < 6.
60913         * lib/math_.h [__DECC]: Likewise.
60914         * lib/stdio_.h [__DECC]: Likewise.
60915         * lib/stdlib_.h [__DECC]: Likewise.
60916         * lib/string_.h [__DECC]: Likewise.
60917         * lib/time_.h [__DECC]: Likewise.
60918         * lib/wchar_.h [__DECC]: Likewise.
60919         * lib/wctype_.h [__DECC]: Likewise.
60920
60921 2007-04-27  Bruno Haible  <bruno@clisp.org>
60922
60923         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60924
60925 2007-04-27  Bruno Haible  <bruno@clisp.org>
60926
60927         * lib/fflush.c: Add comments.
60928         * modules/fpurge-tests (Depends-on): Add fflush.
60929         * modules/freadable-tests (Depends-on): Likewise.
60930         * modules/fwritable-tests (Depends-on): Likewise.
60931
60932 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60933
60934         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60935         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60936         Report by Bruno Haible <bruno@clisp.org>.
60937
60938 2007-04-26  Eric Blake  <ebb9@byu.net>
60939
60940         Fix fflush on mingw.
60941         * modules/fflush (Depends-on): Add freading.
60942         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60943         but unread data.
60944
60945 2007-04-26  Eric Blake  <ebb9@byu.net>
60946         and Bruno Haible  <bruno@clisp.org>
60947
60948         Implement freading and fwriting.
60949         * lib/freading.c: New file.
60950         * lib/freading.h: Likewise.
60951         * m4/freading.m4: Likewise.
60952         * modules/freading: Likewise.
60953         * modules/freading-tests: Likewise.
60954         * tests/test-freading.c: Likewise.
60955         * lib/fwriting.c: New file.
60956         * lib/fwriting.h: Likewise.
60957         * m4/fwriting.m4: Likewise.
60958         * modules/fwriting: Likewise.
60959         * modules/fwriting-tests: Likewise.
60960         * tests/test-fwriting.c: Likewise.
60961         * MODULES.html.sh (File stream based Input/Output): Mention them.
60962
60963 2007-04-26  Bruno Haible  <bruno@clisp.org>
60964
60965         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60966         'long' when we assume it.
60967         Suggested by Eric Blake.
60968
60969 2007-04-26  Bruno Haible  <bruno@clisp.org>
60970
60971         Ensure fseeko, ftello are declared on glibc systems.
60972         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60973         * modules/fseeko (configure.ac-early): Likewise.
60974         * modules/ftello (configure.ac-early): Likewise.
60975         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60976         AC_FUNC_FSEEKO for this.
60977         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60978         (gl_CHECK_FSEEKO): Remove macro.
60979
60980 2007-04-26  Bruno Haible  <bruno@clisp.org>
60981
60982         * tests/test-fflush.c (main): Also check the ftell result after
60983         fflush and fseek/fseeko.
60984         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60985         file descriptor position cache in the stream.
60986         * lib/fseeko.c (rpl_fseeko): Likewise.
60987
60988 2007-04-26  Bruno Haible  <bruno@clisp.org>
60989
60990         * modules/fflush-tests (Depends-on): Add fseeko.
60991
60992 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60993             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60994
60995         * lib/argz_.h: ensure error_t definition is obtained in same
60996         mechanism system argz.h would have.
60997         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60998         argz facilities are known bad.  Err on the side of caution if
60999         cross-compiling.
61000
61001 2007-04-25  Eric Blake  <ebb9@byu.net>
61002
61003         * lib/fpurge.c (includes): Use stdlib.h for free.
61004         * tests/test-fflush.c (main): Also test fflush-fseeko.
61005
61006 2007-04-25  Bruno Haible  <bruno@clisp.org>
61007
61008         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61009         * lib/fseeko.c: New file.
61010         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61011         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61012         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61013         gl_FUNC_FSEEKO.
61014         (gl_FUNC_FSEEKO): Invoke it.
61015         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61016         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61017         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61018
61019 2007-04-25  Bruno Haible  <bruno@clisp.org>
61020
61021         * modules/fflush (Depends-on): Add ftello.
61022
61023 2007-04-25  Bruno Haible  <bruno@clisp.org>
61024
61025         * modules/ftello-tests: New file.
61026         * tests/test-ftello.c: New file.
61027
61028         * modules/ftello: New file.
61029         * m4/ftello.m4: New file.
61030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61031         HAVE_FTELLO.
61032         * lib/stdio_.h (ftello): New declaration.
61033         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61034         HAVE_FTELLO.
61035
61036 2007-04-25  Bruno Haible  <bruno@clisp.org>
61037
61038         * modules/fseeko-tests: New file.
61039         * tests/test-fseeko.c: New file.
61040
61041         * modules/fseeko: New file.
61042         * m4/fseeko.m4: New file.
61043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61044         HAVE_FSEEKO.
61045         * lib/stdio_.h (fseeko): New declaration.
61046         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61047         HAVE_FSEEKO.
61048
61049 2007-04-25  Bruno Haible  <bruno@clisp.org>
61050
61051         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61052
61053 2007-04-25  Bruno Haible  <bruno@clisp.org>
61054
61055         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61056         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61057         * tests/test-unistd.c: Likewise.
61058         * tests/test-fcntl.c: Likewise.
61059
61060 2007-04-23  Eric Blake  <ebb9@byu.net>
61061
61062         * lib/fflush.c: Fix missing include.
61063         Reported by Bruno Haible.
61064
61065 2007-04-23  Bruno Haible  <bruno@clisp.org>
61066
61067         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61068         Reported by Eric Blake.
61069
61070 2007-04-23  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61073
61074 2007-04-23  Bruno Haible  <bruno@clisp.org>
61075
61076         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61077
61078 2007-04-23  Bruno Haible  <bruno@clisp.org>
61079
61080         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61081         Needed on HP-UX 11.
61082
61083 2007-04-16  Eric Blake  <ebb9@byu.net>
61084
61085         Make fflush rely on fpurge.
61086         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61087         open coding all variants.
61088         * modules/fflush (Depends-on): Add fpurge and unistd.
61089         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61090         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61091
61092         Fix --with-tests compilation on cygwin.
61093         * modules/argmatch-tests (Makefile.am): List gnulib library first
61094         in LDADD.
61095         * modules/argp-tests (Makefile.am): Likewise.
61096         * modules/array-list-tests (Makefile.am): Likewise.
61097         * modules/array-oset-tests (Makefile.am): Likewise.
61098         * modules/avltree-list-tests (Makefile.am): Likewise.
61099         * modules/avltree-oset-tests (Makefile.am): Likewise.
61100         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61101         * modules/carray-list-tests (Makefile.am): Likewise.
61102         * modules/dirname-tests (Makefile.am): Likewise.
61103         * modules/frexp-tests (Makefile.am): Likewise.
61104         * modules/isnanl-tests (Makefile.am): Likewise.
61105         * modules/linked-list-tests (Makefile.am): Likewise.
61106         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61107         * modules/lock-tests (Makefile.am): Likewise.
61108         * modules/rbtree-list-tests (Makefile.am): Likewise.
61109         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61110         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61111         * modules/tls-tests (Makefile.am): Likewise.
61112         * modules/tsearch-tests (Makefile.am): Likewise.
61113         * modules/xvasprintf-tests (Makefile.am): Likewise.
61114
61115         Fix fpurge for cygwin.
61116         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61117         value.
61118         * modules/fpurge-tests (Depends-on): Clean up trash.
61119
61120 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61121
61122         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61123
61124         * m4/autobuild.m4: Re-indent.
61125
61126 2007-04-13  Bruno Haible  <bruno@clisp.org>
61127
61128         * modules/fpurge-tests: New file.
61129         * tests/test-fpurge.c: New file.
61130
61131         * modules/fpurge: New file.
61132         * lib/fpurge.h: New file.
61133         * lib/fpurge.c: New file.
61134         * m4/fpurge.m4: New file.
61135
61136 2007-04-13  Bruno Haible  <bruno@clisp.org>
61137
61138         * modules/fbufmode-tests: New file.
61139         * tests/test-fbufmode.c: New file.
61140
61141         * modules/fbufmode: New file.
61142         * lib/fbufmode.h: New file.
61143         * lib/fbufmode.c: New file.
61144         * m4/fbufmode.m4: New file.
61145
61146 2007-04-13  Bruno Haible  <bruno@clisp.org>
61147
61148         * modules/fwritable-tests: New file.
61149         * tests/test-fwritable.c: New file.
61150
61151         * modules/fwritable: New file.
61152         * lib/fwritable.h: New file.
61153         * lib/fwritable.c: New file.
61154         * m4/fwritable.m4: New file.
61155
61156 2007-04-13  Bruno Haible  <bruno@clisp.org>
61157
61158         * modules/freadable-tests: New file.
61159         * tests/test-freadable.c: New file.
61160
61161         * modules/freadable: New file.
61162         * lib/freadable.h: New file.
61163         * lib/freadable.c: New file.
61164         * m4/freadable.m4: New file.
61165
61166 2007-04-13  Bruno Haible  <bruno@clisp.org>
61167
61168         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61169         MOSTLYCLEANFILES.
61170
61171 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61172
61173         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61174         gzip bootstrap.conf to avoid dragging in i18n machinery.
61175         (gnulib_tool_option): Use it.
61176
61177 2007-04-13  Bruno Haible  <bruno@clisp.org>
61178
61179         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61180         %F directives.
61181         * tests/test-vasprintf-posix.c (test_function): Likewise.
61182         * tests/test-snprintf-posix.h (test_function): Likewise.
61183         * tests/test-sprintf-posix.h (test_function): Likewise.
61184         * tests/test-fprintf-posix.h (test_function): Likewise.
61185         * tests/test-printf-posix.h (test_function): Likewise.
61186         * tests/test-fprintf-posix.out: Likewise.
61187
61188 2007-04-13  Bruno Haible  <bruno@clisp.org>
61189
61190         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61191         * modules/tls-tests (configure.ac): Likewise.
61192         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61193
61194 2007-04-13  Bruno Haible  <bruno@clisp.org>
61195
61196         * lib/tls.c (glthread_tls_get): Fix return type.
61197         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61198
61199 2007-04-12  Eric Blake  <ebb9@byu.net>
61200
61201         * modules/gettime (Depends-on): Remove gettime.
61202         Reported by Dmitry V. Levin.
61203
61204 2007-04-12  Bruno Haible  <bruno@clisp.org>
61205
61206         * modules/fflush (Include): Mention <stdio.h>.
61207         * modules/strtoimax (Include): Mention <inttypes.h>.
61208         * modules/strtoumax (Include): Likewise.
61209
61210 2007-04-12  Eric Blake  <ebb9@byu.net>
61211
61212         * .cvsignore: New file.
61213         * .gitignore: Likewise.
61214
61215 2007-04-12  Bruno Haible  <bruno@clisp.org>
61216
61217         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61218         not before, since $(LDADD) often contains libgnu.a.
61219         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61220         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61221         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61222         Needed on Cygwin.
61223
61224 2007-04-12  Eric Blake  <ebb9@byu.net>
61225
61226         Work around glibc's failure to flush stdin on fclose.
61227         * lib/closein.c (close_stdin): Flush stdin before closing.
61228
61229         Work around glibc's failure to reset seekable stdin on exit.
61230         * modules/closein: New module.
61231         * lib/closein.c: New file.
61232         * lib/closein.h: Likewise.
61233         * m4/closein.m4: Likewise.
61234         * MODULES.html.sh (File stream based Input/Output): Document it.
61235
61236 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61237
61238         * gnulib-tool: Rename generated 'autobuild' script to
61239         'do-autobuild' in --create-megatestdir output.
61240
61241         * doc/gnulib.texi (Build robot for gnulib): Fix.
61242
61243 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61244
61245         * modules/sysexits (Depends-on): Add absolute-header.
61246
61247 2007-04-12  Eric Blake  <ebb9@byu.net>
61248
61249         No need to preserve errno on success.
61250         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61251         Reported by Bruno Haible.
61252
61253 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61254
61255         * MODULES.html.sh (Support for maintaining and releasing
61256         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61257
61258 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61259
61260         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61261
61262 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61263
61264         * modules/autobuild: New module.
61265
61266         * m4/autobuild.m4: New file.
61267
61268 2007-04-11  Bruno Haible  <bruno@clisp.org>
61269
61270         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61271         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61274         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61275         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61276         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61277         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61278         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61279         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61281         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61282         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61283         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61284         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61285         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61286         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61287         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61288         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61290         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61291         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61292         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61293         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61294         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61296         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61297         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61298         Reported by Eric Blake.
61299
61300 2007-04-11  Bruno Haible  <bruno@clisp.org>
61301
61302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61303
61304 2007-04-10  Bruno Haible  <bruno@clisp.org>
61305
61306         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61307         for NaN and Infinity. Needed on FreeBSD 6.1.
61308         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61309         regarding results for "%010a" of Infinity and NaN.
61310         * tests/test-vasprintf-posix.c (test_function): Likewise.
61311         * tests/test-snprintf-posix.h (test_function): Likewise.
61312         * tests/test-sprintf-posix.h (test_function): Likewise.
61313         * tests/test-fprintf-posix.h (test_function): Likewise.
61314         * tests/test-printf-posix.h (test_function): Likewise.
61315         * tests/test-fprintf-posix.out: Likewise.
61316
61317 2007-04-10  Bruno Haible  <bruno@clisp.org>
61318
61319         * modules/locale-tests: New file.
61320         * tests/test-locale.c: New file.
61321
61322         * modules/locale: New file.
61323         * lib/locale_.h: New file.
61324         * m4/locale_h.m4: New file.
61325
61326 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61327             Bruno Haible  <bruno@clisp.org>
61328
61329         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61330         be determined, test for availability of the copysignf, copysign,
61331         copysignl functions.
61332         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61333         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61334         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61335
61336 2007-04-09  Eric Blake  <ebb9@byu.net>
61337
61338         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61339         * modules/stdio (Makefile.am): Support fflush.
61340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61341         * modules/fflush: New file.
61342         * lib/fflush.c: Likewise.
61343         * m4/fflush.m4: Likewise.
61344         * modules/fflush-tests: New test.
61345         * tests/test-fflush.c: Likewise.
61346         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61347
61348 2007-04-06  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61351         (VASNPRINTF): Use signbit for faster determination whether to print a
61352         minus sign.
61353         * modules/vasnprintf (Files): Remove lib/float+.h.
61354         * modules/fprintf-posix (Depends-on): Add signbit.
61355         * modules/snprintf-posix (Depends-on): Likewise.
61356         * modules/sprintf-posix (Depends-on): Likewise.
61357         * modules/vasnprintf-posix (Depends-on): Likewise.
61358         * modules/vasprintf-posix (Depends-on): Likewise.
61359         * modules/vfprintf-posix (Depends-on): Likewise.
61360         * modules/vsnprintf-posix (Depends-on): Likewise.
61361         * modules/vsprintf-posix (Depends-on): Likewise.
61362
61363 2007-04-06  Bruno Haible  <bruno@clisp.org>
61364
61365         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61366         * tests/test-frexpl.c (main): Likewise.
61367         * tests/test-ldexpl.c (main): Likewise.
61368         * modules/frexp-tests (Depends-on): Add signbit.
61369         * modules/frexpl-tests (Depdends-on): Likewise.
61370         * modules/ldexpl-tests (Depdends-on): Likewise.
61371
61372 2007-04-06  Bruno Haible  <bruno@clisp.org>
61373
61374         * modules/signbit-tests: New file.
61375         * tests/test-signbit.c: New file.
61376
61377         * modules/signbit: New file.
61378         * lib/signbitf.c: New file.
61379         * lib/signbitd.c: New file.
61380         * lib/signbitl.c: New file.
61381         * m4/signbit.m4: New file.
61382         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61383         (signbit): New macro.
61384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61385         REPLACE_SIGNBIT.
61386         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61387         REPLACE_FREXPL into math.h.
61388
61389 2007-04-06  Bruno Haible  <bruno@clisp.org>
61390
61391         * modules/isnanf-nolibm-tests: New file.
61392         * tests/test-isnanf.c: New file.
61393
61394         * modules/isnanf-nolibm: New file.
61395         * lib/isnanf.h: New file.
61396         * lib/isnanf.c: New file.
61397         * lib/isnan.c: Consider the USE_FLOAT macro.
61398         * m4/isnanf.m4: New file.
61399
61400 2007-04-06  Bruno Haible  <bruno@clisp.org>
61401
61402         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61403         (Link): New section.
61404
61405         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61406
61407 2007-04-06  Bruno Haible  <bruno@clisp.org>
61408
61409         Assume the 'long double' type.
61410         * m4/longdouble.m4: Remove file.
61411         * config/srclist.txt: Don't mention longdouble.m4.
61412         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61413         * lib/float+.h: Likewise.
61414         * lib/frexp.c: Likewise.
61415         * lib/printf-args.h: Likewise.
61416         * lib/printf-args.c: Likewise.
61417         * lib/printf-frexp.c: Likewise.
61418         * lib/printf-parse.c: Likewise.
61419         * lib/vasnprintf.c: Likewise.
61420         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61421         * m4/intl.m4: Likewise.
61422         * m4/isnanl.m4: Likewise.
61423         * m4/printf.m4: Likewise.
61424         * m4/printf-frexpl.m4: Likewise.
61425         * m4/vasnprintf.m4: Likewise.
61426         * modules/allocsa (Files): Remove m4/longdouble.m4.
61427         * modules/gettext (Files): Likewise.
61428         * modules/relocatable-prog-wrapper (Files): Likewise.
61429         * modules/vasnprintf (Files): Likewise.
61430         * modules/isnanl (Files): Likewise.
61431         (Include): Simplify.
61432         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61433         (Include): Simplify.
61434         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61435         (Include): Simplify.
61436         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61437         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61438         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61439         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61440         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61441         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61442         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61443         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61444         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61445         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61446         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61447         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61448         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61449         * tests/test-isnanl.c: Likewise.
61450         * tests/test-snprintf-posix.h: Likewise.
61451         * tests/test-sprintf-posix.h: Likewise.
61452         * tests/test-vasnprintf-posix.c: Likewise.
61453         * tests/test-vasnprintf-posix2.c: Likewise.
61454         * tests/test-vasprintf-posix.c: Likewise.
61455
61456 2007-04-06  Bruno Haible  <bruno@clisp.org>
61457
61458         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61459         * lib/math_.h [__DECC]: Include the overridden include file through
61460         #include_next, outside the double-inclusion guard.
61461         * lib/stdio_.h [__DECC]: Likewise.
61462         * lib/stdlib_.h [__DECC]: Likewise.
61463         * lib/string_.h [__DECC]: Likewise.
61464         * lib/time_.h [__DECC]: Likewise.
61465         * lib/wchar_.h [__DECC]: Likewise.
61466         * lib/wctype_.h [__DECC]: Likewise.
61467         * lib/inttypes_.h [__DECC]: Likewise.
61468         Reported by Albert Chin <china@thewrittenword.com> in
61469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61470
61471 2007-04-04  Eric Blake  <ebb9@byu.net>
61472
61473         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61474         1.5.x.
61475
61476 2007-04-04  Bruno Haible  <bruno@clisp.org>
61477
61478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61479         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61480
61481 2007-04-04  Bruno Haible  <bruno@clisp.org>
61482
61483         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61484         results for "%010a" of Infinity and NaN.
61485         * tests/test-vasprintf-posix.c (test_function): Likewise.
61486         * tests/test-snprintf-posix.h (test_function): Likewise.
61487         * tests/test-sprintf-posix.h (test_function): Likewise.
61488         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61489         * tests/test-printf-posix.h (test_function): Likewise.
61490         * tests/test-fprintf-posix.out: Update.
61491         Needed for FreeBSD 6.1.
61492
61493 2007-04-04  Bruno Haible  <bruno@clisp.org>
61494
61495         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61496         directly used by the gnulib modules nor by gnulib-tool.
61497
61498 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61499
61500         * DEPENDENCIES: Give overall description of version dependency
61501         desirability.  Use more-typical names for apps.
61502         Add shell, coreutils, diffutils, grep, tar, gzip.
61503
61504 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61505
61506         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61507
61508 2007-04-04  Karl Berry  <karl@gnu.org>
61509
61510         * MODULES.html.sh (func_module): missing '.
61511
61512 2007-04-03  Bruno Haible  <bruno@clisp.org>
61513
61514         * modules/argmatch-tests (Makefile.am): New variable
61515         test_argmatch_LDADD.
61516         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61517         * modules/array-list-tests (Makefile.am): New variable
61518         test_array_list_LDADD.
61519         * modules/array-oset-tests (Makefile.am): New variable
61520         test_array_oset_LDADD.
61521         * modules/avltree-list-tests (Makefile.am): New variable
61522         test_avltree_list_LDADD.
61523         * modules/avltree-oset-tests (Makefile.am): New variable
61524         test_avltree_oset_LDADD.
61525         * modules/avltreehash-list-tests (Makefile.am): New variable
61526         test_avltreehash_list_LDADD.
61527         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61528         test_canonicalize_lgpl_LDADD.
61529         * modules/carray-list-tests (Makefile.am): New variable
61530         test_carray_list_LDADD.
61531         * modules/dirname-tests (Makefile.am): New variable
61532         test_dirname_LDADD.
61533         * modules/linked-list-tests (Makefile.am): New variable
61534         test_linked_list_LDADD.
61535         * modules/linkedhash-list-tests (Makefile.am): New variable
61536         test_linkedhash_list_LDADD.
61537         * modules/rbtree-list-tests (Makefile.am): New variable
61538         test_rbtree_list_LDADD.
61539         * modules/rbtree-oset-tests (Makefile.am): New variable
61540         test_rbtree_oset_LDADD.
61541         * modules/rbtreehash-list-tests (Makefile.am): New variable
61542         test_rbtreehash_list_LDADD.
61543         * modules/xvasprintf-tests (Makefile.am): New variable
61544         test_xvasprintf_LDADD.
61545         Reported by Eric Blake.
61546
61547 2007-04-03  Eric Blake  <ebb9@byu.net>
61548
61549         * DEPENDENCIES: Weaken m4 requirements.
61550
61551 2007-04-03  Bruno Haible  <bruno@clisp.org>
61552
61553         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61554         * modules/isnanl-tests (configure.ac): Likewise.
61555
61556 2007-04-03  Ben Pfaff  <blp@gnu.org>
61557
61558         * modules/iconv_open: Add $(srcdir)/ to source directory
61559         references in Makefile fragments that call gperf, to fix VPATH
61560         builds.
61561
61562 2007-04-03  Bruno Haible  <bruno@clisp.org>
61563
61564         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61565         * lib/ldexpl.c: Undo last change.
61566
61567 2007-04-03  Bruno Haible  <bruno@clisp.org>
61568
61569         * modules/printf-frexpl (Depends-on): Undo last change.
61570         (Files): Add m4/ldexpl.m4.
61571
61572 2007-04-03  Bruno Haible  <bruno@clisp.org>
61573
61574         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61575         * modules/isnanl (Link): New section.
61576
61577         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61578         * modules/frexp (Link): New section.
61579
61580         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61581         * modules/frexpl (Link): New section.
61582
61583         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61584         * modules/ldexpl (Link): New section.
61585
61586 2007-04-03  Bruno Haible  <bruno@clisp.org>
61587
61588         * modules/TEMPLATE-EXTENDED: New file.
61589         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61590
61591 2007-04-03  Bruno Haible  <bruno@clisp.org>
61592
61593         * DEPENDENCIES: New file.
61594         Suggested by Simon Josefsson.
61595
61596 2007-04-03  Bruno Haible  <bruno@clisp.org>
61597
61598         * doc/gnulib.texi: Escape @.
61599
61600 2007-04-03  James Youngman  <jay@gnu.org>
61601         and Paul Eggert  <eggert@cs.ucla.edu>
61602
61603         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61604         birthtime on all systems that have birthtime, not just those which
61605         use st_birthtimensec rather than st_birthtim.  Putting zero in
61606         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61607         that the birth time is not available for files on an NFS mount.
61608
61609 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61610
61611         * modules/memxor: Move back from crypto/, suggested by Bruno.
61612         * modules/crypto/hmac-sha1: Fix memxor dependency.
61613
61614         * modules/crypto/gc: Moved from ../.
61615
61616 2007-04-02  Eric Blake  <ebb9@byu.net>
61617
61618         * lib/ldexpl.c (includes): Avoid libm.
61619
61620         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61621
61622 2007-04-02  Bruno Haible  <bruno@clisp.org>
61623
61624         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61625         on IRIX.
61626
61627 2007-04-02  Bruno Haible  <bruno@clisp.org>
61628
61629         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61630         x86 or x86_64 platforms running MacOS X.
61631         Reported by Ryan Schmidt <@ryandesign.com>.
61632
61633 2007-04-02  Bruno Haible  <bruno@clisp.org>
61634
61635         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61636         i386.
61637
61638 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61639
61640         * modules/crypto/arcfour: Moved from ../.
61641         * modules/crypto/arcfour-tests: Moved from ../.
61642         * modules/crypto/arctwo: Moved from ../.
61643         * modules/crypto/arctwo-tests: Moved from ../.
61644         * modules/crypto/des: Moved from ../.
61645         * modules/crypto/des-tests: Moved from ../.
61646         * modules/crypto/gc-arcfour: Moved from ../.
61647         * modules/crypto/gc-arcfour-tests: Moved from ../.
61648         * modules/crypto/gc-arctwo: Moved from ../.
61649         * modules/crypto/gc-arctwo-tests: Moved from ../.
61650         * modules/crypto/gc-des: Moved from ../.
61651         * modules/crypto/gc-des-tests: Moved from ../.
61652         * modules/crypto/gc-hmac-md5: Moved from ../.
61653         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61654         * modules/crypto/gc-hmac-sha1: Moved from ../.
61655         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61656         * modules/crypto/gc-md2: Moved from ../.
61657         * modules/crypto/gc-md2-tests: Moved from ../.
61658         * modules/crypto/gc-md4: Moved from ../.
61659         * modules/crypto/gc-md4-tests: Moved from ../.
61660         * modules/crypto/gc-md5: Moved from ../.
61661         * modules/crypto/gc-md5-tests: Moved from ../.
61662         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61663         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61664         * modules/crypto/gc-random: Moved from ../.
61665         * modules/crypto/gc-rijndael: Moved from ../.
61666         * modules/crypto/gc-rijndael-tests: Moved from ../.
61667         * modules/crypto/gc-sha1: Moved from ../.
61668         * modules/crypto/gc-sha1-tests: Moved from ../.
61669         * modules/crypto/gc-tests: Moved from ../.
61670         * modules/crypto/hmac-md5: Moved from ../.
61671         * modules/crypto/hmac-md5-tests: Moved from ../.
61672         * modules/crypto/hmac-sha1: Moved from ../.
61673         * modules/crypto/hmac-sha1-tests: Moved from ../.
61674         * modules/crypto/md2: Moved from ../.
61675         * modules/crypto/md2-tests: Moved from ../.
61676         * modules/crypto/md4: Moved from ../.
61677         * modules/crypto/md4-tests: Moved from ../.
61678         * modules/crypto/md5: Moved from ../.
61679         * modules/crypto/md5-tests: Moved from ../.
61680         * modules/crypto/memxor: Moved from ../.
61681         * modules/crypto/rijndael: Moved from ../.
61682         * modules/crypto/rijndael-tests: Moved from ../.
61683         * modules/crypto/sha1: Moved from ../.
61684
61685 2007-03-30  James Youngman  <jay@gnu.org>
61686
61687         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61688         rename() to change the ctime of a file (because ctime is unaffected
61689         by rename on jfs2 on AIX 5.1).
61690         (main): Start by doing cleanup, in case a previous run failed leaving
61691         test files behind.
61692
61693 2007-03-31  Bruno Haible  <bruno@clisp.org>
61694
61695         Support old proprietary implementations of iconv.
61696         * modules/iconv_open: New file.
61697         * lib/iconv_.h: New file.
61698         * m4/iconv_h.m4: New file.
61699         * lib/iconv_open.c: New file.
61700         * lib/iconv_open-aix.gperf: New file.
61701         * lib/iconv_open-hpux.gperf: New file.
61702         * lib/iconv_open-irix.gperf: New file.
61703         * lib/iconv_open-osf.gperf: New file.
61704         * m4/iconv_open.m4: New file.
61705         * modules/linebreak (Depends-on): Add iconv_open.
61706         * modules/striconv (Depends-on): Likewise.
61707         * modules/striconveh (Depends-on): Likewise.
61708         * modules/unicodeio (Depends-on): Likewise.
61709         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61710         (iconv_t)(-1).
61711         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61712         conversion if cd is (iconv_t)(-1).
61713         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61714         is not possible.
61715
61716 2007-03-31  Bruno Haible  <bruno@clisp.org>
61717
61718         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61719         work on Solaris either. Protect also second use of "autodetect_jp".
61720
61721 2007-03-31  Bruno Haible  <bruno@clisp.org>
61722
61723         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61724         the function is not present.
61725
61726 2007-03-31  Bruno Haible  <bruno@clisp.org>
61727
61728         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61729         the function is not present.
61730
61731 2007-03-31  Bruno Haible  <bruno@clisp.org>
61732
61733         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61734         a bug in HP-UX iconv_open().
61735
61736 2007-03-31  Bruno Haible  <bruno@clisp.org>
61737
61738         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61739         (Mathematics <math.h>): New section, add fpieee.
61740         (Input/output <stdio.h>): Add fseterr.
61741         (Mathematics <math.h>): New section, add printf-frexp.
61742         (Container data structures): Add sublist.
61743         (Core language properties): Add fpucw, inline.
61744         (Functions for greatest-width integer types <inttypes.h>): Add
61745         imaxabs, imaxdiv, inttypes.
61746         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61747         isnanl-nolibm, ldexp.
61748         (Mathematics <math.h>): New section, add printf-frexpl.
61749         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61750         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61751         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61752         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61753         (Unicode string functions): Add unistr/u*-mbtoucr.
61754         (Java): Add javacomp-script, javaexec-script.
61755         (C#): Add csharpcomp-script, csharpexec-script.
61756         (Support for building libraries and executables): Add havelib,
61757         relocatable-*.
61758         (Support for maintaining and releasing projects): Renamed from
61759         'Support for maintaining and release projects'. Add announce-gen.
61760
61761 2007-03-31  Bruno Haible  <bruno@clisp.org>
61762
61763         * README: Talk primarily about git.
61764         (git and CVS): Renamed from CVS.
61765         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61766         gnulib is available through git.
61767         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61768
61769 2007-03-30  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61772         * lib/poll_.h: Likewise.
61773         * lib/stat_.h: Likewise.
61774         * lib/sys_time_.h: Likewise.
61775         * lib/sysexit_.h: Likewise.
61776         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61777         * lib/stdbool_.h: Likewise.
61778         * lib/byteswap_.h: Add double-inclusion guard.
61779
61780 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61781
61782         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61783
61784 2007-03-30  Karl Berry  <karl@gnu.org>
61785
61786         * config/srclist-update: double space after USA in the license
61787         substitution, since that's how it's usually (?) written.
61788
61789 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61790
61791         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61792         reported by Bruno Haible.
61793
61794 2007-03-29  Bruno Haible  <bruno@clisp.org>
61795
61796         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61797         a bug in AIX iconv().
61798
61799 2007-03-29  Bruno Haible  <bruno@clisp.org>
61800
61801         * modules/ldexpl-tests: New file.
61802         * tests/test-ldexpl.c: New file.
61803
61804 2007-03-29  Bruno Haible  <bruno@clisp.org>
61805
61806         * lib/ldexpl.c: Include fpucw.h.
61807         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61808         multiplication.
61809         * modules/ldexpl (Depends-on): Add fpucw.
61810
61811 2007-03-29  Bruno Haible  <bruno@clisp.org>
61812
61813         * modules/ldexpl: New file.
61814         * m4/ldexpl.m4: New file.
61815         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61816         set.
61817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61818         REPLACE_LDEXPL.
61819         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61820         REPLACE_LDEXPL.
61821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61822         gl_FUNC_LDEXPL_WORKS.
61823         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61824         * modules/mathl (Files): Remove lib/ldexpl.c.
61825         (Depends-on): Add ldexpl.
61826
61827 2007-03-29  Bruno Haible  <bruno@clisp.org>
61828
61829         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61830
61831 2007-03-29  Bruno Haible  <bruno@clisp.org>
61832
61833         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61834         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61835         and possibly also HP-UX.
61836         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61837         work on AIX, IRIX, HP-UX, OSF/1.
61838         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61839         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61840         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61841         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61842         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61843         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61844
61845 2007-03-29  Bruno Haible  <bruno@clisp.org>
61846
61847         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61848
61849 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61850
61851         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61852         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61853
61854 2007-03-29  Eric Blake  <ebb9@byu.net>
61855
61856         * lib/acl-internal.h: Remove redundant include.
61857         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61858         Cygwin when a file is locked.
61859
61860 2007-03-29  Bruno Haible  <bruno@clisp.org>
61861
61862         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61863         file.
61864         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61865
61866 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61867
61868         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61869         try to remove a parent directory if the child couldn't be removed
61870         (except for the first rmdir, which could fail because the child
61871         doesn't exist).  Problem reported by Jeff Blaine in
61872         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61873
61874 2007-03-28  Bruno Haible  <bruno@clisp.org>
61875
61876         * lib/striconveh.c (utf8conv_carefully): New function.
61877         (mem_cd_iconveh_internal): Invoke it.
61878
61879 2007-03-28  Bruno Haible  <bruno@clisp.org>
61880
61881         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61882         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61883         input.
61884         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61885         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61886         unistr/u8-uctomb.
61887
61888 2007-03-28  Bruno Haible  <bruno@clisp.org>
61889
61890         * modules/unistr/u8-mbtoucr: New file.
61891         * lib/unistr/u8-mbtoucr.c: New file.
61892         * modules/unistr/u16-mbtoucr: New file.
61893         * lib/unistr/u16-mbtoucr.c: New file.
61894         * modules/unistr/u16-mbtoucr: New file.
61895         * lib/unistr/u16-mbtoucr.c: New file.
61896         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61897
61898 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61899             Bruno Haible  <bruno@clisp.org>
61900
61901         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61902         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61903         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61904
61905         * m4/stdio_h.m4: Add stubs for vasprintf too.
61906
61907         * modules/stdio: Support vasprintf in sed command.
61908
61909         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61910         vasprintf.h.  Add stdio module indicator.
61911
61912         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61913         vasprintf.h.
61914
61915         * lib/vasprintf.h: File removed.
61916
61917         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61918         * lib/vasprintf.c: Ditto.
61919         * lib/xvasprintf.c: Ditto.
61920         * tests/test-vasprintf-posix.c: Ditto.
61921         * tests/test-vasprintf.c: Ditto.
61922
61923 2007-03-27  Bruno Haible  <bruno@clisp.org>
61924
61925         Make vasnprintf multithread-safe.
61926         * lib/vasnprintf.c (decimal_point_char): New function.
61927         (VASNPRINTF): Use it.
61928         Suggested by Simon Josefsson.
61929
61930 2007-03-27  Eric Blake  <ebb9@byu.net>
61931
61932         Support sub-second birthtime on cygwin.
61933         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61934         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61935         (get_stat_birthtime): Also work with st_birthtim.
61936
61937 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61938
61939         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61940         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61941         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61942         (get_stat_birthtime_ns): Simplify compile-time tests.
61943         (get_stat_birthtime): Change the API to look like
61944         get_stat_mtime etc., except return a negative tv_nsec on error.
61945         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61946         Don't check for "spare" fields.
61947         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61948         or for struct stat.st_birthtime, as these tests aren't used.
61949         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61950
61951 2007-03-27  Bruno Haible  <bruno@clisp.org>
61952
61953         * lib/stat-time.h: Include <sys/stat.h>.
61954
61955 2007-03-27  James Youngman  <jay@gnu.org>
61956
61957         * lib/stat-time.h (get_stat_birthtime): New function for
61958           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61959         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61960           and its variants.
61961         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61962         * modules/stat-time-test: New file.
61963         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61964
61965 2007-03-26  Bruno Haible  <bruno@clisp.org>
61966
61967         Better support of signalling NaNs.
61968         * lib/atanl.c: Include isnanl.h.
61969         (atanl): Perform test for NaN at the beginning of the function and
61970         through a call to isnanl.
61971         * lib/cosl.c: Include isnanl.h.
61972         (cosl): Perform test for NaN at the beginning of the function and
61973         through a call to isnanl.
61974         * lib/ldexpl.c: Include isnanl.h.
61975         (ldexpl): Perform test for NaN through a call to isnanl.
61976         * lib/logl.c: Include isnanl.h.
61977         (logl): Perform test for NaN at the beginning of the function and
61978         through a call to isnanl.
61979         * lib/sinl.c: Include isnanl.h.
61980         (sinl): Perform test for NaN at the beginning of the function and
61981         through a call to isnanl.
61982         * lib/sqrtl.c: Include isnanl.h.
61983         (sqrtl): Perform test for NaN at the beginning of the function and
61984         through a call to isnanl.
61985         * lib/tanl.c: Include isnanl.h.
61986         (tanl): Perform test for NaN at the beginning of the function and
61987         through a call to isnanl.
61988         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61989         * modules/mathl (Depends-on): Add isnanl.
61990
61991 2007-03-26  Eric Blake  <ebb9@byu.net>
61992
61993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61994         regression in logic sense of previous patch.
61995
61996 2007-03-26  Bruno Haible  <bruno@clisp.org>
61997
61998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61999         unportable shell command "if ! ...".
62000         Reported by Ralf Wildenhues.
62001
62002 2007-03-25  Bruno Haible  <bruno@clisp.org>
62003
62004         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62005         <sysexits.h> file, and only add EX_CONFIG.
62006         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62007         absolute file name and whether it is sufficient. Substitute also
62008         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62009         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62010         ABSOLUTE_SYSEXITS_H into sysexits.h.
62011
62012 2007-03-25  Bruno Haible  <bruno@clisp.org>
62013
62014         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62015         hints is NULL.
62016
62017 2007-03-25  Bruno Haible  <bruno@clisp.org>
62018
62019         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62020         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62021
62022 2007-03-25  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/vasnprintf.c: Include langinfo.h.
62025         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62026         multithread-safe.
62027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62028         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62029         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62030         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62032         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62033         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62034         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62035         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62036         Reported by Simon Josefsson.
62037
62038 2007-03-25  Bruno Haible  <bruno@clisp.org>
62039
62040         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62041         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62042         * modules/vasnprintf (Depends-on): Add stdint.
62043
62044 2007-03-25  Bruno Haible  <bruno@clisp.org>
62045
62046         * modules/fpieee: New file.
62047         * m4/fpieee.m4: New file.
62048         * modules/isnan-nolibm (Depends-on): Add fpieee.
62049         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62050         * modules/isnanl (Depends-on): Add fpieee.
62051
62052 2007-03-25  Bruno Haible  <bruno@clisp.org>
62053
62054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62055
62056 2007-03-25  Bruno Haible  <bruno@clisp.org>
62057
62058         Avoid test failures on IRIX 6.5.
62059         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62060         (main): Use it.
62061         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62062         macros.
62063         (main): Use them.
62064
62065 2007-03-25  Bruno Haible  <bruno@clisp.org>
62066
62067         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62068         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62069         exists but doesn't work.
62070         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62071         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62073         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62074         math.h.
62075
62076 2007-03-25  Bruno Haible  <bruno@clisp.org>
62077
62078         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62079         returns inf. Needed on IRIX 6.5.
62080
62081 2007-03-25  Bruno Haible  <bruno@clisp.org>
62082
62083         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62084         (main): Use isnanl instead of x != x idiom.
62085         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62086
62087         * tests/test-frexp.c: Include isnan.h.
62088         (main): Use isnan instead of x != x idiom.
62089         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62090
62091 2007-03-25  Bruno Haible  <bruno@clisp.org>
62092
62093         * tests/test-frexp.c (NaN): New function/macro.
62094         (main): Use it instead of 0.0 / 0.0.
62095         * tests/test-isnan.c (NaN): New function/macro.
62096         (main): Use it instead of 0.0 / 0.0.
62097         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62098         (test_function): Use it instead of 0.0 / 0.0.
62099         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62100         (test_function): Use it instead of 0.0 / 0.0.
62101         * tests/test-snprintf-posix.h (NaN): New function/macro.
62102         (test_function): Use it instead of 0.0 / 0.0.
62103         * tests/test-sprintf-posix.h (NaN): New function/macro.
62104         (test_function): Use it instead of 0.0 / 0.0.
62105         * tests/test-fprintf-posix.h (NaN): New function/macro.
62106         (test_function): Use it instead of 0.0 / 0.0.
62107         * tests/test-printf-posix.h (NaN): New function/macro.
62108         (test_function): Use it instead of 0.0 / 0.0.
62109
62110         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62111
62112 2007-03-25  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62115
62116 2007-03-25  Bruno Haible  <bruno@clisp.org>
62117
62118         * lib/regexec.c (merge_state_with_log): Make static.
62119
62120 2007-03-25  Bruno Haible  <bruno@clisp.org>
62121
62122         * lib/trigl.c (kernel_rem_pio2): Make static.
62123
62124 2007-03-25  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/sincosl.c (sincosl_table): Make static.
62127
62128 2007-03-25  Bruno Haible  <bruno@clisp.org>
62129
62130         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62131         if the compiler does not support C99.
62132
62133 2007-03-25  Bruno Haible  <bruno@clisp.org>
62134
62135         * modules/time (Makefile.am): Ensure all rule action lines start with a
62136         tab.
62137
62138 2007-03-24  Bruno Haible  <bruno@clisp.org>
62139
62140         * modules/tsearch-tests: New file.
62141         * tests/test-tsearch.sh: New file.
62142         * tests/test-tsearch.c: New file, mostly copied from glibc.
62143
62144         * modules/search-tests: New file.
62145         * tests/test-search.c: New file.
62146
62147         * modules/search: New file.
62148         * lib/search_.h: New file, incorporating lib/tsearch.h.
62149         * m4/search_h.m4: New file.
62150         * lib/tsearch.h: Remove file.
62151         * lib/tsearch.c: Include search.h instead of tsearch.h.
62152         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62153         HAVE_TSEARCH.
62154         * modules/tsearch (Files): Remove lib/tsearch.h.
62155         (Depends-on): Add search.
62156         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62157         (Include): Change tsearch.h into search.h.
62158
62159 2007-03-24  Bruno Haible  <bruno@clisp.org>
62160
62161         * modules/fpucw: New file.
62162         * lib/fpucw.h: New file.
62163         * lib/frexp.c: Include fpucw.h.
62164         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62165         (FUNC): Use them.
62166         * lib/printf-frexp.c: Include fpucw.h.
62167         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62168         (FUNC): Use them.
62169         * lib/vasnprintf.c: Include fpucw.h.
62170         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62171         'long double' calculations.
62172         * tests/test-frexpl.c: Include fpucw.h.
62173         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62174         * tests/test-printf-frexpl.c: Include fpucw.h.
62175         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62176         * modules/frexpl (Depends-on): Add fpucw.
62177         * modules/printf-frexpl (Depends-on): Likewise.
62178         * modules/fprintf-posix (Depends-on): Likewise.
62179         * modules/snprintf-posix (Depends-on): Likewise.
62180         * modules/sprintf-posix (Depends-on): Likewise.
62181         * modules/vasnprintf-posix (Depends-on): Likewise.
62182         * modules/vasprintf-posix (Depends-on): Likewise.
62183         * modules/vfprintf-posix (Depends-on): Likewise.
62184         * modules/vsnprintf-posix (Depends-on): Likewise.
62185         * modules/vsprintf-posix (Depends-on): Likewise.
62186         * modules/frexpl-tests (Depends-on): Likewise.
62187         * modules/printf-frexpl-tests (Depends-on): Likewise.
62188
62189 2007-03-24  Bruno Haible  <bruno@clisp.org>
62190
62191         * lib/float+.h: New file.
62192         * lib/isnan.c: Include float+.h.
62193         (SIZE): New macro.
62194         (FUNC): Compare only SIZE bytes of the value.
62195         * lib/vasnprintf.c: Include float+.h.
62196         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62197         SIZEOF_LDBL or SIZEOF_DBL bytes.
62198         * modules/isnan-nolibm (Files): Add lib/float+.h.
62199         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62200         * modules/isnanl (Files): Add lib/float+.h.
62201         * modules/vasnprintf (Files): Add lib/float+.h.
62202
62203 2007-03-24  Bruno Haible  <bruno@clisp.org>
62204
62205         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62206         include isnanl-nolibm.h.
62207
62208 2007-03-24  Bruno Haible  <bruno@clisp.org>
62209
62210         * tests/test-read-file.c (main): Don't produce spurious output for
62211         expected situations. Make the test fail if it encountered unexpected
62212         results.
62213
62214 2007-03-24  Bruno Haible  <bruno@clisp.org>
62215
62216         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62217         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62218
62219 2007-03-24  Bruno Haible  <bruno@clisp.org>
62220
62221         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62222
62223 2007-03-24  Bruno Haible  <bruno@clisp.org>
62224
62225         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62226         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62227
62228         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62229         * modules/utf8-ucs4: Turn into a symbolic link to module
62230         unistr/u8-mbtouc.
62231
62232         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62233         utf8-ucs4-unsafe.
62234         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62235         unistr/u8-mbtouc-unsafe.
62236
62237         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62238         * modules/utf16-ucs4: Turn into a symbolic link to module
62239         unistr/u16-mbtouc.
62240
62241         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62242         utf16-ucs4-unsafe.
62243         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62244         unistr/u16-mbtouc-unsafe.
62245
62246         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62247         * modules/ucs4-utf8: Turn into a symbolic link to module
62248         unistr/u8-ubtomb.
62249
62250         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62251         * modules/ucs4-utf16: Turn into a symbolic link to module
62252         unistr/u16-ubtomb.
62253
62254 2007-03-24  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62257         Enable the function only if HAVE_INLINE.
62258         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62259         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62260         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62261         Enable the function only if HAVE_INLINE.
62262         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62263         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62264         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62265         Enable the function only if HAVE_INLINE.
62266         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62267         Enable the function only if HAVE_INLINE.
62268         * modules/utf8-ucs4: Update.
62269         * modules/utf8-ucs4-unsafe: Update.
62270         * modules/utf16-ucs4: Update.
62271         * modules/utf16-ucs4-unsafe: Update.
62272         * modules/ucs4-utf8: Update.
62273         * modules/ucs4-utf16: Update.
62274
62275 2007-03-24  Bruno Haible  <bruno@clisp.org>
62276
62277         * lib/utf8-ucs4.h: Remove file.
62278         * lib/utf8-ucs4-unsafe.h: Remove file.
62279         * lib/utf16-ucs4.h: Remove file.
62280         * lib/utf16-ucs4-unsafe.h: Remove file.
62281         * lib/ucs4-utf8.h: Remove file.
62282         * lib/ucs4-utf16.h: Remove file.
62283         * lib/unistr.h: Include their previous contents.
62284         * m4/utf-ucs4.m4: Remove file.
62285         * m4/ucs4-utf.m4: Remove file.
62286         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62287         (Depends-on): Add unistr/base.
62288         (configure.ac): Remove gl_UTF_UCS4.
62289         (Makefile.am): Update.
62290         (Include): Change to unistr.h.
62291         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62292         (Depends-on): Add unistr/base.
62293         (configure.ac): Remove gl_UTF_UCS4.
62294         (Makefile.am): Update.
62295         (Include): Change to unistr.h.
62296         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62297         (Depends-on): Add unistr/base.
62298         (configure.ac): Remove gl_UTF_UCS4.
62299         (Makefile.am): Update.
62300         (Include): Change to unistr.h.
62301         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62302         (Depends-on): Add unistr/base.
62303         (configure.ac): Remove gl_UTF_UCS4.
62304         (Makefile.am): Update.
62305         (Include): Change to unistr.h.
62306         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62307         (Depends-on): Add unistr/base.
62308         (configure.ac): Remove gl_UCS4_UTF.
62309         (Makefile.am): Update.
62310         (Include): Change to unistr.h.
62311         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62312         (Depends-on): Add unistr/base.
62313         (configure.ac): Remove gl_UCS4_UTF.
62314         (Makefile.am): Update.
62315         (Include): Change to unistr.h.
62316         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62317         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62318         utf8-ucs4-unsafe.h.
62319         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62320         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62321         utf16-ucs4-unsafe.h.
62322         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62323         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62324         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62325         * lib/unistr/u8-strchr.c: Likewise.
62326         * lib/unistr/u8-strrchr.c: Likewise.
62327         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62328         * lib/unistr/u16-strchr.c: Likewise.
62329         * lib/unistr/u16-strrchr.c: Likewise.
62330         * lib/striconveh.c: Update.
62331         * lib/linebreak.c: Update.
62332
62333 2007-03-24  Bruno Haible  <bruno@clisp.org>
62334
62335         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62336         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62337
62338 2007-03-22  Bruno Haible  <bruno@clisp.org>
62339
62340         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62341
62342 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         * MODULES.html.sh (File system functions): New module write-any-file.
62345         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62346         * m4/write-any-file.m4: New files.
62347
62348 2007-03-23  Eric Blake  <ebb9@byu.net>
62349
62350         * gnulib-tool: Rearrange space-tab sequences, since some editors
62351         like to eat them.
62352
62353 2007-03-23  Eric Blake  <ebb9@byu.net>
62354
62355         * lib/version-etc.c (version_etc_va): Update license wording to
62356         be more concise.  Recommended by Richard Stallman.
62357
62358 2007-03-22  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/poll.c (MSG_PEEK): New fallback definition.
62361
62362 2007-03-22  Bruno Haible  <bruno@clisp.org>
62363
62364         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62365         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62366         (main): Update.
62367         Fixes a compilation error on BeOS.
62368
62369 2007-03-22  Bruno Haible  <bruno@clisp.org>
62370
62371         * modules/frexpl-tests: New file.
62372         * tests/test-frexpl.c: New file.
62373
62374         * modules/frexpl: New file.
62375         * m4/frexpl.m4: New file.
62376         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62377         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62379         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62380         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62381         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62382
62383 2007-03-22  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/frexpl.c: Share code with lib/frexp.c.
62386         * modules/mathl (Files): Add lib/frexp.c.
62387         (Depends-on): Add isnanl-nolibm.
62388
62389 2007-03-22  Bruno Haible  <bruno@clisp.org>
62390
62391         * modules/printf-frexp (Files): Add m4/frexp.m4.
62392         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62393         only if the found frexp function actually works.
62394
62395 2007-03-22  Bruno Haible  <bruno@clisp.org>
62396
62397         * lib/frexp.c: Remove older implementation that uses divisions.
62398
62399 2007-03-21  Bruno Haible  <bruno@clisp.org>
62400
62401         * modules/frexp-tests: New file.
62402         * tests/test-frexp.c: New file.
62403
62404         * modules/frexp: New file.
62405         * lib/frexp.c: New file.
62406         * m4/frexp.m4: New file.
62407         * lib/math_.h (frexp): New declaration.
62408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62409         REPLACE_FREXP.
62410         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62411
62412 2007-03-21  Bruno Haible  <bruno@clisp.org>
62413
62414         * modules/isnanl-tests: New file.
62415         * tests/test-isnanl.c: New file.
62416
62417         * modules/isnanl: New file.
62418         * lib/isnanl.h: New file.
62419         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62420         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62421         gl_FUNC_ISNANL_WORKS.
62422         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62423         New macros.
62424
62425 2007-03-21  Bruno Haible  <bruno@clisp.org>
62426
62427         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62428         lib/isnanl.h.
62429         (Include): Update.
62430         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62431         * lib/vasnprintf.c: Update.
62432         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62433         tests/test-isnanl.h, remove tests/test-isnanl.c.
62434         (Makefile.am): Update.
62435         * tests/test-isnanl-nolibm.c: New file.
62436         * tests/test-isnanl.h: New file.
62437         * tests/test-isnanl.c: Remove file.
62438
62439 2007-03-21  Jim Meyering  <jim@meyering.net>
62440
62441         When trying to open ".", treat ESTALE like EACCES.
62442         * lib/savewd.c (savewd_save): Resort to forking not just upon
62443         failure with EACCES, but also when errno is ESTALE.
62444
62445 2007-03-20  Bruno Haible  <bruno@clisp.org>
62446
62447         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62448         Needed on AIX 5.1. Reported by Matthew Woehlke.
62449
62450 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         Suggestions by Bruno Haible:
62453         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62454         our own.
62455         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62456         * modules/acl (Depends-on): Add gettext.
62457
62458 2007-03-19  Bruno Haible  <bruno@clisp.org>
62459
62460         * modules/iconvme: Remove file.
62461         * lib/iconvme.h: Remove file.
62462         * lib/iconvme.c: Remove file.
62463         * m4/iconvme.m4: Remove file.
62464
62465 2007-03-19  Bruno Haible  <bruno@clisp.org>
62466
62467         * doc/relocatable-maint.texi: Break long shell script line.
62468         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62469
62470 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62471
62472         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62473         handle file_has_acl.
62474         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62475         * lib/acl.c: Move header inclusions and related macro defns into
62476         lib/acl-internal.h.
62477         (S_ISLNK): Remove defn, since that's now done for us.
62478         (file_has_acl): Move to lib/file-has-acl.c.
62479         Call acl_trivial if available.  This is the crucial part of the fix.
62480         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62481         shared within the library.  Rewrite a bit, partly to make it compatible
62482         with the GNU coding style.
62483         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62484         Remove unnecessary double-quotes.
62485         Don't test for acl_to_text; the build will catch that.
62486         Replace acl_entries if it doesn't exist and it is needed.
62487         Check for -lsec and acl_trivial (as used on Solaris 10).
62488         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62489         lib/file-has-acl.c.
62490         (Depends-on): Add sys_stat, for S_ISLNK.
62491
62492 2007-03-19  Ben Pfaff  <blp@gnu.org>
62493
62494         * doc/gnulib.texi: Fix typos.
62495         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62496
62497 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62498
62499         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62500         If size is zero here, buf must be zero.
62501
62502 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62503
62504         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62505         <bruno@clisp.org>.
62506
62507 2007-03-18  Bruno Haible  <bruno@clisp.org>
62508
62509         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62510         Suggested by Eric Blake.
62511
62512 2007-03-18  Ben Pfaff  <blp@gnu.org>
62513
62514         * doc/relocatable.texi: Recommend using as prefix a directory
62515         that does not exist and will never be created.  Based on
62516         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62517         and others.
62518
62519 2007-03-17  Bruno Haible  <bruno@clisp.org>
62520
62521         * lib/fchownat.c: Include lchown.h.
62522
62523 2007-03-17  Bruno Haible  <bruno@clisp.org>
62524
62525         Fix endless loop when the given allocated size was > INT_MAX.
62526         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62527         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62528         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62529         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62530         * lib/sprintf.c (sprintf): Likewise.
62531
62532 2007-03-17  Bruno Haible  <bruno@clisp.org>
62533
62534         * tests/test-argp-2.sh (func_compare): Output a context diff.
62535
62536 2007-03-17  Bruno Haible  <bruno@clisp.org>
62537
62538         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62539         locale's decimal-point character.
62540
62541 2007-03-17  Bruno Haible  <bruno@clisp.org>
62542
62543         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62544         before comparing it. Needed because on some platforms (e.g. x86) a
62545         'long double' occupies less bytes than sizeof (long double).
62546
62547 2007-03-17  Bruno Haible  <bruno@clisp.org>
62548
62549         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62550         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62551         * tests/test-getaddrinfo.c (simple): Likewise.
62552         * tests/test-read-file.c (main): Likewise.
62553
62554 2007-03-17  Bruno Haible  <bruno@clisp.org>
62555
62556         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62557
62558 2007-03-17  Bruno Haible  <bruno@clisp.org>
62559
62560         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62561         unused variable.
62562
62563 2007-03-17  Bruno Haible  <bruno@clisp.org>
62564
62565         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62566         * tests/test-c-strncasecmp.c: Likewise.
62567
62568 2007-03-17  Bruno Haible  <bruno@clisp.org>
62569
62570         * modules/stdlib (Depends-on): Add unistd.
62571         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62572         Needed for MacOS X 10.3.
62573
62574 2007-03-17  Bruno Haible  <bruno@clisp.org>
62575
62576         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62577
62578 2007-03-17  Bruno Haible  <bruno@clisp.org>
62579
62580         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62581
62582 2007-03-17  Bruno Haible  <bruno@clisp.org>
62583
62584         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62585         to reflect files copied from gnulib (with or without modifications).
62586         Suggested by Jim Meyering.
62587
62588 2007-03-17  Eric Blake  <ebb9@byu.net>
62589
62590         * NEWS: Document stdlib change from 2007-02-18.
62591
62592 2007-03-17  Jim Meyering  <jim@meyering.net>
62593
62594         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62595         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62596         someone uses a name containing shell meta-characters.
62597         Reported by Alfred M. Szmidt.
62598
62599         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62600
62601 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62602
62603         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62604         and copy gettext configuration files only if configure.ac contains
62605         a use of AM_GNU_GETTEXT_VERSION.
62606
62607 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62608
62609         * build-aux/bootstrap (gnulib_name): New variable.
62610         (gnulib_tool_options): Use it.
62611
62612 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62613
62614         * tests/test-des.c: Use new namespace.
62615
62616 2007-03-15  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62619         Reported by James Youngman <jay@gnu.org>.
62620
62621 2007-03-15  Bruno Haible  <bruno@clisp.org>
62622
62623         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62624         declared prototype. Needed with cc on OSF/1 5.1.
62625
62626 2007-03-15  Bruno Haible  <bruno@clisp.org>
62627
62628         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62629         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62630         (struct gl_list_implementation): Add dispose_fn argument to the
62631         'create_empty', 'create' methods.
62632         (struct gl_list_impl_base): Add field 'dispose_fn'.
62633         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62634         argument.
62635         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62636         dispose_fn argument.
62637         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62638         dispose_fn on the dropped values.
62639         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62640         dispose_fn argument.
62641         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62642         dropped values.
62643         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62644         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62645         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62646         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62647         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62648         argument.
62649         (gl_tree_list_free): Call dispose_fn on the dropped values.
62650         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62651         the dropped values.
62652         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62653         Add dispose_fn argument.
62654         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62655         Call dispose_fn on the dropped values.
62656         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62657         Add dispose_fn argument.
62658         (gl_sublist_create): Initialize the 'dispose_fn' field.
62659         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62660         * tests/test-array_list.c (main): Update.
62661         * tests/test-carray_list.c (main): Update.
62662         * tests/test-avltree_list.c (main): Update.
62663         * tests/test-rbtree_list.c (main): Update.
62664         * tests/test-avltreehash_list.c (main): Update.
62665         * tests/test-rbtreehash_list.c (main): Update.
62666         * tests/test-linked_list.c (main): Update.
62667         * tests/test-linkedhash_list.c (main): Update.
62668         * tests/test-array_oset.c (main): Update.
62669
62670 2007-03-15  Bruno Haible  <bruno@clisp.org>
62671
62672         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62673         (gl_oset_create_empty): Add dispose_fn argument.
62674         (struct gl_oset_implementation): Add dispose_fn argument to
62675         'create_empty' method.
62676         (struct gl_oset_impl_base): Add dispose_fn field.
62677         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62678         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62679         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62680         values.
62681         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62682         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62683         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62684         dropped value.
62685         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62686         dropped value.
62687         * tests/test-array_oset.c (main): Update.
62688         * tests/test-avltree_oset.c (main): Update.
62689         * tests/test-rbtree_oset.c (main): Update.
62690         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62691
62692 2007-03-13  Bruno Haible  <bruno@clisp.org>
62693
62694         * tests/test-stdbool.c (i): Update after last patch.
62695
62696 2007-03-12  Bruno Haible  <bruno@clisp.org>
62697
62698         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62699         the iswprint macro. Needed on Solaris 2.5.1.
62700
62701 2007-03-12  Bruno Haible  <bruno@clisp.org>
62702
62703         * tests/test-printf-frexp.c (main): Declare x as volatile.
62704
62705 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62706
62707         * doc/gnulib.texi (Build robot for gnulib): New section.
62708
62709 2007-03-12  Jim Meyering  <jim@meyering.net>
62710
62711         * build-aux/bootstrap: New file.
62712         * build-aux/bootstrap.conf: New file, from coreutils.
62713
62714 2007-03-11  Bruno Haible  <bruno@clisp.org>
62715
62716         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62717
62718 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62719
62720         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62721         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62722         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62723
62724 2007-03-11  Bruno Haible  <bruno@clisp.org>
62725
62726         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62727         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62728
62729 2007-03-11  Bruno Haible  <bruno@clisp.org>
62730
62731         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62732         formula. Needed for SunPRO C 5.0.
62733
62734 2007-03-11  Bruno Haible  <bruno@clisp.org>
62735
62736         * modules/long-options (Depends-on): Add getopt.
62737
62738 2007-03-11  Bruno Haible  <bruno@clisp.org>
62739
62740         * modules/modechange (Depends-on): Add stdbool.
62741
62742 2007-03-11  Bruno Haible  <bruno@clisp.org>
62743
62744         * modules/i-ring (Depends-on): Add stdbool.
62745
62746 2007-03-11  Bruno Haible  <bruno@clisp.org>
62747
62748         * modules/gc-des (Depends-on): Add stdbool.
62749
62750 2007-03-11  Bruno Haible  <bruno@clisp.org>
62751
62752         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62753
62754 2007-03-11  Bruno Haible  <bruno@clisp.org>
62755
62756         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62757
62758 2007-03-11  Bruno Haible  <bruno@clisp.org>
62759
62760         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62761
62762 2007-03-11  Bruno Haible  <bruno@clisp.org>
62763
62764         * lib/vasnprintf.c (sprintf): Undefine.
62765
62766 2007-03-11  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62769         initializers in SunPRO C and Compaq C compilers.
62770
62771 2007-03-11  Bruno Haible  <bruno@clisp.org>
62772
62773         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62774         decrementing code ANSI C compliant.
62775
62776 2007-03-11  Bruno Haible  <bruno@clisp.org>
62777
62778         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62779         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62780
62781 2007-03-11  Bruno Haible  <bruno@clisp.org>
62782
62783         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62784         <stdbool.h> substitute doesn't pass.
62785
62786 2007-03-11  Bruno Haible  <bruno@clisp.org>
62787
62788         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62789
62790 2007-03-11  Bruno Haible  <bruno@clisp.org>
62791
62792         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62793         script, for submission to autobuild.josefsson.org.
62794
62795 2007-03-10  Bruno Haible  <bruno@clisp.org>
62796
62797         * modules/canonicalize-lgpl-tests: New file.
62798         * tests/test-canonicalize-lgpl.sh: New file.
62799         * tests/test-canonicalize-lgpl.c: New file.
62800
62801         * modules/c-strcase-tests: New file.
62802         * tests/test-c-strcase.sh: New file.
62803         * tests/test-c-strcasecmp.c: New file.
62804         * tests/test-c-strncasecmp.c: New file.
62805
62806         * modules/atexit-tests: New file.
62807         * tests/test-atexit.sh: New file.
62808         * tests/test-atexit.c: New file.
62809
62810 2007-03-10  Bruno Haible  <bruno@clisp.org>
62811
62812         * tests/test-binary-io.sh: Use temporary filenames that are not so
62813         likely to clash with those of other tests (in a parallel make).
62814         * tests/test-binary-io.c: Likewise.
62815
62816 2007-03-10  Bruno Haible  <bruno@clisp.org>
62817
62818         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62819         fallback; use #error instead.
62820         Suggested by Simon Josefsson.
62821
62822 2007-03-10  Bruno Haible  <bruno@clisp.org>
62823
62824         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62825         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62826         first and the last.
62827
62828 2007-03-10  Bruno Haible  <bruno@clisp.org>
62829
62830         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62831
62832 2007-03-10  Bruno Haible  <bruno@clisp.org>
62833
62834         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62835         "make distcheck".
62836         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62837         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62838         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62839
62840 2007-03-10  Bruno Haible  <bruno@clisp.org>
62841
62842         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62843         variable.
62844         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62845         variable.
62846
62847 2007-03-09  Eric Blake  <ebb9@byu.net>
62848         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62849
62850         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62851         types are not being provided by gnulib.
62852         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62853         types are supported.
62854
62855 2007-03-10  Bruno Haible  <bruno@clisp.org>
62856
62857         * lib/stdio_.h (__attribute__): New macro.
62858         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62859         vsprintf): Specify __attribute__ __format__ for GCC.
62860         Suggested by Eric Blake.
62861
62862 2007-03-09  Bruno Haible  <bruno@clisp.org>
62863
62864         * modules/printf-posix-tests: New file.
62865         * tests/test-printf-posix.sh: New file.
62866         * tests/test-printf-posix.c: New file.
62867
62868         * modules/printf-posix: New file.
62869         * lib/printf.c: New file.
62870         * m4/printf-posix-rpl.m4: New file.
62871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62872         REPLACE_PRINTF.
62873         * lib/stdio_.h (printf): New declaration.
62874         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62875         ____strfmon____): New macros.
62876         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62877         REPLACE_PRINTF.
62878
62879 2007-03-09  Bruno Haible  <bruno@clisp.org>
62880
62881         * tests/test-vasnprintf-posix2.sh: New file.
62882         * tests/test-vasnprintf-posix2.c: New file.
62883         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62884         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62885         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62886
62887         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62888         a locale dependent decimal point, rather than always '.'.
62889
62890 2007-03-09  Eric Blake  <ebb9@byu.net>
62891
62892         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62893         spite of platforms like Tandem/NSK that define it to -1.
62894
62895 2007-03-08  Bruno Haible  <bruno@clisp.org>
62896
62897         * modules/vprintf-posix-tests: New file.
62898         * tests/test-vprintf-posix.sh: New file.
62899         * tests/test-vprintf-posix.c: New file.
62900         * tests/test-printf-posix.h: New file.
62901
62902         * modules/vprintf-posix: New file.
62903         * lib/vprintf.c: New file.
62904         * m4/vprintf-posix.m4: New file.
62905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62906         REPLACE_VPRINTF.
62907         * lib/stdio_.h (vprintf): New declaration.
62908         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62909         REPLACE_VPRINTF.
62910
62911 2007-03-08  Bruno Haible  <bruno@clisp.org>
62912
62913         * modules/fprintf-posix-tests: New file.
62914         * tests/test-fprintf-posix.sh: New file.
62915         * tests/test-fprintf-posix.c: New file.
62916
62917         * modules/fprintf-posix: New file.
62918         * lib/fprintf.c: New file.
62919         * m4/fprintf-posix.m4: New file.
62920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62921         REPLACE_FPRINTF.
62922         * lib/stdio_.h (fprintf): New declaration.
62923         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62924         REPLACE_FPRINTF.
62925
62926 2007-03-08  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/vfprintf-posix-tests: New file.
62929         * tests/test-vfprintf-posix.sh: New file.
62930         * tests/test-vfprintf-posix.c: New file.
62931         * tests/test-fprintf-posix.h: New file.
62932         * tests/test-fprintf-posix.out: New file.
62933
62934         * modules/vfprintf-posix: New file.
62935         * lib/vfprintf.c: New file.
62936         * m4/vfprintf-posix.m4: New file.
62937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62938         REPLACE_VFPRINTF.
62939         * lib/stdio_.h (vfprintf): New declaration.
62940         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62941         REPLACE_VFPRINTF.
62942
62943 2007-03-08  Bruno Haible  <bruno@clisp.org>
62944
62945         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62946
62947 2007-03-08  Bruno Haible  <bruno@clisp.org>
62948
62949         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62950         instead of 'expr' invocations.
62951         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62952         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62953         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62954         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62955         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62956         Suggested by Paul Eggert.
62957
62958 2007-03-08  Bruno Haible  <bruno@clisp.org>
62959
62960         * modules/fseterr-tests: New file.
62961         * tests/test-fseterr.c: New file.
62962
62963         * modules/fseterr: New file.
62964         * lib/fseterr.h: New file.
62965         * lib/fseterr.c: New file.
62966
62967 2007-03-08  Bruno Haible  <bruno@clisp.org>
62968
62969         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62970         * lib/getopt_.h: Likewise.
62971         * lib/mbswidth.h: Likewise.
62972         * lib/setenv.h: Likewise.
62973         * lib/vasnprintf.h: Likewise.
62974         * lib/vasprintf.h: Likewise.
62975         * lib/verror.h: Likewise.
62976         * lib/xsetenv.h: Likewise.
62977         * lib/xvasprintf.h: Likewise.
62978
62979 2007-03-08  Jim Meyering  <jim@meyering.net>
62980
62981         * users.txt: Add parted.
62982
62983         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62984
62985 2007-03-07  Bruno Haible  <bruno@clisp.org>
62986
62987         * m4/printf.m4: Make the shell script snippets copy&pastable.
62988
62989 2007-03-02  Bruno Haible  <bruno@clisp.org>
62990
62991         * lib/netinet_in_.h: New file.
62992         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62993         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62994         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62995         (Depends-on): Add absolute-header.
62996         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62997         into netinet/in.h.
62998
62999 2007-03-03  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/sys_select_.h: New file.
63002         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63003         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63004         * modules/sys_select (Files): Add lib/sys_select_.h.
63005         (Depends-on): Add absolute-header.
63006         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63007         into sys/select.h.
63008
63009 2007-03-02  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63012         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63013         values.
63014         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63015         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63016         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63017         * modules/sys_socket (Depends-on): Add absolute-header.
63018         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63019         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63020         (Include): Remove requirement of inclusion of <sys/types.h>.
63021
63022 2007-03-02  Bruno Haible  <bruno@clisp.org>
63023
63024         * lib/byteswap_.h (bswap_32): Fix formula.
63025
63026 2007-03-06  Bruno Haible  <bruno@clisp.org>
63027
63028         * modules/sprintf-posix-tests: New file.
63029         * tests/test-sprintf-posix.c: New file.
63030
63031         * modules/sprintf-posix: New file.
63032         * lib/sprintf.c: New file.
63033         * m4/sprintf-posix.m4: New file.
63034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63035         REPLACE_SPRINTF.
63036         * lib/stdio_.h (sprintf): New declaration.
63037         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63038         REPLACE_SPRINTF.
63039
63040 2007-03-06  Bruno Haible  <bruno@clisp.org>
63041
63042         * modules/vsprintf-posix-tests: New file.
63043         * tests/test-vsprintf-posix.c: New file.
63044         * tests/test-sprintf-posix.h: New file.
63045
63046         * modules/vsprintf-posix: New file.
63047         * lib/vsprintf.c: New file.
63048         * m4/vsprintf-posix.m4: New file.
63049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63050         REPLACE_VSPRINTF.
63051         * lib/stdio_.h (vsprintf): New declaration.
63052         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63053         REPLACE_VSPRINTF.
63054
63055 2007-03-06  Bruno Haible  <bruno@clisp.org>
63056
63057         * modules/vsnprintf (Depend-on): Remove minmax.
63058
63059 2007-03-06  Bruno Haible  <bruno@clisp.org>
63060
63061         * modules/snprintf-posix-tests: New file.
63062         * tests/test-snprintf-posix.c: New file.
63063
63064         * modules/snprintf-posix: New file.
63065         * m4/snprintf-posix.m4: New file.
63066         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63067         gl_FUNC_SNPRINTF.
63068         (gl_FUNC_SNPRINTF): Invoke it.
63069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63070         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63071         is set.
63072         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63073
63074 2007-03-06  Bruno Haible  <bruno@clisp.org>
63075
63076         * modules/vsnprintf-posix-tests: New file.
63077         * tests/test-vsnprintf-posix.c: New file.
63078         * tests/test-snprintf-posix.h: New file.
63079
63080         * modules/vsnprintf-posix: New file.
63081         * m4/vsnprintf-posix.m4: New file.
63082         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63083         gl_FUNC_VSNPRINTF.
63084         (gl_FUNC_VSNPRINTF): Invoke it.
63085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63086         * lib/stdio_.h (vsnprintf): Define as a replacement if
63087         REPLACE_VSNPRINTF is set.
63088         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63089
63090 2007-03-06  Bruno Haible  <bruno@clisp.org>
63091
63092         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63094
63095 2007-03-06  Bruno Haible  <bruno@clisp.org>
63096
63097         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63098         (asinl): Declare also if HAVE_DECL_ASINL is set.
63099         (atanl): Declare also if HAVE_DECL_ATANL is set.
63100         (ceill): Declare also if HAVE_DECL_CEILL is set.
63101         (cosl): Declare also if HAVE_DECL_COSL is set.
63102         (expl): Declare also if HAVE_DECL_EXPL is set.
63103         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63104         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63105         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63106         (logl): Declare also if HAVE_DECL_LOGL is set.
63107         (sinl): Declare also if HAVE_DECL_SINL is set.
63108         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63109         (tanl): Declare also if HAVE_DECL_TANL is set.
63110         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63113         declaration of frexpl, ldexpl.
63114         * modules/printf-frexpl (Depends-on): Add math.
63115         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63116
63117 2007-03-05  Bruno Haible  <bruno@clisp.org>
63118
63119         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63120         frexpl and ldexpl are declared.
63121         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63122
63123 2007-03-05  Bruno Haible  <bruno@clisp.org>
63124
63125         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63126         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63127
63128 2007-03-05  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/stdio_.h: Include <stddef.h>.
63131
63132 2007-03-05  Bruno Haible  <bruno@clisp.org>
63133
63134         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63135
63136 2007-03-05  Bruno Haible  <bruno@clisp.org>
63137
63138         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63139         NetBSD 4, from Ralf Wildenhues.
63140
63141 2007-03-04  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/vasprintf.h: Update #if logic for the case when the functions
63144         exist but are overridden.
63145
63146 2007-03-04  Bruno Haible  <bruno@clisp.org>
63147
63148         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63149         implementations: glibc-2.4 and MacOS X 10.3.
63150         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63151         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63152         * tests/test-vasprintf-posix.c (test_function): Likewise.
63153
63154 2007-03-04  Bruno Haible  <bruno@clisp.org>
63155
63156         * modules/vasprintf-posix-tests: New file.
63157         * tests/test-vasprintf-posix.c: New file.
63158
63159         * modules/vasprintf-posix: New file.
63160         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63161         defined.
63162         * m4/vasprintf-posix.m4: New file.
63163         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63164         gl_FUNC_VASPRINTF.
63165         (gl_FUNC_VASPRINTF): Invoke it.
63166         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63167         here.
63168         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63169
63170 2007-03-04  Bruno Haible  <bruno@clisp.org>
63171
63172         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63173         REPLACE_GETTIMEOFDAY.
63174         * modules/sys_time (Makefile.am): Likewise.
63175         * m4/sys_time_h.m4: Likewise.
63176         * m4/gettimeofday.m4: Likewise.
63177
63178 2007-03-04  Bruno Haible  <bruno@clisp.org>
63179
63180         * modules/vasnprintf-posix-tests: New file.
63181         * tests/test-vasnprintf-posix.c: New file.
63182
63183         * modules/vasnprintf-posix: New file.
63184         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63185         printf-frexpl.h.
63186         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63187         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63188         REPLACE_VASNPRINTF is defined.
63189         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63190         gl_FUNC_VASNPRINTF.
63191         (gl_FUNC_VASNPRINTF): Invoke it.
63192         * m4/vasnprintf-posix.m4: New file.
63193         * m4/printf.m4: New file.
63194
63195 2007-03-04  Bruno Haible  <bruno@clisp.org>
63196
63197         Compile progreloc.c only if --enable-relocatable is specified.
63198         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63199         if --enable-relocatable was specified.
63200         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63201         lib_SOURCES.
63202
63203 2007-03-04  Jim Meyering  <jim@meyering.net>
63204
63205         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63206         Use it consistently, rather than enumerating errno constants.
63207
63208 2007-03-04  Bruno Haible  <bruno@clisp.org>
63209
63210         * modules/xvasprintf-tests: New file.
63211         * tests/test-xvasprintf.c: New file.
63212
63213         * modules/vasprintf-tests: New file.
63214         * tests/test-vasprintf.c: New file.
63215
63216         * modules/vasnprintf-tests: New file.
63217         * tests/test-vasnprintf.c: New file.
63218
63219         * modules/vsnprintf-tests: New file.
63220         * tests/test-vsnprintf.c: New file.
63221
63222         * modules/snprintf-tests: New file.
63223         * tests/test-snprintf.c: New file.
63224
63225 2007-03-04  Bruno Haible  <bruno@clisp.org>
63226
63227         Compile relocatable.c only if --enable-relocatable is specified.
63228         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63229         gl_RELOCATABLE_LIBRARY.
63230         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63231         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63232         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63233         gl_RELOCATABLE_LIBRARY.
63234         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63235         (Makefile.am): Remove lib_SOURCES.
63236         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63237         gl_RELOCATABLE_LIBRARY.
63238         (Makefile.am): Remove lib_SOURCES.
63239         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63240         always.
63241         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63242         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63243
63244 2007-03-04  Bruno Haible  <bruno@clisp.org>
63245
63246         * modules/argmatch-tests: New file.
63247         * tests/test-argmatch.c: New file.
63248
63249         * tests/test-allocsa.c (main): Halve the number of loop runs.
63250
63251         * modules/alloca-opt-tests: New file.
63252         * tests/test-alloca-opt.c: New file.
63253
63254 2007-03-04  Jim Meyering  <jim@meyering.net>
63255
63256         Work around difference between Linux ACLs and Solaris 10 ZFS.
63257         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63258         for EINVAL.
63259
63260 2007-03-03  Bruno Haible  <bruno@clisp.org>
63261
63262         * modules/relocatable-prog (Depends-on): Add back progreloc's
63263         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63264
63265 2007-03-03  Bruno Haible  <bruno@clisp.org>
63266
63267         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63268         * modules/relocatable-lib: New file.
63269
63270 2007-03-03  Bruno Haible  <bruno@clisp.org>
63271
63272         * modules/relocatable-prog: Renamed from modules/relocatable.
63273         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63274
63275 2007-03-03  Bruno Haible  <bruno@clisp.org>
63276
63277         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63278         m4/relocatable-lib.m4.
63279         (Depends-on): Remove 'relocatable'.
63280         (configure.ac): Add gl_RELOCATABLE_NOP.
63281
63282 2007-03-03  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/relocatable-prog-wrapper: New file.
63285         * modules/relocatable (Depends-on): Add it. Remove all other
63286         dependencies except progname.
63287         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63288
63289         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63290         (gl_FUNC_STRERROR): Nop.
63291         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63292
63293         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63294         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63295
63296         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63297         (gl_FUNC_READLINK): Update.
63298
63299         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63300
63301 2007-03-03  Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63304         * modules/xreadlink (Depends-on): Add unistd.
63305         * modules/xreadlink-with-size (Depends-on): Likewise.
63306
63307 2007-03-03  Bruno Haible  <bruno@clisp.org>
63308
63309         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63310         extracted from gt_FUNC_SETENV.
63311         (gt_FUNC_SETENV): Remove macro.
63312         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63313         remove gt_FUNC_SETENV.
63314
63315 2007-03-03  Bruno Haible  <bruno@clisp.org>
63316
63317         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63318         ENABLE_RELOCATABLE here.
63319         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63320
63321 2007-03-03  Bruno Haible  <bruno@clisp.org>
63322
63323         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63324         * tests/test-rbtreehash_list.c: Include progname.h.
63325         (main): Call set_program_name.
63326
63327         * modules/rbtree-oset-tests (Depends-on): Add progname.
63328         * tests/test-rbtree_oset.c: Include progname.h.
63329         (main): Call set_program_name.
63330
63331         * modules/rbtree-list-tests (Depends-on): Add progname.
63332         * tests/test-rbtree_list.c: Include progname.h.
63333         (main): Call set_program_name.
63334
63335         * modules/linked-list-tests (Depends-on): Add progname.
63336         * tests/test-linked_list.c: Include progname.h.
63337         (main): Call set_program_name.
63338
63339 2007-03-03  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63342         All uses of __restrict changed to _Restrict_.
63343         * lib/glob_.h (__restrict): Remove macro.
63344
63345 2007-03-02  Bruno Haible  <bruno@clisp.org>
63346
63347         * modules/gettext (configure.ac): Require gettext infrastructure
63348         from version 0.16.1.
63349
63350 2007-03-02  Bruno Haible  <bruno@clisp.org>
63351
63352         * modules/linkedhash-list-tests (Depends-on): Add progname.
63353         * tests/test-linkedhash_list.c: Include progname.h.
63354         (main): Call set_program_name.
63355
63356         * modules/carray-list-tests (Depends-on): Add progname.
63357         * tests/test-carray_list.c: Include progname.h.
63358         (main): Call set_program_name.
63359
63360         * modules/avltreehash-list-tests (Depends-on): Add progname.
63361         * tests/test-avltreehash_list.c: Include progname.h.
63362         (main): Call set_program_name.
63363
63364         * modules/avltree-oset-tests (Depends-on): Add progname.
63365         * tests/test-avltree_oset.c: Include progname.h.
63366         (main): Call set_program_name.
63367
63368         * modules/avltree-list-tests (Depends-on): Add progname.
63369         * tests/test-avltree_list.c: Include progname.h.
63370         (main): Call set_program_name.
63371
63372         * modules/array-oset-tests (Depends-on): Add progname.
63373         * tests/test-array_oset.c: Include progname.h.
63374         (main): Call set_program_name.
63375
63376         * modules/array-list-tests (Depends-on): Add progname.
63377         * tests/test-array_list.c: Include progname.h.
63378         (main): Call set_program_name.
63379
63380         * modules/argp-tests (Depends-on): Add progname.
63381         * tests/test-argp.c: Include argp.h first. Include progname.h.
63382         (main): Call set_program_name.
63383
63384 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63385
63386         * doc/gnulib-tool.texi (Initial import): Reword description of
63387         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63388         limited effect even if defined after the first system include.
63389
63390 2007-03-01  Bruno Haible  <bruno@clisp.org>
63391
63392         * build-aux/config.libpath: Update to libtool-1.5.22.
63393         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63394
63395 2007-03-01  Bruno Haible  <bruno@clisp.org>
63396
63397         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63398         foo_CFLAGS.
63399         Reported by Ralf Wildenhues.
63400
63401 2007-03-01  Bruno Haible  <bruno@clisp.org>
63402
63403         * build-aux/install-reloc: Remove object files left over by some
63404         compilers.
63405         Reported by Ralf Wildenhues.
63406
63407 2007-03-01  Bruno Haible  <bruno@clisp.org>
63408
63409         * build-aux/install-reloc: Break long lines.
63410
63411 2007-03-01  Bruno Haible  <bruno@clisp.org>
63412
63413         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63414         Reported by Ralf Wildenhues.
63415
63416 2007-03-01  Bruno Haible  <bruno@clisp.org>
63417
63418         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63419         include ordering constraints.
63420
63421 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63422
63423         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63425         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63426         as another example.
63427         * lib/time_.h: Fix misspelling.
63428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63429         Require gl_HEADER_TIME_H_DEFAULTS.
63430         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63431         * m4/time_r.m4 (gl_TIME_R): Likewise.
63432         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63433
63434 2007-03-01  Bruno Haible  <bruno@clisp.org>
63435
63436         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63437         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63438
63439 2007-03-01  Jim Meyering  <jim@meyering.net>
63440
63441         * modules/xreadlink (Maintainer): Add my name.
63442         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63443
63444 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63445             Bruno Haible  <bruno@clisp.org>
63446
63447         * build-aux/install-reloc: Compile also c-ctype.c.
63448         * build-aux/relocatable.sh.in: New file.
63449         * doc/relocatable.texi: New file.
63450         * doc/relocatable-maint.texi: New file.
63451         * doc/gnulib.texi: Include relocatable-maint.texi.
63452         * lib/progreloc.c: Include unistd.h unconditionally.
63453         * lib/relocwrapper.c: Include unistd.h unconditionally.
63454         Include c-ctype.h.
63455         (add_dotbin): Use c_tolower.
63456         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63457         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63458         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63459         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63460         to m4/relocatable-lib.m4.
63461         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63462         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63463         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63464         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63465         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63466         * modules/relocatable: New file.
63467         * modules/relocatable-lib: New file.
63468         * modules/relocatable-script: New file.
63469
63470 2007-02-28  Bruno Haible  <bruno@clisp.org>
63471
63472         Import --enable-relocatable infrastructure.
63473         * build-aux/config.libpath: New file, from GNU gettext.
63474         * build-aux/install-reloc: New file, from GNU gettext.
63475         * build-aux/reloc-ldflags: New file, from GNU gettext.
63476         * lib/relocatable.h: New file, from GNU gettext.
63477         * lib/relocatable.c: New file, from GNU gettext.
63478         * lib/relocwrapper.c: New file, from GNU gettext.
63479         * m4/relocatable.m4: New file, from GNU gettext.
63480
63481 2007-02-28  Bruno Haible  <bruno@clisp.org>
63482
63483         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63484
63485         * modules/xreadlink: New file, from GNU gettext with modifications.
63486         * lib/xreadlink.c: New file, from GNU gettext.
63487         * lib/xreadlink.h: Add comments.
63488         (xreadlink): New declaration.
63489
63490         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63491         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63492         lib/xreadlink-with-size.c.
63493         (configure.ac): Remove gl_XREADLINK invocation.
63494         (Makefile.am): Augment lib_SOURCES.
63495         * m4/xreadlink.m4: Remove file.
63496         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63497         (xreadlink_with_size): Renamed from xreadink.
63498         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63499         * modules/canonicalize (Depends-on): Replace xreadlink with
63500         xreadlink-with-size.
63501         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63502
63503 2007-02-25  Jim Meyering  <jim@meyering.net>
63504
63505         * build-aux/announce-gen: When complaining about excess arguments,
63506         list them.
63507
63508 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63509
63510         * README: Document signed integer overflow situation more
63511         accurately.
63512
63513 2007-02-25  Bruno Haible  <bruno@clisp.org>
63514
63515         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63516         'a' or 'A' conversion.
63517
63518 2007-02-25  Bruno Haible  <bruno@clisp.org>
63519
63520         * modules/filename: Renamed from modules/pathname.
63521         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63522         lib/concatpath.c with lib/concat-filename.c.
63523         (Makefile.am): Update.
63524         (Include): Replace pathname.h with filename.h.
63525         * lib/filename.h: Renamed from lib/pathname.h.
63526         (concatenated_filename): Renamed from concatenated_pathname.
63527         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63528         (concatenated_filename): Renamed from concatenated_pathname.
63529         * lib/findprog.c: Include filename.h instead of pathname.h.
63530         (find_in_path): Update.
63531         * lib/javacomp.c: Include filename.h instead of pathname.h.
63532         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63533         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63534         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63535         is_oldgcj_14_13_usable, is_javac_usable): Update.
63536         * lib/javaexec.c: Include filename.h instead of pathname.h.
63537         (execute_java_class): Update.
63538         * modules/findprog: Update.
63539         * modules/javacomp: Update.
63540         * modules/javaexec: Update.
63541         * MODULES.html.sh (File system functions): Add 'filename', remove
63542         'pathname'.
63543
63544 2007-02-25  Bruno Haible  <bruno@clisp.org>
63545
63546         * modules/printf-frexpl-tests: New file.
63547         * tests/test-printf-frexpl.c: New file.
63548
63549         * modules/printf-frexpl: New file.
63550         * lib/printf-frexpl.h: New file.
63551         * lib/printf-frexpl.c: New file.
63552         * m4/printf-frexpl.m4: New file.
63553
63554 2007-02-25  Bruno Haible  <bruno@clisp.org>
63555
63556         * modules/printf-frexp-tests: New file.
63557         * tests/test-printf-frexp.c: New file.
63558
63559         * modules/printf-frexp: New file.
63560         * lib/printf-frexp.h: New file.
63561         * lib/printf-frexp.c: New file.
63562         * m4/printf-frexp.m4: New file.
63563
63564 2007-02-25  Bruno Haible  <bruno@clisp.org>
63565
63566         Assume automake >= 1.10 for the tests.
63567         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63568         * modules/arctwo-tests: Likewise.
63569         * modules/argp-tests: Likewise.
63570         * modules/avltree-list-tests: Likewise.
63571         * modules/avltree-oset-tests: Likewise.
63572         * modules/avltreehash-list-tests: Likewise.
63573         * modules/carray-list-tests: Likewise.
63574         * modules/crc-tests: Likewise.
63575         * modules/des-tests: Likewise.
63576         * modules/gc-arcfour-tests: Likewise.
63577         * modules/gc-arctwo-tests: Likewise.
63578         * modules/gc-des-tests: Likewise.
63579         * modules/gc-hmac-md5-tests: Likewise.
63580         * modules/gc-hmac-sha1-tests: Likewise.
63581         * modules/gc-md2-tests: Likewise.
63582         * modules/gc-md4-tests: Likewise.
63583         * modules/gc-md5-tests: Likewise.
63584         * modules/gc-pbkdf2-sha1-tests: Likewise.
63585         * modules/gc-rijndael-tests: Likewise.
63586         * modules/gc-sha1-tests: Likewise.
63587         * modules/gc-tests: Likewise.
63588         * modules/getaddrinfo-tests: Likewise.
63589         * modules/hmac-md5-tests: Likewise.
63590         * modules/hmac-sha1-tests: Likewise.
63591         * modules/linked-list-tests: Likewise.
63592         * modules/linkedhash-list-tests: Likewise.
63593         * modules/lock-tests: Likewise.
63594         * modules/md2-tests: Likewise.
63595         * modules/md4-tests: Likewise.
63596         * modules/md5-tests: Likewise.
63597         * modules/rbtree-list-tests: Likewise.
63598         * modules/rbtree-oset-tests: Likewise.
63599         * modules/rbtreehash-list-tests: Likewise.
63600         * modules/read-file-tests: Likewise.
63601         * modules/rijndael-tests: Likewise.
63602         * modules/stdint-tests: Likewise.
63603         * modules/tls-tests: Likewise.
63604
63605 2007-02-24  Bruno Haible  <bruno@clisp.org>
63606
63607         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63608         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63609         function; instead check whether isnan with a double argument links.
63610         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63611         function; instead check whether isnan with a 'long double' argument
63612         links.
63613         Reported by Eric Blake <ebb9@byu.net>.
63614
63615 2007-02-24  Bruno Haible  <bruno@clisp.org>
63616
63617         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63618         defined.
63619         * lib/isnanl.c: Remove all code. Just include isnan.c.
63620         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63621
63622 2007-02-25  Jim Meyering  <jim@meyering.net>
63623
63624         Avoid conflicting types for 'unsetenv' on FreeBSD.
63625         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63626         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63627         in stdlib.h.
63628
63629 2007-02-24  Bruno Haible  <bruno@clisp.org>
63630
63631         * modules/isnanl-nolibm-tests: New file.
63632         * tests/test-isnanl.c: New file.
63633
63634         * modules/isnanl-nolibm: New file.
63635         * lib/isnanl.h: New file.
63636         * lib/isnanl.c: New file.
63637         * m4/isnanl.m4: New file.
63638
63639 2007-02-24  Bruno Haible  <bruno@clisp.org>
63640
63641         * modules/isnan-nolibm-tests: New file.
63642         * tests/test-isnan.c: New file.
63643
63644         * modules/isnan-nolibm: New file.
63645         * lib/isnan.h: New file.
63646         * lib/isnan.c: New file.
63647         * m4/isnan.m4: New file.
63648
63649 2007-02-24  Bruno Haible  <bruno@clisp.org>
63650
63651         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63652         assume that an exponent fits in 20 bits.
63653
63654 2007-02-24  Jim Meyering  <jim@meyering.net>
63655
63656         * m4/regex.m4: Update the description of the configure-time option,
63657         --without-included-regex, to state accurately what the defaults are,
63658         and perhaps to give people an idea why using this option is risky.
63659
63660 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63661
63662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63663         loops on small arguments.  This attempts to avoid the problem
63664         Bruno Haible reported for AIX 4.3.2 in
63665         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63666
63667 2007-02-23  Bruno Haible  <bruno@clisp.org>
63668
63669         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63670         Needed for help2man.
63671
63672 2007-02-23  Karl Berry  <karl@gnu.org>
63673
63674         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63675         exists, foo.h should be cvs-ignored, not committed.
63676
63677 2007-02-23  Eric Blake  <ebb9@byu.net>
63678
63679         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63680         * lib/stat-time.h (includes): Likewise.
63681         * lib/utimecmp.c (includes): Likewise.
63682         * lib/utimens.h (includes): Likewise.
63683         * lib/getdate.y (includes): Also include "timespec.h" for use
63684         internal to the module.
63685         * modules/utimens (Depends-on): Revert yesterday's patch.
63686         * modules/nanosleep (Depends-on): Add missing dependency.
63687
63688 2007-02-22  Bruno Haible  <bruno@clisp.org>
63689
63690         * lib/glob.c: Don't include getlogin_r.h.
63691
63692 2007-02-22  Jim Meyering  <jim@meyering.net>
63693
63694         * modules/utimens (Depends-on): Add timespec, required for
63695         utimens.h's inclusion of timespec.h.
63696
63697 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63700         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63701         Schwab in
63702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63703         I'll try to think of a better way to fix the Solaris problem.
63704
63705         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63706         like glibc; on Solaris 10, it fails with errno == EINVAL.
63707         POSIX says the behavior is unspecified if the first argument is NULL,
63708         so play it safe and never pass NULL to the system getcwd.
63709
63710 2007-02-21  Jim Meyering  <jim@meyering.net>
63711
63712         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63713         of gettimeofday.  It would conflict with the one now always
63714         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63715         an IRIX 6.5 build failure.
63716
63717 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63718
63719         Minor fixups to port to Solaris 10 with Sun C 5.8.
63720         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63721         * modules/getcwd (Depends-on): Add dirfd.
63722         * lib/putenv.c (putenv): #undef it.
63723         (rpl_putenv): New decl.
63724         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63725
63726 2007-02-20  Bruno Haible  <bruno@clisp.org>
63727
63728         * modules/stdio-tests: New file.
63729         * tests/test-stdio.c: New file.
63730
63731         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63732         (Depends-on): Add stdio.
63733         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63734         (Include): Use <stdio.h> instead of vsnprintf.h.
63735         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63736         HAVE_DECL_VSNPRINTF.
63737         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63738
63739         * modules/snprintf (Files): Remove lib/snprintf.h.
63740         (Depends-on): Add stdio.
63741         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63742         (Include): Use <stdio.h> instead of snprintf.h.
63743         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63744         HAVE_DECL_SNPRINTF.
63745         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63746         * lib/getaddrinfo.c: Likewise.
63747
63748         * modules/stdio: New file.
63749         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63750         * lib/snprintf.h: Remove file.
63751         * lib/vsnprintf.h: Remove file.
63752         * lib/.cppi-disable: Remove snprintf.h.
63753         * m4/stdio_h.m4: New file.
63754         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63755
63756 2007-02-20  Jim Meyering  <jim@meyering.net>
63757
63758         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63759         used by e.g., mingw.  From Bruno Haible.
63760
63761 2007-02-19  Bruno Haible  <bruno@clisp.org>
63762
63763         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63764         warnings.
63765         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63766
63767 2007-02-19  Bruno Haible  <bruno@clisp.org>
63768
63769         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63770         from mingw users.
63771
63772 2007-02-19  Bruno Haible  <bruno@clisp.org>
63773
63774         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63775         warnings.
63776         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63777
63778 2007-02-19  Jim Meyering  <jim@meyering.net>
63779
63780         Don't use FD after a successful "fdopendir (fd)".
63781         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63782         Reset it by calling dirfd on the just-obtained DIR*.
63783
63784         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63785         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63786
63787 2007-02-18  Bruno Haible  <bruno@clisp.org>
63788
63789         * lib/readlink.c: Include <unistd.h>.
63790         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63791         HAVE_READLINK.
63792         * modules/readlink (Depends-on): Add unistd.
63793         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63794         (Include): Add <unistd.h>.
63795
63796         * lib/getlogin_r.h: Remove file.
63797         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63798         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63799         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63800         HAVE_DECL_GETLOGIN_R.
63801         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63802         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63803         (Include): Use <unistd.h> instead of getlogin_r.h.
63804
63805         * lib/getcwd.h: Remove file.
63806         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63807         * lib/xgetcwd.c: Likewise.
63808         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63809         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63810         * modules/getcwd (Files): Remove lib/getcwd.h.
63811         (Depends-on): Add unistd.
63812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63813         (Include): Use <unistd.h> instad of getcwd.h.
63814
63815         * lib/ftruncate.c: Include <unistd.h> first.
63816         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63817         Set HAVE_FTRUNCATE.
63818         * modules/ftruncate (Depends-on): Add unistd.
63819         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63820
63821         * lib/fchdir.c: Include <unistd.h> first.
63822         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63824         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63825         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63826         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63827
63828         * lib/dup2.c: Include <unistd.h> first.
63829         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63830         HAVE_DUP2.
63831         * modules/dup2 (Depends-on): Add unistd.
63832         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63833
63834         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63835         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63836         REPLACE_CHOWN. Don't define chown as a macro here.
63837         * modules/chown (Depends-on): Add unistd.
63838         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63839
63840         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63841         Add definition for GL_LINK_WARNING.
63842         (chown, dup2): New declarations.
63843         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63844         link warning.
63845         (ftruncate): New declaration.
63846         (getcwd): New declaration, taken from old getcwd.h.
63847         (getlogin_r): New declaration, taken from old getlogin_r.h.
63848         (readlink): New declaration.
63849         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63850         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63851         (gl_PREREQ_UNISTD): Remove macro.
63852         (gl_UNISTD_MODULE_INDICATOR): New macro.
63853         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63854         many new variables. Don't set UNISTD_H.
63855         * modules/unistd (Description): Change.
63856         (Depends-on): Add link-warning.
63857         (configure.ac): Update.
63858         (Makefile.am): Create unistd.h always. Substitute many new variables
63859         into it.
63860
63861 2007-02-18  Bruno Haible  <bruno@clisp.org>
63862
63863         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63864         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63865         HAVE_GETSUBOPT.
63866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63867         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63868         * lib/getsubopt.h: Remove file.
63869         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63870         (Depends-on): Add stdlib.
63871         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63872         (Includes): Use <stdlib.h> instead of getsubopt.h.
63873         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63874         Set HAVE_GETSUBOPT.
63875         * lib/getsubopt.c: Don't include getsubopt.h.
63876
63877 2007-02-18  Bruno Haible  <bruno@clisp.org>
63878
63879         * modules/fchdir (Depends-on): Add dup2.
63880
63881 2007-02-18  Bruno Haible  <bruno@clisp.org>
63882
63883         * lib/stdlib_.h: Handle glibc's special invocation convention
63884         specially.
63885
63886 2007-02-18  Bruno Haible  <bruno@clisp.org>
63887
63888         * modules/stdlib-tests: New file.
63889         * tests/test-stdlib.c: New file.
63890
63891         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63892         (Depends-on): Add stdlib.
63893         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63894         (Includes): Use <stdlib.h> instead of mkstemp.h.
63895         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63896         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63897         * lib/mkstemp.c: Don't include mkstemp.h.
63898         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63899         * lib/stdlib--.h: Don't include mkstemp.h.
63900
63901         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63902         (Depends-on): Add stdlib.
63903         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63904         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63905         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63906         HAVE_MKDTEMP.
63907         * lib/mkdtemp.c: Don't include mkdtemp.h.
63908         * lib/clean-temp.c: Don't include mkdtemp.h.
63909
63910         * modules/exit (Files): Remove lib/exit.h.
63911         (Depends-on): Add stdlib.
63912         (Makefile.am): Remove lib_SOURCES.
63913         (Include): Use <stdlib.h> instead of exit.h.
63914         * lib/argmatch.c: Don't include exit.h.
63915         * lib/execute.c: Likewise.
63916         * lib/pagealign_alloc.c: Likewise.
63917         * lib/pipe.c: Likewise.
63918         * lib/wait-process.c: Likewise.
63919         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63920         * lib/exitfail.c: Likewise.
63921         * lib/savewd.c: Likewise.
63922         * lib/xsetenv.c: Likewise.
63923
63924         * modules/stdlib: New file.
63925         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63926         and extra comments about mkstemp().
63927         * lib/exit.h: Remove file.
63928         * lib/mkdtemp.h: Remove file.
63929         * lib/mkstemp.h: Remove file.
63930         * m4/stdlib_h.m4: New file.
63931         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63932
63933 2007-02-18  Bruno Haible  <bruno@clisp.org>
63934
63935         * modules/math-tests: New file.
63936         * tests/test-math.c: New file.
63937
63938         * modules/math: New file.
63939         * modules/mathl (Files): Remove lib/mathl.h.
63940         (Depends-on): Add math.
63941         (Makefile.am): Don't mention mathl.h.
63942         (Include): Use <math.h> instead of mathl.h.
63943         * lib/math_.h: New file.
63944         * lib/mathl.h: Remove file.
63945         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63946         mathl.h.
63947         * lib/asinl.c: Likewise.
63948         * lib/atanl.c: Likewise.
63949         * lib/ceill.c: Likewise.
63950         * lib/cosl.c: Likewise.
63951         * lib/expl.c: Likewise.
63952         * lib/floorl.c: Likewise.
63953         * lib/frexpl.c: Likewise.
63954         * lib/ldexpl.c: Likewise.
63955         * lib/logl.c: Likewise.
63956         * lib/sincosl.c: Likewise.
63957         * lib/sinl.c: Likewise.
63958         * lib/sqrtl.c: Likewise.
63959         * lib/tanl.c: Likewise.
63960         * lib/trigl.c: Likewise.
63961         * m4/math_h.m4: New file.
63962         * MODULES.html.sh (Mathematics): Add math.
63963
63964 2007-02-17  Bruno Haible  <bruno@clisp.org>
63965
63966         * modules/wctype-tests: New file.
63967         * tests/test-wctype.c: New file.
63968
63969         * modules/wchar-tests: New file.
63970         * tests/test-wchar.c: New file.
63971
63972         * modules/unistd-tests: New file.
63973         * tests/test-unistd.c: New file.
63974
63975         * modules/time-tests: New file.
63976         * tests/test-time.c: New file.
63977
63978         * modules/sysexits-tests: New file.
63979         * tests/test-sysexits.c: New file.
63980
63981         * modules/sys_time-tests: New file.
63982         * tests/test-sys_time.c: New file.
63983
63984         * modules/sys_stat-tests: New file.
63985         * tests/test-sys_stat.c: New file.
63986
63987         * modules/sys_socket-tests: New file.
63988         * tests/test-sys_socket.c: New file.
63989
63990         * modules/sys_select-tests: New file.
63991         * tests/test-sys_select.c: New file.
63992
63993         * modules/string-tests: New file.
63994         * tests/test-string.c: New file.
63995
63996         * modules/stdbool-tests: New file.
63997         * tests/test-stdbool.c: New file.
63998
63999         * modules/netinet_in-tests: New file.
64000         * tests/test-netinet_in.c: New file.
64001
64002         * modules/inttypes-tests: New file.
64003         * tests/test-inttypes.c: New file.
64004
64005         * modules/fcntl-tests: New file.
64006         * tests/test-fcntl.c: New file.
64007
64008         * modules/byteswap-tests: New file.
64009         * tests/test-byteswap.c: New file.
64010
64011         * modules/arpa_inet-tests: New file.
64012         * tests/test-arpa_inet.c: New file.
64013
64014 2007-02-17  Bruno Haible  <bruno@clisp.org>
64015
64016         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64017         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64018         if the corresponding module is not enabled. Emit link warnings if
64019         the function is used nevertheless.
64020         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64021         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64022         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64023         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64024         * modules/inttypes (Depends-on): Add link-warning.
64025         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64026         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64027         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64028         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64029         * modules/imaxdiv (configure.ac): Likewise.
64030         * modules/strtoimax (configure.ac): Likewise.
64031         * modules/strtoumax (configure.ac): Likewise.
64032
64033 2007-02-17  Bruno Haible  <bruno@clisp.org>
64034
64035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64036         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64037         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64038         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64039
64040 2007-02-17  Bruno Haible  <bruno@clisp.org>
64041
64042         * modules/link-warning: New file.
64043         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64044         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64045         * modules/string (Depends-on): Add link-warning.
64046         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64047         string.h.
64048         * MODULES.html.sh (Support for building libraries and executables): Add
64049         link-warning.
64050
64051 2007-02-17  Bruno Haible  <bruno@clisp.org>
64052
64053         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64054         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64055         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64056         long lines.
64057
64058 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64059             Bruno Haible  <bruno@clisp.org>
64060
64061         * modules/tmpfile: New file.
64062         * lib/tmpfile.c: New file.
64063         * m4/tmpfile.m4: New file.
64064         * MODULES.html.sh (func_all_modules): New section "Input/output".
64065
64066 2007-02-15  Bruno Haible  <bruno@clisp.org>
64067
64068         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64069         (supports_delete_on_close): New function.
64070         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64071
64072 2007-02-14  Bruno Haible  <bruno@clisp.org>
64073
64074         * modules/mbspcasecmp-tests: New file.
64075         * tests/test-mbspcasecmp.sh: New file.
64076         * tests/test-mbspcasecmp.c: New file.
64077
64078         New module mbspcasecmp.
64079         * modules/mbspcasecmp: New file.
64080         * lib/mbspcasecmp.c: New file.
64081         * lib/string_.h (strncasecmp): Change warning message.
64082         (mbspcasecmp): New declaration.
64083         * m4/mbspcasecmp.m4: New file.
64084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64085         GNULIB_MBSPCASECMP.
64086         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64087         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64088
64089 2007-02-14  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/mbsncasecmp-tests: New file.
64092         * tests/test-mbsncasecmp.sh: New file.
64093         * tests/test-mbsncasecmp.c: New file.
64094
64095         New module mbsncasecmp.
64096         * modules/mbsncasecmp: New file.
64097         * lib/mbsncasecmp.c: New file.
64098         * lib/string_.h (mbsncasecmp): New declaration.
64099         * m4/mbsncasecmp.m4: New file.
64100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64101         GNULIB_MBSNCASECMP.
64102         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64103         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64104
64105 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64108         Verify that it doesn't overlap with our flags.
64109         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64110         do not have the desired effect in multibyte locales; instead, use
64111         mbscasecmp.
64112         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64113         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64114         we don't require GNU fnmatch ourselves (if our users require it, they
64115         should do so explicitly).
64116
64117         Fix regex code so it doesn't rely on strcasecmp.
64118         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64119         Otherwise, include gnulib's langinfo.h.
64120         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64121         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64122         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64123         * modules/regex (FILES): Remove m4/codeset.m4.
64124         (Depends-on): Add localcharset.  Remove strcase.
64125
64126 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64127
64128         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64129         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64130
64131 2007-02-13  Bruno Haible  <bruno@clisp.org>
64132
64133         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64134         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64135
64136 2007-02-12  Bruno Haible  <bruno@clisp.org>
64137
64138         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64139         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64140         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64141         time warning rather than a link error.
64142
64143 2007-02-12  Bruno Haible  <bruno@clisp.org>
64144
64145         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64146         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64148
64149 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64150
64151         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64152         args, not 2.
64153
64154 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64155
64156         New module 'time', so that apps can include <time.h> as per
64157         POSIX and GNU instead of separate include files like time_r.h
64158         and timegm.h.  This implementation tries out a simpler approach
64159         for replacing decls in standard include files (as compared to
64160         the string module), somewhat as an experiment.
64161
64162         * config/srclist.txt: Comment out mktime.c for now.
64163         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64164         since it doesn't apply any more.  Use generic wording instead.
64165         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64166         'time'.
64167         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64168         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64169         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64170         Don't include <sys/types.h>; no longer needed since we assume C89.
64171         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64172         * lib/strftime.c: Likewise.
64173         * lib/time_r.c: Likewise.
64174         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64175         * lib/nanosleep.c: Include <time.h> first, to check interface.
64176         * lib/strptime.c: Likewise.
64177         * lib/time_r.c: Likewise.
64178         * lib/timegm.c: Likewise.
64179         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64180         needed.
64181         * lib/timegm.c: Don't include timegm.h; no longer needed.
64182         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64183         time.h now handles any problems in that area.
64184         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64185         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64186         that time.h defines struct timespec.
64187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64188         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64189         handles that.
64190         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64191         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64192         needed.  Set REPLACE_LOCALTIME.
64193         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64194         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64195         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64196         nanosleep; time_h.m4 now does that.  Don't require
64197         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64198         module handles this now.
64199         * modules/getdate (Depends-on): Remove timespec.  Add time.
64200         * modules/nanosleep (Depends-on): Likewise.
64201         * modules/stat-time (Depends-on): Likewise.
64202         * modules/nanosleep (Include): Include time.h, not timespec.h.
64203         * modules/strptime (Files): Remove lib/strptime.h.
64204         (Depends-on): Add extensions, time.
64205         (Include): Include time.h, not strptime.h.
64206         * modules/time_r (Files): Remove lib/time_r.h.
64207         (Depends-on): Add time.
64208         (Include): Include time.h, not time_r.h.
64209         * modules/timegm: Likewise.
64210         * modules/timespec (Description): Now does timespec-related decls
64211         of our own, instead of struct timespec itself.
64212         (Depends-on): Add time; remove extensions.
64213         (Maintainer): Add self.
64214         * modules/utimecmp (Depends-on): Add time; remove timespec.
64215         * modules/utimens (Depends-on): Likewise.
64216         * modules/xnanosleep (Depends-on): Likewise.
64217
64218 2007-02-11  Bruno Haible  <bruno@clisp.org>
64219
64220         * lib/c-strstr.c: Include allocsa.h.
64221         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64222         * lib/c-strcasestr.c: Include allocsa.h.
64223         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64224         * lib/strcasestr.c: Include allocsa.h.
64225         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64226         * lib/mbsstr.c: Include allocsa.h.
64227         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64228         allocsa/freesa instead of malloc/free.
64229         * lib/mbscasestr.c: Include allocsa.h.
64230         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64231         allocsa/freesa instead of malloc/free.
64232         * modules/c-strstr (Depends-on): Add allocsa.
64233         * modules/c-strcasestr (Depends-on): Likewise.
64234         * modules/strcasestr (Depends-on): Likewise.
64235         * modules/mbsstr (Depends-on): Likewise.
64236         * modules/mbscasestr (Depends-on): Likewise.
64237
64238 2007-02-11  Bruno Haible  <bruno@clisp.org>
64239
64240         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64241
64242         * modules/mbsspn-tests: New file.
64243         * tests/test-mbsspn.sh: New file.
64244         * tests/test-mbsspn.c: New file.
64245
64246 2007-02-11  Bruno Haible  <bruno@clisp.org>
64247
64248         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64249
64250         * modules/mbspbrk-tests: New file.
64251         * tests/test-mbspbrk.sh: New file.
64252         * tests/test-mbspbrk.c: New file.
64253
64254 2007-02-11  Bruno Haible  <bruno@clisp.org>
64255
64256         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64257         unneeded cast.
64258
64259         * modules/mbscspn-tests: New file.
64260         * tests/test-mbscspn.sh: New file.
64261         * tests/test-mbscspn.c: New file.
64262
64263 2007-02-11  Bruno Haible  <bruno@clisp.org>
64264
64265         * modules/mbscasecmp-tests: New file.
64266         * tests/test-mbscasecmp.sh: New file.
64267         * tests/test-mbscasecmp.c: New file.
64268
64269 2007-02-11  Bruno Haible  <bruno@clisp.org>
64270
64271         Ensure O(n) worst-case complexity of mbscasestr.
64272         * lib/mbscasestr.c: Include stdbool.h.
64273         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64274         functions.
64275         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64276         the bookkeeping indicates that it's worth it.
64277         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64278
64279         * modules/mbscasestr-tests: New file.
64280         * tests/test-mbscasestr1.c: New file.
64281         * tests/test-mbscasestr2.sh: New file.
64282         * tests/test-mbscasestr2.c: New file.
64283         * tests/test-mbscasestr3.sh: New file.
64284         * tests/test-mbscasestr3.c: New file.
64285         * tests/test-mbscasestr4.sh: New file.
64286         * tests/test-mbscasestr4.c: New file.
64287         * m4/locale-tr.m4: New file.
64288
64289 2007-02-11  Bruno Haible  <bruno@clisp.org>
64290
64291         Ensure O(n) worst-case complexity of mbsstr.
64292         * lib/mbsstr.c: Include stdbool.h.
64293         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64294         functions.
64295         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64296         bookkeeping indicates that it's worth it.
64297         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64298
64299         * modules/mbsstr-tests: New file.
64300         * tests/test-mbsstr1.c: New file.
64301         * tests/test-mbsstr2.sh: New file.
64302         * tests/test-mbsstr2.c: New file.
64303         * tests/test-mbsstr3.sh: New file.
64304         * tests/test-mbsstr3.c: New file.
64305         * m4/locale-fr.m4: New file.
64306
64307 2007-02-11  Bruno Haible  <bruno@clisp.org>
64308
64309         * lib/mbsrchr.c (mbsrchr): Fix bug.
64310
64311         * modules/mbsrchr-tests: New file.
64312         * tests/test-mbsrchr.sh: New file.
64313         * tests/test-mbsrchr.c: New file.
64314
64315 2007-02-11  Bruno Haible  <bruno@clisp.org>
64316
64317         * lib/mbschr.c (mbschr): Fix bug.
64318
64319         * modules/mbschr-tests: New file.
64320         * tests/test-mbschr.sh: New file.
64321         * tests/test-mbschr.c: New file.
64322         * m4/locale-zh.m4: New file.
64323
64324 2007-02-11  Bruno Haible  <bruno@clisp.org>
64325
64326         Support for copying multibyte string iterators.
64327         * lib/mbiter.h: Include <string.h>.
64328         (mbiter_multi_copy): New function.
64329         (mbi_copy): New macro.
64330         * lib/mbuiter.h: Include <string.h>.
64331         (mbuiter_multi_copy): New function.
64332         (mbui_copy): New macro.
64333
64334 2007-02-11  Bruno Haible  <bruno@clisp.org>
64335
64336         New module mbslen.
64337         * modules/mbslen: New file.
64338         * lib/mbslen.c: New file.
64339         * lib/string_.h (mbslen): New declaration.
64340         * m4/mbslen.m4: New file.
64341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64342         GNULIB_MBSLEN.
64343         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64344         * MODULES.html.sh (Internationalization functions): Add mbslen.
64345
64346 2007-02-11  Bruno Haible  <bruno@clisp.org>
64347
64348         Ensure O(n) worst-case complexity of strcasestr substitute.
64349         * lib/strcasestr.c: Include stdbool.h.
64350         (knuth_morris_pratt): New function.
64351         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64352         bookkeeping indicates that it's worth it.
64353         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64354
64355         * modules/strcasestr-tests: New file.
64356         * tests/test-strcasestr.c: New file.
64357
64358 2007-02-11  Bruno Haible  <bruno@clisp.org>
64359
64360         Ensure O(n) worst-case complexity of c_strcasestr.
64361         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64362         (knuth_morris_pratt): New function.
64363         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64364         the bookkeeping indicates that it's worth it.
64365         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64366
64367         * modules/c-strcasestr-tests: New file.
64368         * tests/test-c-strcasestr.c: New file.
64369
64370 2007-02-11  Bruno Haible  <bruno@clisp.org>
64371
64372         Ensure O(n) worst-case complexity of c_strstr.
64373         * lib/c-strstr.c: Include stdbool.h, string.h.
64374         (knuth_morris_pratt): New function.
64375         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64376         bookkeeping indicates that it's worth it.
64377         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64378
64379         * lib/c-strstr.c: Complete rewrite for maintainability.
64380
64381         * modules/c-strstr-tests: New file.
64382         * tests/test-c-strstr.c: New file.
64383
64384 2007-02-11  Bruno Haible  <bruno@clisp.org>
64385
64386         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64387         5.2.1 and earlier, whereby \055 was treated just like the range
64388         delimiter '-'.
64389         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64390
64391 2007-02-08  Bruno Haible  <bruno@clisp.org>
64392
64393         * modules/regex (Depends-on): Add stdbool.
64394         Reported by Dalibor Topic <robilad@kaffe.org>.
64395
64396 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64397
64398         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64399         Prefer returning from main to exiting from it.
64400         Remove unnecessary parens after sizeof.
64401
64402 2007-02-05  Bruno Haible  <bruno@clisp.org>
64403
64404         New module mbssep.
64405         * modules/mbssep: New file.
64406         * lib/mbssep.c: New file.
64407         * lib/string_.h (strsep): Add a conditional link warning.
64408         (mbssep): New declaration.
64409         * m4/mbssep.m4: New file.
64410         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64411         GNULIB_MBSSEP.
64412         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64413         * MODULES.html.sh (Internationalization functions): Add mbssep.
64414
64415 2007-02-05  Bruno Haible  <bruno@clisp.org>
64416
64417         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64418         Optimize search in case of 1 delimiter.
64419
64420 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64421
64422         * lib/acl.h: Include sys/types.h before sys/acl.h.
64423
64424 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64425
64426         Merge upstream fix for glibc bugzilla #3957:
64427
64428         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64429
64430         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64431         bit for RE_HAT_LISTS_NOT_NEWLINE.
64432         (build_charclass_op): Remove bogus comment.
64433
64434 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64435
64436         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64437
64438 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64439
64440         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64441         * lib/memmem.c [!defined _LIBC]: Include config.h.
64442
64443 2007-02-04  Bruno Haible  <bruno@clisp.org>
64444
64445         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64446         warning message.
64447
64448 2007-02-04  Bruno Haible  <bruno@clisp.org>
64449
64450         New module mbstok_r.
64451         * modules/mbstok_r: New file.
64452         * lib/mbstok_r.c: New file.
64453         * lib/string_.h (strtok_r): Change argument names to match the
64454         comments. Add a conditional link warning.
64455         (mbstok_r): New declaration.
64456         * m4/mbstok_r.m4: New file.
64457         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64458         GNULIB_MBSTOK_R.
64459         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64460         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64461
64462 2007-02-04  Bruno Haible  <bruno@clisp.org>
64463
64464         New module mbsspn.
64465         * modules/mbsspn: New file.
64466         * lib/mbsspn.c: New file.
64467         * lib/string_.h (strspn): Add a conditional link warning.
64468         (mbsspn): New declaration.
64469         * m4/mbsspn.m4: New file.
64470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64471         GNULIB_MBSSPN.
64472         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64473         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64474
64475 2007-02-04  Bruno Haible  <bruno@clisp.org>
64476
64477         New module mbspbrk.
64478         * modules/mbspbrk: New file.
64479         * lib/mbspbrk.c: New file.
64480         * lib/string_.h (strpbrk): Add a conditional link warning.
64481         (mbspbrk): New declaration.
64482         * m4/mbspbrk.m4: New file.
64483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64484         GNULIB_MBSPBRK.
64485         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64486         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64487
64488 2007-02-04  Bruno Haible  <bruno@clisp.org>
64489
64490         New module mbscspn.
64491         * modules/mbscspn: New file.
64492         * lib/mbscspn.c: New file.
64493         * lib/string_.h (strcspn): Add a conditional link warning.
64494         (mbscspn): New declaration.
64495         * m4/mbscspn.m4: New file.
64496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64497         GNULIB_MBSCSPN.
64498         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64499         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64500
64501 2007-02-04  Bruno Haible  <bruno@clisp.org>
64502
64503         New module mbscasestr, reduced goal of strcasestr.
64504         * modules/mbscasestr: New file.
64505         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64506         (mbscasestr): Renamed from strcasestr.
64507         * lib/strcasestr.c: Don't include mbuiter.h.
64508         (strcasestr): Remove support for multibyte locales.
64509         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64510         Change the conditional link warning.
64511         (mbscasestr): New declaration.
64512         * m4/mbscasestr.m4: New file.
64513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64514         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64515         REPLACE_STRCASESTR.
64516         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64518         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64519         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64520         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64521         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64522         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64523         (Depends-on): Remove mbuiter.
64524         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64525
64526 2007-02-04  Bruno Haible  <bruno@clisp.org>
64527
64528         Simplify handling of strncasecmp.
64529         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64530         the conditional link warning.
64531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64532         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64533         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64534         * modules/strcase (configure.ac): Don't invoke
64535         gl_STRING_MODULE_INDICATOR.
64536         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64537
64538 2007-02-04  Bruno Haible  <bruno@clisp.org>
64539
64540         New module mbscasecmp, reduced goal of strcasecmp.
64541         * modules/mbscasecmp: New file.
64542         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64543         (mbscasecmp): Renamed from strcasecmp.
64544         * lib/strcasecmp.c: Don't include mbuiter.h.
64545         (strcasecmp): Remove support for multibyte locales.
64546         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64547         Change the conditional link warning.
64548         (mbscasecmp): New declaration.
64549         * m4/mbscasecmp.m4: New file.
64550         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64551         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64552         REPLACE_STRCASECMP.
64553         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64555         GNULIB_MBSCASECMP.
64556         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64557         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64558         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64559         (Depends-on): Remove mbuiter.
64560         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64561
64562 2007-02-04  Bruno Haible  <bruno@clisp.org>
64563
64564         New module mbsstr. Remove module strstr.
64565         * modules/mbsstr: New file.
64566         * modules/strstr: Remove file.
64567         * lib/mbsstr.c: Renamed from lib/strstr.c.
64568         (mbsstr): Renamed from strstr.
64569         * lib/string_.h (strstr): Remove declaration. Change the conditional
64570         link warning.
64571         (mbsstr): New declaration.
64572         * m4/mbsstr.m4: New file.
64573         * m4/strstr.m4: Remove file.
64574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64575         REPLACE_STRSTR.
64576         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64577         Don't initialize GNULIB_STRSTR.
64578         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64579         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64580         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64581         (Support for systems lacking ANSI C 89): Remove strstr.
64582
64583 2007-02-04  Bruno Haible  <bruno@clisp.org>
64584
64585         New module mbsrchr.
64586         * modules/mbsrchr: New file.
64587         * lib/mbsrchr.c: New file.
64588         * lib/string_.h (strrchr): Add a conditional link warning.
64589         (mbsrchr): New declaration.
64590         * m4/mbsrchr.m4: New file.
64591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64592         GNULIB_MBSRCHR.
64593         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64594         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64595
64596 2007-02-04  Bruno Haible  <bruno@clisp.org>
64597
64598         New module mbschr.
64599         * modules/mbschr: New file.
64600         * lib/mbschr.c: New file.
64601         * lib/string_.h (strchr): Add a conditional link warning.
64602         (mbschr): New declaration.
64603         * m4/mbschr.m4: New file.
64604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64605         GNULIB_MBSCHR.
64606         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64607         * MODULES.html.sh (Internationalization functions): Add mbschr.
64608
64609 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64610
64611         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64612
64613         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64614
64615 2007-02-04  Bruno Haible  <bruno@clisp.org>
64616
64617         New module description section 'configure.ac-early'.
64618         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64619         (func_get_autoconf_early_snippet): New function.
64620         (func_import, func_create_testdir): Use it. Remove special cases for
64621         modules 'extensions' and 'lock'.
64622         * modules/extensions (configure.ac-early): Require
64623         gl_USE_SYSTEM_EXTENSIONS.
64624         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64625
64626 2007-02-04  Bruno Haible  <bruno@clisp.org>
64627
64628         Make use of gcj-4.3's -fsource and -ftarget option.
64629         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64630         and if so try the options -fsource and -ftarget.
64631         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64632         source_version, ftarget_option, target_version arguments.
64633         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64634         (is_envjavac_oldgcj_14_14_usable): Renamed from
64635         is_envjavac_gcj_14_14_usable.
64636         (is_envjavac_oldgcj_14_13_usable): Renamed from
64637         is_envjavac_gcj_14_13_usable.
64638         (is_gcj_present): Update.
64639         (is_gcj_43, is_gcj43_usable): New functions.
64640         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64641         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64642         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64643         try the options -fsource and -ftarget.
64644
64645 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64648         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64649         larger value.
64650
64651 2007-02-03  Jim Meyering  <jim@meyering.net>
64652
64653         Give tools a better chance to allocate space for very large buffers.
64654         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64655
64656         Make pwd and readlink work also when run with an unreadable parent dir
64657         on systems with openat support.
64658         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64659         provided getcwd function, even when we have openat support.
64660         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64661
64662 2007-02-02  Bruno Haible  <bruno@clisp.org>
64663
64664         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64665         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64666         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64667         portability problems if one of these functions is only used on specific
64668         platforms.
64669         Reported by Paul Eggert.
64670
64671 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64672
64673         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64674         is causing more trouble than it's curing.
64675         * lib/regex_internal.h (__mempcpy): Remove.
64676         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64677         (and make the code a tad smaller to boot).
64678         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64679
64680 2007-02-02  Jim Meyering  <jim@meyering.net>
64681
64682         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64683         section, not in the Makefile.am: one.
64684
64685 2007-02-02  Eric Blake  <ebb9@byu.net>
64686
64687         * lib/strchrnul.c: Always include config.h first.
64688
64689         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64690         gnulib strstr is not necessary here.
64691
64692 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64693
64694         * m4/socklen.m4: Fix typo.
64695
64696 2007-02-02  Eric Blake  <ebb9@byu.net>
64697
64698         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64699         * modules/netinet_in (Makefile.am): Likewise.
64700
64701 2007-02-01  Bruno Haible  <bruno@clisp.org>
64702
64703         * lib/string_.h (GL_LINK_WARNING): New macro.
64704         (strcasecmp, strstr, strcasestr): If provided by the system,
64705         conditionally define as a macro that leads to a warning instead of to
64706         an error.
64707         (strncasecmp): Conditionally define as a macro that leads to a warning.
64708
64709 2007-02-01  Karl Berry  <karl@gnu.org>
64710
64711         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64712
64713 2007-02-01  Bruno Haible  <bruno@clisp.org>
64714
64715         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64716         renamings.
64717
64718 2007-02-01  Eric Blake  <ebb9@byu.net>
64719
64720         * modules/regex (Depends-on): Revert dependence on mempcpy.
64721         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64722         module's definition of mempcpy.
64723         Reported by Paul Eggert.
64724
64725 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64726
64727         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64728         the symbol XYZ before redefining it.  This fixes a problem with
64729         programs that don't use XYZ, when compiled on systems that define
64730         XYZ to something else.
64731
64732 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64733
64734         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64735         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64736         writeable to group or other and (2) is intended to have a special
64737         mode bit that is set or cleared.  In such a case, the directory
64738         should be neither group- nor other-writeable until the special
64739         mode bits are right.
64740
64741 2007-01-31  Eric Blake  <ebb9@byu.net>
64742
64743         * modules/mountlist (Depends-on): Add strstr.
64744
64745         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64746         bug.
64747         * modules/string (Makefile.am): Remove redundant replacement.
64748         * modules/regex (Depends-on): Add mempcpy.
64749
64750 2007-01-31  Bruno Haible  <bruno@clisp.org>
64751
64752         New module description field 'Link'.
64753         * gnulib-tool (func_usage): Document --extract-link-directive.
64754         (sed_extract_prog): Recognize 'Link' directive.
64755         (func_get_link_directive): New function.
64756         (func_import): Show summary of link directives.
64757         Handle --extract-link-directive option.
64758         * modules/acl (Link): New section.
64759         * modules/clock-time (Link): New section.
64760         * modules/euidaccess (Link): New section.
64761         * modules/gettext (Link): New section.
64762         * modules/iconv (Link): New section.
64763         * modules/lock (Link): New section.
64764         * modules/nanosleep (Link): New section.
64765         * modules/readline (Link): New section.
64766
64767 2007-01-27  Bruno Haible  <bruno@clisp.org>
64768
64769         Enforce the use of gnulib modules for unportable <string.h> functions.
64770         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64771         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64772         (gl_HEADER_STRING_H_BODY): Require it.
64773         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64774         the symbol XYZ to one that gives a link error.
64775         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64776         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64777         * modules/mempcpy (configure.ac): Likewise.
64778         * modules/memrchr (configure.ac): Likewise.
64779         * modules/stpcpy (configure.ac): Likewise.
64780         * modules/stpncpy (configure.ac): Likewise.
64781         * modules/strcase (configure.ac): Likewise.
64782         * modules/strcasestr (configure.ac): Likewise.
64783         * modules/strchrnul (configure.ac): Likewise.
64784         * modules/strdup (configure.ac): Likewise.
64785         * modules/strndup (configure.ac): Likewise.
64786         * modules/strnlen (configure.ac): Likewise.
64787         * modules/strpbrk (configure.ac): Likewise.
64788         * modules/strsep (configure.ac): Likewise.
64789         * modules/strstr (configure.ac): Likewise.
64790         * modules/strtok_r (configure.ac): Likewise.
64791
64792 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64793
64794         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64795
64796 2007-01-30  Jim Meyering  <jim@meyering.net>
64797
64798         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64799
64800 2007-01-29  Bruno Haible  <bruno@clisp.org>
64801
64802         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64803         * lib/execute.c: Likewise.
64804         * lib/pipe.c: Likewise.
64805         * lib/printf-args.h: Likewise.
64806         * lib/printf-args.c: Likewise.
64807         * lib/printf-parse.c: Likewise.
64808         * lib/vasnprintf.c: Likewise.
64809
64810 2007-01-29  Eric Blake  <ebb9@byu.net>
64811
64812         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64813         declaration.
64814
64815 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64816
64817         * lib/strptime.h (strptime): Use 'restrict' for args where
64818         POSIX requires this.
64819         * lib/strptime.c (strptime): Likewise.
64820         Change license notice from LGPL to GPL, since gnulib-tool will
64821         change this as needed.
64822         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64823         defined.
64824         Include "strptime.h" first, to check interface.
64825         Do not #undef _LIBC and _NL_CURRENT.
64826         Do not include <stdlib.h>; no longer needed.
64827         Include "time_r.h" and declare ptime_locale_status
64828         only if _LIBC is not defined.
64829         (__P): Remove unused macro.
64830         (match_string): Bring back glibc version, but use it only if _LIBC
64831         is defined.
64832         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64833         Remove unnecessary assertion and abort() call.
64834         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64835         * m4/strptime.m4: Fix serial number comment.
64836         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64837         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64838         (Depends-on): Add time_r.
64839
64840 2007-01-29  Bruno Haible  <bruno@clisp.org>
64841
64842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64843         strptime.
64844         * modules/strptime (Depends-on): Add stdbool.
64845         * lib/strptime.h: Include <time.h> always. Add comments.
64846
64847 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64848
64849         * modules/strptime: New file.
64850         * lib/strptime.h: New file.
64851         * lib/strptime.c: New file.
64852         * m4/strptime.m4: New file.
64853
64854 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64855
64856         * MODULES.html.sh: New module mpsort.
64857         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64858
64859         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64860         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64862         All uses changed.
64863         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64864         All uses changed.
64865         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64866         to _Restrict_.
64867         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64868         the parameter matches the prototype.
64869
64870 2007-01-28  Jim Meyering  <jim@meyering.net>
64871
64872         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64873         sys/time.h here, reverting that part of the previous patch:
64874         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64875
64876 2007-01-28  Bruno Haible  <bruno@clisp.org>
64877
64878         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64879         value of $(SYS_TIME_H).
64880         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64881         remove it conditionally, too. [added by Jim Meyering]
64882         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64883         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64884         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64885         GETTIMEOFDAY_REPLACEMENT to 1.
64886
64887 2007-01-28  Bruno Haible  <bruno@clisp.org>
64888
64889         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64890         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64892         Set UNISTD_H instead of UNISTD_H2.
64893         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64894
64895 2007-01-28  Bruno Haible  <bruno@clisp.org>
64896
64897         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64898         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64899
64900 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64901
64902         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64903         (func_create_testdir): Ensure C locale for `grep' and `tr'
64904         character ranges.
64905         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64906         ACLOCAL_AMFLAGS parsing state machine.
64907
64908 2007-01-27  Bruno Haible  <bruno@clisp.org>
64909
64910         * modules/unistr/base: Update.
64911
64912 2007-01-27  Bruno Haible  <bruno@clisp.org>
64913
64914         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64915         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64916         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64917         modules/unistr/u32-mbtouc.
64918         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64919         * lib/unistr.h: Update.
64920         * lib/linebreak.c: Update.
64921         * modules/unistr/u32-mbtouc: Renamed from
64922         modules/unistr/u32-mbtouc-safe.
64923         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64924         * lib/unistr.h: Update.
64925         * lib/unistr/u32-to-u8.c: Update.
64926         * lib/unistr/u32-to-u16.c: Update.
64927
64928 2007-01-27  Bruno Haible  <bruno@clisp.org>
64929
64930         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64931         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64932         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64933         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64934         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64935         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64936         modules/unistr/u16-mbtouc.
64937         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64938         * lib/unistr.h: Update.
64939         * lib/linebreak.c: Update.
64940         * modules/linebreak: Update.
64941         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64942         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64943         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64944         * modules/unistr/u16-mbtouc: Renamed from
64945         modules/unistr/u16-mbtouc-safe.
64946         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64947         * lib/unistr.h: Update.
64948         * lib/unistr/u16-to-u8.c: Update.
64949         * modules/unistr/u16-to-u8: Update.
64950         * lib/unistr/u16-to-u32.c: Update.
64951         * modules/unistr/u16-to-u32: Update.
64952
64953 2007-01-27  Bruno Haible  <bruno@clisp.org>
64954
64955         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64956         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64957         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64958         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64959         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64960         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64961         modules/unistr/u8-mbtouc.
64962         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64963         * lib/unistr.h: Update.
64964         * lib/striconveh.c: Update.
64965         * modules/striconveh: Update.
64966         * lib/linebreak.c: Update.
64967         * modules/linebreak: Update.
64968         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64969         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64970         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64971         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64972         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64973         * lib/unistr.h: Update.
64974         * lib/striconveh.c: Update.
64975         * modules/striconveh: Update.
64976         * lib/unistr/u8-to-u16.c: Update.
64977         * modules/unistr/u8-to-u16: Update.
64978         * lib/unistr/u8-to-u32.c: Update.
64979         * modules/unistr/u8-to-u32: Update.
64980
64981 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64982
64983         Sync from Libtool.
64984         * lib/argz.c: Do not include strings.h nor memory.h, include
64985         string.h unconditionally.  Patch by Simon Josefsson.
64986
64987 2007-01-27  Bruno Haible  <bruno@clisp.org>
64988
64989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64990         from gl_HEADER_STRING_H_BODY.
64991         (gl_HEADER_STRING_H_BODY): Require it.
64992         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64993         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64994         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64995         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64996         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64997         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64999         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65000         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65001         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65002         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65003         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65004         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65005         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65006         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65007
65008 2007-01-27  Bruno Haible  <bruno@clisp.org>
65009
65010         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65011         check_PROGRAMS into noinst_PROGRAMS.
65012         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65013         check_PROGRAMS in this case.
65014         (func_import): Set for_test to false.
65015         (func_create_testdir): Set for_test to true.
65016
65017 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65018             Bruno Haible  <bruno@clisp.org>
65019
65020         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65021         (Depends-on): Add string.
65022         (Includes): Use <string.h> instead of strcasestr.h.
65023         * modules/string (Makefile.am): Also substitute the value of
65024         REPLACE_STRCASESTR.
65025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65026         assume strcasestr is declared in <string.h> not <strings.h>. Also
65027         set REPLACE_STRCASESTR.
65028         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65029         REPLACE_STRCASESTR.
65030         * lib/strcasestr.h: Remove file.
65031         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65032         * lib/string_.h (strcasestr): New declaration.
65033
65034 2007-01-27  Bruno Haible  <bruno@clisp.org>
65035
65036         * lib/string_.h: Use 'extern'.
65037
65038 2007-01-27  Jim Meyering  <jim@meyering.net>
65039
65040         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65041         of set-but-not-used local, "q".
65042
65043         * lib/mempcpy.c: Include <config.h> before <string.h>.
65044         This fixes a compilation error on HP-UX, due to the system's
65045         "restrict"-using mempcpy prototype.
65046
65047 2007-01-26  Bruno Haible  <bruno@clisp.org>
65048
65049         Small optimization.
65050         * lib/javacomp.c: Include c-strstr.h.
65051          (is_envjavac_gcj): Use c_strstr instead of strstr.
65052         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65053
65054 2007-01-26  Bruno Haible  <bruno@clisp.org>
65055
65056         * MODULES.html.sh (Unicode string functions): Add the new modules.
65057
65058         * modules/uniconv/u32-strconv-to-locale: New file.
65059         * lib/uniconv/u32-strconv-to-locale.c: New file.
65060
65061         * modules/uniconv/u16-strconv-to-locale: New file.
65062         * lib/uniconv/u16-strconv-to-locale.c: New file.
65063
65064         * modules/uniconv/u8-strconv-to-locale: New file.
65065         * lib/uniconv/u8-strconv-to-locale.c: New file.
65066
65067         * modules/uniconv/u32-strconv-from-locale: New file.
65068         * lib/uniconv/u32-strconv-from-locale.c: New file.
65069
65070         * modules/uniconv/u16-strconv-from-locale: New file.
65071         * lib/uniconv/u16-strconv-from-locale.c: New file.
65072
65073         * modules/uniconv/u8-strconv-from-locale: New file.
65074         * lib/uniconv/u8-strconv-from-locale.c: New file.
65075
65076         * modules/uniconv/u32-strconv-to-enc: New file.
65077         * lib/uniconv/u32-strconv-to-enc.c: New file.
65078         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65079         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65080
65081         * modules/uniconv/u16-strconv-to-enc: New file.
65082         * lib/uniconv/u16-strconv-to-enc.c: New file.
65083         * lib/uniconv/u-strconv-to-enc.h: New file.
65084         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65085         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65086
65087         * modules/uniconv/u8-strconv-to-enc: New file.
65088         * lib/uniconv/u8-strconv-to-enc.c: New file.
65089         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65090         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65091
65092         * modules/uniconv/u32-strconv-from-enc: New file.
65093         * lib/uniconv/u32-strconv-from-enc.c: New file.
65094         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65095         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65096
65097         * modules/uniconv/u16-strconv-from-enc: New file.
65098         * lib/uniconv/u16-strconv-from-enc.c: New file.
65099         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65100         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65101
65102         * modules/uniconv/u8-strconv-from-enc: New file.
65103         * lib/uniconv/u8-strconv-from-enc.c: New file.
65104         * lib/uniconv/u-strconv-from-enc.h: New file.
65105         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65106         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65107
65108         * modules/uniconv/u32-conv-from-enc: New file.
65109         * lib/uniconv/u32-conv-from-enc.c: New file.
65110         * modules/uniconv/u32-conv-from-enc-tests: New file.
65111         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65112
65113         * modules/uniconv/u16-conv-from-enc: New file.
65114         * lib/uniconv/u16-conv-from-enc.c: New file.
65115         * lib/uniconv/u-conv-from-enc.h: New file.
65116         * modules/uniconv/u16-conv-from-enc-tests: New file.
65117         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65118
65119         * modules/uniconv/u8-conv-from-enc: New file.
65120         * lib/uniconv/u8-conv-from-enc.c: New file.
65121         * modules/uniconv/u8-conv-from-enc-tests: New file.
65122         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65123
65124         * modules/uniconv/base: New file.
65125         * lib/uniconv.h: New file.
65126
65127 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65128
65129         * doc/gnulib-tool.texi (Initial import): Update to match current
65130         behavior with strdup module.
65131         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65132         * lib/memmem.h: Remove; all uses removed.  This is now done
65133         by <string.h>.
65134         * lib/mempcpy.h: Likewise.
65135         * lib/memrchr.h: Likewise.
65136         * lib/stpcpy.h: Likewise.
65137         * lib/stpncpy.h: Likewise.
65138         * lib/strcase.h: Likewise.
65139         * lib/strchrnul.h: Likewise.
65140         * lib/strdup.h: Likewise.
65141         * lib/strndup.h: Likewise.
65142         * lib/strnlen.h: Likewise.
65143         * lib/strpbrk.h: Likewise.
65144         * lib/strsep.h: Likewise.
65145         * lib/strstr.h: Likewise.
65146         * lib/strtok_r.h: Likewise.
65147         * lib/string_.h: New file.
65148         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65149         Rely on <string.h> instead.
65150         * lib/canon-host.c: Likewise.
65151         * lib/chdir-long.c: Likewise.
65152         * lib/concatpath.c: Likewise.
65153         * lib/exclude.c: Likewise.
65154         * lib/fchdir.c: Likewise.
65155         * lib/getaddrinfo.c: Likewise.
65156         * lib/getcwd.c: Likewise.
65157         * lib/getsubopt.c: Likewise.
65158         * lib/glob.c: Likewise.
65159         * lib/hard-locale.c: Likewise.
65160         * lib/iconvme.c: Likewise.
65161         * lib/javacomp.c: Likewise.
65162         * lib/mempcpy.c: Likewise.
65163         * lib/memrchr.c: Likewise.
65164         * lib/regex_internal.h: Likewise.
65165         * lib/stpncpy.c: Likewise.
65166         * lib/strcasecmp.c: Likewise.
65167         * lib/strchrnul.c: Likewise.
65168         * lib/strdup.c: Likewise.
65169         * lib/striconv.c: Likewise.
65170         * lib/striconveh.c: Likewise.
65171         * lib/striconveha.c: Likewise.
65172         * lib/strncasecmp.c: Likewise.
65173         * lib/strndup.c: Likewise.
65174         * lib/strnlen.c: Likewise.
65175         * lib/strsep.c: Likewise.
65176         * lib/strstr.c: Likewise.
65177         * lib/strtok_r.c: Likewise.
65178         * lib/userspec.c: Likewise.
65179         * lib/w32spawn.h: Likewise.
65180         * lib/xstrndup.c: Likewise.
65181         * lib/mountlist.c (strstr): Remove decl.
65182         * m4/string_h.m4: New file.
65183         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65184         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65185         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65186         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65187         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65188         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65189         Set REPLACE_STRCASECMP if necessary.
65190         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65191         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65192         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65193         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65194         HAVE_DECL_STRDUP if necessary.
65195         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65196         since gl_FUNC_STRNDUP does that now.
65197         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65198         Check for decl here...
65199         (gl_PREREQ_STRNLEN): ... not here.
65200         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65201         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65202         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65203         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65204         necessary.
65205         * modules/string: New file.
65206         * modules/memmem (Files): Remove special-purpose include file.
65207         (Depends-on): Add string.
65208         (Include): Include <string.h>, not the removed file.
65209         * modules/mempcpy: Likewise.
65210         * modules/memrchr: Likewise.
65211         * modules/stpcpy: Likewise.
65212         * modules/stpncpy: Likewise.
65213         * modules/strcase: Likewise.
65214         * modules/strchrnul: Likewise.
65215         * modules/strdup: Likewise.
65216         * modules/strndup: Likewise.
65217         * modules/strnlen: Likewise.
65218         * modules/strpbrk: Likewise.
65219         * modules/strsep: Likewise.
65220         * modules/strstr: Likewise.
65221         * modules/strtok_r: Likewise.
65222         * tests/test-dirname.c: Don't include "strdup.h", since
65223         <string.h> now suffices.
65224         * tests/test-memmem.c: Don't include "memmem.h", since
65225         <string.h> now suffices.
65226
65227 2007-01-25  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65230         *resultp is 0.
65231
65232         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65233         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65234         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65235         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65236
65237         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65238         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65239         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65240         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65241         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65242         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65243
65244 2007-01-24  Bruno Haible  <bruno@clisp.org>
65245
65246         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65247         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65248         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65249         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65250         gl_FUNC_FTS_CORE.
65251         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65252         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65253         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65254         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65255         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65256         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65257         gl_FUNC_FCHOWNAT.
65258         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65259         gl_FUNC_STRFTIME.
65260         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65261         Reported by Ralf Wildenhues.
65262
65263 2007-01-24  Bruno Haible  <bruno@clisp.org>
65264
65265         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65266         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65267         gl_GETADDRINFO.
65268         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65269         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65270         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65271
65272 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65273
65274         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65275         Don't use 'exit'; just return from 'main'.
65276         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65277
65278         * lib/fnmatch_.h: Readjust white space and comments to match
65279         glibc, to avoid spurious diffs.
65280
65281 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65282
65283         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65284         2004-12-01 change by Jakub Jelinek, since this code won't compile
65285         if !LIBC.  Problem reported by Bob Proulx.
65286
65287 2007-01-23  Bruno Haible  <bruno@clisp.org>
65288
65289         * lib/striconveh.c: Include c-strcaseeq.h.
65290         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65291         * modules/striconveh (Depends-on): Add c-strcaseeq.
65292
65293 2007-01-23  Bruno Haible  <bruno@clisp.org>
65294
65295         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65296
65297         * modules/c-strcaseeq: New file.
65298         * lib/c-strcaseeq.h: New file.
65299
65300         * modules/streq: New file.
65301         * lib/streq.h: New file.
65302
65303 2007-01-23  Bruno Haible  <bruno@clisp.org>
65304
65305         * modules/striconveha-tests: New file.
65306         * tests/test-striconveha.c: New file.
65307
65308         * lib/striconveha.h: Include <stdbool.h>.
65309         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65310         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65311         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65312         (mem_iconveha): New function.
65313         (str_iconveha_notranslit): Renamed from str_iconveha.
65314         (str_iconveha): New function.
65315         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65316         c-strcase.
65317
65318 2007-01-23  Bruno Haible  <bruno@clisp.org>
65319
65320         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65321         encodings without forgiving before trying any encoding with handler.
65322         (str_iconveha): Try all encodings without forgiving before trying any
65323         encoding with handler.
65324
65325 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65326
65327         Import the following changes from libc.
65328
65329         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65330
65331         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65332
65333         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65334
65335         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65336         normal_bracket label.
65337
65338         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65339
65340         [BZ #361]
65341         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65342         to normal_bracket after fetching the next character.
65343
65344 2007-01-22  Bruno Haible  <bruno@clisp.org>
65345
65346         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65347         argument.
65348         * lib/striconveh.c (iconv_carefully_1): New function.
65349         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65350         argument.
65351         (str_cd_iconveh): Update.
65352         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65353         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65354         * tests/test-striconveh.c (MAGIC): New macro.
65355         (new_offsets): New function.
65356         (main): Test call with and without offsets.
65357
65358 2007-01-22  Bruno Haible  <bruno@clisp.org>
65359
65360         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65361         * modules/sys_select (Makefile.am): Likewise.
65362         * modules/sys_socket (Makefile.am): Likewise.
65363         * modules/sys_time (Makefile.am): Likewise.
65364
65365 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65366
65367         * modules/gettimeofday (License): Change from GPL to LGPL, since
65368         gettimeofday is a library function.
65369
65370 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65371
65372         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65373
65374 2007-01-21  Bruno Haible  <bruno@clisp.org>
65375
65376         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65377
65378 2007-01-21  Bruno Haible  <bruno@clisp.org>
65379
65380         * modules/striconveha: New file.
65381         * lib/striconveha.h: New file.
65382         * lib/striconveha.c: New file.
65383         * MODULES.html.sh (Internationalization functions): Add striconveha.
65384         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65385         string.
65386         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65387
65388 2007-01-21  Bruno Haible  <bruno@clisp.org>
65389
65390         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65391         * lib/striconveh.c (str_iconveh): Likewise.
65392
65393 2007-01-21  Bruno Haible  <bruno@clisp.org>
65394
65395         * lib/striconveh.h (mem_iconveh): New declaration.
65396         * lib/striconveh.c (mem_iconveh): New function.
65397         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65398
65399 2007-01-21  Bruno Haible  <bruno@clisp.org>
65400
65401         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65402
65403         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65404         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65405         original result buffer.
65406         (str_cd_iconveh): Update.
65407         * tests/test-striconveh.c (main): Update.
65408
65409         * lib/striconv.h (mem_cd_iconv): Change specification.
65410         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65411         result buffer.
65412         (str_cd_iconv): Update.
65413         * tests/test-striconv.c (main): Update.
65414
65415 2007-01-21  Bruno Haible  <bruno@clisp.org>
65416
65417         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65418
65419 2007-01-20  Jim Meyering  <jim@meyering.net>
65420
65421         * lib/userspec.c (parse_with_separator): If a user or group string
65422         starts with "+", skip the corresponding name-to-ID look-up, since
65423         such a look-up must fail: user and group names may not include "+".
65424
65425 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65428         since we now assume the sys_time module.
65429         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65430         check for sys/time.h; no longer needed.
65431         * modules/poll (Depends-on): Depend on sys_time.
65432
65433 2007-01-18  Bruno Haible  <bruno@clisp.org>
65434
65435         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65436         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65437
65438         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65439         gettimeofday.
65440
65441         * tests/test-gettimeofday.c: Include <time.h>.
65442         (dummy): Remove variable.
65443
65444         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65445         gl_HEADER_SYS_TIME_H.
65446         (gl_HEADER_SYS_TIME_H): New macro.
65447
65448         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65449         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65450         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65451         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65452         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65453         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65454         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65455         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65456         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65457         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65458         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65459
65460         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65461         last change; it caused a compilation error when cross-compiling to
65462         Cygwin.
65463
65464 2007-01-18  Jim Meyering  <jim@meyering.net>
65465
65466         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65467         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65468         than the race-prone "test -d sys || mkdir sys".
65469         (configure.ac): Use AC_PROG_MKDIR_P.
65470         * modules/sys_select: Likewise.
65471         * modules/sys_socket: Likewise.
65472         * modules/sys_time: Likewise.
65473
65474 2007-01-18  Eric Blake  <ebb9@byu.net>
65475
65476         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65477         replace gettimeofday.
65478         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65479         name, to avoid infinite recursion.
65480
65481 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65484         module sys_time.
65485         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65486         assume timespec.h defines struct timeval.
65487         * lib/settime.c: Likewise.
65488         * lib/utimens.c: Likewise.
65489         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65490         since we now assume the gettimeofday module.
65491         * lib/tempname.c (__gen_tempname): Likewise.
65492         * lib/gettimeofday.h: Remove.
65493         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65494         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65495         Include <time.h>, for 'time()'.
65496         (localtime_buffer_addr): Also use this workaround if
65497         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65498         to simplify the uses.  All uses changed.
65499         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65500         that #undef is inside {}, and 'const' follows type name consistently.
65501         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65502         (gettimeofday): Do not use the maximum possible value for
65503         tv->tv_usec, since that might break usages other than ls.c.
65504         Instead, we'll leave ls.c alone.  This undoes today's patch
65505         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65506         we've never observed the problem but might as well keep the
65507         canary.
65508         * lib/nanosleep.c: Include timespec.h first, for interface check.
65509         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65510         now assume the sys_time module.
65511         * lib/tempname.c: Likewise.
65512         * lib/timespec.h: Likewise.
65513         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65514         needed.
65515         * lib/strftime.c: Likewise.
65516         * lib/timespec.h: Likewise.
65517         * lib/posixtm.c: Include posixtm.h first, for interface check.
65518         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65519         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65520         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65521         * lib/sys_time_.h: New file.
65522         * lib/timespec.h (struct timespec): Use long int, not long.
65523         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65524         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65525         Remove obsolescent call to AC_HEADER_TIME.
65526         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65527         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65528         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65529         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65530         Likewise.
65531         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65532         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65533         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65534         into the sys_time module.  Check for gettimeofday just once.
65535         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65536         for gettimeofday signature to just check the signature.  Merely
65537         compile it, since linking doesn't test signature.  Improve test for
65538         whether gettimeofday.o is actually needed.
65539         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65540         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65541         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65542         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65543         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65544         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65545         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65546         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65547         than worrying about sys/time.h.
65548         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65549         Don't bother worrying about TIME_WITH_SYS_TIME.
65550         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65551         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65552         * m4/sys_time_h.m4: New file.
65553         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65554         Don't include sys/time.h.  Return from main rather than exiting.
65555         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65556         all uses changed.
65557         * modules/gethrxtime (Depends-on): Add sys_time.
65558         * modules/gettime (Depends-on): Likewise.
65559         * modules/gettimeofday (Depends-on): Likewise.
65560         * modules/nanosleep (Depends-on): Likewise.
65561         * modules/settime (Depends-on): Likewise.
65562         * modules/tempname (Depends-on): Likewise.
65563         * modules/utimens (Depends-on): Likewise.
65564         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65565         (Include): Change back to <sys/time.h>.
65566         (Maintainer): Add self.
65567         * modules/sys_time: New file.
65568         * modules/tempname (Depends-on): Add gettimeofday.
65569         * tests/test-gettimeofday.c: Include <sys/time.h>
65570         rather than gettimeofday.h.
65571
65572 2007-01-17  Bruno Haible  <bruno@clisp.org>
65573
65574         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65575         the license default to GPL.
65576         (func_create_testdir): Don't complain if a module is LGPL and its
65577         tests module depends on GPLed modules.
65578
65579 2007-01-17  Bruno Haible  <bruno@clisp.org>
65580
65581         * lib/gettimeofday.c (gettimeofday): Add code for the case
65582         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65583         maximum possible value for tv->tv_usec, rather than the minimum one.
65584
65585 2005-10-08  Martin Lambers  <marlam@marlam.de>
65586 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65587 2007-01-16  Bruno Haible  <bruno@clisp.org>
65588
65589         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65590         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65591         gl_FUNC_GETTIMEOFDAY.
65592         (Include): Add gettimeofday.h.
65593         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65594         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65595         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65596         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65597         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65598         * lib/gettimeofday.h: New file.
65599         * lib/gettimeofday.c: Include <sys/timeb.h>.
65600         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65601         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65602         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65603         fall back on time().
65604
65605         * tests/test-gettimeofday.c: New file.
65606         * modules/gettimeofday-tests: New file.
65607
65608 2007-01-16  Eric Blake  <ebb9@byu.net>
65609
65610         * modules/fnmatch (Depends-on): Depend on wchar.
65611         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65612         * m4/fnmatch.m4: Likewise.
65613         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65614         * m4/mbchar.m4: Likewise.
65615         * modules/mbswidth (Depends-on): Depend on wchar.
65616         * lib/mbswidth.c: Assume <wchar.h>.
65617         * m4/mbswidth.m4: Likewise.
65618         * modules/quotearg (Depends-on): Depend on wchar.
65619         * lib/quotearg.c: Assume <wchar.h>.
65620         * m4/quotearg.m4: Likewise.
65621         * modules/regex (Depends-on): Depend on wchar.
65622         * lib/regex_internal.h: Assume <wchar.h>.
65623         * m4/regex.m4: Likewise.
65624         * modules/stdint (Depends-on): Depend on wchar.
65625         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65626         * m4/stdint.m4: Likewise.
65627         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65628         * modules/strftime (Depends-on): Depend on wchar.
65629         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65630         * modules/strtol (Depends-on): Depend on wchar.
65631         * lib/strtol.c: Assume <wchar.h>.
65632         * modules/wcwidth (Depends-on): Depend on wchar.
65633         * lib/wcwidth.h: Assume <wchar.h>.
65634         * m4/wcwidth.m4: Likewise.
65635
65636 2007-01-16  Bruno Haible  <bruno@clisp.org>
65637
65638         * modules/csharpexec-script: New, created from...
65639         * modules/csharpexec: ... this.
65640
65641 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65642
65643         * modules/javaexec-script: New, created from...
65644         * modules/javaexec: ... this.
65645
65646 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65647
65648         * modules/poll (Dependencies): Add sys_select.
65649
65650 2007-01-15  Jim Meyering  <jim@meyering.net>
65651
65652         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65653         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65654         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65655         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65656
65657 2007-01-15  Bruno Haible  <bruno@clisp.org>
65658
65659         * modules/striconveh: New file.
65660         * lib/striconveh.h: New file.
65661         * lib/striconveh.c: New file.
65662         * MODULES.html.sh (Internationalization functions): Add striconveh.
65663
65664         * modules/striconveh-tests: New file.
65665         * tests/test-striconveh.c: New file.
65666
65667 2007-01-15  Bruno Haible  <bruno@clisp.org>
65668
65669         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65670         not from GNU libiconv or GNU libc.
65671
65672 2007-01-15  Bruno Haible  <bruno@clisp.org>
65673
65674         * doc/gnulib-intro.texi (Copyright): Explain the different license
65675         terms for module descriptions, autoconf macros, tests, documentation.
65676
65677 2007-01-14  Bruno Haible  <bruno@clisp.org>
65678
65679         * modules/striconv-tests: New file.
65680         * tests/test-striconv.c: New file.
65681
65682 2007-01-14  Bruno Haible  <bruno@clisp.org>
65683
65684         * modules/iconv-tests: New file.
65685         * tests/test-iconv.c: New file.
65686
65687 2007-01-14  Bruno Haible  <bruno@clisp.org>
65688
65689         * gnulib-tool (func_get_license): For test modules, use the license of
65690         the main module.
65691
65692 2007-01-14  Bruno Haible  <bruno@clisp.org>
65693
65694         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65695         if iconv is found to exist.
65696
65697 2007-01-14  Bruno Haible  <bruno@clisp.org>
65698
65699         * modules/c-ctype-tests: New file.
65700         * tests/test-c-ctype.c: New file.
65701
65702 2007-01-14  Bruno Haible  <bruno@clisp.org>
65703
65704         * modules/binary-io-tests: New file.
65705         * tests/test-binary-io.sh: New file.
65706         * tests/test-binary-io.c: New file.
65707
65708 2007-01-14  Bruno Haible  <bruno@clisp.org>
65709
65710         * modules/array-oset-tests: New file.
65711         * tests/test-array_oset.c: New file.
65712
65713 2007-01-14  Bruno Haible  <bruno@clisp.org>
65714
65715         * modules/array-list-tests: New file.
65716         * tests/test-array_list.c: New file.
65717
65718 2007-01-14  Bruno Haible  <bruno@clisp.org>
65719
65720         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65721         and make.
65722         Reported by Simon Josefsson in
65723         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65724
65725 2007-01-14  Bruno Haible  <bruno@clisp.org>
65726
65727         * modules/allocsa-tests: New file.
65728         * tests/test-allocsa.c: New file.
65729
65730 2007-01-14  Bruno Haible  <bruno@clisp.org>
65731
65732         * modules/fchdir (Depends-on): Add absolute-header.
65733         * modules/unistd (Depends-on): Likewise.
65734
65735 2006-12-30  Bruno Haible  <bruno@clisp.org>
65736
65737         * modules/fchdir: New file.
65738         * modules/unistd (Files): Add lib/unistd_.h.
65739         (Makefile.am): Generate unistd.h from unistd_.h.
65740         * lib/fchdir.c: New file.
65741         * lib/dirent_.h: New file.
65742         * lib/unistd_.h: New file.
65743         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65744         * m4/fchdir.m4: New file.
65745         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65746         (gl_HEADER_UNISTD): Invoke it.
65747         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65748         function.
65749         * lib/backupfile.c (opendir, closedir): Undefine.
65750         * lib/chown.c (open, close): Undefine.
65751         * lib/clean-temp.c (open, close): Undefine.
65752         * lib/copy-file.c (open, close): Undefine.
65753         * lib/execute.c (open, close): Undefine.
65754         * lib/fsusage.c (open, close): Undefine.
65755         * lib/gc-gnulib.c (open, close): Undefine.
65756         * lib/getcwd.c (opendir, closedir): Undefine.
65757         * lib/glob.c (opendir, closedir): Undefine.
65758         * lib/javacomp.c (open, close): Undefine.
65759         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65760         * lib/openat-proc.c (open, close): Undefine.
65761         * lib/pagealign_alloc.c (open, close): Undefine.
65762         * lib/pipe.c (open, close): Undefine.
65763         * lib/progreloc.c (open, close): Undefine.
65764         * lib/savedir.c (opendir, closedir): Undefine.
65765         * lib/utime.c (open, close): Undefine.
65766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65767
65768 2007-01-10  Bruno Haible  <bruno@clisp.org>
65769
65770         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65771
65772 2007-01-12  Eric Blake  <ebb9@byu.net>
65773
65774         Provide a robust <wchar.h>.  Further simplifications are now
65775         possible in other modules, but not included here.
65776         * modules/wchar: New module.
65777         * m4/wchar.m4: New file.
65778         * lib/wchar_.h: Likewise.
65779         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65780         of the new module.
65781         * MODULES.html.sh (Extended multibyte and wide character utilities):
65782         New section.
65783
65784 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65785
65786         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65787         to a reasonable default for memory allocation.
65788         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65789         file system that reports garbage st_size values for symlinks.
65790         Problem reported by Liyang Hu.
65791
65792 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65793
65794         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65795         Emacs .#* auto-save files).
65796
65797 2007-01-11  Bruno Haible  <bruno@clisp.org>
65798
65799         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65800         directory.
65801
65802 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65803
65804         Use @...@ consistently in lib/wctype_.h.
65805         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65806         on it being set to 1 or 0.
65807         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65808         go back to AC_SUBSTing it.
65809         * modules/wctype (Makefile.am): Undo previous change.
65810
65811 2007-01-10  Eric Blake  <ebb9@byu.net>
65812
65813         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65814         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65815         * modules/wctype (Makefile.am): Likewise.
65816         Reported by Chris McGuire.
65817
65818 2007-01-10  Jim Meyering  <jim@meyering.net>
65819
65820         fts.c: a small readability/maintainability improvement
65821         * lib/fts.c (fts_read): Make this code slightly more readable and
65822         maintainable by hoisting the "sp->fts_cur = p" assignments to
65823         immediately follow the statements that set P.  Derived from
65824         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65825
65826 2007-01-10  Eric Blake  <ebb9@byu.net>
65827
65828         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65829         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65831         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65832         Reported by Chris McGuire.
65833
65834 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65835
65836         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65837         in sed script.
65838
65839 2007-01-09  Bruno Haible  <bruno@clisp.org>
65840
65841         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65842         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65843         variables.
65844         (func_module): Use them.
65845
65846 2007-01-09  Bruno Haible  <bruno@clisp.org>
65847
65848         * modules/unistr/base: New file.
65849         * lib/unistr.h: New file.
65850
65851         * modules/unistr/u8-to-u16: New file.
65852         * lib/unistr/u8-to-u16.c: New file.
65853
65854         * modules/unistr/u8-to-u32: New file.
65855         * lib/unistr/u8-to-u32.c: New file.
65856
65857         * modules/unistr/u16-to-u8: New file.
65858         * lib/unistr/u16-to-u8.c: New file.
65859
65860         * modules/unistr/u16-to-u32: New file.
65861         * lib/unistr/u16-to-u32.c: New file.
65862
65863         * modules/unistr/u32-to-u8: New file.
65864         * lib/unistr/u32-to-u8.c: New file.
65865
65866         * modules/unistr/u32-to-u16: New file.
65867         * lib/unistr/u32-to-u16.c: New file.
65868
65869         * modules/unistr/u8-check: New file.
65870         * modules/unistr/u16-check: New file.
65871         * modules/unistr/u32-check: New file.
65872         * lib/unistr/u8-check.c: New file.
65873         * lib/unistr/u16-check.c: New file.
65874         * lib/unistr/u32-check.c: New file.
65875
65876         * modules/unistr/u8-chr: New file.
65877         * modules/unistr/u16-chr: New file.
65878         * modules/unistr/u32-chr: New file.
65879         * lib/unistr/u8-chr.c: New file.
65880         * lib/unistr/u16-chr.c: New file.
65881         * lib/unistr/u32-chr.c: New file.
65882
65883         * modules/unistr/u8-cmp: New file.
65884         * modules/unistr/u16-cmp: New file.
65885         * modules/unistr/u32-cmp: New file.
65886         * lib/unistr/u8-cmp.c: New file.
65887         * lib/unistr/u16-cmp.c: New file.
65888         * lib/unistr/u32-cmp.c: New file.
65889
65890         * modules/unistr/u8-cpy: New file.
65891         * modules/unistr/u16-cpy: New file.
65892         * modules/unistr/u32-cpy: New file.
65893         * lib/unistr/u8-cpy.c: New file.
65894         * lib/unistr/u16-cpy.c: New file.
65895         * lib/unistr/u32-cpy.c: New file.
65896         * lib/unistr/u-cpy.h: New file.
65897
65898         * modules/unistr/u8-cpy-alloc: New file.
65899         * modules/unistr/u16-cpy-alloc: New file.
65900         * modules/unistr/u32-cpy-alloc: New file.
65901         * lib/unistr/u8-cpy-alloc.c: New file.
65902         * lib/unistr/u16-cpy-alloc.c: New file.
65903         * lib/unistr/u32-cpy-alloc.c: New file.
65904         * lib/unistr/u-cpy-alloc.h: New file.
65905
65906         * modules/unistr/u8-endswith: New file.
65907         * modules/unistr/u16-endswith: New file.
65908         * modules/unistr/u32-endswith: New file.
65909         * lib/unistr/u8-endswith.c: New file.
65910         * lib/unistr/u16-endswith.c: New file.
65911         * lib/unistr/u32-endswith.c: New file.
65912         * lib/unistr/u-endswith.h: New file.
65913
65914         * modules/unistr/u8-mblen: New file.
65915         * modules/unistr/u16-mblen: New file.
65916         * modules/unistr/u32-mblen: New file.
65917         * lib/unistr/u8-mblen.c: New file.
65918         * lib/unistr/u16-mblen.c: New file.
65919         * lib/unistr/u32-mblen.c: New file.
65920
65921         * modules/unistr/u8-mbtouc: New file.
65922         * modules/unistr/u16-mbtouc: New file.
65923         * modules/unistr/u32-mbtouc: New file.
65924         * lib/unistr/u8-mbtouc.c: New file.
65925         * lib/unistr/u16-mbtouc.c: New file.
65926         * lib/unistr/u32-mbtouc.c: New file.
65927
65928         * modules/unistr/u8-mbtouc-safe: New file.
65929         * modules/unistr/u16-mbtouc-safe: New file.
65930         * modules/unistr/u32-mbtouc-safe: New file.
65931         * lib/unistr/u8-mbtouc-safe.c: New file.
65932         * lib/unistr/u16-mbtouc-safe.c: New file.
65933         * lib/unistr/u32-mbtouc-safe.c: New file.
65934
65935         * modules/unistr/u8-move: New file.
65936         * modules/unistr/u16-move: New file.
65937         * modules/unistr/u32-move: New file.
65938         * lib/unistr/u8-move.c: New file.
65939         * lib/unistr/u16-move.c: New file.
65940         * lib/unistr/u32-move.c: New file.
65941         * lib/unistr/u-move.h: New file.
65942
65943         * modules/unistr/u8-next: New file.
65944         * modules/unistr/u16-next: New file.
65945         * modules/unistr/u32-next: New file.
65946         * lib/unistr/u8-next.c: New file.
65947         * lib/unistr/u16-next.c: New file.
65948         * lib/unistr/u32-next.c: New file.
65949
65950         * modules/unistr/u8-prev: New file.
65951         * modules/unistr/u16-prev: New file.
65952         * modules/unistr/u32-prev: New file.
65953         * lib/unistr/u8-prev.c: New file.
65954         * lib/unistr/u16-prev.c: New file.
65955         * lib/unistr/u32-prev.c: New file.
65956
65957         * modules/unistr/u8-set: New file.
65958         * modules/unistr/u16-set: New file.
65959         * modules/unistr/u32-set: New file.
65960         * lib/unistr/u8-set.c: New file.
65961         * lib/unistr/u16-set.c: New file.
65962         * lib/unistr/u32-set.c: New file.
65963         * lib/unistr/u-set.h: New file.
65964
65965         * modules/unistr/u8-startswith: New file.
65966         * modules/unistr/u16-startswith: New file.
65967         * modules/unistr/u32-startswith: New file.
65968         * lib/unistr/u8-startswith.c: New file.
65969         * lib/unistr/u16-startswith.c: New file.
65970         * lib/unistr/u32-startswith.c: New file.
65971         * lib/unistr/u-startswith.h: New file.
65972
65973         * modules/unistr/u8-stpcpy: New file.
65974         * modules/unistr/u16-stpcpy: New file.
65975         * modules/unistr/u32-stpcpy: New file.
65976         * lib/unistr/u8-stpcpy.c: New file.
65977         * lib/unistr/u16-stpcpy.c: New file.
65978         * lib/unistr/u32-stpcpy.c: New file.
65979         * lib/unistr/u-stpcpy.h: New file.
65980
65981         * modules/unistr/u8-stpncpy: New file.
65982         * modules/unistr/u16-stpncpy: New file.
65983         * modules/unistr/u32-stpncpy: New file.
65984         * lib/unistr/u8-stpncpy.c: New file.
65985         * lib/unistr/u16-stpncpy.c: New file.
65986         * lib/unistr/u32-stpncpy.c: New file.
65987         * lib/unistr/u-stpncpy.h: New file.
65988
65989         * modules/unistr/u8-strcat: New file.
65990         * modules/unistr/u16-strcat: New file.
65991         * modules/unistr/u32-strcat: New file.
65992         * lib/unistr/u8-strcat.c: New file.
65993         * lib/unistr/u16-strcat.c: New file.
65994         * lib/unistr/u32-strcat.c: New file.
65995         * lib/unistr/u-strcat.h: New file.
65996
65997         * modules/unistr/u8-strchr: New file.
65998         * modules/unistr/u16-strchr: New file.
65999         * modules/unistr/u32-strchr: New file.
66000         * lib/unistr/u8-strchr.c: New file.
66001         * lib/unistr/u16-strchr.c: New file.
66002         * lib/unistr/u32-strchr.c: New file.
66003
66004         * modules/unistr/u8-strcmp: New file.
66005         * modules/unistr/u16-strcmp: New file.
66006         * modules/unistr/u32-strcmp: New file.
66007         * lib/unistr/u8-strcmp.c: New file.
66008         * lib/unistr/u16-strcmp.c: New file.
66009         * lib/unistr/u32-strcmp.c: New file.
66010
66011         * modules/unistr/u8-strcpy: New file.
66012         * modules/unistr/u16-strcpy: New file.
66013         * modules/unistr/u32-strcpy: New file.
66014         * lib/unistr/u8-strcpy.c: New file.
66015         * lib/unistr/u16-strcpy.c: New file.
66016         * lib/unistr/u32-strcpy.c: New file.
66017         * lib/unistr/u-strcpy.h: New file.
66018
66019         * modules/unistr/u8-strcspn: New file.
66020         * modules/unistr/u16-strcspn: New file.
66021         * modules/unistr/u32-strcspn: New file.
66022         * lib/unistr/u8-strcspn.c: New file.
66023         * lib/unistr/u16-strcspn.c: New file.
66024         * lib/unistr/u32-strcspn.c: New file.
66025         * lib/unistr/u-strcspn.h: New file.
66026
66027         * modules/unistr/u8-strdup: New file.
66028         * modules/unistr/u16-strdup: New file.
66029         * modules/unistr/u32-strdup: New file.
66030         * lib/unistr/u8-strdup.c: New file.
66031         * lib/unistr/u16-strdup.c: New file.
66032         * lib/unistr/u32-strdup.c: New file.
66033         * lib/unistr/u-strdup.h: New file.
66034
66035         * modules/unistr/u8-strlen: New file.
66036         * modules/unistr/u16-strlen: New file.
66037         * modules/unistr/u32-strlen: New file.
66038         * lib/unistr/u8-strlen.c: New file.
66039         * lib/unistr/u16-strlen.c: New file.
66040         * lib/unistr/u32-strlen.c: New file.
66041         * lib/unistr/u-strlen.h: New file.
66042
66043         * modules/unistr/u8-strmblen: New file.
66044         * modules/unistr/u16-strmblen: New file.
66045         * modules/unistr/u32-strmblen: New file.
66046         * lib/unistr/u8-strmblen.c: New file.
66047         * lib/unistr/u16-strmblen.c: New file.
66048         * lib/unistr/u32-strmblen.c: New file.
66049
66050         * modules/unistr/u8-strmbtouc: New file.
66051         * modules/unistr/u16-strmbtouc: New file.
66052         * modules/unistr/u32-strmbtouc: New file.
66053         * lib/unistr/u8-strmbtouc.c: New file.
66054         * lib/unistr/u16-strmbtouc.c: New file.
66055         * lib/unistr/u32-strmbtouc.c: New file.
66056
66057         * modules/unistr/u8-strncat: New file.
66058         * modules/unistr/u16-strncat: New file.
66059         * modules/unistr/u32-strncat: New file.
66060         * lib/unistr/u8-strncat.c: New file.
66061         * lib/unistr/u16-strncat.c: New file.
66062         * lib/unistr/u32-strncat.c: New file.
66063         * lib/unistr/u-strncat.h: New file.
66064
66065         * modules/unistr/u8-strncmp: New file.
66066         * modules/unistr/u16-strncmp: New file.
66067         * modules/unistr/u32-strncmp: New file.
66068         * lib/unistr/u8-strncmp.c: New file.
66069         * lib/unistr/u16-strncmp.c: New file.
66070         * lib/unistr/u32-strncmp.c: New file.
66071
66072         * modules/unistr/u8-strncpy: New file.
66073         * modules/unistr/u16-strncpy: New file.
66074         * modules/unistr/u32-strncpy: New file.
66075         * lib/unistr/u8-strncpy.c: New file.
66076         * lib/unistr/u16-strncpy.c: New file.
66077         * lib/unistr/u32-strncpy.c: New file.
66078         * lib/unistr/u-strncpy.h: New file.
66079
66080         * modules/unistr/u8-strnlen: New file.
66081         * modules/unistr/u16-strnlen: New file.
66082         * modules/unistr/u32-strnlen: New file.
66083         * lib/unistr/u8-strnlen.c: New file.
66084         * lib/unistr/u16-strnlen.c: New file.
66085         * lib/unistr/u32-strnlen.c: New file.
66086         * lib/unistr/u-strnlen.h: New file.
66087
66088         * modules/unistr/u8-strpbrk: New file.
66089         * modules/unistr/u16-strpbrk: New file.
66090         * modules/unistr/u32-strpbrk: New file.
66091         * lib/unistr/u8-strpbrk.c: New file.
66092         * lib/unistr/u16-strpbrk.c: New file.
66093         * lib/unistr/u32-strpbrk.c: New file.
66094         * lib/unistr/u-strpbrk.h: New file.
66095
66096         * modules/unistr/u8-strrchr: New file.
66097         * modules/unistr/u16-strrchr: New file.
66098         * modules/unistr/u32-strrchr: New file.
66099         * lib/unistr/u8-strrchr.c: New file.
66100         * lib/unistr/u16-strrchr.c: New file.
66101         * lib/unistr/u32-strrchr.c: New file.
66102
66103         * modules/unistr/u8-strspn: New file.
66104         * modules/unistr/u16-strspn: New file.
66105         * modules/unistr/u32-strspn: New file.
66106         * lib/unistr/u8-strspn.c: New file.
66107         * lib/unistr/u16-strspn.c: New file.
66108         * lib/unistr/u32-strspn.c: New file.
66109         * lib/unistr/u-strspn.h: New file.
66110
66111         * modules/unistr/u8-strstr: New file.
66112         * modules/unistr/u16-strstr: New file.
66113         * modules/unistr/u32-strstr: New file.
66114         * lib/unistr/u8-strstr.c: New file.
66115         * lib/unistr/u16-strstr.c: New file.
66116         * lib/unistr/u32-strstr.c: New file.
66117         * lib/unistr/u-strstr.h: New file.
66118
66119         * modules/unistr/u8-strtok: New file.
66120         * modules/unistr/u16-strtok: New file.
66121         * modules/unistr/u32-strtok: New file.
66122         * lib/unistr/u8-strtok.c: New file.
66123         * lib/unistr/u16-strtok.c: New file.
66124         * lib/unistr/u32-strtok.c: New file.
66125         * lib/unistr/u-strtok.h: New file.
66126
66127         * modules/unistr/u8-uctomb: New file.
66128         * modules/unistr/u16-uctomb: New file.
66129         * modules/unistr/u32-uctomb: New file.
66130         * lib/unistr/u8-uctomb.c: New file.
66131         * lib/unistr/u16-uctomb.c: New file.
66132         * lib/unistr/u32-uctomb.c: New file.
66133
66134         * MODULES.html.sh (Unicode string functions): Add the new modules.
66135
66136 2007-01-08  Bruno Haible  <bruno@clisp.org>
66137
66138         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66139         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66140         subdirectories.
66141
66142 2007-01-08  Karl Berry  <karl@gnu.org>
66143
66144         * doc/error.texi: mention that main() fns must set program_name
66145         when progname is used.
66146
66147 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66148
66149         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66150         WCTYPE_H is empty, for the benefit of builds from non-distclean
66151         directories.  Problem reported by Eric Blake in
66152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66153
66154 2007-01-08  Bruno Haible  <bruno@clisp.org>
66155
66156         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66157         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66158         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66159         PROVIDE_CANONICALIZE_FILENAME_MODE.
66160         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66161
66162 2007-01-08  Bruno Haible  <bruno@clisp.org>
66163
66164         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66165         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66166         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66167         * lib/fts.c: Likewise.
66168         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66169
66170 2006-12-25  Bruno Haible  <bruno@clisp.org>
66171
66172         * modules/utf8-ucs4-safe: New file.
66173         * lib/utf8-ucs4-safe.h: New file.
66174         * lib/unistr/utf8-ucs4-safe.c: New file.
66175
66176         * modules/utf16-ucs4-safe: New file.
66177         * lib/utf16-ucs4-safe.h: New file.
66178         * lib/unistr/utf16-ucs4-safe.c: New file.
66179
66180         * MODULES.html.sh (Unicode string functions): Add the new modules.
66181
66182 2007-01-08  Bruno Haible  <bruno@clisp.org>
66183
66184         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66185         (Depends-on): Add unitypes.
66186         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66187         (u8_mbtouc_aux): Move out to separate file.
66188         (u8_mbtouc): Use ucs4_t, uint8_t types.
66189         * lib/unistr/utf8-ucs4.c: New file.
66190
66191         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66192         (Depends-on): Add unitypes.
66193         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66194         (u16_mbtouc_aux): Move out to separate file.
66195         (u16_mbtouc): Use ucs4_t, uint16_t types.
66196         * lib/unistr/utf16-ucs4.c: New file.
66197
66198         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66199         (Depends-on): Add unitypes.
66200         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66201         (u8_uctomb_aux): Move out to separate file.
66202         (u8_uctomb): Use ucs4_t, uint8_t types.
66203         * lib/unistr/ucs4-utf8.c: New file.
66204
66205         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66206         (Depends-on): Add unitypes.
66207         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66208         (u16_uctomb_aux): Move out to separate file.
66209         (u16_uctomb): Use ucs4_t, uint16_t types.
66210         * lib/unistr/ucs4-utf16.c: New file.
66211
66212 2006-12-25  Bruno Haible  <bruno@clisp.org>
66213
66214         * modules/unitypes: New file.
66215         * lib/unitypes.h: New file.
66216         * MODULES.html.sh (func_all_modules): New section "Unicode string
66217         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66218         this section. Add unitypes.
66219
66220 2007-01-08  Bruno Haible  <bruno@clisp.org>
66221
66222         Avoid variable names that conflict with those from libtool.
66223         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66224         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66225         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66226         library_names_spec to acl_library_names_spec, hardcode_* to
66227         acl_hardcode_*.
66228         Reported by Ralf Wildenhues.
66229
66230 2007-01-08  Bruno Haible  <bruno@clisp.org>
66231
66232         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66233         definition.
66234         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66235         definition.
66236         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66237         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66238         definition.
66239         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66240         definition.
66241         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66242         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66243         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66244         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66245         definition.
66246         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66247         definition.
66248         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66249         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66250         GC_USE_<algorithm>.
66251         * lib/gc-libgcrypt.c: Likewise.
66252         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66253         * modules/gc-arctwo (configure.ac): Likewise.
66254         * modules/gc-des (configure.ac): Likewise.
66255         * modules/gc-hmac-md5 (configure.ac): Likewise.
66256         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66257         * modules/gc-md2 (configure.ac): Likewise.
66258         * modules/gc-md4 (configure.ac): Likewise.
66259         * modules/gc-md5 (configure.ac): Likewise.
66260         * modules/gc-random (configure.ac): Likewise.
66261         * modules/gc-rijndael (configure.ac): Likewise.
66262         * modules/gc-sha1 (configure.ac): Likewise.
66263
66264 2007-01-08  Bruno Haible  <bruno@clisp.org>
66265
66266         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66267         macro definition.
66268         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66269         definition.
66270         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66271         definition.
66272         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66273         * modules/fcntl-safer (configure.ac): Likewise.
66274         * modules/fopen-safer (configure.ac): Likewise.
66275         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66276         GNULIB_FWRITEERROR macro definition.
66277
66278 2007-01-08  Bruno Haible  <bruno@clisp.org>
66279
66280         * m4/gnulib-common.m4: New file.
66281         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66282         (func_get_filelist): Add m4/gnulib-common.m4.
66283
66284 2007-01-08  Bruno Haible  <bruno@clisp.org>
66285
66286         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66287         command.
66288
66289 2007-01-08  Jim Meyering  <jim@meyering.net>
66290
66291         Use a more robust test for a "can't happen" condition.
66292         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66293         narrowed the st_size value.  Presuming the "can't happen" condition
66294         is true, that narrowing could conceivably convert an invalid st_size
66295         value into a valid one.  Instead, use a change based on Matthew
66296         Woehlke's original patch.
66297
66298         Slight readability improvement: use an assert-like macro
66299         in place of literal "abort ()" uses.
66300         * lib/fts.c (fts_assert): Define.
66301         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66302         Use this macro instead of a bare 'abort'.
66303
66304 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66305
66306         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66307         simply work around them.
66308         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66309         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66310         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66311         declaring.
66312         Don't bother to define as macros, since the standard doesn't require it.
66313         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66314         longer worry about IRIX 5.3.
66315         (HAVE_WCTYPE_CTMP_BUG): Remove.
66316
66317 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66320         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66321         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66322         Problems reported by Georg Schwarz for IRIX 5.3.
66323
66324         * gnulib-tool (autoconf_minversion): Take the maximum version number
66325         found, not the minimum.  Problem reported by James Youngman.
66326
66327 2007-01-03  Karl Berry  <karl@gnu.org>
66328
66329         * doc/error.texi: new file, explaining interaction with progname.
66330         * doc/gnulib.texi: include it.  Update copyright.
66331
66332 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66333
66334         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66335         AC_CANONICAL_HOST, to improve autobuild outputs.
66336
66337 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66338             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66339
66340         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66341         sockets, server sockets, and other file descriptors.  Count errors
66342         to compute the return value.  Reorder the code a bit to be easier
66343         to follow.  Don't set event bits that were not requested (except
66344         POLLERR and POLLHUP).
66345
66346 2007-01-01  Bruno Haible  <bruno@clisp.org>
66347
66348         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66349
66350 2007-01-03  Jim Meyering  <jim@meyering.net>
66351
66352         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66353
66354 2007-01-02  Bruno Haible  <bruno@clisp.org>
66355
66356         * modules/settime (Include): Require timespec.h.
66357         * modules/nanosleep (Include): Likewise.
66358
66359 2007-01-01  Bruno Haible  <bruno@clisp.org>
66360
66361         * gnulib-tool (func_emit_copyright_notice): Bump year.
66362         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66363
66364 2007-01-01  Bruno Haible  <bruno@clisp.org>
66365
66366         Improve support for OpenBSD.
66367         * build-aux/config.rpath (libname_spec): Export.
66368         (library_names_spec): New variable. Export.
66369         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66370         library_names_spec from the config.rpath output. Locate shared library
66371         through the name pattern in library_names_spec.
66372
66373 2007-01-01  Eric Blake  <ebb9@byu.net>
66374
66375         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66376
66377 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66380         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66381         assume the C locale, and avoid an "eval" that could cause trouble.
66382         Problem with SORT reported by Bob Proulx.
66383
66384         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66385         Define.  Trivial patch from Henning Nielsen Lund, originally
66386         sent to bug-grep@gnu.org today.
66387
66388 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66391         struct stat.  Problem reported by Henning Nielsen Lund.
66392         * lib/acl.c: Include acl.h first, to check interface.  Don't
66393         bother to include sys/types.h and sys/stat.h again.
66394
66395 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         Import the following change from libc; problem reported by
66398         Sven Verdoolaege.
66399
66400         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66401
66402         [BZ #1373]
66403         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66404
66405 2006-12-28  Jim Meyering  <jim@meyering.net>
66406
66407         * build-aux/announce-gen: Do not assume that the package
66408         builds any of tar.gz, tar.bz2, and .xdelta files.
66409         Suggestion from Simon Josefsson.
66410
66411 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66412
66413         * modules/announce-gen: New file.
66414
66415 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66418         handles its gotchas now.
66419         * lib/mbswidth.c: Likewise.
66420         * lib/wcwidth.h: Likewise.
66421         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66422         and iswcntrl; the wctype module does this stuff now.
66423         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66425         * modules/mbchar (Depends-on): Add wctype.
66426         * modules/mbswidth (Depends-on): Likewise.
66427         * modules/wcwidth (Depends-on): Likewise.
66428
66429 2006-12-27  Eric Blake  <ebb9@byu.net>
66430
66431         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66432         module uses more than what <wctype.h> is required to provide.
66433
66434 2006-12-26  Eric Blake  <ebb9@byu.net>
66435
66436         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66437
66438 2006-12-26  Eric Blake  <ebb9@byu.net>
66439
66440         * modules/absolute-header: New module.
66441         * modules/fcntl (Depends-on): Depend on it.
66442         * modules/inttypes (Depends-on): Likewise.
66443         * modules/stdint (Depends-on): Likewise.
66444         * modules/sys_stat (Depends-on): Likewise.
66445         * modules/wctype (Depends-on): Likewise.
66446         * MODULES.html.sh (Support for building libraries and
66447         executables): Document it.
66448
66449 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66450
66451         * gnulib-tool (SED): Remove, undoing previous change.
66452         The problem was that it broke coreutils on Solaris, because
66453         "sed --posix" leaked into a makefile.
66454         (sed): New alias, if 'alias' and GNU sed.
66455
66456 2006-12-24  Jim Meyering  <jim@meyering.net>
66457
66458         Work around an fchownat bug in glibc-2.4:
66459         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66460         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66461         in spite of the -P option.
66462         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66463         New macros.
66464         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66465         * modules/openat (Files): Add lib/fchownat.c.
66466         * lib/openat.c (fchownat): Don't define here.  Move to...
66467         * lib/fchownat.c: ...this new file.
66468
66469 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66470
66471         Fix bug reported by Bruno Haible in
66472         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66473         where quotearg.c didn't compile on Mac OS X 10.2 because it
66474         lacks <wchar.h> and wint_t.
66475         * lib/wctype_.h (__wctype_wint_t): New type.
66476         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66477         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66478         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66479         Arg is now of type __wctype_wint_t, not wint_t.
66480         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66481         substitute HAVE_WINT_T.
66482         * modules/wctype (Files): Add m4/wint_t.m4.
66483         (wctype.h): Substitute HAVE_WINT_T.
66484
66485 2006-12-23  Bruno Haible  <bruno@clisp.org>
66486
66487         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66488
66489 2006-12-23  Bruno Haible  <bruno@clisp.org>
66490
66491         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66492         S_ISLNK.
66493         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66494         mingw.
66495
66496 2006-12-22  Bruno Haible  <bruno@clisp.org>
66497
66498         * lib/copy-file.c: Include acl.h.
66499         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66500         Close the file descriptors only after being done with copy_acl.
66501         * modules/copy-file (Depends-on): Add acl.
66502
66503 2006-12-22  Bruno Haible  <bruno@clisp.org>
66504
66505         * gnulib-tool (SED): New variable.
66506         Use $SED instead of sed everywhere.
66507
66508 2006-12-22  Bruno Haible  <bruno@clisp.org>
66509
66510         * modules/no-c++: New file.
66511         * m4/no-c++.m4: New file.
66512         * MODULES.html.sh (Support for building libraries and executables):
66513         Add no-c++.
66514
66515 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66516
66517         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66518         Include <limits.h>, and use its INT_MAX to rewrite the
66519         j loop so that it does not overflow 'int'.  Problem reported by
66520         Ralf Wildenhues in
66521         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66522         Play it safe by shifting left by 1 rather than multiplying by 2,
66523         as GCC is less likely to optimize this away when the value
66524         is signed (when it assumes overflow leads to undefined behavior).
66525         Also, don't assume time_t uses two's complement.
66526
66527 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66528
66529         * MODULES.html.sh: New module wctype.
66530         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66531         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66532         <wctype.h>, since the new wctype module should fix this.
66533         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66534         the wctype module should arrange for it.
66535         * lib/regex_internal.h: Likewise.
66536         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66537         since the wctype module should handle this now.
66538         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66539         * modules/fnmatch (Depends-on): Add wctype.
66540         * modules/quotearg (Depends-on): Likewise.
66541         * modules/regex (Depends-on): Likewise.
66542
66543 2006-12-19  Bruno Haible  <bruno@clisp.org>
66544
66545         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66546         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66547
66548 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66549
66550         * modules/savewd (Depends-on): Fix dependency on fcntl.
66551
66552 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66553
66554         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66555         conforms to C99, rather than relying on the user's environment
66556         setting of STDINT_H.
66557
66558 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66559         and Eric Blake  <ebb9@byu.net>
66560
66561         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66562         This is more consistent with the other defines here.
66563         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66564         Port to z/OS.  Problem reported by Paul Gilmartin.
66565         Change local vars to use gl_ prefix rather than ac_.
66566         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66567         with other defines.
66568         * modules/double-slash-root: New module.
66569         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66570         (Depends-on): Add double-slash-root.
66571         * MODULES.html.sh (File system functions): Mention new module.
66572
66573 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66574
66575         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66576         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66577         This is for the benefit of gzip, which doesn't do i18n.
66578
66579 2006-12-12  Jim Meyering  <jim@meyering.net>
66580
66581         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66582         Reported by Andreas Schwab <schwab@suse.de>.
66583
66584 2006-12-12  Bruno Haible  <bruno@clisp.org>
66585
66586         Merge these changes.
66587         2006-09-05  Bruno Haible  <bruno@clisp.org>
66588         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66589         iconv_alloc succeeded.
66590         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66591         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66592         test for " && dest " at the end - dest is always != NULL there. Call
66593         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66594         with 2xNULL arguments, also to flush the state storage. Handle the
66595         IRIX iconv behaviour. Realloc the final result, to throw away unused
66596         memory.
66597
66598 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66599
66600         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66601         and fchmodat unconditionally, since glibc 2.4 has them.
66602         Problem reported by Arkadiusz Miskiewicz.
66603
66604 2006-12-10  Bruno Haible  <bruno@clisp.org>
66605
66606         * gnulib-tool (func_import): Show the include files only for those
66607         modules that are copied and specified.
66608         Reported by Karl Berry.
66609
66610 2006-12-08  Jim Meyering  <jim@meyering.net>
66611
66612         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66613         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66614
66615         * build-aux/announce-gen: Add two new options, both optional:
66616         --bootstrap-tools=TOOL_LIST
66617               a comma-separated list of tools, e.g.,
66618               autoconf,automake,bison,gnulib
66619         --gnulib-snapshot-date=DATE
66620               if gnulib is in the bootstrap tool list,
66621               then report this as the snapshot date.
66622               If not specified, use the current date/time.
66623               If you specify a date here, be sure it's UTC.
66624
66625 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66626
66627         * tests/test-argp-2.sh: Fix test to match actual output.
66628         (func_compare): Fix sed script to be portable.
66629
66630 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66631
66632         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66633         workaround for this case.  It is not autoconfigured now; offhand
66634         it's hard to see how to autoconfigure it.
66635
66636 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66637
66638         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66639         a directory that is about to be chowned.  Such a directory's
66640         initial file permissions should permit the owner only and this
66641         should not be changed until after the chown, since the group and
66642         other bits would be incorrect if they granted permission before
66643         the chown.
66644
66645         Fix porting problem for iswctype reported by Georg Schwarz in:
66646         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66647         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66648         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66649         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66650         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66651
66652 2006-12-03  Jim Meyering  <jim@meyering.net>
66653
66654         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66655         p->fts_statp may not yet be defined.
66656         (fts_read): Instead, set it in the caller, once p->fts_statp is
66657         sure to be defined, and corresponds to a top-level directory.
66658         This bug made du -x fail.  Here's the coreutils test case:
66659         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66660         Reported by Mike Frysinger.
66661
66662 2006-12-01  Jim Meyering  <jim@meyering.net>
66663
66664         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66665         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66666         Reported by Simon Josefsson.
66667
66668 2006-11-30  Jim Meyering  <jim@meyering.net>
66669
66670         * m4/warning.m4: Use the all-permissive copyright notice
66671         recommended by RMS (rather than LGPL).
66672         * m4/vararrays.m4: Likewise.
66673         * m4/flexmember.m4: Likewise.
66674
66675 2006-11-29  Bruno Haible  <bruno@clisp.org>
66676
66677         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66678         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66679         using +=.
66680         Reported by Simon Josefsson <simon@josefsson.org>.
66681
66682 2006-11-28  James Youngman <jay@gnu.org>
66683
66684         * README: Advise users that they might find the bug-gnulib@gnu.org
66685         and autotools-announce@gnu.org mailing lists useful.
66686
66687 2006-11-28  Bruno Haible  <bruno@clisp.org>
66688
66689         * m4/ptrdiff_max.m4: Remove file.
66690
66691 2006-11-21  Bruno Haible  <bruno@clisp.org>
66692
66693         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66694         _AC_COMPUTE_INT.
66695         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66696         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66697         _AC_COMPUTE_INT.
66698         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66699         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66700         _AC_COMPUTE_INT.
66701         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66702
66703 2006-11-28  Jim Meyering  <jim@meyering.net>
66704
66705         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66706         warning from "gcc -Wshadow" about shadowing the builtin.
66707
66708 2006-11-27  Bruno Haible  <bruno@clisp.org>
66709
66710         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66711         _AC_COMPUTE_INT.
66712         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66713
66714 2006-11-27  Bruno Haible  <bruno@clisp.org>
66715             Paul Eggert  <eggert@cs.ucla.edu>
66716
66717         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66718
66719 2006-11-26  Bruno Haible  <bruno@clisp.org>
66720
66721         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66722         noinst_LTLIBRARIES.
66723
66724 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66725             Bruno Haible  <bruno@clisp.org>
66726
66727         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66728         if compiling with "gcc -ansi".
66729
66730 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66731
66732         Fix some incompatibilities with gcc -ansi -pedantic.
66733         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66734         if compiling pedantically with GCC, unless it's C99 or later.
66735         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66736         it mishandles gcc -ansi -pedantic as well.
66737         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66738         if gcc -pedantic.
66739         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66740         initializers for struct if -pedantic, unless it's C99 or later.
66741
66742 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66743
66744         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66745         Don't close an fd more than once. Identical atimes indicate
66746         success, not failure.
66747
66748 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66749
66750         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66751
66752 2006-11-23  Jim Meyering  <jim@meyering.net>
66753
66754         * build-aux/announce-gen: New file.  From coreutils.
66755
66756 2006-11-22  Jim Meyering  <jim@meyering.net>
66757
66758         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66759         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66760         (fts_read): Use a temporary to narrow the overused st_size member
66761         before using it in a switch statement.  Reported by Matthew Woehlke.
66762
66763         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66764         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66765
66766 2006-11-20  Bruno Haible  <bruno@clisp.org>
66767
66768         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66769         changequote instead of pairs of brackets.
66770         Reported by Andreas Schwab <schwab@suse.de>.
66771
66772 2006-11-21  Jim Meyering  <jim@meyering.net>
66773
66774         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66775         so as to remain compatible with older compilers.
66776         Patch from Michael Deutschmann.
66777
66778 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66779
66780         * MODULES.html.sh (File system functions): Add openat.
66781
66782         * lib/openat.h (rpl_fstatat): New macro, if
66783         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66784         (fstatat): Define to rpl_fstatat under the same conditions,
66785         unless COMPILING_FSTATAT.
66786         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66787         seems to have the bug.
66788         * lib/fstatat.c: New file.
66789         * modules/openat (Files): Add it.
66790
66791 2006-11-20  Bruno Haible  <bruno@clisp.org>
66792
66793         * Makefile: New file.
66794
66795 2006-11-20  Jim Meyering  <jim@meyering.net>
66796
66797         The beginnings of syntax-related checks for gnulib.
66798         * lib/Makefile: New file.
66799         * lib/t-idcache: New script.  Ensure that the two halves of
66800         idcache.c stay in sync.
66801
66802         * lib/idcache.c: Adjust comments in user- and group- portions to
66803         be more accurate, and to be consistent with one another.
66804
66805 2006-11-20  Jim Meyering  <jim@meyering.net>
66806
66807         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66808         continue using the flexible array member (thus, this module performs
66809         half as many malloc calls), with the addition that...
66810         (getgroup, getuser): Consistently record a non-match via an empty
66811         "name" string, and map an empty string match to a NULL return value.
66812         * modules/idcache (Depends-on): Re-add flexmember.
66813
66814         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66815         (getuidbyname, getgroup, getgidbyname): Likewise.
66816
66817         Use cleaner syntax: NULL rather than 0.
66818         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66819
66820 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66821
66822         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66823         It mishandled the case where the group was missing.
66824         Problem reported by Greg Schafer.
66825         * modules/idcache: Likewise.
66826
66827 2006-11-18  Jim Meyering  <jim@meyering.net>
66828
66829         * check-module (%exempt_header): Add exception for some
66830         conditionally-included headers.
66831
66832         * modules/i-ring (Depends-on): Add verify.
66833         (License): Change to LGPL.
66834
66835 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66836
66837         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66838         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66839         and inttostr.h.  Use snprintf rather than uinttostr, so that
66840         LGPLed code doesn't depend on GPLed.
66841
66842 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66843
66844         * modules/inline (License): Change from GPL to LGPL.
66845
66846 2006-11-17  Jim Meyering  <jim@meyering.net>
66847
66848         * modules/d-type (License): Switch to LGPL.
66849
66850 2006-11-15  Bruno Haible  <bruno@clisp.org>
66851
66852         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66853
66854 2006-11-15  Eric Blake  <ebb9@byu.net>
66855
66856         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66857         the module dependency.
66858
66859 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66860             Bruno Haible  <bruno@clisp.org>
66861
66862         * gnulib-tool (func_create_testdir): Add license consistency check.
66863
66864 2006-11-15  Eric Blake  <ebb9@byu.net>
66865
66866         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66867         random "(cached)" in configure output.
66868
66869 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66870
66871         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66872         test for conforming inttypes.h is both announced and cached.
66873
66874         * MODULES.html.sh (seen_modules, seen_files): New variables.
66875         (func_module): Rewrite to use a few less gnulib-tool and sed
66876         invocations.  Avoid a couple of quadratic algorithms for ...
66877         (missed_modules, missed_files): ... these, with ...
66878         (func_append, func_tmpdir): ... these new functions, from
66879         gnulib-tool.  Analogously, install traps for cleanup.
66880
66881         * tests/test-gc.c (main): Remove unused variables.
66882         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66883
66884 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66885
66886         * modules/inttostr (License): Change to LGPL.
66887
66888 2006-11-14  Eric Blake  <ebb9@byu.net>
66889
66890         * modules/tempname (License): Change to LGPL.
66891
66892 2006-11-14  Eric Blake  <ebb9@byu.net>
66893
66894         * doc/functions.texi (Function Portability): *printf functions on
66895         Cygwin now understand all POSIX size specifiers.
66896
66897 2006-11-14  Bruno Haible  <bruno@clisp.org>
66898
66899         * modules/c-ctype (License): Change to LGPL.
66900
66901 2006-11-12  Bruno Haible  <bruno@clisp.org>
66902
66903         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66904         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66905         for GNOME libraries, for which the include files are installed in
66906         subdirectories of $prefix/include.
66907
66908 2006-11-12  Bruno Haible  <bruno@clisp.org>
66909
66910         * m4/lib-link.m4: Require at least autoconf-2.54.
66911         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66912         name to underscores for the --with option.
66913
66914 2006-11-13  Bruno Haible  <bruno@clisp.org>
66915
66916         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66917         the tests directory.
66918         Reported by Ralf Wildenhues.
66919
66920 2006-11-13  Bruno Haible  <bruno@clisp.org>
66921
66922         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66923         (func_emit_initmacro_end): Undo the override here.
66924         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66925         Works around the famous automake error in coreutils.
66926
66927 2006-11-13  Eric Blake  <ebb9@byu.net>
66928
66929         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66930         element, not its node.
66931
66932 2006-11-12  Bruno Haible  <bruno@clisp.org>
66933
66934         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66935         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66936
66937 2006-11-12  Bruno Haible  <bruno@clisp.org>
66938
66939         * gnulib-tool: New option --local-symlink.
66940         (func_usage): Document it.
66941         (lsymbolic): New variable.
66942         (func_import, func_create_testdir): If --symlink was not specified,
66943         test whether --local-symlink was specified and the file comes from
66944         the local_gnulib_dir.
66945
66946 2006-11-12  Bruno Haible  <bruno@clisp.org>
66947
66948         * gnulib-tool (func_ln): New function.
66949         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66950
66951 2006-11-12  Bruno Haible  <bruno@clisp.org>
66952
66953         Finish support for source files in subdirectories.
66954         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66955         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66956         AUTOMAKE_OPTIONS.
66957         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66958
66959 2006-11-12  Bruno Haible  <bruno@clisp.org>
66960
66961         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66962         EXTRA_lib_SOURCES augmentation.
66963         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66964
66965 2006-11-12  Jim Meyering  <jim@meyering.net>
66966
66967         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66968         file descriptors.  This also averts a failure on systems with
66969         native openat support when a traversed directory lacks "x" access.
66970         * lib/fts_.h: Include "i-ring.h"
66971         (struct FTS) [fts_fd_ring]: New member.
66972         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66973         (FCHDIR): Add parentheses.
66974         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66975         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66976         When descending, rather than simply closing the previous
66977         fts_cwd_fd value, push that file descriptor onto the ring.
66978         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66979         (fts_open): Initialize the new fd_ring member.
66980         (fts_close): Clear the ring.
66981         (fts_safe_changedir): When possible, use our new fd_ring to skip
66982         the diropen and fstat and dev/ino comparison that would normally
66983         accompany a virtual `chdir ("..")'.
66984
66985         * modules/fts (Depends-on): Add i-ring.
66986         * modules/i-ring: New module.
66987         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66988         * m4/i-ring.m4: New file.
66989
66990 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66991
66992         * gnulib-tool (func_create_testdir): Fix replacement of
66993         `build-aux' in configure.ac.  Run autotools in gltests
66994         subdirectory.
66995         (func_create_testdir, func_create_megatestdir, test): There is
66996         no need for '--force' in most autotool invocations in a new
66997         tree.  Actually fail the whole test if any of the tools, or the
66998         configure or make stages fail.
66999
67000         Sync from Automake.
67001         * build-aux/gnupload: Revert last change.  Add pointer to upload
67002         instructions of the GNU Maintenance Instructions.
67003         Suggestion by Karl Berry.
67004
67005 2006-11-10  Jim Meyering  <jim@meyering.net>
67006
67007         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67008
67009 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67010
67011         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67012         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67013         (bind_textdomain_codeset) [! ENABLE_NLS]:
67014         Evaluate all the arguments.  That way, callers get compatible behavior
67015         if the arguments have side effects.  Also, it avoids some GCC
67016         diagnostics in some cases; Joel E. Denny reported problems when Bison
67017         was configured with --enable-gcc-warnigs.
67018
67019 2006-11-10  Jim Meyering  <jim@meyering.net>
67020
67021         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67022         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67023         account.
67024
67025 2006-11-10  Jim Meyering  <jim@meyering.net>
67026
67027         * modules/inline: New file/module.
67028         * modules/xalloc (Files): Remove m4/inline.m4.
67029         (Depends-on): Add inline, instead.
67030         * modules/oset: Likewise.
67031         * modules/list: Likewise.
67032
67033 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67034
67035         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67036         Problem reported by Matthew Woehlke.
67037
67038 2006-11-09  Bruno Haible  <bruno@clisp.org>
67039
67040         * lib/tempname.c (gen_tempname): Remove variant that invokes
67041         __gen_tempname.
67042         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67043         __gen_tempname.
67044
67045 2006-11-08  Bruno Haible  <bruno@clisp.org>
67046
67047         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67048         to 'yes' instead of 'cross-compiling'.
67049
67050 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67051
67052         * lib/quotearg.h (quotearg_free): New decl.
67053         * lib/quotearg.c (quotearg_free): New function.
67054         (slot0, nslots, slotvec0, slotvec):
67055         Now file-scope so that quotearg_free can get at them.
67056
67057 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67058
67059         Sync from Automake.
67060         * build-aux/gnupload: Add missing 'gnu' to example URL.
67061         Report by Karl Berry.
67062
67063 2006-11-08  Bruno Haible  <bruno@clisp.org>
67064
67065         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67066         Suggested by Paul Eggert.
67067
67068 2006-11-08  Jim Meyering  <jim@meyering.net>
67069
67070         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67071         It's already included if !_LIBC.
67072         (fts_safe_changedir): Add a comment.
67073
67074 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67075
67076         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67077         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67078         Matthew Woehlke.
67079
67080         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67081         definitions up, to avoid colliding with change below.
67082         (static_inline) [HAVE_INLINE]: New macro.
67083         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67084         Provide extern decls when !HAVE_INLINE.  Do not define unless
67085         static_inline is defined, either by us or by xmalloc.c.  Use
67086         static_inline rather than static inline.
67087         (XCALLOC): Optimize sizeof(T) = 1 case.
67088         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67089
67090 2006-11-07  Bruno Haible  <bruno@clisp.org>
67091
67092         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67093         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67094         AC_C_INLINE.
67095         * modules/xalloc (Files): Add m4/inline.m4.
67096
67097 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67098
67099         * README: Fix typo.
67100         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67101         (Miscellanous Notes): ...from this.
67102
67103 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67106         Mention that offsetof should be used instead of sizeof.
67107         From Bruno Haible.
67108
67109 2006-11-07  Bruno Haible  <bruno@clisp.org>
67110
67111         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67112
67113 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67114
67115         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67116         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67117         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67118         (gl_tree_add_before, gl_tree_add_after):
67119         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67120         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67121         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67122         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67123         (gl_linked_add_after, gl_linked_add_at): Likewise.
67124         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67125         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67126         (gl_tree_add_before, gl_tree_add_after): Likewise.
67127         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67128         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67129         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67130
67131 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67132
67133         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67134
67135 2006-11-06  Bruno Haible  <bruno@clisp.org>
67136
67137         * m4/inline.m4: New file.
67138         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67139         * modules/list (Files): Add m4/inline.m4.
67140         * modules/oset (Files): Likewise.
67141
67142 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67143
67144         * lib/idcache.c: Include <stddef.h>, for offsetof.
67145         (struct userid.name): Change from char * to a flexible array member.
67146         All uses changed.
67147         * modules/idcache (Depends-on): Add flexmember.
67148
67149         * MODULES.html.sh (Core language properties): New module flexmember.
67150         * modules/flexmember, m4/flexmember.m4: New files.
67151
67152         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67153         inline functions that are identical with the old xnmalloc_inline,
67154         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67155         that we can avoid some unnecessary integer multiplications and
67156         divisions in the common case where the element size is known at
67157         compile time.
67158         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67159         needed.
67160         (xnboundedmalloc): Remove.
67161         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67162         arguments, for consistency with rest of this header.
67163         (xcharalloc): Rewrite using XNMALLOC.
67164         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67165         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67166         versions have been moved to lib/xalloc.h and renamed to be the
67167         non-*_inline versions.
67168         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67169         and xnrealloc functions, since those functions are now inline and
67170         now call us.
67171         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67172         renaming described above.
67173         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67174         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67175         captures the dependency in AC_C_INLINE.
67176
67177         New module canonicalize-lgpl, proposed by Charles Wilson in
67178         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67179         with a few small changes afterwards.
67180         * MODULES.html.sh (File system functions): New module
67181         canonicalize-lgpl.
67182         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67183         and canonicalize_file_name.
67184         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67185         * modules/canonicalize-lgpl: New files.
67186
67187 2006-11-05  Bruno Haible  <bruno@clisp.org>
67188
67189         * gnulib-tool (func_import, func_create_testdir): Create directories
67190         also for files in subdirectories of lib/.
67191
67192 2006-11-05  Bruno Haible  <bruno@clisp.org>
67193
67194         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67195         ANSI C compliant.
67196
67197 2006-11-03  Bruno Haible  <bruno@clisp.org>
67198
67199         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67200         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67201         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67202         (xnboundedmalloc): New inline function.
67203         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67204         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67205         xmalloc.
67206         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67207         xmalloc.
67208         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67209         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67210         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67211         xmalloc.
67212         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67213         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67214         xmalloc.
67215         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67216         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67217         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67218         xmalloc.
67219         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67220         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67221         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67222         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67223         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67224         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67225         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67226
67227 2006-11-03  Bruno Haible  <bruno@clisp.org>
67228
67229         * lib/c-ctype.h [C++]: Define functions without name mangling.
67230         * lib/fwriteerror.h [C++]: Likewise.
67231         * lib/gcd.h [C++]: Likewise.
67232         * lib/linebreak.h [C++]: Likewise.
67233
67234 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67237         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67238         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67239         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67240         Check for functions and headers just once.
67241         Check for declaration of canonicalize_file_name.
67242         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67243
67244 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67245
67246         * gnulib-tool (func_import): Fix typo in actioncmd.
67247
67248 2006-11-02  Bruno Haible  <bruno@clisp.org>
67249
67250         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67251         newline sequence in the Makefile.am snippet as a space, like "make"
67252         does.
67253         Reported by Roger Persson <perrog@gmail.com>.
67254
67255 2006-11-01  Bruno Haible  <bruno@clisp.org>
67256
67257         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67258         already declared in <string.h>.
67259         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67260
67261 2006-11-01  Bruno Haible  <bruno@clisp.org>
67262
67263         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67264         * lib/strcase.h: Include <string.h>.
67265         (strcasecmp): Define to rpl_strcasecmp here.
67266
67267 2006-11-01  Bruno Haible  <bruno@clisp.org>
67268
67269         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67270
67271 2006-11-01  Eric Blake  <ebb9@byu.net>
67272
67273         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67274
67275         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67276
67277 2006-10-29  Bruno Haible  <bruno@clisp.org>
67278
67279         Make it compile in C++ mode.
67280         * lib/full-write.c (full_rw): Add a cast.
67281
67282 2006-11-01  Bruno Haible  <bruno@clisp.org>
67283
67284         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67285         be POSIX compliant.
67286         Reported by Roger Persson <perrog@gmail.com>.
67287
67288 2006-11-01  Eric Blake  <ebb9@byu.net>
67289
67290         * lib/getopt_.h: Fix comments.
67291
67292 2006-10-31  Eric Blake  <ebb9@byu.net>
67293
67294         * modules/tmpdir (Depends-on): Add sys_stat.
67295         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67296         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67297         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67298         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67299         tempname.
67300
67301 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         Avoid some C++ diagnostics reported by Bruno Haible.
67304         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67305         xmalloc.
67306         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67307         (struct slotvec): Move to top level.
67308         (quotearg_n_options): Rewrite to avoid xmalloc.
67309         * lib/xalloc.h (xcharalloc): New function.
67310         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67311         [defined __cplusplus]: Add function template that provides result
67312         type propagation.  This part of the change is from Bruno Haible.
67313
67314 2006-10-29  Bruno Haible  <bruno@clisp.org>
67315
67316         Make it compile in C++ mode.
67317         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67318         * lib/strnlen1.c (strnlen1): Cast memchr result.
67319         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67320         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67321         (create_temp_dir): Rename local variable 'template'.
67322         (compile_csharp_using_sscli): Add cast.
67323         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67324         * lib/findprog.c (find_in_path): Likewise.
67325         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67326         * lib/wait-process.c (register_slave_subprocess): Likewise.
67327
67328 2006-10-22  Bruno Haible  <bruno@clisp.org>
67329
67330         * modules/tsearch: New file.
67331         * lib/tsearch.h: New file.
67332         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67333         * m4/tsearch.m4: New file.
67334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67335
67336 2006-10-29  Eric Blake  <ebb9@byu.net>
67337
67338         * lib/arcfour.c: Assume config.h.
67339         * lib/arctwo.c: Likewise.
67340         * lib/base64.c: Likewise.
67341         * lib/check-version.c: Likewise.
67342         * lib/crc.c: Likewise.
67343         * lib/des.c: Likewise.
67344         * lib/gc-gnulib.c: Likewise.
67345         * lib/gc-libgcrypt.c: Likewise.
67346         * lib/gc-pbkdf2-sha1.c: Likewise.
67347         * lib/getaddrinfo.c: Likewise.
67348         * lib/getdelim.c: Likewise.
67349         * lib/getline.c: Likewise.
67350         * lib/hmac-md5.c: Likewise.
67351         * lib/hmac-sha1.c: Likewise.
67352         * lib/iconvme.c: Likewise.
67353         * lib/md2.c: Likewise.
67354         * lib/md4.c: Likewise.
67355         * lib/memxor.c: Likewise.
67356         * lib/read-file.c: Likewise.
67357         * lib/readline.c: Likewise.
67358         * lib/rijndael-alg-fst.c: Likewise.
67359         * lib/rijndael-api-fst.c: Likewise.
67360         * lib/xgetdomainname.c: Likewise.
67361
67362 2006-10-28  Eric Blake  <ebb9@byu.net>
67363
67364         * lib/xstrndup.c: Assume config.h.
67365
67366 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67367
67368         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67369         stat-macros.h is now for our own macros, whereas stat_h is for
67370         macros in the <sys/stat.h> name space.
67371         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67372         (STAT_MACROS_H): Remove.
67373         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67374         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67375         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67376         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67377         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67378         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67379         Move these macros to ...
67380         * lib/stat_.h: here.  Don't include stat-macros.h.
67381         * lib/canonicalize.c: Don't include stat-macros.h.
67382         * lib/chown.c: Likewise.
67383         * lib/euidaccess.c: Likewise.
67384         * lib/file-type.c: Likewise.
67385         * lib/filemode.c: Likewise.
67386         * lib/glob.c: Likewise.
67387         * lib/isapipe.c: Likewise.
67388         * lib/lchown.c: Likewise.
67389         * lib/lstat.c: Likewise.
67390         * lib/mkdir-p.c: Likewise.
67391         * lib/rmdir.c: Likewise.
67392         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67393         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67394         unless mkdir isn't declared, to speed up 'configure'.
67395         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67396         would define all the S_* symbols.
67397         * modules/canonicalize (Depends-on):
67398         Depend on sys_stat, not stat-macros.
67399         * modules/chown: Likewise.
67400         * modules/euidaccess: Likewise.
67401         * modules/filemode: Likewise.
67402         * modules/file-type: Likewise.
67403         * modules/glob: Likewise.
67404         * modules/isapipe: Likewise.
67405         * modules/lchown: Likewise.
67406         * modules/lstat: Likewise.
67407         * modules/mkancesdirs: Likewise.
67408         * modules/rmdir: Likewise.
67409         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67410         * modules/modechange: Likewise.
67411         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67412         (configure.ac): Remove gl_STAT_MACROS.
67413         * modules/sys_stat (Depends-on): Remove stat-macros.
67414
67415 2006-10-27  Bruno Haible  <bruno@clisp.org>
67416
67417         * m4/signed.m4: Remove file.
67418         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67419         invocation.
67420         * modules/vasnprintf (Files): Remove m4/signed.m4.
67421
67422 2006-10-27  Bruno Haible  <bruno@clisp.org>
67423
67424         Update to GNU gettext 0.16.
67425         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67426         m4/inttypes-h.m4, m4/signed.m4.
67427         * m4/gettext.m4: Update to GNU gettext 0.16.
67428         * m4/intl.m4: New file, from GNU gettext.
67429         * m4/intldir.m4: New file, from GNU gettext.
67430         * config/srclist.txt: Update
67431
67432 2006-10-27  Eric Blake  <ebb9@byu.net>
67433
67434         * MODULES.html.sh: Document tempname.
67435         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67436         dependencies.
67437         (Files): Move lib/tempname.c...
67438         * modules/tempname: ...to this new module.
67439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67440         (gl_PREREQ_TEMPNAME): Move...
67441         * m4/tempname.m4: ...to this new file.
67442         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67443         * modules/sys_stat (Depends-on): Add stat-macros.
67444         * lib/stat_.h (includes): Pick up stat macros.
67445         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67446         if stat macros are broken.
67447         * lib/tempname.c (includes): No need to include "stat-macros.h".
67448         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67449         (direxists, __path_search) [!_LIBC]: Don't compile these in
67450         gnulib; the tmpdir module covers that.
67451         * lib/tempname.h: New file.
67452
67453 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * COPYING: Explain how gnulib-tool converts licence headers.
67456         Almost all wording by Eric Blake.
67457
67458 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67459
67460         * lib/mbchar.h (is_basic_table): Make read-only.
67461         * lib/mbchar.c (is_basic_table): Likewise.
67462         Reported by John Darrington.
67463
67464 2006-10-25  Bruno Haible  <bruno@clisp.org>
67465
67466         * lib/progname.h (set_program_name): Undefine before defining.
67467
67468 2006-10-25  Bruno Haible  <bruno@clisp.org>
67469
67470         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67471         false for non-gcc C++ compilers.
67472         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67473
67474 2006-10-24  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67477         iconv implementations like Irix iconv.
67478
67479 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67480
67481         * modules/vararrays: New file.
67482         * m4/vararrays.m4: New file, taken from diffutils.
67483         * MODULES.html.sh: New module vararrays.
67484
67485 2006-10-24  Karl Berry  <karl@gnu.org>
67486
67487         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67488         Don't call GNU Unix.
67489
67490 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67491
67492         * users.txt: Add Libtool.
67493
67494         Sync from Libtool:
67495
67496         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67497
67498         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67499         to gnulib's policy of including config.h unconditionally.
67500
67501 2006-10-24  Bruno Haible  <bruno@clisp.org>
67502
67503         * modules/wcwidth (Files): Add m4/wint_t.m4.
67504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67505         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67506
67507 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67508
67509         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67510         to pacify GCC with some -W flags enabled.  Problem reported by
67511         Bruno Haible.
67512
67513 2006-10-24  Jim Meyering  <jim@meyering.net>
67514
67515         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67516         Reported by Karl Berry.
67517
67518 2006-10-23  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67521
67522 2006-10-24  Bruno Haible  <bruno@clisp.org>
67523
67524         * lib/gl_list.h: Use C comment style, not C++ comment style.
67525
67526 2006-10-23  Eric Blake  <ebb9@byu.net>
67527
67528         * lib/getaddrinfo.c (includes): Add missing include.
67529
67530 2006-10-23  Bruno Haible  <bruno@clisp.org>
67531             Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         Ability to rename obstack_free.
67534         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67535         obstack_free.
67536         (obstack_free): Invoke the __obstack_free macro.
67537         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67538
67539 2006-10-23  Bruno Haible  <bruno@clisp.org>
67540             Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67543         __argc, __argv from the declaration. (They are defined as macros on
67544         mingw.)
67545
67546 2006-10-22  Bruno Haible  <bruno@clisp.org>
67547
67548         * doc/gnulib-intro.texi: New file.
67549         * doc/gnulib.texi: Include it.
67550
67551 2006-10-21  Bruno Haible  <bruno@clisp.org>
67552
67553         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67554         "Introduction", "Miscellanous Notes", "Particular Modules".
67555
67556 2006-10-21  Bruno Haible  <bruno@clisp.org>
67557
67558         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67559         Change mostlyclean-local rule to avoid sh syntax error from bash
67560         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67561
67562 2006-10-23  Jim Meyering  <jim@meyering.net>
67563
67564         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67565         in place of snprintf.
67566
67567         * modules/inttostr (Files): Add lib/uinttostr.c.
67568         * lib/uinttostr.c (inttostr): New file/function.
67569         * lib/inttostr.h (uinttostr): Declare.
67570         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67571         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67572         Add uinttostr.
67573         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67574
67575 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67576
67577         * lib/canonicalize.c (ELOOP): Define if not already defined.
67578         Problem reported by Bruno Haible in
67579         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67580
67581 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67584         Problem reported by Perry Smith and Ville Laurikari.
67585
67586         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67587         uses.
67588
67589 2006-10-19  Bruno Haible  <bruno@clisp.org>
67590
67591         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67592         for mingw.
67593
67594 2006-10-19  Bruno Haible  <bruno@clisp.org>
67595
67596         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67597         Needed for mingw.
67598
67599 2006-10-19  Bruno Haible  <bruno@clisp.org>
67600
67601         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67602
67603 2006-10-19  Bruno Haible  <bruno@clisp.org>
67604
67605         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67606         it.
67607
67608 2006-10-19  Bruno Haible  <bruno@clisp.org>
67609
67610         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67611         invocation.
67612
67613 2006-10-19  Bruno Haible  <bruno@clisp.org>
67614
67615         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67616         mountlist by default.
67617
67618 2006-10-16  Bruno Haible  <bruno@clisp.org>
67619
67620         * lib/c-strstr.c: Include c-strstr.h.
67621
67622 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67623
67624         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67625         in a slash.
67626
67627 2006-10-18  Bruno Haible  <bruno@clisp.org>
67628
67629         * lib/lock.h [C++]: Wrap definitions in extern "C".
67630
67631 2006-10-18  Bruno Haible  <bruno@clisp.org>
67632
67633         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67634         gl_LIBOBJS list.
67635
67636 2006-10-18  Bruno Haible  <bruno@clisp.org>
67637
67638         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67639
67640 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * lib/xstrtol.h: Include gettext.h.
67643         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67644         Problem reported by Eric Blake.
67645         * modules/xstrtol (Depends-on): Add gettext-h.
67646
67647 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67648
67649         * lib/strftime.c (advance): New macro.
67650         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67651         incomplete type, so you can't add 0 to it.  Problem and patch
67652         reported by Eelco Dolstra for dietlibc.
67653
67654 2006-10-18  Jim Meyering  <jim@meyering.net>
67655
67656         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67657         type for a local, and rename it: s/up/user_proc/.
67658
67659 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67660
67661         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67662         READ_UTMP_USER_PROCESS.
67663         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67664
67665 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67666
67667         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67668         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67669
67670 2006-10-17  Eric Blake  <ebb9@byu.net>
67671
67672         * lib/sigprocmask.c (sigprocmask): Fix typo.
67673
67674         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67675
67676         * modules/clean-temp (Makefile.am): Don't add to make output...
67677         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67678         config.h.
67679
67680 2006-10-17  Bruno Haible  <bruno@clisp.org>
67681
67682         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67683         differently if DEFAULT_TEXT_DOMAIN is set.
67684
67685 2006-10-16  Bruno Haible  <bruno@clisp.org>
67686
67687         * lib/clean-temp.c: Include fwriteerror.h.
67688
67689 2006-10-16  Bruno Haible  <bruno@clisp.org>
67690
67691         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67692
67693 2006-10-16  Bruno Haible  <bruno@clisp.org>
67694
67695         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67696         * lib/sigprocmask.h: Include <sys/types.h>.
67697         (sigset_t): Use the system's definition if present.
67698
67699 2006-10-17  Eric Blake  <ebb9@byu.net>
67700
67701         * lib/xvasprintf.c (includes): Assume config.h.
67702         * lib/xasprintf.c (includes): Likewise.
67703
67704 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67707         at least as wide as intmax_t.
67708
67709 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67710
67711         (Imported from Automake.)
67712         * build-aux/gnupload: Update to version 1.1 of directive file.
67713
67714 2006-10-16  Eric Blake  <ebb9@byu.net>
67715
67716         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67717         match Automake 1.10a.
67718
67719 2006-10-14  Bruno Haible  <bruno@clisp.org>
67720
67721         * modules/sigprocmask: New file.
67722         * lib/sigprocmask.h: New file.
67723         * lib/sigprocmask.c: New file.
67724         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67725         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67726         request sigprocmask.o.
67727         (gl_PREREQ_SIGPROCMASK): New macro.
67728         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67729         (Depends-on): Add sigprocmask.
67730         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67731         gt_SIGNALBLOCKING. Test for 'raise' only once.
67732         * lib/fatal-signal.c: Include sigprocmask.h.
67733         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67734         unblock_fatal_signals): Define always.
67735         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67736         sigprocmask.
67737
67738 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         Sync from Automake.
67741         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67742         which incorrectly sets the mode of an existing destination
67743         directory.  In some cases the unpatched install-sh could do the
67744         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67745         system.  We hope this is rare in practice, but it's clearly worth
67746         fixing.  Problem reported by Alex Unleashed in
67747         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67748         Also, don't bother to check for -m bugs unless we're using -m;
67749         suggested by Stepan Kasal.
67750
67751 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67752
67753         Sync from Automake.
67754         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67755         `-c' flag, so they appear at the same position as in %FASTDEP%
67756         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67757         which ignores unknown options only after the first non-option.
67758         Bug report against M4 by Nelson H. F. Beebe.
67759
67760 2006-10-13  Jim Meyering  <jim@meyering.net>
67761
67762         Fix a bug in yesterday's change.
67763         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67764         p->fts_statp->st_dev would be used uninitialized.
67765         Ensures that we always call fts_stat on the very first entry.
67766         Miklos Szeredi reported that find -xdev stopped working.
67767
67768 2006-10-12  Bruno Haible  <bruno@clisp.org>
67769
67770         * gnulib-tool (func_get_automake_snippet): Append an automatically
67771         computed EXTRA_DIST augmentation.
67772         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67773         * modules/alloca-opt (Makefile.am): Likewise.
67774         * modules/allocsa (Makefile.am): Likewise.
67775         * modules/arcfour (Makefile.am): Likewise.
67776         * modules/arctwo (Makefile.am): Likewise.
67777         * modules/argmatch (Makefile.am): Likewise.
67778         * modules/argz (Makefile.am): Likewise.
67779         * modules/atexit (Makefile.am): Likewise.
67780         * modules/backupfile (Makefile.am): Likewise.
67781         * modules/byteswap (Makefile.am): Likewise.
67782         * modules/c-strtod (Makefile.am): Likewise.
67783         * modules/c-strtold (Makefile.am): Likewise.
67784         * modules/calloc (Makefile.am): Likewise.
67785         * modules/canon-host (Makefile.am): Likewise.
67786         * modules/canonicalize (Makefile.am): Likewise.
67787         * modules/chdir-long (Makefile.am): Likewise.
67788         * modules/chdir-safer (Makefile.am): Likewise.
67789         * modules/check-version (Makefile.am): Likewise.
67790         * modules/chown (Makefile.am): Likewise.
67791         * modules/cloexec (Makefile.am): Likewise.
67792         * modules/close-stream (Makefile.am): Likewise.
67793         * modules/closeout (Makefile.am): Likewise.
67794         * modules/crc (Makefile.am): Likewise.
67795         * modules/csharpexec (Makefile.am): Likewise.
67796         * modules/cycle-check (Makefile.am): Likewise.
67797         * modules/des (Makefile.am): Likewise.
67798         * modules/dev-ino (Makefile.am): Likewise.
67799         * modules/dirfd (Makefile.am): Likewise.
67800         * modules/dirname (Makefile.am): Likewise.
67801         * modules/dup2 (Makefile.am): Likewise.
67802         * modules/eealloc (Makefile.am): Likewise.
67803         * modules/error (Makefile.am): Likewise.
67804         * modules/euidaccess (Makefile.am): Likewise.
67805         * modules/exclude (Makefile.am): Likewise.
67806         * modules/exitfail (Makefile.am): Likewise.
67807         * modules/fcntl-safer (Makefile.am): Likewise.
67808         * modules/fcntl (Makefile.am): Likewise.
67809         * modules/file-type (Makefile.am): Likewise.
67810         * modules/fileblocks (Makefile.am): Likewise.
67811         * modules/filemode (Makefile.am): Likewise.
67812         * modules/filenamecat (Makefile.am): Likewise.
67813         * modules/fnmatch (Makefile.am): Likewise.
67814         * modules/fopen-safer (Makefile.am): Likewise.
67815         * modules/fpending (Makefile.am): Likewise.
67816         * modules/fprintftime (Makefile.am): Likewise.
67817         * modules/free (Makefile.am): Likewise.
67818         * modules/fsusage (Makefile.am): Likewise.
67819         * modules/ftruncate (Makefile.am): Likewise.
67820         * modules/fts (Makefile.am): Likewise.
67821         * modules/gc-arcfour (Makefile.am): Likewise.
67822         * modules/gc-des (Makefile.am): Likewise.
67823         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67824         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67825         * modules/gc-md4 (Makefile.am): Likewise.
67826         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67827         * modules/gc-sha1 (Makefile.am): Likewise.
67828         * modules/gc (Makefile.am): Likewise.
67829         * modules/getaddrinfo (Makefile.am): Likewise.
67830         * modules/getcwd (Makefile.am): Likewise.
67831         * modules/getdelim (Makefile.am): Likewise.
67832         * modules/getdomainname (Makefile.am): Likewise.
67833         * modules/getgroups (Makefile.am): Likewise.
67834         * modules/gethostname (Makefile.am): Likewise.
67835         * modules/gethrxtime (Makefile.am): Likewise.
67836         * modules/getline (Makefile.am): Likewise.
67837         * modules/getloadavg (Makefile.am): Likewise.
67838         * modules/getlogin_r (Makefile.am): Likewise.
67839         * modules/getndelim2 (Makefile.am): Likewise.
67840         * modules/getopt (Makefile.am): Likewise.
67841         * modules/getpagesize (Makefile.am): Likewise.
67842         * modules/getpass-gnu (Makefile.am): Likewise.
67843         * modules/getpass (Makefile.am): Likewise.
67844         * modules/getsubopt (Makefile.am): Likewise.
67845         * modules/gettime (Makefile.am): Likewise.
67846         * modules/gettimeofday (Makefile.am): Likewise.
67847         * modules/getugroups (Makefile.am): Likewise.
67848         * modules/getusershell (Makefile.am): Likewise.
67849         * modules/glob (Makefile.am): Likewise.
67850         * modules/group-member (Makefile.am): Likewise.
67851         * modules/hard-locale (Makefile.am): Likewise.
67852         * modules/hash (Makefile.am): Likewise.
67853         * modules/hmac-md5 (Makefile.am): Likewise.
67854         * modules/hmac-sha1 (Makefile.am): Likewise.
67855         * modules/human (Makefile.am): Likewise.
67856         * modules/idcache (Makefile.am): Likewise.
67857         * modules/imaxabs (Makefile.am): Likewise.
67858         * modules/imaxdiv (Makefile.am): Likewise.
67859         * modules/inet_ntop (Makefile.am): Likewise.
67860         * modules/inet_pton (Makefile.am): Likewise.
67861         * modules/intprops (Makefile.am): Likewise.
67862         * modules/inttostr (Makefile.am): Likewise.
67863         * modules/inttypes (Makefile.am): Likewise.
67864         * modules/isapipe (Makefile.am): Likewise.
67865         * modules/javaversion (Makefile.am): Likewise.
67866         * modules/lchmod (Makefile.am): Likewise.
67867         * modules/lchown (Makefile.am): Likewise.
67868         * modules/localcharset (Makefile.am): Likewise.
67869         * modules/long-options (Makefile.am): Likewise.
67870         * modules/lstat (Makefile.am): Likewise.
67871         * modules/malloc (Makefile.am): Likewise.
67872         * modules/mathl (Makefile.am): Likewise.
67873         * modules/mbchar (Makefile.am): Likewise.
67874         * modules/md2 (Makefile.am): Likewise.
67875         * modules/md4 (Makefile.am): Likewise.
67876         * modules/md5 (Makefile.am): Likewise.
67877         * modules/memcasecmp (Makefile.am): Likewise.
67878         * modules/memchr (Makefile.am): Likewise.
67879         * modules/memcmp (Makefile.am): Likewise.
67880         * modules/memcoll (Makefile.am): Likewise.
67881         * modules/memcpy (Makefile.am): Likewise.
67882         * modules/memmem (Makefile.am): Likewise.
67883         * modules/memmove (Makefile.am): Likewise.
67884         * modules/mempcpy (Makefile.am): Likewise.
67885         * modules/memrchr (Makefile.am): Likewise.
67886         * modules/memset (Makefile.am): Likewise.
67887         * modules/memxor (Makefile.am): Likewise.
67888         * modules/mkancesdirs (Makefile.am): Likewise.
67889         * modules/mkdir-p (Makefile.am): Likewise.
67890         * modules/mkdir (Makefile.am): Likewise.
67891         * modules/mkdtemp (Makefile.am): Likewise.
67892         * modules/mkstemp (Makefile.am): Likewise.
67893         * modules/mktime (Makefile.am): Likewise.
67894         * modules/modechange (Makefile.am): Likewise.
67895         * modules/mountlist (Makefile.am): Likewise.
67896         * modules/nanosleep (Makefile.am): Likewise.
67897         * modules/obstack (Makefile.am): Likewise.
67898         * modules/openat (Makefile.am): Likewise.
67899         * modules/pagealign_alloc (Makefile.am): Likewise.
67900         * modules/pathmax (Makefile.am): Likewise.
67901         * modules/physmem (Makefile.am): Likewise.
67902         * modules/poll (Makefile.am): Likewise.
67903         * modules/posixtm (Makefile.am): Likewise.
67904         * modules/posixver (Makefile.am): Likewise.
67905         * modules/putenv (Makefile.am): Likewise.
67906         * modules/quote (Makefile.am): Likewise.
67907         * modules/quotearg (Makefile.am): Likewise.
67908         * modules/raise (Makefile.am): Likewise.
67909         * modules/read-file (Makefile.am): Likewise.
67910         * modules/readline (Makefile.am): Likewise.
67911         * modules/readlink (Makefile.am): Likewise.
67912         * modules/readtokens (Makefile.am): Likewise.
67913         * modules/readutmp (Makefile.am): Likewise.
67914         * modules/realloc (Makefile.am): Likewise.
67915         * modules/regex (Makefile.am): Likewise.
67916         * modules/rename-dest-slash (Makefile.am): Likewise.
67917         * modules/rename (Makefile.am): Likewise.
67918         * modules/rijndael (Makefile.am): Likewise.
67919         * modules/rmdir (Makefile.am): Likewise.
67920         * modules/rpmatch (Makefile.am): Likewise.
67921         * modules/safe-read (Makefile.am): Likewise.
67922         * modules/safe-write (Makefile.am): Likewise.
67923         * modules/same-inode (Makefile.am): Likewise.
67924         * modules/same (Makefile.am): Likewise.
67925         * modules/save-cwd (Makefile.am): Likewise.
67926         * modules/savedir (Makefile.am): Likewise.
67927         * modules/setenv (Makefile.am): Likewise.
67928         * modules/settime (Makefile.am): Likewise.
67929         * modules/sha1 (Makefile.am): Likewise.
67930         * modules/sig2str (Makefile.am): Likewise.
67931         * modules/snprintf (Makefile.am): Likewise.
67932         * modules/stat-macros (Makefile.am): Likewise.
67933         * modules/stat-time (Makefile.am): Likewise.
67934         * modules/stdbool (Makefile.am): Likewise.
67935         * modules/stdint (Makefile.am): Likewise.
67936         * modules/stdlib-safer (Makefile.am): Likewise.
67937         * modules/stpcpy (Makefile.am): Likewise.
67938         * modules/stpncpy (Makefile.am): Likewise.
67939         * modules/strcase (Makefile.am): Likewise.
67940         * modules/strcasestr (Makefile.am): Likewise.
67941         * modules/strchrnul (Makefile.am): Likewise.
67942         * modules/strcspn (Makefile.am): Likewise.
67943         * modules/strdup (Makefile.am): Likewise.
67944         * modules/strerror (Makefile.am): Likewise.
67945         * modules/strftime (Makefile.am): Likewise.
67946         * modules/strndup (Makefile.am): Likewise.
67947         * modules/strnlen (Makefile.am): Likewise.
67948         * modules/strpbrk (Makefile.am): Likewise.
67949         * modules/strsep (Makefile.am): Likewise.
67950         * modules/strstr (Makefile.am): Likewise.
67951         * modules/strtod (Makefile.am): Likewise.
67952         * modules/strtoimax (Makefile.am): Likewise.
67953         * modules/strtok_r (Makefile.am): Likewise.
67954         * modules/strtol (Makefile.am): Likewise.
67955         * modules/strtoll (Makefile.am): Likewise.
67956         * modules/strtoul (Makefile.am): Likewise.
67957         * modules/strtoull (Makefile.am): Likewise.
67958         * modules/strtoumax (Makefile.am): Likewise.
67959         * modules/strverscmp (Makefile.am): Likewise.
67960         * modules/sys_socket (Makefile.am): Likewise.
67961         * modules/sys_stat (Makefile.am): Likewise.
67962         * modules/sysexits (Makefile.am): Likewise.
67963         * modules/time_r (Makefile.am): Likewise.
67964         * modules/timegm (Makefile.am): Likewise.
67965         * modules/timespec (Makefile.am): Likewise.
67966         * modules/tmpfile-safer (Makefile.am): Likewise.
67967         * modules/trim (Makefile.am): Likewise.
67968         * modules/unistd-safer (Makefile.am): Likewise.
67969         * modules/unlinkdir (Makefile.am): Likewise.
67970         * modules/unlocked-io (Makefile.am): Likewise.
67971         * modules/userspec (Makefile.am): Likewise.
67972         * modules/utime (Makefile.am): Likewise.
67973         * modules/utimecmp (Makefile.am): Likewise.
67974         * modules/utimens (Makefile.am): Likewise.
67975         * modules/vasnprintf (Makefile.am): Likewise.
67976         * modules/vasprintf (Makefile.am): Likewise.
67977         * modules/vsnprintf (Makefile.am): Likewise.
67978         * modules/xalloc (Makefile.am): Likewise.
67979         * modules/xgetcwd (Makefile.am): Likewise.
67980         * modules/xnanosleep (Makefile.am): Likewise.
67981         * modules/xreadlink (Makefile.am): Likewise.
67982         * modules/xstrtod (Makefile.am): Likewise.
67983         * modules/xstrtol (Makefile.am): Likewise.
67984         * modules/xstrtold (Makefile.am): Likewise.
67985         * modules/yesno (Makefile.am): Likewise.
67986         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67987
67988 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67989
67990         * modules/error (Makefile.am): Distribute files through
67991         EXTRA_DIST, not lib_SOURCES.
67992
67993 2006-10-12  Eric Blake  <ebb9@byu.net>
67994
67995         * modules/error (Makefile.am): Distribute files in /lib.
67996         * modules/obstack (Makefile.am): Likewise.
67997
67998 2006-10-12  Bruno Haible  <bruno@clisp.org>
67999
68000         * modules/acl (Makefile.am): Distribute all files in lib/ through
68001         EXTRA_DIST.
68002         * modules/arcfour (Makefile.am): Likewise.
68003         * modules/arctwo (Makefile.am): Likewise.
68004         * modules/argmatch (Makefile.am): Likewise.
68005         * modules/argz (Makefile.am): Likewise.
68006         * modules/atexit (Makefile.am): Likewise.
68007         * modules/backupfile (Makefile.am): Likewise.
68008         * modules/c-strtod (Makefile.am): Likewise.
68009         * modules/c-strtold (Makefile.am): Likewise.
68010         * modules/calloc (Makefile.am): Likewise.
68011         * modules/canon-host (Makefile.am): Likewise.
68012         * modules/canonicalize (Makefile.am): Likewise.
68013         * modules/chdir-long (Makefile.am): Likewise.
68014         * modules/chdir-safer (Makefile.am): Likewise.
68015         * modules/check-version (Makefile.am): Likewise.
68016         * modules/chown (Makefile.am): Likewise.
68017         * modules/cloexec (Makefile.am): Likewise.
68018         * modules/close-stream (Makefile.am): Likewise.
68019         * modules/closeout (Makefile.am): Likewise.
68020         * modules/crc (Makefile.am): Likewise.
68021         * modules/cycle-check (Makefile.am): Likewise.
68022         * modules/des (Makefile.am): Likewise.
68023         * modules/dirfd (Makefile.am): Likewise.
68024         * modules/dirname (Makefile.am): Likewise.
68025         * modules/dup2 (Makefile.am): Likewise.
68026         * modules/euidaccess (Makefile.am): Likewise.
68027         * modules/exclude (Makefile.am): Likewise.
68028         * modules/exitfail (Makefile.am): Likewise.
68029         * modules/fcntl-safer (Makefile.am): Likewise.
68030         * modules/file-type (Makefile.am): Likewise.
68031         * modules/fileblocks (Makefile.am): Likewise.
68032         * modules/filemode (Makefile.am): Likewise.
68033         * modules/filenamecat (Makefile.am): Likewise.
68034         * modules/fnmatch (Makefile.am): Likewise.
68035         * modules/fopen-safer (Makefile.am): Likewise.
68036         * modules/fpending (Makefile.am): Likewise.
68037         * modules/fprintftime (Makefile.am): Likewise.
68038         * modules/free (Makefile.am): Likewise.
68039         * modules/fsusage (Makefile.am): Likewise.
68040         * modules/ftruncate (Makefile.am): Likewise.
68041         * modules/fts (Makefile.am): Likewise.
68042         * modules/gc (Makefile.am): Likewise.
68043         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68044         * modules/getaddrinfo (Makefile.am): Likewise.
68045         * modules/getcwd (Makefile.am): Likewise.
68046         * modules/getdelim (Makefile.am): Likewise.
68047         * modules/getdomainname (Makefile.am): Likewise.
68048         * modules/getgroups (Makefile.am): Likewise.
68049         * modules/gethostname (Makefile.am): Likewise.
68050         * modules/gethrxtime (Makefile.am): Likewise.
68051         * modules/getline (Makefile.am): Likewise.
68052         * modules/getloadavg (Makefile.am): Likewise.
68053         * modules/getlogin_r (Makefile.am): Likewise.
68054         * modules/getopt (Makefile.am): Likewise.
68055         * modules/getpass (Makefile.am): Likewise.
68056         * modules/getpass-gnu (Makefile.am): Likewise.
68057         * modules/getsubopt (Makefile.am): Likewise.
68058         * modules/gettime (Makefile.am): Likewise.
68059         * modules/gettimeofday (Makefile.am): Likewise.
68060         * modules/getugroups (Makefile.am): Likewise.
68061         * modules/getusershell (Makefile.am): Likewise.
68062         * modules/glob (Makefile.am): Likewise.
68063         * modules/group-member (Makefile.am): Likewise.
68064         * modules/hard-locale (Makefile.am): Likewise.
68065         * modules/hash (Makefile.am): Likewise.
68066         * modules/hmac-md5 (Makefile.am): Likewise.
68067         * modules/hmac-sha1 (Makefile.am): Likewise.
68068         * modules/human (Makefile.am): Likewise.
68069         * modules/idcache (Makefile.am): Likewise.
68070         * modules/imaxabs (Makefile.am): Likewise.
68071         * modules/imaxdiv (Makefile.am): Likewise.
68072         * modules/inet_ntop (Makefile.am): Likewise.
68073         * modules/inet_pton (Makefile.am): Likewise.
68074         * modules/inttostr (Makefile.am): Likewise.
68075         * modules/isapipe (Makefile.am): Likewise.
68076         * modules/lchown (Makefile.am): Likewise.
68077         * modules/long-options (Makefile.am): Likewise.
68078         * modules/lstat (Makefile.am): Likewise.
68079         * modules/malloc (Makefile.am): Likewise.
68080         * modules/mathl (Makefile.am): Likewise.
68081         * modules/mbchar (Makefile.am): Likewise.
68082         * modules/md2 (Makefile.am): Likewise.
68083         * modules/md4 (Makefile.am): Likewise.
68084         * modules/md5 (Makefile.am): Likewise.
68085         * modules/memcasecmp (Makefile.am): Likewise.
68086         * modules/memchr (Makefile.am): Likewise.
68087         * modules/memcmp (Makefile.am): Likewise.
68088         * modules/memcoll (Makefile.am): Likewise.
68089         * modules/memcpy (Makefile.am): Likewise.
68090         * modules/memmem (Makefile.am): Likewise.
68091         * modules/memmove (Makefile.am): Likewise.
68092         * modules/mempcpy (Makefile.am): Likewise.
68093         * modules/memrchr (Makefile.am): Likewise.
68094         * modules/memset (Makefile.am): Likewise.
68095         * modules/memxor (Makefile.am): Likewise.
68096         * modules/mkancesdirs (Makefile.am): Likewise.
68097         * modules/mkdir (Makefile.am): Likewise.
68098         * modules/mkdir-p (Makefile.am): Likewise.
68099         * modules/mkdtemp (Makefile.am): Likewise.
68100         * modules/mkstemp (Makefile.am): Likewise.
68101         * modules/mktime (Makefile.am): Likewise.
68102         * modules/modechange (Makefile.am): Likewise.
68103         * modules/mountlist (Makefile.am): Likewise.
68104         * modules/nanosleep (Makefile.am): Likewise.
68105         * modules/openat (Makefile.am): Likewise.
68106         * modules/pagealign_alloc (Makefile.am): Likewise.
68107         * modules/physmem (Makefile.am): Likewise.
68108         * modules/poll (Makefile.am): Likewise.
68109         * modules/posixtm (Makefile.am): Likewise.
68110         * modules/posixver (Makefile.am): Likewise.
68111         * modules/putenv (Makefile.am): Likewise.
68112         * modules/quote (Makefile.am): Likewise.
68113         * modules/quotearg (Makefile.am): Likewise.
68114         * modules/raise (Makefile.am): Likewise.
68115         * modules/read-file (Makefile.am): Likewise.
68116         * modules/readline (Makefile.am): Likewise.
68117         * modules/readlink (Makefile.am): Likewise.
68118         * modules/readtokens (Makefile.am): Likewise.
68119         * modules/readutmp (Makefile.am): Likewise.
68120         * modules/realloc (Makefile.am): Likewise.
68121         * modules/regex (Makefile.am): Likewise.
68122         * modules/rename (Makefile.am): Likewise.
68123         * modules/rename-dest-slash (Makefile.am): Likewise.
68124         * modules/rijndael (Makefile.am): Likewise.
68125         * modules/rmdir (Makefile.am): Likewise.
68126         * modules/rpmatch (Makefile.am): Likewise.
68127         * modules/safe-read (Makefile.am): Likewise.
68128         * modules/safe-write (Makefile.am): Likewise.
68129         * modules/same (Makefile.am): Likewise.
68130         * modules/save-cwd (Makefile.am): Likewise.
68131         * modules/savedir (Makefile.am): Likewise.
68132         * modules/setenv (Makefile.am): Likewise.
68133         * modules/settime (Makefile.am): Likewise.
68134         * modules/sha1 (Makefile.am): Likewise.
68135         * modules/sig2str (Makefile.am): Likewise.
68136         * modules/snprintf (Makefile.am): Likewise.
68137         * modules/stdlib-safer (Makefile.am): Likewise.
68138         * modules/stpcpy (Makefile.am): Likewise.
68139         * modules/stpncpy (Makefile.am): Likewise.
68140         * modules/strcase (Makefile.am): Likewise.
68141         * modules/strcasestr (Makefile.am): Likewise.
68142         * modules/strchrnul (Makefile.am): Likewise.
68143         * modules/strcspn (Makefile.am): Likewise.
68144         * modules/strdup (Makefile.am): Likewise.
68145         * modules/strerror (Makefile.am): Likewise.
68146         * modules/strftime (Makefile.am): Likewise.
68147         * modules/strndup (Makefile.am): Likewise.
68148         * modules/strnlen (Makefile.am): Likewise.
68149         * modules/strpbrk (Makefile.am): Likewise.
68150         * modules/strsep (Makefile.am): Likewise.
68151         * modules/strstr (Makefile.am): Likewise.
68152         * modules/strtod (Makefile.am): Likewise.
68153         * modules/strtoimax (Makefile.am): Likewise.
68154         * modules/strtok_r (Makefile.am): Likewise.
68155         * modules/strtol (Makefile.am): Likewise.
68156         * modules/strtoll (Makefile.am): Likewise.
68157         * modules/strtoul (Makefile.am): Likewise.
68158         * modules/strtoull (Makefile.am): Likewise.
68159         * modules/strtoumax (Makefile.am): Likewise.
68160         * modules/strverscmp (Makefile.am): Likewise.
68161         * modules/time_r (Makefile.am): Likewise.
68162         * modules/timegm (Makefile.am): Likewise.
68163         * modules/tmpfile-safer (Makefile.am): Likewise.
68164         * modules/unistd-safer (Makefile.am): Likewise.
68165         * modules/unlinkdir (Makefile.am): Likewise.
68166         * modules/userspec (Makefile.am): Likewise.
68167         * modules/utime (Makefile.am): Likewise.
68168         * modules/utimecmp (Makefile.am): Likewise.
68169         * modules/utimens (Makefile.am): Likewise.
68170         * modules/vasnprintf (Makefile.am): Likewise.
68171         * modules/vasprintf (Makefile.am): Likewise.
68172         * modules/vsnprintf (Makefile.am): Likewise.
68173         * modules/xalloc (Makefile.am): Likewise.
68174         * modules/xgetcwd (Makefile.am): Likewise.
68175         * modules/xnanosleep (Makefile.am): Likewise.
68176         * modules/xreadlink (Makefile.am): Likewise.
68177         * modules/xstrtod (Makefile.am): Likewise.
68178         * modules/xstrtol (Makefile.am): Likewise.
68179         * modules/xstrtold (Makefile.am): Likewise.
68180         * modules/yesno (Makefile.am): Likewise.
68181
68182 2006-10-12  Jim Meyering  <jim@meyering.net>
68183
68184         * m4/getloadavg.m4: Revert the change below.
68185
68186         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68187         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68188         fail with a symlink, which is what coreutils' ./bootstrap now
68189         creates by default.
68190
68191 2006-10-12  Bruno Haible  <bruno@clisp.org>
68192
68193         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68194         mingw.
68195         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68196         MSVC and mingw explicitly.
68197
68198 2006-10-11  Simon Josefsson  <jas@extundo.com>
68199             Bruno Haible  <bruno@clisp.org>
68200
68201         Add support for multiple gnulib-tool invocations in the scope of a
68202         single configure.ac file.
68203         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68204         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68205         with the same contents as the _LIBADD variable.
68206         (func_emit_initmacro_start, func_emit_initmacro_end,
68207         func_emit_initmacro_done): New functions.
68208         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68209         gl_LIBOBJS and gl_LTLIBOBJS.
68210
68211 2006-10-11  Bruno Haible  <bruno@clisp.org>
68212
68213         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68214         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68215         autoreconf. Instead, invoke autopoint explicitly but move back the
68216         *.m4 files from gnulib.
68217
68218 2006-10-11  Bruno Haible  <bruno@clisp.org>
68219
68220         * gnulib-tool (func_usage): Make module names after --create-testdir
68221         optional.
68222         (func_create_testdir): If no module was specified, use nearly all
68223         modules.
68224
68225 2006-10-12  Jim Meyering  <jim@meyering.net>
68226
68227         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68228         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68229         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68230         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68231         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68232         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68233         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68234         (fts_set_stat_required): New function.
68235         (fts_open): Defer the calls to fts_stat, if possible or requested.
68236         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68237         into fts_stat itself.
68238         (fts_read): Perform any required (deferred) fts_stat call.
68239         (fts_build): Likewise, for the directory we're about to open and read.
68240         In the readdir loop, carefully decide whether each entry will require
68241         an eventual call to fts_stat, using dirent.d_type info if available.
68242         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68243         a command line argument into this function.  Update all callers.
68244         Map a return value of FTS_DOT to FTS_D for a command line argument.
68245         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68246         Thanks to Miklos Szeredi for his tenacity and for the initial
68247         bug report about "find" failing on a FUSE-based file system.
68248
68249         * lib/fts.c (fts_open): Use consistent indentation.
68250
68251 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68252
68253         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68254         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68255         reported by Jim Meyering.  All uses of cache variables renamed
68256         to match Autoconf's.
68257         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68258         the other one.
68259
68260         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68261         Fix misspelling in diagnostic.
68262
68263 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68266         defined.  Problem reported by Matthew Woehlke.
68267
68268         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68269         Add support for Tandem NonStop R series.
68270         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68271         Use new macro.
68272
68273         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68274         (has_trailing_slash): Omit size arg; all callers changed.
68275         Omit 'inline', since it doesn't help performance and we'd
68276         need to configure it.
68277         Don't count //, ///, etc. as having a trailing slash.
68278         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68279         (rpl_rename_dest_slash): On failure, use rename's errno rather
68280         than (in some cases) an incorrect or junk errno.
68281         Simplify code by removing need to compute length; this does
68282         cause it to make two passes instead of one over the file name,
68283         but it's worth it.
68284
68285         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68286         change, since Autoconf's version may no longer be appropriate now
68287         that we are using CVS Autoconf's version.  Add support for Tandem.
68288
68289 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68290             Bruno Haible  <bruno@clisp.org>
68291
68292         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68293         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68294         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68295         gl_AC_TYPE_LONG_LONG.
68296
68297         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68298         instead of HAVE_LONG_LONG.
68299         * lib/printf-args.c (printf_fetchargs): Likewise.
68300         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68301         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68302         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68303         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68304         gl_AC_TYPE_LONG_LONG.
68305
68306 2006-10-11  Bruno Haible  <bruno@clisp.org>
68307
68308         * m4/longlong.m4: Add comments.
68309         * m4/ulonglong.m4: Likewise.
68310
68311 2006-10-10  Bruno Haible  <bruno@clisp.org>
68312
68313         Make it possible to #define stpcpy, strdup to aliases.
68314         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68315         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68316
68317 2006-10-10  Bruno Haible  <bruno@clisp.org>
68318
68319         Make it possible to #define gcd to an alias.
68320         * lib/gcd.c: Include config.h.
68321
68322 2006-10-10  Bruno Haible  <bruno@clisp.org>
68323
68324         Make it possible to #define c_isascii to an alias.
68325         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68326         defined. Undefine the macros before defining them, to avoid gcc
68327         warnings.
68328         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68329         define NO_C_CTYPE_MACROS early.
68330
68331 2006-10-10  Bruno Haible  <bruno@clisp.org>
68332
68333         Make it possible to #define set_program_name to an alias.
68334         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68335         ENABLE_RELOCATABLE early.
68336
68337 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68338
68339         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68340         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68341         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68342         More generally, don't assume that 64-bit signed int is available
68343         if unsigned int is, and vice versa.
68344         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68345         unsigned symbols, not on their signed counterparts.
68346         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68347         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68348         (UINT64_C, UINTMAX_C):
68349         Likewise.
68350         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68351         unsigned counterparts.
68352         (Have_long_long, Unsigned): New macros.
68353         (Int): Renamed from INT.
68354         (strtoimax): Use the new macros.
68355         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68356         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68357         * modules/inttypes (inttypes.h): Substitute
68358         HAVE_UNSIGNED_LONG_LONG_INT.
68359         * modules/stdint (stdint.h): Likewise.
68360         (Files): Add m4/ulonglong.m4.
68361
68362 2006-10-10  Bruno Haible  <bruno@clisp.org>
68363
68364         Fix a gcc -Wshadow warning.
68365         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68366         to 'bucket'.
68367         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68368         gl_linked_indexof_from_to): Likewise.
68369         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68370         Likewise.
68371         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68372         Likewise.
68373         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68374         Reported by Eric Blake.
68375
68376 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68377
68378         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68379         for NetBSD.  Problem reported by Bruno Haible.
68380
68381 2006-10-09  Jim Meyering  <jim@meyering.net>
68382
68383         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68384         Patch from Bruno Haible.
68385
68386 2006-10-09  Jim Meyering  <jim@meyering.net>
68387
68388         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68389         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68390         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68391
68392 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68393
68394         Don't include <config.h> twice; this doesn't work in some cases,
68395         e.g., when config.h has "#define intmax_t long long int" and
68396         we include <config.h>, <inttypes.h>, <config.h> in that order.
68397         Problem reported by Matthew Woehlke in:
68398         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68399         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68400         * lib/fts-cycle.c: Don't include config.h.
68401         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68402         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68403         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68404         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68405         inttypes.h.
68406         * lib/xstrtoumax.c: Likewise.
68407         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68408         __strtol and the like, so that this module is more like its siblings.
68409         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68410         Remove; no longer needed now that we assume gnulib inttypes.h.
68411
68412 2006-10-08  Bruno Haible  <bruno@clisp.org>
68413
68414         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68415         option.
68416
68417 2006-10-07  Jim Meyering  <jim@meyering.net>
68418
68419         * modules/inttypes (inttypes.h): Revert what seems to have been
68420         an inadvertent part of today's change: use "|", not "/" in the
68421         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68422
68423 2006-10-07  Bruno Haible  <bruno@clisp.org>
68424
68425         * modules/sublist: New file.
68426
68427 2006-10-07  Bruno Haible  <bruno@clisp.org>
68428
68429         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68430         * modules/argz (argz.h): Likewise.
68431         * modules/arpa_inet (arpa/inet.h): Likewise.
68432         * modules/byteswap (byteswap.h): Likewise.
68433         * modules/configmake (configmake.h): Likewise.
68434         * modules/fcntl (fcntl.h): Likewise.
68435         * modules/fnmatch (fnmatch.h): Likewise.
68436         * modules/getopt (getopt.h): Likewise.
68437         * modules/glob (glob.h): Likewise.
68438         * modules/inttypes (inttypes.h): Likewise.
68439         * modules/netinet_in (netinet/in.h): Likewise.
68440         * modules/poll (poll.h): Likewise.
68441         * modules/stdbool (stdbool.h): Likewise.
68442         * modules/stdint (stdint.h): Likewise.
68443         * modules/sys_select (sys/select.h): Likewise.
68444         * modules/sys_socket (sys/socket.h): Likewise.
68445         * modules/sys_stat (sys/stat.h): Likewise.
68446         * modules/sysexits (sysexits.h): Likewise.
68447         * modules/unistd (unistd.h): Likewise.
68448         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68449         Add a "DO NOT EDIT" comment to the generated file.
68450         (func_import): Likewise for gnulib-comp.m4.
68451
68452 2006-10-07  Bruno Haible  <bruno@clisp.org>
68453
68454         * lib/gl_sublist.h: New file.
68455         * lib/gl_sublist.c: New file.
68456
68457 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68460         name (relative to the original working directory) and the file
68461         name component (relative to the temporary working directory).  All
68462         callers changed.
68463         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68464         * lib/mkdir-p.c (make_dir_parents): Likewise.
68465         * lib/mkdir-p.h (make_dir_parents): Likewise.
68466
68467 2006-10-06  Eric Blake  <ebb9@byu.net>
68468
68469         Define several macros for use by the clean-temp module.
68470         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68471         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68472         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68473
68474         * lib/clean-temp.h (close_stream_temp): New declaration.
68475         * lib/clean-temp.c (includes): Pull in headers according to what
68476         other modules are in use.
68477         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68478
68479 2006-10-06  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68482         instead of fopen, fwriteerror.
68483
68484 2006-10-06  Bruno Haible  <bruno@clisp.org>
68485
68486         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68487         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68488         int.
68489         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68490         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68491         Return an error indicator.
68492         Suggested by Eric Blake.
68493
68494 2006-10-06  Bruno Haible  <bruno@clisp.org>
68495
68496         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68497         Reported by Eric Blake.
68498
68499 2006-10-06  Bruno Haible  <bruno@clisp.org>
68500
68501         * modules/closeout (Description): Mention stderr too.
68502
68503 2006-10-06  Bruno Haible  <bruno@clisp.org>
68504         and Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * lib/closeout.c (close_stdout): Also close stderr.
68507         * lib/closeout.h: Update comment.
68508
68509 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68512         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68513         * lib/dirchownmod.c: Include lchown.h.
68514         * lib/lchown.c: Don't include files that lchown.h now includes.
68515         Don't declare chown, since lchown.h now does that.
68516         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68517         (lchown): Define to rpl_chown if lchown is declared but
68518         does not exist.  Declare using a prototype if lchown is not
68519         declared.  Add a copyright notice.
68520         * lib/mkstemp.h: Include <unistd.h>.
68521         * lib/openat.c: Include lchown.h.
68522
68523         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68524         we now test for that separately.
68525         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68526         rather than O_NOFOLLOW, when testing whether it's possible to
68527         avoid a race condition reliably.
68528         * lib/savewd.c (savewd_chdir): Likewise.
68529
68530         Remove macros that are no longer needed now that stdint.h is
68531         reliable.
68532         * lib/fsusage.c (UINTMAX_MAX): Remove.
68533         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68534         * lib/utimecmp.c (SIZE_MAX): Remove.
68535
68536         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68537
68538         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68539         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68540         O_NOATIME works.
68541
68542 2006-10-05  Bruno Haible  <bruno@clisp.org>
68543
68544         * lib/gl_list.h (gl_sortedlist_search_from_to,
68545         gl_sortedlist_indexof_from_to): New declarations.
68546         (gl_list_implementation): New fields sortedlist_search_from_to,
68547         sortedlist_indexof_from_to.
68548         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68549         inline functions.
68550         * lib/gl_list.c (gl_sortedlist_search_from_to,
68551         gl_sortedlist_indexof_from_to): New functions.
68552         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68553         function.
68554         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68555         (gl_array_sortedlist_search_from_to): New function.
68556         (gl_array_list_implementation): Update.
68557         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68558         function.
68559         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68560         (gl_carray_sortedlist_search_from_to): New function.
68561         (gl_carray_list_implementation): Update.
68562         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68563         gl_linked_sortedlist_indexof_from_to): New functions.
68564         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68565         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68566         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68567         gl_tree_sortedlist_indexof_from_to): New functions.
68568         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68569         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68570         Update.
68571         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68572         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68573         Update.
68574
68575 2006-10-05  Bruno Haible  <bruno@clisp.org>
68576
68577         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68578         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68579         (struct gl_list_implementation): Add fields search_from_to,
68580         indexof_from_to. Remove fields search, indexof.
68581         (gl_list_search): Use the search_from_to method.
68582         (gl_list_search_from, gl_list_search_from_to): New functions.
68583         (gl_list_indexof): Use the indexof_from_to method.
68584         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68585         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68586         (gl_list_search_from, gl_list_search_from_to): New functions.
68587         (gl_list_indexof): Use the indexof_from_to method.
68588         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68589         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68590         gl_array_indexof. Add start_index, end_index arguments.
68591         (gl_array_search_from_to): Renamed from gl_array_search. Add
68592         start_index, end_index arguments.
68593         (gl_array_remove, gl_array_list_implementation): Update.
68594         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68595         gl_carray_indexof. Add start_index, end_index arguments.
68596         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68597         start_index, end_index arguments.
68598         (gl_carray_remove, gl_carray_list_implementation): Update.
68599         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68600         gl_linked_search. Add start_index, end_index arguments.
68601         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68602         start_index, end_index arguments.
68603         (gl_linked_remove): Update.
68604         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68605         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68606         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68607         field to 'size_t'.
68608         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68609         gl_tree_search. Add start_index, end_index arguments.
68610         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68611         start_index, end_index arguments.
68612         (gl_tree_remove): Update.
68613         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68614         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68615         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68616         function.
68617         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68618         gl_tree_search. Add start_index, end_index arguments.
68619         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68620         start_index, end_index arguments.
68621         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68622         Update.
68623         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68624
68625 2006-10-05  Bruno Haible  <bruno@clisp.org>
68626
68627         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68628
68629         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68630         fwriteerror_temp): New declarations.
68631         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68632         (descriptors): New variable.
68633         (cleanup): First, close the descriptors.
68634         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68635         fclose_temp, fwriteerror_temp): New functions.
68636
68637 2006-10-04  Jim Meyering  <jim@meyering.net>
68638
68639         * lib/fts.c (fts_open): Tiny comment change.
68640
68641 2006-10-04  Bruno Haible  <bruno@clisp.org>
68642
68643         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68644         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68645         gl_LOCK_BODY.
68646         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68647         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68648         gl_LOCK_EARLY_BODY.
68649         (gl_LOCK): Require gl_LOCK_BODY.
68650
68651 2006-10-04  Bruno Haible  <bruno@clisp.org>
68652
68653         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68654         (gl_oset_search_atleast): New declaration.
68655         (struct gl_oset_implementation): Add field 'search_atleast'.
68656         (gl_oset_search_atleast): New inline function.
68657         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68658         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68659         (gl_array_oset_implementation): Update.
68660         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68661         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68662         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68663
68664 2006-10-04  Bruno Haible  <bruno@clisp.org>
68665
68666         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68667
68668 2006-10-03  Bruno Haible  <bruno@clisp.org>
68669
68670         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68671         from gl_avltreehash_list_implementation.
68672
68673 2006-10-03  Bruno Haible  <bruno@clisp.org>
68674
68675         * lib/gl_oset.c (gl_oset_add): Fix return type.
68676
68677 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68678
68679         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68680
68681 2006-10-02  Eric Blake  <ebb9@byu.net>
68682
68683         * modules/strnlen (Depends-on): Add extensions.
68684
68685 2006-10-02  Eric Blake  <ebb9@byu.net>
68686
68687         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68688         definition in 2.60+.
68689
68690 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68691
68692         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68693         checks.
68694
68695 2006-10-02  Bruno Haible  <bruno@clisp.org>
68696
68697         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68698         to the AUTOMAKE_OPTIONS.
68699         Reported by Jim Meyering.
68700
68701 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         Work around bug in Solaris 10 /proc file system:
68704         /proc/self/fd/NNN/.. isn't the parent directory of
68705         the directory whose file descriptor is NNN.  This needs to
68706         be worked around at run time, not compile time, since a
68707         program might be built on Solaris 8, where things work, and
68708         run on Solaris 10.
68709         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68710         to use the following interface instead:
68711         (OPENAT_BUFFER_SIZE): New macro.
68712         (openat_proc_name): New function.
68713         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68714         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68715         Likewise.
68716         * lib/openat-proc.c: New file.
68717         * modules/openat (Files): Add lib/openat-proc.c.
68718         (Depends-on): Add same-inode, stdbool.
68719         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68720
68721 2006-09-29  Bruno Haible  <bruno@clisp.org>
68722
68723         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68724         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68725         argument. Set stdout_closed before testing for ferror, not after.
68726         (fwriteerror, fwriteerror_no_ebadf): New functions.
68727
68728 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68729
68730         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68731
68732 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68733
68734         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68735         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68736
68737 2006-09-28  Jim Meyering  <jim@meyering.net>
68738
68739         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68740         Include <unistd.h>.
68741
68742 2006-09-28  Bruno Haible  <bruno@clisp.org>
68743
68744         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68745         * modules/linkedhash-list (Depends-on): Likewise.
68746         * modules/rbtreehash-list (Depends-on): Likewise.
68747
68748 2006-09-28  Bruno Haible  <bruno@clisp.org>
68749
68750         * lib/strndup.h: Simplify the redefinition of strndup.
68751         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68752         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68753
68754 2006-09-28  Bruno Haible  <bruno@clisp.org>
68755
68756         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68757         * lib/gl_linkedhash_list.c: Likewise.
68758         * lib/gl_rbtreehash_list.c: Likewise.
68759
68760 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68761
68762         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68763         getaddrinfo.
68764
68765         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68766         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68767         it causes <stdio_ext.h> to cause a compile-time error.
68768         Problem reported by Nelson H. F. Beebe.
68769         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68770         of HAVE_DECL___PENDING.
68771
68772         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68773         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68774         declaration.
68775
68776 2006-09-27  Jim Meyering  <jim@meyering.net>
68777
68778         This file could end up with a definition for a function
68779         named __strndup, rather than rpl_strndup on a system with
68780         incomplete weak_alias support.
68781         * lib/strndup.c (strndup): Rename from __strndup.
68782         Remove #defines that used to map __strndup to strndup.
68783         Don't use K&R prototypes.
68784         Remove LIBC-related code, since this file is not sync'd with glibc.
68785         * lib/strndup.h: Revamp, accordingly.
68786         * m4/strndup.m4: Modernize.
68787
68788 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68789
68790         * modules/savewd (Depends-on): Add 'raise'.
68791         * lib/savewd.c: Include <signal.h>, for 'raise'.
68792
68793 2006-09-26  Jim Meyering  <jim@meyering.net>
68794
68795         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68796         when we detect Darwin 8.7.0's acl_get_file bug.
68797         Rearrange to perform the new (below) run-test while $LIBS
68798         contains any acl-related library.  Set USE_ACL at the end.
68799         (gl_ACL_GET_FILE): New function.
68800
68801 2006-09-26  Eric Blake  <ebb9@byu.net>
68802
68803         * lib/verror.c: Include <config.h> unconditionally.
68804
68805 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         * modules/clock-time (Maintainer): Add self.
68808         * modules/getlogin_r (Depends-on): Add extensions.
68809
68810 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68811
68812         * modules/clock-time: New module.
68813         * modules/nanosleep (Depends-on): Add clock-time.
68814         * modules/gethrxtime (Depends-on): Likewise.
68815         * modules/gettime (Depends-on): Likewise.
68816         * modules/settime (Depends-on): Likewise.
68817
68818         * modules/fts-lgpl: Depend on openat.
68819         * modules/mkancesdirs: Depend on savewd.
68820         * modules/mkdir-p: Likewise.
68821
68822 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68823
68824         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68825
68826         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68827         `gl_have_arbitrary_file_name_length_limit' to
68828         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68829         actually works between configure runs.
68830
68831 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68832             Bruno Haible  <bruno@clisp.org>
68833
68834         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68835
68836 2006-09-25  Jim Meyering  <jim@meyering.net>
68837
68838         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68839         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68840
68841 2006-09-25  Eric Blake  <ebb9@byu.net>
68842
68843         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68844         exec's in 2006-09-18 patch when shuffling fds.
68845
68846 2006-09-25  Bruno Haible  <bruno@clisp.org>
68847
68848         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68849         Reported by Jim Meyering.
68850
68851 2006-09-24  Jim Meyering  <jim@meyering.net>
68852
68853         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68854         compare a pointer against a literal "0".  That caused failures with
68855         at least HP-UX's hpcc.
68856
68857 2006-09-22  Simon Josefsson  <jas@extundo.com>
68858
68859         * modules/gc-sha1:
68860         * modules/gc-md4:
68861         * modules/gc-hmac-sha1:
68862         * modules/gc-hmac-md5:
68863         * modules/gc-des:
68864         * modules/gc-arcfour: Distribute more files.
68865
68866 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68867
68868         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68869         (gl_linked_iterator_from_to): Initialize struct completely.
68870         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68871         (gl_tree_iterator_from_to): Likewise
68872         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68873         * lib/gl_array_list.c [lint] (gl_array_iterator)
68874         (gl_array_iterator_from_to): Likewise.
68875         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68876         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68877         (gl_carray_iterator_from_to): Likewise.
68878
68879         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68880         * lib/md4.c (md4_process_block): Remove unused variable.
68881         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68882         parentheses for clarity.
68883
68884 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68885
68886         * modules/bison-i18n (Depends-on): Add gettext.
68887
68888 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68889
68890         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68891         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68892         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68893         also add missing comma that caused broken test.
68894         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68895         stdlib.h, for `abort'.
68896         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68897         variables.
68898         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68899         include unistd.h if present, for `rmdir'.
68900         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68901         variables.
68902         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68903         in the process include standard headers for prototypes.
68904         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68905         gets declared on GNU/Linux.
68906         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68907         unistd.h, for `rmdir'.
68908         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68909
68910         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68911         always true.
68912         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68913
68914         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68915
68916 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68917
68918         * gnulib-tool (func_version): Create output all at once.  This
68919         may help avoid triggering unnecessary SIGPIPEs, and at any
68920         rate it doesn't hurt.
68921
68922 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68923             Bruno Haible  <bruno@clisp.org>
68924
68925         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68926         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68927         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68928
68929         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68930         (gl_FUNC_VASPRINTF): Invoke it.
68931
68932 2006-09-22  Bruno Haible  <bruno@clisp.org>
68933
68934         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68935         getloadavg.c as first argument.
68936
68937 2006-09-22  Bruno Haible  <bruno@clisp.org>
68938
68939         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68940         at the beginning of the gl_INIT macro.
68941         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68942         gl_GETLOADAVG.
68943
68944 2006-09-22  Bruno Haible  <bruno@clisp.org>
68945
68946         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68947         module.
68948         Suggested by Ralf Wildenhues.
68949
68950 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68951
68952         Import this patch from libc:
68953
68954         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68955
68956         * lib/regex_internal.c (re_string_reconstruct): Handle
68957         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68958         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68959         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68960         re_string_context_at.
68961
68962         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68963         now requires it.
68964         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68965         gl_REGEX now does it for us.
68966         (gl_REGEX): Add test taken from
68967         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68968
68969         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68970         Check that large offsets work.  Modernize Autoconf usages.
68971         Prefer "yes" to mean a good thing rather than a bad.
68972         Don't put "#define mkstemp" in config.h, as this might interfere
68973         with standard system headers that "#define mkstemp mkstemp64".
68974
68975         * modules/mkstemp (Depends-on): Add extensions, so that
68976         mkstemp is visible on some platforms.
68977         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68978         (Include): Change to "mkstemp.h" from <stdlib.h>.
68979         (Files): Add mkstemp.h.
68980
68981         * lib/mkstemp.h: New file, since some standard headers
68982         #define mkstemp.
68983         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68984         Include "mkstemp.h".
68985         Make the _LIBC code resemble glibc original more,
68986         e.g., use K&R style.
68987         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68988         (mkstemp): Remove, since mkstemp.h does this for us.
68989         * lib/stdlib--.h: Include mkstemp.h.
68990
68991         Import this patch from libc:
68992
68993         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68994
68995         * lib/tempname.c (__gen_tempname): Change attempts_min
68996         into a macro.  Use preprocessor to decide how to initialize
68997         attempts [Coverity CID 67].
68998
68999 2006-09-20  Bruno Haible  <bruno@clisp.org>
69000
69001         * lib/mkdtemp.c: Import from libc.
69002         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69003                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69004                 attempts_min into a macro.  Use preprocessor to decide how to
69005                 initialize attempts [Coverity CID 67].
69006         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69007                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69008                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69009
69010 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69011
69012         * gnulib-tool (func_exit): New function, to allow to pass the
69013         exit status portably through the trap.  Use everywhere.
69014         (--help, --version): Signal a write error.
69015         (trap): catch SIGPIPE, for write errors.
69016         Exit at the end of the trap, with the correct exit status.
69017
69018 2006-09-19  Karl Berry  <karl@gnu.org>
69019
69020         * doc/gnulib.texi: note about the license texinfo files.
69021
69022 2006-09-19  Eric Blake  <ebb9@byu.net>
69023
69024         * gnulib-tool: Avoid space-tab.
69025
69026 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69029         that prevented coreutils 6.1 from building.  Problem reported
69030         by Petter Reinholdtsen.
69031
69032 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         * gnulib-tool (avoidlist): Fix typo that broke options like
69035         --avoid=lock that are used by coreutils bootstrap.
69036
69037 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69038
69039         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69040         more systematically.
69041
69042 2006-09-18  Jim Meyering  <jim@meyering.net>
69043
69044         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69045
69046 2006-09-18  Bruno Haible  <bruno@clisp.org>
69047
69048         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69049
69050 2006-09-18  Bruno Haible  <bruno@clisp.org>
69051
69052         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69053         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69054         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69055         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69056         * m4/gettext.m4: Require autoconf >= 2.52.
69057         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69058         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69059         of gl_cv_header_inttypes_h.
69060
69061 2006-09-18  Bruno Haible  <bruno@clisp.org>
69062
69063         * lib/javaversion.c: Include configmake.h.
69064
69065 2006-09-18  Bruno Haible  <bruno@clisp.org>
69066
69067         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69068         avoid that the while loops be executed in a subshell.
69069
69070 2006-09-18  Bruno Haible  <bruno@clisp.org>
69071
69072         * MODULES.html.sh (func_module): Break long lines.
69073         Suggested by Bruce Korb <bkorb@gnu.org>.
69074
69075 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69076
69077         Speed up by a factor of 1.12.
69078         * gnulib-tool (nl): New variable.
69079         (func_import): Rewrite include directive extraction to only read each
69080         directive once.
69081
69082 2006-09-17  Bruno Haible  <bruno@clisp.org>
69083
69084         * modules/javaversion (Makefile.am): Remove DEFS setting.
69085         (Depends-on): Add configmake, for PKGDATADIR definition.
69086
69087 2006-09-17  Bruno Haible  <bruno@clisp.org>
69088
69089         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69090
69091 2006-09-17  Bruno Haible  <bruno@clisp.org>
69092
69093         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69094         (func_modules_transitive_closure, func_modules_add_dummy,
69095         func_modules_to_filelist, func_import, func_create_testdir,
69096         func_create_megatestdir, ...): Use it wherever possible.
69097         Suggested by Ralf Wildenhues.
69098
69099 2006-09-16  Karl Berry  <karl@gnu.org>
69100
69101         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69102         to avoid sectioning errors.
69103         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69104         [ifinfo]: blank line after @center-ed titles.
69105         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69106         Spell FSF address consistently with others.
69107         (These changes approved by rms.)
69108
69109 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69110
69111         Speed up by a factor of 1.61.
69112         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69113         already checked module names again.
69114
69115 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69116
69117         Speed up by a factor of 1.13.
69118         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69119         for new_files, and the input to func_add_or_update.
69120
69121 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69122
69123         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69124         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69125
69126 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * modules/mkancesdirs (Depends-on): Add fcntl.
69129         * modules/savewd: New file.
69130         * MODULES.html.sh (File system functions): Add savewd.
69131
69132         * modules/configmake (Makefile.am): Add support for the
69133         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69134
69135 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69136
69137         * m4/savewd.m4: New file.
69138
69139 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69140
69141         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69142         (dirchownmod): New arg FD.  All callers changed.
69143         Use FD rather than opening the directory ourself, as opening is
69144         now the caller's responsibility.
69145         * lib/dirchownmod.h: Likewise.
69146         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69147         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69148         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69149         (test_dir): Remove.
69150         (mkancesdirs): Return length of prefix of FILE that has already
69151         been made, or -2 if there is a child doing the work.  Redo
69152         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69153         ".", and treat ".." specially since it might stray back into
69154         already-created areas.  Use a subprocess if necessary.  New arg
69155         WD; all users changed.  MAKE_DIR function should now return 1
69156         if it creates a directory that is not readable.  Return -2 if
69157         a child process is spun off.
69158         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69159         Adjust signature to match code.
69160         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69161         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69162         all users changed.
69163         * lib/savewd.c, lib/savewd.h: New files.
69164
69165 2006-09-15  Jim Meyering  <jim@meyering.net>
69166
69167         * modules/rename-dest-slash: New module.
69168         * MODULES.html.sh (posix_compat): Add it here.
69169
69170         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69171
69172 2006-09-15  Jim Meyering  <jim@meyering.net>
69173
69174         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69175         file.
69176
69177         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69178
69179 2006-09-15  Jim Meyering  <jim@meyering.net>
69180
69181         * lib/rename-dest-slash.c (has_trailing_slash): Use
69182         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69183         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69184         test before testing whether SRC is a directory.
69185         Suggestions from Bruno Haible.
69186
69187         Avoid a warning about an unused variable.
69188         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69189         into the #ifdef block where it's used.
69190
69191         * lib/rename-dest-slash.c: New file.
69192
69193 2006-09-14  Bruno Haible  <bruno@clisp.org>
69194
69195         * lib/allocsa.c: Include <config.h> unconditionally.
69196         * lib/asnprintf.c: Likewise.
69197         * lib/asprintf.c: Likewise.
69198         * lib/c-strcasecmp.c: Likewise.
69199         * lib/c-strcasestr.c: Likewise.
69200         * lib/c-strncasecmp.c: Likewise.
69201         * lib/c-strstr.c: Likewise.
69202         * lib/classpath.c: Likewise.
69203         * lib/clean-temp.c: Likewise.
69204         * lib/concatpath.c: Likewise.
69205         * lib/copy-file.c: Likewise.
69206         * lib/csharpcomp.c: Likewise.
69207         * lib/csharpexec.c: Likewise.
69208         * lib/execute.c: Likewise.
69209         * lib/fatal-signal.c: Likewise.
69210         * lib/findprog.c: Likewise.
69211         * lib/fwriteerror.c: Likewise.
69212         * lib/gl_array_list.c: Likewise.
69213         * lib/gl_array_oset.c: Likewise.
69214         * lib/gl_avltree_list.c: Likewise.
69215         * lib/gl_avltree_oset.c: Likewise.
69216         * lib/gl_avltreehash_list.c: Likewise.
69217         * lib/gl_carray_list.c: Likewise.
69218         * lib/gl_linked_list.c: Likewise.
69219         * lib/gl_linkedhash_list.c: Likewise.
69220         * lib/gl_list.c: Likewise.
69221         * lib/gl_oset.c: Likewise.
69222         * lib/gl_rbtree_list.c: Likewise.
69223         * lib/gl_rbtree_oset.c: Likewise.
69224         * lib/gl_rbtreehash_list.c: Likewise.
69225         * lib/imaxabs.c: Likewise.
69226         * lib/imaxdiv.c: Likewise.
69227         * lib/javacomp.c: Likewise.
69228         * lib/javaexec.c: Likewise.
69229         * lib/javaversion.c: Likewise.
69230         * lib/linebreak.c: Likewise.
69231         * lib/localcharset.c: Likewise.
69232         * lib/lock.c: Likewise.
69233         * lib/mbchar.c: Likewise.
69234         * lib/mbswidth.c: Likewise.
69235         * lib/mkdtemp.c: Likewise.
69236         * lib/pipe.c: Likewise.
69237         * lib/printf-args.c: Likewise.
69238         * lib/printf-parse.c: Likewise.
69239         * lib/progname.c: Likewise.
69240         * lib/progreloc.c: Likewise.
69241         * lib/readlink.c: Likewise.
69242         * lib/sh-quote.c: Likewise.
69243         * lib/stpcpy.c: Likewise.
69244         * lib/stpncpy.c: Likewise.
69245         * lib/strcasecmp.c: Likewise.
69246         * lib/strcasestr.c: Likewise.
69247         * lib/strcspn.c: Likewise.
69248         * lib/striconv.c: Likewise.
69249         * lib/strncasecmp.c: Likewise.
69250         * lib/strnlen1.c: Likewise.
69251         * lib/strstr.c: Likewise.
69252         * lib/strtok_r.c: Likewise.
69253         * lib/tls.c: Likewise.
69254         * lib/tmpdir.c: Likewise.
69255         * lib/unicodeio.c: Likewise.
69256         * lib/unsetenv.c: Likewise.
69257         * lib/vasnprintf.c: Likewise.
69258         * lib/vasprintf.c: Likewise.
69259         * lib/wait-process.c: Likewise.
69260         * lib/xallocsa.c: Likewise.
69261         * lib/xsetenv.c: Likewise.
69262         * lib/xstriconv.c: Likewise.
69263
69264 2006-09-13  Simon Josefsson  <jas@extundo.com>
69265
69266         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69267         that internally, suggested by Ralf Wildenhues
69268         <Ralf.Wildenhues@gmx.de>.
69269
69270 2006-09-13  Simon Josefsson  <jas@extundo.com>
69271
69272         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69273         @LIBOBJS@.
69274         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69275
69276 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69279         longer worry about uses that don't define HAVE_CONFIG_H.
69280         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69281         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69282         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69283         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69284         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69285         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69286         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69287         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69288         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69289         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69290         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69291         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69292         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69293         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69294         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69295         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69296         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69297         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69298         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69299         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69300         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69301         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69302         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69303         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69304         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69305         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69306         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69307         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69308         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69309         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69310         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69311         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69312         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69313         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69314         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69315         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69316         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69317         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69318         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69319         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69320         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69321         Likewise.
69322
69323 2006-09-13  Eric Blake  <ebb9@byu.net>
69324
69325         * lib/getopt.c: Fix typo in last commit.
69326
69327 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69328
69329         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69330         dgettext.
69331
69332 2006-09-12  Jim Meyering  <jim@meyering.net>
69333
69334         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69335         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69336         Reported by Nelson H. F. Beebe.
69337
69338 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69339
69340         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69341         program_invocation_name and program_invocation_short_name are
69342         initialized.
69343         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69344         and program_invocation_short_name to argp.h, so they are visible
69345         to user programs.
69346         * lib/argp.h: Likewise
69347
69348 2006-09-10  Bruno Haible  <bruno@clisp.org>
69349
69350         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69351         m4/inttypes_h.m4, m4/uintmax_t.m4.
69352
69353 2006-09-10  Bruno Haible  <bruno@clisp.org>
69354
69355         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69356         gl_AC_TYPE_UINTMAX_T.
69357
69358 2006-09-10  Bruno Haible  <bruno@clisp.org>
69359
69360         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69361
69362 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69363
69364         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69365         convention.  Text proposed by Bruno Haible.
69366         (struct argp_option): Document the use of N_() wrappers.
69367
69368         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69369         '\v', and translate the two parts separately, instead of feeding
69370         the whole string to gettext.  This allows to exclude
69371         '\v' from the strings visible to the translator by writing doc
69372         strings as N_("..") "\v" N_("..").
69373
69374 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69375
69376         * config/srclist.txt: Undo latest change; the bug was fixed.
69377
69378 2006-09-09  Bruno Haible  <bruno@clisp.org>
69379
69380         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69381         assignments if building a library without libtool.
69382         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69383         in func_emit_lib_Makefile_am.
69384         (func_import): When building a static library libfoo.a, arrange to
69385         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69386         (func_create_testdir): Likewise.
69387         * modules/gc (configure.ac, Makefile.am): If building statically,
69388         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69389         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69390         * modules/striconv (configure.ac, Makefile.am): Likewise.
69391         Based on a suggestion by Ralf Wildenhues.
69392
69393 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69396         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69397         Also:
69398
69399         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69400         Add year_2050_test to catch glibc bug 2821
69401         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69402
69403         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69404         Prefer #ifdef to #if.
69405
69406         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69407         Return from 'main' instead of calling 'exit'.
69408
69409 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69410
69411         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69412         returned the maximum time_t value rather than (time_t) -1.
69413         Problem originally reported by William Bardwell
69414         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69415
69416         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69417         Moved to here ...
69418         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69419         ... from here.
69420
69421 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69422
69423         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69424         2821 is fixed.
69425
69426 2006-09-08  Jim Meyering  <jim@meyering.net>
69427
69428         Don't make generated files read-only.  That would bother too many
69429         people.  However, do retain the ability to work when targets are
69430         read-only: remove the destination and temporary files before writing
69431         them (when generated via sed or echo), or by using the -f option for
69432         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69433         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69434         * modules/byteswap, modules/configmake, modules/fcntl:
69435         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69436         * modules/localcharset, modules/netinet_in, modules/poll:
69437         * modules/stdbool, modules/stdint, modules/sys_select:
69438         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69439
69440 2006-09-08  Jim Meyering  <jim@meyering.net>
69441
69442         Avoid new build failure on FreeBSD 6.0.
69443         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69444         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69445         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69446
69447 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69448
69449         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69450
69451 2006-09-07  Jim Meyering  <jim@meyering.net>
69452
69453         Fix global typo in last change: use chmod u-w, not chmod u-x.
69454         Spotted by Paul Eggert and Bruce Korb.
69455         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69456         * modules/byteswap, modules/configmake, modules/fcntl:
69457         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69458         * modules/localcharset, modules/netinet_in, modules/poll:
69459         * modules/stdbool, modules/stdint, modules/sys_select:
69460         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69461
69462 2006-09-06  Jim Meyering  <jim@meyering.net>
69463
69464         Make generated files be read-only.
69465         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69466         Ensure that each generated file is now read-only.
69467         * modules/argz: Likewise.
69468         * modules/arpa_inet: Likewise.
69469         * modules/byteswap: Likewise.
69470         * modules/configmake: Likewise.
69471         * modules/fcntl: Likewise.
69472         * modules/fnmatch: Likewise.
69473         * modules/getopt: Likewise.
69474         * modules/glob: Likewise.
69475         * modules/inttypes: Likewise.
69476         * modules/netinet_in: Likewise.
69477         * modules/poll: Likewise.
69478         * modules/stdbool: Likewise.
69479         * modules/stdint: Likewise.
69480         * modules/sys_select: Likewise.
69481         * modules/sys_socket: Likewise.
69482         * modules/sys_stat: Likewise.
69483         * modules/sysexits: Likewise.
69484         * modules/localcharset: Same as above, but continue using temporary
69485         file named "t-$@" (why different?) rather than the "$@-t" used
69486         everywhere else.
69487
69488         * modules/sysexits (Makefile.am): Replace literal occurrences
69489         of "sysexit.h" more readable, and more consistent, "$@".
69490
69491 2006-09-06  Bruno Haible  <bruno@clisp.org>
69492
69493         * modules/striconv: New file.
69494         * modules/xstriconv: New file.
69495         * MODULES.html.sh (Internationalization functions): Add striconv,
69496         xstriconv.
69497
69498 2006-09-06  Bruno Haible  <bruno@clisp.org>
69499
69500         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69501         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69502         not using libtool correctly.
69503
69504 2006-09-06  Bruno Haible  <bruno@clisp.org>
69505
69506         * lib/striconv.h: New file.
69507         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69508         iconvstring.c.
69509         * lib/xstriconv.h: New file.
69510         * lib/xstriconv.c: New file.
69511
69512 2006-09-06  Bruno Haible  <bruno@clisp.org>
69513
69514         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69515         lib_..._LDFLAGS.
69516
69517 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69518
69519         * lib/argz_.h: Sync from Libtool.
69520
69521         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69522                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69523
69524         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69525
69526 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69527
69528         * modules/trim: New file.
69529
69530 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69531
69532         * lib/trim.h: New file.
69533         * lib/trim.c: New file.
69534
69535 2006-09-05  Bruno Haible  <bruno@clisp.org>
69536
69537         * MODULES.html.sh (String handling): Add trim.
69538
69539 2006-09-04  Karl Berry  <karl@gnu.org>
69540
69541         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69542         until next release.
69543
69544 2006-09-03  Bruno Haible  <bruno@clisp.org>
69545
69546         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69547         correctly.
69548
69549 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69552         not gl_GETLOADAVG.  Omit unneeded semicolons.
69553         Problems reported by Ralf Wildenhues in
69554         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69555         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69556         at the end, which is the usual gnulib style.
69557
69558         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69559         of doing all the work ourselves.
69560         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69561         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69562
69563 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69566         Problem reported by Ralf Wildenhues in
69567         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69568
69569         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69570         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69571
69572 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69573
69574         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69575         yesterday's patch by changing test -n to test -z.
69576
69577 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69580         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69581         the former is now obsolescent.
69582
69583         * modules/chdir-long (Depends-on): Add fcntl.
69584
69585 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69586
69587         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69588         obsolescent, and programs should use gnulib instead.
69589         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69590         but with prefixes changed.
69591
69592 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69593
69594         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69595         or stdbool.h, because they might not exist while configuring.
69596
69597         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69598         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69599         does that for us.
69600         (O_DIRECTORY): Remove.
69601
69602 2006-08-31  Eric Blake  <ebb9@byu.net>
69603
69604         * gnulib-tool: Don't let emacs change spaces to TAB.
69605
69606 2006-08-31  Bruno Haible  <bruno@clisp.org>
69607
69608         * gnulib-tool: When calling func_import more than once, do it in a
69609         subshell.
69610         Reported by Eric Blake <ebb9@byu.net>.
69611
69612 2006-08-31  Bruno Haible  <bruno@clisp.org>
69613
69614         * gnulib-tool (nl): Remove variable.
69615         (sed_transform_lib_file): Use more robust test for config-h module.
69616         (func_import): Fix typo in 2006-08-25 patch.
69617
69618 2006-08-31  Bruno Haible  <bruno@clisp.org>
69619
69620         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69621         specified, augment Makefile.am variables instead of assigning them.
69622
69623 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         Work around a bug in both the Linux and SunOS 64-bit kernels:
69626         nanosleep mishandles sleeps for longer than 2**31 seconds.
69627         Problem reported by Frank v Waveren in
69628         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69629         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69630         Check for nanosleep bug.
69631         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69632
69633 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69634
69635         Work around a bug in both the Linux and SunOS 64-bit kernels:
69636         nanosleep mishandles sleeps for longer than 2**31 seconds.
69637         Problem reported by Frank v Waveren in
69638         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69639         * lib/nanosleep.c (BILLION): New constant.
69640         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69641         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69642         implementation.
69643
69644 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69645
69646         * modules/nanosleep (Depends-on): Add gettime.
69647
69648 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69649         and Simon Josefsson  <jas@extundo.com>
69650         and Oskar Liljeblad  <oskar@osk.mine.nu>
69651
69652         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69653         * gnulib-tool (func_import): New license type 'unmodifiable license
69654         text'.
69655         * modules/fdl: Use it.  Longer description.
69656         * module/gpl, module/lgpl: New files.
69657
69658 2006-08-30  Jim Meyering  <jim@meyering.net>
69659
69660         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69661         shadowing the parameter.
69662
69663 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69664
69665         Sync from Libtool:
69666
69667         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69668
69669         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69670         sharing with gnulib.  Report by Eric Blake.
69671
69672 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         * modules/isapipe: New file.
69675         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69676
69677 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * modules/configmake (Makefile.am): Add a comment, and omit
69680         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69681         by Bruno Haible.
69682
69683 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69684
69685         * m4/isapipe.m4: New file.
69686
69687 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69688
69689         * lib/isapipe.c, lib/isapipe.h: New files.
69690
69691 2006-08-29  Jim Meyering  <jim@meyering.net>
69692
69693         * modules/configmake (Makefile.am): Make configmake.h depend on
69694         Makefile.  Otherwise, a stale configmake.h could hang around.
69695
69696 2006-08-29  Eric Blake  <ebb9@byu.net>
69697
69698         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69699         resolution of upstream bug 3044.
69700
69701 2006-08-29  Bruno Haible  <bruno@clisp.org>
69702
69703         * modules/localcharset (Depends-on): Add configmake.
69704         (Makefile.am): Remove setting of LIBDIR through DEFS.
69705
69706 2006-08-29  Bruno Haible  <bruno@clisp.org>
69707
69708         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69709         defined.
69710
69711 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69712
69713         * modules/fcntl: New file.
69714         * modules/chdir-safer (Depends-on): Add fcntl.
69715         * modules/fts: Likewise.
69716         * modules/mkdir-p: Likewise.
69717
69718         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69719         This undoes the most recent change, since we're now addressing the
69720         problem in a different way.
69721
69722         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69723         into output, since the output might be called Makefile.am even
69724         if $makefile_name is something different.
69725         (func_import): Use $makefile_am rather than
69726         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69727         empty.
69728
69729         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69730
69731 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69732
69733         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69734         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69735         recent change to stdint.m4, since we're now addressing the problem in a
69736         different way.
69737
69738 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * m4/fcntl_h.m4: New file.
69741
69742 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69743
69744         * lib/fcntl_.h: New file.
69745         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69746         the fcntl module.
69747         * lib/dirchownmod.c: Likewise.
69748         * lib/fts.c: Likewise.
69749
69750         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69751         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69752         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69753         just before including <inttypes.h>, to avoid circular inclusion.
69754
69755 2006-08-28  Jim Meyering  <jim@meyering.net>
69756
69757         * doc/visibility.texi: Actually read and correct the grammar of the
69758         sentence affected by yesterday's change.
69759
69760 2006-08-28  Eric Blake  <ebb9@byu.net>
69761
69762         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69763         needs wrapper.
69764
69765 2006-08-28  Eric Blake  <ebb9@byu.net>
69766
69767         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69768
69769 2006-08-28  Eric Blake  <ebb9@byu.net>
69770
69771         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69772
69773 2006-08-28  Bruno Haible  <bruno@clisp.org>
69774
69775         * modules/c-strstr: New file, from GNU gettext.
69776         * MODULES.html.sh (String handling): Add c-strstr.
69777
69778 2006-08-28  Bruno Haible  <bruno@clisp.org>
69779
69780         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69781         macros.
69782         Reported by Eric Blake.
69783
69784 2006-08-28  Bruno Haible  <bruno@clisp.org>
69785
69786         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69787         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69788         * lib/vasprintf.c: Include errno.h, limits.h.
69789         (EOVERFLOW): New fallback definition.
69790         (vasprintf): Test here whether the string length is > INT_MAX.
69791         * lib/vsnprintf.c: Include errno.h, limits.h.
69792         (EOVERFLOW): New fallback definition.
69793         (vsnprintf): Fix bug when generated string was too long for the buffer.
69794         Test here whether the string length is > INT_MAX.
69795
69796 2006-08-28  Bruno Haible  <bruno@clisp.org>
69797
69798         * lib/inttypes_.h (SCNX*): Remove definitions.
69799         Reported by Eric Blake.
69800
69801 2006-08-28  Bruno Haible  <bruno@clisp.org>
69802
69803         * lib/c-strstr.h: New file, from GNU gettext.
69804         * lib/c-strstr.c: New file, from GNU gettext.
69805
69806 2006-08-28  Bruno Haible  <bruno@clisp.org>
69807
69808         * gnulib-tool: Reorder some statements.
69809
69810 2006-08-28  Bruno Haible  <bruno@clisp.org>
69811
69812         * gnulib-tool: New option --makefile-name.
69813         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69814         $makefile_name.
69815         (func_import): Write $makefile_name to the cache file, and read it from
69816         there unless explicitly specified. Use $makefile_name as file name
69817         instead of Makefile.am. Adjust the recommendations accordingly.
69818
69819 2006-08-28  Bruno Haible  <bruno@clisp.org>
69820
69821         * gnulib-tool (func_verify_module): Check against misapplying patch.
69822
69823 2006-08-28  Bruno Haible  <bruno@clisp.org>
69824
69825         * gnulib-tool (func_relativize, func_relconcat): New functions.
69826         Give an error if --local-dir is given with --update.
69827         Remove trailing slashes from $local_gnulib_dir.
69828         (func_import): Store the relativized $local_gnulib_dir in
69829         gnulib-cache.m4, and read it from there if not specified explicitly.
69830
69831 2006-08-28  Bruno Haible  <bruno@clisp.org>
69832
69833         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69834         is the current directory. Respect also $local_gnulib_dir.
69835
69836 2006-08-28  Bruno Haible  <bruno@clisp.org>
69837             Simon Josefsson  <jas@extundo.com>
69838
69839         BeOS portability.
69840         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69841
69842 2006-08-27  Jim Meyering  <jim@meyering.net>
69843
69844         * doc/visibility.texi: Remove duplicate word: "pointer".
69845
69846 2006-08-26  Bruno Haible  <bruno@clisp.org>
69847
69848         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69849         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69850         (Makefile.am): Create inttypes.h from inttypes_.h.
69851         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69852
69853         * modules/imaxabs: New file.
69854
69855         * modules/imaxdiv: New file.
69856
69857 2006-08-26  Bruno Haible  <bruno@clisp.org>
69858
69859         * m4/inttypes.m4: New file.
69860         * m4/_inttypes_h.m4: Remove file.
69861         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69862         PRI_MACROS_BROKEN.
69863         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69864
69865         * m4/imaxabs.m4: New file.
69866
69867         * m4/imaxdiv.m4: New file.
69868
69869 2006-08-26  Bruno Haible  <bruno@clisp.org>
69870
69871         * lib/inttypes_.h: New file.
69872         * lib/inttypes.h: Remove file.
69873         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69874
69875         * lib/imaxabs.c: New file.
69876
69877         * lib/imaxdiv.c: New file.
69878
69879 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69880
69881         New config-h module, so that "make" output needn't be cluttered
69882         by -DHAVE_CONFIG_H.
69883         * MODULES.html.sh (Support for building libraries and executables):
69884         Add config-h.
69885         * modules/config-h: New file.
69886         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69887         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69888         the config-h module is used.
69889
69890         New configmake module, so that "make" output needn't be cluttered
69891         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69892         * MODULES.html.sh (Support for building libraries and executables):
69893         Add configmake.
69894         * modules/configmake: New file.
69895
69896 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69897
69898         * m4/config-h.m4: New file.
69899
69900 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69901
69902         * config/srclist.txt: Add elisp-comp.
69903
69904 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69905
69906         * MODULES.html.sh (Support for building libraries and executables):
69907         Add elisp-comp.
69908         * build-aux/elisp-comp: New file.
69909         * modules/elisp-comp: New file.
69910
69911 2006-08-24  Bruno Haible  <bruno@clisp.org>
69912
69913         * gnulib-tool (func_create_testdir): Use non-default values of
69914         sourcebase and m4base.
69915
69916 2006-08-24  Bruno Haible  <bruno@clisp.org>
69917
69918         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69919         HTML structure.
69920
69921 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         * modules/openat (Depends-on): Add lchown.
69924
69925 2006-08-23  Bruno Haible  <bruno@clisp.org>
69926
69927         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69928         of gl_LOCK_EARLY instead of gl_LOCK.
69929
69930 2006-08-23  Bruno Haible  <bruno@clisp.org>
69931
69932         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69933         on OSF/1 to no.
69934         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69935
69936 2006-08-23  Bruno Haible  <bruno@clisp.org>
69937
69938         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69939         as unusable.
69940
69941         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69942         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69943         (gl_LOCK): New macro.
69944
69945 2006-08-22  Simon Josefsson  <jas@extundo.com>
69946
69947         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69948         to md5 module.
69949
69950 2006-08-22  Simon Josefsson  <jas@extundo.com>
69951
69952         * MODULES.html.sh: Add "Support for maintaining and release
69953         projects".
69954
69955         * build-aux/gnupload: New file, from coreutils.
69956
69957 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         Avoid the need for AC_LIBSOURCES in m4 macros.
69960         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69961         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69962         * modules/check-version (EXTRA_DIST): Add check-version.h.
69963         * modules/crc (EXTRA_DIST): Add crc.h.
69964         * modules/des (EXTRA_DIST): Add des.h.
69965         * modules/gc (EXTRA_DIST): Add gc.h.
69966         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69967         * modules/getline (EXTRA_DIST): Add getline.h.
69968         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69969         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69970         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69971         * modules/md2 (EXTRA_DIST): Add md2.h.
69972         * modules/md4 (EXTRA_DIST): Add md4.h.
69973         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69974         * modules/read-file (EXTRA_DIST): Add read-file.h.
69975         * modules/readline (EXTRA_DIST): Add readline.h.
69976         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69977         rijndael-api-fst.h.
69978
69979 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * m4/rijndael.m4 (gl_ARCFOUR):
69982         * m4/arctwo.m4 (gl_ARCTWO):
69983         * m4/check-version.m4 (gl_CHECK_VERSION):
69984         * m4/crc.m4 (gl_CRC):
69985         * m4/des.m4 (gl_DES):
69986         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69987         * m4/gc.m4 (gl_GC):
69988         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69989         * m4/getline.m4 (gl_FUNC_GETLINE):
69990         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69991         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69992         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69993         * m4/md2.m4 (gl_MD2):
69994         * m4/md4.m4 (gl_MD4):
69995         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69996         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69997         * m4/readline.m4 (gl_FUNC_READLINE):
69998         * m4/rijndael.m4 (gl_RIJNDAEL):
69999         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70000         to get the necessary .h files and whatnot.
70001
70002 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70005         gnulib rather than the other way around.
70006         * config/srclistvars.sh (COREUTILS): Remove.
70007
70008 2006-08-22  Jim Meyering  <jim@meyering.net>
70009
70010         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70011
70012         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70013
70014 2006-08-22  Eric Blake  <ebb9@byu.net>
70015
70016         * modules/regexprops-generic: New file.
70017         * MODULES.html.sh (Support for building documentation): List it.
70018
70019 2006-08-22  Eric Blake  <ebb9@byu.net>
70020
70021         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70022         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70023         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70024         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70025
70026 2006-08-22  Bruno Haible  <bruno@clisp.org>
70027
70028         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70029         and lib_LTLIBRARIES like the other lib_* variables.
70030
70031 2006-08-22  Bruno Haible  <bruno@clisp.org>
70032
70033         * build-aux/x-to-1.in: New file, from GNU gettext.
70034
70035 2006-08-22  Bruno Haible  <bruno@clisp.org>
70036
70037         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70038         <utmpx.h> exists.
70039
70040 2006-08-22  Bruno Haible  <bruno@clisp.org>
70041
70042         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70043         <utmpx.h> exists.
70044
70045 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70046
70047         BeOS portability.
70048         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70049         exist.
70050         Problem reported by Bruno Haible.
70051
70052 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         Avoid the need for AC_LIBSOURCES in m4 macros.
70055         * modules/acl (EXTRA_DIST): Add acl.h.
70056         * modules/argmatch (Files): Add m4/argmatch.m4.
70057         (configure.ac): Add gl_ARGMATCH.
70058         (EXTRA_DIST): Renamed from lib_SOURCES, for
70059         consistency with the other modules.  Remove argmatch.c.
70060         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70061         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70062         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70063         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70064         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70065         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70066         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70067         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70068         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70069         * modules/closeout (EXTRA_DIST): Add closeout.h.
70070         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70071         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70072         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70073         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70074         dirname.h; remove basename.c and stripslash.c.
70075         * modules/exclude (EXTRA_DIST): Add exclude.h.
70076         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70077         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70078         * modules/file-type (EXTRA_DIST): Add file-type.h.
70079         * modules/filemode (EXTRA_DIST): Add filemode.h.
70080         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70081         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70082         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70083         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70084         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70085         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70086         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70087         * modules/getdate (EXTRA_DIST): Add getdate.c.
70088         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70089         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70090         * modules/getpass (EXTRA_DIST): Add getpass.h.
70091         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70092         * modules/group-member (EXTRA_DIST): Add group-member.h.
70093         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70094         * modules/hash (EXTRA_DIST): Add hash.h.
70095         * modules/human (EXTRA_DIST): Add human.h.
70096         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70097         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70098         * modules/lchown (EXTRA_DIST): Add lchown.h.
70099         * modules/long-options (EXTRA_DIST): Add long-options.h.
70100         * modules/lstat (EXTRA_DIST): Add lstat.h.
70101         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70102         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70103         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70104         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70105         * modules/memxor (EXTRA_DIST): Add memxor.h.
70106         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70107         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70108         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70109         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70110         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70111         * modules/physmem (EXTRA_DIST): Add physmem.h.
70112         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70113         * modules/posixver (EXTRA_DIST): Add posixver.h.
70114         * modules/quote (EXTRA_DIST): Add quote.h.
70115         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70116         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70117         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70118         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70119         regex_internal.h regexec.c.
70120         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70121         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70122         * modules/same (EXTRA_DIST): Add same.h.
70123         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70124         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70125         * modules/savedir (EXTRA_DIST): Add savedir.h.
70126         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70127         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70128         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70129         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70130         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70131         * modules/strdup (EXTRA_DIST): Add strdup.h.
70132         * modules/strftime (EXTRA_DIST): Add strftime.h.
70133         * modules/strndup (EXTRA_DIST): Add strndup.h.
70134         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70135         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70136         * modules/time_r (EXTRA_DIST): Add time_r.h.
70137         * modules/timespec (EXTRA_DIST): Add timespec.h.
70138         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70139         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70140         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70141         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70142         * modules/userspec (EXTRA_DIST): Add userspec.h.
70143         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70144         * modules/utimens (EXTRA_DIST): Add utimens.h.
70145         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70146         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70147         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70148         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70149         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70150         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70151         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70152         * modules/yesno (EXTRA_DIST): Add yesno.h.
70153
70154 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70155
70156         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70157
70158         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70159         * m4/dev-ino.m4, same-inode.m4: Remove.
70160
70161         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70162         * m4/acl.m4 (AC_FUNC_ACL):
70163         * m4/backupfile.m4 (gl_BACKUPFILE):
70164         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70165         * m4/canon-host.m4 (gl_CANON_HOST):
70166         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70167         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70168         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70169         * m4/cloexec.m4 (gl_CLOEXEC):
70170         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70171         * m4/closeout.m4 (gl_CLOSEOUT):
70172         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70173         * m4/dirname.m4 (gl_DIRNAME):
70174         * m4/exclude.m4 (gl_EXCLUDE):
70175         * m4/exitfail.m4 (gl_EXITFAIL):
70176         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70177         * m4/file-type.m4 (gl_FILE_TYPE):
70178         * m4/filemode.m4 (gl_FILEMODE):
70179         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70180         * m4/fpending.m4 (gl_FUNC_FPENDING):
70181         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70182         * m4/fts.m4 (gl_FUNC_FTS):
70183         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70184         * m4/getdate.m4 (gl_GETDATE):
70185         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70186         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70187         * m4/getpass.m4 (gl_FUNC_GETPASS):
70188         * m4/gettime.m4 (gl_GETTIME):
70189         * m4/getugroups.m4 (gl_GETUGROUPS):
70190         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70191         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70192         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70193         * m4/hash.m4 (gl_HASH):
70194         * m4/idcache.m4 (gl_IDCACHE):
70195         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70196         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70197         * m4/long-options.m4 (gl_LONG_OPTIONS):
70198         * m4/lstat.m4 (gl_FUNC_LSTAT):
70199         * m4/md5.m4 (gl_MD5):
70200         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70201         * m4/memcoll.m4 (gl_MEMCOLL):
70202         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70203         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70204         * m4/memxor.m4 (gl_MEMXOR):
70205         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70206         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70207         * m4/modechange.m4 (gl_MODECHANGE):
70208         * m4/mountlist.m4 (gl_MOUNTLIST):
70209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70210         * m4/openat.m4 (gl_FUNC_OPENAT):
70211         * m4/pathmax.m4 (gl_PATHMAX):
70212         * m4/physmem.m4 (gl_PHYSMEM):
70213         * m4/posixtm.m4 (gl_POSIXTM):
70214         * m4/posixver.m4 (gl_POSIXVER):
70215         * m4/quote.m4 (gl_QUOTE):
70216         * m4/quotearg.m4 (gl_QUOTEARG):
70217         * m4/readtokens.m4 (gl_READTOKENS):
70218         * m4/readutmp.m4 (gl_READUTMP):
70219         * m4/regex.m4 (gl_REGEX):
70220         * m4/safe-read.m4 (gl_SAFE_READ):
70221         * m4/safe-write.m4 (gl_SAFE_WRITE):
70222         * m4/same.m4 (gl_SAME):
70223         * m4/save-cwd.m4 (gl_SAVE_CWD):
70224         * m4/savedir.m4 (gl_SAVEDIR):
70225         * m4/settime.m4 (gl_SETTIME):
70226         * m4/sha1.m4 (gl_SHA1):
70227         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70228         * m4/stat-macros.m4 (gl_STAT_MACROS):
70229         * m4/stat-time.m4 (gl_STAT_TIME):
70230         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70231         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70232         * m4/strdup.m4 (gl_FUNC_STRDUP):
70233         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70234         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70235         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70236         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70237         * m4/time_r.m4 (gl_TIME_R):
70238         * m4/timespec.m4 (gl_TIMESPEC):
70239         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70240         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70241         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70242         * m4/userspec.m4 (gl_USERSPEC):
70243         * m4/utimecmp.m4 (gl_UTIMECMP):
70244         * m4/utimens.m4 (gl_UTIMENS):
70245         * m4/xalloc.m4 (gl_XALLOC):
70246         * m4/xgetcwd.m4 (gl_XGETCWD):
70247         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70248         * m4/xreadlink.m4 (gl_XREADLINK):
70249         * m4/xstrtod.m4 (gl_XSTRTOD):
70250         * m4/yesno.m4 (gl_YESNO):
70251         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70252         to get the necessary .h files and whatnot.
70253
70254 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70255             Bruno Haible  <bruno@clisp.org>
70256
70257         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70258         /bin/sh understanding of '!' conditional negation.
70259
70260 2006-08-21  Jim Meyering  <jim@meyering.net>
70261
70262         * modules/openat (Depends-on): Really alphabetize.
70263
70264         * modules/acl (Depends-on): Add error and quote.
70265
70266         * check-module (find_included_lib_files): Add at-func.c to the
70267         ok-to-include-more-than-once white list.
70268
70269         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70270
70271 2006-08-21  Bruno Haible  <bruno@clisp.org>
70272
70273         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70274         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70275         Reported by Martin Lambers <marlam@marlam.de>.
70276
70277 2006-08-21  Bruno Haible  <bruno@clisp.org>
70278
70279         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70280         specify an installation location, don't emit a noinst_LIBRARIES or
70281         noinst_LTLIBRARIES assignment.
70282
70283 2006-08-21  Bruno Haible  <bruno@clisp.org>
70284
70285         BeOS portability.
70286         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70287         BeOS has mbrtowc() but no <wctype.h>.
70288
70289 2006-08-21  Bruno Haible  <bruno@clisp.org>
70290
70291         BeOS portability.
70292         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70293         exist.
70294
70295 2006-08-21  Bruno Haible  <bruno@clisp.org>
70296
70297         BeOS portability.
70298         * lib/mbchar.h: Include <wctype.h> only if it exists.
70299
70300 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70301
70302         Remove files that are no longer needed by their respective modules.
70303         * m4/obstack.m4: Remove.
70304         * m4/strerror_r.m4: Remove.
70305         * m4/uint32_t.m4: Remove.
70306         * m4/uintptr_t.m4: Remove.
70307         * m4/ullong_max.m4: Remove.
70308         * m4/xstrtoimax.m4: Remove.
70309         * m4/xstrtoumax.m4: Remove.
70310
70311         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70312         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70313         dependencies now capture this.
70314
70315         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70316         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70317         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70318         * m4/human.m4 (gl_HUMAN): Likewise.
70319         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70320         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70321
70322         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70323
70324         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70325         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70326         stdint.
70327         * m4/human.m4 (gl_HUMAN): Likewise.
70328         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70329         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70330         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70331         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70332         * m4/xstrtol (gl_XSTRTOL): Likewise.
70333
70334         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70335         AC_TYPE_LONG_LONG_INT.
70336         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70337         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70338         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70339         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70340
70341         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70342         on stdbool.
70343
70344         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70345         (gl_PREREQ_XSTRTOUL): Remove.
70346
70347         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70348
70349         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70350         mode.
70351
70352 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         Add and change modules to make it easier for coreutils to use
70355         gnulib-tool.
70356         * modules/backupfile (Files): Remove m4/d-ino.m4.
70357         (Depends-on): Add d-ino.
70358         * modules/cycle-check (Depends-on): Add stdint.
70359         (lib_SOURCES): Add cycle-check.h.
70360         * modules/d-ino: New module.
70361         * modules/d-type: New module.
70362         * modules/error (Files): Remove m4/strerror_r.m4.
70363         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70364         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70365         m4/inttypes_h.m4, m4/uintmax_t.m4.
70366         (Depends-on): Add stdint.
70367         (lib_SOURCES): Add fsusage.h.
70368         * modules/getcwd (Files): Remove d-ino.m4.
70369         (Depends-on): Add d-ino.
70370         * modules/getndelim2 (Depends-on): Add stdint.
70371         * modules/glob (Files): Remove m4/d-type.m4.
70372         (Depends-on): Add d-type.
70373         * modules/host-os: New module.
70374         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70375         m4/inttypes_h.m4, m4/uintmax_t.m4.
70376         * Depends-on: Add stdint.
70377         (lib_SOURCES): Add human.h.
70378         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70379         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70380         m4/uintmax_t.m4, m4/ulonglong.m4.
70381         (Depends-on): Add stdint.
70382         (EXTRA_DIST): Add inttostr.h.
70383         * modules/lchmod: New module.
70384         * modules/link-follow: New module.
70385         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70386         (Depends-on): Add lchmod.
70387         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70388         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70389         (Depends-on): Add stdint.
70390         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70391         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70392         (Depends-on): Add stdint.
70393         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70394         * modules/perl: New module.
70395         * modules/regex (Depends-on): Add stdint.
70396         * modules/rmdir-errno: New module.
70397         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70398         m4/intmax_t.m4.
70399         (Depends-on): Add stdint.
70400         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70401         m4/uintmax_t.m4.
70402         (Depends-on): Add stdint.
70403         * modules/unlink-busy: New module.
70404         * modules/utimecmp (Depends-on): Add stdint.
70405         * modules/uptime: New module.
70406         * modules/winsz-ioctl: New module.
70407         * modules/winsz-termios: New module.
70408         * modules/xnanosleep (Depends-on): Add nanosleep.
70409         * modules/ullong_max: Remove.
70410         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70411         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70412         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70413         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70414         (Depends-on): Add inttypes.
70415         (lib_SOURCES): Add xstrtol.h.
70416         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70417         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70418         * MODULES.html.sh: Move 'assert' into the assert section.
70419         Move 'dummy' into the linking section.
70420         Remove ullong_max.
70421         Add section for compatibility checks for POSIX:2001 functions,
70422         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70423         winsz-ioctl, and winsz-termios into it.
70424         Add lchmod.
70425         Add top-level Misc section and put host-os, perl, and uptime
70426         into it.
70427
70428 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70429
70430         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70431         now assume the stdint module.  Do not include inttypes.h.
70432         * lib/fsusage.h: Likewise.
70433         * lib/getndelim2.c: Likewise.
70434         * lib/human.h: Likewise.
70435         * lib/inttostr.h: Likewise.
70436         * lib/obstack.c: Likewise.
70437         * lib/regex_internal.h: Likewise.
70438         * lib/tempname.c: Likewise.
70439         * lib/utimecmp.c: Likewise.
70440         * lib/xstrtol.h: Likewise.
70441
70442         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70443
70444         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70445         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70446         * lib/xtime.h: Likewise.
70447
70448 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * modules/openat (Files): Add lib/fchmodat.c.
70451         Fixes problem reported by Jay Youngman.
70452
70453 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70454
70455         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70456         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70457
70458 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70459             Bruno Haible  <bruno@clisp.org>
70460
70461         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70462         and is a script that invokes bison. Tighten the code. Add comments.
70463
70464 2006-08-18  Jim Meyering  <jim@meyering.net>
70465
70466         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70467         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70468         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70469         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70470
70471 2006-08-18  Bruno Haible  <bruno@clisp.org>
70472
70473         * modules/bison-i18n: New file.
70474         * MODULES.html.sh (Internationalization functions): Add it.
70475
70476 2006-08-18  Bruno Haible  <bruno@clisp.org>
70477
70478         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70479         sys/statvfs.h. When getmntinfo was found, check its declaration and
70480         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70481
70482 2006-08-18  Bruno Haible  <bruno@clisp.org>
70483
70484         * m4/bison-i18n.m4: New file, from bison.
70485
70486 2006-08-18  Bruno Haible  <bruno@clisp.org>
70487
70488         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70489         (ME_DUMMY): Treat "kernfs" as a dummy.
70490         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70491
70492 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         Update from coreutils.
70495
70496         2006-08-15  Jim Meyering  <jim@meyering.net>
70497
70498         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70499
70500         2006-01-17  Jim Meyering  <jim@meyering.net>
70501
70502         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70503
70504         2006-01-11  Jim Meyering  <jim@meyering.net>
70505
70506         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70507         Check for the lchmod function.
70508
70509 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70510
70511         Update from coreutils.
70512
70513         * lib/__fpending.h: Add copyright notice.
70514         * lib/fprintftime.h: Likewise.
70515         * lib/savedir.c: Use (C) in copyright notice.
70516         * lib/savedir.h: Likewise.
70517
70518         2006-08-15  Jim Meyering  <jim@meyering.net>
70519
70520         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70521         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70522         in support of the EXPECTED_ERRNO macro.
70523         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70524         definitions.  Instead, define the appropriate symbols and include
70525         "at-func.c".
70526         * lib/mkdirat.c (mkdirat): Likewise.
70527         * lib/fchmodat.c (fchmodat): Likewise.
70528         (ENOSYS): Remove definition.
70529         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70530         it.  Don't include "unistd--.h" -- it wasn't ever used.
70531
70532         2006-01-17  Jim Meyering  <jim@meyering.net>
70533
70534         Rewrite fts.c not to change the current working directory,
70535         by using openat, fstatat, fdopendir, etc..
70536
70537         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70538         (HAVE_OPENAT_SUPPORT): Define.
70539         [_LIBC] (fchdir): Don't undef or define; no longer used.
70540         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70541         Now, this `function' always succeeds, and consumes its file descriptor
70542         parameter -- so callers must not close such FDs.  Update callers.
70543         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70544         (diropen): Add parameter, SP.  Adjust all callers.
70545         Implement using diropen_fd, rather than open.
70546         (fts_open): Initialize new member, fts_cwd_fd.
70547         Remove fts_rft-setting code.
70548         (fts_close): Close fts_cwd_fd, if necessary.
70549         (__opendir2): Define in terms of opendir or opendirat,
70550         depending on whether the FST_NOCHDIR flag is set.
70551         (fts_build): Since fts_safe_changedir consumes its FD, and since
70552         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70553         and close the dup'd file descriptor upon failure.
70554         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70555         (fts_safe_changedir): Tweak semantics to reflect that this function
70556         now calls cwd_advance_fd and hence consumes its FD argument.
70557         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70558         [struct FTS] (fts_rft): Remove now-unused member.
70559         [struct FTS] (fts_cycle.state): Improve comment.
70560
70561         * lib/openat.c (openat_needs_fchdir): New function.
70562         * lib/openat.h (openat_needs_fchdir): Declare it.
70563
70564 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70565
70566         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70567         Problem and fix reported by Pádraig Brady in
70568         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70569
70570 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70573
70574 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70575
70576         * lib/memcoll.c (memcoll): Optimize for the common case where the
70577         arguments are bytewise equal.
70578
70579 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * doc/regexprops-generic.texi: Add a copyright notice.
70582
70583 2006-08-15  Bruno Haible  <bruno@clisp.org>
70584
70585         * modules/tmpdir (License): Change to LGPL.
70586
70587 2006-08-15  Bruno Haible  <bruno@clisp.org>
70588
70589         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70590         module.
70591
70592 2006-08-14  Simon Josefsson  <jas@extundo.com>
70593
70594         * config/srclist.txt: Add gnupload.
70595
70596 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         Change copyright notice from LGPL 2 to GPL 2, since that's the
70599         standard form used in the gnulib repository.
70600         * tests/test-lock.c: Likewise.
70601         * tests/test-stdint.c: Likewise.
70602         * tests/test-tls.c: Likewise.
70603
70604         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70605         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70606         Add copyright notice.
70607
70608         * check-module: Add copyright notice.  Output a copyright
70609         notice if "--version" is specified.
70610         * modules/COPYING: New file.
70611         * tests/test-getaddrinfo.c: Add copyright notice.
70612         * tests/test-verify.c: Likewise.
70613
70614 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         Change copyright notice from LGPL 2 to GPL 2, since that's the
70617         standard form used in the gnulib repository.
70618         * lib/lock.c: LGPL -> GPL.
70619         * lib/lock.h: Likewise.
70620         * lib/strnlen1.c: Likewise.
70621         * lib/strnlen1.h: Likewise.
70622         * lib/tls.c: Likewise.
70623         * lib/tls.h: Likewise.
70624         * lib/tmpdir.c: Likewise.
70625
70626         * lib/TODO: Remove; this belongs only in coreutils.
70627
70628 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70629
70630         Add copyright notices to long-enough files that lack them, since
70631         otherwise the files aren't clearly free.  Use the same notice that
70632         getdate.texi already uses.
70633         * doc/alloca-opt.texi: Add copyright notice.
70634         * doc/alloca.texi: Likewise.
70635         * doc/ctime.texi: Likewise.
70636         * doc/functions.texi: Likewise.
70637         * doc/gcd.texi: Likewise.
70638         * doc/gnulib-tool.texi: Likewise.
70639         * doc/inet_ntoa.texi: Likewise.
70640         * doc/visibility.texi: Likewise.
70641
70642         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70643         * doc/quote.texi: Add copyright notice.
70644
70645         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70646         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70647         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70648         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70649         is now obsolete, and give a pointer to the Sun list.
70650         Add copyright notice.
70651
70652 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         * config/srclistvars.sh: Add copyright notice.
70655
70656 2006-08-14  Eric Blake  <ebb9@byu.net>
70657
70658         Import the following change from libc:
70659
70660         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70661
70662         Upstream bug 2997.
70663         * lib/misc/error.c: Add space between program name and message if file
70664         name is missing.
70665
70666 2006-08-12  Karl Berry  <karl@gnu.org>
70667
70668         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70669         remove, these originate in gnulib now.
70670
70671 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70672
70673         * doc/Makefile (standards.info standards.html standards.dvi):
70674         Also depend on make-stds.texi.
70675
70676 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70677
70678         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70679         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70680
70681         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70682         in wchar_t.  Problem reported by Eric Blake.
70683
70684         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70685         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70686         Also, help the compiler to keep LEN in a register.
70687
70688 2006-08-11  Eric Blake  <ebb9@byu.net>
70689
70690         * users.txt: Sort.  Add tar.
70691
70692 2006-08-11  Bruno Haible  <bruno@clisp.org>
70693
70694         * users.txt: New file.
70695
70696 2006-08-11  Bruno Haible  <bruno@clisp.org>
70697
70698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70699         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70700
70701 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70702
70703         * modules/snprintf (Depends-on): Remove minmax.
70704         (Maintainer): Add self and Bruno.
70705
70706 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70707
70708         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70709         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70710         (EOVERFLOW): Define if the system does not.
70711         Do not include "minmax.h"; it wasn't used.
70712         (snprintf): Don't assume size_t promotes to an unsigned type.
70713         Fix bug when generated string was too long for the buffer: the
70714         buffer's contents are supposed to be the initial prefix of the
70715         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70716         exceeds INT_MAX; do the check ourselves.
70717
70718         Import the following changes from libc:
70719
70720         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70721
70722         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70723         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70724         set wc to the byte which couldn't be converted.
70725         (re_string_reconstruct): Don't clear valid_raw_len before calling
70726         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70727         tip_context using re_string_context_at.
70728
70729         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70730
70731         * lib/posix/regex.h: g++ still cannot handled [restrict].
70732
70733         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70734
70735         * lib/posix/regex.h: Remove special handling for VMS.
70736
70737 2006-08-10  Jim Meyering  <jim@meyering.net>
70738
70739         * modules/same-inode: New module.
70740         * modules/dev-ino: New module.
70741         * modules/cycle-check: Depend on these modules, rather than simply
70742         including their .h files.
70743         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70744         required via m4/cycle-check.m4.
70745         * modules/same: Depend on new same-inode module, rather than
70746         including same-inode.h.
70747         * modules/chdir-safer: New file.
70748
70749         * modules/chown (Depends-on): Add stat-macros.
70750
70751 2006-08-10  Jim Meyering  <jim@meyering.net>
70752
70753         * m4/cycle-check.m4: New file.
70754         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70755         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70756
70757 2006-08-10  Eric Blake  <ebb9@byu.net>
70758
70759         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70760         in from original proposal.
70761
70762 2006-08-10  Eric Blake  <ebb9@byu.net>
70763         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70764
70765         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70766         namespace.
70767
70768 2006-08-10  Bruno Haible  <bruno@clisp.org>
70769
70770         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70771         as well.
70772
70773 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         Sync from coreutils.
70776
70777         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70778
70779         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70780         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70781
70782 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * modules/restrict: Remove; no longer needed now that we assume
70785         Autoconf 2.59 or later.
70786         * MODULES.html.sh: Remove 'restrict'.
70787         * modules/argp (Depends-on): Remove 'restrict'.
70788         * modules/base64 (Depends-on): Likewise.
70789         * modules/gc (Depends-on): Likewise.
70790         * modules/getaddrinfo (Depends-on): Likewise.
70791         * modules/glob (Depends-on): Likewise.
70792         * modules/inet_ntop (Depends-on): Likewise.
70793         * modules/inet_pton (Depends-on): Likewise.
70794         * modules/memxor (Depends-on): Likewise.
70795         * modules/regex (Depends-on): Likewise.
70796         * modules/strtok_r (Depends-on): Likewise.
70797         * modules/time_r (Depends-on): Likewise.
70798
70799 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70802         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70803         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70804         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70805         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70806         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70807         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70808         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70809
70810         Merge from coreutils.
70811         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70812         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70813         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70814         * m4/time_r.m4 (gl_TIME_R): Likewise.
70815
70816 2006-08-09  Karl Berry  <karl@gnu.org>
70817
70818         * config/srclist.txt: no more gettext-tools, per Bruno.
70819
70820 2006-08-08  Eric Blake  <ebb9@byu.net>
70821
70822         * modules/verror: New module.
70823         * MODULES.html.sh: Document it.
70824
70825 2006-08-08  Eric Blake  <ebb9@byu.net>
70826
70827         * lib/verror.h, lib/verror.c: New files.
70828
70829 2006-08-08  Eric Blake  <ebb9@byu.net>
70830
70831         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70832         verror_at_line output complies with GNU Coding Standards even when
70833         file is NULL.
70834
70835 2006-08-07  Bruno Haible  <bruno@clisp.org>
70836
70837         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70838         versions of AIX.
70839         Reported by Ralf Wildenhues.
70840
70841 2006-08-07  Bruno Haible  <bruno@clisp.org>
70842
70843         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70844         in an AC_DEFUN. Needed so that the autoconf snippets can use
70845         AC_REQUIRE.
70846
70847 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70848
70849         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70850         Initialize pkgdata_DATA.
70851         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70852         overriding it.
70853
70854 2006-08-06  Eric Blake  <ebb9@byu.net>
70855
70856         * lib/error.h: Fold in some upstream changes from glibc.
70857         * lib/error.c: Likewise.
70858
70859 2006-08-04  Bruno Haible  <bruno@clisp.org>
70860
70861         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70862         Make the mostlyclean-local rule depend on mostlyclean-generic.
70863         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70864
70865 2006-07-31  Bruno Haible  <bruno@clisp.org>
70866
70867         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70868         <stdlib.h>, <string.h>.
70869
70870 2006-07-30  Bruno Haible  <bruno@clisp.org>
70871
70872         * modules/readlink (License): Change to LGPL.
70873
70874 2006-07-30  Bruno Haible  <bruno@clisp.org>
70875
70876         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70877         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70878         set PKGDATADIR to point to it.
70879
70880 2006-07-30  Bruno Haible  <bruno@clisp.org>
70881
70882         * modules/csharpexec (configure.ac): Comment out macro invocation.
70883         * modules/javaexec (configure.ac): Likewise.
70884         * modules/javacomp-script (configure.ac): Likewise.
70885
70886         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70887
70888 2006-07-30  Bruno Haible  <bruno@clisp.org>
70889
70890         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70891         linked-list.
70892
70893 2006-07-30  Bruno Haible  <bruno@clisp.org>
70894
70895         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70896
70897 2006-07-30  Bruno Haible  <bruno@clisp.org>
70898
70899         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70900         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70901         get removed.
70902
70903 2006-07-29  Bruno Haible  <bruno@clisp.org>
70904
70905         Make it possible for gnulib-tool to work with locally modified or
70906         augmented gnulib repositories.
70907         * gnulib-tool (func_usage): Document --local-dir option.
70908         (local_gnulib_dir): New variable.
70909         Handle --local-dir option.
70910         (func_lookup_file): New function.
70911         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70912         (func_get_description, func_get_filelist, func_get_description,
70913         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70914         func_get_automake_snippet, func_get_include_directive,
70915         func_get_license, func_get_maintainer): Use func_lookup_file.
70916         (func_import, func_create_testdir): Use func_lookup_file.
70917
70918 2006-07-29  Bruno Haible  <bruno@clisp.org>
70919
70920         * modules/setenv (Depends-on): Add unistd.
70921
70922 2006-07-29  Bruno Haible  <bruno@clisp.org>
70923
70924         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70925
70926 2006-07-29  Bruno Haible  <bruno@clisp.org>
70927
70928         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70929
70930 2006-07-29  Bruno Haible  <bruno@clisp.org>
70931
70932         * gnulib-tool (import, update): If there is no Makefile.am, look at
70933         aclocal.m4, instead of bailing out.
70934
70935 2006-07-29  Bruno Haible  <bruno@clisp.org>
70936
70937         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70938         Categorize the options by when they are useful.
70939
70940 2006-07-29  Bruno Haible  <bruno@clisp.org>
70941
70942         * gnulib-tool (func_usage): Document option --no-libtool.
70943         Handle option --no-libtool.
70944         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70945         for changed semantics of $libtool variable.
70946         (func_import): Likewise. If libtool is not used, show this through
70947         an option --no-libtool.
70948         (func_create_testdir): Update.
70949
70950 2006-07-29  Bruno Haible  <bruno@clisp.org>
70951
70952         * gnulib-tool (func_import): Extend error message about missing
70953         --doc-base.
70954
70955 2006-07-29  Bruno Haible  <bruno@clisp.org>
70956
70957         * gnulib-tool (func_import): Don't create the $docbase directory if
70958         there is no file to store there.
70959
70960 2006-07-29  Bruno Haible  <bruno@clisp.org>
70961
70962         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70963         relevant, look for configure.ac there, not in the current directory.
70964         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70965
70966 2006-07-29  Bruno Haible  <bruno@clisp.org>
70967
70968         * gnulib-tool (SORT): New variable.
70969         (func_usage): Undocument --assume-autoconf option.
70970         Remove --assume-autoconf option handling.
70971         (autoconf_minversion): Determine from the contents of configure.ac.
70972         (func_import): Remove autoconf_minversion handling.
70973         Suggested by Eric Blake.
70974
70975 2006-07-29  Bruno Haible  <bruno@clisp.org>
70976
70977         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70978
70979 2006-07-29  Bruno Haible  <bruno@clisp.org>
70980
70981         * config/srclist.txt (*setenv.[ch]): Remove rules.
70982
70983 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70984
70985         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70986
70987 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70988
70989         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70990         arpa/inet.h.
70991
70992 2006-07-28  Simon Josefsson  <jas@extundo.com>
70993
70994         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70995         * modules/inet_pton (Depends-on): Likewise.
70996
70997 2006-07-28  Simon Josefsson  <jas@extundo.com>
70998
70999         * m4/netinet_in_h.m4: New file.
71000
71001 2006-07-28  Simon Josefsson  <jas@extundo.com>
71002
71003         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71004         #include's.
71005
71006 2006-07-28  Simon Josefsson  <jas@extundo.com>
71007
71008         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71009         #include's.
71010
71011 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71012
71013         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71014         setgid on directories only if they set these bits.
71015         * lib/modechange.h: Remove obsolete comment about masks.
71016
71017 2006-07-28  Eric Blake  <ebb9@byu.net>
71018
71019         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71020         macro expansion.
71021
71022 2006-07-28  Bruno Haible  <bruno@clisp.org>
71023
71024         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71025
71026 2006-07-28  Bruno Haible  <bruno@clisp.org>
71027
71028         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71029
71030 2006-07-28  Bruno Haible  <bruno@clisp.org>
71031
71032         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71033         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71034         Define fallbacks.
71035         Avoids link error on FreeBSD 4.x.
71036         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71037
71038         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71039         encoding.
71040         * lib/mbswidth.c (iswcntrl): Likewise.
71041
71042 2006-07-27  Bruno Haible  <bruno@clisp.org>
71043
71044         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71045         test.
71046
71047 2006-07-27  Bruno Haible  <bruno@clisp.org>
71048
71049         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71050         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71051         defined.
71052
71053 2006-07-26  Eric Blake  <ebb9@byu.net>
71054
71055         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71056
71057 2006-07-26  Eric Blake  <ebb9@byu.net>
71058
71059         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71060         like mingw that lack mkstemp.
71061         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71062         avoid compilation warning on mingw.
71063
71064 2006-07-26  Bruno Haible  <bruno@clisp.org>
71065
71066         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71067         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71068         INT_FAST*_MIN, INTPTR_MIN.
71069
71070 2006-07-25  Bruno Haible  <bruno@clisp.org>
71071
71072         * modules/version-etc (Depends-on): Add stdarg.
71073
71074 2006-07-25  Bruno Haible  <bruno@clisp.org>
71075
71076         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71077         complex commands.
71078
71079 2006-07-25  Bruno Haible  <bruno@clisp.org>
71080
71081         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71082         defined in <stdarg.h> or config.h.
71083
71084 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71087         (gl_STDIO_SAFER): Remove.
71088
71089 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         * MODULES.html.sh (File stream based Input/Output):
71092         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71093         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71094         * modules/fopen-safer, modules/tmpfile-safer: New files.
71095         * modules/stdio-safer: Remove.
71096
71097 2006-07-24  Bruno Haible  <bruno@clisp.org>
71098
71099         * modules/tmpdir: New file.
71100         * MODULES.html.sh (File system functions): Add it.
71101
71102 2006-07-24  Bruno Haible  <bruno@clisp.org>
71103
71104         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71105         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71106
71107 2006-07-24  Bruno Haible  <bruno@clisp.org>
71108
71109         * modules/clean-temp: New file.
71110
71111 2006-07-24  Bruno Haible  <bruno@clisp.org>
71112
71113         * m4/tmpdir.m4: New file, from GNU gettext.
71114
71115 2006-07-24  Bruno Haible  <bruno@clisp.org>
71116
71117         * lib/tmpdir.h: New file, from GNU gettext.
71118         * lib/tmpdir.c: New file, from GNU gettext.
71119
71120 2006-07-24  Bruno Haible  <bruno@clisp.org>
71121
71122         * lib/clean-temp.h: New file, from GNU gettext.
71123         * lib/clean-temp.c: New file, from GNU gettext.
71124
71125 2006-07-23  Eric Blake  <ebb9@byu.net>
71126
71127         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71128         (Depends-on): Add binary-io.
71129
71130 2006-07-23  Eric Blake  <ebb9@byu.net>
71131
71132         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71133
71134 2006-07-23  Eric Blake  <ebb9@byu.net>
71135
71136         * lib/tmpfile-safer.c: New file.
71137         * lib/stdio-safer.h (fopen_safer): Add prototype.
71138         * lib/stdio--.h (tmpfile): Make safer.
71139
71140 2006-07-23  Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71143         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71144         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71145         gl_linked_remove_at): Use it.
71146
71147 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71148         and Simon Josefsson <jas@extundo.com>
71149
71150         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71151
71152         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71153
71154 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71155
71156         * modules/close-stream: New file.
71157         * modules/closeout (Description): Make it clear that it exits
71158         with a diagnostic on error.
71159         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71160         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71161
71162 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         * m4/close-stream.m4: New file.
71165
71166 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/close-stream.c, lib/close-stream.h: New files.
71169
71170 2006-07-22  Bruno Haible  <bruno@clisp.org>
71171
71172         Merge from GNU gettext 0.15.
71173
71174         2006-05-01  Bruno Haible  <bruno@clisp.org>
71175
71176                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71177
71178         2006-07-22  Bruno Haible  <bruno@clisp.org>
71179
71180                 * modules/javaversion: New file.
71181                 * MODULES.html.sh (Java): Add javaversion.
71182
71183         2006-03-12  Bruno Haible  <bruno@clisp.org>
71184
71185                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71186
71187         2005-12-04  Bruno Haible  <bruno@clisp.org>
71188
71189                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71190                 (untested).
71191
71192         2006-06-21  Bruno Haible  <bruno@clisp.org>
71193
71194                 Avoid warnings from recent versions of mcs.
71195                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71196                 -o, -L, -r any more. Use options documented since mcs-1.0
71197                 instead. Similarly for -g.
71198
71199         2005-12-04  Bruno Haible  <bruno@clisp.org>
71200
71201                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71202                 .resources, not .resource.
71203
71204         2005-07-09  Bruno Haible  <bruno@clisp.org>
71205
71206                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71207                 add a .dll suffix.
71208                 Reported by Mark Junker <mjscod@gmx.de>.
71209
71210         2006-07-22  Bruno Haible  <bruno@clisp.org>
71211
71212                 * modules/gettext: Upgrade to gettext-0.15.
71213                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71214                 m4/visibility.m4.
71215                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71216
71217 2006-07-22  Bruno Haible  <bruno@clisp.org>
71218
71219         Merge from GNU gettext 0.15.
71220
71221         2006-03-25  Bruno Haible  <bruno@clisp.org>
71222
71223                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71224
71225         2006-07-21  Bruno Haible  <bruno@clisp.org>
71226
71227                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71228                 "1.1".
71229
71230         2006-05-09  Bruno Haible  <bruno@clisp.org>
71231
71232                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71233                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71234                 for the conftestver execution.
71235
71236         2006-05-01  Bruno Haible  <bruno@clisp.org>
71237
71238                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71239                 optional target-version argument. Verify that the compiler
71240                 groks source of the specified source-version, or add -source
71241                 option as necessary. Verify that the compiler produces
71242                 bytecode in the specified target-version, or add -target and
71243                 -source options as necessary. Make the result of the test
71244                 available as variable CONF_JAVAC. Also log error output in
71245                 config.log.
71246
71247         2006-03-11  Bruno Haible  <bruno@clisp.org>
71248
71249                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71250
71251         2006-05-09  Bruno Haible  <bruno@clisp.org>
71252
71253                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71254                 CLASSPATH_SEPARATOR to a semicolon.
71255
71256         2006-03-12  Bruno Haible  <bruno@clisp.org>
71257
71258                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71259                 available as variable CONF_JAVA, for subsequent autoconf
71260                 tests. Also log error output in config.log.
71261
71262         2006-07-19  Bruno Haible  <bruno@clisp.org>
71263
71264                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71265                 that getline works on glibc2 systems. Needed to avoid trouble
71266                 in relocatable.c.
71267                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71268
71269         2005-12-04  Bruno Haible  <bruno@clisp.org>
71270
71271                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71272                 launcher (untested).
71273
71274         2005-12-04  Bruno Haible  <bruno@clisp.org>
71275
71276                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71277
71278         2006-07-22  Bruno Haible  <bruno@clisp.org>
71279
71280                 * gettext.m4: Update from GNU gettext-0.15.
71281                 * nls.m4: Likewise.
71282                 * po.m4: Likewise.
71283                 * inttypes-pri.m4: Likewise.
71284                 * inttypes-h.m4: Renamed from inttypes.m4.
71285                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71286
71287 2006-07-22  Bruno Haible  <bruno@clisp.org>
71288
71289         Merge from GNU gettext 0.15.
71290
71291         2005-07-05  Bruno Haible  <bruno@clisp.org>
71292
71293                 * printf-args.c (printf_fetchargs): Work around broken
71294                 definition of wint_t on mingw.
71295
71296         2005-02-12  Bruno Haible  <bruno@clisp.org>
71297
71298                 * xallocsa.h: Add extern "C" for C++.
71299
71300         2006-05-17  Bruno Haible  <bruno@clisp.org>
71301
71302                 Cygwin portability.
71303                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71304
71305         2006-04-30  Bruno Haible  <bruno@clisp.org>
71306
71307                 * progreloc.c: Include <mach-o/dyld.h> if available.
71308                 (find_executable): Use _NSGetExecutablePath when possible.
71309
71310         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71311
71312                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71313                 function.
71314
71315         2005-12-29  Bruno Haible  <bruno@clisp.org>
71316
71317                 * progreloc.c (set_program_name_and_installdir): Fix
71318                 compilation error.
71319
71320         2005-12-04  Bruno Haible  <bruno@clisp.org>
71321
71322                 Cygwin portability.
71323                 * progreloc.c: Include <windows.h> also on Cygwin.
71324                 (find_executable): Add support for Cygwin.
71325                 (set_program_name_and_installdir): Handle also platforms with
71326                 nonempty EXEEXT.
71327
71328         2006-07-11  Bruno Haible  <bruno@clisp.org>
71329
71330                 * javacomp.c: Fix a comment.
71331                 Reported by Jim Meyering.
71332
71333         2006-04-30  Bruno Haible  <bruno@clisp.org>
71334
71335                 * javacomp.h (compile_java_class): Add source_version,
71336                 target_version arguments.
71337                 * javacomp.c: Rewritten to choose only a compiler that
71338                 respects the specified source_version and target_version.
71339
71340         2006-06-27  Bruno Haible  <bruno@clisp.org>
71341
71342                 Assume correct S_ISDIR macro.
71343                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71344
71345         2006-07-22  Bruno Haible  <bruno@clisp.org>
71346
71347                 * javaversion.h: New file, from GNU gettext.
71348                 * javaversion.c: New file, from GNU gettext.
71349                 * javaversion.java: New file, from GNU gettext.
71350                 * javaversion.class: New file, from GNU gettext.
71351
71352         2006-05-17  Bruno Haible  <bruno@clisp.org>
71353
71354                 Cygwin portability.
71355                 * javaexec.c (execute_java_class): Test for jview program
71356                 also on Cygwin.
71357
71358         2006-04-09  Bruno Haible  <bruno@clisp.org>
71359
71360                 * fatal-signal.c: Don't include string.h.
71361                 (at_fatal_signal): Use a copying loop instead of memcpy.
71362
71363         2005-12-04  Bruno Haible  <bruno@clisp.org>
71364
71365                 * csharpexec.c: Add support for 'clix' launcher (untested).
71366                 (execute_csharp_using_sscli): New function.
71367                 (execute_csharp_program): Call it.
71368
71369         2006-06-21  Bruno Haible  <bruno@clisp.org>
71370
71371                 Avoid warnings from recent versions of mcs.
71372                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71373                 -o, -L, -r any more. Use options documented since mcs-1.0
71374                 instead. Similarly for -g.
71375
71376         2005-07-09  Bruno Haible  <bruno@clisp.org>
71377
71378                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71379                 add a .dll suffix.
71380                 Reported by Mark Junker <mjscod@gmx.de>.
71381
71382         2006-06-17  Bruno Haible  <bruno@clisp.org>
71383
71384                 * config.charset: Update for NetBSD 3.0.
71385
71386         2006-05-17  Bruno Haible  <bruno@clisp.org>
71387
71388                 Cygwin portability.
71389                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71390
71391         2006-05-16  Bruno Haible  <bruno@clisp.org>
71392
71393                 * localcharset.c [CYGWIN]: Include <windows.h>.
71394                 (get_charset_aliases): For Cygwin, return the same CPxxx
71395                 aliases list as under WIN32.
71396                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71397                 the environment variables. Fall back to GetACP().
71398
71399         2006-04-05  Bruno Haible  <bruno@clisp.org>
71400
71401                 * config.charset: Update Juan Manuel Guerrero's address.
71402
71403         2005-02-12  Bruno Haible  <bruno@clisp.org>
71404
71405                 * allocsa.h: Add extern "C" for C++.
71406
71407         2005-02-10  Bruno Haible  <bruno@clisp.org>
71408
71409                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71410                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71411
71412         2006-07-22  Bruno Haible  <bruno@clisp.org>
71413
71414                 * gettext.h: Update to GNU gettext-0.15.
71415
71416 2006-07-22  Bruno Haible  <bruno@clisp.org>
71417
71418         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71419         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71420         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71421
71422 2006-07-21  Eric Blake  <ebb9@byu.net>
71423
71424         * modules/stdlib-safer: New file.
71425         * MODULES.html.sh (File stream based Input/Output): Add
71426         stdlib-safer.
71427
71428 2006-07-21  Eric Blake  <ebb9@byu.net>
71429
71430         * lib/stdlib-safer.h: New file from coreutils, required by
71431         stdlib--.h.
71432
71433 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71434
71435         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71436
71437 2006-07-20  Bruno Haible  <bruno@clisp.org>
71438
71439         * gnulib-tool: Recognize new option --assume-autoconf.
71440         (autoconf_minversion): New variable.
71441         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71442
71443 2006-07-20  Bruno Haible  <bruno@clisp.org>
71444
71445         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71446
71447 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71448
71449         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71450         Reindent and repaginate.
71451
71452 2006-07-19  Derek Price  <derek@ximbiot.com>
71453
71454         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71455         Correct grammar.
71456
71457 2006-07-17  Bruno Haible  <bruno@clisp.org>
71458
71459         * modules/list: New file.
71460         * modules/array-list: New file.
71461         * modules/carray-list, modules/carray-list-tests: New files.
71462         * modules/linked-list, modules/linked-list-tests: New files.
71463         * modules/avltree-list, modules/avltree-list-tests: New files.
71464         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71465         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71466         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71467         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71468         * modules/oset: New file.
71469         * modules/array-oset: New file.
71470         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71471         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71472         * tests/test-carray_list.c: New file.
71473         * tests/test-linked_list.c: New file.
71474         * tests/test-avltree_list.c: New file.
71475         * tests/test-rbtree_list.c: New file.
71476         * tests/test-linkedhash_list.c: New file.
71477         * tests/test-avltreehash_list.c: New file.
71478         * tests/test-rbtreehash_list.c: New file.
71479         * tests/test-avltree_oset.c: New file.
71480         * tests/test-rbtree_oset.c: New file.
71481         * MODULES.html.sh (Container data structures): New section.
71482
71483 2006-07-17  Bruno Haible  <bruno@clisp.org>
71484
71485         * m4/gl_list.m4: New file.
71486
71487 2006-07-17  Bruno Haible  <bruno@clisp.org>
71488
71489         * lib/gl_list.h: New file.
71490         * lib/gl_list.c: New file.
71491         * lib/gl_array_list.h: New file.
71492         * lib/gl_array_list.c: New file.
71493         * lib/gl_carray_list.h: New file.
71494         * lib/gl_carray_list.c: New file.
71495         * lib/gl_linked_list.h: New file.
71496         * lib/gl_linked_list.c: New file.
71497         * lib/gl_anylinked_list1.h: New file.
71498         * lib/gl_anylinked_list2.h: New file.
71499         * lib/gl_avltree_list.h: New file.
71500         * lib/gl_avltree_list.c: New file.
71501         * lib/gl_anyavltree_list1.h: New file.
71502         * lib/gl_anyavltree_list2.h: New file.
71503         * lib/gl_rbtree_list.h: New file.
71504         * lib/gl_rbtree_list.c: New file.
71505         * lib/gl_anyrbtree_list1.h: New file.
71506         * lib/gl_anyrbtree_list2.h: New file.
71507         * lib/gl_anytree_list1.h: New file.
71508         * lib/gl_anytree_list2.h: New file.
71509         * lib/gl_linkedhash_list.h: New file.
71510         * lib/gl_linkedhash_list.c: New file.
71511         * lib/gl_anyhash_list1.h: New file.
71512         * lib/gl_anyhash_list2.h: New file.
71513         * lib/gl_avltreehash_list.h: New file.
71514         * lib/gl_avltreehash_list.c: New file.
71515         * lib/gl_rbtreehash_list.h: New file.
71516         * lib/gl_rbtreehash_list.c: New file.
71517         * lib/gl_anytreehash_list1.h: New file.
71518         * lib/gl_anytreehash_list2.h: New file.
71519
71520         * lib/gl_oset.h: New file.
71521         * lib/gl_oset.c: New file.
71522         * lib/gl_array_oset.h: New file.
71523         * lib/gl_array_oset.c: New file.
71524         * lib/gl_avltree_oset.h: New file.
71525         * lib/gl_avltree_oset.c: New file.
71526         * lib/gl_rbtree_oset.h: New file.
71527         * lib/gl_rbtree_oset.c: New file.
71528         * lib/gl_anytree_oset.h: New file.
71529
71530 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * m4/mkancesdirs.m4: New file.
71533         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71534         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71535         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71536         it.
71537
71538 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71539
71540         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71541         * lib/mkancesdirs.h: New files.
71542         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71543         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71544         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71545         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71546         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71547         callers changed.  Revamp internals significantly, by not
71548         attempting to create directories that are temporarily more
71549         permissive than the final results.  Do not attempt to use
71550         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71551         This removes some race conditions, fixes some bugs, and simplifies
71552         things.  Use new dirchownmod function to do owner and mode changes.
71553         * lib/mkdir-p.h: Likewise.
71554         * lib/modechange.c (octal_to_mode): New function.
71555         (struct mode_change): New member mentioned.
71556         (make_node_op_equals): New arg mentioned.  All callers changed.
71557         (mode_compile): Keep track of which mode bits the user has explicitly
71558         mentioned.
71559         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71560         New arg PMODE_BITS, to keep track of which mode bits the user
71561         mentioned; it treats S_ISUID and S_ISGID speciall.
71562         All callers changed.
71563         * lib/modechange.h: Likewise.
71564
71565 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71566
71567         * MODULES.html.sh: Add mkancestors.
71568         * modules/mkancesdirs: New module.
71569         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71570         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71571         The chdir-safer and afs files are now orphans; I'll remove them
71572         unless someone speaks up.
71573         Add lib/dirchownmod.c, lib/dirchownmod.h.
71574         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71575         Add lchown, mkancesdirs.
71576         (Maintainer): Add self.
71577
71578 2006-07-15  Karl Berry  <karl@gnu.org>
71579
71580         * gnulib-tool: help message wording/arrangement.
71581
71582 2006-07-14  Simon Josefsson  <jas@extundo.com>
71583
71584         * doc/gnulib.texi (Libtool and Windows): New section.
71585
71586 2006-07-12  Simon Josefsson  <jas@extundo.com>
71587
71588         * modules/gendocs (License): Fix license, approved by Karl.
71589
71590 2006-07-12  Eric Blake  <ebb9@byu.net>
71591
71592         * MODULES.html.sh: Add gendocs.
71593
71594 2006-07-11  Eric Blake  <ebb9@byu.net>
71595
71596         * modules/fdl: New module, to install doc/fdl.texi.
71597         * MODULES.html.sh: Add new section for documentation modules.
71598         * gnulib-tool: Avoid space-tab.
71599         (--doc-base): New option, to manage files from doc.
71600
71601 2006-07-11  Eric Blake  <ebb9@byu.net>
71602
71603         * m4/absolute-header.m4: Fix comments to match recent change.
71604
71605 2006-07-11  Eric Blake  <ebb9@byu.net>
71606
71607         * gnulib-tool: List --doc-base before --tests-base.
71608
71609 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71610
71611         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71612
71613 2006-07-11  Bruno Haible  <bruno@clisp.org>
71614
71615         * README: Mention where to put documentation.
71616
71617 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71618
71619         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71620
71621 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71624         to stdint.m4.
71625
71626 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71629         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71630         "no/such/file/stdint.h" when there is no such file, so that
71631         the resulting C code can be parsed by dodgy compilers.
71632         Problems reported by Bob Proulx.
71633
71634 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71635
71636         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71637         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71638         macros into the GNU _D_EXACT_NAMLEN.
71639         * lib/savedir.c:  Likewise.
71640         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71641
71642 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71643         and Paul Eggert  <eggert@cs.ucla.edu>
71644
71645         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71646         * m4/savedir.m4:
71647         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71648         macros into the GNU _D_EXACT_NAMLEN.
71649
71650 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71651
71652         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71653         around the absolute name, to work around a problem with the HP-UX
71654         11.23 native C compiler, reported by Bob Proulx.
71655
71656 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71657
71658         * doc/maintain.texi, make-stds.texi: Sync from
71659         <http://savannah.gnu.org/projects/gnustandards>.
71660
71661 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71662
71663         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71664
71665 2006-07-09  Jim Meyering  <jim@meyering.net>
71666
71667         * m4/glob.m4: Remove a doubled word in a comment.
71668
71669 2006-07-09  Jim Meyering  <jim@meyering.net>
71670
71671         * lib/argp-pv.c: Remove a doubled word in a comment.
71672         * lib/check-version.c (check_version): Likewise.
71673         * lib/javacomp.c (compile_java_class): Likewise.
71674
71675 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71678         for the benefit of people using Autoconf 2.60.  If you want to
71679         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71680         (or m4/onceonly.m4, if pre-2.57) manually.
71681
71682 2006-07-08  Jim Meyering  <jim@meyering.net>
71683
71684         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71685         comment.
71686         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71687         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71688         comment.
71689
71690 2006-07-08  Jim Meyering  <jim@meyering.net>
71691
71692         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71693
71694 2006-07-07  Simon Josefsson  <jas@extundo.com>
71695
71696         * tests/test-crc.c: Change expected crc value, the test vector
71697         were probably computed using the old broken crc.c?
71698
71699 2006-07-06  Simon Josefsson  <jas@extundo.com>
71700
71701         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71702         now the canonical place for the M4 file).
71703
71704         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71705         from the sys_socket dependency now.
71706
71707         * modules/inet_pton (Files): Ditto.
71708
71709         * modules/inet_ntop (Files): Ditto.
71710
71711 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71712
71713         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71714         not gl_PREREQ_GETUSERSHELL.
71715
71716 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71717
71718         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71719         with only one argument, for Autoconf 2.60.
71720         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71721         expand to nothing, so add a shell command to avoid syntax error.
71722         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71723
71724 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71725
71726         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71727
71728 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71731         no longer needed.  Check for isblank decl.
71732         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71733         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71734         of existence.
71735
71736 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71737
71738         * lib/getloadavg.c: Use __VMS, not VMS.
71739         * lib/getopt.c: Likewise.
71740         * lib/getpagesize.h: Likewise.
71741         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71742         and probably does not work.
71743
71744 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71745
71746         * lib/.cppi-disable: Add wcwidth.
71747         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71748         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71749         (ISGRAPH): Remove.  All uses changed to isgraph.
71750         (FOLD) [!defined _LIBC]: Remove special case.
71751         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71752         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71753         HAVE_ISBLANK.
71754         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71755         case.
71756
71757 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71758
71759         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71760         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71761         brackets.  Other minor changes to suppress some compiler
71762         warnings.
71763
71764 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71765         and Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71768         of invoking obsolescent AC_HEADER_DIRENT macro.
71769         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71770         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71771         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71772         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71773         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71774         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71775         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71776         * m4/readdir.m4: Remove; no longer needed.
71777
71778 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71779         and Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71782         Don't worry about this obsolete case any more.
71783         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71784         directories.
71785         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71786         worry about this obsolete case any more.
71787         * lib/fts.c: Likewise.
71788         * lib/getcwd.c: Likewise.
71789         * lib/glob.h: Likewise.
71790         * lib/savedir.c: Likewise.
71791
71792 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71793
71794         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71795         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71796         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71797         needed.
71798         All uses removed.
71799         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71800         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71801         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71802         needed.
71803         * m4/getdate.m4 (gl_GETDATE): Likewise.
71804         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71805         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71806         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71807         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71808         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71809         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71810         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71811         needed.
71812
71813 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         * lib/memcasecmp.c: Include <limits.h>.
71816         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71817         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71818         Don't assume isdigit succeeds only on '0' through '9'.
71819
71820 2006-07-05  Eric Blake  <ebb9@byu.net>
71821
71822         * modules/getaddrinfo (Depends-on): Add snprintf.
71823
71824 2006-07-05  Eric Blake  <ebb9@byu.net>
71825
71826         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71827         to avoid 'header present but could not be compiled' on cygwin.
71828
71829 2006-07-05  Eric Blake  <ebb9@byu.net>
71830
71831         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71832         missing from netdb.h.
71833         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71834
71835 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71836
71837         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71838         no longer needed.
71839         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71840         * m4/getdate.m4 (gl_GETDATE): Likewise.
71841         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71842         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71843         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71844         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71845         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71846
71847 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71848
71849         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71850         All uses of is_space replaced by isspace.
71851         * lib/exit.h: Don't talk about STDC_HEADERS.
71852         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71853         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71854         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71855         replaced by isprint etc.
71856         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71857         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71858         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71859         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71860         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71861         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71862
71863 2006-07-05  Bruno Haible  <bruno@clisp.org>
71864
71865         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71866         the function exists, before testing against AIX.
71867         Reported by Martin Lambers <marlam@marlam.de>.
71868
71869 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71872         From Mark D. Baushke.
71873
71874 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71875
71876         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71877         to the absolute name, not just one, to bypass Sun C 5.8's
71878         "warning: #include of /usr/include/... may be non-portable".
71879
71880 2006-07-04  Eric Blake  <ebb9@byu.net>
71881
71882         * modules/dirname-tests: New test module.
71883         * tests/test-dirname.c: New file, replacing dirname.c
71884         TEST_DIRNAME section that was recently deleted.
71885
71886 2006-07-04  Bruno Haible  <bruno@clisp.org>
71887
71888         Assume ANSI C header files and <ctype.h> functions.
71889         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71890         (mbsnwidth): Use isprint, iscntrl instead.
71891
71892 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71893
71894         Merge from coreutils.
71895         * MODULES.html.sh: Add xstrtold.
71896         * modules/xstrtold: New file.
71897         * modules/cycle-check (Files): Add lib/same-inode.h.
71898         * modules/dirname (Files): Add m4/double-slash-root.m4.
71899         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71900         * modules/mkdir-p (Files): Add lib/same-inode.h.
71901         * modules/same (Files): Add lib/same-inode.h.
71902
71903 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71904
71905         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71906         This is to keep the terminology clean; POSIX talks about
71907         "absolute pathnames", not "full pathnames", but the GNU
71908         Coding Standards say to use "path" for something else;
71909         so use "absolute" to keep both sides happy.
71910         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71911         Set gl_absolute_header, not gl_full_header_path.
71912         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71913         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71914         All uses changed.
71915
71916         Merge from coreutils.
71917
71918         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71919
71920         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71921         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71922         want to require the building of c-strtod.o.
71923         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71924         needs -lm directly.
71925         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71926
71927         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71928
71929         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71930         --as-needed option if available.  Problem reported by Albert Chin in
71931         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71932         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71933         cc merely issues a bunch of annoying warnings for --as-needed
71934         (this problem was reported by Bob Proulx).  Also, try linking with
71935         -lm to detect a bug in binutils 2.16 (this problem was reported
71936         by Ralf Wildenhues).
71937
71938         2006-06-18  Jim Meyering  <jim@meyering.net>
71939
71940         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71941         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71942         macro.
71943         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71944         also check for glibc-2.4's abort-inducing bug.
71945
71946         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71947         Low-probability clean-up should be to use rmdir to get rid of
71948         the just-created directory, not unlink.
71949
71950         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71951         configure fail, and request a bug report to inform us about it.
71952         Add a comment that, barring reports to the contrary, in 2007 we'll
71953         assume ftruncate is universally available.
71954
71955         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71956
71957         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71958
71959         2006-03-12  Jim Meyering  <jim@meyering.net>
71960
71961         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71962         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71963         * m4/same.m4 (gl_SAME): Likewise.
71964         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71965
71966         2006-03-11  Eric Blake  <ebb9@byu.net>
71967
71968         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71969         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71970         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71971         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71972
71973 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71976         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71977         reported by Mark D. Baushke, one in
71978         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71979
71980         Merge from coreutils.
71981
71982         * lib/.cppi-disable: Add stdint_.h.
71983         * lib/.cvsignore: Add stdint.h.
71984
71985         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71986
71987         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71988         both double and long double versions.
71989         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71990         * lib/xstrtold.c: New file.
71991         * lib/xstrtod.h (xstrtold): New decl.
71992
71993         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71994
71995         * lib/filemode.c (setst): Remove.
71996         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71997         (arguably) clearer, and the generated code is a bit smaller on my
71998         Debian GNU/Linux stable x86 host.
71999
72000         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72003         Assume that filemode.h includes sys/types.h and sys/stat.h.
72004         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72005         (ftypelet): Reorder to put common cases first, for efficiency.
72006         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72007         to do 'M'.
72008         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72009         of 10, for compatibility with FreeBSD.  All callers changed.
72010         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72011         types that can't be deduced solely from st_mode.  First arg is now a
72012         const pointer.
72013         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72014         (strmode): Renamed from mode_string.
72015         (filemodestring): New decl.
72016         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72017         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72018         needed.
72019         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72020
72021         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72022
72023         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72024         fsusage.h now does that.  Include fsusage.h first, to test interface.
72025         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72026         at most one method (the old code could have generated decls that
72027         didn't conform to C89, not that this was ever exercised).
72028         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72029
72030         2006-03-19  Jim Meyering  <jim@meyering.net>
72031
72032         Work even in a chroot where d_ino values for entries in "/"
72033         don't match the stat.st_ino values for the same names.
72034         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72035         number, iterate through all entries again, using lstat instead.
72036         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72037         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72038
72039         * lib/getcwd.c (__getcwd): Clarify a comment.
72040         Use memcpy in place of a call to strcpy.
72041
72042         2006-03-12  Jim Meyering  <jim@meyering.net>
72043
72044         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72045         matches that of the current directory (which we're about to chdir ".."
72046         out of), then save the dev-ino of the parent, instead.
72047
72048         * lib/same-inode.h (SAME_INODE): New file/macro.
72049         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72050         Include "same-inode.h", instead.
72051         * lib/same.c: Likewise.
72052         * lib/cycle-check.h: Include "same-inode.h".
72053         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72054         * lib/cycle-check.c (SAME_INODE): Remove definition.
72055         * lib/root-dev-ino.h: Include "same-inode.h".
72056
72057         2006-03-11  Eric Blake  <ebb9@byu.net>
72058
72059         * lib/same.c (same_name): s/base_name/last_component/
72060         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72061         * lib/filenamecat.c (file_name_concat): Likewise.
72062
72063         2006-03-11  Eric Blake  <ebb9@byu.net>,
72064                     Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72067         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72068         drive prefix.
72069         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72070         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72071         (last_component): New method.
72072         * lib/dirname.c (dir_len): Determine when drive letters need a
72073         subsequent slash.  Preserve // when it is special.
72074         (dir_name): Don't append dot when drive letter is absolute.
72075         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72076         * lib/basename.c (base_name): New semantics - malloc the result.
72077         Preserve // when it is special.  Preserve relative files that look
72078         like drive letters.
72079         (base_len): Preserve // when it is special.
72080         (last_component): New method, similar to old base_name semantics.
72081         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72082         base_name.  Strip redundant slashes from ///.
72083
72084 2006-07-03  Jim Meyering  <jim@meyering.net>
72085
72086         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72087         macro is used before the first cycle_check call.
72088
72089 2006-07-03  Eric Blake  <ebb9@byu.net>
72090
72091         * modules/dirname (Depends-on): Add xstrndup.
72092
72093 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72094
72095         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72096         test cases, so that config.log is a bit easier to follow.
72097
72098 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72099
72100         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72101         both are 64 bits, since this seems to be the tradition, and this
72102         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72103         we ever run into a host that prefers long long to long in this
72104         case, we'll need another configure-time test.  Problem reported by
72105         Jim Meyering.
72106
72107 2006-07-02  Eric Blake  <ebb9@byu.net>
72108
72109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72110
72111 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * modules/inttypes (Depends-on): No longer depends on stdint.
72114         * modules/stdint (Description): Say more about assumptions.
72115         Say that the fast types might differ.  Say macros are used.
72116         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72117         (Makefile.am): Revise list of substituted symbols to match
72118         new stdint.m4.
72119         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72120         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72121         * tests/test-stdint.c (verify_same_types)
72122         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72123         the code conforms to C99/C89.
72124         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72125         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72126
72127 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72130         but fix a bug, by requiring at least 64 bits.
72131         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72132         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72133         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72134         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72135
72136         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72137         changes.  Make 2.59 a prerequisite.  Check and substitute for
72138         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72139         inttypes.h.  Do not use special include files; just use the
72140         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72141         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72142         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72143         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72144         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72145         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72146         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72147         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72148         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72149         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72150         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72151         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72152         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72153         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72154         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72155         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72156         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72157         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72158         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72159         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72160         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72161         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72162         not check for things that C99 does not require, e.g., int8_t.  If
72163         a test isn't needed unless <stdint.h> isn't working, and is
72164         unlikely to be needed for any other reason, then don't do it
72165         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72166         size_t, since we assume C89 freestanding at least.  Do not check
72167         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72168         the right thing even if the types are not defined.  Instead use:
72169         (gl_STDINT_TYPE_PROPERTIES): New macro.
72170         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72171         testing whether <sys/types.h> clashes, as Autoconf does this for
72172         us now.  All uses removed.
72173         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72174         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72175         (gl_CHECK_TYPE_SAME):
72176         Remove; no longer needed.
72177         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72178         exists, since we'll return 0 anyway in that case.
72179         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72180
72181 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72184         possible collision with system files.
72185         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72186         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72187         WCHAR_MIN and WCHAR_MAX in this case.
72188         (<stddef.h>): Do not include; no longer needed.
72189         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72190         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72191         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72192         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72193         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72194         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72195         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72196         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72197         !defined(__c99))]: Include in this case too, since it's harmless
72198         now.
72199         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72200         dangerous to do so.
72201         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72202         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72203         (_STDINT_MIN, _STDINT_MAX): New macros.
72204         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72205         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72206         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72207         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72208         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72209         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72210         macros, not typedefs; this simplifies things quite a bit.
72211         Use long int for all types narrower than int64_t.
72212         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72213         Define in terms of long long int or int64_t or long int,
72214         not int64_t or int32_t.  This saves some compile-time testing.
72215         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72216         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72217         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72218         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72219         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72220         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72221         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72222         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72223         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72224         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72225         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72226         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72227         undef any previous version and define our own version, for
72228         simplicity and consistency with the new macros for types.
72229         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72230         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72231         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72232         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72233         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72234         @WINT_T_SUFFIX@ to keep things simple here.
72235         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72236         Simplify by assuming typical 8/16/32/64 host, since we're
72237         already doing that elsewhere anyway.
72238         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72239         and assume long long int is 64 bits if available.  This
72240         speeds up 'configure'.
72241
72242 2006-07-01  Eric Blake  <ebb9@byu.net>
72243
72244         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72245         Reported by Andreas Buening.
72246
72247 2006-07-01  Eric Blake  <ebb9@byu.net>
72248
72249         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72250
72251 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72252
72253         * lib/getaddrinfo.c: fixed typo
72254
72255 2006-06-29  Jim Meyering  <jim@meyering.net>
72256
72257         * modules/strftime (Maintainer): Add my name, since with the
72258         FPRINTFTIME changes strftime.c has forked from glibc.
72259
72260 2006-06-29  Eric Blake  <ebb9@byu.net>
72261
72262         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72263
72264 2006-06-29  Eric Blake  <ebb9@byu.net>
72265
72266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72267
72268 2006-06-29  Eric Blake  <ebb9@byu.net>
72269
72270         * lib/stat_.h: New file.
72271
72272 2006-06-29  Eric Blake  <ebb9@byu.net>
72273
72274         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72275         unused static function.
72276
72277 2006-06-29  Eric Blake  <ebb9@byu.net>
72278
72279         * doc/functions.texi (Function Portability): Document missing lstat
72280         on mingw.
72281
72282 2006-06-29  Eric Blake  <ebb9@byu.net>
72283
72284         * MODULES.html.sh: Add sys_stat.
72285         * modules/sys_stat: New module.
72286         * modules/mkstemp (Depends-on): Add sys_stat.
72287
72288 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72289
72290         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72291
72292 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72293
72294         * m4/c-bs-a.m4: Removed.
72295
72296 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72297
72298         * lib/strftime.c: Assume strftime() exists.
72299
72300 2006-06-29  Derek Price  <derek@ximbiot.com>
72301
72302         * modules/c-bs-a: Removed - \a is C89.
72303         * MODULES.html.sh: Remove c-bs-a.
72304
72305 2006-06-29  Bruno Haible  <bruno@clisp.org>
72306
72307         * modules/wcwidth (License): Change to LGPL.
72308
72309 2006-06-28  Simon Josefsson  <jas@extundo.com>
72310
72311         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72312         on _WIN32.
72313
72314         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72315         getnameinfo.
72316
72317 2006-06-28  Simon Josefsson  <jas@extundo.com>
72318
72319         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72320
72321 2006-06-28  Simon Josefsson  <jas@extundo.com>
72322
72323         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72324         functions there.  It will succeed on Windows XP, but on Windows
72325         2000 and (presumably) earlier, it will fail, and use the internal
72326         re-implementation.
72327         (use_win32_p): New function.
72328         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72329         Support AI_NUMERICSERV to disable getservbyname.
72330         (getnameinfo): New function, only supports
72331         NI_NUMERICHOST|NI_NUMERICSERV for now.
72332
72333         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72334         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72335         getnameinfo.
72336
72337 2006-06-28  Eric Blake  <ebb9@byu.net>
72338
72339         * modules/wcwidth: New file.
72340         * modules/mbchar (Depends-on): Add wcwidth.
72341         * modules/mbswidth (Depends-on): Add wcwidth.
72342         * MODULES.html.sh: Add wcwidth.
72343
72344 2006-06-28  Eric Blake  <ebb9@byu.net>
72345
72346         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72348
72349 2006-06-28  Eric Blake  <ebb9@byu.net>
72350
72351         * lib/xvasprintf.h: Fix comments.
72352
72353 2006-06-28  Eric Blake  <ebb9@byu.net>
72354
72355         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72356         * lib/mbswidth.c (wcwidth): Move from here...
72357         * lib/wcwidth.h: ...to this new file.
72358
72359 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72360
72361         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72362
72363         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72364         it's obsolete.
72365         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72366
72367 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72368
72369         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72370         Autoconf 2.60 says this stuff was obsolete.
72371
72372 2006-06-28  Bruno Haible  <bruno@clisp.org>
72373
72374         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72375
72376 2006-06-28  Bruno Haible  <bruno@clisp.org>
72377
72378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72379         gt_TYPE_WCHAR_T.
72380
72381 2006-06-28  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72384         declaration for wcwidth.
72385         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72386
72387 2006-06-28  Bruno Haible  <bruno@clisp.org>
72388
72389         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72390         (mkdir): Define using _mkdir.
72391
72392 2006-06-28  Bruno Haible  <bruno@clisp.org>
72393
72394         * lib/getaddrinfo.h: Fix POSIX URL.
72395         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72396         _WIN32.
72397         (use_win32_p): Make static.
72398         (getaddrinfo): Reject service name if it is empty or does not consist
72399         solely of decimal digits, or if its value is > 65535.
72400         (getnameinfo): Remove useless casts.
72401
72402 2006-06-27  Simon Josefsson  <jas@extundo.com>
72403
72404         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72405         Eggert and Martin Lambers.
72406
72407 2006-06-27  Simon Josefsson  <jas@extundo.com>
72408
72409         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72410         Eggert and Martin Lambers.
72411
72412 2006-06-27  Bruno Haible  <bruno@clisp.org>
72413
72414         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72415         result to 0, not to empty.
72416         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72417
72418 2006-06-27  Bruno Haible  <bruno@clisp.org>
72419
72420         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72421
72422 2006-06-26  Simon Josefsson  <jas@extundo.com>
72423
72424         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72425         present.
72426
72427 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72428
72429         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72430         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72431         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72432
72433 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72434
72435         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72436
72437 2006-06-26  Bruno Haible  <bruno@clisp.org>
72438
72439         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72440
72441 2006-06-26  Bruno Haible  <bruno@clisp.org>
72442
72443         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72444
72445 2006-06-26  Bruno Haible  <bruno@clisp.org>
72446
72447         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72448         SGI C compiler in pre-C99 mode.
72449         Suggested by Mark D. Baushke and Larry Jones.
72450
72451 2006-06-26  Bruno Haible  <bruno@clisp.org>
72452
72453         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72454         WCHAR_MAX.
72455         Reported by Mark D. Baushke and Larry Jones.
72456
72457 2006-06-26  Bruno Haible  <bruno@clisp.org>
72458
72459         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72460         in pre-C99 mode.
72461         Suggested by Mark D. Baushke and Larry Jones.
72462
72463 2006-06-23  Simon Josefsson  <jas@extundo.com>
72464             Bruno Haible  <bruno@clisp.org>
72465
72466         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72467         Emit mostlyclean-local rule.
72468         (func_emit_tests_Makefile_am): Likewise.
72469         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72470
72471 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72472
72473         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72474
72475 2006-06-23  Bruno Haible  <bruno@clisp.org>
72476
72477         * tests/test-stdint.c: Update to match ISO C 99 Technical
72478         Corrigendum 1.
72479
72480 2006-06-23  Bruno Haible  <bruno@clisp.org>
72481
72482         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72483
72484 2006-06-23  Bruno Haible  <bruno@clisp.org>
72485
72486         * lib/stdint_.h: Treat IRIX like OpenBSD.
72487
72488 2006-06-23  Bruno Haible  <bruno@clisp.org>
72489
72490         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72491         ISO C 99 Technical Corrigendum 1.
72492
72493 2006-06-22  Simon Josefsson  <jas@extundo.com>
72494
72495         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72496         MinGW.
72497
72498 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72501         needed.  Some compiler complained about some of them.  Problem reported
72502         by Larry Jones in
72503         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72504
72505 2006-06-21  Simon Josefsson  <jas@extundo.com>
72506
72507         * tests/test-getaddrinfo.c: New file.
72508
72509         * modules/getaddrinfo-tests: New file.
72510
72511         * MODULES.html.sh: Add inet_pton.
72512
72513         * modules/inet_pton: New file.
72514
72515 2006-06-21  Simon Josefsson  <jas@extundo.com>
72516
72517         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72518         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72519         of using the (limited) gnulib implementation on Windows XP.
72520
72521         * m4/inet_pton.m4: New file.
72522
72523 2006-06-21  Simon Josefsson  <jas@extundo.com>
72524
72525         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72526         variable.
72527
72528         * lib/socket_.h: Don't define WINVER.
72529
72530         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72531         slightly modified to work in gnulib.
72532
72533 2006-06-21  Simon Josefsson  <jas@extundo.com>
72534
72535         * doc/gnulib.texi (Windows sockets): Add.
72536
72537 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72538
72539         * lib/read-file.c (fread_file): Start with buffer allocation of
72540         0 bytes rather than 1 byte; this simplifies the code.
72541         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72542         code to free buffer and save/restore errno.
72543         (internal_read_file): Remove unused local.
72544
72545 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72546
72547         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72548         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72549         Problem reported by Denis Excoffier in
72550         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72551
72552 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72553
72554         * modules/sys_socket, modules/socklen: Include sys/types since
72555         FreeBSD 4.x's sys/socket.h needs it.
72556
72557 2006-06-19  Simon Josefsson  <jas@extundo.com>
72558
72559         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72560
72561 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72564
72565 2006-06-19  Bruno Haible  <bruno@clisp.org>
72566
72567         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72568         and FULL_PATH_INTTYPES_H in angle brackets.
72569         Reported by Mark D. Baushke <mdb@gnu.org>.
72570
72571 2006-06-17  Eric Blake  <ebb9@byu.net>
72572
72573         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72574         errno.
72575
72576 2006-06-17  Bruno Haible  <bruno@clisp.org>
72577
72578         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72579         <sys/inttypes.h>.
72580
72581 2006-06-17  Bruno Haible  <bruno@clisp.org>
72582
72583         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72584         whether errno is declared. Assume <errno.h> declares errno.
72585
72586 2006-06-17  Bruno Haible  <bruno@clisp.org>
72587
72588         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72589
72590 2006-06-17  Bruno Haible  <bruno@clisp.org>
72591
72592         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72593         problem on Solaris 2.5.1.
72594
72595 2006-06-16  Eric Blake  <ebb9@byu.net>
72596
72597         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72598         * lib/unicodeio.c [!defined errno]: Likewise.
72599         * lib/strtol.c [!defined errno]: Likewise.
72600         * lib/strtod.c [!defined errno]: Likewise.
72601
72602 2006-06-15  Eric Blake  <ebb9@byu.net>
72603
72604         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72605
72606 2006-06-15  Eric Blake  <ebb9@byu.net>
72607
72608         * config/srclist.txt (ssize_t.m4): Lose sync.
72609
72610 2006-06-15  Bruno Haible  <bruno@clisp.org>
72611
72612         * modules/stdint (Files): Include m4/full-header-path.m4,
72613         m4/size_max.m4, m4/wchar_t.m4.
72614         (Makefile.am): Many more substitutions.
72615         * modules/stdint-tests: New file.
72616         * tests/test-stdint.c: New file.
72617
72618 2006-06-15  Bruno Haible  <bruno@clisp.org>
72619
72620         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72621         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72622         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72623         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72624         gl_CHECK_TYPE_SAME): New macros.
72625
72626 2006-06-15  Bruno Haible  <bruno@clisp.org>
72627
72628         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72629
72630 2006-06-15  Bruno Haible  <bruno@clisp.org>
72631
72632         * lib/stdint_.h: Rewritten to be fully auto-configured.
72633         Fixes bug on HP-UX/IA64.
72634
72635 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72636
72637         * lib/getdate.y (__attribute__): Don't define if already defined.
72638         Problem reported by Larry Jones.
72639         * lib/utimens.c (__attribute__): Likewise.
72640
72641 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72642
72643         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72644         reported by Andreas Schwab.
72645
72646 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72647             Bruno Haible  <bruno@clisp.org>
72648
72649         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72650         check for the declaration of strnlen and a run test that exposes the
72651         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72652         rpl_strndup.
72653
72654 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72655             Bruno Haible  <bruno@clisp.org>
72656
72657         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72658
72659 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72660
72661         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72662         compile test, for Tru64 4.0D.
72663
72664 2006-05-28  Karl Berry  <karl@gnu.org>
72665
72666         * config/srclist.txt (printf-args.c): lose sync.
72667
72668 2006-05-26  Martin Lambers  <marlam@marlam.de>
72669
72670         * lib/getpass.c: Updates the test for the native W32 API, and adds
72671         missing includes, thus fixing compilation warnings.
72672
72673 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72674
72675         * lib/exclude.c (exclude_fnmatch): New function.
72676         (excluded_file_name): Call exclude_fnmatch.
72677         * lib/exclude.h (excluded_file_name): New prototype
72678
72679 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * lib/tempname.c (small_open, large_open): New macros.
72682         (__open, __open64) [!_LIBC]: Remove.
72683         (__gen_tempname): Use small_open and large_open instead of __open
72684         and __open64.  This fixes a portability bug on HP-UX 11.11i
72685         reported by Simon Wing-Tang in
72686         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72687
72688 2006-05-24  Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72691         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72692         Reported by Thorsten Maerz <torte@netztorte.de> via
72693         Aaron Stone <aaron@serendipity.cx>.
72694
72695 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72696
72697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72698         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72699         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72700         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72701         not really conditional on the cache.
72702         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72703
72704 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72705
72706         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72707         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72708         (my_usleep): Don't mishandle maximum value.
72709
72710 2006-05-19  Jim Meyering  <jim@meyering.net>
72711
72712         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72713
72714 2006-05-17  Bruno Haible  <bruno@clisp.org>
72715
72716         Cygwin portability.
72717         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72718
72719 2006-05-17  Bruno Haible  <bruno@clisp.org>
72720
72721         * lib/stdint_.h: Fix recognition of Cygwin.
72722
72723 2006-05-15  Bruno Haible  <bruno@clisp.org>
72724
72725         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72726         on libtool patch by Ralf Wildenhues.
72727
72728 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72729
72730         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72731         test for C99 conformance; (bool) 0.5 is an integer constant
72732         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72733         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72734
72735 2006-05-11  Simon Josefsson  <jas@extundo.com>
72736
72737         * m4/xvasprintf.m4: Fix obvious typo.
72738
72739 2006-05-11  Jim Meyering  <jim@meyering.net>
72740
72741         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72742         James Lemley.
72743
72744 2006-05-10  Simon Josefsson  <jas@extundo.com>
72745
72746         * lib/md4.c: Typo fix, update copyright years.
72747         (K1, K2): Don't use L because it turn computations into 64-bit on
72748         64-bit platforms.
72749
72750 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72751
72752         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72753         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72754         unwanted sign propagation, e.g., on hosts with 64-bit int.
72755         There still are some problems with reeelly weird theoretical hosts
72756         (e.g., 33-bit int) but it's not worth worrying about now.
72757         * lib/sha1.c (rol): Likewise.
72758         (K1, K2, K3, K4): Remove unnecessary L suffix.
72759
72760 2006-05-10  Bruno Haible  <bruno@clisp.org>
72761
72762         * lib/des.c: Cast to avoid warnings.
72763
72764 2006-05-09  Bruno Haible  <bruno@clisp.org>
72765
72766         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72767         (Depends-on): Depend also on xsize, stdarg.
72768         (configure.ac): Add gl_XVASPRINTF.
72769
72770 2006-05-09  Bruno Haible  <bruno@clisp.org>
72771
72772         * m4/xvasprintf.m4: New file.
72773
72774 2006-05-09  Bruno Haible  <bruno@clisp.org>
72775
72776         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72777         (EOVERFLOW): Define fallback value.
72778         (xstrcat): New function.
72779         (xvasprintf): Recognize the special case of a string concatenation.
72780
72781 2006-05-08  Eric Blake  <ebb9@byu.net>
72782
72783         * gnulib-tool (func_version): Base copyright year on CVS date.
72784         (func_emit_copyright_notice): New function.
72785         (func_emit_lib_Makefile_am): Use it.
72786         (func_emit_tests_Makefile_am): Likewise.
72787         (func_import): Likewise.
72788
72789 2006-05-08  Bruno Haible  <bruno@clisp.org>
72790
72791         * modules/stdarg: New file.
72792         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72793
72794 2006-05-08  Bruno Haible  <bruno@clisp.org>
72795
72796         * m4/stdarg.m4: New file, from GNU gettext.
72797
72798 2006-05-08  Bruno Haible  <bruno@clisp.org>
72799
72800         * config/srclist.txt (build-aux/config.rpath): different from latest
72801         release.
72802
72803 2006-05-08  Bruno Haible  <bruno@clisp.org>
72804
72805         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72806
72807 2006-05-05  Jim Meyering  <jim@meyering.net>
72808
72809         * m4/warning.m4: New file, derived from bison's file by the same name.
72810
72811 2006-05-03  Bruno Haible  <bruno@clisp.org>
72812
72813         * lib/stdint_.h: Shorter URL.
72814         * lib/inttypes.h: Likewise.
72815
72816 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72817
72818         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72819
72820 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72821
72822         * lib/verify.h: Document the internals better.  Most of this change
72823         was written by Bruno Haible.
72824
72825 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72826
72827         * doc/verify.texi: New file, partly based on a proposal by
72828         Bruno Haible.
72829
72830 2006-05-02  Bruno Haible  <bruno@clisp.org>
72831
72832         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72833         test from here...
72834         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72835
72836 2006-04-29  Bruno Haible  <bruno@clisp.org>
72837
72838         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72839         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72840
72841 2006-04-29  Bruno Haible  <bruno@clisp.org>
72842
72843         * gnulib-tool: Make --update option actually work.
72844
72845 2006-04-29  Bruno Haible  <bruno@clisp.org>
72846
72847         * doc/gcd.texi: New file.
72848         * doc/gnulib.texi: Include it.
72849
72850 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72851
72852         * lib/getdate.y (get_date): When adding relative date, start with the
72853         initial time, not with the result of the first mktime call.
72854
72855 2006-04-25  Bruno Haible  <bruno@clisp.org>
72856
72857         * gnulib-tool (func_import): Output the include directives in three
72858         blocks, sorted separately.
72859         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72860
72861 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72862
72863         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72864         to define main with arguments, for C++.  Reported by Eric Blake.
72865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72866         Prefer 'int main ()' to 'int main (void)', for C++.
72867         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72868         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72869         for 'main', for C99 and C++.
72870
72871 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72874         Don't assume that exit status -1 is valid.
72875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72876         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72877         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72878         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72879         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72880         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72881         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72882         functions can be used without declaring them, or that you can
72883         exit with status -1.
72884         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72885
72886 2006-04-24  Karl Berry  <karl@gnu.org>
72887
72888         * config/srclist.txt (longdouble.m4): sync lost.
72889
72890 2006-04-24  Eric Blake  <ebb9@byu.net>
72891
72892         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72893
72894 2006-04-24  Bruno Haible  <bruno@clisp.org>
72895
72896         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72897         poll() implementation in AIX.
72898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72899
72900 2006-04-24  Bruno Haible  <bruno@clisp.org>
72901
72902         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72903         assigned exactly once.
72904
72905 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72906             Bruno Haible  <bruno@clisp.org>
72907
72908         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72909         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72910         for AM_CPPFLAGS.
72911
72912 2006-04-23  Bruno Haible  <bruno@clisp.org>
72913
72914         * modules/copy-file: Depend on unistd.
72915         * modules/execute: Likewise.
72916         * modules/fatal-signal: Likewise.
72917         * modules/findprog: Likewise.
72918         * modules/mkdtemp : Likewise.
72919         * modules/pipe: Likewise.
72920         * modules/wait-process: Likewise.
72921
72922 2006-04-23  Bruno Haible  <bruno@clisp.org>
72923
72924         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72925         condition was already detected.
72926         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72927
72928 2006-04-23  Bruno Haible  <bruno@clisp.org>
72929
72930         * lib/copy-file.c: Include <unistd.h> unconditionally.
72931         * lib/execute.c: Likewise.
72932         * lib/fatal-signal.c: Likewise.
72933         * lib/findprog.c: Likewise.
72934         * lib/mkdtemp.c: Likewise.
72935         * lib/pipe.h: Likewise.
72936         * lib/pipe.c: Likewise.
72937         * lib/wait-process.h: Likewise.
72938
72939 2006-04-23  Bruno Haible  <bruno@clisp.org>
72940
72941         * gnulib-tool (func_usage): Fix --import description. Document
72942         --update.
72943         (func_import): Create temporary file in a temporary directory, if
72944         --dry-run is specified. Silence errors from 'grep' when there are no
72945         m4 files in $m4dir.
72946         (func_create_testdir): Silence errors from 'grep' when there are no
72947         m4 files in $m4dir.
72948         Reported by Karl Berry <karl@freefriends.org>.
72949
72950 2006-04-20  Bruno Haible  <bruno@clisp.org>
72951
72952         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72953         one argument, so that the code will be portable to Autoconf 2.60.
72954         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72955         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72956         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72957
72958 2006-04-19  Derek Price  <derek@ximbiot.com>
72959             Eric Blake  <ebb9@byu.net>
72960
72961         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72962         rather than "/full/path.h".  Update comment to match.  Shorten &
72963         generalize m4_translit call via AS_TR_CPP.
72964
72965 2006-04-19  Derek Price  <derek@ximbiot.com>
72966             Eric Blake  <ebb9@byu.net>
72967
72968         * lib/inttypes.h: Correct grammar in comment.
72969
72970 2006-04-18  Derek Price  <derek@ximbiot.com>
72971             Paul Eggert  <eggert@cs.ucla.edu>
72972
72973         * modules/inttypes: New file.
72974         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72975
72976 2006-04-18  Derek Price  <derek@ximbiot.com>
72977             Paul Eggert  <eggert@cs.ucla.edu>
72978
72979         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72980         New files.
72981
72982 2006-04-18  Derek Price  <derek@ximbiot.com>
72983             Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         * lib/inttypes.h: New file.
72986         * lib/strtoimax.c: Assume <inttypes.h>.
72987
72988 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72989
72990         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72991         isn't mounted.  Problem reported by Kir Kolyshkin.
72992
72993 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72994
72995         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72996         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72997         Derek R. Price.
72998         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72999         implementation.
73000
73001 2006-04-12  Eric Blake  <ebb9@byu.net>
73002
73003         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73004         is now done automatically by the corresponding Autoconf macro.
73005
73006 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73009         time_r.h.
73010
73011 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73012
73013         Merge regex changes from libc, removing some of our
73014         POSIX-conformance changes that were rejected and redoing them in a
73015         less-intrusive way.
73016
73017         * lib/regcomp.c (re_compile_internal, init_dfa):
73018         Length arg is now size_t, not Idx.  All uses changed.
73019         (peek_token): Forward decl now says internal_function.
73020         (__re_error_msgid, __re_error_msgid_idx):
73021         Now static rather than extern with attribute_hidden.
73022         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73023         For some reason libc prefers K&R style defns for external functions.
73024         (regerror) [!defined _LIBC]: Likewise.
73025         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73026         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73027         (build_range_exp, build_collating_symbol):
73028         Use K&R-style defn.
73029         (re_compile_fastmap): Use '\0' to memset, not 0.
73030         (utf8_sb_map): Make the calculations more obvious.
73031         (init_dfa, parse_bracket_exp, build_charclass_op):
73032         Call calloc and cast result, as glibc does.
73033         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73034         (build_range_exp, build_collating_symbol):
73035         Now internal functions.
73036
73037         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73038
73039         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73040         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73041         Don't depend on VMS; depend on __VMS instead, for POSIX
73042         namespace cleanness.
73043         (regoff_t): Define to ssize_t, not long int.
73044
73045         Remove the REG_ macros named below.  Instead, make the old names
73046         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73047         __USE_GNU_REGEX.
73048         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73049         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73050         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73051         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73052         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73053         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73054         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73055         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73056         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73057         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73058         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73059         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73060         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73061         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73062         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73063         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73064         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73065         (REG_NREGS):
73066         Remove.  All uses replaced by the old RE_* names.
73067         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73068         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73069         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73070         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73071         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73072         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73073         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73074         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73075         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73076         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73077         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73078         Don't bother having these macros be independent of each others'
73079         values, since they no longer exist in the POSIX name space.
73080
73081         Rename the following member names back to their old names,
73082         unless !__USE_GNU_REGEX.  All uses changed back.
73083         (buffer): Renamed from re_buffer.
73084         (allocated): Renamed from re_allocated.
73085         (used): Renamed from re_used.
73086         (syntax): Renamed from re_syntax.
73087         (fastmap): Renamed from re_fastmap.
73088         (translate): Renamed from re_translate.
73089         (can_be_null): Renamed from re_can_be_null.
73090         (regs_allocated): Renamed from re_regs_allocated.
73091         (fastmap_accurate): Renamed from re_fastmap_accurate.
73092         (no_sub): Renamed from re_no_sub.
73093         (not_bol): Renamed from re_not_bol.
73094         (not_eol): Renamed from re_not_eol.
73095         (newline_anchor): Renamed from re_newline_anchor.
73096         (num_regs): Renamed from rm_num_regs.
73097         (start): Renamed from rm_start.
73098         (end): Renamed from rm_end.
73099
73100         (free_state): Move up a bit.
73101
73102         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73103         #define to be empty.
73104         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73105         when that is what is intended.
73106         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73107         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73108         (MAX): New macro.
73109         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73110         All uses changed back to re_malloc, etc.  It's now the caller's
73111         responsibility to check for overflow; all callers changed.
73112         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73113         (re_x2nrealloc): Remove.
73114         (free_state): Remove decl.
73115
73116         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73117         (re_set_registers, re_exec):
73118         Use K&R-style defn.
73119
73120         2006-01-31  Roland McGrath  <roland@redhat.com>
73121
73122         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73123         Reported by Mike Frysinger <vapier@gentoo.org>.
73124
73125         2006-01-15  Andreas Jaeger  <aj@suse.de>
73126
73127         [BZ #1950]
73128         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73129         build_wcs_upper_buffer change.
73130         (build_wcs_upper_buffer): Change return type.
73131
73132         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73133
73134         * lib/regex_internal.h: Include <stdint.h> if available.
73135
73136         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73137
73138         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73139
73140         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73141
73142         * lib/regcomp.c: Adjust for changed secondary hash function.
73143
73144         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73145
73146         * lib/regex.h: Pretty printing.
73147         Clean up namespace a bit.
73148
73149         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73150
73151         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73152         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73153
73154         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73155                     Ulrich Drepper  <drepper@redhat.com>
73156
73157         [BZ #1302]
73158         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73159         changed.
73160         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73161
73162         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73163
73164         [BZ #281]
73165         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73166         * lib/regcomp.c: Remove unnecessary uses of
73167         unsigned RE_TRANSLATE_TYPE.
73168         * lib/regex_internal.h: Likewise.
73169         * lib/regex_internal.c: Likewise.
73170         * lib/regexec.c: Likewise.
73171         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73172
73173         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73174
73175         * lib/regexec.c (find_recover_state): Remove unnecessary
73176         initialization.
73177         (transit_state_bkref): Make DFA a const pointer.
73178         (get_subexp): Likewise.
73179         (check_arrival): Likewise.
73180         (update_cur_sifted_state): Likewise.
73181         (re_search_internal): Likewise.
73182         (prune_impossible_nodes): Likewise.
73183         (acquire_init_state_context): Likewise.
73184         (proceed_next_node): Likewise.
73185         (set_regs): Likewise.
73186         (free_fail_stack_return): Likewise.
73187         (check_arrival_expand_ecl): Mark DFA parameter as const.
73188         (check_arrival_expand_ecl_sub): Likewise.
73189         (check_subexp_limits): Likewise.
73190         (sub_epsilon_src_nodes):  Likewise.
73191         (add_epsilon_src_nodes):  Likewise.
73192         (merge_state_array): Likewise.
73193         (update_regs): Likewise.
73194         (build_trtable): Likewise.
73195         (sift_states_backward): Mark MCTX parameter as const.
73196         (build_sifted_states): Likewise.
73197         (update_cur_sifted_state): Likewise.
73198         (sift_states_mkref): Likewise.
73199         (check_arrival_expand_ecl): Mark eclosure as const.
73200         (check_dst_limits_calc_pos_1): Likewise.
73201         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73202         pointer.
73203
73204         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73205
73206         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73207         (transit_state_sb): Likewise.
73208         (transit_state_mb): Likewise.
73209         (sift_states_iter_mb): Likewise.
73210         (check_arrival_add_next_nodes): Likewise.
73211         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73212         [_LIBC] (re_search_2_stub): Use mempcpy.
73213
73214         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73215         mbrtowc for very simple UTF-8 case.
73216
73217         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73218         a pointer-to-const.
73219         (re_acquire_state_context): Likewise.
73220         * lib/regex_internal.h: Adjust prototypes.
73221
73222         * lib/regex.c: Prevent using C++ compilers.
73223
73224         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73225         (re_acquire_state_context): Likewise.
73226
73227 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73228
73229         * modules/regex (Depends-on): Add ssize_t.
73230
73231 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73232
73233         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73234         translation table.
73235
73236 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73237
73238         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73239
73240 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73241             Bruno Haible  <bruno@clisp.org>
73242
73243         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73244         <sys/types.h> and <inttypes.h>.
73245
73246 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73247
73248         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73249         `__error_t_defined', so argp.h will not typedef the former.
73250
73251 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73252
73253         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73254         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73255         glibc names.  Even if glibc is changed to conform to POSIX, the
73256         traditional names will be available anyway, since regex depends on
73257         the extensions module.  Also, fix a longstanding typo in the
73258         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73259         reported by Emanuele Giaquinta.  Also, change sense of cached
73260         variable, so that the message makes sense.
73261
73262 2006-03-24  Simon Josefsson  <jas@extundo.com>
73263
73264         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73265         including some doc fixes.
73266         (base64_encode_alloc): Fix +1 bug on allocation failures.
73267
73268 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73269
73270         * lib/base64.c (base64_encode): Do not read past end of array with
73271         unsanitized input on systems with CHAR_BIT > 8.
73272
73273 2006-03-24  Eric Blake  <ebb9@byu.net>
73274
73275         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73276
73277 2006-03-22  Karl Berry  <karl@gnu.org>
73278
73279         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73280         * config/srclistvars.sh (COREUTILS): new var.
73281
73282 2006-03-17  Jim Meyering  <jim@meyering.net>
73283
73284         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73285         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73286
73287 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73288
73289         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73290         no longer needs it.  Instead, check that regoff_t is as least
73291         as wide as ptrdiff_t.
73292
73293         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73294         so that our regex.h stays compatible with the installed regex.
73295         This is helpful for installers who configure --without-included-regex.
73296         Problem reported by Emanuele Giaquinta.
73297
73298 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73301         Typedef to long int, not to off_, as POSIX will likely change
73302         in that direction.
73303
73304 2006-03-15  Eric Blake  <ebb9@byu.net>
73305
73306         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73307
73308 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73309
73310         * lib/argp-help.c (validate_uparams): Fix typo
73311         * lib/argp-parse.c (argp_default_options): Consistently begin help
73312         messages with a lowercase letter.
73313
73314 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73317         overrun buffers and shouldn't be used (much as gets shouldn't be
73318         used).
73319         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73320
73321 2006-03-08  Simon Josefsson  <jas@extundo.com>
73322
73323         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73324         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73325
73326 2006-03-08  Simon Josefsson  <jas@extundo.com>
73327
73328         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73329         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73330
73331 2006-03-08  Simon Josefsson  <jas@extundo.com>
73332
73333         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73334         signal that configure disabled the device.
73335
73336 2006-03-08  Simon Josefsson  <jas@extundo.com>
73337
73338         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73339         languages.
73340
73341 2006-03-07  Simon Josefsson  <jas@extundo.com>
73342
73343         * modules/getopt (Depends-on): Add unistd.
73344
73345         * modules/unistd: New file.
73346
73347 2006-03-07  Simon Josefsson  <jas@extundo.com>
73348
73349         * modules/gc-random: New file.
73350
73351 2006-03-07  Simon Josefsson  <jas@extundo.com>
73352
73353         * m4/unistd_h.m4: New file.
73354
73355 2006-03-07  Simon Josefsson  <jas@extundo.com>
73356
73357         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73358         test to be side-effect free by storing the result in the cache
73359         variable gl_cv_lib_readline, and moving the assignment of
73360         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73361         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73362
73363 2006-03-07  Simon Josefsson  <jas@extundo.com>
73364
73365         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73366         error on missing devices (the functions will return an error).
73367
73368         * m4/gc.m4: Move random stuff to gc-random.m4
73369
73370 2006-03-07  Simon Josefsson  <jas@extundo.com>
73371
73372         * lib/unistd_.h: New file.
73373
73374 2006-03-07  Simon Josefsson  <jas@extundo.com>
73375
73376         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73377
73378 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73379
73380         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73381         Problem reported by Juan Manuel Guerrero.
73382
73383 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73386         the unistd module.
73387         * lib/getlogin_r.c: Likewise.
73388         * lib/getlogin_r.h: Likewise.
73389         * lib/glob.c: Likewise.
73390         * lib/pagealign_alloc.c: Likewise.
73391         * lib/unistd_.h: Remove; no longer needed.
73392
73393 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73394
73395         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73396         Add unistd.
73397         * modules/c-stack (Depends-on): Add unistd.
73398         * modules/getlogin_r: Likewise.
73399         * modules/glob: Likewise.
73400         * modules/pagealign_alloc: Likewise.
73401         * modules/unistd (Files): Remove lib/unistd_.h.
73402         (EXTRA_DIST): Remove.
73403         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73404         need unistd_.h.
73405         (MOSTLYCLEANFILES): Remove unistd.h-t.
73406
73407 2006-03-03  Simon Josefsson  <jas@extundo.com>
73408
73409         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73410
73411 2006-03-03  Simon Josefsson  <jas@extundo.com>
73412
73413         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73414         libidn and bison.
73415
73416 2006-03-03  Simon Josefsson  <jas@extundo.com>
73417
73418         * build-aux/maint.mk: Add indent target.
73419
73420 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73421
73422         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73423         our replacement poll.h in any case, to avoid a differing
73424         declaration from a system header.  Seen on AIX.
73425
73426 2006-03-01  Simon Josefsson  <jas@extundo.com>
73427
73428         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73429         <kasal@ucw.cz>.
73430
73431 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73432
73433         * modules/gettime (Depends-on): Add extensions module.
73434         * modules/nanosleep (Depends-on): Likewise.
73435         * modules/settime (Depends-on): Likewise.
73436
73437 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73438
73439         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73440         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73441         pedantically.
73442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73443         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73444
73445         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73446         not "==".  Reported by Ralf Wildenhues.
73447
73448 2006-03-01  Karl Berry  <karl@gnu.org>
73449
73450         * doc/Copyright/request-*: new files, synced from gnuorg.
73451
73452 2006-03-01  Karl Berry  <karl@gnu.org>
73453
73454         * config/srclist.txt (Copyright/*): new entries.
73455
73456 2006-02-28  Simon Josefsson  <jas@extundo.com>
73457
73458         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73459
73460 2006-02-27  Simon Josefsson  <jas@extundo.com>
73461
73462         * lib/base64.h: Indent #define's.  From Jim Meyering
73463         <jim@meyering.net>.
73464
73465 2006-02-27  Jim Meyering  <jim@meyering.net>
73466
73467         Revert the change of 2006-02-24, so these files can continue
73468         to be sync'd from gettext.
73469         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73470         of `config.h'.
73471
73472 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73473
73474         * modules/intprops: New file.
73475         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73476         Add intprops.
73477         * modules/getloadavg (Files): Remove lib/intprops.h.
73478         (Depends-on): Add intprops.
73479         * modules/human: Likewise.
73480         * modules/inttostr: Likewise.
73481         * modules/openat: Likewise.
73482         * modules/sig2str: Likewise.
73483         * modules/userspec: Likewise.
73484         * modules/utimecmp: Likewise.
73485         * modules/xnanosleep: Likewise.
73486         * modules/xstrtol: Likewise.
73487
73488 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73489
73490         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73491         * modules/lock-tests (TESTS): Use $(EXEEXT).
73492         * modules/tls-tests: Likewise.
73493         * modules/argp-tests: Likewise.
73494         (check_PROGRAMS): New var, replacing...
73495         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73496
73497 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73498
73499         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73500         `config.h'.
73501
73502 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73505
73506 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73507
73508         Sync from coreutils.
73509         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73510         gl_CHDIR_SAFER.
73511
73512 2006-02-22  Jim Meyering  <jim@meyering.net>
73513
73514         Sync from coreutils.
73515         * m4/chdir-safer.m4: New file.
73516
73517 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73520         AT_FDCWD exceeds INT_MAX.
73521         * lib/openat.h (AT_FDCWD): Likewise.
73522
73523 2006-02-17  Eric Blake  <address@hidden>
73524
73525         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73526
73527 2006-02-16  Simon Josefsson  <jas@extundo.com>
73528
73529         * modules/getaddrinfo (Depends-on): Add sys_socket.
73530
73531 2006-02-15  Simon Josefsson  <jas@extundo.com>
73532
73533         * build-aux/maint.mk: Add dsyntax-check rule.
73534
73535 2006-02-15  Eric Blake  <ebb9@byu.net>
73536
73537         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73538         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73539         'present but cannot compile' warnings on cygwin.
73540         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73541         use ws2tcpip.h if sys/socket.h works.
73542         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73543         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73544
73545 2006-02-14  Simon Josefsson  <jas@extundo.com>
73546
73547         * modules/maintainer-makefile (Files): Rename.
73548
73549         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73550         and (the local) Makefile.cfg to maint-cfg.mk.
73551
73552         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73553         to the latter.
73554
73555         * modules/maintainer-makefile: New module.
73556
73557         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73558         severaly stripped to make it possible to build it up from scratch
73559         with reliable tests.
73560
73561         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73562         fixes to permit overriding the default actions when configure and
73563         makefile are not available.
73564
73565 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         Sync from coreutils.
73568         * modules/lstat (Depends-on): Don't depend on xalloc.
73569         (License): Change from GPL to LGPL, since this is now simply a
73570         replacement for a libc function.
73571
73572 2006-02-14  Jim Meyering  <jim@meyering.net>
73573
73574         Sync from coreutils.
73575
73576         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73577         failure on deficient systems, and simplify gnulib lgpl dependencies.
73578         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73579         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73580
73581         * lib/xalloc-die.c: Remove unused definition of N_.
73582
73583 2006-02-14  Jim Meyering  <jim@meyering.net>
73584
73585         Sync from coreutils.
73586         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73587         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73588         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73589         double-quote uses of that variable, to accommodate the rare case in
73590         which getmntent is available in none of the libraries checked.  This
73591         happens at least on FreeBSD 5.0.
73592
73593 2006-02-13  Simon Josefsson  <jas@extundo.com>
73594
73595         * gnulib-tool (Usage): Fix --import, from
73596         karl@freefriends.org (Karl Berry).
73597
73598 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73599
73600         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73601
73602 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73603
73604         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73605         "autoupdate" on 2005-12-12.
73606
73607 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * modules/closeout (Depends-on): Remove atexit.
73610
73611 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73614         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73615
73616 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73619         __EXTENSIONS__ if this causes compilation to fail.  Problem
73620         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73621         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73622
73623 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73626         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73628         All uses changed.
73629
73630 2006-01-26  Simon Josefsson  <jas@extundo.com>
73631
73632         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73633         prototype is visible on mingw32.
73634
73635         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73636         for mingw32.
73637
73638         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73639         mingw32).
73640
73641 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73642
73643         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73644         attempt to open for write; this always fails, at least on POSIX
73645         hosts.  This reinstates the 2006-01-09 change, which was
73646         inadvertently removed.
73647
73648 2006-01-26  Bruno Haible  <bruno@clisp.org>
73649
73650         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73651         Reported by Paul Eggert.
73652
73653 2006-01-26  Bruno Haible  <bruno@clisp.org>
73654             Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * lib/stdbool_.h (_Bool)
73657         [(! (defined __cplusplus || defined __BEOS__)
73658           && !defined __GNUC__
73659           && !(defined __HP_cc || defined __xlc__
73660                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73661                || defined __sgi))]:
73662         #define to signed char in these cases too; this simplifies
73663         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73664         etc., separately) and makes it more conservative.
73665
73666 2006-01-25  Simon Josefsson  <jas@extundo.com>
73667
73668         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73669         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73670         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73671
73672 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73673
73674         * lib/argp-namefrob.h: Bugfix. Remove stray #
73675
73676 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73679         so that we test the test.
73680         Check for yet another HP-UX cc bug involving *bool |= bool.
73681
73682 2006-01-25  Karl Berry  <karl@gnu.org>
73683
73684         * config/srclist.txt (vasnprintf.c): sync lost.
73685
73686 2006-01-25  Jim Meyering  <jim@meyering.net>
73687
73688         Sync from the stable (b5) branch of coreutils:
73689
73690         * lib/fts.c (fts_children): Don't let close() clobber errno from
73691         failed fchdir().
73692
73693         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73694         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73695         a dangling symlink.  That can also happen at least for ELOOP.
73696         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73697         FYI, this bug predates the inclusion of fts.c in coreutils.
73698
73699         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73700         in their own block, so pre-c99 compilers don't object.
73701
73702         Avoid the double-free (first in fts_read, second in fts_close) that
73703         would occur when an `active' directory is made inaccessible (e.g.,
73704         via chmod a-x) during a traversal.
73705         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73706         before returning.  Reproduce this failure by
73707         mkdir -p a/b; cd a; chmod a-x . b
73708         Reported by Stavros Passas.
73709
73710 2006-01-25  Jim Meyering  <jim@meyering.net>
73711
73712         * lib/fileblocks.c: Remove more useless parentheses.
73713         * lib/readutmp.h: Likewise.
73714
73715 2006-01-25  Bruno Haible  <bruno@clisp.org>
73716
73717         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73718         warnings.
73719         Reported by Paul Eggert.
73720
73721 2006-01-25  Bruno Haible  <bruno@clisp.org>
73722
73723         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73724         rid of a trap command. For Solaris sh.
73725         Reported by Mark D. Baushke <mdb@gnu.org>.
73726
73727 2006-01-24  Simon Josefsson  <jas@extundo.com>
73728
73729         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73730         Bruno.
73731
73732 2006-01-24  Karl Berry  <karl@gnu.org>
73733
73734         * config/srclist.txt (argp-namefrob.h): sync lost.
73735
73736 2006-01-24  Jim Meyering  <jim@meyering.net>
73737
73738         * modules/openat (Files): Add lib/intprops.h.
73739         From Mark D. Baushke.
73740
73741 2006-01-24  Jim Meyering  <jim@meyering.net>
73742
73743         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73744         Reported by Mark D. Baushke.
73745
73746 2006-01-24  Jim Meyering  <jim@meyering.net>
73747
73748         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73749
73750 2006-01-24  Bruno Haible  <bruno@clisp.org>
73751
73752         * modules/strnlen (Maintainer): Change from glibc to all.
73753
73754 2006-01-24  Bruno Haible  <bruno@clisp.org>
73755
73756         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73757         Patch by Paul Eggert.
73758
73759 2006-01-24  Bruno Haible  <bruno@clisp.org>
73760
73761         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73762         already has it.
73763         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73764         2005-11-26.
73765
73766         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73767         'signed char' to avoid problems with the built-in _Bool type.
73768         Reported by Paul Eggert on 2005-11-26.
73769
73770 2006-01-24  Bruno Haible  <bruno@clisp.org>
73771
73772         * gnulib-tool (func_import): Avoid constructing complicated sed
73773         expressions inside backquote.
73774         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73775
73776 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73777
73778         These changes imported from libc.
73779         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73780         test and two separate function calls.
73781         * lib/strndup.c (__strndup): Add libc_hidden_def.
73782
73783 2006-01-23  Simon Josefsson  <jas@extundo.com>
73784
73785         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73786         Remove the test_*_SOURCES variable: automake infers it by default.
73787         * modules/tls-tests: Likewise.
73788
73789 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73790
73791         Work around porting bugs reported by Dieter in
73792         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73793         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73794         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73795         Include "getopt.h" first, to check interface.
73796         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73797         !HAVE_DECL_GETENV.
73798         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73799         (__strndup): Revert to K&R-style function dfns, the glibc style.
73800         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73801         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73802         Include strnlen.h first, to get prototype properly.
73803         (strnlen): Renamed from __strnlen.
73804         Remove weak alias.
73805
73806 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73809
73810 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73811
73812         * config/srclist.txt: Adjust to reflect glibc reorganization.
73813         This affects only comments.
73814
73815 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73816
73817          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73818          Reported by Bruce Korb <bkorb@gnu.org>.
73819
73820 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73821
73822         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73823         to pacify gcc -Wswitch-default.
73824
73825 2006-01-22  Bruno Haible  <bruno@clisp.org>
73826
73827         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73828         temporary buffer for sprintf, take into account the precision also
73829         for 'd', 'i', 'u', 'o', 'x', 'X'.
73830
73831 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73832
73833         * modules/argp-tests: New module
73834         * tests/test-argp.c: New file
73835         * tests/test-argp-2.sh: New file
73836
73837 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73838
73839         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73840         (__argp_base_name): Removed
73841         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73842         typo.
73843         (__argp_base_name): Provide macro definition or extern declaration
73844         depending on the configuration
73845
73846 2006-01-20  Simon Josefsson  <jas@extundo.com>
73847
73848         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73849
73850 2006-01-20  Simon Josefsson  <jas@extundo.com>
73851
73852         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73853
73854 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73857         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73858         Suggested by Bruno Haible.
73859
73860 2006-01-20  Karl Berry  <karl@gnu.org>
73861
73862         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73863         until changes propagate, I guess.
73864
73865 2006-01-19  Simon Josefsson  <jas@extundo.com>
73866
73867         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73868
73869 2006-01-19  Simon Josefsson  <jas@extundo.com>
73870
73871         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73872
73873 2006-01-19  Simon Josefsson  <jas@extundo.com>
73874
73875         * gnulib-tool: Set check_PROGRAMS.
73876
73877         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73878         modules/des-tests, modules/gc-arcfour-tests,
73879         modules/gc-arctwo-tests, modules/gc-des-tests,
73880         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73881         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73882         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73883         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73884         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73885         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73886         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73887         test_*_SOURCES.
73888
73889 2006-01-18  Simon Josefsson  <jas@extundo.com>
73890
73891         * modules/socklen (Depends-on): Depend on sys_socket.
73892
73893 2006-01-18  Simon Josefsson  <jas@extundo.com>
73894
73895         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73896         modules/des-tests, modules/gc-arcfour-tests,
73897         modules/gc-arctwo-tests, modules/gc-des-tests,
73898         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73899         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73900         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73901         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73902         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73903         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73904         $(EXEEXT) to automake TESTS variable, for mingw32.
73905
73906 2006-01-17  Simon Josefsson  <jas@extundo.com>
73907
73908         * modules/socklen (Include): Need sys/socket.h.
73909
73910 2006-01-17  Bruno Haible  <bruno@clisp.org>
73911
73912         * modules/ssize_t (Include): Add <sys/types.h>.
73913
73914 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73917         it's not portable and it doesn't work with cross-compiles.
73918         Problem reported by Bruno Haible.  Fix missing-$ typo in
73919         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73920         -zignore from being used with Sun's C compiler.
73921
73922 2006-01-12  Simon Josefsson  <jas@extundo.com>
73923
73924         * lib/base64.c: Fix warning, reported by Bruno Haible
73925         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73926
73927 2006-01-12  Bruno Haible  <bruno@clisp.org>
73928
73929         * modules/ldd: New file.
73930         * build-aux/ldd.sh.in: New file.
73931         * MODULES.html.sh (Support for building libraries and executables): Add
73932         ldd.
73933
73934 2006-01-12  Bruno Haible  <bruno@clisp.org>
73935
73936         * m4/ldd.m4: New file.
73937
73938 2006-01-12  Bruno Haible  <bruno@clisp.org>
73939
73940         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73941         endless loop while replacing $auxdir with build-aux.
73942
73943 2006-01-11  Simon Josefsson  <jas@extundo.com>
73944
73945         * lib/stdint_.h (SIZE_MAX): Add missing (.
73946
73947 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73948
73949         Sync from coreutils.
73950         * lib/md5.c: Fix commentary typos.
73951         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73952         * lib/md5.h (__attribute__): Remove; unused.
73953         * lib/sha1.c: Fix commentary to match md5 better.
73954         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73955         so that we don't need to worry about alignment.  All uses changed.
73956         This merges the 2005-10-28 md5 change into sha1.
73957
73958 2006-01-11  Jim Meyering  <jim@meyering.net>
73959
73960         Sync from coreutils.
73961         * lib/md5.c (OP): Fix spacing.
73962
73963 2006-01-11  Bruno Haible  <bruno@clisp.org>
73964
73965         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73966         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73967         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73968
73969 2006-01-11  Bruno Haible  <bruno@clisp.org>
73970
73971         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73972         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73973         the "early" section as well.
73974
73975 2006-01-11  Bruno Haible  <bruno@clisp.org>
73976
73977         Avoid "ar: no archive members specified" error on MacOS X.
73978         * gnulib-tool (func_modules_add_dummy): New function.
73979         (func_import, func_create_testdir): Invoke it.
73980
73981 2006-01-11  Bruno Haible  <bruno@clisp.org>
73982
73983         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73984         with $auxdir in AC_CONFIG_FILES statements.
73985
73986 2006-01-11  Bruno Haible  <bruno@clisp.org>
73987
73988         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73989         Initialize also noinst_HEADERS to empty.
73990
73991 2006-01-11  Bruno Haible  <bruno@clisp.org>
73992
73993         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73994         variables.
73995         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73996         autoreconf.
73997
73998 2006-01-11  Bruno Haible  <bruno@clisp.org>
73999
74000         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74001         overridable by the user.
74002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74003
74004 2006-01-10  Simon Josefsson  <jas@extundo.com>
74005
74006         * modules/sys_socket: New file.
74007
74008 2006-01-10  Simon Josefsson  <jas@extundo.com>
74009
74010         * m4/sys_socket_h.m4: New file.
74011
74012 2006-01-10  Simon Josefsson  <jas@extundo.com>
74013
74014         * lib/socket_.h: New file.
74015
74016 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74017
74018         * modules/readutmp (Maintainer): Add myself.
74019
74020 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74023         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74024         People who are still concerned with buggy memcmp implementations
74025         can invoke gl_FUNC_MEMCMP themselves.
74026
74027 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74028
74029         * lib/regex_internal.h (BITSET_WORD_BITS):
74030         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74031         preprocessor mishandles large unsigned values as if they were signed.
74032         Problem reported by Claudio Fontana in
74033         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74034
74035 2006-01-10  Jim Meyering  <jim@meyering.net>
74036
74037         Avoid the double-free (first in fts_read, second in fts_close) that
74038         would occur when an `active' directory is made inaccessible (e.g.,
74039         via chmod a-x) during a traversal.
74040         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74041         before returning.  Reproduce this failure by
74042         mkdir -p a/b; cd a; chmod a-x . b
74043         Reported by Stavros Passas.
74044
74045         Sync from coreutils.
74046         * lib/sha1.c: Tweak grammar in a comment.
74047
74048 2006-01-10  Jim Meyering  <jim@meyering.net>
74049
74050         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74051         Patch by Joerg Sonnenberger.
74052
74053 2006-01-10  Bruno Haible  <bruno@clisp.org>
74054
74055         * modules/readutmp: Depend on module free.
74056         * modules/strtok_r: Depend on module restrict.
74057
74058 2006-01-10  Bruno Haible  <bruno@clisp.org>
74059
74060         * modules/gettext (configure.ac): Add an invocation of
74061         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74062
74063 2006-01-10  Bruno Haible  <bruno@clisp.org>
74064
74065         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74066         Reported by Werner Lemberg <wl@gnu.org>.
74067
74068 2006-01-10  Bruno Haible  <bruno@clisp.org>
74069
74070         * lib/localcharset.c: Update from GNU gettext.
74071
74072 2006-01-10  Bruno Haible  <bruno@clisp.org>
74073
74074         * lib/argp.h (__const): Remove macro. Use const instead.
74075         * lib/argp-fmtstream.h (__const): Likewise.
74076         * lib/glob_.h (__const): Remove macro.
74077         * lib/glob-libc.h: Use const instead of __const.
74078
74079 2006-01-10  Bruno Haible  <bruno@clisp.org>
74080
74081         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74082         variable.
74083         Needed to avoid an automake error regarding the 'gettext' module.
74084
74085 2006-01-09  Simon Josefsson  <jas@extundo.com>
74086
74087         * modules/inet_ntop (Depends-on): Add restrict.
74088
74089 2006-01-09  Simon Josefsson  <jas@extundo.com>
74090
74091         * modules/gc-rijndael-tests (License): Put under LGPL.
74092
74093         * modules/gc-des-tests (License): Likewise.
74094
74095         * modules/gc-arcfour-tests (License): Likewise.
74096
74097         * modules/gc-arctwo-tests (License): Likewise.
74098
74099         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74100
74101         * modules/gc-hmac-sha1-tests (Files): Likewise.
74102
74103         * modules/gc-hmac-md5-tests (License): Likewise.
74104
74105         * modules/gc-sha1-tests (License): Likewise.
74106
74107         * modules/gc-md5-tests (License): Likewise.
74108
74109         * modules/gc-md4-tests (License): Likewise.
74110
74111         * modules/gc-md2-tests (License): Likewise.
74112
74113         * modules/gc-tests (License): Likewise.
74114
74115         * modules/des-tests (License): Likewise.
74116
74117         * modules/md4-tests (License): Likewise.
74118
74119         * modules/md2-tests (License): Likewise.
74120
74121 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74122
74123         Sync from coreutils:
74124
74125         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74126         * modules/lib-ignore: New file.
74127         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74128         chdir-safer.m4, lchmod.m4.
74129         * modules/openat: Add mkdirat.c, openat-priv.h.
74130
74131 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         Sync from coreutils.
74134         * m4/lib-ignore.m4: New file.
74135         * m4/lchmod.m4: New file.
74136
74137 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74138
74139         Sync from coreutils.
74140         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74141         for write access: POSIX says that must fail.
74142         * lib/fts.c (diropen): Likewise.
74143         * lib/save-cwd.c (save_cwd): Likewise.
74144         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74145         well, for minor improvements on hosts that lack O_DIRECTORY.
74146         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74147         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74148         Fall back on chown if open failed with EACCES.
74149
74150         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74151         Report an error at compile-time if only a 1-second nominal clock
74152         resolution is found.
74153
74154         * lib/lchmod.h: New file.
74155         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74156         (make_dir_parents): Use lchown rather than chown, and
74157         lchmod rather than chmod.
74158
74159         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74160         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74161         "proc" reported by n0dalus.
74162
74163         * lib/mountlist.c: Include <limits.h>.
74164         (dev_from_mount_options)
74165         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74166         New function.  It no longer assumes "dev=" has the System V meaning
74167         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74168         (read_file_system_list)
74169         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74170         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74171         dev= in that case.
74172
74173         * lib/posixtm.h (PDS_PRE_2000): New macro.
74174         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74175         allow_century.  All usages changed.  Reject dates outside the range
74176         1969-1999 if PDS_PRE_2000 is used.
74177
74178 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74179
74180         Sync from coreutils.
74181         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74182         (Time of day items): Mention the possibility of leap seconds.
74183         Problem reported by Dr. David Alan Gilbert.
74184
74185 2006-01-09  Jim Meyering  <jim@meyering.net>
74186
74187         Sync from coreutils.
74188
74189         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74190
74191         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74192
74193         * lib/modechange.c (mode_compile): Reject an invalid mode string
74194         that starts with an octal digit.  From Andreas Gruenbacher.
74195
74196         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74197         and dup to open_safer and dup_safer, respectively.
74198         (openat_permissive): Fix typo in comment.
74199
74200         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74201         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74202         (_): Remove; no longer needed.
74203         (openat): Renamed from rpl_openat; no need for rpl_openat
74204         since openat.h renames openat for us.
74205         Replace most of the body with a call to openat_permissive,
74206         to avoid duplicate code.
74207         Port to (probably hypothetical) environments were mode_t is
74208         wider than int.
74209         (openat_permissive): Require mode arg, so that we can check
74210         types better.  Put it just after flags.  Change cwd failure
74211         indicator from pointer-to-bool to pointer-to-errno-value.
74212         All callers changed.
74213         Invoke openat_save_fail and/or openat_restore_fail if
74214         cwd_errno is null, so that openat can call us.
74215         (openat_permissive, fdopendir, fstatat, unlinkat):
74216         Simplify errno handling to avoid some duplicate code,
74217         as it's OK to set errno on success.
74218         * lib/openat.h: Revamp code so that function macros depend on
74219         __OPENAT_PREFIX only, not also on AT_FDCWD.
74220         (openat_ro): Remove.  Caller changed to use openat_permissive.
74221         (openat_permissive): Now a macro, if not a function.
74222         (openat_restore_fail, openat_save_fail): Now always functions,
74223         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74224
74225         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74226         and openat.c.
74227         * lib/mkdirat.c: Include openat-priv.h.
74228         Remove definitions of macros defined therein.
74229         * lib/openat.c: Likewise.
74230
74231         * lib/mkdirat.c (mkdirat): New file and function.
74232         * lib/openat.h (mkdirat): Declare.
74233
74234         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74235
74236         * lib/openat.h (openat_permissive): Declare.
74237         (openat_ro): Define.
74238
74239         * lib/openat.c (EXPECTED_ERRNO): New macro.
74240         (openat_permissive): New function -- used in remove.c rewrite.
74241         (all functions): Set errno just before returning, only if there
74242         was an actual failure.
74243         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74244
74245         Emulate openat-family functions using Linux's procfs, if possible.
74246         Idea and some code based on Ulrich Drepper's glibc changes.
74247
74248         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74249         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74250         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74251         before falling back on save_cwd and restore_cwd.
74252         (fdopendir, fstatat, unlinkat): Likewise.
74253
74254         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74255         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74256
74257         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74258         as second argument to va_arg.  Otherwise, some versions of gcc
74259         warn that `if this code is reached, the program will abort'.
74260
74261 2006-01-09  Jim Meyering  <jim@meyering.net>
74262
74263         Sync from coreutils.
74264         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74265         Require openat-priv.h.
74266
74267 2006-01-09  Bruno Haible  <bruno@clisp.org>
74268
74269         * modules/strnlen (Include): Use strnlen.h.
74270
74271 2006-01-09  Bruno Haible  <bruno@clisp.org>
74272
74273         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74274
74275 2006-01-09  Bruno Haible  <bruno@clisp.org>
74276
74277         * lib/sysexit_.h (EX_OK): New macro.
74278         Suggested by Martin Lambers <marlam@marlam.de>.
74279
74280 2006-01-09  Bruno Haible  <bruno@clisp.org>
74281
74282         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74283         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74284
74285 2006-01-09  Bruno Haible  <bruno@clisp.org>
74286
74287         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74288         numbers.
74289
74290 2006-01-09  Bruno Haible  <bruno@clisp.org>
74291
74292         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74293         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74294         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74295         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74296
74297 2006-01-09  Bruno Haible  <bruno@clisp.org>
74298
74299         * build-aux/javacomp.sh.in: New file, moved from lib/.
74300         * modules/javacomp-script (Files): Update.
74301         (configure.ac): Add AC_CONFIG_FILES invocation.
74302         (EXTRA_DIST): Remove variable.
74303
74304         * build-aux/javaexec.sh.in: New file, moved from lib/.
74305         * modules/javaexec (Files): Update.
74306         (configure.ac): Add AC_CONFIG_FILES invocation.
74307         (EXTRA_DIST): Remove javaexec.sh.in.
74308
74309         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74310         * modules/csharpcomp-script (Files): Update.
74311         (configure.ac): Add AC_CONFIG_FILES invocation.
74312         (EXTRA_DIST): Remove variable.
74313
74314         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74315         * modules/csharpexec (Files): Update.
74316         (configure.ac): Add AC_CONFIG_FILES invocation.
74317         (EXTRA_DIST): Remove csharpexec.sh.in.
74318
74319 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74320
74321         Sync from coreutils.
74322
74323         Add POSIX ACL support
74324         * lib/acl.h (copy_acl, set_acl): Add declarations.
74325         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74326         systems other than Linux.
74327         (chmod_or_fchmod): New function: use fchmod when possible,
74328         and chmod otherwise.
74329         (file_has_acl): Add a POSIX ACL implementation, with a
74330         Linux-specific subcase.
74331         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74332         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74333         acls are unsupported.
74334         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74335         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74336         are unsupported.
74337
74338 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74339
74340         Sync from coreutils.
74341         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74342
74343 2006-01-07  Bruno Haible  <bruno@clisp.org>
74344
74345         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74346         gl_EARLY.
74347
74348 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74349
74350         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74351         Problem reported for Mingw by Mark Junker.
74352
74353 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74354
74355         * README: Gnulib normally doesn't generate a tarball.
74356
74357 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74358
74359         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74360         long int, not int, for nanosecond counts, so that people who are
74361         used to POSIX struct timespec won't be surprised.  Reported by Jim
74362         Meyering.
74363
74364 2005-12-28  Bruno Haible  <bruno@clisp.org>
74365
74366         * build-aux/config.rpath: Update from GNU gettext.
74367
74368 2005-12-16  Jim Meyering  <jim@meyering.net>
74369
74370         * modules/fprintftime: New module.
74371         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74372
74373 2005-12-16  Jim Meyering  <jim@meyering.net>
74374
74375         * m4/fprintftime.m4: New file.
74376
74377 2005-12-16  Jim Meyering  <jim@meyering.net>
74378
74379         * lib/fprintftime.c, lib/fprintftime.h: New files.
74380
74381 2005-12-15  Simon Josefsson  <jas@extundo.com>
74382
74383         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74384         new m4/socklen.m4.
74385
74386 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74387
74388         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74389         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74390
74391 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74392
74393         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74394         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74395         struct uparams is valid. Fall back to the default values if it is
74396         not.
74397
74398 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74399
74400         * modules/argp (Files): Add argp-pin.c
74401         (Depends-on): dirname
74402         (lib_SOURCES): Add argp-pin.c
74403
74404 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74405
74406         * m4/argp.m4:  Check if program_invocation_name and
74407         program_invocation_short_name are declared and define appropriate
74408         macros if they are not.
74409
74410 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74411
74412         * lib/argp-help.c (__argp_base_name): New function
74413         (__argp_short_program_name): Rewrite using __argp_base_name
74414         * lib/argp-namefrob.h: Define program_invocation_name and
74415         program_invocation_short_name if requested
74416         (__argp_base_name): Add prototype
74417         * lib/argp-parse.c (argp_def): Use gettext wrappers
74418         (argp_default_parser): Use __argp_base_name
74419         * lib/argp-pin.c: New file. Defines program_invocation_name and
74420         program_invocation_short_name on systems that lack them.
74421
74422 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74423
74424         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74425         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74426         porting problem reported by Georg Schwarz in
74427         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74428
74429 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74432         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74433         porting problem reported by Georg Schwarz in
74434         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74435
74436 2005-12-05  Bruno Haible  <bruno@clisp.org>
74437
74438         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74439         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74440         Reported by Mark Junker <mjscod@gmx.de>.
74441
74442 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74443
74444         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74445         Use implementation from Albert Chin, with some
74446         comments/corrections by Stepan Kasal and myself.
74447
74448 2005-12-02  Bruno Haible  <bruno@clisp.org>
74449
74450         * gnulib-tool (func_import): Accept GPLed build tool modules when
74451         --lgpl is given.
74452         * modules/csharpcomp-script: New file.
74453         * modules/csharpcomp: Depend on it.
74454         * modules/javacomp-script: New file.
74455         * modules/javacomp: Depend on it.
74456         Suggested by Simon Josefsson.
74457
74458 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74459
74460         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74461         statement, to work around an HP-UX 10.20 compiler bug reported by
74462         Peter O'Gorman.
74463
74464 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74465
74466         * modules/savedir (Depends-on): Add openat.
74467
74468 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74469
74470         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74471         (uintmax_t) [defined uintmax_t]: Do not declare.
74472         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74473         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74474         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74475         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74476         sake of portability to weird hosts that C allows (though we don't
74477         know of any practical examples).
74478
74479         * lib/savedir.h (fdsavedir): New decl.
74480         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74481         contains most of the former guts of savedir.
74482         (savedir): Use savedirstream.
74483         Include "openat.h".
74484
74485 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74486
74487         * modules/obstack (Files): Add m4/ulonglong.m4.
74488         Problem reported by Davide Angelocola.
74489
74490 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74493         coreutils no longer futzes with rounding modes.
74494
74495 2005-11-14  Jim Meyering  <jim@meyering.net>
74496
74497         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74498         replacement of mkstemp.
74499
74500 2005-11-10  Simon Josefsson  <jas@extundo.com>
74501
74502         * lib/readline.c: Remove EOL.
74503
74504 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * modules/gethrxtime (Depends-on): Add gettime.
74507
74508 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74509
74510         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74511         or gettimeofday; no longer needed.
74512
74513 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74516         time business.
74517         (gethrxtime) [! (HAVE_NANOUPTIME
74518         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74519         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74520         our own approximation.
74521
74522 2005-11-08  Eric Blake  <ebb9@byu.net>
74523
74524         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74525
74526 2005-11-08  Eric Blake  <ebb9@byu.net>
74527
74528         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74529
74530 2005-11-04  Bruno Haible  <bruno@clisp.org>
74531
74532         * gnulib-tool: Implement --update mode.
74533
74534 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74535
74536         Fix porting problem reported by Theodoros V. Kalamatianos.
74537         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74538         Don't assume that futimes failing means we must fail.
74539
74540 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74543         variables to suggest the intended function of the PATH_MAX check.
74544
74545 2005-10-30  Kean Johnston  <jkj@sco.com>
74546
74547         Trivial changes to support SCO systems.
74548         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74549         as PATH_MAX.
74550         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74551         where __ptr is null when no I/O is pending.
74552
74553 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74554
74555         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74556         leave errno alone.  Problem reported by Dmitry V. Levin.
74557
74558 2005-10-28  Simon Josefsson  <jas@extundo.com>
74559
74560         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74561         Test more.
74562
74563         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74564
74565         * modules/md2, modules/md2-tests: New files.
74566
74567 2005-10-28  Simon Josefsson  <jas@extundo.com>
74568
74569         * m4/inet_ntop.m4: More tests.
74570
74571         * m4/gc-md2.m4, md2.m4: New file.
74572
74573 2005-10-28  Simon Josefsson  <jas@extundo.com>
74574
74575         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74576         "restrict" keywords, as per POSIX.  Protect the function
74577         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74578         Don't use K&R prototypes.  Check the sprintf return values.
74579         Re-define EAFNOSUPPORT if not present.  Indent.
74580
74581         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74582         suggested by Bruno Haible <bruno@clisp.org>.
74583
74584         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74585
74586         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74587
74588         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74589         libgcrypt).
74590
74591         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74592
74593         * lib/md2.h, lib/md2.c: New files.
74594
74595 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74596
74597         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74598         errno alone.  Problem reported by Frederic Jolliton.
74599
74600 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         * modules/verify (License): Change from GPL to LGPL.  This is a
74603         tiny module and there are apparently near-equivalents that are
74604         under the BSD license.
74605
74606 2005-10-24  Simon Josefsson  <jas@extundo.com>
74607
74608         * modules/sha1: Relicense to LGPL.
74609
74610 2005-10-24  Simon Josefsson  <jas@extundo.com>
74611
74612         * lib/md4.h: Shrink buffer size, now that we changed the type.
74613
74614 2005-10-23  Simon Josefsson  <jas@extundo.com>
74615
74616         * gnulib-tool (func_import): Fix --tests-base.
74617
74618 2005-10-22  Simon Josefsson  <jas@extundo.com>
74619
74620         * modules/arcfour (Depends-on): Need stdint.
74621
74622 2005-10-22  Simon Josefsson  <jas@extundo.com>
74623
74624         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74625         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74626
74627 2005-10-22  Simon Josefsson  <jas@extundo.com>
74628
74629         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74630         suggested by Bruno Haible <bruno@clisp.org>.
74631
74632 2005-10-22  Simon Josefsson  <jas@extundo.com>
74633
74634         * lib/crc.h: Include stddef.h, for size_t.
74635
74636 2005-10-22  Simon Josefsson  <jas@extundo.com>
74637
74638         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74639         arcfour_context struct (simplify test vector testing in GNU
74640         Shishi).
74641
74642 2005-10-21  Simon Josefsson  <jas@extundo.com>
74643
74644         * modules/des, modules/des-tests: New files.
74645
74646         * modules/gc-des, modules/gc-des-tests: New files.
74647
74648         * tests/test-des.c, tests/test-gc-des.c: New file.
74649
74650 2005-10-21  Simon Josefsson  <jas@extundo.com>
74651
74652         * modules/arctwo, modules/arctwo-tests: New files.
74653
74654         * tests/test-arctwo.c: New file.
74655
74656         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74657
74658         * tests/test-gc-arctwo.c: New file.
74659
74660 2005-10-21  Simon Josefsson  <jas@extundo.com>
74661
74662         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74663         Bruno Haible <bruno@clisp.org>.
74664
74665         * m4/gc-des.m4: New file.
74666
74667 2005-10-21  Simon Josefsson  <jas@extundo.com>
74668
74669         * m4/arctwo.m4: New file.
74670
74671         * m4/gc-arctwo.m4: New file.
74672
74673 2005-10-21  Simon Josefsson  <jas@extundo.com>
74674
74675         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74676         block.
74677
74678 2005-10-21  Simon Josefsson  <jas@extundo.com>
74679
74680         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74681         <bruno@clisp.org>.
74682
74683         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74684
74685         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74686         Bruno Haible <bruno@clisp.org>.
74687
74688         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74689         <bruno@clisp.org>.
74690
74691 2005-10-21  Simon Josefsson  <jas@extundo.com>
74692
74693         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74694
74695 2005-10-21  Simon Josefsson  <jas@extundo.com>
74696
74697         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74698
74699 2005-10-21  Simon Josefsson  <jas@extundo.com>
74700
74701         * lib/des.h, lib/des.c: New files.
74702
74703         * lib/gc-gnulib.c: Support DES.c
74704
74705 2005-10-21  Simon Josefsson  <jas@extundo.com>
74706
74707         * lib/arctwo.h, lib/arctwo.c: New files.
74708
74709         * lib/gc-gnulib.c: Support ARCTWO.
74710
74711 2005-10-21  Simon Josefsson  <jas@extundo.com>
74712
74713         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74714         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74715
74716 2005-10-21  Simon Josefsson  <jas@extundo.com>
74717
74718         * gnulib-tool (func_import, func_create_testdir): Define automake
74719         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74720         Makefile.am snippet),
74721         suggested by Bruno Haible <bruno@clisp.org>.
74722
74723         * modules/gc (Makefile.am): Use it.
74724
74725 2005-10-21  Bruno Haible  <bruno@clisp.org>
74726
74727         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74728         patch.
74729
74730 2005-10-19  Simon Josefsson  <jas@extundo.com>
74731
74732         * tests/test-gc-rijndael.c: New file.
74733
74734         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74735
74736 2005-10-19  Simon Josefsson  <jas@extundo.com>
74737
74738         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74739         interface too.
74740
74741 2005-10-19  Simon Josefsson  <jas@extundo.com>
74742
74743         * tests/test-gc-arcfour.c: New file.
74744
74745         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74746
74747 2005-10-19  Simon Josefsson  <jas@extundo.com>
74748
74749         * modules/gc-md4, modules/gc-md4-tests: New file.
74750
74751         * tests/test-gc-md4.c: New file.
74752
74753 2005-10-19  Simon Josefsson  <jas@extundo.com>
74754
74755         * m4/gc-md4.m4: New file.
74756
74757 2005-10-19  Simon Josefsson  <jas@extundo.com>
74758
74759         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74760         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74761         <kasal@ucw.cz>.
74762
74763 2005-10-19  Simon Josefsson  <jas@extundo.com>
74764
74765         * m4/gc-arcfour.m4: New file.
74766
74767         * m4/gc-rijndael.m4: New file.
74768
74769 2005-10-19  Simon Josefsson  <jas@extundo.com>
74770
74771         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74772
74773 2005-10-19  Simon Josefsson  <jas@extundo.com>
74774
74775         * lib/gc-gnulib.c: Support ARCFOUR.
74776
74777 2005-10-19  Simon Josefsson  <jas@extundo.com>
74778
74779         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74780         support.
74781
74782         * lib/gc.h: Add ECB enum type.
74783
74784         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74785
74786 2005-10-18  Simon Josefsson  <jas@extundo.com>
74787
74788         * tests/test-md5.c: New file.
74789
74790         * modules/md5-tests: New file.
74791
74792 2005-10-18  Simon Josefsson  <jas@extundo.com>
74793
74794         * tests/test-md4.c: New file.
74795
74796         * modules/md4, modules/md4-tests: New files.
74797
74798 2005-10-18  Simon Josefsson  <jas@extundo.com>
74799
74800         * m4/md4.m4: New file.
74801
74802 2005-10-18  Simon Josefsson  <jas@extundo.com>
74803
74804         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74805
74806 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74807
74808         * gnulib-tool (func_create_testdir): Omit the second check whether
74809         BUILT_SOURCES in nonempty.
74810
74811 2005-10-17  Simon Josefsson  <jas@extundo.com>
74812
74813         * tests/test-rijndael.c: New file.
74814
74815 2005-10-17  Simon Josefsson  <jas@extundo.com>
74816
74817         * modules/sha1: Depend on stdint instead of md5.
74818
74819         * modules/md5: Depend on stdint, remove uint32_t.
74820
74821 2005-10-17  Simon Josefsson  <jas@extundo.com>
74822
74823         * modules/gc-sha1-tests: New file.
74824
74825         * tests/test-gc-sha1.c: New file.
74826
74827 2005-10-17  Simon Josefsson  <jas@extundo.com>
74828
74829         * m4/md5.m4: Remove call to uint32_t.m4.
74830
74831 2005-10-17  Simon Josefsson  <jas@extundo.com>
74832
74833         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74834
74835         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74836         md5.h.
74837
74838         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74839
74840         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74841
74842 2005-10-17  Simon Josefsson  <jas@extundo.com>
74843
74844         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74845
74846 2005-10-17  Simon Josefsson  <jas@extundo.com>
74847
74848         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74849
74850 2005-10-17  Simon Josefsson  <jas@extundo.com>
74851
74852         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74853
74854         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74855
74856 2005-10-17  Bruno Haible  <bruno@clisp.org>
74857
74858         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74859         that it can also be used in a test.
74860
74861 2005-10-16  Bruno Haible  <bruno@clisp.org>
74862
74863         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74864         TESTS_ENVIRONMENT, so that individual tests can augment it.
74865
74866         * gnulib-tool (func_create_testdir): Use an intermediate target for
74867         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74868         macros, like $(ALLOCA_H), which cannot be passed through the command
74869         line.
74870
74871 2005-10-15  Simon Josefsson  <jas@extundo.com>
74872
74873         * modules/rijndael-tests: New file.
74874
74875         * modules/rijndael: New file.
74876
74877 2005-10-15  Simon Josefsson  <jas@extundo.com>
74878
74879         * m4/rijndael.m4: New file.
74880
74881 2005-10-15  Simon Josefsson  <jas@extundo.com>
74882
74883         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74884
74885         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74886
74887 2005-10-14  Simon Josefsson  <jas@extundo.com>
74888
74889         * tests/test-arcfour.c: New file.
74890
74891         * modules/arcfour, modules/arcfour-tests: New files.
74892
74893 2005-10-14  Simon Josefsson  <jas@extundo.com>
74894
74895         * m4/arcfour.m4: New file.
74896
74897 2005-10-14  Simon Josefsson  <jas@extundo.com>
74898
74899         * lib/arcfour.h, lib/arcfour.c: New files.
74900
74901 2005-10-14  Roland McGrath  <roland@redhat.com>
74902
74903         Import from libc.  [BZ #1331]
74904         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74905         macro argument.
74906         Reported by Matej Vela <vela@debian.org>.
74907
74908 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74911         include <wchar.h>; no longer needed.
74912
74913 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74916
74917 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74918         and  Ulrich Drepper  <drepper@redhat.com>
74919
74920         Import from libc.
74921         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74922         instead of inline stream orientation test and two separate
74923         function calls.  Pay no attention to USE_IN_LIBIO.
74924
74925 2005-10-13  Simon Josefsson  <jas@extundo.com>
74926
74927         * modules/gc-hmac-md5-tests: New file.
74928
74929         * tests/test-gc-hmac-sha1.c: New file.
74930
74931         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74932
74933         * modules/gc-hmac-md5-tests: New file.
74934
74935         * tests/test-gc-md5.c: New file.
74936
74937         * modules/gc-md5-tests: New file.
74938
74939 2005-10-13  Simon Josefsson  <jas@extundo.com>
74940
74941         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74942         Move memory allocation outside of loop.
74943
74944 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74947         intermediate directory is in a read-only file system.  Problem
74948         reported by Eric Blake.
74949
74950 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74951
74952         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74953
74954 2005-10-12  Simon Josefsson  <jas@extundo.com>
74955
74956         * tests/test-hmac-sha1.c: New file.
74957
74958         * modules/hmac-sha1-tests: New file.
74959
74960         * modules/hmac-sha1: New file.
74961
74962 2005-10-12  Simon Josefsson  <jas@extundo.com>
74963
74964         * modules/gc-sha1: New file.
74965
74966 2005-10-12  Simon Josefsson  <jas@extundo.com>
74967
74968         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74969
74970         * tests/test-gc-pbkdf2-sha1.c: New file.
74971
74972 2005-10-12  Simon Josefsson  <jas@extundo.com>
74973
74974         * modules/gc-md5, modules/gc-hmac-md5: New files.
74975
74976         * modules/gc (Files): Remove md5, memxor and hmac files.
74977
74978 2005-10-12  Simon Josefsson  <jas@extundo.com>
74979
74980         * m4/gc-pbkdf2-sha1.m4: New file.
74981
74982         * m4/gc-hmac-sha1.m4: New file.
74983
74984         * m4/gc-sha1: New file.
74985
74986         * m4/hmac-sha1.m4: New file.
74987
74988 2005-10-12  Simon Josefsson  <jas@extundo.com>
74989
74990         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74991
74992         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74993
74994 2005-10-12  Simon Josefsson  <jas@extundo.com>
74995
74996         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74997         suggested by Bruno Haible <bruno@clisp.org>.
74998
74999 2005-10-12  Simon Josefsson  <jas@extundo.com>
75000
75001         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75002
75003 2005-10-12  Simon Josefsson  <jas@extundo.com>
75004
75005         * lib/gc-pbkdf2-sha1.c: New file.
75006
75007         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75008
75009 2005-10-12  Simon Josefsson  <jas@extundo.com>
75010
75011         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75012
75013         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75014
75015 2005-10-12  Simon Josefsson  <jas@extundo.com>
75016
75017         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75018         GC_USE_HMAC_MD5, respectively.
75019
75020         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75021         (gc_md5): Fix typo.
75022
75023         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75024
75025         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75026
75027         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75028
75029 2005-10-12  Bruno Haible  <bruno@clisp.org>
75030
75031         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75032         Reported by Stepan Kasal <kasal@ucw.cz>.
75033
75034 2005-10-11  Simon Josefsson  <jas@extundo.com>
75035
75036         * tests/test-crc.c: New file.
75037
75038         * modules/crc, modules/crc-tests: New files.
75039
75040 2005-10-11  Simon Josefsson  <jas@extundo.com>
75041
75042         * m4/crc.m4: New file.
75043
75044 2005-10-11  Simon Josefsson  <jas@extundo.com>
75045
75046         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75047
75048         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75049
75050         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75051
75052 2005-10-11  Simon Josefsson  <jas@extundo.com>
75053
75054         * lib/crc.h, lib/crc.c: New files.
75055
75056         * lib/gc.h (gc_hash_buffer): Add doc.
75057
75058 2005-10-11  Bruno Haible  <bruno@clisp.org>
75059
75060         * modules/c-strcasestr: New file.
75061         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75062
75063 2005-10-11  Bruno Haible  <bruno@clisp.org>
75064
75065         * modules/c-strcase: New file.
75066         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75067
75068 2005-10-11  Bruno Haible  <bruno@clisp.org>
75069
75070         * lib/strcasecmp.c: Include limits.h.
75071         (strcasecmp): Avoid integer overflow on exotic platforms.
75072         * lib/strncasecmp.c: Include limits.h.
75073         (strncasecmp): Avoid integer overflow on exotic platforms.
75074         Reported by Paul Eggert.
75075
75076 2005-10-11  Bruno Haible  <bruno@clisp.org>
75077
75078         * lib/c-strcasestr.h: New file, from GNU gettext.
75079         * lib/c-strcasestr.c: New file, from GNU gettext.
75080
75081 2005-10-11  Bruno Haible  <bruno@clisp.org>
75082
75083         * lib/c-strcase.h: New file, from GNU gettext.
75084         * lib/c-strcasecmp.c: New file, from GNU gettext.
75085         * lib/c-strncasecmp.c: New file, from GNU gettext.
75086
75087 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75088
75089         * modules/mempcpy (License): GPL -> LGPL.
75090         * modules/strchrnul (License): Likewise.
75091         * modules/sysexits (License): Likewise.
75092
75093 2005-10-08  Simon Josefsson  <jas@extundo.com>
75094
75095         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75096
75097 2005-10-07  Simon Josefsson  <jas@extundo.com>
75098
75099         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75100
75101 2005-10-06  Simon Josefsson  <jas@extundo.com>
75102
75103         * tests/test-hmac-md5.c: New file.
75104
75105         * modules/hmac-md5-tests: New file.
75106
75107         * modules/hmac-md5: New file.
75108
75109 2005-10-06  Simon Josefsson  <jas@extundo.com>
75110
75111         * m4/hmac-md5.m4: New file.
75112
75113         * m4/memxor.m4: Require gl_C_RESTRICT.
75114
75115 2005-10-06  Simon Josefsson  <jas@extundo.com>
75116
75117         * lib/memxor.c (memxor): Avoid casts and warnings.
75118
75119 2005-10-06  Simon Josefsson  <jas@extundo.com>
75120
75121         * lib/hmac-md5.c: New file.
75122
75123         * lib/hmac.h: New file.
75124
75125 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75126
75127         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75128         promotes to int, not unsigned int, to catch the AIX 5.3
75129         compiler bug.
75130
75131 2005-10-05  Simon Josefsson  <jas@extundo.com>
75132
75133         * modules/memxor: New file.
75134
75135         * modules/iconv (Files): Move config.rpath to havelib, it is used
75136         there.
75137
75138         * modules/havelib (Files): Add config.rpath.
75139
75140 2005-10-05  Simon Josefsson  <jas@extundo.com>
75141
75142         * m4/memxor.m4: New file.
75143
75144 2005-10-05  Simon Josefsson  <jas@extundo.com>
75145
75146         * lib/memxor.c (memxor): Fix compiler error.
75147
75148         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75149         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75150
75151         * lib/memxor.h, lib/memxor.c: New files.
75152
75153         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75154         we assume all systems have it, suggested by Jim Meyering
75155         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75156         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75157         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75158         same reasons.
75159
75160 2005-10-05  Simon Josefsson  <jas@extundo.com>
75161
75162         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75163
75164 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75165
75166         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75167         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75168         needed, since the source code now assumes these .h files.
75169
75170 2005-10-05  Derek Price  <derek@ximbiot.com>
75171
75172         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75173
75174 2005-10-05  Bruno Haible  <bruno@clisp.org>
75175
75176         * modules/stdint (License): Change to LGPL.
75177
75178 2005-10-04  Simon Josefsson  <jas@extundo.com>
75179
75180         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75181         D. Baushke" <mdb@gnu.org>.
75182
75183 2005-10-04  Bruno Haible  <bruno@clisp.org>
75184
75185         * lib/verify.h (verify_true): Provide alternative definition for C++.
75186
75187 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75190         (SSIZE_MAX): New macro, if not already defined.
75191         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75192         than 2 GiB.
75193
75194 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75195
75196         Sync from coreutils.
75197         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75198         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75199         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75200         ULLONG_MAX doesn't work with 2.7.2.1.
75201
75202 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75203
75204         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75205         From Ben Pfaff.
75206
75207         * modules/exclude (Depends-on): Depend on verify.
75208         * modules/strtoimax (Depends-on): Likewise.
75209         * modules/utimecmp (Depends-on): Likewise.
75210
75211 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75212
75213         * lib/exclude.c: Include verify.h.
75214         (verify): Remove.  All callers changed to use verify.h's version.
75215         * lib/strtoimax.c: Likewise.
75216         * lib/utimecmp.c: Likewis.e
75217
75218         Sync from coreutils.
75219         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75220         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75221         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75222         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75223         bother returning ENOSYS if settimeofday or stime fails; just let
75224         them return whatever errno they want to return.
75225         * lib/utimens.c: Include unistd.h, for dup2.
75226         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75227         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75228
75229 2005-10-02  Jim Meyering  <jim@meyering.net>
75230
75231         Sync from coreutils.
75232         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75233         from glibc-2.2.5 that fails for read-only files.
75234
75235 2005-10-02  Jim Meyering  <jim@meyering.net>
75236
75237         Sync from coreutils.
75238         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75239         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75240         `#if HAVE_CONFIG_H'.
75241         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75242         Remove AT_FDCWD test.
75243         Do not consume the fd unless successful.
75244         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75245         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75246         block, so that we don't even try to compile it if settimeofday is
75247         available.  This works around a compilation failure on OSF1 V5.1,
75248         due to stime requiring a `long int*' while tv_sec is `int'.
75249
75250 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75251
75252         Sync from coreutils.
75253         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75254         against `yes', rather than just testing for nonempty.
75255
75256 2005-10-01  Simon Josefsson  <jas@extundo.com>
75257
75258         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75259         and Darwin.
75260
75261         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75262         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75263         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75264         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75265         Check if struct addrinfo is declared.
75266
75267 2005-10-01  Simon Josefsson  <jas@extundo.com>
75268
75269         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75270         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75271         AI_* and EAI_* definitions.  Protect function declarations.
75272
75273 2005-10-01  Jim Meyering  <jim@meyering.net>
75274
75275         Sync from coreutils.
75276
75277         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75278         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75279         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75280         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75281         in the inet and nsl libraries.  Required on Solaris 5.7.
75282
75283 2005-10-01  Jim Meyering  <jim@meyering.net>
75284
75285         Sync from coreutils.
75286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75287         in the inet and nsl libraries.  Required on Solaris 5.7.
75288
75289 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75290
75291         * lib/getdelim.c (getdelim): Remove unused variables.
75292
75293 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75294
75295         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75296         so that the code works even with ancient cpp.  Portability problem
75297         with GCC 2.7.2.1 reported by Thomas M.Ott.
75298
75299 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         * modules/regex (Depends-on): Add strcase.
75302
75303         * modules/gethostname (Licence): Change from GPL to LGPL, since
75304         gethostname.c is a trivial implementation of a standard library
75305         function.
75306         * modules/poll (License): Change from GPL to LGPL, since it's
75307         derived from LGPL code.
75308
75309 2005-09-27  Jim Meyering  <jim@meyering.net>
75310
75311         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75312         HAVE_CONFIG_H.
75313
75314         * lib/intprops.h (signed_type_or_expr__): Define.
75315         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75316         for unsigned types.
75317
75318 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * lib/verify.h (verify_expr): Remove, replacing with:
75321         (verify_true): New macro that returns true instead of void.
75322         (verify_type__): Remove.
75323         (verify): Use verify_true rather than verify_type__.
75324
75325 2005-09-26  Bruno Haible  <bruno@clisp.org>
75326
75327         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75328         is necessary.
75329         (lib_SOURCES): Remove mbchar.c.
75330         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75331         (Files): Add m4/mbrtowc.m4.
75332         * modules/mbiter: Likewise.
75333         * modules/mbuiter: Likewise.
75334
75335 2005-09-26  Bruno Haible  <bruno@clisp.org>
75336
75337         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75338         compile mbchar.c if they are not both present.
75339         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75340         * m4/mbiter.m4 (gl_MBITER): Likewise.
75341         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75342         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75343         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75344
75345 2005-09-25  Jim Meyering  <jim@meyering.net>
75346
75347         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75348         also uses socklen_t.
75349
75350 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         * lib/utimens.c (ENOSYS): Define if not already defined.
75353         (futimens): Support having a null PATH if the file descriptor
75354         is nonnegative.
75355
75356         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75357         Remove.
75358         (__attribute): Define to empty unless GCC 3.1 or later.
75359         This works around a core dump on OpenBSD 3.4, which has GCC
75360         2.95.3, which dumps core when given __attribute__(()).  It also
75361         simplifies other tests, since we really don't want to bother with
75362         worrying about which ancient version of GCC supported what.
75363         Original problem reported by Yoann Vandoorselaere, with part of
75364         the fix suggested by Derek Price.
75365
75366 2005-09-24  Jim Meyering  <jim@meyering.net>
75367
75368         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75369         so we can once again use a positive bitfield width of 1 -- now we
75370         don't have to explain why we were using a bitfield width of 2.
75371
75372 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75375         and similarly for the other external symbols.  Problem reported
75376         by James Gallager.
75377
75378         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75379         bug reported by Jim Meyering.
75380
75381         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75383         not needed, since socklen is a prerequisite module.
75384
75385 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75386
75387         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75388         Problem reported by Eric Blake.
75389         (getaddrinfo): Initialize se so that it's not garbage.
75390         Redo internal storage allocation so that it doesn't make unportable
75391         assumptions about alignment.
75392         Fix a memory leak.
75393
75394         * lib/utimens.c (futimens): Use futimesat if available.
75395         Prefer it to futimes since it doesn't have the futimes bug.
75396
75397         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75398         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75399         Instead, declare a function that returns a pointer to an array,
75400         and use verify_type__ to declare the size of the array.
75401         Problem and germ of a solution reported by Bruno Haible.
75402         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75403         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75404
75405 2005-09-23  Jim Meyering  <jim@meyering.net>
75406
75407         Sync from coreutils.
75408         Correct build failure (socklen_t not defined) on at least
75409         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75411
75412 2005-09-23  Jim Meyering  <jim@meyering.net>
75413
75414         * modules/getaddrinfo (Depends-on): Add socklen.
75415
75416 2005-09-23  Bruno Haible  <bruno@clisp.org>
75417
75418         * tests/test-verify.c: New file.
75419
75420 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75421
75422         Sync from coreutils.
75423
75424         * modules/argmatch (Depends-on): Add verify.
75425         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75426         unistd-safer.
75427         * modules/save-cwd (Depends-on): Likewise.
75428
75429         * modules/openat (Files): Add lib/openat-die.c.
75430         (Depends-on): Remove error, exitfail.
75431         Add dirname.
75432
75433         * modules/verify: New file.
75434         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75435         with "verify" module.
75436
75437 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         Sync from coreutils.
75440
75441         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75442         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75443         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75444         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75445         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75446         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75447         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75448         Don't bother checking for string.h, stdlib.h, unistd.h.
75449         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75450         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75451         module's job.
75452         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75453         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75454
75455         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75456         (gl_GETDATE): Use it.
75457
75458         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75459
75460 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75461
75462         Sync from coreutils.
75463
75464         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75465         stat-time.h.
75466         * lib/argmatch.h: Include verify.h
75467         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75468         (ARGMATCH_ASSERT): Remove; unused.
75469         * lib/canonicalize.c: Assume STDC_HEADERS.
75470         * lib/exclude.c: Include "strcase.h".
75471         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75472         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75473         and stdio-safer.h.
75474         (getusershell): Call fopen, not fopen_safer.
75475         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75476         Do not include unistd-safer.h.
75477         (save_cwd): Don't call fd_safer; no longer needed
75478         now that we include fcntl--.h.
75479
75480         * lib/getdate.y (relative_time): New type.
75481         (RELATIVE_TIME_0): New constant.
75482         (parser_control): Use relative_time instead of doing it ourselves.
75483         (%union): Add new relative_time rel member.
75484         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75485         Now typeless.
75486         (relunit, relunit_snumber): Now of type rel.
75487         (zone, rel, relunit, get_date): Adjust to above changes.
75488
75489         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75490         Do not include unistd-safer.h.
75491         (getloadavg): Don't call fd_safer; no longer needed
75492         now that we include fcntl--.h.
75493
75494         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75495         (make_dir_parents): Treat ENOSYS like EEXIST.
75496
75497         Improve quality of diagnostics on restore_cwd failure.
75498         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75499         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75500         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75501         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75502         each time through the loop.  Do not diagnose restore_cwd failure;
75503         that is the caller's job (and perhaps the caller does not care).
75504
75505         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75506         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75507         If the file already exists but is not a directory, don't bother
75508         to try to make its parents.
75509         Close potential file descriptor leak if we can't chdir("/") (!).
75510         Don't always return true if chdir($PWD) fails; return true only
75511         if the requested action was done successfully (except for the
75512         chdir($PWD)).
75513         Don't log final directory unless we actually made it.
75514         Refactor to avoid duplicate code to fix up permissions.
75515         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75516
75517         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75518         to make it a bit faster and (I hope) clearer.
75519         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75520         Fix bug in formats like %2N.
75521
75522         * lib/verify.h: New file.
75523
75524 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75525
75526         Sync from coreutils.
75527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75528
75529 2005-09-22  Jim Meyering  <jim@meyering.net>
75530
75531         Sync from coreutils.
75532
75533         * m4/lstat.m4 (gl_FUNC_LSTAT):
75534         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75535         Remove obsolete comment.
75536         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75537         * m4/xstrtod.m4: Likewise.
75538
75539         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75540
75541 2005-09-22  Jim Meyering  <jim@meyering.net>
75542
75543         Sync from coreutils.
75544
75545         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75546
75547         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75548         the .tm_year member, since otherwise gcc-4.0 would now warn about
75549         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75550
75551         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75552         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75553
75554         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75555         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75556         when run in a time zone for which daylight savings time is in effect
75557         for the starting date.
75558
75559         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75560         stop us from restricting permissions of just-created absolute-named
75561         directories.
75562         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75563         to restore initial working directory.
75564         * lib/mkdir-p.c (make_dir_parents): New parameter:
75565         different_working_dir, to tell caller if/when we change the working
75566         directory and are unable to return to the initial one.
75567         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75568         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75569         `return false'.  This fixes a bug introduced on 2004-07-30.
75570
75571         * lib/openat.c (fdopendir): Be sure to close the supplied
75572         file descriptor before returning.  This makes our replacement
75573         implementation a little closer to Solaris's, where fdopendir
75574         ties the file descriptor to the returned DIR* pointer.
75575         * lib/openat.c (unlinkat): New function.
75576         * lib/openat.h (unlinkat): Add prototype.
75577         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75578         (openat_restore_fail): Rename from openat_restore_die.
75579         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75580
75581         Provide an alternative to exiting immediately upon save_cwd or
75582         restore_cwd failure.  Now, an application can arrange e.g.,
75583         to perform a longjump in that case.
75584         * lib/openat.c: Include dirname.h.
75585         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75586         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75587         and openat_restore_die rather than calling error directly.
75588         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75589
75590         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75591         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75592         define.
75593
75594         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75595         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75596                             int utc, int nanoseconds);
75597         Background:
75598         date should not have to allocate a megabyte of virtual memory to
75599         handle a format argument like +%1048575T.  When implemented with
75600         strftime, it must allocate such a buffer, use strftime to fill it
75601         in, print it, then free it.
75602         With fprintftime, it simply prints everything and exits.
75603         With no need for memory allocation, that's one fewer way to fail.
75604         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75605         optional field width, not before, so we accept %9:z, not %:9z.
75606         (my_strftime): Be sure to use L_('x') for literals.
75607
75608         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75609         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75610         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75611         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75612         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75613         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75614         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75615         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75616         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75617         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75618         * lib/xgethostname.c, lib/xreadlink.c:
75619         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75620
75621         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75622         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75623         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75624         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75625         and don't include <sys/file.h>).
75626
75627 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75628
75629         Sync from coreutils.
75630
75631         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75632         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75633         [!LDAV_DONE]: Avoid unused variable warning.
75634
75635 2005-09-21  Bruno Haible  <bruno@clisp.org>
75636
75637         * lib/unicodeio.h (unicode_to_mb): New declaration.
75638
75639 2005-09-20  Derek Price  <derek@ximbiot.com>
75640
75641         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75642         getaddrinfo.h.
75643
75644 2005-09-20  Bruno Haible  <bruno@clisp.org>
75645
75646         * gnulib-tool: Remove trailing slashes from the values specified for
75647         --source-base, --m4-base, --tests-base, --aux-dir.
75648         Suggested by Simon Josefsson <jas@extundo.com>.
75649
75650 2005-09-20  Bruno Haible  <bruno@clisp.org>
75651
75652         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75653         func_modules_to_filelist, func_import, func_create_testdir): Make all
75654         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75655         change when gnulib-tool is invoked in a different locale.
75656
75657 2005-09-19  Simon Josefsson  <jas@extundo.com>
75658
75659         * m4/socklen.m4: Fix typo.
75660
75661 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75662
75663         Use a consistent style for including <config.h>.
75664         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75665         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75666         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75667         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75668         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75669         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75670         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75671         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75672         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75673         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75674         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75675         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75676         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75677         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75678         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75679         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75680         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75681         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75682         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75683         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75684         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75685         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75686         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75687         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75688         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75689         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75690         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75691         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75692         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75693         lib/xstrtoumax.c, lib/yesno.c:
75694         Standardize inclusion of config.h.
75695         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75696         lib/inttostr.h:  Removed inclusion of config.h from header files.
75697         * lib/inttostr.c:  Adjusted in-tree users.
75698         * lib/timespec.h: Remove superfluous warning to include config.h.
75699         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75700         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75701         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75702         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75703         config.h with HAVE_CONFIG_H.
75704
75705 2005-09-19  Jim Meyering  <jim@meyering.net>
75706
75707         * modules/pathmax (License): Change to LGPL.
75708
75709 2005-09-19  Derek Price  <derek@ximbiot.com>
75710
75711         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75712
75713 2005-09-19  Bruno Haible  <bruno@clisp.org>
75714
75715         * gnulib-tool (import): Provide default for --tests-base.
75716
75717 2005-09-19  Bruno Haible  <bruno@clisp.org>
75718
75719         * doc/quote.texi: New file, extracted from gnulib.texi.
75720         * doc/ctime.texi: New file, extracted from gnulib.texi.
75721         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75722         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75723         * doc/gnulib.texi: Include them.
75724
75725 2005-09-18  Bruno Haible  <bruno@clisp.org>
75726
75727         Portability fix.
75728         * gnulib-tool (func_readlink): New function.
75729         (func_ln_if_changed): Use it.
75730
75731 2005-09-18  Bruno Haible  <bruno@clisp.org>
75732
75733         * gnulib-tool: Support --with-tests also with --import.
75734         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75735         (func_import): Use variables $testsbase and $inctests. Emit a
75736         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75737         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75738         SUBDIRS += $testsdir.
75739         (func_create_testdir): Update.
75740
75741 2005-09-18  Bruno Haible  <bruno@clisp.org>
75742
75743         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75744         instead of $dry_run.
75745         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75746         (func_ln_if_changed): Don't handle dry-run here.
75747         (func_import): In dry-run mode, detect more precisely which actions
75748         would be performed, and don't use "...ing" verbs.
75749
75750 2005-09-18  Bruno Haible  <bruno@clisp.org>
75751
75752         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75753         (func_import): Use join on two temporary files instead of three nested
75754         loops, in order to determine which files are new or old.
75755
75756 2005-09-18  Bruno Haible  <bruno@clisp.org>
75757
75758         * gnulib-tool (func_import): Comment out code that spits out the
75759         new files with --dry-run.
75760
75761 2005-09-18  Bruno Haible  <bruno@clisp.org>
75762
75763         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75764
75765 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75766
75767         * lib/stat-time.h: New file.
75768         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75769         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75770         in a different way.
75771         (timespec_cmp): New function.
75772         * lib/utimecmp.c: Include stat-time.h.
75773         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75774         members exist, not on the obsolescent ST_MTIM_NSEC.
75775         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75776
75777 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75778
75779         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75780
75781 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75782
75783         * MODULES.html.sh (File system functions): Add stat-time.
75784         * modules/stat-time: New file.
75785         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75786         is now done in a different way, by the stat-time module.
75787         * modules/utimecmp (Depends-on): Add stat-time.
75788
75789 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75790
75791         * m4/st_mtim.m4: Remove.  Superseded by...
75792         * m4/stat-time.m4: New file.
75793         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75794         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75795
75796 2005-09-15  Derek Price  <derek@ximbiot.com>
75797
75798         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75799
75800 2005-09-15  Derek Price  <derek@ximbiot.com>
75801
75802         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75803         * lib/regex_internal.c: Ditto, using this...
75804         (__GNUC_PREREQ): ...new macro.
75805         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75806         using...
75807         (__GNUC_PREREQ): ...this new macro.
75808
75809         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75810
75811 2005-09-15  Derek Price  <derek@ximbiot.com>
75812             Paul Eggert  <eggert@cs.ucla.edu>
75813
75814         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75815         changes, consolidating in...
75816         * lib/regex_internal.h: ...this file.
75817
75818 2005-09-13  Jim Meyering  <jim@meyering.net>
75819
75820         * lib/canon-host.c: Filter through gnu indent and reword comments
75821         slightly.
75822         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75823
75824 2005-09-13  Derek Price  <derek@ximbiot.com>
75825
75826         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75827         failure.
75828         Reported by Jim Meyering  <jim@meyering.net>.
75829
75830 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75831
75832         * lib/base64.c: Typo.
75833         (base64_encode): Put b64str in initialized data section.
75834
75835 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         Merge glibc and coreutils changes into gnulib, plus a few
75838         extra fixes.
75839         * lib/md5.c: Use #error rather than a string.
75840         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75841         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75842         (__attribute__): Define to empty for non recent-GCC.
75843         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75844         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75845         Renamed from their non-__ counterparts, with new macros replacing
75846         them if not _LIBC.  Add __THROW attribute.
75847         (rol): Remove.
75848         (struct md5_ctx): Align buffer if using GCC.
75849         * lib/sha1.h (struct sha1_ctx): Likewise.
75850         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75851         The old name was backwards.
75852         (NOTSWAP): Remove; not used.
75853         (rol): New macro, moved here from md5.h.
75854         (sha1_process_block): Remove a FIXME that doesn't make sense.
75855
75856 2005-09-12  Derek Price  <derek@ximbiot.com>
75857
75858         Return usable errors from canon-host.
75859         * lib/canon-host.h: New file.
75860         * lib/canon-host.c (canon_host): Wrap...
75861         (canon_host_r): ...this new function, which now relies exclusively on
75862         getaddrinfo.
75863         (ch_strerror): New function.
75864         (last_cherror): New global.
75865         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75866         interface.
75867         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75868         void *.
75869         (freeaddrinfo): Free ai->ai_canonname when set.
75870
75871 2005-09-12  Derek Price  <derek@ximbiot.com>
75872
75873         Make canon-host require getaddrinfo.
75874         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75875         AC_LIBSOURCE canon-host.h.  Call...
75876         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75877         gl_GETADDRINFO.
75878         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75879
75880 2005-09-12  Derek Price  <derek@ximbiot.com>
75881
75882         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75883         LGPL.
75884         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75885
75886 2005-09-12  Derek Price  <derek@ximbiot.com>
75887
75888         * lib/gai_strerror.c: Include config.h when available.  Include
75889         getaddrinfo.h before other headers to test interface.
75890         Reported by Larry Jones <lawrence.jones@ugs.com>.
75891
75892 2005-09-12  Derek Price  <derek@ximbiot.com>
75893             Paul Eggert  <eggert@cs.ucla.edu>
75894
75895         * modules/glob (Files): Add glob-libc.h.
75896
75897 2005-09-12  Derek Price  <derek@ximbiot.com>
75898             Paul Eggert  <eggert@cs.ucla.edu>
75899
75900         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75901         glob_.h, glob-libc.h.
75902         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75903
75904 2005-09-12  Derek Price  <derek@ximbiot.com>
75905             Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75908         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75909         protecting things that should be done only in gnulib contexts.
75910         * lib/glob_.h: New file, containing only the glob things needed for
75911         gnulib.
75912         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75913         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75914         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75915         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75916         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75917         and to respect the namespace rules better.
75918
75919 2005-09-08  Simon Josefsson  <jas@extundo.com>
75920
75921         * modules/socklen: New file.
75922
75923 2005-09-08  Simon Josefsson  <jas@extundo.com>
75924
75925         * m4/socklen.m4: New file.
75926
75927 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * modules/utimens (Files): Add m4/utimbuf.m4, since
75930         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75931         Reported by Sergey Poznyakoff.
75932
75933 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75936         definitions, since that's the preferred style in glibc.
75937         Fix a minor spacing issue, and update copyright notice to match
75938         glibc's.
75939
75940 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75943
75944 2005-09-06  Simon Josefsson  <jas@extundo.com>
75945
75946         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75947         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75948
75949 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75952         warning.
75953
75954 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * config/srclist.txt: Add glibc bug 1302.
75957
75958 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         Change bitset word type from unsigned int to unsigned long int,
75961         as this has better performance on typical 64-bit hosts.
75962         Port bitset code to hosts with unusual word sizes.
75963         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75964         (build_collating_symbol):
75965         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75966         argument is a bitset.  This is merely a style issue, but it makes
75967         it clearer that an entire array is expected.
75968         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75969         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75970         Port to the case where bitset_word is not the same as unsigned int.
75971         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75972         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75973         Likewise.
75974         * lib/regexec.c (check_dst_limits_calc_pos_1,
75975         check_subexp_matching_top):
75976         (build_trtable, group_nodes_into_DFAstates):
75977         Likewise.
75978         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75979         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75980         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75981         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75982         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75983         * lib/regcomp.c (optimize_subexps, lower_subexp):
75984         Work even if bitset_word has holes in its bitwise representation.
75985         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75986         * lib/regexec.c (check_dst_limits_calc_pos_1,
75987         check_subexp_matching_top):
75988         Likewise.
75989         * lib/regex_internal.c (re_string_reconstruct):
75990         Don't assume UCHAR_MAX == 255.
75991         * lib/regex_internal.h (bitset_set_all): Likewise.
75992         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75993         All uses changed.
75994         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75995         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75996         All uses changed.
75997         (BITSET_WORD_MAX): New macro.
75998         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75999         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76000         (bitset_empty, bitset_copy):
76001         Prefer sizeof (bitset) to multiplying it out ourselves.
76002         (bitset_not_merge): Remove; unused.
76003         (bitset_contain): Return bool, not unsigned int with one bit on.
76004         All callers changed.
76005         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76006         alignment than re_node_set; do this by defining a new internal
76007         type struct dests_alloc and using it to allocate memory.
76008
76009 2005-09-05  Bruno Haible  <bruno@clisp.org>
76010
76011         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76012         links.
76013
76014 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76015
76016         * modules/size_max (Makefile.am): Add size_max.h
76017
76018 2005-09-04  Derek Price  <derek@ximbiot.com>
76019
76020         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76021
76022 2005-09-03  Simon Josefsson  <jas@extundo.com>
76023
76024         * gnulib-tool: Fix typo.
76025
76026 2005-09-03  Simon Josefsson  <jas@extundo.com>
76027
76028         * config/srclist.txt: Add glibc bug 1293.
76029
76030 2005-09-03  Derek Price  <derek@ximbiot.com>
76031
76032         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76033         From Larry Jones <lawrence.jones@ugs.com>.
76034
76035 2005-09-02  Simon Josefsson  <jas@extundo.com>
76036
76037         * modules/socklen: New file.
76038
76039 2005-09-02  Simon Josefsson  <jas@extundo.com>
76040
76041         * modules/havelib: New module.
76042
76043         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76044         Use havelib.
76045
76046 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76047
76048         Check for arithmetic overflow when calculating sizes, to prevent
76049         some buffer-overflow issues.  These patches are conservative, in the
76050         sense that when I couldn't determine whether an overflow was possible,
76051         I inserted a run-time check.
76052         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76053         macros.
76054         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76055         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76056         (re_xnrealloc, re_x2nrealloc): New inline functions.
76057         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76058         parse_bracket_exp):
76059         (build_equiv_class, build_charclass): Check for arithmetic overflow
76060         in size expression calculations.
76061         * lib/regex_internal.c (re_string_realloc_buffers):
76062         (build_wcs_upper_buffer, re_node_set_add_intersect):
76063         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76064         (re_dfa_add_node, register_state): Likewise.
76065         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76066         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76067         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76068         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76069
76070 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76071
76072         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76073         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76074
76075 2005-09-02  Bruno Haible  <bruno@clisp.org>
76076
76077         Support for lib vs. lib64 distinction on biarch platforms.
76078         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76079         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76081
76082 2005-09-02  Bruno Haible  <bruno@clisp.org>
76083
76084         * gnulib-tool (import): In the other first-use case, provide defaults
76085         as well.
76086
76087 2005-09-02  Bruno Haible  <bruno@clisp.org>
76088
76089         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76090         patches not yet found in the latest gettext release.
76091
76092 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76093
76094         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76095         to avoid a collision with bits/local_lim.h in glibc.
76096         All uses changed.  Problem reported by Dmitry V. Levin in
76097         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76098
76099         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76100         bugs in int versus size_t comparisons.
76101         (re_string_context_at): Fix bug where the code assumed that
76102         Idx is signed.
76103
76104         Use bool where appropriate.
76105         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76106         All callers changed.
76107         (calc_eclosure_iter): Likewise, for ROOT arg.
76108         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76109         (build_charclass_op): Likewise, for NON_MATCH arg.
76110         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76111         (re_string_construct_common): Likewise, for ICASE arg.
76112         * lib/regexec.c (re_search_2_stub, re_search_stub):
76113         Likewise, for RET_LEN arg.
76114         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76115         (set_regs): Likewise, for FL_BACKTRACK arg.
76116         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76117         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76118         (calc_eclosure_iter, parse_bracket_exp):
76119         Use bool for internal variables that are booleans.
76120         * lib/regexec.c (re_search_internal, check_matching,
76121         proceed_next_node):
76122         (set_regs, build_sifted_states, sift_states_bkref):
76123         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76124         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76125         (find_collation_sequence_value):
76126         Likewise.
76127         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76128         (re_node_set_compare):
76129         Return bool, not int. All callers changed.
76130         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76131         (build_trtable, check_node_accept): Likewise.
76132         * lib/regex_internal.h: Include stdbool.h.
76133
76134         Fix bugs uncovered when converting to bool.
76135         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76136         failure instead of charging ahead blindly.
76137         * lib/regex_internal.c (register_state): Likewise.
76138         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76139         for freeing internal storage.
76140         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76141         bitset pieces used as boolean, to avoid undefined behavior
76142         on hosts that do int overflow checking.
76143
76144 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76145
76146         * config/srclist.txt: Add glibc bugs 1285-1287.
76147
76148 2005-09-01  Jim Meyering  <jim@meyering.net>
76149
76150         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76151         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76152         Require gl_STAT_MACROS, too.
76153
76154 2005-09-01  Bruno Haible  <bruno@clisp.org>
76155
76156         * gnulib-tool (import): In the first-use case, provide defaults.
76157
76158 2005-09-01  Bruno Haible  <bruno@clisp.org>
76159
76160         * gnulib-tool (func_import): Remove the .tmp files.
76161
76162 2005-09-01  Bruno Haible  <bruno@clisp.org>
76163
76164         * gnulib-tool (func_import): Fix handling of symbolic links.
76165
76166 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76169         old glibc regex code mishandles strings longer than 2**31 bytes.
76170         This patch fixes this when the regex code is used in gnulib
76171         (i.e., outside glibc).
76172
76173         This patch should not affect the use of the regex code inside
76174         glibc.  No doubt this problem also needs to be handled for glibc
76175         as well, but the result will be an incompatible change to the
76176         glibc ABI, and the old ABI will have to be supported too.  That
76177         can be the the subject for another patch.
76178
76179         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76180         governing whether the rest of this patch is active.  By default,
76181         the macro is disabled and the patch has no effect.
76182         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76183         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76184         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76185         (re_match_2, re_set_registers): Use the new types.
76186         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76187         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76188         New macros.
76189         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76190         (re_string_context_at, bin_tree_t, re_dfastate_t):
76191         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76192         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76193         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76194         (re_string_char_size_at, re_string_wchar_at):
76195         (re_string_elem_size_at):
76196         Use the new types and macros to port to 64-bit hosts.
76197         Use unsigned types for internal values, so that the code
76198         mostly works even for arrays larger than SSIZE_MAX.
76199         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76200         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76201         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76202         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76203         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76204         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76205         (calc_inveclosure, parse_dup_op, build_range_exp):
76206         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76207         (fetch_number, create_token_tree, mark_opt_subexp):
76208         Likewise.
76209         * lib/regex_internal.c (re_string_construct_common,
76210         create_ci_newstate):
76211         (create_cd_newstate, re_string_allocate, re_string_construct):
76212         (re_string_realloc_buffers, build_wcs_upper_buffer):
76213         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76214         (re_string_reconstruct, re_string_peek_byte_case):
76215         (re_string_fetch_byte_case, re_string_context_at):
76216         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76217         (re_node_set_init_copy, re_node_set_add_intersect):
76218         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76219         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76220         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76221         (re_acquire_state, re_acquire_state_context, register_state):
76222         Likewise.
76223         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76224         search_cur_bkref_entry):
76225         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76226         (re_search_internal, re_search_2_stub, re_search_stub)
76227         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76228         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76229         (update_cur_sifted_state, check_dst_limits):
76230         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76231         (check_subexp_limits, sift_states_bkref, merge_state_array):
76232         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76233         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76234         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76235         (expand_bkref_cache, check_node_accept_bytes):
76236         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76237         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76238         (acquire_init_state_context, check_halt_node_context):
76239         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76240         (sift_states_backward, clean_state_log_if_needed):
76241         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76242         (find_recover_state, transit_state_sb, transit_state_mb):
76243         (transit_state_bkref, build_trtable, match_ctx_clean):
76244         Likewise.
76245         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76246         to work around an assumption that REG_MISSING is negative.
76247
76248         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76249         (seek_collating_symbol_entry) [defined _LIBC]:
76250         (lookup_collation_sequence_value) [defined _LIBC]:
76251         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76252         Use prototypes rather than old-style function definitions.
76253         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76254         (transit_state_sb) [0]:
76255         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76256
76257         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76258         rm_eo.
76259
76260         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76261         (optimize_subexps, lower_subexp):
76262         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76263         since the signed shift might overflow.  Use 1u<<31 instead.
76264         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76265         Likewise.
76266         * lib/regexec.c (check_dst_limits_calc_pos_1,
76267         check_subexp_matching_top): Likewise.
76268
76269         * lib/regcomp.c (optimize_subexps, lower_subexp):
76270         Use CHAR_BIT rather than 8, for clarity.
76271         * lib/regexec.c (check_dst_limits_calc_pos_1):
76272         (check_subexp_matching_top): Likewise.
76273         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76274         have to worry about portability issues when shifting it left.
76275         Remove no-longer-needed test for table_size > 0.
76276         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76277         in a word, as the resulting behavior is undefined.
76278         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76279         in one case, a <= should have been an <, and in another case the
76280         whole test was missing.
76281         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76282         the standard name CHAR_BIT.
76283         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76284         this is not true on one's complement and signed-magnitude hosts.
76285
76286         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76287         next_last_offset.
76288         (struct re_dfa_t): Remove unused member states_alloc.
76289         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76290
76291 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76294         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76295         and large-file glibc and in 32-bit large-file Solaris.
76296
76297 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76298
76299         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76300         lengths fit in regoff_t; this isn't true if regoff_t is the same
76301         width as size_t.
76302         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76303         (= START + RANGE) instead of RANGE.  This avoids overflow
76304         problems when regoff_t is the same width as size_t.
76305         All callers changed.
76306         (re_search_2_stub): Check for overflow when adding the
76307         sizes of the two strings.
76308         (re_search_stub): Check for overflow when adding START
76309         to RANGE; if it occurs, substitute the extreme value.
76310
76311 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76312
76313         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76314
76315 2005-08-31  Jim Meyering  <jim@meyering.net>
76316
76317         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76318         a pointer-to-const.
76319         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76320         (register_state): Likewise.
76321         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76322         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76323         (group_nodes_into_DFAstates): Likewise.
76324
76325 2005-08-31  Jim Meyering  <jim@meyering.net>
76326
76327         * check-module: Add a FIXME comment.
76328
76329 2005-08-31  Eric Blake  <ebb9@byu.net>
76330
76331         * modules/unistd-safer (Files): Add unistd--.h.
76332         * modules/stdio-safer (Files): Add stdio--.h.
76333
76334 2005-08-31  Derek Price  <derek@ximbiot.com>
76335
76336         * lib/getdelim.c (getdelim): Return EOF on EOF.
76337         Reported by Larry Jones <lawrence.jones@ugs.com>.
76338
76339 2005-08-31  Bruno Haible  <bruno@clisp.org>
76340
76341         Avoid unnecessary diffs in the generated lib/Makefile.am.
76342         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76343         the generated files.
76344         (func_import): Don't set cmd.
76345
76346 2005-08-31  Bruno Haible  <bruno@clisp.org>
76347
76348         * lib/strstr.c: Include <stddef.h>, for NULL.
76349         * lib/strcasestr.c: Likewise.
76350         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76351
76352 2005-08-31  Bruno Haible  <bruno@clisp.org>
76353
76354         * gnulib-tool: New option --macro-prefix.
76355         (func_import): Use macro_prefix.
76356         (import): Handle option --macro-prefix.
76357
76358 2005-08-31  Bruno Haible  <bruno@clisp.org>
76359
76360         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76361         Also use new variables cached_lgpl, cached_libtool.
76362
76363 2005-08-31  Bruno Haible  <bruno@clisp.org>
76364
76365         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76366         always instantiating them.
76367
76368 2005-08-31  Bruno Haible  <bruno@clisp.org>
76369
76370         * gnulib-tool (func_import): Read the previous cached settings
76371         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76372         earlier added by gnulib but are now dropped. Warn when a gnulib file
76373         overwrites a non-gnulib file.
76374
76375 2005-08-31  Bruno Haible  <bruno@clisp.org>
76376
76377         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76378         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76379         projects that don't keep autogenerated files in CVS. Put into
76380         actioncmd only the specified modules, not the transitive closure.
76381
76382 2005-08-31  Bruno Haible  <bruno@clisp.org>
76383
76384         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76385         Create directories that shall be filled.
76386         (import): Don't look for gl_* macros in configure.ac. Recurse across
76387         all directories containing a gnulib-cache.m4 files, if meaningful.
76388
76389 2005-08-31  Bruno Haible  <bruno@clisp.org>
76390
76391         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76392         (import): Set seen_libtool when we see gl_LIBTOOL.
76393
76394 2005-08-31  Bruno Haible  <bruno@clisp.org>
76395
76396         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76397         declaration macro definitions from generated gnulib.m4.
76398
76399 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76400
76401         * lib/iconvme.h: Add prototype for iconv_alloc.
76402
76403 2005-08-29  Simon Josefsson  <jas@extundo.com>
76404
76405         * lib/iconvme.c: Fix errno.
76406
76407 2005-08-29  Bruno Haible  <bruno@clisp.org>
76408
76409         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76410         that it works when the directory contains spaces.
76411
76412 2005-08-29  Bruno Haible  <bruno@clisp.org>
76413
76414         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76415
76416 2005-08-29  Bruno Haible  <bruno@clisp.org>
76417
76418         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76419         Emit more advice.
76420
76421 2005-08-29  Bruno Haible  <bruno@clisp.org>
76422         and Stepan Kasal  <kasal@ucw.cz>
76423
76424         * check-module: If more parameters are given, check each of them
76425         separately; add more exceptions, as noted by Jim Meyering.
76426         (check_module): New procedure.
76427         (%exempt_header): Now contains all exceptions.
76428
76429 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76430
76431         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76432
76433 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76434
76435         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76436
76437 2005-08-28  Bruno Haible  <bruno@clisp.org>
76438
76439         * m4/gnulib-tool.m4: New file.
76440
76441 2005-08-27  Jim Meyering  <jim@meyering.net>
76442
76443         * modules/unistd-safer (Files): Add pipe-safer.c.
76444         * modules/fcntl-safer (Files): Add creat-safer.c.
76445
76446 2005-08-27  Jim Meyering  <jim@meyering.net>
76447
76448         * m4/stdlib-safer.m4: New file.  From coreutils.
76449         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76450         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76451         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76452         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76453         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76454
76455 2005-08-27  Jim Meyering  <jim@meyering.net>
76456
76457         * lib/fopen-safer.c: Merge minor changes from coreutils.
76458         * lib/dup-safer.c: Likewise.
76459         * lib/fd-safer.c: Likewise.
76460
76461         Merge from coreutils.
76462         * lib/stdio--.h: New file.
76463         * lib/stdlib--.h: New file.
76464         * lib/mkstemp-safer.c: New file.
76465
76466         GNU tar needs these.
76467         * lib/pipe-safer.c: New file.
76468         * lib/creat-safer.c: New file.
76469         * lib/fcntl--.h (creat): Define to creat_safer.
76470         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76471         * lib/unistd--.h (pipe): Define to pipe_safer.
76472         * lib/unistd-safer.h: Declare pipe_safer.
76473
76474 2005-08-26  Simon Josefsson  <jas@extundo.com>
76475
76476         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76477         Haible <bruno@clisp.org>.
76478
76479 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76480
76481         * lib/regex_internal.h: Remove all references to
76482         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76483         or better.
76484         (bitset_not, bitset_merge, bitset_not_merge):
76485         (bitset_mask, re_string_allocate, re_string_construct):
76486         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76487         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76488         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76489         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76490         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76491         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76492         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76493         (re_acquire_state_context):
76494         Remove unnecessary forward decls.
76495         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76496         Put __attribute at function definition,
76497         now that the function decl has been removed.
76498         * lib/regex_internal.c (re_string_peek_byte_case):
76499         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76500         Likewise.
76501
76502 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76503
76504         * m4/regex.m4: Add AC_PREREQ(2.50).
76505         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76506
76507 2005-08-25  Simon Josefsson  <jas@extundo.com>
76508
76509         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76510         __fsetlocking.
76511
76512 2005-08-25  Simon Josefsson  <jas@extundo.com>
76513
76514         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76515         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76516         GLIBC specific code.
76517
76518 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76519
76520         Make regex safe for g++.  This fixes one real bug (an "err"
76521         that should have been "*err").  g++ problem reported by
76522         Sam Steingold.
76523         * lib/regex_internal.h (re_calloc): New macro, consistent with
76524         re_malloc etc.  All callers of calloc changed to use re_calloc.
76525         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76526         not int.  All callers changed.
76527         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76528         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76529         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76530         (find_recover_state): Change "err" to "*err"; this fixes what
76531         appears to be a real bug.
76532         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76533         versus int.
76534
76535 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76536
76537         * modules/regex (Depends-on): Add malloc, since the code
76538         assumes that !malloc(0) means failure.
76539
76540 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76541
76542         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76543
76544         alloca modernization/simplification for regex.
76545         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76546         needs to be at the start of the file, and can be moved into
76547         regex_internal.h and simplified.
76548         * lib/regex_internal.h: Include <alloca.h>.
76549         (__libc_use_alloca) [!defined _LIBC]: New macro.
76550         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76551         now works outside glibc.
76552
76553 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76554
76555         * config/srclist.txt: Add glibc bugs 1241, 1245.
76556
76557 2005-08-25  Jim Meyering  <jim@meyering.net>
76558
76559         * lib/open-safer.c: Include <config.h>.
76560         Otherwise, we'd lose LARGEFILE support in any file using
76561         e.g. "fcntl--.h"
76562
76563 2005-08-25  Bruno Haible  <bruno@clisp.org>
76564
76565         * m4/minmax.m4: Require autoconf 2.52.
76566         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76567         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76568         alternatives of translit over the alphabet.
76569         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76570
76571 2005-08-24  Simon Josefsson  <jas@extundo.com>
76572
76573         * tests/test-getpass.c: New file.
76574
76575 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76576
76577         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76578         for GNU regex features.
76579
76580 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76581
76582         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76583         * lib/regex.h (regerror): Likewise.
76584
76585         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76586         requires this.  (The code never needed it.)
76587
76588         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76589         All uses of recently-renamed identifiers changed to use the new,
76590         POSIX-compliant names.  The code will build and run just fine
76591         without these changes, but it's better to eat our own dog food
76592         and use the standard-conforming names.
76593
76594         * lib/regex.h: Fix a multitude of POSIX name space violations.
76595         These changes have an effect only for programs that define
76596         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76597         do not change anything for programs compiled in the normal way.
76598         Also, there is no effect on the ABI.
76599
76600         (_REGEX_SOURCE): New macro.
76601         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76602         defined and _GNU_SOURCE is not; this fixes a name space violation.
76603
76604         Rename the following macros to obey POSIX requirements.
76605         The old names are still visible as macros if _REGEX_SOURCE is defined.
76606         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76607         RE_BACKSLASH_ESCAPE_IN_LISTS.
76608         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76609         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76610         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76611         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76612         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76613         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76614         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76615         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76616         (REG_INTERVALS): renamed from RE_INTERVALS.
76617         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76618         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76619         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76620         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76621         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76622         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76623         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76624         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76625         RE_UNMATCHED_RIGHT_PAREN_ORD.
76626         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76627         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76628         (REG_DEBUG): renamed from RE_DEBUG.
76629         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76630         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76631         unusual, since we can't clash with the POSIX REG_ICASE.
76632         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76633         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76634         (REG_NO_SUB): renamed from RE_NO_SUB.
76635         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76636         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76637         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76638         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76639         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76640         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76641         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76642         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76643         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76644         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76645         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76646         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76647         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76648         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76649         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76650         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76651         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76652         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76653         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76654         (REG_FIXED): Renamed from REGS_FIXED.
76655         (REG_NREGS): Renamed from RE_NREGS.
76656
76657         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76658         of other REG_* macros, since POSIX says the user is allowed to
76659         #undef these macros selectively.
76660
76661         (reg_errcode_t): Update comment stating what other tables need
76662         to be consistent.
76663
76664         Rename the following enum values to obey POSIX requirements.
76665         The old names are still visible as macros.
76666         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76667         is not defined, since GNU is supposed to be a superset of POSIX as
76668         much as possible, and since we want reg_errcode_t to be a signed
76669         type for implementation consistency.
76670         (_REG_NOERROR): Renamed from REG_NOERROR.
76671         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76672         (_REG_BADPAT): Renamed from REG_BADPAT.
76673         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76674         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76675         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76676         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76677         (_REG_EBRACK): Renamed from REG_EBRACK.
76678         (_REG_EPAREN): Renamed from REG_EPAREN.
76679         (_REG_EBRACE): Renamed from REG_EBRACE.
76680         (_REG_BADBR): Renamed from REG_BADBR.
76681         (_REG_ERANGE): Renamed from REG_ERANGE.
76682         (_REG_ESPACE): Renamed from REG_ESPACE.
76683         (_REG_BADRPT): Renamed from REG_BADRPT.
76684         (_REG_EEND): Renamed from REG_EEND.
76685         (_REG_ESIZE): Renamed from REG_ESIZE.
76686         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76687         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76688         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76689         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76690         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76691
76692         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76693         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76694         changed.  But support the old name if the new one is not defined
76695         and if _REGEX_SOURCE.
76696
76697         Change the following member names in struct re_pattern_buffer.
76698         The old names are still supported if !_REGEX_SOURCE.
76699         The new names are always supported, regardless of _REGEX_SOURCE.
76700         (re_buffer): Renamed from buffer.
76701         (re_allocated): Renamed from allocated.
76702         (re_used): Renamed from used.
76703         (re_syntax): Renamed from syntax.
76704         (re_fastmap): Renamed from fastmap.
76705         (re_translate): Renamed from translate.
76706         (re_can_be_null): Renamed from can_be_null.
76707         (re_regs_allocated): Renamed from regs_allocated.
76708         (re_fastmap_accurate): Renamed from fastmap_accurate.
76709         (re_no_sub): Renamed from no_sub.
76710         (re_not_bol): Renamed from not_bol.
76711         (re_not_eol): Renamed from not_eol.
76712         (re_newline_anchor): Renamed from newline_anchor.
76713
76714         Change the following member names in struct re_registers.
76715         The old names are still supported if !_REGEX_SOURCE.
76716         The new names are always supported, regardless of _REGEX_SOURCE.
76717         (rm_num_regs): Renamed from num_regs.
76718         (rm_start): Renamed from start.
76719         (rm_end): Renamed from end.
76720
76721         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76722         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76723         Prepend __ to parameter names.
76724
76725         Undo yesterday's changes.
76726
76727 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76728
76729         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76730         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76731         lib/regex.c.
76732
76733 2005-08-24  Jim Meyering  <jim@meyering.net>
76734
76735         Sync from coreutils.
76736         * m4/fcntl-safer.m4: New file.
76737
76738         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76739         and object files for this module.
76740
76741 2005-08-24  Jim Meyering  <jim@meyering.net>
76742
76743         Sync from coreutils.
76744         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76745
76746 2005-08-24  Jim Meyering  <jim@meyering.net>
76747
76748         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76749         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76750
76751 2005-08-24  Jim Meyering  <jim@meyering.net>
76752
76753         * modules/fcntl-safer: New module.
76754         * modules/fts (Depends-on): Add fcntl-safer.
76755         * MODULES.html.sh (File descriptor based Input/Output):
76756         Add fcntl-safer.
76757
76758 2005-08-24  Bruno Haible  <bruno@clisp.org>
76759
76760         Support for unit test modules.
76761         * modules/README: Mention tests modules.
76762         * modules/TEMPLATE-TESTS: New file.
76763         * gnulib-tool: New options --extract-tests-module, --with-tests and
76764         --tests-base (unused for the moment).
76765         (testsbase, inctests): New variables.
76766         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76767         (func_verify_module): Exclude TEMPLATE-TESTS.
76768         (func_verify_nontests_module, func_verify_tests_module): New functions.
76769         (func_get_dependencies): Add implicit dependency for tests modules.
76770         (func_get_tests_module): New function.
76771         (func_modules_transitive_closure): When --with-tests was specified,
76772         include the unit tests as well, unless explicitly avoided.
76773         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76774         (func_emit_tests_Makefile_am): New function.
76775         (func_create_testdir): When --with-tests was specified, emit a
76776         tests/ directory.
76777         * MODULES.html.sh (Future developments): Update.
76778
76779 2005-08-24  Bruno Haible  <bruno@clisp.org>
76780
76781         * modules/tls-tests: New file.
76782         * tests/test-tls.c: New file, from GNU gettext.
76783
76784 2005-08-24  Bruno Haible  <bruno@clisp.org>
76785
76786         * modules/lock-tests: New file.
76787         * tests/test-lock.c: New file, from GNU gettext.
76788
76789 2005-08-24  Bruno Haible  <bruno@clisp.org>
76790
76791         * lib/lock.h: Add multiple inclusion guard.
76792         * lib/tls.h: Add multiple inclusion guard.
76793
76794 2005-08-24  Bruno Haible  <bruno@clisp.org>
76795
76796         * gnulib-tool: Add support for the --aux-dir option to
76797         --create-testdir, --create-megatestdir, --test, --megatest.
76798         (func_create_testdir, func_create_megatestdir): Optionally emit a
76799         AC_CONFIG_AUX_DIR directive.
76800         (create-testdir, create-megatestdir, test, megatest): Provide a
76801         default value for $auxdir.
76802
76803 2005-08-24  Bruno Haible  <bruno@clisp.org>
76804
76805         * gnulib-tool (import): Use compound statement instead of subshell
76806         where possible.
76807
76808 2005-08-24  Bruno Haible  <bruno@clisp.org>
76809
76810         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76811
76812 2005-08-24  Bruno Haible  <bruno@clisp.org>
76813
76814         * gnulib-tool (func_version): Update.
76815
76816 2005-08-24  Bruno Haible  <bruno@clisp.org>
76817
76818         * gnulib-tool (func_import, func_create_testdir,
76819         func_create_megatestdir): Quote all autoconf macro arguments.
76820
76821 2005-08-24  Bruno Haible  <bruno@clisp.org>
76822
76823         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76824         option --force, because --force causes the aclocal.m4 of each
76825         subdirectory to be newer than the corresponding config.h.in.
76826
76827 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76828
76829         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76830         All contents moved to gl_REGEX.
76831         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76832         assume that it does.
76833
76834 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76835
76836         * lib/regex.h (REG_NOSYS)
76837         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76838         Define, since POSIX requires it as of 2001.
76839         (_REG_ENOSYS)
76840         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76841         New private symbol, used to keep the enum signed in all cases.
76842         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76843         Youngman in
76844         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76845
76846         * lib/regex_internal.c (re_string_skip_chars, register_state):
76847         (calc_state_hash):
76848         Remove forward decls; no longer needed now that we use prototypes.
76849         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76850         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76851         (clean_state_log_if_needed): Likewise.
76852
76853 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76854
76855         * config/srclist.txt: Add glibc bugs 1231-1233.
76856
76857 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76858
76859         Fix problems reported by Sam Steingold in
76860         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76861         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76862         assumed that reg_errcode_t is a signed type, which is not
76863         necessarily true if _XOPEN_SOURCE is not defined.
76864         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76865         since some compilers warn about it otherwise.
76866
76867 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76870         (init_word_char, create_initial_state, duplicate_node_closure):
76871         (fetch_token, peek_token_bracket, build_range_exp):
76872         (build_collating_symbol): Remove forward decls; no longer needed
76873         now that we use prototypes.
76874
76875         * lib/regcomp.c:
76876         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76877         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76878         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76879         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76880         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76881         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76882         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76883         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76884         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76885         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76886         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76887         (build_charclass, build_charclass_op, fetch_number, create_tree):
76888         (create_token_tree, mark_opt_subexp, duplicate_tree):
76889         Use prototypes rather than old-style definitions.
76890
76891         * lib/regex_internal.c:
76892         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76893         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76894         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76895         (re_string_reconstruct, re_string_peek_byte_case):
76896         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76897         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76898         (re_node_set_init_copy, re_node_set_add_intersect):
76899         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76900         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76901         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76902         (re_acquire_state, re_acquire_state_context, register_state):
76903         (create_ci_newstate, create_cd_newstate, free_state):
76904         Likewise.
76905         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76906         re_search_2):
76907         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76908         (re_search_internal, prune_impossible_nodes):
76909         (acquire_init_state_context, check_matching, static):
76910         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76911         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76912         (update_regs, sift_states_backward, build_sifted_states):
76913         (clean_state_log_if_needed, merge_state_array):
76914         (update_cur_sifted_state, add_epsilon_src_nodes):
76915         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76916         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76917         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76918         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76919         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76920         (check_arrival, check_arrival_add_next_nodes):
76921         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76922         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76923         (check_node_accept_bytes, check_node_accept, extend_buffers):
76924         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76925         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76926         (sift_ctx_init):
76927         Likewise.
76928
76929         * lib/regex_internal.h:
76930         (re_string_allocate, re_string_construct, re_string_reconstruct):
76931         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76932         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76933         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76934         (re_string_context_at, re_string_peek_byte_case):
76935         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76936         is defined, since we now use prototypes always.
76937
76938         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76939         C89 or better.  All uses removed.
76940
76941 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         * config/srclist.txt: Add glibc bugs 1220-1227.
76944
76945 2005-08-20  Jim Meyering  <jim@meyering.net>
76946
76947         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76948         of unused local, dfa.
76949
76950 2005-08-20  Bruno Haible  <bruno@clisp.org>
76951
76952         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76953
76954 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76955
76956         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76957         (re_node_set_insert_last, re_dfa_add_node):
76958         Rename local variables to avoid GCC shadowing warnings.
76959
76960 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76963         [defined lint]: Suppress bogus uninitialized-variable warnings.
76964
76965         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76966         and let the caller return REG_ESPACE if out of space.  This
76967         removes an uninitialied-variable warning with GCC 4.0.1, and also
76968         avoids taking the address of a local variable.  All callers
76969         changed.
76970
76971 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76974         $LIBCSRC/posix/regexec.c.
76975         Add glibc bug 1217 for regcomp.c.
76976
76977 2005-08-19  Jim Meyering  <jim@meyering.net>
76978
76979         * lib/regexec.c (proceed_next_node): Redo local variables to
76980         avoid GCC shadowing warnings.
76981
76982 2005-08-18  Bruno Haible  <bruno@clisp.org>
76983
76984         * lib/strstr.c (strstr): Fix return value in multibyte case.
76985         * lib/strcasestr.c (strcasestr): Likewise.
76986
76987 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76988
76989         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76990
76991 2005-08-17  Jim Meyering  <jim@meyering.net>
76992
76993         Make the %s format (seconds since the epoch) work for a negative
76994         number and when used with a zero-padded field width, e.g. %015s.
76995
76996         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76997         label so that it precedes the code to set `digits'.  Otherwise,
76998         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76999         print `00-22'.  Now, it prints `-0022', as it should.
77000
77001 2005-08-17  Bruno Haible  <bruno@clisp.org>
77002
77003         * modules/strstr (Files): Add m4/mbrtowc.m4.
77004         (Depends-on): Add mbuiter.
77005
77006 2005-08-17  Bruno Haible  <bruno@clisp.org>
77007
77008         * modules/strcasestr: New file.
77009         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77010         strcasestr.
77011
77012 2005-08-17  Bruno Haible  <bruno@clisp.org>
77013
77014         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77015
77016 2005-08-17  Bruno Haible  <bruno@clisp.org>
77017
77018         * modules/mbuiter: New file.
77019         * MODULES.html.sh (Extended multibyte and wide character utilities):
77020         Add mbuiter.
77021
77022 2005-08-17  Bruno Haible  <bruno@clisp.org>
77023
77024         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77025         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77026
77027 2005-08-17  Bruno Haible  <bruno@clisp.org>
77028
77029         * m4/strcasestr.m4: New file.
77030
77031 2005-08-17  Bruno Haible  <bruno@clisp.org>
77032
77033         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77034         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77035
77036 2005-08-17  Bruno Haible  <bruno@clisp.org>
77037
77038         * lib/strcasestr.h: New file.
77039         * lib/strcasestr.c: New file.
77040
77041 2005-08-17  Bruno Haible  <bruno@clisp.org>
77042
77043         * lib/strcasecmp.c: Use mbuiter.h.
77044
77045 2005-08-17  Bruno Haible  <bruno@clisp.org>
77046
77047         * lib/mbuiter.h: New file.
77048
77049 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77052         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77053         and gl_GETOPT are both invoked via different paths (as happens
77054         with GNU tar CVS because it uses both argp and getopt), the former
77055         wins.
77056
77057 2005-08-16  Bruno Haible  <bruno@clisp.org>
77058
77059         * modules/tls: New file.
77060         * MODULES.html.sh (Multithreading): Add tls.
77061
77062 2005-08-16  Bruno Haible  <bruno@clisp.org>
77063
77064         * modules/strnlen1: New file.
77065         * MODULES.html.sh (String handling): Add strnlen1.
77066
77067 2005-08-16  Bruno Haible  <bruno@clisp.org>
77068
77069         * modules/strcase (Files): Add m4/mbrtowc.m4.
77070         (Depends-on): Add strnlen1, mbchar.
77071
77072 2005-08-16  Bruno Haible  <bruno@clisp.org>
77073
77074         * modules/mbiter: New file.
77075         * MODULES.html.sh (Extended multibyte and wide character utilities):
77076         Add mbiter.
77077
77078 2005-08-16  Bruno Haible  <bruno@clisp.org>
77079
77080         * modules/mbfile: New file.
77081         * MODULES.html.sh (Extended multibyte and wide character utilities):
77082         Add mbfile.
77083
77084 2005-08-16  Bruno Haible  <bruno@clisp.org>
77085
77086         * modules/mbchar: New file.
77087         * MODULES.html.sh (Extended multibyte and wide character utilities):
77088         New section.
77089
77090 2005-08-16  Bruno Haible  <bruno@clisp.org>
77091
77092         * m4/tls.m4: New file, from GNU gettext.
77093
77094 2005-08-16  Bruno Haible  <bruno@clisp.org>
77095
77096         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77097         always.
77098         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77099
77100 2005-08-16  Bruno Haible  <bruno@clisp.org>
77101
77102         * m4/mbiter.m4: New file.
77103
77104 2005-08-16  Bruno Haible  <bruno@clisp.org>
77105
77106         * m4/mbfile.m4: New file.
77107
77108 2005-08-16  Bruno Haible  <bruno@clisp.org>
77109
77110         * m4/mbchar.m4: New file.
77111
77112 2005-08-16  Bruno Haible  <bruno@clisp.org>
77113
77114         * lib/tls.h: New file, from GNU gettext.
77115         * lib/tls.c: New file, from GNU gettext.
77116
77117 2005-08-16  Bruno Haible  <bruno@clisp.org>
77118
77119         * lib/strnlen1.h: New file.
77120         * lib/strnlen1.c: New file.
77121
77122 2005-08-16  Bruno Haible  <bruno@clisp.org>
77123
77124         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77125         (mbi_init): Update.
77126         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77127         NUL byte, not after it.
77128
77129 2005-08-16  Bruno Haible  <bruno@clisp.org>
77130
77131         * lib/strcase.h (strcasecmp): Add note in comments.
77132         * lib/strncasecmp.c: Use code from strcasecmp.c.
77133         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77134         (strcasecmp): Work correctly in multibyte locales.
77135
77136 2005-08-16  Bruno Haible  <bruno@clisp.org>
77137
77138         * lib/mbiter.h: New file.
77139
77140 2005-08-16  Bruno Haible  <bruno@clisp.org>
77141
77142         * lib/mbfile.h: New file.
77143
77144 2005-08-16  Bruno Haible  <bruno@clisp.org>
77145
77146         * lib/mbchar.h: New file.
77147         * lib/mbchar.c: New file.
77148
77149 2005-08-16  Bruno Haible  <bruno@clisp.org>
77150
77151         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77152         the valid ones. Makes the comparison operations transitive:
77153         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77154         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77155
77156 2005-08-15  Simon Josefsson  <jas@extundo.com>
77157
77158         * modules/ssize_t (License): Change to 'unlimited'.
77159
77160         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77161
77162 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77163
77164         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77165         Add comments for each pending glibc patch.
77166
77167 2005-08-15  Bruno Haible  <bruno@clisp.org>
77168
77169         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77170         __cplusplus is defined.
77171
77172 2005-08-14  Jim Meyering  <jim@meyering.net>
77173
77174         Sync from coreutils.
77175
77176         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77177         Use the hash-table-based cycle-detection code not just when
77178         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77179         Reported by James Youngman in
77180         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77181         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77182         FTS_TIGHT_CYCLE_CHECK.
77183         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77184         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77185         once again.
77186         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77187         * lib/fts.c (fd_safer): Remove decl.
77188         Include fcntl--.h rather than unistd-safer.h
77189         (fts_safe_changedir): Don't call fd_safer; no longer needed
77190         now that we include fcntl--.h.
77191
77192 2005-08-12  Simon Josefsson  <jas@extundo.com>
77193
77194         * modules/getndelim2: Use ssize_t module.
77195         * modules/getnline: Likewise.
77196         * modules/safe-read: Likewise.
77197         * modules/xreadlink: Likewise.
77198
77199         * modules/ssize_t: New file.
77200
77201 2005-08-12  Simon Josefsson  <jas@extundo.com>
77202
77203         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77204
77205 2005-08-12  Simon Josefsson  <jas@extundo.com>
77206
77207         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77208         ssize_t.
77209
77210 2005-08-12  Simon Josefsson  <jas@extundo.com>
77211
77212         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77213         readline, getdelim and check_version.
77214         (Support for systems lacking ISO C 99: Sizes of integer types):
77215         Add size_max.
77216
77217 2005-08-12  Bruno Haible  <bruno@clisp.org>
77218
77219         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77220
77221 2005-08-11  Simon Josefsson  <jas@extundo.com>
77222
77223         * modules/readline: New file.
77224
77225         * modules/strnlen (Files): Add strnlen.h.
77226
77227 2005-08-11  Simon Josefsson  <jas@extundo.com>
77228
77229         * m4/readline.m4: New file.
77230
77231 2005-08-11  Simon Josefsson  <jas@extundo.com>
77232
77233         * lib/readline.h, readline.c: New file.
77234
77235 2005-08-11  Simon Josefsson  <jas@extundo.com>
77236
77237         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77238         gl_AVOID.
77239
77240 2005-08-11  Bruno Haible  <bruno@clisp.org>
77241
77242         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77243
77244 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77245
77246         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77247
77248 2005-08-10  Simon Josefsson  <jas@extundo.com>
77249
77250         * tests/test-iconvme.c: New file.
77251
77252 2005-08-10  Simon Josefsson  <jas@extundo.com>
77253
77254         * m4/strnlen.m4: New file.
77255
77256         * m4/strndup.m4: Don't check for strnlen declaration, done in
77257         strnlen.m4.
77258
77259 2005-08-10  Simon Josefsson  <jas@extundo.com>
77260
77261         * lib/strndup.c: Use strnlen.h.
77262
77263         * lib/strnlen.h: New file.
77264
77265 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77266
77267         * README: Typos.
77268
77269 2005-08-02  Simon Josefsson  <jas@extundo.com>
77270
77271         * modules/readline: New file.
77272
77273 2005-08-02  Simon Josefsson  <jas@extundo.com>
77274
77275         * modules/getdelim: New file.
77276
77277         * modules/getline: Rewrite, don't use getndelim2.
77278
77279 2005-08-02  Simon Josefsson  <jas@extundo.com>
77280
77281         * m4/getline.m4: Separate out getdelim stuff into separate module.
77282
77283         * m4/getdelim.m4: New file.
77284
77285 2005-08-02  Simon Josefsson  <jas@extundo.com>
77286
77287         * lib/getline.h, getline.c: Rewrite.
77288
77289         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77290
77291 2005-07-31  Bruno Haible  <bruno@clisp.org>
77292
77293         * lib/lock.h (gl_lock_initializer): New macro.
77294         (gl_lock_define_initialized): Use it.
77295         (gl_rwlock_initializer): New macro.
77296         (gl_rwlock_define_initialized): Use it.
77297         (gl_recursive_lock_initializer): New macro.
77298         (gl_recursive_lock_define_initialized): Use it.
77299
77300 2005-07-30  Karl Berry  <karl@gnu.org>
77301
77302         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77303         Report from Ben Pfaff, regarding getopt.
77304
77305 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77308         normal way.
77309         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77310         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77311         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77312         (gl_GETOPT): Use the new macros.  Most of the implementation
77313         is moved to the new macros.  This is for programs like Emacs
77314         that don't want all the functionality of gl_GETOPT.
77315
77316 2005-07-26  Bruno Haible  <bruno@clisp.org>
77317
77318         * m4/lock.m4: Update from GNU gettext.
77319
77320 2005-07-26  Bruno Haible  <bruno@clisp.org>
77321
77322         * lib/lock.h: Update from GNU gettext.
77323         * lib/lock.c: Update from GNU gettext.
77324
77325 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77328         obsolescent AC_TRY_RUN.  Include the default includes files, for
77329         'exit'.
77330
77331 2005-07-24  Bruno Haible  <bruno@clisp.org>
77332
77333         * modules/visibility: New file.
77334         * MODULES.html.sh (Misc): Add visibility.
77335
77336 2005-07-24  Bruno Haible  <bruno@clisp.org>
77337
77338         * m4/visibility.m4: New file.
77339
77340 2005-07-24  Bruno Haible  <bruno@clisp.org>
77341
77342         * doc/visibility.texi: New file.
77343
77344 2005-07-22  Bruno Haible  <bruno@clisp.org>
77345
77346         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77347         $(ALLOCA_H), redundant through BUILT_SOURCES.
77348         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77349         redundant through BUILT_SOURCES.
77350         * modules/byteswap (Makefile.am): Remove explicit dependency on
77351         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77352         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77353         $(FNMATCH_H), redundant through BUILT_SOURCES.
77354         * modules/getopt (Makefile.am): Remove explicit dependency on
77355         $(GETOPT_H), redundant through BUILT_SOURCES.
77356         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77357         redundant through BUILT_SOURCES.
77358         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77359         redundant through BUILT_SOURCES.
77360         * modules/stdbool (Makefile.am): Remove explicit dependency on
77361         $(STDBOOL_H), redundant through BUILT_SOURCES.
77362         * modules/stdint (Makefile.am): Remove explicit dependency on
77363         $(STDINT_H), redundant through BUILT_SOURCES.
77364         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77365         Remove explicit dependency on $(SYSEXITS_H).
77366         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77367
77368 2005-07-18  Simon Josefsson  <jas@extundo.com>
77369
77370         * lib/check-version.c (check_version): Accept identical versions too.
77371
77372 2005-07-18  Bruno Haible  <bruno@clisp.org>
77373
77374         * modules/lock: New file.
77375         * MODULES.html.sh (Multithreading): New section.
77376
77377 2005-07-18  Bruno Haible  <bruno@clisp.org>
77378
77379         * m4/lock.m4: New file, from GNU gettext.
77380
77381 2005-07-18  Bruno Haible  <bruno@clisp.org>
77382
77383         * lib/lock.h: New file, from GNU gettext.
77384         * lib/lock.c: New file, from GNU gettext.
77385
77386 2005-07-18  Bruno Haible  <bruno@clisp.org>
77387
77388         * lib/lock.h (gl_once_t): New type.
77389         (gl_once_define, gl_once): New macros.
77390         * lib/lock.c (fresh_once): New variable.
77391         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77392         functions.
77393
77394 2005-07-16  Simon Josefsson  <jas@extundo.com>
77395
77396         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77397         workaround, suggested by Bruno.
77398
77399 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77400
77401         * modules/xalloc (Depends-on): Add xalloc-die.
77402         * modules/xvasprintf (Depends-on): Add xalloc-die.
77403
77404 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77405
77406         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77407         with a minor change.
77408
77409 2005-07-15  Bruno Haible  <bruno@clisp.org>
77410
77411         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77412         When using lib/poll.c, define poll as rpl_poll.
77413
77414 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         * modules/argp (Depends-on): Remove unlocked-io.
77417
77418 2005-07-14  Derek Price  <derek@ximbiot.com>
77419
77420         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77421         for glob symlink bug.
77422
77423 2005-07-14  Bruno Haible  <bruno@clisp.org>
77424
77425         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77426         Instead, test for *_unlocked function declarations directly.
77427
77428 2005-07-11  Simon Josefsson  <jas@extundo.com>
77429
77430         * modules/size_max: New file.
77431
77432         * modules/xsize: Depend on size_max module for size_max.m4.
77433
77434 2005-07-11  Simon Josefsson  <jas@extundo.com>
77435
77436         * lib/size_max.h: New file.
77437
77438 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77439
77440         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77441         copyright symbol and the year.
77442         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77443         (version_etc_va): Use parameterized copyright notice.
77444         Reword to conform to the current GNU coding standards.
77445
77446 2005-07-11  Karl Berry  <karl@gnu.org>
77447
77448         * doc/gnulib.texi (Quoting): new node.
77449         (Initial import): more info, from Patrice.
77450
77451 2005-07-11  Bruno Haible  <bruno@clisp.org>
77452
77453         * gnulib-tool (func_usage): Document option --avoid.
77454         (Command line options): Handle --avoid.
77455         (func_acceptable): New function.
77456         (func_modules_transitive_closure): Use it.
77457
77458 2005-07-11  Bruno Haible  <bruno@clisp.org>
77459
77460         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77461         Reported by Jim Meyering.
77462
77463 2005-07-10  Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77466         Needed when size_t is smaller than 'unsigned int'.
77467         Reported by Paul Eggert.
77468
77469 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77470
77471         * modules/argp (Depends-on): Add unlocked-io
77472
77473 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77474
77475         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77476         block of defines.
77477
77478 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77479
77480         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77481         fix now.
77482
77483 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77484         and Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77487         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77488
77489 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77490
77491         * modules/regex (Files): Add lib/regex_internal.c,
77492         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77493         (Depends-on): Add extensions.
77494         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77495
77496 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77497
77498         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77499         pathconf.
77500         * m4/same.m4 (gl_SAME): Likewise.
77501         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77502
77503         * m4/regex.m4: Adjust to new libc regex implementation.
77504         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77505         all the .c and .h parts of (the new) regex.
77506         Quote the m4 stuff better.
77507         Check for RE_ICASE bug of old gnulib.
77508         Check for REG_STARTEND of recent libc.
77509         Rename local variables from jm_* to gl_*.
77510         Quote operand of "test -f".
77511         Say "recent enough" version of libc, not "version 2".
77512         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77513         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77514         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77515         Remove check for btowc, isascii.
77516         Require AM_LANGINFO_CODESET.
77517
77518 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77519
77520         * lib/regex.c, regex.h: Sync from libc.
77521         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77522         * lib/regexec.c:
77523         New files, synced from libc, except that regex_internal.h
77524         currently has a small porting fix.
77525
77526 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77527
77528         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77529         regex_internal.c, regexec.c.
77530         Add regex_internal.h too, but as a comment, since the libc version
77531         is currently broken in gnulib mode.
77532
77533 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77534
77535         Support programs like Emacs that use gnulib but not gettext.
77536         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77537         * modules/gettext-h: New file.
77538         * modules/gettext (Files): Remove lib/gettext.h.
77539         (Depends-on): Add gettext-h.
77540         (Makefile.am): Remove lib_SOURCES.
77541         * modules/argmatch, modules/c-stack, modules/closeout:
77542         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77543         * modules/execute, modules/file-type, modules/getaddrinfo:
77544         * modules/getopt, modules/human, modules/javacomp:
77545         * modules/javaexec, modules/mkdir-p, modules/obstack:
77546         * modules/openat, modules/pagealign_alloc, modules/pipe:
77547         * modules/quotearg, modules/regex, modules/rpmatch:
77548         * modules/unicodeio, modules/userspec, modules/version-etc:
77549         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77550         * modules/xsetenv:
77551         Depend on gettext-h, not gettext.
77552
77553 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77554
77555         * gnulib-tool (func_import): Add support for 'public domain' license.
77556         * modules/alloca, modules/atexit, modules/memmove:
77557         Now public domain, not GPL.
77558         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77559         * modules/realloc, modules/strerror, modules/strtod:
77560         Now LGPL, not GPL.
77561
77562 2005-07-05  Bruno Haible  <bruno@clisp.org>
77563
77564         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77565         autoconf CVS. Needed for mingw.
77566
77567 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77568
77569         Remove the dependency of the strftime module on the tzset module.
77570         * modules/strftime (Depends-on): Remove dependency on tzset.
77571
77572 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         Remove the dependency of the strftime module on the tzset module.
77575         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77576         gl_FUNC_TZSET_CLOBBER.
77577
77578 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77579
77580         Remove the dependency of the strftime module on the tzset module.
77581         * lib/strftime.c (my_strftime)
77582         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77583         Copy the input structure, to work around some of the bug with
77584         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77585         Solaris releases, you should also use the tzset module, but we won't
77586         require it as a dependency any more since we don't want LGPLed code
77587         to depend on GPLed code.
77588
77589 2005-07-02  Jim Meyering  <jim@meyering.net>
77590
77591         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77592         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77593         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77594         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77595
77596 2005-07-02  Jim Meyering  <jim@meyering.net>
77597
77598         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77599
77600 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77601
77602         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77603         declares only 'struct timespec;' (!).
77604
77605 2005-07-01  Jim Meyering  <jim@meyering.net>
77606
77607         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77608         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77609         * lib/save-cwd.c, tempname.c:
77610         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77611         and don't include <sys/file.h>).
77612
77613 2005-06-29  Jim Meyering  <jim@meyering.net>
77614
77615         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77616         type name.  Use the variable name instead.
77617         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77618         Likewise.
77619
77620 2005-06-28  Simon Josefsson  <jas@extundo.com>
77621
77622         * modules/check-version (Files): Add check-version.m4.
77623
77624 2005-06-28  Simon Josefsson  <jas@extundo.com>
77625
77626         * m4/check-version.m4: New file, suggested by Jim Meyering
77627         <jim@meyering.net>.
77628
77629 2005-06-28  Simon Josefsson  <jas@extundo.com>
77630
77631         * lib/check-version.h, lib/check-version.c: New files.
77632
77633 2005-06-28  Simon Josefsson  <jas@extundo.com>
77634
77635         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77636         collision with global variable.  Better indentation.  Don't
77637         increment buffer pointer beyond buffer end.  Based on comments
77638         from Paul Eggert <eggert@cs.ucla.edu>.
77639
77640         * lib/base64.h: Indent.
77641
77642 2005-06-28  Simon Josefsson  <jas@extundo.com>
77643
77644         * doc/gnulib.texi (Library version handling): New section.
77645
77646 2005-06-28  Jim Meyering  <jim@meyering.net>
77647
77648         * check-module (find_included_lib_files): Hard-code another
77649         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77650         but modules/fts-lgpl (correctly) does not list those files.
77651
77652         * modules/canonicalize (Files): Add lib/pathmax.h.
77653
77654 2005-06-25  Simon Josefsson  <jas@extundo.com>
77655
77656         * modules/check-version: New file.
77657
77658 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77661         initializer of struct addrinfo, as an indication that we don't
77662         care how many members the structure has.
77663
77664 2005-06-24  Derek Price  <derek@ximbiot.com>
77665         and Bruno Haible  <bruno@clisp.org>
77666
77667         Remove stat module & update lstat.
77668         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77669         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77670         * m4/stat.m4: Remove this file.
77671
77672 2005-06-24  Derek Price  <derek@ximbiot.com>
77673         and Bruno Haible  <bruno@clisp.org>
77674
77675         Remove stat module & update lstat.
77676         * lib/stat.c: Remove this file...
77677         (slash_aware_lstat): ...moving this content and its support...
77678         * lib/lstat.c (rpl_lstat): ...into here.
77679         * lib/lstat.h: New file.
77680
77681 2005-06-24  Derek Price  <derek@ximbiot.com>
77682         and Bruno Haible  <bruno@clisp.org>
77683
77684         Remove stat module & update lstat.
77685         * config/srclist.txt (libc sources): Remove stat.
77686
77687 2005-06-24  Derek Price  <derek@ximbiot.com>
77688         and Bruno Haible  <bruno@clisp.org>
77689
77690         Remove stat module & update lstat.
77691         * MODULES.html.sh (stat): Remove.
77692         * MODULES.html: Regenerated.
77693         * modules/lstat (Description): Correct function name.
77694         (Files): Add "lstat.h".
77695         (Depends-on): Remove stat, add xalloc, stat-macros.
77696         * modules/stat: Remove this file.
77697         (Include): Add "lstat.h", remove <sys/stat.h>.
77698
77699 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77702         (ranged_convert): Don't save conversion in a temporary struct.
77703         This causes a warning with GCC 4.0.0, and anyway in the typical
77704         case it's not worth the extra 100 bytes or so of code.
77705         (ranged_convert, __mktime_internal): When calling a function via a
77706         pointer P, use P () rather than (*P) (), as we now assume C89 or
77707         better.
77708
77709 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77712         "who -r" failed to give output.  Problem reported by Tim Waugh.
77713
77714         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77715         (xcalloc): Use it to avoid needless tests.
77716         Problem reported by Jim Meyering.
77717
77718 2005-06-20  Derek Price  <derek@ximbiot.com>
77719
77720         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77721         unnecessary for Autoconfs > 2.59c.
77722
77723 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77724
77725         * lib/argp.h (__option_is_short): Check upper limit of
77726         __key. Isprint() requires its argument to have the value
77727         of an unsigned char or EOF.
77728
77729 2005-06-16  Jim Meyering  <jim@meyering.net>
77730
77731         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77732         when either N or S is zero.
77733
77734 2005-06-16  Derek Price  <derek@ximbiot.com>
77735
77736         * m4/bison.m4: Declare YACC & YFLAGS precious.
77737
77738 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77741         multibyte string or pattern, fall back on unibyte matching.
77742         Problem reported by James Youngman.
77743
77744 2005-06-08  Bruno Haible  <bruno@clisp.org>
77745
77746         * modules/csharpcomp: New file.
77747         * MODULES.html.sh (C#): Add csharpcomp.
77748
77749 2005-06-08  Bruno Haible  <bruno@clisp.org>
77750
77751         * m4/csharpcomp.m4: New file, from GNU gettext.
77752
77753 2005-06-08  Bruno Haible  <bruno@clisp.org>
77754
77755         * lib/csharpcomp.h: New file, from GNU gettext.
77756         * lib/csharpcomp.c: New file, from GNU gettext.
77757         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77758
77759 2005-06-08  Bruno Haible  <bruno@clisp.org>
77760
77761         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77762         warning on mingw.
77763
77764 2005-06-07  Derek Price  <derek@ximbiot.com>
77765
77766         Sync from CVS.
77767         * lib/glob_.h: Indent nested #ifdef.
77768
77769 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         Sync from coreutils.
77772         Use "file name" when talking about file names, instead of "filename"
77773         or "path", as per the GNU coding standards.
77774         * lib/mkdir-p.c: Renamed from makepath.c.
77775         (make_dir_parents): Renamed from make_path.  All callers changed.
77776         * lib/mkdir-p.h: Likewise.  All includers changed.
77777         * lib/filenamecat.c: Renamed from path-concat.c.
77778         (file_name_concat): Renamed from path_concat.  All callers changed.
77779         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77780         * lib/filenamecat.h: Likewise.  All includers changed.
77781         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77782         in comments or local variable names.
77783         * lib/basename.c: Likewise.
77784         * lib/canonicalize.c, canonicalize.h: Likewise.
77785         * lib/dirname.c, dirname.h: Likewise.
77786         * lib/euidaccess.c: Likewise.
77787         * lib/exclude.c: Likewise
77788         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77789         * lib/fsusage.c, fsuage.h: Likewise.
77790         * lib/fts.c, fts_.h: Likewise.
77791         * lib/getcwd.c: Likewise.
77792         * lib/getloadavg.c: Likewise.
77793         * lib/mkstemp.c: Likewise.
77794         * lib/mountlist.c, mountlist.h: Likewise.
77795         * lib/openat.c, openat.h: Likewise.
77796         * lib/readlink-stub.c: Likewise.
77797         * lib/readutmp.c, readutmp.h: Likewise.
77798         * lib/rename.c: Likewise.
77799         * lib/rmdir.c: Likewise.
77800         * lib/same.c: Likewise.
77801         * lib/savedir.c: Likewise.
77802         * lib/stripslash.c: Likewise.
77803         * lib/tempname.c: Likewise.
77804         * lib/xreadlink.c: Likewise.
77805         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77806         All uses changed.
77807         * lib/exclude.h: Likewise.
77808
77809         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77810         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77811         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77812         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77813         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77814         files have been getting away with it for years (MORE/BSD 4.3
77815         is extinct now).
77816         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77817         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77818
77819         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77820         Define to 256, not 255, as per modern POSIX.
77821
77822 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77823
77824         Sync from coreutils.
77825         Use "file name" when talking about file names, instead of "filename"
77826         or "path", as per the GNU coding standards.
77827         * MODULES.html.sh: mkdir-p renamed from makepath.
77828         filenamecat renamed from path-concat.
77829         * modules/filenamecat: Renamed from modules/path-concat.
77830         (Files): filenamecat.h and filenamecat.c renamed from
77831         path-concat.h and path-concat.c.
77832         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77833         (Include): filenamecat.h, not path-concat.h.
77834         * modules/mkdir-p: Renamed from modules/makepath.
77835         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77836         makepath.c.
77837         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77838         (Include): mkdir-p.h, not makepath.h.
77839
77840 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         Sync from coreutils.
77843         * m4/mkdir-p.m4: Renamed from makepath.m4.
77844         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77845         Rename files from makepath.c to mkdir-p.c, and from
77846         makepath.h to mkdir-p.h.
77847         * m4/filenamecat.m4: Renamed from path-concat.m4.
77848         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77849         Rename files from path-concat.c to filenamecat.c,
77850         and from path-concat.h to filenamecat.h.
77851         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77852         "file name" in local variables or comments.
77853         * m4/rename.m4: Likewise.
77854
77855 2005-06-01  Bruno Haible  <bruno@clisp.org>
77856
77857         * modules/csharpexec: New file.
77858         * MODULES.html.sh (C#): New section.
77859
77860 2005-06-01  Bruno Haible  <bruno@clisp.org>
77861
77862         * m4/csharp.m4: New file, from GNU gettext.
77863         * m4/csharpexec.m4: New file, from GNU gettext.
77864
77865 2005-06-01  Bruno Haible  <bruno@clisp.org>
77866
77867         * lib/csharpexec.h: New file, from GNU gettext.
77868         * lib/csharpexec.c: New file, from GNU gettext.
77869         * lib/csharpexec.sh.in: New file, from GNU gettext.
77870
77871 2005-05-31  Derek Price  <derek@ximbiot.com>
77872             Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         Sync from cvs.
77875         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77876
77877 2005-05-31  Derek Price  <derek@ximbiot.com>
77878             Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         Sync from cvs.
77881         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77882
77883 2005-05-29  Derek Price  <derek@ximbiot.com>
77884
77885         * config/srclist.txt (glob_.h, glob.c): Add these files.
77886
77887 2005-05-29  Derek Price  <derek@ximbiot.com>
77888
77889         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77890         * modules/glob: New file.
77891         * modules/getlogin_r: Add link to POSIX spec in description.
77892
77893 2005-05-29  Derek Price  <derek@ximbiot.com>
77894             Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * m4/glob.m4: New file.
77897
77898 2005-05-29  Derek Price  <derek@ximbiot.com>
77899             Paul Eggert  <eggert@cs.ucla.edu>
77900
77901         * lib/glob_.h, lib/glob.c: New files.
77902
77903 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77904
77905         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77906         * modules/fts-lgpl (Depends-on): Remove gettext.
77907
77908 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77909
77910         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77911         and don't require gt_INTTYPES_PRI.
77912
77913 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77916
77917         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77918         the configuration hassle isn't worth it.
77919         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77920         (LONGEST_MODIFIER, PRIuMAX): Remove.
77921
77922 2005-05-27  Bruno Haible  <bruno@clisp.org>
77923
77924         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77925
77926 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77929         _POSIX_PTHREAD_SEMANTICS for Solaris.
77930
77931 2005-05-25  Derek Price  <derek@ximbiot.com>
77932
77933         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77934
77935 2005-05-25  Derek Price  <derek@ximbiot.com>
77936             Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77939         * lib/getlogin_r.c, getlogin_r.h: New files.
77940
77941 2005-05-25  Bruno Haible  <bruno@clisp.org>
77942             Derek Price  <derek@ximbiot.com>
77943
77944         * lib/getlogin_r.h: Simplify API documentation.
77945
77946 2005-05-23  Derek Price  <derek@ximbiot.com>
77947
77948         * modules/minmax (Files): Add m4/minmax.m4.
77949         (configure.ac): Add gl_MINMAX.
77950
77951 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77952
77953         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77954         so that unistd-safer.h (GPL'ed code) need not be included.
77955
77956 2005-05-22  Bruno Haible  <bruno@clisp.org>
77957
77958         * m4/minmax.m4: New file.
77959         Based on a patch by Derek Price <derek@ximbiot.com>.
77960
77961 2005-05-22  Bruno Haible  <bruno@clisp.org>
77962
77963         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77964         (INT64_MIN): Fix definition.
77965         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77966
77967         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77968         NEED_SIGNED_INT_TYPES.
77969
77970         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77971         HAVE_SYSTEM_INTTYPES.
77972
77973 2005-05-22  Bruno Haible  <bruno@clisp.org>
77974
77975         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77976         Also include <sys/param.h> if it defines MIN, MAX.
77977         Based on a patch by Derek Price <derek@ximbiot.com>.
77978
77979 2005-05-21  Jim Meyering  <jim@meyering.net>
77980
77981         * modules/fts (Files): Add m4/inttypes-pri.m4.
77982         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77983
77984 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77985
77986         New fts module.
77987         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77988         (setup_dir, free_dir): New functions.
77989         (enter_dir, leave_dir): Define trivial
77990         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77991         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77992         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77993         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77994         Move to fts-cycle.c.
77995         (fts_open): Use setup_dir.
77996         (fts_close): Use free_dir.
77997         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77998         This adds a label and some gotos, but the alternatives were messier.
77999         Check for memory allocation failure when entering a dir.
78000         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78001         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78002         (FTS): New member fts_cycle, that is a union that contains the
78003         old active_dir_ht and cycle_state.  All uses changed to mention
78004         fts_cycle.ht and fts_cycle.state.
78005         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78006         fts.c, with the following changes:
78007         (setup_dir, free_dir): New functions.
78008         (enter_dir): Now returns bool.  Return true if successful, false
78009         if memory exhausted.  All callers changed.
78010         Do not bother partly cleaning up on
78011         memory allocation failure; that is free_dir's job.
78012         However, free ad if hash_insert fails, to avoid memory leak.
78013         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78014         fts->fts_options to see which union member to use.
78015
78016 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78019         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78020
78021 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78024
78025 2005-05-20  Jim Meyering  <jim@meyering.net>
78026
78027         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78028         Now a macro, to pacify GCC.
78029
78030 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78031
78032         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78033         of -1.
78034
78035 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78036
78037         * lib/chown.c (rpl_chown): Return -1 on failure.
78038
78039 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78042         Don't check for stddef.h.
78043         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78044         don't use its results.
78045         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78046         since we include them unconditionally.  Don't require
78047         AM_STDBOOL_H, since stdbool is a prerequisite.
78048         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78049         since we assume C89 or better.
78050         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78051         as we don't use their results.
78052         Don't check for fchdir, memmove, memset, strrchr, as we use
78053         them unconditionally.
78054         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78055         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78056
78057 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78060         Include <stddef.h> unconditionally, since we assume C89 now.
78061         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78062         * lib/fts.c: Include fts_.h first, to check interface.
78063         Do not include intprops.h; no longer needed.
78064         Include cycle-check.h and hash.h, since fts_.h no longer does.
78065         Remove unnecessary casts of closedir to void.
78066         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78067         decide whether to decrement nlinks.
78068         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78069         (FTS): Use struct hash_table * instead of Hash_table, so that
78070         we no longer need to include hash.h here.
78071
78072 2005-05-18  Jim Meyering  <jim@meyering.net>
78073
78074         * modules/dirfd (License): Change to LGPL.  Most of the code
78075         is already in the public domain.
78076
78077 2005-05-18  Jim Meyering  <jim@meyering.net>
78078
78079         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78080         Reported by Yoann Vandoorselaere.
78081
78082 2005-05-17  Jim Meyering  <jim@meyering.net>
78083
78084         * m4/fts.m4: New file, from coreutils.
78085
78086 2005-05-17  Jim Meyering  <jim@meyering.net>
78087
78088         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78089
78090 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         Sync from coreutils.
78093         * m4/unlinkdir.m4: New file.
78094
78095 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         Sync from coreutils.
78098         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78099         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78100         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78101         White space changes only.
78102         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78103         special.
78104         * lib/yesno.c: Include getline.h, not ctype.h.
78105         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78106         Use getline to remove arbitrary restriction on response length.
78107
78108 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * config/srclist-update: Spell out "Street" in FSF postal
78111         mail address; this is the style the FSF seems to prefer.
78112
78113         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78114         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78115         this updates FSF postal mail address.
78116
78117         Sync from coreutils.
78118         * modules/unlinkdir: New file.
78119         * modules/yesno (Depends-on): Add getline.
78120         * MODULES.html.sh (File system functions): Add unlinkdir.
78121
78122 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78125         lib/strsep.h:
78126         Change the initial comment to refer to GPL, not LGPL.
78127         gnulib-tool will change it to LGPL as needed.
78128
78129         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78130         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78131         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78132         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78133         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78134         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78135         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78136         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78137         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78138         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78139         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78140         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78141         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78142         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78143         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78144         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78145         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78146         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78147         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78148         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78149         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78150         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78151         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78152         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78153         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78154         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78155         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78156         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78157         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78158         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78159         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78160         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78161         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78162         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78163         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78164         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78165         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78166         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78167         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78168         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78169         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78170         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78171         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78172         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78173         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78174         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78175         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78176         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78177         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78178         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78179         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78180         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78181         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78182         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78183         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78184         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78185         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78186         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78187         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78188         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78189         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78190         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78191         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78192         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78193         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78194         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78195         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78196         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78197         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78198         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78199         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78200         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78201         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78202         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78203         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78204         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78205         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78206         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78207         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78208         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78209         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78210         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78211         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78212         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78213         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78214         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78215         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78216         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78217         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78218         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78219         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78220         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78221         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78222         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78223         lib/yesno.c, lib/yesno.h:
78224         Update FSF postal mail address.
78225
78226 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78227
78228         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78229         tests/test-memmem.c, tests/test-stpncpy.c:
78230         Update FSF postal mail address.
78231
78232 2005-05-13  Bruno Haible  <bruno@clisp.org>
78233
78234         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78235         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78236         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78237         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78238         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78239         Add support for 64-bit integers in the MSVC compiler.
78240
78241 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78242
78243         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78244
78245 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78246
78247         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78248
78249 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78250
78251         * doc/getdate.texi (General date syntax): Don't say that date
78252         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78253         Problem reported by Nic Ferrier.
78254
78255 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78256
78257         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78258         specified in ai_socktype. Fix invalid ai_protocol
78259         check. ai_protocol is usually set to 0 or depending on
78260         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78261         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78262         ai_socktype / ai_protocol in the returned addrinfo structure.
78263
78264 2005-05-10  Simon Josefsson  <jas@extundo.com>
78265
78266         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78267         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78268
78269 2005-05-10  Karl Berry  <karl@gnu.org>
78270
78271         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78272         (from http://www.gnu.org/licenses).
78273         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78274         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78275         fdl.texi suffices.
78276
78277 2005-05-10  Karl Berry  <karl@gnu.org>
78278
78279         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78280         (COPYING.DOC): remove.
78281
78282         * config/srclist-update: new FSF address.
78283
78284 2005-05-10  Derek Price  <derek@ximbiot.com>
78285
78286         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78287         possible.
78288
78289 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78290             Bruno Haible  <bruno@clisp.org>
78291
78292         * modules/inet_ntop: New file.
78293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78294         inet_ntop.
78295
78296 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78297             Bruno Haible  <bruno@clisp.org>
78298
78299         * m4/inet_ntop.m4: New file.
78300
78301 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78302             Bruno Haible  <bruno@clisp.org>
78303
78304         * lib/inet_ntop.h: New file.
78305         * lib/inet_ntop.c: New file, from glibc with modifications.
78306
78307 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78308
78309         * modules/time_r (License): Change to LGPL.
78310         * modules/extensions (License): Change to LGPL.  Actually,
78311         the license is more permissive than that, but currently gnulib-tool
78312         doesn't know how to handle more-permissive licenses.
78313
78314         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78315         Problem reported by Dave Love.
78316
78317 2005-05-08  Jim Meyering  <jim@meyering.net>
78318
78319         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78320         blank.
78321
78322 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         * modules/argmatch (Depends-on): Add stdbool.
78325         * modules/backupfile (Depends-on): Likewise.
78326         * modules/chdir-long (Depends-on): Likewise.
78327         * modules/closeout (Depends-on): Likewise.
78328         * modules/cycle-check (Depends-on): Likewise.
78329         * modules/dirname (Depends-on): Likewise.
78330         * modules/fnmatch (Depends-on): Likewise.
78331         * modules/fsusage (Depends-on): Likewise.
78332         * modules/fwriteerror (Depends-on): Likewise.
78333         * modules/getcwd (Depends-on): Likewise.
78334         * modules/getloadavg (Depends-on): Likewise.
78335         * modules/hard-locale (Depends-on): Likewise.
78336         * modules/makepath (Depends-on): Likewise.
78337         * modules/mountlist (Depends-on): Likewise.
78338         * modules/nanosleep (Depends-on): Likewise.
78339         * modules/posixtm (Depends-on): Likewise.
78340         * modules/quotearg (Depends-on): Likewise.
78341         * modules/readtokens (Depends-on): Likewise.
78342         * modules/readtokens0 (Depends-on): Likewise.
78343         * modules/readutmp (Depends-on): Likewise.
78344         * modules/save-cwd (Depends-on): Likewise.
78345         * modules/strftime (Depends-on): Likewise.
78346         * modules/userspec (Depends-on): Likewise.
78347         * modules/utimecmp (Depends-on): Likewise.
78348         * modules/xgetcwd (Depends-on): Likewise.
78349         * modules/xnanosleep (Depends-on): Likewise.
78350         * modules/xstrtod (Depends-on): Likewise.
78351         * modules/yesno (Depends-on): Likewise.
78352
78353 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78354
78355         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78356         needless checks.
78357
78358 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78359
78360         Merge from coreutils.  Among other things,
78361         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78362         * lib/fd-safer.c: New file.
78363         * lib/fcntl-safer.h, open-safer.c: Remove.
78364         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78365         * lib/dup-safer.c: Include unistd-safer.h first.
78366         Don't include errno.h.
78367         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78368         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78369         * lib/file-type.c: Rely on file-type.h change.
78370         * lib/getloadavg.c: Include unistd-safer.h.
78371         (getloadavg): Use safer open.
78372         * lib/getusershell.c: Include "stdio-safer.h".
78373         (getusershell): Use safer fopen.
78374         * lib/long-options.c (long_options): Use NULL rather than 0.
78375         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78376         'free'.
78377         * lib/modechange.c: Likewise.
78378         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78379         (MODE_DONE): New constant.
78380         (struct mode_change): Remove 'next' member.
78381         (make_node_op_equals): New function; like the old one of the
78382         same name, except it allocates an array.
78383         (mode_compile, mode_create_from_ref): Use it.
78384         (mode_compile): Allocate result as an array, not a linked list.
78385         Parse octal string ourself, so that we catch mistakes like "+0".
78386         (mode_adjust): Arg is an array, not a linked list.
78387         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78388         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78389         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78390         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78391         Remove.  This is now stat-macros.h's job.
78392         (talloc): Remove.  All callers replaced by xalloc, so that
78393         our invokers don't have to worry about reporting memory failures.
78394         (make_node_op_equals): Remove.
78395         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78396         New constants.
78397         (struct mode_change): Moved here from modechange.h.
78398         (mode_append_entry): Remove.
78399         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78400         apps to have incorrect behavior.  Use simpler algorithm for head
78401         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78402         Detect more invalid usages rather than having somewhat-random behavior.
78403         Don't insert an "a=" action, as that leads to incorrect behavior.
78404         (mode_compile, mode_create_from_ref): Return NULL on error instead
78405         of an enum, since now there's only one way to have an error.  All
78406         callers changed.
78407         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78408         at the correct time.  Simplify calculation of "+u" and its ilk.
78409         Don't mishandle "+X".
78410         (mode_free): Remove "register" and localize decls.
78411         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78412         (struct mode_change): Move to modechange.c; callers don't
78413         need to see this stuff.
78414         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78415         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78416         (mode_change, mode_adjust): Reflect the new signatures noted above.
78417         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78418         that might redefine system include files.
78419         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78420         (my_usleep): Use NULL rather than (void *) 0.
78421         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78422         Use siginterrupt to specify that system calls should be interrupted.
78423         (rpl_nanosleep): Move initialization of suspended closer to call of
78424         my_usleep.
78425         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78426         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78427         (desirable_utmp_entry): New function.
78428         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78429         using x2nrealloc, to simplify logic.
78430         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78431         size calculation.  Do not assume utmp file is a regular file.
78432         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78433         (READ_UTMP_CHECK_PIDS): New constant.
78434         * lib/save-cwd.c: Include unistd-safer.h.
78435         (save_cwd): Use fd_safer.
78436         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78437         [!_LIBC] Include "stat-macros.h" instead.
78438         * lib/unistd-safer.h (fd_safer): New decl.
78439
78440 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         * modules/getloadavg (Depends-on): Add unistd-safer.
78443         * modules/getusershell (Depends-on): Add stdio-safer.
78444         * modules/lstat (Depends-on): Remove xalloc.
78445         * modules/mkstemp (Depends-on): Add stat-macros.
78446         * modules/modechange (Depends-on): Remove xstrtol.
78447         Add stat-macros, xalloc.
78448         * modules/save-cwd (Depends-on): Add unistd-safer.
78449         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78450         * modules/unistd-safer (Files): Add lib/fd-safer.c
78451         (Makefile.am): Remove lib_SOURCES.
78452
78453         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78454         Remove fcntl-safer; unistd-safer supersedes it.
78455
78456 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78457
78458         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78459         AC_HEADER_STAT.
78460         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78461         (gl_PREREQ_CHOWN): Remove.
78462         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78463         it.  Don't require AC_HEADER_STAT.
78464         (gl_PREREQ_LSTAT): Remove.
78465         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78466         Don't require AC_HEADER_STAT.
78467         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78468         (gl_PREREQ_RMDIR): Remove.
78469         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78470         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78471         the stat-macros module a prerequisite.
78472         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78473         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78474         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78475         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78476         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78477         variable names.
78478         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78479         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78480         variable prefixes.
78481         * m4/fcntl-safer.m4: Remove.
78482         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78483         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78484         Invoke gl_PREREQ_FD_SAFER.
78485         (gl_PREREQ_FD_SAFER): New macro.
78486         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78487         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78488         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78489         Remove duplicate call to AC_LIBOBJ(readutmp).
78490         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78491
78492         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78493         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78494
78495 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78496
78497         * MODULES.html.sh (Misc): Add byteswap.
78498
78499 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78500
78501         * modules/getcwd (Depends-on): Add extensions.
78502         * modules/openat (Depends-on): Likewise.
78503
78504 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78505
78506         * modules/byteswap: New file.
78507
78508 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78509
78510         * m4/byteswap.m4: New file.
78511
78512 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78513
78514         * lib/byteswap_.h: New file.
78515
78516 2005-04-25  Karl Berry  <karl@gnu.org>
78517
78518         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78519
78520 2005-04-25  Albert Chin  <china@thewrittenword.com>
78521
78522         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78523         Toolkit C bug.
78524
78525 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78526
78527         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78528         (func_ln_if_changed): Remove forcibly for no error message
78529         in case file does not exist.
78530
78531 2005-04-19  Simon Josefsson  <jas@extundo.com>
78532
78533         * gnulib-tool (Options): Make --symlink mean --symbolic.
78534
78535 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78536
78537         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78538
78539 2005-04-16  Simon Josefsson  <jas@extundo.com>
78540
78541         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78542
78543 2005-04-15  Simon Josefsson  <jas@extundo.com>
78544
78545         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78546
78547 2005-04-15  Simon Josefsson  <jas@extundo.com>
78548
78549         * gnulib-tool: Rename --symlink to --symbolic.
78550
78551 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78552
78553         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78554         symbolic links to files instead of copying/moving.  Add --aux-dir,
78555         specifying directory relative --dir where auxiliary build tools
78556         are placed.
78557
78558 2005-04-14  Bruno Haible  <bruno@clisp.org>
78559
78560         * modules/allocsa (License): Change to LGPL.
78561         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78562
78563 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78566         that "UTC +1 second" continues to work.  Problem reported
78567         by Dmitry V. Levin.
78568         (relunit_snumber): New rule.
78569         (relunit): Use it.
78570
78571 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78572
78573         * lib/getdate.y (universal_time_zone_table): New constant.
78574         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78575         universal_time_zone_table.
78576         (lookup_zone): Prefer universal_time_zone_table to
78577         local_time_zone_table, so that "GMT" time stamps are allowed in
78578         London during the summer.  Problem reported by Ian Abbott.
78579
78580 2005-04-12  Jim Meyering  <jim@meyering.net>
78581
78582         * lib/human.c (humblock): Set *options even when returning due to
78583         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78584         warning from gcc-4.
78585
78586 2005-04-09  Jim Meyering  <jim@meyering.net>
78587
78588         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78589         -Wuninitialized: initialize tm0.tm_year.
78590
78591 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78592
78593         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78594         count, since there's no maximum.  All uses changed.
78595         Add member dsts_seen.
78596         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78597         not being INT_MAX.
78598         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78599         Use pc_rels_seen to decide whther a date is absolute.
78600
78601         * lib/getdate.y (number): Don't overwrite year.
78602         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78603         check.
78604
78605 2005-04-02  Simon Josefsson  <jas@extundo.com>
78606
78607         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78608         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78609
78610 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78611
78612         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78613         where no absolute path name can be longer than PATH_MAX.
78614
78615 2005-03-27  Jim Meyering  <jim@meyering.net>
78616
78617         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78618
78619 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78622         "one's complement" -> "ones' complement" in comment, as per Knuth.
78623         "value of type" -> "type or expression" in comment.
78624         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78625
78626 2005-03-26  Jim Meyering  <jim@meyering.net>
78627
78628         Comment nits.
78629         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78630         Correct typos: s/or/of/.
78631
78632 2005-03-26  Jim Meyering  <jim@meyering.net>
78633
78634         * modules/check-include-files: Move to ../ and rename to...
78635         * check-module: ...this.
78636
78637 2005-03-25  Jim Meyering  <jim@meyering.net>
78638
78639         * modules/xvasprintf (Files): Add xalloc.h.
78640
78641 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * modules/gettext (Files): config/config.rpath ->
78644         build-aux/config.rpath
78645         * modules/iconv (Files): Likewise.
78646         Problem reported by Oskar Liljeblad.
78647
78648 2005-03-23  Jim Meyering  <jim@meyering.net>
78649
78650         * modules/check-include-files: New script to check for
78651         missing dependencies, multiple includes, etc.
78652
78653         * modules/c-strtold (Depends-on): Add xalloc.
78654         * modules/c-strtod (Depends-on): Add xalloc.
78655         * modules/hash (Depends-on): Add xalloc.
78656         (Files): Remove lib/xalloc.h.
78657
78658         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78659         * modules/userspec (Files): Add lib/inttostr.h.
78660
78661 2005-03-23  Jim Meyering  <jim@meyering.net>
78662
78663         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78664
78665 2005-03-22  Jim Meyering  <jim@meyering.net>
78666
78667         * modules/stat-macros: New module.
78668         * modules/canonicalize, modules/euidaccess, modules/file-type,
78669         * modules/filemode, modules/lchown, modules/makepath,
78670         * modules/rmdir, modules/stat: Depend on new stat-macros module
78671         rather than listing lib/stat-macros.h manually.
78672         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78673
78674 2005-03-22  Jim Meyering  <jim@meyering.net>
78675
78676         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78677
78678 2005-03-22  Bruno Haible  <bruno@clisp.org>
78679
78680         * config/srclist.txt: Replace target directory 'config' with
78681         'build-aux'.
78682         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78683         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78684         ../build-aux/.
78685
78686 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * modules/chdir-long (Depends-on): Add mempcpy.
78689
78690         * modules/acl, modules/backupfile, modules/c-strtod,
78691         modules/c-strtold, modules/canon-host, modules/canonicalize,
78692         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78693         modules/exclude, modules/exitfail, modules/file-type,
78694         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78695         modules/getdate, modules/getline, modules/getpagesize,
78696         modules/getpass, modules/getugroups, modules/group-member,
78697         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78698         modules/inttostr, modules/long-options, modules/makepath,
78699         modules/md5, modules/memcasecmp, modules/memcoll,
78700         modules/modechange, modules/mountlist, modules/path-concat,
78701         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78702         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78703         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78704         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78705         modules/strftime, modules/strndup, modules/strverscmp,
78706         modules/timespec, modules/unlocked-io, modules/userspec,
78707         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78708         modules/yesno:
78709         Remove lib_SOURCES line from Makefile.am section, as this is now
78710         done automatically by the corresponding Autoconf macro.
78711
78712 2005-03-21  Jim Meyering  <jim@meyering.net>
78713
78714         Changes imported from coreutils.
78715
78716         * lib/cycle-check.c: Don't include xalloc.h.
78717
78718         * lib/path-concat.c: Don't include assert.h.
78719         (path_concat): Remove assertion that would have triggered
78720         for ABASE starting with more than one slash.
78721         Reported by Andreas Schwab.
78722
78723         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78724         properly when ABASE is an absolute file name.
78725         Correct the description of this function.
78726         Include <assert.h>.
78727         Add an assertion and a test driver.
78728         This fixes a bug introduced on 2004-07-02.
78729         Andreas Schwab reported the resulting failure of cp --parents:
78730         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78731
78732 2005-03-21  Jim Meyering  <jim@meyering.net>
78733
78734         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78735         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78736
78737 2005-03-21  Jim Meyering  <jim@meyering.net>
78738         and  Paul Eggert  <eggert@cs.ucla.edu>
78739
78740         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78741         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78742         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78743         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78744         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78745         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78746         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78747         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78748         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78749         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78750         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78751         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78752         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78753         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78754         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78755         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78756         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78757         for these modules.
78758
78759 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78762         (which shouldn't happen), generate nothing instead of returning 0
78763         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78764
78765 2005-03-16  Bruno Haible  <bruno@clisp.org>
78766
78767         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78768         HAVE_LONGLONG_64BIT.
78769
78770 2005-03-16  Bruno Haible  <bruno@clisp.org>
78771
78772         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78773         HAVE_LONGLONG_64BIT.
78774
78775 2005-03-16  Bruno Haible  <bruno@clisp.org>
78776
78777         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78778         HAVE_LONGLONG_64BIT.
78779
78780 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78781
78782         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78783         reliably distinguish strftime failure from empty output on POSIX
78784         hosts.
78785
78786 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78789         (iconv_string): Don't guess a size-zero buffer, as that might cause
78790         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78791         result would be 'too large', where 'too large' is (heuristically)
78792         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78793         overflow concerns.  This will prevent some unwanted malloc failures
78794         when the inputs are very large.
78795
78796 2005-03-15  Karl Berry  <karl@gnu.org>
78797
78798         * config/srclist.txt (config.rpath): from gettext.
78799         * config/config.rpath: update.
78800
78801 2005-03-15  Bruno Haible  <bruno@clisp.org>
78802
78803         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78804         to 'negate'.
78805
78806         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78807         variable.
78808
78809         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78810         results.
78811
78812 2005-03-14  Simon Josefsson  <jas@extundo.com>
78813
78814         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78815         <fx@gnu.org>.
78816
78817 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78818
78819         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78820         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78821         intprops.h.
78822         * lib/strtol.c: Likewise.
78823
78824 2005-03-14  Jim Meyering  <jim@meyering.net>
78825
78826         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78827         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78828         to be nonzero so that we (and caller) can detect the difference
78829         between a valid zero-length expansion and an error return, even
78830         when the underlying strftime fails before writing anything into
78831         that location.
78832
78833 2005-03-14  Bruno Haible  <bruno@clisp.org>
78834
78835         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78836         Update from GNU gettext 0.14.3.
78837
78838 2005-03-10  Jim Meyering  <jim@meyering.net>
78839
78840         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78841
78842 2005-03-10  Jim Meyering  <jim@meyering.net>
78843
78844         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78845         so that this module works on systems without fchdir.
78846
78847 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78848
78849         Factor int-properties macros into a single file, except for
78850         glibc-related files.
78851         * lib/intprops.h: New file.
78852         * lib/getloadavg.c: Include it instead of limits.h.
78853         (INT_STRLEN_BOUND): Remove.
78854         * lib/human.c: Include intprops.h.
78855         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78856         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78857         302/1000.
78858         * lib/inttostr.h: Include intprops.h instead of limits.h.
78859         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78860         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78861         for consistency with intprops.h.
78862         (time_t_is_integer, twos_complement_arithmetic): Use them.
78863         * lib/sig2str.h: Include <signal.h>, intprops.h.
78864         (INT_STRLEN_BOUND): Remove.
78865         * lib/strftime.c (TYPE_SIGNED): Remove.
78866         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78867         * lib/strtol.c: Adjust comments to match intprops.h.
78868         * lib/userspec.c: Include intprops.h.
78869         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78870         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78871         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78872         instead of rolling our own expressions.
78873         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78874
78875         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78876         instead of int.
78877         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78878         the right thing even if adding 1900 would overflow.  Similarly
78879         for tm_mon + 1 and tm_yday + 1.
78880         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78881         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78882         (DO_SIGNED_NUMBER): New macro.
78883         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78884
78885 2005-03-07  Bruno Haible  <bruno@clisp.org>
78886
78887         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78888
78889 2005-03-07  Bruno Haible  <bruno@clisp.org>
78890
78891         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78892
78893 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78894
78895         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78896         (func_import): Only replace files via --import when they have actually
78897         changed.
78898
78899 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78900
78901         * m4/mmap-anon.m4: New file.
78902         * m4/pagealign_alloc.m4: New file.
78903
78904 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78905             Bruno Haible  <bruno@clisp.org>
78906
78907         * modules/pagealign_alloc: New file.
78908         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78909
78910 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78911             Bruno Haible  <bruno@clisp.org>
78912
78913         * lib/pagealign_alloc.h: New file.
78914         * lib/pagealign_alloc.c: New file.
78915
78916 2005-03-03  Bruno Haible  <bruno@clisp.org>
78917
78918         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78919         Use an all-permissive copyright notice, recommended by RMS.
78920
78921 2005-03-02  Bruno Haible  <bruno@clisp.org>
78922
78923         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78924         of AIX, the replacement has to be done only after <string.h> is
78925         included, therefore not in config.h. stpncpy.h does the replacement,
78926         and stpncpy.c uses it.
78927
78928 2005-03-02  Bruno Haible  <bruno@clisp.org>
78929
78930         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78931         stpncpy.c uses it.
78932
78933 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78934
78935         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78936         The workaround isn't strictly needed for POSIX conformance, and
78937         it's too much of a pain to configure and maintain.  We'll ask
78938         people to fix their kernels instead.
78939         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78940         (NANOSLEEP_BUG_WORKAROUND): Remove.
78941         (xnanosleep): Remove the workaround.
78942
78943 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78944
78945         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78946         Reported by Derek Price.
78947         (Include): Add "timespec.h".
78948
78949         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78950
78951 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78952
78953         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78954         to detect nanosleep bug.
78955
78956 2005-03-01  Bruno Haible  <bruno@clisp.org>
78957
78958         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78959
78960 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78961
78962         * modules/gethrxtime: New file.
78963         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78964         (Depends-on): Add gethrxtime.
78965         (configure.ac): Add gl_XNANOSLEEP.
78966         (Makefile.am): Remove lib_SOURCES line.
78967
78968 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78969
78970         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78971         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78972
78973 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78974
78975         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78976         * lib/timespec.h (gettime): Return void, since it always
78977         succeeds now.  All uses changed.
78978         * lib/gettime.c (gettime): Likewise.
78979         [HAVE_NANOTIME]: Prefer nanotime.
78980         Assume gettimeofday succeeds, as POSIX requires.
78981         Assime time () succeeds, since other code already does.
78982         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78983         (timespec_subtract): Remove.
78984         (NANOSLEEP_BUG_WORKAROUND): New constant.
78985         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78986         things considerably.  Use it only on GNU/Linux hosts, since the
78987         workaround shouldn't be needed elsewhere.
78988
78989 2005-02-24  Bruno Haible  <bruno@clisp.org>
78990
78991         * modules/gettext (Files): Add m4/glibc2.m4.
78992
78993 2005-02-24  Bruno Haible  <bruno@clisp.org>
78994
78995         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78996         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78997         * m4/progtest.m4:
78998         Update from GNU gettext 0.14.2.
78999         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79000
79001 2005-02-24  Bruno Haible  <bruno@clisp.org>
79002
79003         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79004         * lib/config.charset: Update from GNU gettext 0.14.2.
79005
79006 2005-02-24  Bruno Haible  <bruno@clisp.org>
79007
79008         * lib/gettext.h: Update from GNU gettext 0.14.2.
79009
79010 2005-02-23  Simon Josefsson  <jas@extundo.com>
79011
79012         * m4/iconvme.m4: New file.
79013
79014 2005-02-23  Jim Meyering  <jim@meyering.net>
79015
79016         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79017         change.
79018         Thanks to Bruno Haible for catching it.
79019
79020 2005-02-22  Simon Josefsson  <jas@extundo.com>
79021
79022         * modules/iconvme: New file.
79023
79024         * MODULES.html.sh: Add iconvme.
79025
79026 2005-02-22  Simon Josefsson  <jas@extundo.com>
79027
79028         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79029
79030 2005-02-22  Simon Josefsson  <jas@extundo.com>
79031
79032         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79033
79034 2005-02-22  Jim Meyering  <jim@meyering.net>
79035
79036         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79037         s/ifndef/ifdef/.
79038
79039 2005-02-20  Neil Conway  <neilc@samurai.com>
79040
79041         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79042         returned by OSX/Darwin if the specified buffer is not large
79043         enough for the hostname.
79044
79045 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79046
79047         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79048         pass it to _help, otherwise the latter coredumps trying to
79049         dereference state.root_argp.
79050
79051 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * modules/chdir-long (Depends-on): Add memrchr.
79054         * modules/memrchr (Files): Add lib/memrchr.h.
79055         (Include): "memrchr.h".
79056
79057 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79058
79059         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79060
79061 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79062
79063         * lib/memrchr.h: New file.
79064         * lib/chdir-long.c: Include it.
79065         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79066         Don't bother including stddef.h.
79067
79068 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79069
79070         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79071         inclusion.
79072         Include <sys/types.h>, for dev_t.
79073         (ME_DUMMY, ME_REMOTE): Move from here....
79074         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79075         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79076         Dmitry V. Levin.
79077         Include mountlist.h first, to test the interface.
79078
79079 2005-01-29  Bruno Haible  <bruno@clisp.org>
79080
79081         * lib/progname.c (program_name): Initialize.
79082         Needed when linking statically on MacOS X.
79083
79084 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79085
79086         Sync from coreutils.
79087         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79088         (Depends-on): Add c-strtod.
79089         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79090
79091 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79092
79093         Sync from coreutils.
79094         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79095
79096         Remove files that are specific to coreutils.
79097         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79098
79099 2005-01-28  Bruno Haible  <bruno@clisp.org>
79100
79101         * modules/javacomp: New file.
79102         * MODULES.html.sh (Java): Add javacomp.
79103
79104 2005-01-28  Bruno Haible  <bruno@clisp.org>
79105
79106         * m4/javacomp.m4: New file, from GNU gettext.
79107
79108 2005-01-28  Bruno Haible  <bruno@clisp.org>
79109
79110         * lib/javacomp.sh.in: New file, from GNU gettext.
79111         * lib/javacomp.h: New file, from GNU gettext.
79112         * lib/javacomp.c: New file, from GNU gettext.
79113
79114 2005-01-26  Simon Josefsson  <jas@extundo.com>
79115
79116         * lib/gai_strerror.c: Use GPL in header.
79117
79118 2005-01-26  Bruno Haible  <bruno@clisp.org>
79119
79120         * modules/javaexec: New file.
79121         * MODULES.html.sh (Java): Add javaexec.
79122
79123 2005-01-26  Bruno Haible  <bruno@clisp.org>
79124
79125         * m4/javaexec.m4: New file, from GNU gettext.
79126
79127 2005-01-26  Bruno Haible  <bruno@clisp.org>
79128
79129         * lib/javaexec.sh.in: New file, from GNU gettext.
79130         * lib/javaexec.h: New file, from GNU gettext.
79131         * lib/javaexec.c: New file, from GNU gettext.
79132
79133 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79134
79135         * modules/lchown (Depends-on): Remove lchown.h
79136
79137 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79138
79139         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79140         must be defined if the header file was not found, in order
79141         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79142
79143 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79144
79145         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79146         initializers for struct pentry_state.
79147         (__argp_error): Check return value of __asprintf
79148         (__argp_failure): Translate error message
79149
79150         * lib/argp-parse.c: Removed braces around the expansion of N_()
79151
79152 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79153
79154         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79155         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79156         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79157         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79158         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79159         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79160         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79161         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79162         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79163         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79164         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79165         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79166         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79167         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79168         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79169         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79170         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79171         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79172         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79173         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79174         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79175         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79176         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79177         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79178         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79179         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79180         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79181         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79182         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79183         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79184         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79185         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79186         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79187         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79188         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79189         Use an all-permissive copyright notice, recommended by RMS.
79190
79191 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79192
79193         * modules/chdir-long (Depends-on): Remove mempcpy.
79194
79195 2005-01-21  Jim Meyering  <jim@meyering.net>
79196
79197         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79198         same value as for Solaris 9.
79199
79200         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79201         component length.  This included changing the parameter to be
79202         of type `char *' rather than `char const *'.
79203         * lib/chdir-long.h (chdir_long): Update prototype.
79204
79205         * lib/openat.c (fdopendir, fstatat): New functions.
79206         * lib/openat.h: Include headers required for use of DIR and struct
79207         stat.
79208         [AT_SYMLINK_NOFOLLOW]: Define.
79209         (fdopendir, fstatat): Add prototypes.
79210
79211 2005-01-21  Bruno Haible  <bruno@clisp.org>
79212
79213         * modules/classpath: New file.
79214         * MODULES.html.sh (Java): Add classpath.
79215
79216 2005-01-21  Bruno Haible  <bruno@clisp.org>
79217
79218         * lib/classpath.h: New file, from GNU gettext.
79219         * lib/classpath.c: New file, from GNU gettext.
79220
79221 2005-01-20  Simon Josefsson  <jas@extundo.com>
79222
79223         * modules/version-etc-fsf: New file.
79224
79225 2005-01-20  Simon Josefsson  <jas@extundo.com>
79226
79227         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79228         * lib/version-etc.c: Remove version_etc_copyright.
79229         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79230         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79231
79232 2005-01-20  Simon Josefsson  <jas@extundo.com>
79233
79234         * lib/base64.h (isbase64): Add.
79235
79236         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79237         using a unsigned prototype, don't inline.
79238         (base64_decode): Use it.
79239
79240 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79241
79242         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79243         it.
79244
79245 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * lib/save-cwd.c (save_cwd): Remove code to support the case
79248         where fchdir is missing or flaky.
79249
79250 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79253
79254 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79255
79256         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79257         AC_LIBSOURCES now does this.
79258         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79259         with new ullong_max module.
79260
79261 2005-01-19  Bruno Haible  <bruno@clisp.org>
79262
79263         * modules/sh-quote: New file.
79264         * MODULES.html.sh (Executing programs): Add sh-quote.
79265
79266 2005-01-19  Bruno Haible  <bruno@clisp.org>
79267
79268         * lib/sh-quote.h: New file, from GNU gettext.
79269         * lib/sh-quote.c: New file, from GNU gettext.
79270
79271 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79272
79273         Merge from coreutils.
79274         * m4/ullong_max.m4: New file.
79275         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79276         (gl_MACROS): Assume localeconv exists.
79277
79278 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         Merge changes from coreutils, as described below in several
79281         changelogs dated today.
79282
79283         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79284         (O_DIRECTORY): Remove; not needed here, since "." must be
79285         a directory.  All uses removed.
79286         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79287         universal on Suns, and we also need to test for IRIX.
79288         Revamp code to use 'if' rather than '#if'.
79289         Avoid unnecessary comparison of cwd->desc to 0.
79290
79291         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79292         for known valid error numbers rather than observed invalid ones.
79293
79294 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         * modules/ullong_max: New file.
79297
79298         * modules/chdir-long, modules/openat: New files.
79299         * modules/save-cwd (Depends-on): Depend on chdir-long.
79300         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79301
79302 2005-01-18  Jim Meyering  <jim@meyering.net>
79303
79304         Merge from coreutils.
79305         * m4/chdir-long.m4, m4/openat.m4: New files.
79306         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79307         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79308         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79309         is sane and DOES follow symlinks.  Besides, testing 20 different
79310         systems found no broken chown implementations.
79311         Prompted by a change in rsync's copy of this macro.
79312         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79313
79314         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79315
79316         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79317         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79318         NULL-means-set-to-current-time semantics.
79319         Remove temporary file immediately, rather than waiting
79320         for configure's at-exit trap code to do it.
79321
79322 2005-01-18  Jim Meyering  <jim@meyering.net>
79323
79324         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79325
79326         * lib/utimens.c (futimens): Account for the fact that futimes
79327         can also fail with errno == ENOSYS or errno == ENOENT.
79328         Patch from Dmitry V. Levin.
79329
79330         Change the name of the robust chdir function from chdir to chdir_long.
79331         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79332         (restore_cwd): Use chdir_long, not chdir.
79333         * lib/chdir-long.c: Renamed from chdir.c.
79334         * lib/chdir-long.h: Renamed from chdir.h.
79335         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79336         Hurd.
79337
79338 2005-01-18  Bruno Haible  <bruno@clisp.org>
79339
79340         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79341         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79342         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79343         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79344         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79345         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79346         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79347         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79348         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79349         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79350         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79351         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79352         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79353         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79354         Use an all-permissive copyright notice, recommended by RMS.
79355
79356 2005-01-18  Bob Proulx  <bob@proulx.com>
79357
79358         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79359         simplify offsetof() macro construct to avoid compile failure with
79360         native HP-UX 11.0 ANSI C compiler.
79361
79362 2005-01-17  Bruno Haible  <bruno@clisp.org>
79363
79364         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79365         redundant because stpncpy.m4 takes care of it.
79366
79367 2005-01-17  Bruno Haible  <bruno@clisp.org>
79368
79369         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79370
79371 2005-01-17  Bruno Haible  <bruno@clisp.org>
79372
79373         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79374         used.
79375
79376 2005-01-17  Bruno Haible  <bruno@clisp.org>
79377
79378         * lib/fwriteerror.h (fwriteerror): Change specification to include
79379         fclose.
79380         * lib/fwriteerror.c: Include <stdbool.h>.
79381         (fwriteerror): At the end, close the file stream. Record whether
79382         stdout was already closed.
79383
79384 2005-01-17  Bruno Haible  <bruno@clisp.org>
79385
79386         * lib/execute.c (environ): Declare if needed.
79387         * lib/pipe.c (environ): Likewise.
79388         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79389
79390 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79391
79392         * modules/argp: Depend on vsnprintf
79393
79394 2005-01-10  Jim Meyering  <jim@meyering.net>
79395
79396         * modules/closeout (Depends-on): Add atexit.
79397
79398 2005-01-06  Bruno Haible  <bruno@clisp.org>
79399
79400         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79401
79402 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79403
79404         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79405         definitions to be after all include files, to avoid collisions.
79406         Problem reported by Bob Proulx.
79407
79408 2005-01-04  Jim Meyering  <jim@meyering.net>
79409
79410         Changes imported from coreutils.
79411         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79412         as the mkstemp template, use a temporary directory and an
79413         8.3-friendly template to avoid trouble on systems like DJGPP.
79414         Reported by Juan M. Guerrero via Stepan Kasal.
79415         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79416         close. Remove the temporary directory right away, rather than waiting
79417         for configure's at-exit trap code to do it.
79418         Suggestion from Stepan Kasal.
79419
79420 2005-01-01  Simon Josefsson  <jas@extundo.com>
79421
79422         * gnulib-tool: Print #include directives when --import'ing.
79423
79424 2004-12-28  Simon Josefsson  <jas@extundo.com>
79425
79426         * tests/test-base64.c: Include required header files.  Remove
79427         unused variables.
79428
79429 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79430
79431         * modules/error (Depends-on): Remove gettext.
79432
79433 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79434
79435         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79436         not needed.  This removes a dependency on the gettext module.
79437         [defined _LIBC]: Do not include <libintl.h>; not needed.
79438
79439 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79440
79441         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79442         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79443
79444 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79445
79446         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79447         HAVE_DECL_STRTOLD.
79448
79449 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79450
79451         * modules/getdate (Depends-on): Remove alloca-opt.
79452
79453 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79456
79457 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79458
79459         * lib/argp-parse.c: Include <stddef.h>.
79460         (alignof, alignto): New macros.
79461         (parser_init): Don't assume that void * is aligned sufficiently
79462         for struct option.
79463
79464         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79465         need to extend the stack.
79466         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79467         large.
79468
79469 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79470
79471         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79472
79473 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79474
79475         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79476         (2004-10-24) change.  Apparently this was a false alarm.
79477
79478         * modules/getdate: Depend on alloca-opt, not alloca.
79479
79480 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79483         Remove now-obsolete comment about AIX.
79484         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79485         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79486         (YYMAXDEPTH): New macro.
79487
79488 2004-12-18  Simon Josefsson  <jas@extundo.com>
79489
79490         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79491
79492 2004-12-18  Bruno Haible  <bruno@clisp.org>
79493
79494         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79495
79496 2004-12-18  Bruno Haible  <bruno@clisp.org>
79497
79498         * lib/fatal-signal.c (fatal_signals): Make non-const.
79499         (init_fatal_signals): New function.
79500         (uninstall_handlers, install_handlers): Ignore signals that were set to
79501         SIG_IGN.
79502         (at_fatal_signal): Call init_fatal_signals.
79503         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79504         SIG_IGN.
79505         Reported by Paul Eggert.
79506
79507 2004-12-18  Bruno Haible  <bruno@clisp.org>
79508
79509         * doc/alloca.texi: New file.
79510         * doc/alloca-opt.texi: New file.
79511
79512 2004-12-17  Jim Meyering  <jim@meyering.net>
79513
79514         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79515         Otherwise, install-sh could exit with improper exit status when
79516         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79517
79518 2004-12-16  Simon Josefsson  <jas@extundo.com>
79519
79520         * tests/test-base64.c: Add license.
79521
79522 2004-12-15  Stepan Kasal  <address@hidden>
79523
79524         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79525
79526 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * modules/getcwd (Files): Add m4/d-ino.m4.
79529         Suggested by Mark D. Baushke.
79530
79531 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79532
79533         * lib/getdate.y (textint): New member "negative".
79534         (time_zone_hhmm): New function.
79535         Expect 14 shift-reduce conflicts, not 13.
79536         (o_colon_minutes): New rule.
79537         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79538         (yylex): Set the "negative" member of signed numbers.
79539
79540 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79541
79542         * doc/getdate.texi (Time of day items, Time zone items):
79543         Describe new formats +00:00, UTC+00:00.
79544
79545 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79548         spurious "-l"s.  Problem reported by Stepan Kasal.
79549
79550 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79551
79552         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79553         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79554
79555 2004-12-04  Simon Josefsson  <jas@extundo.com>
79556
79557         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79558         Vandoorselaere <yoann@prelude-ids.org>.
79559
79560 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         Changes imported from coreutils.
79563         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79564         exist.
79565         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79566
79567 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         Changes imported from coreutils.
79570         * lib/hard-locale.c: Assume <locale.h> exists.
79571         Include "strdup.h".
79572         (GLIBC_VERSION): New macro.
79573         (hard_locale): Assume setlocale exists.
79574         Rewrite to avoid #ifdef.
79575         Use strdup rather than malloc + strcpy.
79576         * lib/human.c: Assume <locale.h> exists.
79577         (human_readable): Assume localeconv exists.
79578
79579 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * modules/hard-locale (Depends-on): Add strdup.
79582
79583 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79584
79585         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79586         convert T2, not T.  (Imported from libc.)
79587
79588 2004-11-30  Simon Josefsson  <jas@extundo.com>
79589
79590         * modules/restrict (License): Change to LGPL.
79591
79592 2004-11-30  Simon Josefsson  <jas@extundo.com>
79593
79594         * m4/restrict.m4: Add copyright and copying conditions.
79595
79596 2004-11-30  Simon Josefsson  <jas@extundo.com>
79597
79598         * m4/base64.m4: New file.
79599
79600 2004-11-30  Simon Josefsson  <jas@extundo.com>
79601
79602         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79603         base64.
79604
79605         * tests/test-base64.c: New file.
79606
79607         * modules/base64: New file.
79608
79609 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79610
79611         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79612         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79613
79614         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79615
79616 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79617
79618         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79619         (__getcwd.c): Don't restore errno; glibc doesn't.
79620         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79621         first, falling back to our code only if its results look suspicious.
79622         Ensure that the resulting buffer is only as large as necessary.
79623
79624         * lib/readutmp.c: Include readutmp.h first.
79625         Include <errno.h>, since readutmp.h no longer does that.
79626         * lib/readutmp.h: Don't include <errno.h>,
79627         <sys/param.h>, <time.h>; not needed to establish interface.
79628         (errno): Remove decl.
79629         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79630         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79631         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79632
79633 2004-11-28  Simon Josefsson  <jas@extundo.com>
79634
79635         * lib/base64.h, base64.c: New file.
79636
79637 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79638
79639         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79640
79641 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79642
79643         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79644         (Depends-on): Remove pathmax, same.  Add mempcpy.
79645         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79646         (Makefile.am): Append getcwd.h to lib_SOURCES.
79647         (Include): Add getcwd.h.
79648         (Maintainer): Change from Jim Meyering to "all, glibc",
79649         since getdate now uses intended-for-glibc code.
79650         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79651         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79652
79653 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79656         HP's ANSI C compiler.
79657         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79658         Declaring int functions causes warnings on some modern systems and
79659         shouldn't be needed to compile on ancient ones.
79660         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79661         defined.
79662
79663         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79664         with the following changes.
79665         (__set_errno): Parenthesize properly.
79666         Include <stdbool.h>.
79667         (MIN, MAX, MATCHING_INO): New macros.
79668         (__getcwd): Define with prototype, not K&R form.
79669         Use heuristics to allocate default buffer on stack if possible.
79670         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79671         behavior, and to avoid the PATH_MAX limit when computing
79672         ../../../../...
79673         Use MATCHING_INO to compare inode number to file.
79674         Check for arithmetic overflow in size calculations.
79675         Fix bug in reallocation of dot array that caused getcwd to fail
79676         on directories nested deeper than 75.
79677         Be more careful about saving errno on error.
79678         Do not use realloc; use only free+malloc, as this is a bit
79679         more flexible and avoids a needless copy operation.
79680         Do not inspect st_dev and st_ino for symbolic links; POSIX
79681         doesn't specify the latter.
79682         Check for closedir errors.
79683         Avoid needless casts.
79684         Use "#ifdef weak_alias" around weak_alias, to be like other
79685         glibc code.
79686         The following changes to getcwd.c have effect only when used in
79687         gnulib; they have no effect inside glibc proper.
79688         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79689         as alloca isn't used.
79690         (alloca, __alloca): Likewise.
79691         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79692         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79693         unconditionally, as gnulib assumes C89 or better.
79694         Do not include <sys/param.h>.
79695         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79696         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79697         better.
79698         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79699         Include <dirent.h> in a way that is compatible with modern Autoconf.
79700         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79701         New macros, if not already defined.
79702         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79703         Use "_LIBC", not "defined _LIBC", for consistency.
79704         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79705         a mempcpy module.
79706         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79707         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79708         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79709         credit only to Jim Meyering and adjust the copyright dates.
79710         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79711         <stdlib.h>, <unistd.h>, "pathmax.h".
79712         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79713         (INITIAL_BUFFER_SIZE): Remove.
79714         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79715
79716 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79719         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79720         Use the _ONCE methods, for efficiency.
79721         Check for fcntl.h.  In test program, include <errno.h>
79722         and <fcntl.h> if available.  Remove old K&R cruft from
79723         test program.  Check for common errors in GNU/Linux,
79724         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79725         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79726         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79727         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79728         name accordingly.
79729         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79730         accommodate new getcwd.c.
79731         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79732         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79733         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79734         that's all we need now.
79735
79736 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79737
79738         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79739         argp-parse.c depends on getopt internals, that means we should
79740         always use our getopt, to be on the safe side.
79741         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79742         order not to spoil the result of an eventual previous invocation
79743         of gl_GETOPT_SUBSTITUTE.
79744
79745 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79746
79747         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79748         redefinition warnings. To avoid them, include the defines
79749         in `#if !defined __need_getopt ... #endif'. The only place
79750         where __getopt_argv_const is used is in definitions
79751         of getopt_long and getopt_long_only below, which are as well
79752         protected by `#ifndef __need_getopt'.
79753         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79754         __need_getopt after including <stdio.h> and <unistd.h> These
79755         headers might have defined it.
79756
79757 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79758
79759         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79760
79761 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79762
79763         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79764         (futimens): New function, which uses futimes if available.
79765         (futimens, utimens): Support timespec==NULL, with same semantics
79766         as utime and utimens.
79767         * lib/utimens.h (futimens): New decl.
79768
79769 2004-11-23  Jim Meyering  <jim@meyering.net>
79770
79771         * lib/getopt_.h: Remove trailing blanks.
79772
79773 2004-11-23  Jim Meyering  <jim@meyering.net>
79774
79775         * lib/__fpending.c: Add comment.
79776
79777 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79778
79779         * modules/canonicalize (Depends-on): Add xreadlink.
79780         Problem reported by James Youngman.
79781
79782 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79783
79784         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79785         New macros.
79786         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79787         optopt): Use them instead of invoking ## directly; otherwise, the
79788         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79789
79790 2004-11-19  Bruno Haible  <bruno@clisp.org>
79791
79792         * lib/strtok_r.c: Move comments from here...
79793         * lib/strtok_r.h: ... to here.
79794
79795 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79798         implementations that mishandle size_t overflow.
79799
79800 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79801
79802         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79803         might fail.  Problem reported by Yoann Vandoorselaere.
79804         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79805         implementations that mishandle size_t overflow.
79806
79807 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79808
79809         * modules/canon-host (Depends-on): Add strdup.
79810
79811 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79812
79813         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79814
79815 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79816
79817         * lib/canon-host.c: Include "strdup.h".
79818         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79819         Use strdup instead of malloc/strcpy to duplicate strings.
79820
79821         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79822         (human_space_before_unit): New constant.
79823         * lib/human.c (human_readable): Support it.
79824
79825         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79826         (xgetcwd): Set errno correctly when failing.
79827         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79828         the failure is actually due to a PATH_MAX problem.
79829
79830         Further getopt changes to make it more likely that glibc will
79831         buy the changes back.
79832         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79833         (getopt): Use it, so to preserve glibc semantic
79834         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79835         when compiling for libc.
79836         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79837         (getopt_long, getopt_long_only): Use it.
79838
79839         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79840         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79841         (getopt): Argv is now char * const *, as per standard.
79842         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79843         not char *__getopt_argv_const *.
79844         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79845         _getopt_long_only_r): Likewise.
79846         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79847         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79848         _getopt_long_r, _getopt_long_only_r): Likewise.
79849         * lib/getopt_.h (__getopt_argv_const): Remove.
79850         (getopt): Argv is now char * const *, as per standard.
79851
79852         * lib/getdate.y (tORDINAL): New token.
79853         (day, relunit): Allow it for relative times.
79854         (relative_time_table): Use tORDINAL for ordinals.
79855
79856 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79857
79858         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79859         Document that "second" isn't allowed as an ordinal number.
79860
79861 2004-11-16  Jim Meyering  <jim@meyering.net>
79862
79863         * modules/closeout (Depends-on): Add fpending.
79864
79865 2004-11-15  Jim Meyering  <jim@meyering.net>
79866
79867         * lib/closeout.c: Include "__fpending.h" once again.
79868         Include <stdbool.h>.
79869         (close_stdout): Don't fail just because stdout was closed initially,
79870         since some programs don't write to stdout in the normal course of
79871         operation (other than --version and --help), and we don't want this
79872         function to make e.g. `touch file >&-' fail.
79873         But do fail if it was closed and someone has tried to write to it.
79874         E.g., `printf foo >&-' must fail.
79875
79876 2004-11-13  Jim Meyering  <jim@meyering.net>
79877
79878         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79879
79880 2004-11-12  Simon Josefsson  <jas@extundo.com>
79881
79882         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79883         small doc fix is still pending.
79884
79885 2004-11-11  Simon Josefsson  <jas@extundo.com>
79886
79887         * modules/strtok_r: New file.
79888
79889         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79890         strtok_r.
79891
79892 2004-11-11  Simon Josefsson  <jas@extundo.com>
79893
79894         * m4/strtok_r.m4: New file.
79895
79896         * m4/getopt.m4: Replace opterr.
79897
79898 2004-11-11  Simon Josefsson  <jas@extundo.com>
79899
79900         * lib/strtok_r.h, strtok_r.c: New file.
79901
79902 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79903
79904         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79905         of replacing opterr, getopt, etc.  This should handle the
79906         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79907
79908 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79911         we can stop lying to compilers about the constness of argv when we
79912         are compiled outside glibc.
79913         (getopt, getopt_long, getopt_long_only): Use it.
79914         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79915         _getopt_internal, getopt): Likewise.
79916         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79917         _getopt_long_only_r): Likewise.
79918         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79919         _getopt_long_r, _getopt_long_only_r): Likewise.
79920
79921         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79922         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79923         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79924         the other external symbols.
79925         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79926         declaration, since the above renaming now works around collisions.
79927
79928 2004-11-11  Jim Meyering  <jim@meyering.net>
79929
79930         * lib/linebreak.c: Remove trailing blanks.
79931         * lib/alloca_.h: Likewise.
79932         * lib/acosl.c: Likewise.
79933         * lib/euidaccess.c: Likewise.
79934         * lib/allocsa.h: Likewise.
79935
79936 2004-11-10  Simon Josefsson  <jas@extundo.com>
79937
79938         * m4/getaddrinfo.m4: New file.
79939
79940 2004-11-10  Simon Josefsson  <jas@extundo.com>
79941
79942         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79943
79944 2004-11-10  Simon Josefsson  <jas@extundo.com>
79945
79946         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79947         getaddrinfo.
79948
79949         * modules/getaddrinfo: New file.
79950
79951 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79952
79953         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79954
79955 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79956
79957         * lib/mktime.c (SHR): New macro, which is a portable
79958         substitute for >> that should work even on Crays.
79959         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79960         Problem reported by Mark D. Baushke in
79961         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79962         * lib/getdate.y (SHR): Likewise.
79963         (tm_diff): Use it.
79964         * lib/strftime.c (SHR): Likewise.
79965         (tm_diff): Use it.
79966         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79967         quote_these_too, so that right shifts are well defined.  All uses
79968         changed.
79969
79970 2004-11-10  Jim Meyering  <jim@meyering.net>
79971
79972         Ensure that no close failure goes unreported.
79973         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79974         return early when it seems there's nothing to flush.
79975         Don't include __fpending.h.
79976
79977 2004-11-10  Jim Meyering  <jim@meyering.net>
79978
79979         * modules/closeout (Depends-on): Remove fpending.
79980
79981 2004-11-10  Jim Meyering  <jim@meyering.net>
79982
79983         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79984
79985 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79988         gl_FUNC_STRFTIME.
79989         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79990         and AC_REQUIRE when possible, to avoid duplicate checks.
79991         Check for <wchar.h>.
79992
79993 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79994
79995         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79996
79997 2004-11-09  Bruno Haible  <bruno@clisp.org>
79998
79999         * m4/sockpfaf.m4: New file.
80000
80001 2004-11-05  Bruno Haible  <bruno@clisp.org>
80002
80003         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80004         Reported by Mark D. Baushke <mdb@cvshome.org>.
80005
80006 2004-11-04  Bruno Haible  <bruno@clisp.org>
80007
80008         2004-09-11  Bruno Haible  <bruno@clisp.org>
80009                 * allocsa.valgrind: New file.
80010         2004-02-06  Bruno Haible  <bruno@clisp.org>
80011                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80012                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80013                 Reported by Christopher Seip <chris.seip@hp.com>.
80014
80015 2004-11-04  Bruno Haible  <bruno@clisp.org>
80016
80017         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80018         (Makefile.am): Distribute it.
80019
80020 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80021
80022         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80023         with errno == ERANGE if the buffer is too small.
80024         Problem reported by Mark D. Baushke.
80025
80026 2004-11-03  Albert Chin  <china@thewrittenword.com>
80027             Paul Eggert  <eggert@cs.ucla.edu>
80028
80029         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80030         equivalent, substitute $ac_type for equivalent type rather than
80031         blindly using uint32_t *always* which won't work if uint32_t is not
80032         available.  Define _UINT32_T to work around typedef of uint32_t if
80033         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80034         2.5.1.
80035
80036 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * m4/jm-macros.m4: Sync from coreutils.
80039         (gl_MACROS): Check for mbrlen, for pathchk.
80040         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80041
80042 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80043
80044         * lib/xreadlink.c (MAXSIZE): New macro.
80045         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80046         size does not exceed MAXSIZE.  Avoid cast.
80047         As suggested by Mark D. Baushke in
80048         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80049         if readlink fails with buffer size just under MAXSIZE, try again
80050         with MAXSIZE.
80051
80052 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80055
80056 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80057         and  Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80060         (get_date): Overparenthesize to avoid GCC warning.
80061
80062 2004-11-02  Bruno Haible  <bruno@clisp.org>
80063
80064         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80065         returns void.
80066
80067 2004-11-02  Bruno Haible  <bruno@clisp.org>
80068
80069         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80070         function returns void.
80071
80072 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80073
80074         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80075         fflush_unlocked, flockfile, funlockfile, funlockfile,
80076         fputs_unlocked, putc_unlocked.
80077
80078 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80079
80080         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80081         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80082         already declared.
80083
80084 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80085
80086         * modules/getdate (Files): Add doc/getdate.texi.
80087         (Depends-on): Add setenv, xalloc.
80088
80089 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         * lib/getdate.y: Add support for TZ="foo" within a date string.
80092         Fix some bugs near time_t boundaries.  Reject dates with
80093         out-of-range components, e.g., "Sept 31".
80094         Include <stdlib.h>, "setenv.h", "xalloc.h".
80095         (ISDIGIT_LOCALE): Remove; unused.
80096         Note that the TZ and time functions used here are not reentrant.
80097         (mktime_ok, get_tz): New functions.
80098         (TZBUFSIZE): New constant.
80099         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80100         This requires that we sometimes generate our own TZ="XXX..." setting.
80101
80102 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * doc/getdate.texi: New file, from coreutils with modifications for
80105         the new TZ parsing.
80106
80107 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80108
80109         * lib/mktime.c (not_equal_tm): Remove redundant check.
80110
80111 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80112
80113         * modules/regex (lib_SOURCES): Add regex.c.
80114         Reported by James Youngman in
80115         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80116
80117 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * lib/getdate.y: Use Bison 1.875 features, and some minor
80120         code cleanups.  This change does not affect semantics.
80121         Don't include <stdlib.h>; no longer needed.
80122         Don't include unlocked-io.h; only the "#if TEST" code uses
80123         stdio, and performance isn't crucial there.
80124         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80125         Bison 1.875 features as described below.
80126         All uses of "PC." replaced by "pc->".
80127         (YYSTYPE): Add a forward declaration.
80128         (yylex, yyerror): Use full prototypes in forward decls.
80129         Use "%pure-parser" rather than obsolescent "%pure_parser".
80130         Use %parse-param and %lex-param instead of obsolescent
80131         YYPARSE_PARAM and YYLEX_PARAM.
80132         (meridian_table, month_and_day_table, time_units_table,
80133         relative_time_table, time_zone_table, military_table,
80134         lookup_zone, lookup_word, get_date):
80135         Use NULL instead of 0 where appropriate.
80136         (to_hour): Avoid abort (), to avoid a dependency on
80137         stdlib.h.
80138         (yyerror, yylex): Now accepts parser_control * arg.
80139         (main) [TEST]: Use '\0' rather than 0 for char.
80140
80141 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80142
80143         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80144
80145 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80146
80147         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80148         It's now the caller's responsibility to handle the case where
80149         !HAVE_GETPAGESIZE && !defined getpagesize.
80150
80151         * lib/mktime.c (leapyear): Arg is long int, not int.
80152
80153 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80154
80155         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80156
80157 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80158
80159         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80160         missing.  Problem reported by James Youngman.
80161
80162 2004-10-16  Simon Josefsson  <jas@extundo.com>
80163
80164         * gnulib-tool: Fix comments.  Fix parse problem.
80165         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80166
80167 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80168
80169         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80170         implementation of getopt_long.  Problem reported by Alexander Taler in:
80171         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80172
80173 2004-10-15  Bruno Haible  <bruno@clisp.org>
80174
80175         * gnulib-tool: Untabify. Initialize supplied_libname.
80176         (func_usage): More homogenous output.
80177         (func_modules_transitive_closure, func_modules_to_filelist,
80178         func_emit_lib_Makefile_am): New functions.
80179         (func_import): New function, extracted from big case statement. Use
80180         func_get_license, func_modules_transitive_closure,
80181         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80182         opt_lgpl. Don't use test -a, as it's not portable.
80183         (func_create_testdir): Use func_modules_transitive_closure,
80184         func_modules_to_filelist, func_emit_lib_Makefile_am.
80185
80186 2004-10-15  Bruno Haible  <bruno@clisp.org>
80187
80188         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80189
80190 2004-10-15  Bruno Haible  <bruno@clisp.org>
80191
80192         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80193         the portions belonging to each module.
80194         Suggested by Derek Robert Price <derek@ximbiot.com>.
80195
80196 2004-10-12  Simon Josefsson  <jas@extundo.com>
80197
80198         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80199         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80200         to real functions.
80201
80202 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80203
80204         * modules/vsnprintf: New file.
80205
80206 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80207
80208         * m4/vsnprintf.m4: New file.
80209
80210 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80211
80212         * lib/vsnprintf.h: New file.
80213         * lib/vsnprintf.c: New file.
80214
80215 2004-10-11  Bruno Haible  <bruno@clisp.org>
80216
80217         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80218         vsnprintf.
80219
80220 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80221
80222         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80223
80224 2004-10-07  Bruno Haible  <bruno@clisp.org>
80225
80226         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80227         fits into the provided buffer.
80228
80229 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80230
80231         * lib/diacrit.c, diacrit.h: Add GPL notice.
80232
80233         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80234         notice.
80235         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80236         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80237         This avoids a potential constant-folding bug.
80238
80239 2004-10-05  Bruno Haible  <bruno@clisp.org>
80240
80241         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80242         for the declaration of strsep.
80243
80244 2004-10-05  Bruno Haible  <bruno@clisp.org>
80245
80246         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80247
80248 2004-10-04  Simon Josefsson  <jas@extundo.com>
80249
80250         * modules/memmem: New file.
80251         * tests/test-memmem.c: New file.
80252         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80253
80254 2004-10-04  Simon Josefsson  <jas@extundo.com>
80255
80256         * m4/memmem.m4: New file.
80257
80258 2004-10-04  Simon Josefsson  <jas@extundo.com>
80259
80260         * lib/memmem.h: New file.
80261         * lib/memmem.c: New file, taken from glibc.
80262
80263 2004-10-04  Simon Josefsson  <jas@extundo.com>
80264
80265         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80266         '#ifdef USE_UNLOCKED_IO'.
80267
80268 2004-10-04  Simon Josefsson  <jas@extundo.com>
80269
80270         * config/srclist.txt: Add memmem from glibc.
80271
80272 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80275
80276         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80277         modules/exclude, modules/getdate, modules/getline,
80278         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80279         modules/getusershell, modules/linebuffer, modules/md5,
80280         modules/mountlist, modules/posixtm, modules/readtokens,
80281         modules/readutmp, modules/regex, modules/sha1,
80282         modules/version-etc, modules/yesno:
80283         Remove dependency on unlocked-io.
80284
80285 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80286
80287         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80288
80289         * m4/unlocked-io.m4: Add copyright notice.
80290         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80291
80292 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80293
80294         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80295         * lib/xmalloc.c (xmemdup): Likewise.
80296         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80297         XFREE): Remove these long-obsolescent macros.
80298         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80299         * lib/xstrdup.c: Remove.
80300
80301         * lib/regex.c (re_comp): Cast gettext return value to char *,
80302         Problem reported by Martin Neitzel via Mark D. Baushke.
80303
80304 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80305
80306         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80307         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80308         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80309         regex.c, sha1.c, version-etc.c, yesno.c:
80310         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80311         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80312         the includer's responsibility.
80313
80314         Sync from coreutils.
80315
80316         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80317         points to the start of a string, as the C Standard says the
80318         resulting behavior is undefined.
80319
80320         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80321         simple -> simple_backups, numbered_existing ->
80322         numbered_existing_backups, numbered -> numbered_backups
80323         to avoid shadowing problems.  All uses changed.
80324         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80325         * lib/backupfile.c (check_extension, numbered_backup):
80326         Rename locals to avoid shadowing 'basename'.
80327         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80328         once.
80329
80330         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80331         * lib/.cvsignore: Add getopt.h.
80332
80333 2004-10-04  Bruno Haible  <bruno@clisp.org>
80334
80335         * modules/README: New file.
80336         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80337         not a module.
80338
80339 2004-10-02  Jim Meyering  <jim@meyering.net>
80340
80341         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80342
80343 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80344
80345         * modules/strsep: New file.
80346
80347 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80348
80349         * m4/strsep.m4: New file.
80350
80351 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80352
80353         * lib/strsep.h: New file.
80354         * lib/strsep.c: New file.
80355
80356 2004-10-01  Simon Josefsson  <jas@extundo.com>
80357
80358         * lib/snprintf.c (snprintf): Handle size==0.
80359
80360 2004-10-01  Simon Josefsson  <jas@extundo.com>
80361             Bruno Haible  <bruno@clisp.org>
80362
80363         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80364         (snprintf): Declare 'args'.
80365
80366 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80367
80368         * lib/snprintf.c: Remove comments as to why each header is needed.
80369
80370 2004-10-01  Bruno Haible  <bruno@clisp.org>
80371
80372         * MODULES.html.sh: Add strsep.
80373
80374 2004-09-30  Simon Josefsson  <jas@extundo.com>
80375
80376         * modules/snprintf: New file.
80377
80378 2004-09-30  Simon Josefsson  <jas@extundo.com>
80379
80380         * m4/snprintf.m4: New file.
80381
80382 2004-09-30  Simon Josefsson  <jas@extundo.com>
80383
80384         * lib/snprintf.h, lib/snprintf.c: New files.
80385
80386 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80387
80388         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80389         (hol_entry_help): Never translate an empty string.
80390         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80391         * lib/argp.h (OPTION_NO_TRANS): New option.
80392
80393 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80394
80395         * modules/argp (Maintainer): Replace Simon Josefsson
80396         by Sergey Poznyakoff.
80397
80398 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80399
80400         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80401         changes merged back into glibc.
80402
80403 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80404
80405         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80406
80407 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80408
80409         * lib/xvasprintf.c: Include xalloc.h.
80410         (xvasprintf): Use xalloc_die, not xmalloc_die.
80411
80412 2004-09-29  Bruno Haible  <bruno@clisp.org>
80413
80414         * modules/alloca-opt: New file, derived from modules/alloca.
80415         * modules/allocsa: Depend on alloca-opt instead of alloca.
80416         * modules/setenv: Likewise.
80417         * modules/vasnprintf: Likewise.
80418         * MODULES.html.sh: Add alloca-opt.
80419
80420 2004-09-28  Simon Josefsson  <jas@extundo.com>
80421
80422         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80423         LGPL, and to replace license template from GPL to LGPL.
80424
80425 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80426
80427         * modules/dummy: Change license to LGPL.
80428
80429 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80430
80431         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80432
80433 2004-09-24  Simon Josefsson  <jas@extundo.com>
80434
80435         * modules/minmax (License): Change from GPL to LGPL.
80436
80437 2004-09-23  Simon Josefsson  <jas@extundo.com>
80438
80439         * gnulib-tool (--import): Typo.
80440
80441 2004-09-23  Simon Josefsson  <jas@extundo.com>
80442
80443         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80444
80445 2004-09-22  Bruno Haible  <bruno@clisp.org>
80446
80447         * modules/*: Add 'License' field.
80448         * gnulib-tool: Accept --extract-license option.
80449         (func_get_license): New function.
80450
80451 2004-09-21  Bruno Haible  <bruno@clisp.org>
80452
80453         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80454         Reported by Simon Josefsson.
80455
80456 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80457
80458         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80459         gl_AC_TYPE_LONG_LONG.
80460
80461 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80462
80463         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80464
80465 2004-09-18  Simon Josefsson  <jas@extundo.com>
80466         and  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80469         calls with autoreconf.  Define GL_LIB.
80470
80471 2004-09-14  Karl Berry  <karl@gnu.org>
80472
80473         * config/srclist.txt: unsync setenv.c, sigh.
80474
80475 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80476
80477         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80478         Problem reported by Bruno Haible in:
80479         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80480
80481 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80482
80483         * config/srclist.txt: Comment out argp-pvh.c.
80484
80485 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80486
80487         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80488         in case some system header has #define'd it.  Problem reported by
80489         Soeren D. Schulze in
80490         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80491
80492 2004-09-09  Karl Berry  <karl@gnu.org>
80493
80494         * regex.[ch]: delete from the root.  These were supposed to be
80495                 synced with emacs cvs, but this has not happened for about
80496                 a year, and anyway nothing else uses emacs regex.[ch].
80497                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80498                 lib/regex[.ch] is untouched.
80499
80500 2004-09-09  Bruno Haible  <bruno@clisp.org>
80501
80502         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80503
80504 2004-09-09  Bruno Haible  <bruno@clisp.org>
80505
80506         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80507         modifications.
80508         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80509
80510 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80511
80512         * modules/xvasprintf: New file.
80513         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80514
80515 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80516
80517         * lib/xvasprintf.h: New file.
80518         * lib/xvasprintf.c: New file.
80519         * lib/xasprintf.c: New file.
80520
80521 2004-09-08  Bruno Haible  <bruno@clisp.org>
80522
80523         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80524
80525 2004-09-08  Bruno Haible  <bruno@clisp.org>
80526
80527         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80528         length is > INT_MAX.
80529         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80530         more.
80531
80532 2004-09-08  Bruno Haible  <bruno@clisp.org>
80533
80534         * lib/stdint_.h: New file, taken from GNU clisp.
80535
80536 2004-09-08  Bruno Haible  <bruno@clisp.org>
80537             Oskar Liljeblad  <oskar@osk.mine.nu>
80538
80539         * modules/stdint: New file.
80540         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80541
80542 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80543
80544         Import from coreutils.
80545         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80546         strings on unbounded length.  alloca's performance benefits aren't
80547         that important here.
80548         (V_STRDUP): Remove.
80549         (parse_with_separator): New function, with most of the internals
80550         of the old parse_user_spec.  Allow user to omit both user and group,
80551         for compatibility with FreeBSD.
80552         Clone only the user name, not the entire spec.
80553         Do not set *uid, *gid unless entirely successful.
80554         Avoid memory leak in some failing cases.
80555         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80556         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80557         (parse_user_spec): Rewrite to use parse_with_separator.
80558
80559 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80560
80561         * modules/userspec: Don't depend on alloca.
80562
80563 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80564
80565         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80566
80567 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80568
80569         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80570         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80571         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80572
80573 2004-08-16  Simon Josefsson  <jas@extundo.com>
80574
80575         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80576         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80577         Add --dry-run for --import.
80578         Let user provided command line parameters override configure.ac
80579         settings.
80580
80581 2004-08-12  Simon Josefsson  <jas@extundo.com>
80582
80583         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80584         as discussed with Paul Eggert in threads rooted at
80585         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80586         and
80587         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80588         Before, the test was empty, and relied on ELIDE_CODE in source
80589         code.)
80590         (gl_PREREQ_GETOPT): New macro.
80591         (gl_GETOPT): Use them.
80592
80593 2004-08-12  Simon Josefsson  <jas@extundo.com>
80594
80595         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80596         * lib/getopt_.h: Renamed from getopt.h.
80597
80598 2004-08-12  Simon Josefsson  <jas@extundo.com>
80599
80600         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80601         Change default library name from libfoo to libgnu.
80602         Now, if you have a configure.ac that says:
80603                 gl_SOURCE_BASE(gl)
80604                 gl_M4_BASE(gl/m4)
80605                 gl_MODULES(error getopt etcetera)
80606                 gl_INIT
80607         you can import all you need by running:
80608                 ../gnulib/gnulib-tool --import
80609
80610         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80611         (Makefile.am): Rewrite, use logic from argz.
80612         (Include): Use <getopt.h> instead of "getopt.h".
80613
80614 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80615
80616         * modules/argp (Files): Add m4/unlocked-io.m4.
80617         (Depends-on): Add extensions.
80618
80619 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80620
80621         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80622         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80623         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80624         Check for program_invocation_name, program_invocation_short_name,
80625         flockfile, funlockfile, features.h, _getopt_long_only_r.
80626
80627 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80628
80629         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80630         its complicated substitute.
80631         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80632         and program_invocation_name.
80633         (__argp_basename) [!_LIBC]: Remove; the only use was
80634         replaced by its body.
80635         (__argp_short_program_name): Change condition from
80636         !defined __argp_short_program_name to
80637         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80638         to match argp-namefrob.h.
80639         (__argp_failure): Don't assume strerror_r returns char *.
80640         * lib/argp-parse.c (N_): Define unconditionally.
80641         (argp_default_options): Fill out initializers with 0 to avoid
80642         gcc warnings.
80643
80644 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80647         getopt1.c.
80648
80649 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80650
80651         Merge from coreutils.
80652
80653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80654
80655         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80656         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80657
80658 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         Merge from coreutils.
80661
80662         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80663         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80664         for Reliant Unix 5.43.
80665
80666         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80667         (union fooround): Use uintmax_t, not long int.
80668         The rest is a merge from libc:
80669         [defined _LIBC]: Include <shlib-compat.h>.
80670         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80671
80672         * lib/settime.c (settime): Recode to avoid warning with
80673         Sun Forte C 6U2.
80674
80675         * lib/strverscmp.c: Convert to UTF-8.
80676
80677 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80678
80679         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80680         m4/uintmax_t.m4.
80681
80682 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         * modules/xalloc-die: New file.
80685         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80686
80687         * modules/md5 (Files): Add m4/uint32_t.m4.
80688         * modules/sha1: Renamed from modules/sha.
80689         (Files):
80690         Rename lib/sha.h to lib/sha1.h.
80691         Rename lib/sha.c to lib/sha1.c.
80692         Rename m4/sha.m4 to m4/sha1.m4.
80693         (lib_SOURCES): Likewise.
80694         (configure.ac): Rename gl_SHA to gl_SHA1.
80695         (Include): sha.h -> sha1.h.
80696
80697 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80698
80699         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80700         * m4/sha1.m4: Renamed from sha.m4.
80701         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80702
80703 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         * lib/obstack.h (obstack_empty_p):
80706         Don't assume that chunk->contents is suitably aligned.
80707         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80708         Likewise. Problem reported by Benno in
80709         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80710
80711         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80712         readable.  This could be improved further but it'd take some work.
80713
80714 2004-08-08  Simon Josefsson  <jas@extundo.com>
80715
80716         * modules/xgethostname (Depends-on): Remove exit and error (not
80717         used).
80718
80719         * modules/getpass-gnu: Add getpass.h.
80720         (Depends-on): Add stdbool.
80721         * modules/getpass: Add getpass.h.
80722
80723 2004-08-08  Simon Josefsson  <jas@extundo.com>
80724
80725         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80726         Check getpass declaration.
80727
80728 2004-08-08  Simon Josefsson  <jas@extundo.com>
80729
80730         * lib/xgethostname.c: Don't include error.h (not used).
80731
80732         * lib/getpass.h: Add.
80733         * lib/getpass.c: Include getpass.h first.
80734
80735 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80736
80737         * lib/xalloc-die.c: New file.
80738         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80739         All uses removed.
80740         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80741         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80742         xalloc-die.c.
80743         (_, N_, xalloc_die): Move to xalloc-die.c.
80744         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80745         so that we needn't mess with xalloc_msg_memory_exhausted.
80746
80747         * lib/sha1.h: Renamed from sha.h.
80748         (SHA1_H): Renamed from _SHA_H.
80749         (sha1_ctx): Renamed from sha_ctx.
80750         (sha1_init_ctx): Renamed from sha_init_ctx.
80751         (sha1_process_block): Renamed from sha_process_block.
80752         (sha1_process_bytes): Renamed from sha_process_bytes.
80753         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80754         (sha1_read_ctx): Renamed from sha_read_ctx.
80755         (sha1_stream): Renamed from sha_stream.
80756         (sha1_buffer): Renamed from sha_buffer.
80757         * lib/sha1.c: Likewise; renamed from sha.c.
80758         Do not include <sys/types.h>.
80759         Include <stddef.h> rather than <stdlib.h>.
80760
80761 2004-08-08  Bruno Haible  <bruno@clisp.org>
80762
80763         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80764         FILESYSTEM_PREFIX_LEN.
80765         * lib/progreloc.c: Likewise.
80766         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80767
80768 2004-08-06  Simon Josefsson  <jas@extundo.com>
80769
80770         * modules/progname (Depends-on): Don't depend on stdbool.
80771
80772 2004-08-06  Simon Josefsson  <jas@extundo.com>
80773
80774         * modules/getsubopt: New file.
80775         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80776         getsubopt.
80777
80778 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80779
80780         More merge from coreutils.
80781
80782         * m4/utimens.m4, m4/utimecmp.m4: New files.
80783         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80784         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80785         prereq.m4, sha.m4: Import changes from coreutils.
80786
80787 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80788
80789         More merge from coreutils.
80790         * modules/raise, modules/readtokens0, modules/utimens:
80791         * modules/utimecmp, module/xnanosleep: New files.
80792         * modules/strftime: Add lib/strftime.h.
80793         Change include from <time.h> to "strftime.h".
80794         * modules/yesno: Add lib/yesno.h.
80795         * modules/backupfile: Remove lib/addext.c.
80796         * modules/euidaccess: Add stat-macros.h.
80797         * modules/canonicalize, modules/euidaccess,
80798         modules/filemode, modules/lchown, modules/makepath,
80799         modules/rmdir, modules/stat: Likewise.
80800
80801 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80802
80803         Merge from tar.
80804         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80805         SIZE_MAX is a valid preprocessor constant.
80806         (__argp_basename): Change from "#ifndef _LIBC"
80807         to "#ifndef __argp_short_program_name", so that
80808         we don't compile these functions for tar.
80809
80810         More merges from coreutils.
80811         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80812         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80813         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80814         * lib/addext.c: Remove; no longer needed.
80815         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80816         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80817         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80818         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80819         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80820         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80821         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80822         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80823         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80824         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80825         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80826         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80827         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80828         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80829         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80830         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80831         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80832         Import changes from coreutils.
80833
80834 2004-08-05  Simon Josefsson  <jas@extundo.com>
80835
80836         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80837
80838 2004-08-05  Simon Josefsson  <jas@extundo.com>
80839
80840         * m4/getsubopt.m4: New file.
80841
80842 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80843
80844         Merge from coreutils.
80845
80846         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80847         * m4/getcwd-path-max.m4: New files.
80848
80849         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80850         FILESYSTEM_PREFIX_LEN ->
80851         FILE_SYSTEM_PREFIX_LEN.
80852         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80853         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80854         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80855         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80856
80857         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80858         prerequisite modules now handle the DOS stuff.
80859         Don't check for unistd.h.
80860
80861 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80862
80863         Merge from coreutils.
80864
80865         * lib/.gdb-history: Remove; this doesn't belong here.
80866
80867         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80868         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80869         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80870         * lib/getcwd.c: New files.
80871
80872         * lib/dirname.h: Include <stdbool.h>.
80873         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80874         for consistency with POSIX terminology.  All uses changed.
80875         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80876         (strip_trailing_slashes): Use bool for booleans.
80877         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80878
80879         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80880         sometimes returns a positive errno value even when it succeeds.
80881         (print_errno_message) [!LIBC]: Fall back on strerror if
80882         __strerror_r fails.
80883
80884         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80885         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80886         (longest_relative_suffix): New function.
80887         (path_concat): Use it.  Assume first argument is not NULL.
80888         Port to DOS.  Omit redundant separators.
80889         Report an error instead of returning NULL.
80890         Use mempcpy instead of memcpy.
80891         (xpath_concat): Remove: not declared or used.
80892
80893         * lib/same.h: Include <stdbool.h>
80894         (same_name): Return bool, not int.
80895         * lib/same.c (same_name): Likewise.
80896         (errno): Don't declare; we assume C89 or better now.
80897
80898         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80899         if not already defined.
80900
80901         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80902         * lib/dup-safer.c (errno): Likewise.
80903
80904 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80905
80906         Merge from coreutils.
80907         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80908         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80909         * modules/path-concat: Don't depend on strdup.
80910
80911 2004-08-03  Simon Josefsson  <jas@extundo.com>
80912
80913         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80914         * lib/progname.h: Don't include stdbool.h.
80915
80916 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80917
80918         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80919         * MODULES.html.sh (func_all_modules): Remove fatal.
80920
80921 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80922
80923         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80924
80925 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80926
80927         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80928         working.
80929
80930 2004-08-02  Simon Josefsson  <jas@extundo.com>
80931
80932         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80933         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80934         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80935
80936 2004-08-01  Simon Josefsson  <jas@extundo.com>
80937
80938         * lib/xgetdomainname.c: Include stdlib.h, for free().
80939
80940 2004-07-19  Bruno Haible  <bruno@clisp.org>
80941
80942         * MODULES.html.sh (func_all_modules): Add dummy.
80943
80944 2004-07-16  Simon Josefsson  <jas@extundo.com>
80945
80946         * modules/dummy: New file.
80947
80948 2004-07-16  Simon Josefsson  <jas@extundo.com>
80949
80950         * lib/dummy.c: New file.
80951
80952 2004-07-16  Bruno Haible  <bruno@clisp.org>
80953
80954         * lib/backupfile.h: Add extern "C" for C++.
80955         * lib/closeout.h: Likewise.
80956         * lib/copy-file.h: Likewise.
80957         * lib/findprog.h: Likewise.
80958         * lib/full-write.h: Likewise.
80959         * lib/pathname.h: Likewise.
80960         * lib/progname.h: Likewise.
80961         * lib/stpcpy.h: Likewise.
80962         * lib/stpncpy.h: Likewise.
80963         * lib/strcase.h: Likewise.
80964         * lib/strstr.h: Likewise.
80965         * lib/xalloc.h: Likewise.
80966
80967         * lib/mbswidth.h: Add extern "C" for C++.
80968         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80969
80970 2004-07-13  Robert Millan  <robertmh@gnu.org>
80971
80972         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80973
80974 2004-07-09  Simon Josefsson  <jas@extundo.com>
80975
80976         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80977         failed without this.)
80978
80979 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80980
80981         * modules/chown (Files): Add lib/fchown-stub.c, since
80982         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80983
80984 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80985
80986         * lib/fchown-stub.c: New file.
80987
80988 2004-06-24  Jim Meyering  <jim@meyering.net>
80989
80990         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80991
80992 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         * modules/argz: Omit "#include".
80995
80996         * MODULES.html.sh (func_all_modules): Add calloc, to match
80997         2004-06-01 addition of calloc module.
80998
80999 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81000
81001         * m4/argz.m4: New file, which is autoupdated from libtool.
81002
81003 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81004
81005         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81006         libtool.
81007
81008 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81009
81010         * config/srclist-update: Don't insist on "USA." before the
81011         close-comment, as libtool omits the period and puts the */ on a
81012         separate line.
81013         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81014         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81015
81016 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81017
81018         * modules/argz: New file.
81019         * MODULES.html.sh (func_all_modules): Add argz.
81020
81021 2004-06-12  Jim Meyering  <jim@meyering.net>
81022         and  Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * modules/hash (Files): Add lib/xalloc.h.
81025         * modules/pipe (Depends-on): Add wait-process.
81026         * modules/stat (Depends-on): Add xalloc.
81027         * modules/userspec (Files): Add lib/userspec.h.
81028         * modules/xstrto
81029
81030         Upgrade from gettext-0.13.
81031         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81032         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81033         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81034
81035 2004-06-10  Jim Meyering  <jim@meyering.net>
81036
81037         * lib/calloc.c: New file.
81038
81039 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81040
81041         * lib/getdate.y (yylex): Allow space between sign and number.
81042         Problem reported by Dan Jacobson.
81043
81044 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81045
81046         Merge from coreutils CVS.
81047
81048         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81049         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81050         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81051         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81052         xstrtol.m4: Fix copyright date and/or serial number.
81053
81054         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81055         See if we need an fchown replacement.
81056         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81057         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81058         and use the replacement function if we detect either defect.
81059
81060         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81061         gl_UTIMECMP.
81062
81063 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81064         and  Jim Meyering  <jim@meyering.net>
81065
81066         Merge from coreutils CVS.
81067
81068         * lib/stat-macros.h: New file, with contents from file-type.h
81069         and coreutils' system.h.
81070         * lib/file-type.c: Include "stat-macros.h".
81071         * lib/file-type.h (file_type): Move all macro definitions to new file,
81072         stat-macros.h.
81073
81074         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81075         Wrap old code with this conditional.
81076         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81077         function that does not dereference symlinks.
81078         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81079
81080         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81081         dependency problems.
81082         (xreadlink): Accept new arg SIZE, for efficiency.
81083         All decls and uses changed.
81084         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81085
81086         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81087         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81088
81089         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81090         sysexits.h.
81091
81092 2004-06-01  Jim Meyering  <jim@meyering.net>
81093
81094         * m4/calloc.m4: New file.
81095
81096 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81097
81098         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81099         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81100         Also, fix a typo in a diagnostic.
81101
81102 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81103
81104         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81105         or AC_FUNC_REALLOC.
81106
81107 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81108
81109         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81110         macros to be defined.
81111         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81112         the allocator returns NULL because the requested size is zero.
81113
81114 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81115
81116         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81117         var.  Add comment explaining why libc still defines it.  This
81118         merges the following patch from glibc:
81119         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81120
81121 2004-05-20  Andreas Schwab  <schwab@suse.de>
81122
81123         * m4/free.m4: Replace free if it not known to work, not the other
81124         way round.
81125
81126 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81127
81128         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81129         present in glibc since revision 1.1 of this file.
81130         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81131         obstack_alignment_mask, obstack_alloc, obstack_base,
81132         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81133         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81134         obstack_grow0, obstack_init, obstack_int_grow,
81135         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81136         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81137         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81138         nonexistent functions.
81139
81140 2004-05-18  Karl Berry  <karl@gnu.org>
81141
81142         * config/srclist.txt: break link for vasnprintf.c.
81143
81144 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81145
81146         Port obstack to the AS/400, where pointers are 16 bytes wide and
81147         you cannot cast an integer to a valid pointer.  This patch is
81148         currently waiting to be integrated into glibc; see
81149         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81150
81151         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81152         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81153         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81154         (struct obstack): temp member is now a union of a pointer and
81155         an integer, instead of an integer.  All integer uses changed.
81156         This does not affect the physical layout of struct obstack,
81157         except on hosts (like the AS/400) where the size or alignment of
81158         void * is greater than that of ptrdiff_t.
81159         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81160         __STDC__)]: Store temporary in pointer member of union, not
81161         integer member.
81162         * lib/obstack.c: Include <stddef.h>, for offsetof.
81163         (struct fooalign): Remove; it doesn't need a name.
81164         (union fooround): Change double to long double, and add void *.
81165         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81166         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81167         not a macro.  Hence the values are always int; so remove all
81168         casts-to-int in uses.
81169
81170 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81171
81172         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81173         we can get this patch merged into glibc.
81174
81175 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81176             Paul Eggert  <eggert@cs.ucla.edu>
81177
81178         * m4/argp: Depend on alloca.
81179
81180 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81181             Paul Eggert  <eggert@cs.ucla.edu>
81182
81183         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81184         freecoding.
81185
81186 2004-05-17  Bruno Haible  <bruno@clisp.org>
81187
81188         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81189         precision that consists of a '.' followed by an empty digit string.
81190         Patch by Tor Lillqvist <tml@iki.fi>.
81191
81192 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81193
81194         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81195         for backward compatibility with older code.  We need our own
81196         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81197         it under some other name, and our alloca.h will define it.
81198
81199 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81200             Derek Price  <derek@ximbiot.com>
81201
81202         * lib/alloca.c: Include <alloca.h>, to get our interface.
81203         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81204         include <alloca.h> first.  Use C89 prototype for alloca; this
81205         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81206         Use #elif for simplicity, since we can assume C89 now.
81207         Don't try to source the system alloca.h since it will not be found
81208         and to prevent recursively including its replacement.
81209         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81210         * lib/regex.c: Likewise.
81211
81212 2004-05-16  Derek Price  <derek@ximbiot.com>
81213             Paul Eggert  <eggert@cs.ucla.edu>
81214
81215         getline cleanup.  This changes the getndelim2 API: both order of
81216         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81217         no delimiter).
81218
81219         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81220         interface does that.
81221         (getline): Always use getdelim, so that we don't have two
81222         copies of this code.
81223         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81224         if available.
81225         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81226         (GETNDELIM2_MAXIMUM): New macro.
81227         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81228         instead of the old practice of delim2==0.  All callers changed.
81229         Return -1 on overflow, instead of returning junk.
81230         Do not set *linesize unless allocation succeeds.
81231         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81232         that we include sys/types.h.
81233         * lib/getnline.h: Likewise.
81234         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81235         (getndelim2): Reorder arguments.
81236         * lib/getnline.c (getnline, getndelim):
81237         Don't discard the NMAX argument.
81238         (getnline): Invoke getndelim, to avoid code duplication.
81239         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81240         of (size_t) -1 by callers of the getnline family.
81241
81242 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81243
81244         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81245         Check for gettimeofday.
81246         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81247         Check for settimeofday, stime.
81248
81249 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81250
81251         * lib/nanosleep.c (suspended): Change its type from int to
81252         sig_atomic_t volatile.
81253         (first_call): Make it private to rpl_nanosleep, and have it
81254         be zero initially as that's a bit faster.
81255         (my_usleep): Round up fractional times instead of truncating them,
81256         as this is the usual meaning for 'sleep'.
81257
81258         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81259         doesn't work.
81260         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81261         (ENOSYS): Define if not defined.
81262         (settime): Fall back on stime if it exists and settimeofday fails.
81263         But don't bother with fallbacks if a method fails with errno == EPERM.
81264
81265 2004-05-11  Jim Meyering  <jim@meyering.net>
81266
81267         Prior to this change, the save_cwd caller required read access to the
81268         current directory on most systems (ones with the fchdir function).
81269
81270         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81271         fails, try write-only, and finally, resort to using xgetcwd.
81272
81273 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * lib/obstack.c, obstack.h: Import changes from libc.
81276
81277 2004-04-28  Bruno Haible  <bruno@clisp.org>
81278
81279         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81280         also implicitly appends .exe to executables.
81281         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81282         accepts Windows pathnames.
81283         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81284         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81285         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81286         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81287         Reported by Derek Robert Price <derek@ximbiot.com>.
81288
81289 2004-04-21  Karl Berry  <karl@gnu.org>
81290
81291         * config/srclist.txt (localcharset.c): break sync.
81292
81293 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81294
81295         * m4/host-os.m4: Add a copyright notice.
81296
81297 2004-04-20  Jim Meyering  <jim@meyering.net>
81298
81299         Change UTILS_ to gl_ in AC_DEFINE'd names.
81300         Change utils_- and jm_-prefixed variables, too.
81301         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81302         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81303         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81304
81305         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81306         Don't emit trailing blanks.
81307         Also rename jm_-prefixed variables to have gl_ prefix.
81308
81309         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81310         Also rename jm_-prefixed variables to have gl_ prefix.
81311
81312         * m4/jm-macros.m4: Reflect the renamings.
81313         * m4/prereq.m4: Likewise.
81314
81315 2004-04-20  Jim Meyering  <jim@meyering.net>
81316
81317         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81318         memory.
81319
81320 2004-04-20  Jim Meyering  <jim@meyering.net>
81321             Bruno Haible  <bruno@clisp.org>
81322
81323         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81324         memory when realloc fails.
81325
81326 2004-04-19  Jim Meyering  <jim@meyering.net>
81327
81328         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81329         now that readutmp.c may call `free (0)'.
81330
81331 2004-04-19  Bruno Haible  <bruno@clisp.org>
81332
81333         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81334         * m4/inttypes_h.m4: Likewise.
81335         * m4/stdint_h.m4: Likewise.
81336         * m4/intmax_t.m4: Likewise.
81337         * m4/uintmax_t.m4: Likewise.
81338
81339 2004-04-18  Jim Meyering  <jim@meyering.net>
81340
81341         * m4/prereq.m4: Don't forbid jm_ prefix.
81342
81343         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81344         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81345         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81346         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81347         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81348         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81349         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81350         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81351         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81352         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81353         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81354         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81355         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81356         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81357         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81358         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81359         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81360         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81361         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81362
81363 2004-04-18  Jim Meyering  <jim@meyering.net>
81364
81365         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81366         failure, don't leak memory and do call END_UTMP_ENT.
81367
81368 2004-04-16  Jim Meyering  <jim@meyering.net>
81369
81370         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81371         coreutils' stat program.
81372         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81373
81374 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81375
81376         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81377         C89.
81378         (CHAR_BIT): Remove, since we assume C89.
81379         Include <stdint.h> if available, as per current Autoconf CVS advice.
81380
81381 2004-03-31  Jim Meyering  <jim@meyering.net>
81382
81383         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81384         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81385         * m4/xalloc.m4: Likewise.
81386
81387 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81388
81389         Merge from coreutils.
81390
81391         * m4/inttostr.m4: New file.
81392         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81393         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81394         Require gl_CLOCK_TIME.
81395         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81396
81397 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81398
81399         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81400         not bool, to be more consistent with Unix conventions.
81401         Suggested by Bruno Haible.
81402
81403         Merge from coreutils.
81404
81405         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81406         * lib/umaxtostr.c: New files.
81407
81408         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81409         the usual <time.h> dance.
81410         (get_date): Change signature to support fractional time stamps.
81411         All callers changed.
81412         * lib/getdate.y: Include "getdate.h" first, as we can now
81413         assume C89 and don't need to worry about 'const'.
81414         Similarly, include "unlocked-io.h" near start, not in middle.
81415         Include <limits.h>.
81416         (textint.value): Use long int rather than int.
81417         (textint.digits): Use size_t rather than int.
81418         (BILLION, LOG10_BILLION): New constants.
81419         (parser_control): New member rel_ns.  Members day_ordinal,
81420         time_zone, month, day, hour, minutes, rel_year, rel_month,
81421         rel_day, rel_hour, rel_minutes, rel_seconds
81422         are now long int, not int.  Member seconds is now struct timespec,
81423         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81424         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81425         not int.
81426         (%union.intval): Now long int, not int.
81427         New member timespec.
81428         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81429         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81430         (spec): Now is a timespec or an item list.
81431         (timespec, items): New nonterminals.
81432         (time, rel, relunit, number, get_date):
81433         Add support for fractional seconds.
81434         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81435         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81436         (to_hour): First arg is now long int, not int.
81437         (to_year): Returns long int, not int.
81438         Don't treat year -70 like 70.
81439         (tm_diff): Returns long int, not int.
81440         (lookup_word): Use bool instead of int when appropriate.
81441         (yylex): Use size_t for count, not int.
81442         Detect overflow when parsing large integer constants.
81443         Add support for fractions.
81444         (get_date): Make pointers 'const' if possible.
81445         Use more-portable code to detect integer overflow.
81446         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81447         Don't use ctime; it's not reliable if the year has >4 digits.
81448
81449         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81450         This is for compatibility with BSD.
81451
81452         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81453         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81454         From coreutils' system.h.
81455
81456         * lib/userspec.c: Don't include "posixver.h".
81457         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81458         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81459         compatible extension.  Simplify code by removing a boolean int
81460         that was always nonzero if a string was nonnull.
81461
81462 2004-03-30  Jim Meyering  <jim@meyering.net>
81463
81464         Merge from coreutils.
81465
81466         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81467         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81468         on some systems one must include <grp.h> before it.
81469         Reported by Christian Krackowizer.
81470
81471 2004-03-30  Jim Meyering  <jim@meyering.net>
81472
81473         Merge from coreutils.
81474
81475         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81476
81477         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81478         an empty input stream.
81479
81480         * lib/readtokens.c: Include <stdbool.h>.
81481         (readtoken): Use `size_t' rather than int/long.
81482         All callers adjusted.
81483         Use `bool' rather than `int' where appropriate.
81484         Use memset rather than an explicit loop.
81485         Use x2nrealloc rather than xrealloc.
81486         Allow the use of `\0' as a delimiter.
81487         (readtokens): Likewise.
81488         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81489
81490 2004-03-30  Jim Meyering  <jim@meyering.net>
81491
81492         * m4/realloc.m4: Remove file, since now it does no more than
81493         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81494         the `configure.ac' section of module/realloc.
81495         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81496
81497 2004-03-30  Bruno Haible  <bruno@clisp.org>
81498
81499         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81500         nonnull.
81501
81502 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81503
81504         Merge changes to getloadavg.c from coreutils and Emacs.
81505
81506         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81507         Define to an expression, not to the empty string.
81508         Include cloexec.h and xalloc.h.
81509         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81510         Use set_cloexec_flag rather than rolling our own.
81511         * lib/cloexec.c, lib/cloexec.h: New files.
81512
81513 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81514
81515         * m4/cloexec.m4: New file.
81516
81517 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81518
81519         * lib/getopt.h: Sync with libc CVS.
81520
81521 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81522             Bruno Haible  <bruno@clisp.org>
81523
81524         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81525         mbswidth.
81526
81527 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81528             Bruno Haible  <bruno@clisp.org>
81529
81530         * lib/mbswidth.h: Include <wchar.h> only if
81531         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81532         <wchar.h>.
81533         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81534
81535 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81536
81537         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81538         Sync with libc CVS.
81539         * lib/getopt_int.h: New file, also synced from libc.
81540
81541 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81542
81543         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81544         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81545         Bring back getopt.c, getopt.h, getopt1.c.
81546
81547 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81548
81549         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81550         All uses changed.  Check for sa_sigaction member; this fixes
81551         a bug first reported by Jason Andrade in
81552         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81553
81554 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81555
81556         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81557         '#if' expressions.  Unlike the code it replaces, it does not
81558         depend on (defined _SC_PAGESIZE).  However, it does depend on
81559         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81560         first reported by Jason Andrade in
81561         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81562
81563 2004-02-25  Simon Josefsson  <jas@extundo.com>
81564
81565         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81566
81567 2004-02-25  Simon Josefsson  <jas@extundo.com>
81568
81569         * lib/strdup.h: New file.
81570         * lib/strdup.c: Include it.
81571         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81572         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81573
81574 2004-02-23  Karl Berry  <karl@gnu.org>
81575
81576         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81577         (from fencepost.gnu.org:/gd/gnuorg).
81578
81579 2004-02-23  Karl Berry  <karl@gnu.org>
81580
81581         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81582         * config/srclist.txt: add maintain/standards documents.
81583
81584 2004-02-18  Bruno Haible  <bruno@clisp.org>
81585
81586         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81587         Reported by Derek Robert Price <derek@ximbiot.com>.
81588
81589 2004-02-16  Karl Berry  <karl@gnu.org>
81590
81591         * config/mkinstalldirs, install-sh: update from automake.
81592
81593 2004-02-06  Karl Berry  <karl@gnu.org>
81594
81595         * m4/po.m4: update from gettext 0.14.1.
81596
81597 2004-02-06  Karl Berry  <karl@gnu.org>
81598
81599         * lib/config.charset: update from gettext 0.14.1.
81600
81601 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81602
81603         Add comments and code, prompted by suggestions from Bruno Haible
81604         for sh-quote.
81605         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81606         describing the enum quoting_style values.
81607         * lib/quotearg.c (quotearg_alloc): New function.
81608         (quotearg_buffer_restyled): Treat lone { and } as special.
81609         Treat = as special.  Work around bug with older shells
81610         that "see" a '\' that is really the 2nd byte of a multibyte char.
81611         Quote empty string with shell_quoting_style.
81612
81613 2004-02-03  Bruno Haible  <bruno@clisp.org>
81614
81615         * m4/pipe.m4: New file, from GNU gettext.
81616
81617 2004-02-03  Bruno Haible  <bruno@clisp.org>
81618
81619         * lib/pipe.h: New file, from GNU gettext.
81620         * lib/pipe.c: New file, from GNU gettext.
81621
81622 2004-01-27  Bruno Haible  <bruno@clisp.org>
81623
81624         * m4/execute.m4: New file, from GNU gettext.
81625
81626 2004-01-27  Bruno Haible  <bruno@clisp.org>
81627
81628         * lib/execute.h: New file, from GNU gettext.
81629         * lib/execute.c: New file, from GNU gettext.
81630         * lib/w32spawn.h: New file, from GNU gettext.
81631
81632 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81633
81634         Merge from diffutils.
81635
81636         * lib/file-type.c (file_type): Add typed memory objects.
81637         * lib/file-type.h (S_TYPEISTMO): New macro.
81638
81639         * lib/c-stack.h (c_stack_action): Remove argv argument.
81640         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81641         (die): Don't calculate message unless segv_action returns.
81642         (get_stack_location, min_address_from_argv, max_address_from_argv,
81643         volatile stack_base, volatile_stack_size): Remove.
81644         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81645         that every segmentation violation is a stack overflow.  (Ouch!)
81646         See Debian bug 136249 (still outstanding) for more info about why
81647         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81648
81649 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81650
81651         Exit-status fix from coreutils.
81652
81653         Use exit_failure consistently in place of EXIT_FAILURE,
81654         so that program exit statuses are consistent on failure.
81655
81656         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81657         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81658         * lib/argmatch.h: Comment fix to match the above.
81659         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81660         Now a macro referring to exit_failure, instead of a separate
81661         variable.  Include "exitfail.h" to get it.
81662         * lib/xstrtol.h: Include "exitfail.h".
81663         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81664
81665         * lib/long-options.c (parse_long_options): Use prototype
81666         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81667         for clarity.
81668
81669 2004-01-21  Jim Meyering  <jim@meyering.net>
81670
81671         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81672         so as not to conflict with a different-sized __mktime_internal
81673         function in GNU libc.
81674         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81675         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81676
81677 2004-01-20  Karl Berry  <karl@gnu.org>
81678
81679         * config/config.guess: update from config.
81680
81681         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81682
81683 2004-01-20  Bruno Haible  <bruno@clisp.org>
81684
81685         Safer stack allocation.
81686         * lib/setenv.c: Include allocsa.h.
81687         (alloca): Remove fallback definition.
81688         (freea): Remove macro.
81689         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81690         instead of freea.
81691
81692 2004-01-20  Bruno Haible  <bruno@clisp.org>
81693
81694         * m4/eealloc.m4: New file, from GNU gettext.
81695
81696 2004-01-20  Bruno Haible  <bruno@clisp.org>
81697
81698         * m4/allocsa.m4: New file, from GNU gettext.
81699
81700 2004-01-20  Bruno Haible  <bruno@clisp.org>
81701
81702         * lib/xallocsa.h: New file, from GNU gettext.
81703         * lib/xallocsa.c: New file, from GNU gettext.
81704
81705 2004-01-20  Bruno Haible  <bruno@clisp.org>
81706
81707         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81708
81709 2004-01-20  Bruno Haible  <bruno@clisp.org>
81710
81711         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81712         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81713         specially.
81714
81715 2004-01-20  Bruno Haible  <bruno@clisp.org>
81716
81717         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81718         patch.
81719
81720 2004-01-20  Bruno Haible  <bruno@clisp.org>
81721
81722         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81723
81724 2004-01-20  Bruno Haible  <bruno@clisp.org>
81725
81726         * lib/eealloc.h: New file.
81727
81728 2004-01-20  Bruno Haible  <bruno@clisp.org>
81729
81730         * lib/binary-io.h: Avoid warnings on Cygwin.
81731
81732 2004-01-20  Bruno Haible  <bruno@clisp.org>
81733
81734         * lib/allocsa.h: New file, from GNU gettext.
81735         * lib/allocsa.c: New file, from GNU gettext.
81736
81737 2004-01-18  Karl Berry  <karl@gnu.org>
81738
81739         * doc/gpl.texi, doc/lgpl.texi: new files.
81740
81741 2004-01-18  Karl Berry  <karl@gnu.org>
81742
81743         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81744         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81745
81746 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81747
81748         Merge from coreutils.
81749
81750         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81751         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81752         (gl_DEFAULT_POSIX2_VERSION): Move
81753         the documentation from 'configure' into 'config.hin',
81754         so that 'configure --help' isn't burdened by it and
81755         we don't have to worry about its formatting there.
81756         Reword the documentation so that it's more succinct
81757         and can be run together into a single paragraph.
81758         * m4/same.m4 (gl_SAME): Check for pathconf.
81759
81760 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81761
81762         Merge from coreutils.
81763
81764         * lib/posixver.c: Include posixver.h.
81765
81766         * lib/same.c: Include <stdbool.h>, <limits.h>.
81767         (_POSIX_NAME_MAX): Define if not defined.
81768         (MIN): New macro.
81769         (same_name): If file names are silently truncated, report
81770         that the file names are the same if they are the same after
81771         the silent truncation.
81772
81773         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81774         conversion function.
81775         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81776         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81777         longer needed.
81778
81779 2004-01-15  Jim Meyering  <jim@meyering.net>
81780
81781         Merge from coreutils.
81782
81783         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81784         if no library is required.
81785         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81786         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81787         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81788         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81789         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81790         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81791         value, $ac_cv_search_crypt, if it's "none required".
81792         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81793         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81794         not gl_FUNC_GETLOADAVG.
81795         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81796         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81797
81798 2004-01-15  Jim Meyering  <jim@meyering.net>
81799
81800         Merge from coreutils.
81801
81802         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81803         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81804         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81805
81806         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81807         optional configure-time default.
81808
81809         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81810
81811         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81812
81813 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81814
81815         Merge from coreutils.
81816
81817         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81818         value, $ac_cv_search_nanosleep, if it's "none required".
81819
81820 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81821
81822         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81823         with like-named macro in fnmatch.c.
81824         (EXT): Use an internal constant instead.
81825
81826         Merge fnmatch patches from glibc.
81827         * lib/fnmatch.c (mbsinit): Remove define.
81828         Add libc_hidden_ver (__fnmatch, fnmatch).
81829         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81830         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81831
81832 2004-01-14  Karl Berry  <karl@gnu.org>
81833
81834         * config/install-sh: update from automake.
81835
81836 2004-01-13  Karl Berry  <karl@gnu.org>
81837
81838         * config/install-sh: update from automake.
81839
81840 2004-01-09  Karl Berry  <karl@gnu.org>
81841
81842         * config/install-sh: update from automake.
81843
81844 2004-01-05  Karl Berry  <karl@gnu.org>
81845
81846         * config/config.{sub,guess}: update from config.
81847
81848 2003-12-31  Karl Berry  <karl@gnu.org>
81849
81850         * config/depcomp: update from automake.
81851
81852 2003-12-14  Karl Berry  <karl@gnu.org>
81853
81854         * lib/config.charset: update from gettext-runtime.
81855
81856 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81857
81858         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81859         Bug reported by Alfred M. Szmidt.
81860
81861 2003-12-03  Bruno Haible  <bruno@clisp.org>
81862
81863         * m4/gettext.m4: Upgrade from gettext-0.13.
81864         * m4/po.m4: Upgrade from gettext-0.13.
81865         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81866         * m4/intmax.m4: New file, from gettext-0.13.
81867         * m4/printf-posix.m4: New file, from gettext-0.13.
81868
81869 2003-11-29  Karl Berry  <karl@gnu.org>
81870
81871         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81872
81873 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81874             Bruno Haible  <bruno@clisp.org>
81875
81876         * lib/printf-parse.h: Don't include sys/types.h.
81877         (ARG_NONE): New macro.
81878         (char_directive): Change type of *arg_index fields to size_t.
81879         * lib/printf-parse.c: Don't include sys/types.h.
81880         (SSIZE_MAX): Remove macro.
81881         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81882         Remove unnecessary overflow check.
81883         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81884         fields.
81885
81886 2003-11-25  Bruno Haible  <bruno@clisp.org>
81887
81888         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81889
81890 2003-11-25  Bruno Haible  <bruno@clisp.org>
81891
81892         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81893         gt_TYPE_SSIZE_T.
81894
81895 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81896
81897         * modules/alloca: Remove dependency on xalloc.
81898
81899 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81900
81901         * lib/alloca.c: Remove dependency on xalloc module.
81902         (xalloc_die): Remove.
81903         (memory_full) [!defined emacs]: New macro.
81904         [!defined emacs]: Don't include xalloc.h.
81905         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81906         address arithmetic overflows.  Change datatypes a bit to avoid
81907         unnecessary casts.
81908
81909 2003-11-22  Jim Meyering  <jim@meyering.net>
81910
81911         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81912         s/size/size_t/.
81913
81914 2003-11-21  Karl Berry  <karl@gnu.org>
81915
81916         * config/config.{sub,guess}: update from config.
81917
81918 2003-11-18  Karl Berry  <karl@gnu.org>
81919
81920         * config/config.{sub,guess}: update from config.
81921
81922         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81923
81924 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81925
81926         * README: Mention that S+T cannot overflow if S is the size of
81927         an existing object and T is sufficiently small.
81928
81929 2003-11-17  Jim Meyering  <jim@meyering.net>
81930
81931         On systems without utime and without a utimes function capable of
81932         dealing with a NULL struct utimbuf* argument, this utime replacement
81933         could -- in unusual circumstances -- leak a file descriptor.
81934         * lib/utime.c: Include <unistd.h> and <errno.h>.
81935         (utime_null): Be sure to close `fd' and to preserve errno.
81936         Reported by Geoff Collyer via Arnold Robbins.
81937
81938 2003-11-17  Bruno Haible  <bruno@clisp.org>
81939
81940         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81941         (Depends-on): Add xsize.
81942
81943 2003-11-17  Bruno Haible  <bruno@clisp.org>
81944
81945         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81946
81947 2003-11-17  Bruno Haible  <bruno@clisp.org>
81948
81949         * lib/vasnprintf.c (alloca): Remove fallback definition.
81950         (freea): Remove definition.
81951         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81952         Reported by Paul Eggert.
81953
81954 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81955             Bruno Haible  <bruno@clisp.org>
81956
81957         Protect against address arithmetic overflow.
81958         * lib/printf-args.h: Include stddef.h.
81959         (arguments): Change type of field 'count' to size_t.
81960         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81961         'unsigned int' where appropriate.
81962         * lib/printf-parse.h: Include sys/types.h.
81963         (char_directive): Change type of *arg_index fields to ssize_t.
81964         (char_directives): Change type of fields 'count', max_*_length to
81965         size_t.
81966         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81967         (SSIZE_MAX): Define fallback value.
81968         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81969         instead of 'int' where appropriate. Check a_allocated, d_allocated
81970         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81971         * lib/vasnprintf.c: Include xsize.h.
81972         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81973         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81974         overflow. Avoid wraparound when converting a width or precision from
81975         decimal to binary.
81976
81977 2003-11-16  Bruno Haible  <bruno@clisp.org>
81978
81979         Update from GNU gettext.
81980         * lib/printf-parse.c: Generalize to it can be compiled for wide
81981         strings.
81982         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81983         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81984         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81985         SNPRINTF): New macros.
81986         Don't include <alloca.h> if the file is used inside libintl.
81987         (local_wcslen): New function, for Solaris 2.5.1.
81988         (VASNPRINTF): Use it instead of wcslen.
81989
81990 2003-11-16  Bruno Haible  <bruno@clisp.org>
81991
81992         * lib/xsize.h (xmax): New function.
81993         (xsum, xsum3, xsum4): Declare as "pure" functions.
81994
81995 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81996
81997         * modules/xalloc (Files): Undo latest change, since xalloc.h
81998         no longer needs SIZE_MAX or PTRDIFF_MAX.
81999
82000 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82001
82002         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82003         gl_PTRDIFF_MAX.
82004
82005 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82006
82007         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82008         "return", to pacify some unknown compiler.  Problem reported
82009         by Joerg Schilling.
82010
82011 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82012
82013         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82014         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82015         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82016         heuristic is just as accurate as far as we know, and it removes a
82017         dependency on size_max.m4 and ptrdiff_max.m4.
82018
82019 2003-11-11  Bruno Haible  <bruno@clisp.org>
82020
82021         * modules/xsize (Files): Add m4/size_max.m4.
82022         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82023
82024 2003-11-11  Bruno Haible  <bruno@clisp.org>
82025
82026         * m4/size_max.m4: New file.
82027         * m4/ptrdiff_max.m4: New file.
82028         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82029         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82030         (gl_XALLOC): Invoke it.
82031
82032 2003-11-11  Bruno Haible  <bruno@clisp.org>
82033
82034         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82035         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82036         defined.
82037
82038 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82039
82040         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82041         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82042         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82043         From Bruno Haible.
82044         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82045         not (size_t) -1, since it's defined here.
82046
82047 2003-11-09  Karl Berry  <karl@gnu.org>
82048
82049         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82050
82051 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82052
82053         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82054         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82055         Reject sizes of exactly SIZE_MAX bytes.
82056         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82057         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82058
82059 2003-11-05  Bruno Haible  <bruno@clisp.org>
82060
82061         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82062         SIZE_MAX defined in <limits.h> on Solaris.
82063
82064 2003-11-04  Jim Meyering  <jim@meyering.net>
82065
82066         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82067         variable names, rather than @VAR@.
82068         * modules/poll: Likewise.
82069
82070 2003-11-04  Bruno Haible  <bruno@clisp.org>
82071
82072         * modules/xsize: New file.
82073         * modules/linebreak: Depend on xsize.
82074         * MODULES.html.sh (func_all_modules): Add xsize.
82075
82076 2003-11-04  Bruno Haible  <bruno@clisp.org>
82077
82078         * m4/xsize.m4: New file.
82079
82080 2003-11-04  Bruno Haible  <bruno@clisp.org>
82081
82082         * lib/xsize.h: New file.
82083         * lib/linebreak.c: Include xsize.h.
82084         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82085         argument for overflow.
82086         Suggested by Paul Eggert.
82087
82088 2003-11-03  Karl Berry  <karl@gnu.org>
82089
82090         * config/config.{guess,sub}: update from config.
82091
82092 2003-11-03  Jim Meyering  <jim@meyering.net>
82093
82094         * modules/userspec (lib_SOURCES): Add userspec.h.
82095         (Include): Add "userspec.h".
82096         Improve description.
82097
82098 2003-11-03  Jim Meyering  <jim@meyering.net>
82099
82100         * lib/userspec.c: Include "userspec.h".
82101         * lib/userspec.h: New file.
82102
82103 2003-11-03  Bruno Haible  <bruno@clisp.org>
82104
82105         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82106
82107 2003-11-03  Bruno Haible  <bruno@clisp.org>
82108
82109         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82110         available, to avoid (extremely rare) race condition.
82111         Suggested by Paul Eggert.
82112
82113 2003-11-02  Karl Berry  <karl@gnu.org>
82114
82115         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82116
82117 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82118
82119         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82120         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82121         (read_filesystem_list): Set and use me_type_malloced.
82122         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82123         whatever the type happens to be), for brevity and consistency.
82124         Check for size calculation overflow on Alphas running OSF/1.
82125
82126 2003-10-31  Jim Meyering  <jim@meyering.net>
82127
82128         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82129
82130         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82131
82132 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82133             Bruno Haible  <bruno@clisp.org>
82134
82135         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82136         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82137
82138 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82139
82140         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82141         netbsd*-gnu*.  Suggested by Robert Millan.
82142
82143 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82144
82145         * modules/group-member: Depend on stdbool.
82146
82147 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82148
82149         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82150
82151 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82152
82153         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82154         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82155         after the 'gnu' in these cases.  This fixes some bugs in the
82156         previous change, and is based on suggestions by Robert Millan.
82157
82158 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82159
82160         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82161         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82162         no longer needed.
82163         * lib/quotearg.c (quotearg_n_options): Use it.
82164         * lib/group-member.c: Include <stdbool.h>.
82165         (free_group_info): Arg is now const *; don't free arg.
82166         (get_group_info): Now returns bool and accepts struct group_info *,
82167         rather than returning a malloc'ed struct group_info *.
82168         All uses changed.  Check for overflow in internal size calculation.
82169
82170         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82171         rather than xmalloc/xrealloc.
82172         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82173         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82174         conformance bug: the old code used a pointer after freeing the
82175         storage that it addressed.
82176         * lib/hash.c (hash_initialize): Simplify the code by using
82177         xalloc_oversized rather than doing it by hand.
82178         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82179         the buffer preserved.  Use free and xmalloc instead.
82180         * lib/quotearg.c (quotearg_n_options): Likewise.
82181         Use a simpler test for size overflow.  Don't use xalloc_oversized
82182         because unsigned int might be wider than size_t (!); this suggests
82183         that we should switch from unsigned int to size_t for slot numbers.
82184
82185 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82186
82187         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82188         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82189         NetBSD kernels.  Requested by Richard Stallman.
82190
82191 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82192
82193         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82194         to allocate the returned structure.  Do not allocate a subarray,
82195         as x2nrealloc will do that.
82196         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82197         instead of xnrealloc.
82198         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82199
82200 2003-10-27  Bruno Haible  <bruno@clisp.org>
82201
82202         * lib/stdbool_.h: Better support for BeOS.
82203
82204 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82205
82206         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82207         now uses inline.
82208
82209 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82210
82211         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82212         callers that want to do their own size-overflow checking.  Include
82213         <stdbool.h>, since xalloc_oversized returns bool.
82214         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82215         to use xalloc_oversized.
82216
82217         Add two functions x2realloc, x2nrealloc, for programs that grow
82218         arrays dynamically by doubling their sizes.
82219         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82220         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82221         New functions.
82222
82223         Port to C99 semantics for 'inline' of external functions.
82224         Bug reported by Bruno Haible.
82225         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82226         with the old contents of xnmalloc.
82227         (xnmalloc, xmalloc): Use it.
82228         (xnrealloc_inline): New static inline function,
82229         with the old contents of xnrealloc.
82230         (xnrealloc, xrealloc): Use it.
82231
82232         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82233         that.
82234
82235 2003-10-26  Karl Berry  <karl@gnu.org>
82236
82237         * config/srclist.txt (COPYING.DOC): no longer available from
82238         /gd/gnuorg; don't know where the ultimate source is.
82239
82240 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82241
82242         Fix several address-calculation bugs in the hash modules,
82243         plus some minor code cleanup.
82244
82245         * lib/hash.h: Include <stdbool.h>, for bool.
82246         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82247         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82248         hash_get_n_entries, hash_get_max_bucket_length,
82249         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82250         hash_rehash): Use size_t rather than unsigned.
82251         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82252         hash_get_n_buckets_used, hash_get_n_entries,
82253         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82254         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82255         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82256         Likewise.
82257         (SIZE_MAX): Define if not defined.
82258         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82259         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82260         hash_print):
82261         Use const * when possible.
82262         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82263         (check_tuning): Fix bug: if tuning parameters were very close to
82264         0 or 1, rounding errors could have caused subscript violations.
82265         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82266         (hash_initialize): Add 'fail:' label
82267         to free table and return NULL, and use it to simplify code.
82268         Use calloc rather than clearing the storage ourself.
82269         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82270         buffer size calculations.
82271         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82272         Include <stddef.h>, for size_t.
82273         * lib/hash-pjw.c (hash_pjw): Likewise.
82274         Switch to method described by Bruno Haible.
82275         Include <limits.h>, for CHAR_BIT.
82276         (SIZE_BITS): New macro.
82277
82278 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82279
82280         * m4/getline.m4 (AM_FUNC_GETLINE):
82281         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82282         hosts.  Problem reported by Derek Robert Price in
82283         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82284         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82285         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82286
82287 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82288
82289         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82290         ceiling the allocation at NMAX bytes rather than silently
82291         discarding input bytes before NMAX is reached.  This makes
82292         a difference only if NMAX exceeds SIZE_MAX / 2.
82293
82294         * lib/obstack.c: Merge from glibc.
82295         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82296         Add libc_hidden_def (_obstack_newchunk).
82297         (_obstack_free) [! defined _LIBC]: Remove.
82298         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82299         a clone of the function body.
82300         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82301         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82302
82303         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82304         glibc.
82305         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82306         arg to memcpy.
82307
82308         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82309         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82310         Don't use lvalue casts, as GCC plans to remove support for them
82311         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82312         was also present in the non-GCC version, indicating that this
82313         code had always been buggy and had never been widely used.
82314         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82315         Use the fast variant of each macro, rather than copying the
82316         definiens of the fast variant; that way, we'll be more likely to
82317         catch future bugs in the fast variants.
82318
82319 2003-10-20  Bruno Haible  <bruno@clisp.org>
82320
82321         * modules/wait-process: New file.
82322         * MODULES.html.sh (func_all_modules): Add wait-process.
82323
82324 2003-10-20  Bruno Haible  <bruno@clisp.org>
82325
82326         * m4/wait-process.m4: New file.
82327
82328 2003-10-20  Bruno Haible  <bruno@clisp.org>
82329
82330         * lib/wait-process.h: New file, from GNU gettext.
82331         * lib/wait-process.c: New file, from GNU gettext.
82332
82333 2003-10-19  Jim Meyering  <jim@meyering.net>
82334
82335         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82336         HPUX 10.20.
82337
82338 2003-10-18  Karl Berry  <karl@gnu.org>
82339
82340         * config/config.guess: update from config.
82341
82342 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82343
82344         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82345         (getgroups): First arg is int, not size_t.
82346         Don't let 'free' mangle errno.
82347
82348 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82349
82350         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82351
82352 2003-10-16  Karl Berry  <karl@gnu.org>
82353
82354         * config/config.{guess,sub}: update from config.
82355
82356 2003-10-16  Jim Meyering  <jim@meyering.net>
82357
82358         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82359         memcpy.
82360
82361 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82362
82363         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82364         (SIZE_MAX): Remove.
82365         (new_exclude, add_exclude_file): Initial size no longer needs to
82366         be a power of 2.
82367         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82368         our own address arithmetic overflow checking.
82369
82370         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82371         (fnmatch): Do not alloca more than 2000 wide characters;
82372         instead, use malloc for large buffers.
82373         Check for address arithmetic overflow, and return -1
82374         with errno set to ENOMEM in that case.
82375         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82376         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82377         instead, return -1.  Check for address arithmetic overflow.
82378
82379 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82380
82381         Handle invalid suffixes and overflow independently, so that
82382         callers can treat them independently as needed.  Fix some bugs in
82383         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82384         suffix for a human-readable blocksize.  The major caller-visible
82385         change is the addition of a new
82386         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82387         that both overflow and suffix chars were found.
82388
82389         * lib/human.c (humblock): Don't check separately for invalid suffix
82390         char; that is xstrtoumax's job (now that its bug is fixed).
82391         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82392         INTMAX_MAX]: New macros.
82393         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82394         TYPE_MAXIMUM): New macros.
82395         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82396         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82397         if overflow occurs, as it's what __strtol does and it's more useful
82398         in practice.
82399         (__xstrtol): If __strtol reports some error other than ERANGE,
82400         reflect it to the caller as LONGINT_INVALID.  If it reports
82401         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82402         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82403         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82404         value.
82405         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82406         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82407         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82408         [defined UINTMAX_MAX]: New macros.
82409
82410 2003-10-14  Bruno Haible  <bruno@clisp.org>
82411
82412         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82413
82414 2003-10-14  Bruno Haible  <bruno@clisp.org>
82415
82416         * m4/sig_atomic_t: New file, from GNU gettext.
82417         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82418
82419 2003-10-14  Bruno Haible  <bruno@clisp.org>
82420
82421         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82422         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82423         Also use volatile where needed.
82424
82425 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82426
82427         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82428         Change maintainer from Bruno Haible to 'all'.
82429
82430 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82431
82432         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82433
82434 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82435
82436         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82437         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82438         and define in terms of the other primitives.
82439         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82440         (SIZE_MAX): Define if not already defined.
82441         (array_size_overflow): New function.
82442         (xalloc_die): Abort instead of exiting if 'error' returns.
82443         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82444         (xmalloc, xrealloc): Use them.
82445         (xcalloc): Check for address arithmetic overflow.
82446         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82447         a bit faster than strcpy.
82448
82449 2003-10-10  Simon Josefsson  <jas@extundo.com>
82450
82451         * modules/argp (Depends-on): Add restrict and strcase.
82452
82453 2003-10-10  Simon Josefsson  <jas@extundo.com>
82454
82455         * m4/argp.m4: Add AC_C_INLINE.
82456
82457 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82458
82459         Merge getpass from libc, plus a few fixes.
82460
82461         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82462         Include <stdbool.h>.
82463         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82464         __fsetlocking to empty.
82465         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82466         do include <bits/libc-lock.h>.
82467         Do not include <fcntl.h>; not needed.
82468         [_LIBC]: Include <wchar.h>.
82469         (NOTCANCEL_MODE): New macro.
82470         (flockfile, funlockfile) [_LIBC]: New macros.
82471         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82472         [!_LIBC]: New macros.
82473         (call_fclose): New function.
82474         (getpass): Use it.  Save tty stream separately; this simplifies the
82475         code and makes it more reliable if stdin happens to equal stdout.
82476         Invoke __fsetlocking on tty.
82477         Handle thread cancellation if needed.
82478         Namespace cleanup (use __tcgetattr, __getline).
82479         Use bool for Booleans.
82480         [USE_IN_LIBIO]: Handle wide streams.
82481         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82482         stream might go where.
82483
82484         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82485         doesn't have to include <stdio.h> before us.
82486         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82487         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82488         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82489         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82490         if not declared, so that we can use getpass.c code from libc without
82491         rewriting it.
82492         (flockfile, ftrylockfile, funlockfile): New macros.
82493
82494 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82495
82496         * modules/getpass: Depend on stdbool.
82497
82498 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82499
82500         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82501
82502 2003-10-07  Karl Berry  <karl@gnu.org>
82503
82504         * config/config.{guess,sub}: update from config.
82505
82506 2003-10-06  Jim Meyering  <jim@meyering.net>
82507             Bruno Haible  <bruno@clisp.org>
82508
82509         This lets translators provide better translations for the
82510         "Written by ..." part of --version output.
82511         * lib/version-etc.h: Include stdarg.h.
82512         (version_etc_copyright): Declare as readonly.
82513         (version_etc): Make this function variadic with a NULL-terminated list
82514         of author name strings.
82515         (version_etc_va): New declaration.
82516         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82517         (version_etc_copyright): Declare as readonly.
82518         (version_etc_va): New function. Provide a different translatable string
82519         for each possible number of authors < 10. Abbreviate when there are 10
82520         authors or more.
82521         (version_etc): Make this function variadic. Call version_etc_va.
82522         Suggestion from Gary V. Vaughan.
82523
82524         * lib/long-options.h (parse_long_options): Change prototype: the
82525         authors string is moved to the end and becomes variadic.
82526         * lib/long-options.c: Include stdarg.h.
82527         (parse_long_options): Make this function variadic, too.
82528         Call version_etc_va, not version_etc.
82529
82530 2003-10-06  Bruno Haible  <bruno@clisp.org>
82531
82532         * modules/version-etc-2: Remove file.
82533         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82534
82535 2003-10-06  Bruno Haible  <bruno@clisp.org>
82536
82537         * modules/fatal-signal: New file.
82538         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82539
82540 2003-10-06  Bruno Haible  <bruno@clisp.org>
82541
82542         * m4/fatal-signal.m4: New file.
82543         * m4/signalblocking.m4: New file, from GNU gettext.
82544
82545 2003-10-06  Bruno Haible  <bruno@clisp.org>
82546
82547         * lib/version-etc-2.h: Remove file.
82548         * lib/version-etc-2.c: Remove file.
82549
82550 2003-10-06  Bruno Haible  <bruno@clisp.org>
82551
82552         * lib/fatal-signal.h: New file, from GNU gettext.
82553         * lib/fatal-signal.c: New file, from GNU gettext.
82554
82555 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82556
82557         * README: Rework advice for preventing empty .o files.
82558         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82559         not <sys/types.h>.
82560
82561 2003-10-04  Karl Berry  <karl@gnu.org>
82562
82563         * lib/argp*: update from libc.
82564
82565 2003-10-04  Karl Berry  <karl@gnu.org>
82566
82567         * config/config.{guess,sub}: update from config.
82568
82569 2003-10-02  Bruno Haible  <bruno@clisp.org>
82570
82571         * modules/lchown (Include): Add lchown.h.
82572         * modules/time_r (Include): Use "..." syntax.
82573         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82574
82575 2003-10-01  Simon Josefsson  <jas@extundo.com>
82576
82577         * MODULES.html.sh (func_all_modules): Move gethostname from section
82578         'based on' to section 'lacking' POSIX:2001.
82579
82580 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82581
82582         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82583         to output mode on the same stream.
82584
82585 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82586
82587         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82588         Fix arg typo in previous patch.
82589
82590 2003-09-28  Jim Meyering  <jim@meyering.net>
82591
82592         * lib/error.c: Correct cpp indentation.
82593
82594 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82595
82596         * modules/free: New file.
82597
82598 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82599
82600         * m4/free.m4: New file.
82601
82602 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82603
82604         * lib/minmax.h (MIN, MAX)
82605         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82606         Omit the special code that used __typeof__, since we worry that
82607         it could be more trouble than it's worth.  See:
82608         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82609         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82610
82611         * lib/free.c: New file.
82612
82613 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82614
82615         Trivial fixes to Makefile.am parts of module listings.
82616         * modules/strstr: Append strstr.h to lib_SOURCES.
82617         * modules/strcase: Likewise, for strcase.h.
82618
82619 2003-09-27  Karl Berry  <karl@gnu.org>
82620
82621         * config/mkinstalldirs: update from automake.
82622
82623 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82624
82625         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82626         (error_tail): Do not loop, reallocating temporary buffer, since
82627         the output cannot contain more wide characters than the input
82628         contains bytes, the size must be big enough already.  This avoids
82629         one potential size overflow calculation.  Check for size overflow
82630         when calculating temporary buffer size.  Free temporary buffer
82631         when done, if it was allocated with malloc; this plugs a memory
82632         leak.  Remove casts from void * to pointers, that are no longer
82633         needed now that we're assuming C89 or better.
82634
82635         Merge error changes from glibc.
82636
82637         * lib/error.c, error.h: Update copyright notice header to match glibc.
82638         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82639         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82640         Disable cancellation while printing error.
82641         * lib/error.h: Prepend __ to parameter names.
82642
82643 2003-09-26  Jim Meyering  <jim@meyering.net>
82644
82645         * lib/error.c (error_tail): Move some declarations
82646         into inner scope where the local variables are used.
82647
82648 2003-09-26  Bruno Haible  <bruno@clisp.org>
82649
82650         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82651         stpncpy().
82652         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82653
82654 2003-09-26  Bruno Haible  <bruno@clisp.org>
82655
82656         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82657         (stpncpy): Define as alias for gnu_stpncpy.
82658         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82659
82660 2003-09-25  Simon Josefsson  <jas@extundo.com>
82661
82662         * lib/xgetdomainname.h: New file.
82663         * lib/xgetdomainname.c: New file.
82664
82665 2003-09-25  Simon Josefsson  <jas@extundo.com>
82666             Bruno Haible  <bruno@clisp.org>
82667
82668         * modules/getdomainname: New file.
82669         * modules/xgetdomainname: New file.
82670         * MODULES.html.sh (func_all_modules): Add getdomainname,
82671         xgetdomainname.
82672
82673 2003-09-25  Simon Josefsson  <jas@extundo.com>
82674             Bruno Haible  <bruno@clisp.org>
82675
82676         * m4/getdomainname.m4: New file.
82677
82678 2003-09-25  Simon Josefsson  <jas@extundo.com>
82679             Bruno Haible  <bruno@clisp.org>
82680
82681         * lib/getdomainname.h: New file.
82682         * lib/getdomainname.c: New file.
82683
82684 2003-09-25  Karl Berry  <karl@gnu.org>
82685
82686         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82687
82688 2003-09-25  Karl Berry  <karl@gnu.org>
82689
82690         * config/install-sh: update from automake.
82691
82692 2003-09-25  Bruno Haible  <bruno@clisp.org>
82693
82694         * modules/version-etc-2: New file, from modules/version-etc with
82695         modifications.
82696         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82697
82698 2003-09-25  Bruno Haible  <bruno@clisp.org>
82699
82700         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82701         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82702
82703 2003-09-24  Simon Josefsson  <jas@extundo.com>
82704
82705         * modules/xgethostname: Add xgethostname.h.
82706
82707 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82708
82709         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82710         the buffer associated with the argument.  Bug reported by
82711         Simon Josefsson.
82712
82713 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82714
82715         * README: Document assumptions that 'int' is at least 32 bits
82716         wide, that integer arithmetic is 2's complement without overflow,
82717         that there are no holes in integer values, that adding sizes of
82718         two nonoverlapping objects can't overflow, and that all-bits-zero
82719         yields scalar zero.  Fix spelling and capitalization typos.
82720
82721 2003-09-19  Karl Berry  <karl@gnu.org>
82722
82723         * lib/argp.h: update from libc.
82724
82725 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82726
82727         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82728         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82729         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82730
82731 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82732
82733         * gnulib-tool: Use "test -h", not "test -L", for portability
82734         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82735         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82736         (sed_extract_prog): Issue s commands one-by-one, rather than
82737         using \| in one s command.
82738
82739 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82740
82741         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82742         input error, instead of returning NULL the next time we are called
82743         (and therefore losing track of errno).
82744
82745 2003-09-16  Bruno Haible  <bruno@clisp.org>
82746
82747         * gnulib-tool (func_create_testdir): Warn about duplicated
82748         dependencies.
82749
82750 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82751
82752         * modules/argmatch, modules/fatal, modules/obstack,
82753         modules/xalloc, modules/xgethostname: Sort dependencies by
82754         importance, not alphabetically.
82755
82756 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82757
82758         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82759         fails, so that the caller gets the proper errno.
82760
82761         * lib/readutmp.c (read_utmp): Likewise.
82762         Check for fstat error.  Close stream and free storage
82763         when failing.
82764
82765 2003-09-14  Karl Berry  <karl@gnu.org>
82766
82767         * config/srclist.txt (strdup.c): disable for c89 changes.
82768
82769 2003-09-14  Jim Meyering  <jim@meyering.net>
82770
82771         * lib/getloadavg.c: Correct cpp indentation.
82772         * lib/strdup.c: Likewise.
82773         * lib/vasnprintf.c: Likewise.
82774
82775 2003-09-14  Bruno Haible  <bruno@clisp.org>
82776
82777         * modules/fwriteerror: New file.
82778         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82779
82780 2003-09-14  Bruno Haible  <bruno@clisp.org>
82781
82782         * lib/fwriteerror.h: New file.
82783         * lib/fwriteerror.c: New file.
82784
82785 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82786
82787         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82788         modules/xgethostname, modules/xalloc: Depend on exit.
82789
82790 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82791
82792         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82793
82794         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82795         and AC_MINIX, too, so that their extensions are available.
82796
82797         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82798         This macro has been superseded by gl_BACKUPFILE.
82799
82800         More patches to assume C89 or better.
82801
82802         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82803
82804         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82805         unconditionally.
82806         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82807         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82808         Include <string.h>, <stdlib.h> unconditionally.
82809         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82810         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82811         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82812         headers or for string.h.
82813         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82814         or strtoul.
82815
82816         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82817         headers.
82818         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82819         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82820         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82821         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82822         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82823         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82824         memcpy, memset.
82825         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82826         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82827         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82828         strtol.
82829         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82830         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82831         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82832         strtoul.
82833
82834 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82835
82836         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82837         * lib/obstack.c [!defined _LIBC]: Likewise.
82838         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82839         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82840         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82841
82842         More changes to assume C89 or better.
82843
82844         * lib/error.c (error_tail): Assume vprintf.
82845
82846         * lib/argmatch.c (getenv): Remove decl.
82847         * lib/progreloc.c (get_full_program_name): Define via prototype.
82848         * lib/setenv.c (clearenv): Likewise.
82849         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82850         needed.
82851         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82852         (malloc, memcpy): Remove decls.
82853         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82854         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82855         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82856         (memcpy): Remove macro.
82857         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82858         (__P): Remove.  All uses removed.
82859         (PTR): Remove.  All uses changed to void *.
82860         (CHAR_BIT, NULL): Remove.
82861         (spaces, zeros, memset_space, memset_zero)
82862         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82863         Remove.
82864         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82865         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82866         Define with prototype.
82867         Remove now-unnecessary prototype decl.
82868         (extra_args_spec): Assume ANSI C.  All uses changed.
82869         (extra_args_spec_iso): Remove.
82870         (my_strftime, emacs_strftimeu): Define via prototype.
82871         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82872         unconditionally.
82873         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82874         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82875         (strtoul, strtol): Remove decls.
82876         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82877         LONG_MAX): Remove.
82878         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82879         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82880         (LOCALE_PARAM_PROTO): New macro.
82881         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82882         (INTERNAL (strtol), strtol): Define with a prototype.
82883         (PARAMS): Remove.  All uses removed.
82884         * lib/tempname.c: Include <string.h> unconditionally.
82885         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82886         * lib/xgethostname.c (main): Define with a prototype.
82887         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82888         Include <stdlib.h> unconditionally.
82889         (calloc, malloc, realloc, free): Remove decls.
82890         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82891         Include <stdlib.h> unconditionally.  Sort include file names.
82892         (strtod): Remove.
82893         (xstrtod): Define with a prototype.
82894         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82895         (strtol, strtoul): Remove decls.
82896
82897 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82898
82899         More patches to assume C89 or better.
82900         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82901         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82902         string.h, memchr, STDC_HEADERS.
82903
82904 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82905
82906         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82907         Include <stdlib.h>, <string.h> unconditionally.
82908         Remove now-unnecessary cast to char *.
82909         * lib/strnlen.c: Include <string.h> unconditionally.
82910         * lib/yesno.c (yesno): Define with a prototype.
82911
82912 2003-09-11  Bruno Haible  <bruno@clisp.org>
82913
82914         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82915
82916 2003-09-10  Jim Meyering  <jim@meyering.net>
82917
82918         * lib/error.c: Correct indentation of cpp directives.
82919
82920 2003-09-10  Bruno Haible  <bruno@clisp.org>
82921
82922         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82923         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82924         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82925         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82926         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82927         <stdlib.h> and <string.h> checks.
82928         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82929         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82930
82931 2003-09-10  Bruno Haible  <bruno@clisp.org>
82932
82933         * lib/strcspn.c: Include <string.h> unconditionally.
82934         * lib/strpbrk.c: Include <string.h> unconditionally.
82935         * lib/strstr.c: Include <string.h> unconditionally.
82936         * lib/unicodeio.c: Include <string.h> unconditionally.
82937         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82938         * lib/unsetenv.c: Likewise.
82939         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82940         * lib/yesno.c: Include <stdlib.h> unconditionally.
82941         (rpmatch): Add prototype.
82942
82943 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82944
82945         More patches to assume C89 or better.
82946         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82947         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82948         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82949         or for string.h.
82950         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82951         stdlib.h.
82952         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82953         C headers.
82954         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82955         string.h.
82956         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82957         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82958         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82959         or for string.h.
82960         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82961         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82962         C headers.
82963         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82964         memcpy.
82965         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82966         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82967         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82968         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82969         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82970         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82971         string.h, free.
82972         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82973         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82974         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82975         C headers, or for string.h.
82976         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82977         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82978         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82979         headers, memory.h, stdlib.h, string.h, strings.h.
82980         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82981         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82982         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82983         strchr.
82984         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82985         headers, memory.h, string.h.
82986         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82987         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82988         free.
82989         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82990         headers.
82991         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82992         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82993         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82994         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82995         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82996
82997 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82998
82999         More K&R removal.
83000
83001         * lib/acosl.c (main): Use a prototype.
83002         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83003         tanl.c: Likewise.
83004
83005         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83006
83007         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83008         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83009         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83010         with a prototype.
83011         * lib/getopt.c (const): Remove macro.
83012         Include <string.h> unconditionally.
83013         (my_index): Remove; all uses changed to strchr.
83014         (strlen): Remove decl.
83015         (exchange): Remove forward decl; no longer needed.
83016         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83017         Define with prototype.
83018         * lib/getopt1.c (const): Remove macro.
83019         (getopt_long, getopt_long_only, main): Define with prototype.
83020
83021         * lib/getugroups.c: Include <string.h> unconditionally.
83022
83023         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83024         (getusershell, setusershell, endusershell, readname, main):
83025         Define with prototypes.
83026
83027         * lib/group-member.c: Include group-member.h first.
83028         Include <stdlib.h> unconditionally.
83029
83030         * lib/hard-locale.c: Include hard-locale.h first.
83031         Include <stdlib.h>, <string.h> unconditionally.
83032
83033         * lib/hash.c (free, malloc): Remove decls.
83034         Include <stdlib.h> unconditionally.
83035
83036         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83037         (getenv): Do not declare.
83038
83039         * lib/idcache.c: Include <string.h> unconditionally.
83040
83041         * lib/long-options.c: Include long-options.h first, to test interface.
83042         Include <stdlib.h> unconditionally.
83043
83044         * lib/makepath.c: Include makepath.h first, to test interface.
83045         Include <stdlib.h> and <string.h> unconditionally.
83046
83047         * lib/linebuffer.c: Include <stdlib.h>.
83048         (free): Remove decl.
83049
83050         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83051         stddef.h. rpl_malloc returns void *, not char *.
83052         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83053         prototype.
83054
83055         * lib/md5.h: Include <limits.h> unconditionally.
83056         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83057         (__P): Remove; all uses removed.
83058         * lib/md5.c: Include "md5.h" first.
83059         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83060         md5_buffer, md5_process_bytes, md5_process_block):
83061         Define with prototypes.
83062         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83063         * lib/sha.c: Include "sha.h" first.
83064         Include <stdlib.h>, <string.h> unconditionally.
83065
83066         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83067         * lib/memcmp.c (__ptr_t): Likewise.
83068         * lib/memrchr.c (__ptr_t): Likewise.
83069         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83070         Include <string.h> unconditionally.
83071         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83072         * lib/memchr.c: Include <stdlib.h> unconditionally.
83073         * lib/memchr.c (LONG_MAX): Remove.
83074         * lib/memrchr.c (LONG_MAX): Likewise.
83075         * lib/memchr.c (__memchr): Define via a prototype.
83076         * lib/memrchr.c (__memrchr): Likewise.
83077         * lib/memcmp.c (__P): Remove, and remove all uses.
83078         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83079         Remove forward decls; no longer needed.
83080         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83081         Use types required by C89 in prototype.
83082
83083         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83084         * lib/savedir.c: Likewise.
83085         * lib/mkdir.c (free): Remove decl.
83086         * lib/rmdir.c (rmdir): Define with a prototype.
83087         * lib/savedir.c: Include savedir.h first, to test interface.
83088
83089         * lib/mktime.c (STDC_HEADERS): Remove.
83090         Include <stdlib.h>, <string.h> unconditionally.
83091
83092         * lib/modechange.c: Include <stdlib.h> unconditionally.
83093         (malloc): Remove decl.
83094
83095         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83096         (free): Remove decl.
83097
83098         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83099         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83100         (This type really should be intptr_t, but that's a C99ism.)
83101         (_obstack_memcpy): Remove: all uses changed to memcpy.
83102         Include <string.h> unconditionally.
83103         (struct obstack): Assume __STDC__ for types of members
83104         chunkfun, freefun, extra_arg.
83105         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83106         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83107         obstack_begin, obstack_specify_allocation,
83108         obstack_specify_allocation_with_arg, obstack_chunkfun,
83109         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83110         Remove unprototyped decls and the macros that use them.
83111         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83112         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83113         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83114         (defined __STDC__ && __STDC__)]:
83115         Remove nonprototyped code.
83116         Include <stdlib.h> unconditionally.
83117         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83118         _obstack_allocated_p, _obstack_free, obstack_free,
83119         _obstack_memory_used, print_and_abort):
83120         Define using prototypes.
83121         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83122         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83123         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83124         obstack_next_free, obstack_object_size, obstack_room) [0]:
83125         Remove unused, unprototyped code.
83126
83127         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83128
83129         * lib/physmem.c (physmem_total, physmem_available, main): Define
83130         with prototypes.
83131
83132         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83133         (main): Define with a prototype.
83134
83135         * lib/posixver.c (getenv): Remove decl.
83136
83137         * lib/putenv.c (malloc): Returns void *, not char *.
83138         Include <string.h> unconditionally.
83139         (strchr, memcpy, NULL): Do not define.
83140
83141         * lib/readtokens.c: Include readtokens.h first, to test interface.
83142         Include <stdlib.h>, <string.h> unconditionally.
83143         (init_tokenbuffer): Define with a prototype.
83144
83145         * lib/regex.c (PARAMS): Remove.  All uses removed.
83146         All uses of _RE_ARGS removed, too.
83147         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83148         unconditionally.
83149         (bzero): Assume memset exists.
83150         (memcmp, memcpy, NULL): Remove.
83151         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83152         char, or assignments to local vars of type signed char.
83153         (init_syntax_once, PREFIX(extract_number_and_incr),
83154         PREFIX(print_partial_compiled_pattern),
83155         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83156         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83157         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83158         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83159         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83160         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83161         wcs_compile_range, byte_compile_range, truncate_wchar,
83162         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83163         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83164         count_mbs_length, wcs_re_match_2_internal,
83165         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83166         PREFIX(alt_match_null_string_p),
83167         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83168         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83169         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83170         now-unnecessary declaration, if any.
83171         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83172         regcomp, regexec):
83173         Remove now-unnecessary casts among pointer types.
83174         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83175
83176         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83177         (free): Remove decl.
83178
83179         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83180
83181         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83182         (free): Remove decl.
83183
83184         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83185         * lib/xgetcwd.c: Likewise.
83186
83187         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83188         (free): Remove decl.
83189
83190         * lib/strchrnul.c (strchrnul): Define with a prototype.
83191         Fix bug: c_in was not converted to char before searching.
83192
83193         The following changes are not K&R related:
83194
83195         * lib/group-member.h: Include <sys/types.h>, so that this file is
83196         self-contained.
83197         * lib/makepath.h: Likewise.
83198
83199         * lib/getusershell.c (readname, default_index, line_size, readname):
83200         Use size_t, not int, for sizes.
83201         (readname): If the size overflows, report an error instead of
83202         looping forever.
83203
83204 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83205
83206         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83207         libc.
83208
83209 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83210
83211         * README: New section: portability guidelines.
83212
83213 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83214
83215         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83216         C89 spec.
83217
83218 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83219
83220         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83221
83222 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83223
83224         Assume C89 or better; remove K&R cruft.
83225         A few of these changes were first proposed by Derek Robert Price
83226         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83227
83228         * lib/addext.c: Include <string.h> unconditionally.
83229         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83230         Don't declare getenv or malloc.
83231
83232         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83233         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83234         (NULL): Remove.
83235         (find_stack_direction, alloca): Use prototypes.
83236
83237         * lib/atexit.c (atexit): Define using a prototype.
83238
83239         * lib/basename.c, dirname.c, stripslash.c:
83240         Include <string.h> unconditionally.
83241
83242         * lib/bcopy.c: Include <stddef.h>.
83243         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83244
83245         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83246
83247         * lib/error.h (error, error_at_line, error_print_progname)
83248         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83249         * lib/error.c: Include error.h first, to check interface.
83250         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83251         (VA_START): Remove; all uses changeed to va_start.
83252         (exit, strerror): Remove decls.
83253         (error_print_progname): Prototype uncondionally.
83254         Don't include <errno.h>; no longer needed.
83255         (private_strerror): Remove.
83256         (error_tail): Always define.
83257         (error, error_at_line): Assume C89 or better; always use prototypes.
83258         * lib/fatal.c: Include "fatal.h" first, to test interface.
83259         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83260         (VA_START): Remove; all uses changed to va_start.
83261         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83262         this case.
83263         (exit): Remove decl.
83264         (fatal): Prototype unconditionally.  Assume va_start works.
83265         Abort at end, to pacify gcc.
83266
83267         * lib/euidaccess.c (main): Define with a prototype.
83268
83269         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83270
83271         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83272
83273         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83274         prototypes.
83275         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83276         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83277         (getenv): Remove decl.
83278         (fnmatch): Define using a prototype.
83279         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83280         (FCT): Define using a prototype.
83281
83282         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83283
83284         * lib/gethostname.c: Include <stddef.h>.
83285         (gethostname): Define with prototype.  Length is size_t, not int.
83286
83287 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83288
83289         Assume C89 or better; remove K&R cruft.
83290         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83291         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83292         string.h, getenv, malloc.
83293         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83294         headers.
83295         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83296         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83297         do not check for strerror.
83298         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83299         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83300         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83301         do not check for doprnt or vprintf.
83302         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83303         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83304
83305 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83306
83307         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83308         getversion.c should have been removed then, but was accidentally
83309         preserved.
83310
83311         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83312         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83313
83314 2003-09-08  Karl Berry  <karl@gnu.org>
83315
83316         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83317                 config, forget about prep.
83318
83319         * config/depcomp, missing: update from automake.
83320
83321 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83322
83323         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83324         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83325
83326 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83327
83328         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83329         copy_tm_result.  Bug reported by Simon Josefsson in
83330         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83331
83332 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83333
83334         * m4/time_r.m4: New file.
83335         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83336         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83337         is. Check for timegm declaration.
83338         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83339         Do not check for gmtime_r.
83340         Replace mktime if __mktime_internal does not exist and if mktime
83341         hasn't been replaced already.
83342
83343 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83344
83345         * lib/time_r.c, lib/time_r.h: New files.
83346
83347         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83348         __localtime_r.
83349         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83350         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83351
83352         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83353         __gmtime_r.
83354         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83355         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83356         Include <time_r.h>.
83357
83358         * lib/timegm.c: Switch to glibc implementation, with the following
83359         changes:
83360         [defined HAVE_CONFIG_H]: Include <config.h>.
83361         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83362         (__mktime_internal) [!defined _LIBC]: New decl.
83363         (__gmtime_r) [!defined _LIBC]: New macro and function.
83364         (timegm): Use a prototype, since gnulib assumes C89.
83365         Do not bother declaring tmp to be const, as it's not really usefu.
83366         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83367         (timegm): Declare only if HAVE_DECL_TIMEGM.
83368
83369 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83370
83371         * MODULES.html.sh (func_all_modules): Add time_r.
83372         * modules/time_r: New file.
83373         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83374         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83375
83376 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83377
83378         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83379         Bug reported by Lute Kamstra in
83380         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83381
83382         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83383         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83384         course with correspondingly smaller numbers for tomorrow and
83385         yesterday.  From Tadayoshi Funaba.  Originally installed into
83386         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83387         coreutils merge?).
83388
83389 2003-08-31  Simon Josefsson  <jas@extundo.com>
83390
83391         * modules/timegm: New file.
83392         * MODULES.html.sh (func_all_modules): Add timegm.
83393
83394 2003-08-31  Simon Josefsson  <jas@extundo.com>
83395
83396         * m4/timegm.m4: New file.
83397
83398 2003-08-31  Simon Josefsson  <jas@extundo.com>
83399
83400         * lib/timegm.h: New file.
83401         * lib/timegm.c: New file.  Based on
83402         wget-1.8.2/src/http.c:mktime_from_utc.
83403
83404 2003-08-31  Karl Berry  <karl@gnu.org>
83405
83406         * lib/argp.h: update from libc.
83407
83408 2003-08-28  Bruno Haible  <bruno@clisp.org>
83409
83410         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83411         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83412         followed by '#define fnmatch fnmatch_posix' gives an error.
83413
83414 2003-08-28  Bruno Haible  <bruno@clisp.org>
83415
83416         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83417         warning on QNX, which defines O_BINARY to 000000.
83418
83419 2003-08-27  Jim Meyering  <jim@meyering.net>
83420
83421         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83422         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83423         would fail after 32.  Reported by Danny Levinson.  Details here:
83424         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83425
83426 2003-08-24  Bruno Haible  <bruno@clisp.org>
83427
83428         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83429         MSVC7 <stdio.h> is included later.
83430
83431 2003-08-22  Simon Josefsson  <jas@extundo.com>
83432
83433         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83434
83435 2003-08-20  Karl Berry  <karl@gnu.org>
83436
83437         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83438
83439 2003-08-20  Bruno Haible  <bruno@clisp.org>
83440
83441         * modules/progname: New file.
83442         * MODULES.html.sh (func_all_modules): Add progname.
83443
83444 2003-08-20  Bruno Haible  <bruno@clisp.org>
83445
83446         * lib/progname.h: New file, from GNU gettext.
83447         * lib/progname.c: New file, from GNU gettext.
83448         * lib/progreloc.c: New file, from GNU gettext.
83449
83450 2003-08-19  Jim Meyering  <jim@meyering.net>
83451
83452         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83453         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83454
83455 2003-08-19  Bruno Haible  <bruno@clisp.org>
83456
83457         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83458         more.
83459
83460 2003-08-19  Bruno Haible  <bruno@clisp.org>
83461
83462         * lib/xstrdup.c: Assume <string.h> exists.
83463
83464 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83465
83466         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83467         in makefile rules.
83468
83469 2003-08-18  Jim Meyering  <jim@meyering.net>
83470
83471         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83472         * m4/lib-ld.m4: Likewise.
83473
83474 2003-08-18  Jim Meyering  <jim@meyering.net>
83475
83476         * lib/setenv.h: Indent nested cpp directive.
83477         * lib/vasnprintf.c: Remove trailing blanks.
83478
83479 2003-08-17  Simon Josefsson  <jas@extundo.com>
83480
83481         * modules/xstrndup: New file.
83482         * MODULES.html.sh (func_all_modules): Add xstrndup.
83483
83484 2003-08-17  Simon Josefsson  <jas@extundo.com>
83485
83486         * modules/argp: Fix autoconf macro name. Add more dependencies.
83487
83488 2003-08-17  Simon Josefsson  <jas@extundo.com>
83489
83490         * m4/xstrndup.m4: New file.
83491
83492 2003-08-17  Simon Josefsson  <jas@extundo.com>
83493
83494         * m4/argp.m4: New file.
83495
83496 2003-08-17  Simon Josefsson  <jas@extundo.com>
83497             Bruno Haible  <bruno@clisp.org>
83498
83499         * lib/xstrndup.h: New file.
83500         * lib/xstrndup.c: New file.
83501
83502 2003-08-17  Bruno Haible  <bruno@clisp.org>
83503
83504         * modules/strndup (Files, Include): Add lib/strndup.h.
83505
83506 2003-08-17  Bruno Haible  <bruno@clisp.org>
83507
83508         * modules/euidaccess (Files): Add lib/euidaccess.h.
83509
83510 2003-08-17  Bruno Haible  <bruno@clisp.org>
83511
83512         * lib/strndup.h: New file.
83513
83514 2003-08-17  Bruno Haible  <bruno@clisp.org>
83515
83516         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83517         like AC_GNU_SOURCE.
83518         * modules/extensions (configure.ac): Comment out the invocation of
83519         gl_USE_SYSTEM_EXTENSIONS.
83520
83521 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83522
83523         Merges from coreutils, etc.
83524         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83525         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83526         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83527         fixing a typo.
83528         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83529         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83530
83531 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83532
83533         Document merge from coreutils.
83534         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83535         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83536         * modules/utime: Add m4/utimes-null.m4.
83537
83538 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83539
83540         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83541         space, undoing this 2003-08-12 change:
83542         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83543
83544 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83545
83546         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83547         strtoul.c from libc, undoing this 2003-08-12 change:
83548         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83549
83550 2003-08-16  Jim Meyering  <jim@meyering.net>
83551
83552         Merges from coreutils.
83553         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83554         prefix.  Adjust cache variables similarly.  Create 500 rather than
83555         just 300 files, to exercise bug on Darwin6.5, too.
83556         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83557         $missing_dir.
83558         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83559         AM_SYS_POSIX_TERMIOS.
83560         Reported by mkc@mathdogs.com.
83561         Also change use of $am_cv_sys_posix_termios
83562         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83563         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83564         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83565         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83566         in /proc/mounts until it finds one with matching device number.  This
83567         is unnecessary when the FILE argument *is* a mount point.  No stat call
83568         is necessary in that case.  So, disable the statvfs-testing code on
83569         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83570         as RedHat bug# 84846.
83571         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83572         to 1MB, so as not to render systems with no stack size limit (e.g.,
83573         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83574         Include <unistd.h>.  On some systems,
83575         it is required for the definition of _SC_PAGESIZE.
83576
83577 2003-08-16  Jim Meyering  <jim@meyering.net>
83578
83579         Merge from coreutils.
83580         * lib/xstrtoimax.c: #else #if -> #elif.
83581         * lib/xstrtoumax.c: Likewise.
83582
83583 2003-08-16  Jim Meyering  <jim@meyering.net>
83584
83585         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83586         * m4/utimes.m4: Removed.
83587         * m4/utimes-null.m4: Renamed from utimes.m4.
83588
83589         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83590         to 1MB, so as not to render systems with no stack size limit (e.g.,
83591         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83592         Include <unistd.h>.  On some systems,
83593         it is required for the definition of _SC_PAGESIZE.
83594
83595 2003-08-16  Jim Meyering  <jim@meyering.net>
83596         and Paul Eggert  <eggert@cs.ucla.edu>
83597
83598         Merges from coreutils, etc.
83599
83600         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83601         using the latest version from cvs.  This avoids problems with #line
83602         directives using a vendor (Sun) compiler.
83603         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83604         Don't set GETGROUPS_LIB here; now it's
83605         done via getgroups.m4's wrapper function.
83606         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83607         rather than just in sh-util/configure.in, so that the
83608         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83609         same.
83610         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83611         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83612         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83613         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83614         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83615         Remove code that is now done by the newly-required macros.
83616         Append $(EXEEXT) to DF_PROG.
83617         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83618         Do not invoke or require the following here,
83619         since prereq.m4 or some gnulib .m4 now does this for us:
83620         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83621         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83622         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83623         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83624         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83625         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83626         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83627         AC_FUNC_OBSTACK.
83628         Do not replace the following functions, as this is now the job
83629         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83630         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83631         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83632         atexit getpass, strdup, getpagesize.
83633         Replace 'raise'.
83634         Do not check for the following functions, as this is now the job
83635         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83636         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83637         setregid.
83638         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83639         Check for sys/sysctl.h.
83640         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83641         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83642         of checking for ssize_t ourselves.
83643
83644         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83645         Require every macro that gnulib/modules/* suggests for us.
83646         (jm_PREREQ_ADDEXT): New macro.
83647         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83648         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83649
83650         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83651         (gl_PHYSMEM): Use it.
83652         Also check for `table' function.
83653         Check for new headers and functions.
83654         Add check for sys/sysmp.h.
83655         With suggestions from Kaveh Ghazi.
83656         Ignore headers that are present but cannot be compiled.  This
83657         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83658         C 5.4.
83659
83660 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83661
83662         Document merge from coreutils.
83663         * modules/userspec: Depend on posixver.
83664         * modules/strftime: Depend on tzset.
83665
83666 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83667
83668         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83669         rather than tab, after '#' in shell-script copyright notices.
83670         Suggested by Bruno Haible.
83671
83672 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83673
83674         * config/srclist-update: Use three spaces, rather than tab, after '#'
83675         in shell-script copyright notices.  Suggested by Bruno Haible.
83676         Remove unnecessary parenthesization in regular expression.
83677
83678 2003-08-15  Jim Meyering  <jim@meyering.net>
83679
83680         Merge from coreutils.
83681         * lib/xgethostname.c: Include <stdlib.h>.
83682         (xghostname): Don't exit for anything other than memory-related
83683         failure; just return NULL.
83684         * lib/userspec.c: Include "posixver.h".
83685         (parse_user_spec): Accept `.' as a separator only
83686         in pre-POSIX-200112 mode.
83687         * lib/strtoimax.c: Use #elif rather than #else #if.
83688         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83689         Remove function, now that we can rely on a working tzset function.
83690         [!_LIBC]: Ensure that the required autoconf test has been run.
83691         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83692         Use underlying_strftime for %r.
83693         * lib/sha.c: Merge in some clean-up and optimization changes from
83694         glibc.
83695         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83696         Ensure that it is a multiple of 64.
83697         Rearrange loop exit tests so as to avoid performing an
83698         additional fread after encountering an error or EOF.
83699         * lib/realloc.c: Update copyright date.
83700
83701 2003-08-15  Jim Meyering  <jim@meyering.net>
83702         and Paul Eggert  <eggert@twinsun.com>
83703
83704         Merge from coreutils.
83705         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83706         member but strut utmpx does not.  Needed for AIX 4.3.3.
83707         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83708
83709 2003-08-15  Jim Meyering  <jim@meyering.net>
83710         and Paul Eggert  <eggert@cs.ucla.edu>
83711
83712         Merges from coreutils, etc.
83713         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83714         Require gl_FUNC_TZSET_CLOBBER.
83715         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83716         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83717         members.
83718
83719 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83720
83721         Help the merge from coreutils.
83722         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83723         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83724         * m4/tzset.m4: Use it too.
83725
83726 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83727
83728         * modules/tzset: New file.
83729
83730 2003-08-14  Jim Meyering  <jim@meyering.net>
83731
83732         Merges from coreutils.
83733         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83734         variable names, rather than @FNMATCH_H@.
83735         * modules/alloca: Likewise for $(ALLOCA_H).
83736
83737         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83738         the three copies of the literal target, `fnmatch.h'.
83739         * modules/alloca (alloca.h): Likewise.
83740
83741 2003-08-14  Jim Meyering  <jim@meyering.net>
83742
83743         Merge from coreutils.
83744         * m4/tzset.m4: New file.
83745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83746         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83747         otherwise, AIX 5.1 systems would end up using the latter.
83748         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83749         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83750         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83751         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83752
83753 2003-08-14  Jim Meyering  <jim@meyering.net>
83754
83755         Merge from coreutils.
83756         * lib/obstack.h: Whitespace changes.
83757         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83758         and xcalloc return values.
83759         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83760         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83761         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83762         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83763         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83764         error from mntctl.
83765         Use mntctl's return value to drive the entry-processing loop, since
83766         we can't rely on the value of the vmt_length member in the last
83767         entry.  On some systems doing so could result in exhausting
83768         virtual memory.  Based in part on a patch from Mike Jetzer.
83769
83770 2003-08-14  Jim Meyering  <jim@meyering.net>
83771         and Paul Eggert  <eggert@twinsun.com>
83772
83773         Merges from coreutils, plus other fixes.
83774         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83775         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83776         for credits and details.  Thanks to Kaveh Ghazi for helping
83777         to keep these files in sync.
83778         (ARRAY_SIZE): Define it.
83779         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83780         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83781         (memcasecmp): Don't assume size_t fits in unsigned int.
83782         Remove casts and duplicate code.
83783         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83784         (memcpy): Remove definition.
83785         Merge in some clean-up and optimization changes from glibc.
83786         [BLOCKSIZE]: Move definition to top of file.
83787         Ensure that it is a multiple of 64.
83788         Rearrange loop exit tests so as to avoid performing an
83789         additional fread after encountering an error or EOF.
83790         * lib/md5.h (md5_uintptr): Define.
83791         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83792         return to the initial working directory.  Preserve errno
83793         for caller.
83794         * lib/idcache.c: Include "xalloc.h".
83795         (xmalloc, xrealloc): Remove decls.
83796         (getuser): Remove casts no longer required in C89.
83797         * lib/human.c: Include stdio.h, for sprintf.
83798         * lib/group-member.c: Include "xalloc.h".
83799         (xmalloc, xrealloc): Remove decls.
83800         (get_group_info): Remove casts no longer required in C89.
83801         * lib/getusershell.c (readname): Remove casts no longer required in
83802         C89.
83803         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83804         * lib/getline.c: Whitespace fix, from coreutils.
83805
83806 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83807
83808         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83809         Check for isascii.
83810
83811         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83812         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83813         Undo previous (whitespace-only) change.
83814
83815 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83816
83817         * lib/exclude.c: Include <ctype.h>
83818         (IN_CTYPE_DOMAIN): New macro.
83819         (is_space): New fn.
83820         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83821         and empty lines.
83822
83823         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83824         Undo previous (whitespace-only) change.
83825
83826 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83827
83828         * config/srclist-update: Change update back to the old behavior,
83829         leaving whitespace alone.  Use one 'sed' command rather than a
83830         pipeline.
83831         (fixlicense): Now a variable, not a function.
83832         (remove_trailing_blanks): Remove.
83833         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83834         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83835         Undo previous (whitespace-only) change.
83836
83837 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83838
83839         Merge from coreutils.
83840         * modules/euidaccess: Add lib_SOURCES, include for new
83841         file euidaccess.h
83842
83843 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83844
83845         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83846         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83847         Normalize leading white space and remove trailing white space.
83848
83849         Merge from coreutils
83850         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83851
83852         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83853         0.12.1.  These files are now being upgraded automatically by
83854         ../config/srclist-update.
83855
83856 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83857
83858         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83859         Normalize leading white space and remove trailing white space.
83860         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83861         notice, as per ../config/srclist-update.
83862
83863         Merge from coreutils.
83864         * lib/euidaccess.h: New file.
83865         * lib/euidaccess.c: Include it.
83866         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83867         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83868         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83869
83870 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83871
83872         * config/srclist-update: Add copyright notice.
83873         (remove_id_lines, remove_trailing_blanks): New constants.
83874         (fixfile): Use them to normalize spacing a bit in copied files.
83875         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83876         Normalize leading white space and remove trailing white space.
83877
83878         * config/texinfo.tex: Sync with texinfo.
83879
83880         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83881         strtoul.c from libc, to merge coreutils whitespace changes.
83882
83883         * config/srclist.txt: Get the following m4 files from gettext:
83884         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83885         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83886         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83887         wint_t.m4.
83888
83889 2003-08-12  Karl Berry  <karl@gnu.org>
83890
83891         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83892         been made.
83893
83894 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83895
83896         * modules/gnu-source, m4/gnu-source.m4:
83897         Remove; we're assuming Autoconf 2.54 or later now.
83898         Suggested by Bruno Haible.
83899         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83900
83901 2003-08-11  Bruno Haible  <bruno@clisp.org>
83902
83903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83904
83905 2003-08-11  Bruno Haible  <bruno@clisp.org>
83906
83907         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83908         (vasnprintf): Use it instead of wcslen.
83909
83910 2003-08-11  Bruno Haible  <bruno@clisp.org>
83911
83912         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83913         value to ensure that _Bool promotes to int. Use #define for _Bool when
83914         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83915
83916 2003-08-10  Karl Berry  <karl@gnu.org>
83917
83918         * lib/regex.h: update from libc (whitespace fix).
83919
83920 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83921
83922         Merge some files from coreutils.  These changes were
83923         originally made by Jim Meyering.
83924         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83925         many older Unixes require this.
83926         * lib/alloca.c (alloca): Remove cast to argument of free;
83927         no longer needed in C89.
83928         * lib/alloca_.h, regex.h: Fix white space to match
83929         what GNU indent does.
83930
83931 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83932
83933         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83934         apparently Emacs's Unicode mode got confused before my 2003-08-05
83935         checkin.
83936
83937 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83938
83939         * m4/extensions.m4: New file.
83940         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83941         Require gl_USE_SYSTEM_EXTENSIONS.
83942         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83943         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83944
83945 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83946
83947         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83948         * modules/extensions, modules/gnu-source: New files.
83949         * modules/timespec, modules/unlocked-io: Depend on extensions.
83950
83951 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83952
83953         * modules/restrict: New file.
83954         * MODULES.html.sh (func_all_modules): Add restrict.
83955         * modules/regex: Depend on restrict.
83956
83957 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83958
83959         * m4/restrict.m4: New file.
83960         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83961
83962 2003-08-07  Bruno Haible  <bruno@clisp.org>
83963
83964         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83965         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83966
83967 2003-08-07  Bruno Haible  <bruno@clisp.org>
83968
83969         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83970         makes the module 'getndelim2' compatible with the module 'getline'.
83971
83972 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83973
83974         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83975         byte with "\201" to avoid glitches when editing that source file
83976         with multi-gnome-terminal.
83977
83978 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83979
83980         * lib/bumpalloc.h: Remove.
83981
83982 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83983
83984         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83985         * modules/bumpalloc: Remove.
83986
83987 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83988
83989         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83990         GNU coding style.
83991
83992         Merge from coreutils.
83993         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83994         1. From glibc.
83995         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83996         from Karl Berry, implemented by Jim Meyering.
83997         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83998         from Dmitry V. Levin.
83999         Remove anachronistic cast of xrealloc.
84000         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84001         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84002         type. Otherwise, it wouldn't compile with at least /bin/cc on
84003         ymp-cray-unicos9.0.2.X.
84004         Combine two mostly-identical uses of alloca into one.
84005         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84006
84007 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84008
84009         [From Emacs.]
84010
84011         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84012         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84013         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84014         obsolete NLIST_NAME_UNION.
84015         [__GNU__]: Undef BSD and FSCALE.
84016         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84017
84018 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84019
84020         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84021         an enum type, so that it's guaranteed to promote to int.  See:
84022         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84023
84024 2003-08-03  Karl Berry  <karl@gnu.org>
84025
84026         * config/depcomp: update from automake.
84027
84028 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84029
84030         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84031         (strerror): Don't assume that a printable int fits in 14 bytes.
84032
84033 2003-07-31  Bruno Haible  <bruno@clisp.org>
84034
84035         * modules/getpass-gnu: New file.
84036         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84037
84038 2003-07-31  Bruno Haible  <bruno@clisp.org>
84039
84040         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84041
84042 2003-07-24  Karl Berry  <karl@gnu.org>
84043
84044         * config/missing: update from automake.
84045
84046 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84047             Bruno Haible  <bruno@clisp.org>
84048
84049         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84050         * lib/getline.c (getline, getdelim): Likewise.
84051         Remove _GNU_SOURCE define; now it's defined in config.h through
84052         m4/getline.m4.
84053
84054 2003-07-23  Karl Berry  <karl@gnu.org>
84055
84056         * config/config.sub: update from prep.
84057
84058 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84059
84060         * modules/xalloc (Depends-on): Add exitfail.
84061         * modules/xmemcoll: Likewise.
84062
84063 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84064
84065         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84066         over-parenthesization in macros.
84067
84068         Sync with coreutils.
84069
84070         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84071         required by C99.
84072
84073         Use `exit_failure' for xalloc and xmemcoll instead of their own
84074         private exit-failure variables.
84075         * lib/xalloc.h (xalloc_exit_failure): Remove.
84076         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84077         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84078         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84079         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84080         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84081
84082 2003-07-20  Jim Meyering  <jim@meyering.net>
84083
84084         * modules/closeout (Depends-on): Add exitfail.
84085         Suggestion from Bruno Haible.
84086
84087 2003-07-19  Karl Berry  <karl@gnu.org>
84088
84089         * config/config.sub: update from prep.
84090
84091 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84092
84093         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84094         Remove.
84095         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84096         to test that it can stand by itself.  Include "exitfail.h".
84097         Clients should set exit_failure instead.
84098         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84099
84100 2003-07-18  Bruno Haible  <bruno@clisp.org>
84101
84102         * modules/getndelim2: New file.
84103         * modules/getline: Share files with module getndelim2.
84104         * modules/getnline: Depend on getndelim2 instead of sharing files with
84105         it. Add getnline.c to lib_SOURCES.
84106         * MODULES.html.sh (func_all_modules): Add getndelim2.
84107
84108 2003-07-18  Bruno Haible  <bruno@clisp.org>
84109
84110         * m4/getndelim2.m4: New file.
84111         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84112         invoke gl_PREREQ_GETNDELIM2.
84113         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84114         gl_PREREQ_GETNDELIM2.
84115         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84116         gl_GETNDELIM2.
84117
84118 2003-07-18  Bruno Haible  <bruno@clisp.org>
84119
84120         * lib/getndelim2.h: New file.
84121         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84122         getndelim2.h.
84123         (getndelim2): Make non-static. Change return type to ssize_t.
84124         * lib/getline.h: Change argument names.
84125         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84126         * lib/getnline.c: Include getndelim2.h.
84127
84128 2003-07-18  Andreas Schwab  <schwab@suse.de>
84129
84130         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84131
84132 2003-07-17  Karl Berry  <karl@gnu.org>
84133
84134         * config/config.sub: update from prep.
84135
84136 2003-07-17  Bruno Haible  <bruno@clisp.org>
84137
84138         * modules/getnline: New file.
84139         * modules/getline: Add lib/getndelim2.c to source file list.
84140         * MODULES.html.sh (func_all_modules): Add getnline.
84141
84142 2003-07-17  Bruno Haible  <bruno@clisp.org>
84143
84144         * m4/getnline.m4: New file.
84145
84146 2003-07-17  Bruno Haible  <bruno@clisp.org>
84147
84148         * m4/Makefile.am.in: Remove file.
84149         * m4/Makefile.am: Remove file.
84150         * m4/Makefile.in: Remove file.
84151
84152 2003-07-17  Bruno Haible  <bruno@clisp.org>
84153
84154         * lib/getnline.h: New file.
84155         * lib/getnline.c: New file.
84156         * lib/getndelim2.c: New file, extracted from getline.c.
84157         (getndelim2): Renamed from getdelim2, with added nmax argument.
84158         * lib/getline.c: Include getndelim2.c.
84159         (getdelim2): Moved out to getndelim2.c.
84160         (getline, getdelim): Update.
84161
84162 2003-07-17  Bruno Haible  <bruno@clisp.org>
84163
84164         * lib/Makefile.am: Remove file.
84165         * lib/Makefile.in: Remove file.
84166
84167 2003-07-17  Bruno Haible  <bruno@clisp.org>
84168
84169         * configure.in: Remove file.
84170         * Makefile.in: Remove file.
84171
84172 2003-07-17  Bruno Haible  <bruno@clisp.org>
84173
84174         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84175
84176 2003-07-16  Karl Berry  <karl@gnu.org>
84177
84178         * config/srclist-update: was running fixlicense twice, which caused
84179                 texinfo.tex to be nullified for some reason.  Simplify,
84180                 $gplsrc is no longer needed as far as I can see?
84181
84182 2003-07-16  Jim Meyering  <jim@meyering.net>
84183
84184         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84185
84186 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84187
84188         * config/srclist.txt: Get the following files from gettext-runtime/intl
84189         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84190         ref-del.sin.  From Bruno Haible.
84191         * config/srclist-update (fixfile): Change grep pattern again, since the
84192         previous fix didn't work (there was another trailing $).  Use
84193         '[$]' to escape the $s.
84194
84195 2003-07-15  Karl Berry  <karl@gnu.org>
84196
84197         * lib/vasnprintf.c: update from gettext.
84198
84199 2003-07-15  Karl Berry  <karl@gnu.org>
84200
84201         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84202         gets expanded when surrounded by '$'.
84203
84204 2003-07-15  Jim Meyering  <jim@meyering.net>
84205
84206         * modules/save-cwd: Don't depend on error.  From Derek Price.
84207
84208 2003-07-15  Jim Meyering  <jim@meyering.net>
84209
84210         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84211
84212 2003-07-14  Simon Josefsson  <jas@extundo.com>
84213
84214         * modules/mempcpy: New file.
84215         * MODULES.html.sh (func_all_modules): Add mempcpy.
84216
84217 2003-07-14  Simon Josefsson  <jas@extundo.com>
84218
84219         * m4/mempcpy.m4: New file.
84220
84221 2003-07-14  Simon Josefsson  <jas@extundo.com>
84222
84223         * lib/mempcpy.h: New file.
84224         * lib/mempcpy.c: New file.
84225
84226 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84227
84228         * modules/getdate, modules/posixtm: Depend on mktime.
84229
84230 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84231
84232         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84233         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84234         unicodeio.c, unicodeio.h, unlocked-io.h:
84235         Switch from LGPL to GPL.
84236
84237 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84238
84239         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84240         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84241         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84242         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84243         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84244         updated automatically by ../config/srclist-update.  This changes
84245         their license from LPGL to GPL.
84246
84247 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84248
84249         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84250         assumed to refer to the root of the most recent stable gettext version.
84251         * config/srclistvars.sh: Add defaults for eggert.
84252         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84253         Match "This program" as well as "The program".  This is needed
84254         for gettext.
84255
84256 2003-07-14  Jim Meyering  <jim@meyering.net>
84257
84258         Don't emit diagnostics.  Let callers do that.
84259         * lib/save-cwd.c: Don't include "error.h".
84260         (save_cwd): Don't call error.  Ensure that errno is valid
84261         when returning nonzero.
84262
84263         * lib/save-cwd.h (restore_cwd): Update prototype.
84264         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84265         Simplify.  Don't call error upon failure.  Let callers do that.
84266         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84267         when auditing is enabled.  But don't bother updating the #if.
84268
84269 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84270
84271         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84272         it breaks C++ compilation.
84273         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84274
84275 2003-07-10  Simon Josefsson  <jas@extundo.com>
84276
84277         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84278
84279 2003-07-10  Jim Meyering  <jim@meyering.net>
84280
84281         * m4/clock_time.m4: Remove trailing blank.
84282         * m4/intmax_t.m4: Likewise.
84283
84284 2003-07-10  Jim Meyering  <jim@meyering.net>
84285
84286         * lib/vasnprintf.c: Remove trailing blanks.
84287         Make cpp indentation consistent.
84288
84289 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84290
84291         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84292         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84293         Switch from LGPL to GPL.
84294
84295 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84296
84297         * config/srclist.txt: Sort sublists.  Add
84298         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84299         that differ from gnulib for one reason or another; we'd like this list
84300         to be smaller but for now let's document what we have.
84301
84302 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84303
84304         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84305         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84306         and sweeter "eval x=$x".
84307         * config/srclist.txt: Get lib/argp* from glibc.
84308
84309 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84310
84311         * lib/mktime.c: Fix some boundary cases and remove need for floating
84312         point.
84313
84314         Issue a compile-time diagnostic if time_t is floating point, or if
84315         two's complement arithmetic is not in effect, or if arithmetic
84316         right shift does not propagate the sign.  These assumptions were
84317         all in the original code but they weren't checked.
84318
84319         (TIME_T_MIDPOINT, verify): New macros.
84320         (__isleap): Remove; it has integer overflow problems.
84321         (leapyear): New function, without those problems.
84322         (ydhms_tm_diff): Remove; splitting into two parts.
84323         (ydhms_diff): New function, containing the arithmetic part of
84324         the old ydhms_tm_diff function.  Issue a compile-time
84325         diagnostic if we are not using C99 integer division.
84326         Avoid casts when possible.
84327         (guess_time_tm): New function, containing the checking part of
84328         the old ydhms_tm_diff function.  Return the new value, rather than
84329         the difference between it and the old.  Accept a new argument T
84330         so that *T specifies the old value.  Check for overflow in the result.
84331
84332         (__mktime_internal): Use a time_t offset, not a long int offset.
84333         This undoes the 2003-06-04 change, which is no longer needed now
84334         that we have better overflow checking.
84335         (localtime_offset): Likewise.
84336
84337         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84338         and long are 64-bit but int is only 32-bit.
84339         (ydhms_diff): Use long int to store year1 and yday1.
84340         Issue a compile-time diagnostic if long int is not wide enough.
84341
84342         (__mktime_internal): Use long int to store adjusted year and yday.
84343         Use plain C rather than preprocessor commands, if that doesn't
84344         affect efficiency.
84345         Check for overflow (and try to repair) after each probe
84346         rather than checking only at the very end.  This avoids some bugs
84347         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84348         does not equal GMT offset at maximum time).
84349         Use integer to check for overflow rather than floating point; this
84350         is more portable to non-IEEE hosts, and is a tad faster.
84351         When we detect that we are oscillating between two values,
84352         don't check whether tm_isdst has the requested value, since
84353         we already know the answer.  When tm_isdst has the wrong value,
84354         use a different heuristic to find the right one, based on the
84355         extreme values actually observed in practice in tz2003a,
84356         rather than the (overly optimistic) "previous 3 calendar quarters".
84357
84358         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84359         "T const" to accommodate glibc style.
84360         (check_result): Use less-confusing report format.  "long" -> "long int.
84361         (main): Likewise.
84362         Don't loop if the iteration overflows time_t.
84363         Allow a negative step in the iteration.
84364
84365 2003-07-06  Karl Berry  <karl@gnu.org>
84366
84367         * config/depcomp: update from automake.
84368         * config/config.sub: update from prep.
84369
84370 2003-07-03  Karl Berry  <karl@gnu.org>
84371
84372         * config/config.guess: update from prep.
84373
84374 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84375
84376         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84377         xreadlink.c now includes it unconditionally.
84378
84379 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84380
84381         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84382         having it depend on HAVE_SYS_TYPES_H.
84383
84384 2003-07-01  Bruno Haible  <bruno@clisp.org>
84385
84386         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84387         <sys/types.h> should be sufficient.
84388         Reported by Paul Eggert.
84389
84390 2003-06-26  Karl Berry  <karl@gnu.org>
84391
84392         * config/depcomp: update from automake.
84393
84394 2003-06-26  Bruno Haible  <bruno@clisp.org>
84395
84396         * modules/human: Depend on module stdbool.
84397
84398 2003-06-25  Bruno Haible  <bruno@clisp.org>
84399
84400         * modules/readlink: New file.
84401         * modules/xreadlink: Depend on it.
84402         * MODULES.html.sh (func_all_modules): Add readlink.
84403
84404 2003-06-25  Bruno Haible  <bruno@clisp.org>
84405
84406         * m4/readlink.m4: New file.
84407
84408 2003-06-25  Bruno Haible  <bruno@clisp.org>
84409
84410         * lib/readlink.c: New file.
84411
84412 2003-06-22  Karl Berry  <karl@gnu.org>
84413
84414         * config/srclist.txt: update mkinstalldirs from automake.
84415         * config/mkinstalldirs: update.
84416
84417 2003-06-22  Bruno Haible  <bruno@clisp.org>
84418
84419         Portability to mingw32.
84420         * m4/ssize_t.m4: New file, from GNU gettext.
84421         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84422         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84423
84424 2003-06-22  Bruno Haible  <bruno@clisp.org>
84425
84426         * modules/safe-read: Add m4/ssize_t.m4.
84427         * modules/xreadlink: Add m4/ssize_t.m4.
84428
84429 2003-06-20  Bruno Haible  <bruno@clisp.org>
84430
84431         Assume C89, so PARAMS isn't needed.
84432         * lib/unicodeio.h (PARAMS): Remove.
84433         * lib/unicodeio.c: Don't use PARAMS.
84434
84435 2003-06-18  Karl Berry  <karl@gnu.org>
84436
84437         * config/config.{guess,sub}: update from prep.
84438
84439 2003-06-18  Jim Meyering  <jim@meyering.net>
84440
84441         Merge changes from coreutils.
84442         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84443         Remove explicit declarations of xmalloc and realloc.
84444         Include xalloc.h.
84445         (read_utmp): Remove anachronistic cast of xmalloc.
84446
84447 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84448
84449         Assume C89, so PARAMS isn't needed.
84450         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84451         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84452         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84453         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84454         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84455         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84456         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84457         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84458         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84459         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84460         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84461         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84462         no longer needed. Anyway, config.h should always be included before any
84463         other file.
84464
84465 2003-06-11  Simon Josefsson  <jas@extundo.com>
84466
84467         * modules/sysexits: New file.
84468         * MODULES.html.sh (func_all_modules): Add sysexits.
84469
84470 2003-06-11  Simon Josefsson  <jas@extundo.com>
84471
84472         * lib/sysexit_.h: New file.
84473
84474 2003-06-11  Derek Price  <derek@ximbiot.com>
84475
84476         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84477         necessary.
84478
84479 2003-06-11  Bruno Haible  <bruno@clisp.org>
84480
84481         * m4/sysexits.m4: New file.
84482
84483 2003-06-10  Simon Josefsson  <jas@extundo.com>
84484
84485         * lib/argp.h: New file, from glibc.
84486         * lib/argp-ba.c: New file, from glibc.
84487         * lib/argp-eexst.c: New file, from glibc.
84488         * lib/argp-fmtstream.c: New file, from glibc.
84489         * lib/argp-fmtstream.h: New file, from glibc.
84490         * lib/argp-fs-xinl.c: New file, from glibc.
84491         * lib/argp-help.c: New file, from glibc.
84492         * lib/argp-namefrob.h: New file, from glibc.
84493         * lib/argp-parse.c: New file, from glibc.
84494         * lib/argp-pv.c: New file, from glibc.
84495         * lib/argp-pvh.c: New file, from glibc.
84496         * lib/argp-xinl.c: New file, from glibc.
84497
84498 2003-06-10  Simon Josefsson  <jas@extundo.com>
84499
84500         * modules/strchrnul: New file.
84501
84502 2003-06-10  Simon Josefsson  <jas@extundo.com>
84503
84504         * modules/argp: New file.
84505
84506 2003-06-10  Simon Josefsson  <jas@extundo.com>
84507
84508         * m4/strchrnul.m4: New file.
84509
84510 2003-06-10  Simon Josefsson  <jas@extundo.com>
84511
84512         * lib/strchrnul.h: New file.
84513         * lib/strchrnul.c: New file.
84514
84515 2003-06-10  Bruno Haible  <bruno@clisp.org>
84516
84517         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84518
84519 2003-06-07  Karl Berry  <karl@gnu.org>
84520
84521         * config/config.{guess,sub}: update from prep.
84522
84523 2003-06-07  Jim Meyering  <jim@meyering.net>
84524
84525         * modules/strtod: Use $(...) notation, not @...@ for
84526         AC_REPLACE'd variables.
84527         * modules/localcharset: Likewise.
84528
84529 2003-06-07  Jim Meyering  <jim@meyering.net>
84530
84531         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84532         in place of my name in the copyright comment.
84533         Remove definition and uses of __P.
84534
84535         From coreutils.
84536         * lib/stat.c: Don't declare xmalloc explicitly.
84537         Instead, include "xalloc.h".
84538         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84539         xrealloc, and xcalloc return values.
84540         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84541         Improve comment.
84542         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84543
84544 2003-06-07  Bruno Haible  <bruno@clisp.org>
84545
84546         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84547         avoid AC_CONFIG_LINKS.
84548         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84549         fnmatch.h, to avoid AC_CONFIG_LINKS.
84550         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84551
84552 2003-06-07  Bruno Haible  <bruno@clisp.org>
84553
84554         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84555         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84556         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84557         directory.
84558         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84559         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84560         directory.
84561
84562 2003-06-06  Jim Meyering  <jim@meyering.net>
84563
84564         Merge from coreutils.
84565         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84566         Consolidate declarations and initializations of *_base* locals.
84567
84568         Merge from coreutils.
84569         This avoids a core dump on systems without GNU putenv,
84570         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84571         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84572         (unsetenv): New static function, from GNU libc.
84573         (rpl_putenv): Use it.
84574
84575         * lib/modechange.c: Remove trailing blanks.
84576
84577         Merge from coreutils.
84578         * lib/fsusage.c: Remove declaration of statfs.
84579         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84580
84581         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84582
84583 2003-06-06  Jim Meyering  <jim@meyering.net>
84584
84585         * lib/stdbool_.h: Renamed from stdbool.h.in.
84586
84587 2003-06-06  Jim Meyering  <jim@meyering.net>
84588             Bruno Haible  <bruno@clisp.org>
84589
84590         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84591         Adjust Makefile.am snippet not to redirect directly to target.
84592         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84593
84594 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84595
84596         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84597         mismatch, look in future quarters as well as past.  This fixes a
84598         bug when processing fall-backwards gaps immediately after a long
84599         period of daylight-saving time.
84600
84601         * lib/mktime.c: Assume freestanding C89 or better.
84602         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84603         (__P): Remove; not used.
84604         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84605         (mktime, not_equal_tm, print_tm, check_result,
84606         main): Use prototypes.  Use const * where appropriate.
84607         (main): Fix typo in testing code that uncovered by above changes.
84608         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84609
84610 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84611
84612         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84613         locale.h, localeconv.  This merges changes from coreutils.
84614
84615         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84616         It can be removed after the next Autoconf is released.
84617         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84618         needed.
84619
84620 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84621
84622         * lib/mktime.c: Fix Debian bug 177940
84623         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84624         (localtime_offset): Now long int, not time_t, because we want it
84625         to be guaranteed to be signed.  All uses changed.
84626         (__mktime_internal): If overflow would occur when adding offset,
84627         don't add it.
84628
84629         Merge 'human' changes from coreutils.  Rewrite to support
84630         locale-specific notations like thousands separators.
84631         * lib/human.c: Simplify authorship notice.
84632         Include human.h immediately after config.h.
84633         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84634         <limits.h>: Do not include, since human.h does.
84635         (SIZE_MAX, UINTMAX_MAX): New macros.
84636         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84637         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84638         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84639         (power_letter): Renamed from suffixes.
84640         (generate_suffix_backwards): Remove.
84641         (adjust_value): Now takes int style (because of human.h changes)
84642         and long double value (for greater precision on some platforms).
84643         (group_number): New function.
84644         (human_readable): Use it.  Use integer options, not enum.
84645         Put the options before the sizes in the arg list.
84646         Support all the new options.
84647         The old human_readable function has been removed;
84648         use inttostr.h instead.
84649         (human_readable, default_block_size, humblock):
84650         Use uintmax_t, not int, for block sizes.
84651         (human_readable_inexact, block_size_types): Remove.
84652         (block_size_opts): New constant.
84653         (human_options): Renamed from human_block_size, with new signature
84654         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84655         * lib/human.h: Add copyright and authorship notice.
84656         Include <limits.h> and <stdbool.h> unconditionally.
84657         (PARAMS): Remove.  All uses removed.
84658         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84659         (enum human_inexact_style): Remove tag; now a nameless enum.
84660         (human_floor, human_ceiling, human_round_to_even): Now have
84661         values 2, 0, 1 rather than -1, 1, 0.
84662         (human_group_digits, human_suppress_point_zero, human_autoscale,
84663         human_base_1024, human_SI, human_B): New constants.
84664         (human_readable_inexact, human_block_size): Remove.
84665         (human_readable): Size args are now uintmax_t, not int.
84666         (human_options): New decl.
84667
84668         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84669         unnecessary now that we assume C89 or better.  This change
84670         imported from coreutils.
84671
84672         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84673         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84674         in the 2003-05-30 sync from glibc.
84675
84676         .h files should stand alone, but we shouldn't include <sys/types.h>
84677         if we can get away with just <stddef.h>.
84678
84679         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84680         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84681         rather than <sys/types.h>, as we merely need size_t.
84682         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84683         to get size_t.
84684         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84685         Include <stdio.h>, to get FILE.
84686         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84687         memcasecmp.h has included <stddef.h> and all we need is size_t.
84688         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84689         our interface, instead of including <sys/types.h>
84690
84691 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84692
84693         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84694         now, as glibc mktime is buggy on non-glibc systems.
84695
84696 2003-06-03  Karl Berry  <karl@gnu.org>
84697
84698         * config/config.sub: update from prep.
84699
84700 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84701
84702         [from coreutils]
84703         Fix some minor time-related bugs with POSIX time arguments.
84704         Some valid time stamps were being rejected (notably -1, and
84705         time stamps before 1900 on 64-bit hosts).  And some invalid
84706         time stamps were being accepted, e.g. September 31.
84707
84708         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84709         that we can return (time_t) -1 successfully.
84710         * lib/posixtm.c: Likewise.
84711         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84712         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84713         (t): Remove static var.
84714         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84715         of static var.  All uses changed.
84716         (year): Do not reject years before 1900; they can occur with
84717         64-bit time_t.
84718         (posix_time_parse): Do not check for out-of-range components;
84719         that is now the caller's responsibility, since our checks were
84720         only approximations.
84721         (posixtime): Use mktime to check for out-of-range components,
84722         since it knows them exactly.
84723         If mktime returns (time_t) -1, check whether an error actually occurred
84724         by invoking localtime on -1.
84725         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84726         posixtime failures better.
84727         Improve the test data (in comments only).
84728
84729 2003-06-02  Karl Berry  <karl@gnu.org>
84730
84731         * config/mkinstalldirs (version): new variable.
84732         (--version): new option.
84733         (usage): improve message.
84734
84735 2003-05-30  Karl Berry  <karl@gnu.org>
84736
84737         * lib/mktime.c: update from libc.
84738
84739 2003-05-30  Bruno Haible  <bruno@clisp.org>
84740
84741         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84742         * config/config.rpath: Upgrade to gettext-0.12.1.
84743
84744 2003-05-30  Bruno Haible  <bruno@clisp.org>
84745
84746         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84747         * m4/nls.m4: New file, from gettext-0.12.1.
84748         * m4/po.m4: New file, from gettext-0.12.1.
84749         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84750
84751 2003-05-30  Bruno Haible  <bruno@clisp.org>
84752
84753         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84754         * lib/localcharset.h: Likewise.
84755         * lib/localcharset.c: Likewise.
84756
84757 2003-05-29  Karl Berry  <karl@gnu.org>
84758
84759         * config/config.rpath: update from gettext.
84760
84761 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84762
84763         Assume the headers required for C89 freestanding compilers.
84764         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84765         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84766         * m4/human.m4 (gl_HUMAN): Likewise.
84767         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84768         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84769         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84770         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84771         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84772         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84773
84774 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84775
84776         Assume the headers required for C89 freestanding compilers.
84777         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84778         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84779         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84780         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84781         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84782         define, since <limits.h> is guaranteed to do that.
84783         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84784         * lib/exclude.c: Include <stdbool.h> unconditionally.
84785         * lib/tempname.c: Include <stddef.h> unconditionally.
84786         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84787         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84788         <stddef.h> does that.
84789         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84790         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84791         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84792         needed.
84793         * lib/xstrtol.c: Likewise.
84794         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84795         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84796
84797         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84798         warnings on some platforms.
84799
84800         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84801         arbitrarily.
84802
84803 2003-05-26  Jim Meyering  <jim@meyering.net>
84804
84805         Merge in a change from coreutils:
84806         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84807         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84808         that condition, rather than `-1' which is slightly misleading.
84809         Change the name of the cache variable to have the gl_ prefix.
84810         Prompted by a patch from Richard Dawe for DJGPP.
84811
84812 2003-05-24  Karl Berry  <karl@gnu.org>
84813
84814         * config/config.guess: update from prep.
84815
84816 2003-05-22  Karl Berry  <karl@gnu.org>
84817
84818         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84819
84820 2003-05-20  Karl Berry  <karl@gnu.org>
84821
84822         * config/config.guess: update from prep.
84823
84824 2003-05-18  Karl Berry  <karl@gnu.org>
84825
84826         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84827         might actually be set by the user.
84828
84829         * config/depcomp, install-sh, mdate-sh: update from automake.
84830
84831 2003-05-17  Bruno Haible  <bruno@clisp.org>
84832
84833         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84834         invalid expansion for AC_EGREP_CPP.
84835         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84836         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84837         Suggested by Akim Demaille <akim@epita.fr> in
84838         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84839
84840 2003-05-12  Jim Meyering  <jim@meyering.net>
84841
84842         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84843         the space-padded-by-default conversion specifiers, %e, %k, %l.
84844
84845 2003-05-12  Bruno Haible  <bruno@clisp.org>
84846
84847         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84848         the string is longer than 4 KB.
84849
84850 2003-05-11  Karl Berry  <karl@gnu.org>
84851
84852         * config/config.{guess,sub}: update from prep.
84853
84854 2003-05-09  Bruno Haible  <bruno@clisp.org>
84855
84856         * modules/error: Add m4/strerror_r.m4 to file list.
84857
84858 2003-05-03  Bruno Haible  <bruno@clisp.org>
84859
84860         Upgrade to Unicode-4.0.
84861         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84862         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84863         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84864         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84865         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84866         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84867         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84868         Change width of U+E0100..U+E01EF from 1 to 0.
84869
84870 2003-04-25  Jim Meyering  <jim@meyering.net>
84871
84872         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84873         of type size_t, not int.
84874
84875 2003-04-25  Bruno Haible  <bruno@clisp.org>
84876
84877         * lib/copy-file.c: Include <stddef.h>, for size_t.
84878
84879 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84880
84881         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84882         code which expansion is under static control.  Patch imported from
84883         Akim Demaille's patch to Bison; see
84884         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84885
84886 2003-04-14  Bruno Haible  <bruno@clisp.org>
84887
84888         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84889
84890 2003-04-11  Jim Meyering  <jim@meyering.net>
84891
84892         Merge changes from Coreutils.
84893
84894         2003-03-22  Jim Meyering  <jim@meyering.net>
84895
84896         * lib/strftime.c (widen): Cast alloca return value to proper type.
84897
84898         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84899
84900         From GNU libc.
84901         * lib/strftime.c (my_strftime): Handle very large width
84902         specifications for numeric values correctly.  Improve checks for
84903         overflow.
84904
84905         2003-01-19  Jim Meyering  <jim@meyering.net>
84906
84907         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84908         definitions.
84909         (nl_get_alt_digit) [! defined my_strftime]: Define.
84910         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84911         _nl_get_alt_digit and _nl_get_walt_digit.
84912
84913         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84914         libc. These changes have no effect outside of _LIBC.
84915
84916 2003-04-10  Bruno Haible  <bruno@clisp.org>
84917
84918         * modules/findprog: New file.
84919         * MODULES.html.sh (func_all_modules): Add it.
84920
84921 2003-04-10  Bruno Haible  <bruno@clisp.org>
84922
84923         * m4/findprog.m4: New file.
84924         * m4/eaccess.m4: New file.
84925
84926 2003-04-10  Bruno Haible  <bruno@clisp.org>
84927
84928         * lib/findprog.h: New file, from GNU gettext.
84929         * lib/findprog.c: New file, from GNU gettext.
84930
84931 2003-04-05  Jim Meyering  <jim@meyering.net>
84932
84933         Merge changes from Coreutils.
84934
84935         * lib/exclude.h (PARAMS): Remove definition and uses.
84936         * lib/exclude.c: Remove uses of `PARAMS'.
84937
84938         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84939         Add test-cases for DOS filenames. Declare program_name.
84940         (main): Set up program_name.  Patch by Rich Dawe.
84941
84942         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84943         error from mntctl.
84944         Use mntctl's return value to drive the entry-processing loop, since
84945         we can't rely on the value of the vmt_length member in the last
84946         entry.  On some systems doing so could result in exhausting
84947         virtual memory.  Based in part on a patch from Mike Jetzer.
84948
84949 2003-04-04  Bruno Haible  <bruno@clisp.org>
84950
84951         * modules/linebreak: New file.
84952         * MODULES.html.sh (func_all_modules): Add it.
84953
84954 2003-04-04  Bruno Haible  <bruno@clisp.org>
84955
84956         * m4/linebreak.m4: New file.
84957
84958 2003-04-04  Bruno Haible  <bruno@clisp.org>
84959
84960         * lib/linebreak.h: New file, from GNU gettext.
84961         * lib/linebreak.c: New file, from GNU gettext with slight
84962         modifications.
84963         * lib/lbrkprop.h: New file, from GNU gettext.
84964
84965 2003-04-03  Bruno Haible  <bruno@clisp.org>
84966
84967         * modules/utf8-ucs4: New file.
84968         * modules/utf16-ucs4: New file.
84969         * modules/ucs4-utf8: New file.
84970         * modules/ucs4-utf16: New file.
84971         * MODULES.html.sh (func_all_modules): Add them.
84972
84973 2003-04-03  Bruno Haible  <bruno@clisp.org>
84974
84975         * m4/utf-ucs4.m4: New file.
84976         * m4/ucs4-utf.m4: New file.
84977
84978 2003-04-03  Bruno Haible  <bruno@clisp.org>
84979
84980         * lib/utf8-ucs4.h: New file, from GNU gettext.
84981         * lib/utf16-ucs4.h: New file, from GNU gettext.
84982         * lib/ucs4-utf8.h: New file, from GNU gettext.
84983         * lib/ucs4-utf16.h: New file, from GNU gettext.
84984
84985 2003-04-02  Bruno Haible  <bruno@clisp.org>
84986
84987         * modules/binary-io: New file.
84988         * MODULES.html.sh (func_all_modules): Add it.
84989
84990 2003-04-02  Bruno Haible  <bruno@clisp.org>
84991
84992         * lib/binary-io.h: New file, from GNU gettext.
84993
84994 2003-04-01  Bruno Haible  <bruno@clisp.org>
84995
84996         * modules/pathname: New file.
84997         * MODULES.html.sh (func_all_modules): Add it.
84998
84999 2003-04-01  Bruno Haible  <bruno@clisp.org>
85000
85001         * lib/pathname.h: New file, from GNU gettext.
85002         * lib/concatpath.c: New file, from GNU gettext.
85003
85004 2003-03-30  Bruno Haible  <bruno@clisp.org>
85005
85006         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85007
85008 2003-03-30  Bruno Haible  <bruno@clisp.org>
85009
85010         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85011         function chown() doesn't exist.
85012
85013 2003-03-28  Bruno Haible  <bruno@clisp.org>
85014
85015         * modules/copy-file: New file.
85016         * MODULES.html.sh (func_all_modules): Add it.
85017
85018 2003-03-28  Bruno Haible  <bruno@clisp.org>
85019
85020         * m4/copy-file.m4: New file.
85021
85022 2003-03-28  Bruno Haible  <bruno@clisp.org>
85023
85024         * lib/copy-file.h: New file, from GNU gettext.
85025         * lib/copy-file.c: New file, from GNU gettext.
85026
85027 2003-03-18  Jim Meyering  <jim@meyering.net>
85028
85029         * lib/quote.c (quote_n): Fix typo in comment.
85030
85031 2003-03-18  Bruno Haible  <bruno@clisp.org>
85032
85033         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85034         checking.
85035         * m4/onceonly_2_57.m4: Likewise.
85036
85037 2003-03-17  Bruno Haible  <bruno@clisp.org>
85038
85039         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85040         (m4_quote): Remove macro.
85041         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85042
85043 2003-03-14  Jim Meyering  <jim@meyering.net>
85044
85045         Merge changes from Coreutils.
85046         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85047         to be const, in order to avoid warnings.
85048         (obstack_room): Likewise.
85049         (obstack_empty_p): Likewise.
85050
85051 2003-03-14  Bruno Haible  <bruno@clisp.org>
85052
85053         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85054         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85055
85056 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85057
85058         Merge changes from Bison.
85059         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85060         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85061         when compiling Bison 1.875's `bitset bset = obstack_alloc
85062         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85063         * lib/hash.c: Include <stdbool.h> unconditionally.
85064
85065 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85066
85067         * m4/onceonly.m4 (m4_quote): New macro.
85068         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85069         Quote AC_FOREACH variable-expansions properly.
85070
85071 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85072
85073         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85074
85075 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85076
85077         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85078         Reported by Bruce Becker; see:
85079         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85080
85081 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85082             Bruno Haible  <bruno@clisp.org>
85083
85084         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85085         Reported by John Hughes, see
85086         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85087
85088 2003-02-20  Bruno Haible  <bruno@clisp.org>
85089
85090         * MODULES.html.sh (func_all_modules): Add poll.
85091
85092 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85093
85094         * modules/poll: New file.
85095
85096 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85097
85098         * lib/poll_.h: New file.
85099         * lib/poll.c: New file.
85100
85101 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85102
85103         * m4/poll.m4: New file.
85104
85105 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85106
85107         * modules/mathl: New file.
85108
85109 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85110
85111         * lib/mathl.h: New file.
85112         * lib/acosl.c: New file.
85113         * lib/asinl.c: New file.
85114         * lib/atanl.c: New file.
85115         * lib/ceill.c: New file.
85116         * lib/cosl.c: New file.
85117         * lib/expl.c: New file.
85118         * lib/floorl.c: New file.
85119         * lib/frexpl.c: New file.
85120         * lib/ldexpl.c: New file.
85121         * lib/logl.c: New file.
85122         * lib/sincosl.c: New file.
85123         * lib/sinl.c: New file.
85124         * lib/sqrtl.c: New file.
85125         * lib/tanl.c: New file.
85126         * lib/trigl.c: New file.
85127         * lib/trigl.h: New file.
85128
85129 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85130
85131         * m4/mathl.m4: New file.
85132
85133 2003-02-18  Bruno Haible  <bruno@clisp.org>
85134
85135         * MODULES.html.sh (func_all_modules): Add mathl.
85136
85137 2003-02-17  Bruno Haible  <bruno@clisp.org>
85138
85139         * modules/mkdtemp: New module.
85140         * MODULES.html.sh (func_all_modules): Add it.
85141
85142 2003-02-17  Bruno Haible  <bruno@clisp.org>
85143
85144         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85145
85146 2003-02-17  Bruno Haible  <bruno@clisp.org>
85147
85148         * lib/mkdtemp.h: New file, from GNU gettext.
85149         * lib/mkdtemp.c: New file, from GNU gettext.
85150
85151 2003-02-02  Jim Meyering  <jim@meyering.net>
85152
85153         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85154         e.g. glibc-2.2.93.
85155
85156 2003-01-31  Bruno Haible  <bruno@clisp.org>
85157
85158         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85159         'rpl_rename'.
85160         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85161         'rpl_strnlen'.
85162         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85163         'rpl_strtod'.
85164         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85165         'rpl_utime'.
85166
85167 2003-01-31  Bruno Haible  <bruno@clisp.org>
85168
85169         * lib/rename.c: #undef rename before defining rpl_rename.
85170         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85171
85172 2003-01-30  Bruno Haible  <bruno@clisp.org>
85173
85174         * modules/vasnprintf, modules/vasprintf: New modules.
85175         * MODULES.html.sh (func_all_modules): Add them.
85176
85177 2003-01-30  Bruno Haible  <bruno@clisp.org>
85178
85179         * m4/signed.m4: New file, from GNU gettext.
85180         * m4/longdouble.m4: New file, from GNU gettext.
85181         * m4/wchar_t.m4: New file, from GNU gettext.
85182         * m4/wint_t.m4: New file, from GNU gettext.
85183         * m4/vasnprintf.m4: New file.
85184         * m4/vasprintf.m4: New file.
85185
85186 2003-01-30  Bruno Haible  <bruno@clisp.org>
85187
85188         * lib/printf-args.h: New file, from GNU gettext.
85189         * lib/printf-args.c: New file, from GNU gettext.
85190         * lib/printf-parse.h: New file, from GNU gettext.
85191         * lib/printf-parse.c: New file, from GNU gettext.
85192         * lib/vasnprintf.h: New file, from GNU gettext.
85193         * lib/vasnprintf.c: New file, from GNU gettext.
85194         * lib/asnprintf.c: New file, from GNU gettext.
85195         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85196         * lib/vasprintf.c: New file, from GNU gettext.
85197         * lib/asprintf.c: New file, from GNU gettext.
85198
85199 2003-01-29  Bruno Haible  <bruno@clisp.org>
85200
85201         * modules/stpncpy: New module.
85202         * MODULES.html.sh (func_all_modules): Add it.
85203
85204 2003-01-29  Bruno Haible  <bruno@clisp.org>
85205
85206         * m4/stpncpy.m4: New file.
85207
85208 2003-01-29  Bruno Haible  <bruno@clisp.org>
85209
85210         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85211         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85212
85213 2003-01-28  Bruno Haible  <bruno@clisp.org>
85214
85215         * modules/c-ctype: New module.
85216         * MODULES.html.sh (func_all_modules): Add it.
85217
85218 2003-01-28  Bruno Haible  <bruno@clisp.org>
85219
85220         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85221         Paul Eggert.
85222         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85223         Paul Eggert.
85224
85225 2003-01-27  Bruno Haible  <bruno@clisp.org>
85226
85227         * modules/xsetenv: New module.
85228         * MODULES.html.sh (func_all_modules): Add it.
85229
85230 2003-01-27  Bruno Haible  <bruno@clisp.org>
85231
85232         * lib/xsetenv.h: New file, from GNU gettext.
85233         * lib/xsetenv.c: New file, from GNU gettext.
85234
85235 2003-01-23  Jim Meyering  <jim@meyering.net>
85236
85237         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85238         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85239
85240 2003-01-23  Bruno Haible  <bruno@clisp.org>
85241
85242         * modules/minmax: New module.
85243         * MODULES.html.sh (func_all_modules): Add it.
85244
85245 2003-01-23  Bruno Haible  <bruno@clisp.org>
85246
85247         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85248         Eggert.
85249
85250 2003-01-22  Bruno Haible  <bruno@clisp.org>
85251
85252         * modules/exit: New module.
85253         * MODULES.html.sh (func_all_modules): Add it.
85254
85255 2003-01-22  Bruno Haible  <bruno@clisp.org>
85256
85257         * lib/exit.h: New file, from GNU gettext.
85258
85259 2003-01-19  Bruno Haible  <bruno@clisp.org>
85260
85261         * gnulib-tool: Recognize option --extract-maintainer.
85262         (func_get_maintainer): New function.
85263         * modules/*: Add Maintainer entry.
85264
85265 2003-01-16  Jim Meyering  <jim@meyering.net>
85266
85267         * m4/regex.m4: The `regex' struct is both input and output.
85268         Initialize it before each use.  Patch by Tim Waugh.
85269
85270 2003-01-16  Bruno Haible  <bruno@clisp.org>
85271
85272         * MODULES.html.sh: Add a table of contents. Add the module name as
85273         leftmost column. Add hyperlinks.
85274
85275 2003-01-15  Bruno Haible  <bruno@clisp.org>
85276
85277         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85278
85279 2003-01-15  Bruno Haible  <bruno@clisp.org>
85280
85281         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85282         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85283         suffix.
85284
85285 2003-01-15  Bruno Haible  <bruno@clisp.org>
85286
85287         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85288
85289 2003-01-15  Bruno Haible  <bruno@clisp.org>
85290
85291         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85292         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85293
85294 2003-01-14  Jim Meyering  <jim@meyering.net>
85295
85296         * lib/same.c (same_name): Tweak a comment.
85297
85298 2003-01-14  Bruno Haible  <bruno@clisp.org>
85299
85300         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85301         when a string comparison is sufficient.
85302
85303 2003-01-14  Bruno Haible  <bruno@clisp.org>
85304
85305         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85306         'unsigned int'.
85307
85308 2003-01-14  Bruno Haible  <bruno@clisp.org>
85309
85310         * lib/hash-pjw.c: Add comment about low quality of this function.
85311
85312 2003-01-13  Bruno Haible  <bruno@clisp.org>
85313
85314         * modules/stpcpy: Distribute lib/stpcpy.h.
85315         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85316
85317 2003-01-13  Bruno Haible  <bruno@clisp.org>
85318
85319         * modules/*: Add a description.
85320         * modules/strpbrk: Fix Makefile.am snippet.
85321         * modules/strtoimax: Fix dependencies.
85322         * modules/strtoumax: Likewise.
85323
85324 2003-01-13  Bruno Haible  <bruno@clisp.org>
85325
85326         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85327         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85328         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85329
85330 2003-01-13  Bruno Haible  <bruno@clisp.org>
85331
85332         * gnulib-tool (func_create_testdir): Store config/* files in the main
85333         directory.
85334         * config.rpath: Move to ...
85335         * config/config.rpath: ... here.
85336         * modules/gettext: Contains config/config.rpath, not config.rpath.
85337         * modules/iconv: Likewise.
85338
85339 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85340
85341         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85342         to avoid collisions with libcurses and libreadline.
85343
85344         * m4/getstr.m4: Remove.
85345         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85346
85347 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85348
85349         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85350         to avoid collisions with libcurses and libreadline.
85351
85352         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85353         * lib/getstr.h, getstr.c: Remove.
85354         * lib/getline.c: Include "getline.h", to check interface.
85355         Move body of old getstr.c here: this defines MIN_CHUNK and
85356         declares getdelim2, which is renamed from getstr.
85357         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85358
85359         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85360         All uses changed.
85361         * lib/linebuffer.h: Likewise.
85362         (readline): Remove backward-compatibility macro.
85363
85364 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85365
85366         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85367         to avoid collisions with libcurses and libreadline.
85368         * getstr: Remove.
85369         * MODULES.html.sh: Remove getstr.
85370         * modules/getline: Depend on unlocked-io, not getstr.
85371
85372 2003-01-12  Jim Meyering  <jim@meyering.net>
85373
85374         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85375
85376 2003-01-10  Bruno Haible  <bruno@clisp.org>
85377
85378         * modules/alloca: Change Makefile.am requirements. Simplify Include
85379         requirements. Add lib/alloca_.h to file list.
85380
85381 2003-01-10  Bruno Haible  <bruno@clisp.org>
85382
85383         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85384
85385 2003-01-10  Bruno Haible  <bruno@clisp.org>
85386
85387         * lib/alloca_.h: New file.
85388         * lib/getdate.y: Unconditionally include alloca.h.
85389         * lib/makepath.c: Likewise.
85390         * lib/setenv.c: Likewise.
85391         * lib/userspec.c: Likewise.
85392
85393 2003-01-09  Karl Berry  <karl@gnu.org>
85394
85395         * MODULES.html.sh: include `dirname $0` in PATH, to find
85396         gnulib-tool.
85397
85398 2003-01-09  Bruno Haible  <bruno@clisp.org>
85399
85400         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85401         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85402
85403 2003-01-09  Bruno Haible  <bruno@clisp.org>
85404
85405         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85406
85407 2003-01-09  Bruno Haible  <bruno@clisp.org>
85408
85409         * lib/stdbool.h.in: New file.
85410
85411 2003-01-09  Bruno Haible  <bruno@clisp.org>
85412
85413         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85414         * MODULES.html.sh: Likewise.
85415
85416 2003-01-08  Jim Meyering  <jim@meyering.net>
85417
85418         * lib/full-write.c: Undefine and define-away `const' after inclusion
85419         of errno.h, not before.  Suggestion from Bruno Haible.
85420
85421 2003-01-08  Bruno Haible  <bruno@clisp.org>
85422
85423         * modules/full-read: Depend on full-write.
85424
85425 2003-01-08  Bruno Haible  <bruno@clisp.org>
85426
85427         * lib/safe-read.c: Include specification header first, to ensure its
85428         selfcontainedness.
85429         * lib/full-write.c: Likewise.
85430
85431 2003-01-07  Jim Meyering  <jim@meyering.net>
85432
85433         * lib/full-write.c: Rework so that it may serve to define full_read,
85434         too.
85435         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85436
85437 2003-01-07  Bruno Haible  <bruno@clisp.org>
85438
85439         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85440         <inttypes.h>.
85441         * lib/xstrtol.h: Likewise.
85442         * lib/xstrtoimax.c: Likewise.
85443         * lib/xstrtoumax.c: Likewise.
85444         * lib/human.h: Likewise.
85445
85446         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85447         on systems that have <inttypes.h> but not <stdint.h>.
85448
85449 2003-01-07  Bruno Haible  <bruno@clisp.org>
85450
85451         * MODULES.html.sh: Add copyright notice.
85452         (missed_files): Omit CVS directory entries.
85453         (func_module): Make it work with sed-3.02.
85454         * MODULES.txt: Remove file.
85455
85456 2003-01-06  Jim Meyering  <jim@meyering.net>
85457
85458         * lib/version-etc.c: Update year in translatable copyright string.
85459
85460 2003-01-03  Karl Berry  <karl@gnu.org>
85461
85462         * config/config.{guess,sub}: update from prep.
85463
85464 2003-01-02  Karl Berry  <karl@gnu.org>
85465
85466         * doc/COPYING.DOC: belatedly updated to 1.2.
85467
85468 2003-01-01  Karl Berry  <karl@gnu.org>
85469
85470         * gnulib-tool (func_verify_module): report module name $module in
85471         error message, not $1.
85472         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85473         be created, only if it doesn't exist.
85474         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85475
85476 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85477
85478         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85479
85480 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85481
85482         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85483         memcmp if strcoll doesn't work.
85484
85485 2002-12-31  Bruno Haible  <bruno@clisp.org>
85486
85487         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85488         nonempty.
85489
85490 2002-12-31  Bruno Haible  <bruno@clisp.org>
85491
85492         * lib/memcoll.c (STRCOLL): New macro.
85493         (memcoll): Use it.
85494
85495 2002-12-31  Bruno Haible  <bruno@clisp.org>
85496
85497         * lib/localcharset.h: New file.
85498         * lib/localcharset.c: Include it.
85499         * lib/unicodeio.c: Likewise.
85500
85501 2002-12-31  Bruno Haible  <bruno@clisp.org>
85502
85503         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85504         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85505
85506 2002-12-31  Bruno Haible  <bruno@clisp.org>
85507
85508         * lib/getline.h: Include <stddef.h>, for size_t.
85509
85510         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85511         * lib/unicodeio.c: Don't include <stddef.h>.
85512
85513 2002-12-31  Bruno Haible  <bruno@clisp.org>
85514
85515         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85516         HAVE_TM_ZONE.
85517
85518 2002-12-24  Karl Berry  <karl@gnu.org>
85519
85520         * config/config.guess: update from prep.
85521
85522 2002-12-24  Bruno Haible  <bruno@clisp.org>
85523
85524         General infrasructure.
85525         * m4/README: Rewritten.
85526         * m4/onceonly.m4: New file.
85527         * m4/onceonly_2_57.m4: New file.
85528
85529         Module atexit.
85530         * m4/atexit.m4: New file.
85531
85532         Module strtod.
85533         * m4/strtod.m4: New file.
85534
85535         Module strtol.
85536         * m4/strtol.m4: New file.
85537
85538         Module strtoul.
85539         * m4/strtoul.m4: New file.
85540
85541         Module memchr.
85542         * m4/memchr.m4: New file.
85543
85544         Module memcmp.
85545         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85546         (jm_FUNC_MEMCMP): Invoke it.
85547
85548         Module memcpy.
85549         * m4/memcpy.m4: New file.
85550
85551         Module memmove.
85552         * m4/memmove.m4: New file.
85553
85554         Module memset.
85555         * m4/memset.m4: New file.
85556
85557         Module strcspn.
85558         * m4/strcspn.m4: New file.
85559
85560         Module strpbrk.
85561         * m4/strpbrk.m4: New file.
85562
85563         Module strstr.
85564         * m4/strstr.m4: New file.
85565
85566         Module strerror.
85567         * m4/strerror.m4: New file.
85568
85569         Module mktime.
85570         * m4/mktime.m4: Renamed from jm-mktime.m4.
85571         (gl_PREREQ_MKTIME): New macro.
85572         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85573
85574         Module malloc.
85575         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85576         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85577         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85578
85579         Module realloc.
85580         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85581         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85582         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85583
85584         Module strftime.
85585         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85586         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85587         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85588         gl_TM_GMTOFF.
85589         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85590
85591         Module xalloc.
85592         * m4/xalloc.m4: New file.
85593
85594         Module alloca.
85595         * m4/alloca.m4: New file.
85596
85597         Module putenv.
85598         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85599         (jm_FUNC_PUTENV): Invoke it.
85600
85601         Module setenv.
85602         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85603         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85604         when invoked twice.
85605         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85606         gt_FUNC_SETENV.
85607
85608         Module memrchr.
85609         * m4/memrchr.m4: New file.
85610
85611         Module stpcpy.
85612         * m4/stpcpy.m4: New file.
85613
85614         Module strcase.
85615         * m4/strcase.m4: New file.
85616
85617         Module strdup.
85618         * m4/strdup.m4: New file.
85619
85620         Module strnlen.
85621         * m4/strnlen.m4: New file.
85622
85623         Module strndup.
85624         * m4/strndup.m4: New file.
85625
85626         Module xstrtod.
85627         * m4/xstrtod.m4: New file.
85628
85629         Module xstrtol.
85630         * m4/xstrtol.m4: New file.
85631
85632         Module getdate.
85633         * m4/getdate.m4: New file.
85634
85635         Module unlocked-io.
85636         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85637         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85638         * m4/jm-glibc-io.m4n: Remove file.
85639
85640         Module long-options.
85641         * m4/long-options.m4: New file.
85642
85643         Module md5.
85644         * m4/md5.m4: New file.
85645
85646         Module sha.
85647         * m4/sha.m4: New file.
85648
85649         Module getstr.
85650         * m4/getstr.m4: New file.
85651
85652         Module getline.
85653         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85654         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85655         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85656         simply getline. Infoke gl_PREREQ_GETLINE.
85657
85658         Module obstack.
85659         * m4/obstack.m4: New file.
85660
85661         Module hash.
85662         * m4/hash.m4: New file.
85663
85664         Module readtokens.
85665         * m4/readtokens.m4: New file.
85666
85667         Module strverscmp.
85668         * m4/strverscmp.m4: New file.
85669
85670         Module stdbool.
85671         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85672         OSF/1.
85673
85674         Module strtoll.
85675         * m4/strtoll.m4: New file.
85676
85677         Module strtoull.
85678         * m4/strtoull.m4: New file.
85679
85680         Module strtoimax.
85681         * m4/strtoimax.m4: New file.
85682
85683         Module strtoumax.
85684         * m4/strtoumax.m4: New file.
85685
85686         Module xstrtoimax.
85687         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85688         jm_AC_PREREQ_XSTRTOIMAX.
85689         Moved the strtol prerequisites to strtol.m4.
85690         Moved the strtoll prerequisites to strtoll.m4.
85691         Moved the strtoimax prerequisites to strtoimax.m4.
85692
85693         Module xstrtoumax.
85694         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85695         jm_AC_PREREQ_XSTRTOUMAX.
85696         Moved the strtoul prerequisites to strtoul.m4.
85697         Moved the strtoull prerequisites to strtoull.m4.
85698         Moved the strtoumax prerequisites to strtoumax.m4.
85699
85700         Module chown.
85701         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85702         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85703
85704         Module dup2.
85705         * m4/dup2.m4: New file.
85706
85707         Module ftruncate.
85708         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85709         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85710
85711         Module getgroups.
85712         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85713         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85714
85715         Module gettimeofday.
85716         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85717         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85718         gl_PREREQ_GETTIMEOFDAY.
85719
85720         Module mkdir.
85721         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85722         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85723
85724         Module mkstemp.
85725         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85726         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85727         jm_AC_TYPE_UINTMAX_T.
85728         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85729
85730         Module stat.
85731         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85732         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85733
85734         Module lstat.
85735         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85736         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85737
85738         Module timespec.
85739         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85740         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85741         * m4/st_mtim.m4: Indentation.
85742
85743         Module nanosleep.
85744         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85745         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85746         gl_PREREQ_NANOSLEEP.
85747
85748         Module regex.
85749         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85750         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85751         (gl_REGEX): New macro.
85752
85753         Module rename.
85754         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85755         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85756
85757         Module rmdir.
85758         * m4/rmdir.m4: New file.
85759
85760         Module utime.
85761         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85762         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85763         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85764
85765         Module dirname.
85766         * m4/dirname.m4: New file.
85767
85768         Module getopt.
85769         * m4/getopt.m4: New file.
85770
85771         Module unistd-safer.
85772         * m4/unistd-safer.m4: New file.
85773
85774         Module fnmatch.
85775         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85776         declaration.
85777         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85778         (gl_FUNC_FNMATCH_POSIX): New macro.
85779         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85780         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85781         simply fnmatch.
85782
85783         Module exclude.
85784         * m4/exclude.m4: New file.
85785
85786         Module human.
85787         * m4/human.m4: New file.
85788
85789         Module acl.
85790         * m4/acl.m4: Nop.
85791
85792         Module backupfile.
85793         * m4/backupfile.m4: New file.
85794         * m4/d-ino.m4: Indentation.
85795
85796         Module fsusage.
85797         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85798         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85799         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85800
85801         Module dirfd.
85802         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85803         requirements.
85804
85805         Module euidaccess.
85806         * m4/euidaccess.m4: New file.
85807
85808         Module file-type.
85809         * m4/file-type.m4: New file.
85810
85811         Module fileblocks.
85812         * m4/fileblocks.m4: New file.
85813
85814         Module filemode.
85815         * m4/filemode.m4: New file.
85816
85817         Module isdir.
85818         * m4/isdir.m4: New file.
85819
85820         Module lchown.
85821         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85822         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85823
85824         Module makepath.
85825         * m4/makepath.m4: New file.
85826
85827         Module modechange.
85828         * m4/modechange.m4: New file.
85829
85830         Module mountlist.
85831         * m4/mountlist.m4: New file.
85832         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85833         Indentation.
85834
85835         Module path-concat.
85836         * m4/path-concat.m4: New file.
85837
85838         Module pathmax.
85839         * m4/pathmax.m4: New file.
85840
85841         Module same.
85842         * m4/same.m4: New file.
85843
85844         Module save-cwd.
85845         * m4/save-cwd.m4: New file.
85846
85847         Module savedir.
85848         * m4/savedir.m4: New file.
85849
85850         Module xgetcwd.
85851         * m4/xgetcwd.m4: New file.
85852         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85853
85854         Module xreadlink.
85855         * m4/xreadlink.m4: New file.
85856
85857         Module safe-read.
85858         * m4/safe-read.m4: New file.
85859
85860         Module safe-write.
85861         * m4/safe-write.m4: New file.
85862
85863         Module closeout.
85864         * m4/closeout.m4: New file.
85865
85866         Module stdio-safer.
85867         * m4/stdio-safer.m4: New file.
85868
85869         Module getpass.
85870         * m4/getpass.m4: New file.
85871
85872         Module getugroups.
85873         * m4/getugroups.m4: New file.
85874
85875         Module group-member.
85876         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85877         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85878
85879         Module idcache.
85880         * m4/idcache.m4: New file.
85881
85882         Module userspec.
85883         * m4/userspec.m4: New file.
85884
85885         Module gettime.
85886         * m4/clock_time.m4: New file.
85887         * m4/gettime.m4: New file.
85888
85889         Module settime.
85890         * m4/settime.m4: New file.
85891
85892         Module posixtm.
85893         * m4/posixtm.m4: New file.
85894
85895         Module gethostname.
85896         * m4/gethostname.m4: New file.
85897
85898         Module canon-host.
85899         * m4/canon-host.m4: New file.
85900
85901         Module gettext.
85902         * m4/codeset.m4: New file, from gettext-0.11.5.
85903         * m4/gettext.m4: New file, from gettext-0.11.5.
85904         * m4/glibc21.m4: New file, from gettext-0.11.5.
85905         * m4/iconv.m4: New file, from gettext-0.11.5.
85906         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85907         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85908         * m4/inttypes.m4: New file, from gettext-0.11.5.
85909         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85910         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85911         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85912         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85913         * m4/lib-link.m4: New file, from gettext-0.11.5.
85914         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85915         * m4/progtest.m4: New file, from gettext-0.11.5.
85916         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85917         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85918         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85919
85920         Module localcharset.
85921         * m4/localcharset.m4: New file.
85922
85923         Module hard-locale.
85924         * m4/hard-locale.m4: New file.
85925
85926         Module mbswidth.
85927         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85928         onceonly macros.
85929         * m4/mbrtowc.m4: Add comment.
85930
85931         Module memcasecmp.
85932         * m4/memcasecmp.m4: New file.
85933
85934         Module memcoll.
85935         * m4/memcoll.m4: New file.
85936
85937         Module unicodeio.
85938         * m4/unicodeio.m4: New file.
85939
85940         Module rpmatch.
85941         * m4/rpmatch.m4: New file.
85942
85943         Module yesno.
85944         * m4/yesno.m4: New file.
85945
85946         Module exitfail.
85947         * m4/exitfail.m4: New file.
85948
85949         Module c-stack.
85950         * m4/c-stack.m4 (gl_C_STACK): New macro.
85951         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85952
85953         Module error.
85954         * m4/error.m4 (gl_ERROR): New macro.
85955         (jm_PREREQ_ERROR): Use onceonly macros.
85956
85957         Module fatal.
85958         * m4/fatal.m4: New file.
85959
85960         Module getloadavg.
85961         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85962         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85963
85964         Module getpagesize.
85965         * m4/getpagesize.m4: New file.
85966
85967         Module getusershell.
85968         * m4/getusershell.m4: New file.
85969
85970         Module physmem.
85971         * m4/physmem.m4: New file.
85972
85973         Module posixver.
85974         * m4/posixver.m4: New file.
85975
85976         Module quotearg.
85977         * m4/quotearg.m4: New file.
85978
85979         Module quote.
85980         * m4/quote.m4: New file.
85981
85982         Module readutmp.
85983         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85984
85985         Module sig2str.
85986         * m4/sig2str.m4: New file.
85987
85988         Other.
85989         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85990         ulonglong.m4.
85991         * m4/intmax_t.m4: New file.
85992         * m4/d-type.m4: Indentation.
85993         * m4/jm-macros.m4: Update.
85994         * m4/prereq.m4 (jm_PREREQ): Update.
85995         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85996         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85997         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85998         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85999         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86000         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86001         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86002         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86003         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86004         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86005         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86006         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86007         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86008         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86009         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86010         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86011         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86012         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86013         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86014
86015 2002-12-24  Bruno Haible  <bruno@clisp.org>
86016
86017         * MODULES.txt: Update according to m4/ changes.
86018
86019         Module gettext.
86020         * config.rpath: New file, from gettext-0.11.5.
86021
86022         * modules/*: New module descriptions.
86023         * gnulib-tool: New file.
86024         * MODULES.html.sh: New file.
86025
86026 2002-12-21  Karl Berry  <karl@gnu.org>
86027
86028         * doc/fdl.texi: update to version 1.2.
86029
86030 2002-12-19  Karl Berry  <karl@gnu.org>
86031
86032         * config/config.guess: update from prep.
86033
86034 2002-12-18  Bruno Haible  <bruno@clisp.org>
86035
86036         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86037         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86038
86039 2002-12-17  Bruno Haible  <bruno@clisp.org>
86040
86041         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86042         stdlib.h, string.h.
86043
86044 2002-12-17  Bruno Haible  <bruno@clisp.org>
86045
86046         * lib/canon-host.c (strdup): Remove unused declaration.
86047
86048         * lib/fsusage.c: Include full_read.h.
86049         (get_fs_usage): Use full_read instead of safe_read.
86050
86051         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86052
86053 2002-12-12  Karl Berry  <karl@gnu.org>
86054
86055         * config/config.guess: update from prep.
86056
86057 2002-12-11  Bruno Haible  <bruno@clisp.org>
86058
86059         * m4/setenv.m4: New file, from gettext-0.11.5.
86060
86061 2002-12-11  Bruno Haible  <bruno@clisp.org>
86062
86063         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86064         not unsetenv().
86065         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86066         modifications:
86067
86068         2002-12-11  Bruno Haible  <bruno@clisp.org>
86069
86070                 * setenv.c (alloca): Fall back to malloc.
86071                 (freea): New macro.
86072                 (setenv): Use freea() to free memory allocated with alloca().
86073
86074         2002-11-13  Bruno Haible  <bruno@clisp.org>
86075
86076                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86077                 function declarations.
86078                 * unsetenv.c (unsetenv): Likewise.
86079
86080         2002-03-04  Bruno Haible  <bruno@clisp.org>
86081
86082                 Portability to AIX 4.3.3.
86083                 * unsetenv.c: New file, extracted from setenv.c.
86084                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86085
86086         2001-12-20  Bruno Haible  <bruno@clisp.org>
86087
86088                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86089                 use malloc instead. For SunOS 4.
86090
86091         2001-12-11  Bruno Haible  <bruno@clisp.org>
86092
86093                 * setenv.c: Declare alloca.
86094                 (compar_fn_t): New typedef.
86095                 (KNOWN_VALUE, STORE_VALUE): Use it.
86096
86097         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86098         setenv.h.
86099
86100 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86101
86102         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86103         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86104         Choose values that are less likely to collide with system fnmatch
86105         options.
86106         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86107         defined (e.g., a pure POSIX system).
86108         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86109         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86110
86111 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86112
86113         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86114         a pain in practice to deal with generated m4 files.  This change
86115         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86116
86117         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86118         and jm-glibc-io.m4, as they are no longer a special case.
86119         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86120         kludge and the auto-generation stuff.  Check only whether the
86121         functions are declared, not whether they exist, since older hosts
86122         that don't declare the functions can't use the optimization anyway.
86123
86124 2002-12-06  Jim Meyering  <jim@meyering.net>
86125
86126         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86127
86128         Merge in changes from libc's misc/error.c, in preparation
86129         for the merge of gnulib's changes back into libc.
86130
86131         * lib/error.c (_): Define only if not already defined.
86132         Move definition to follow all #include directives.
86133         Include unlocked-io.h only if !_LIBC.
86134         [_LIBC]: Include <libio/libioP.h>.
86135         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86136         (fflush): Tweak definition to use INTUSE.
86137         (putc): Define.
86138
86139 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86140
86141         * lib/alloca.c [defined emacs]: Include "lisp.h".
86142         (xalloc_die) [defined emacs]: New macro.
86143         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86144         [! defined emacs]: Include <xalloc.h>.
86145         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86146         (pointer): Typedef to POINTER_TYPE *.
86147         (malloc): Remove decl; we now always use xmalloc.
86148         (alloca): Use old-style definition, since Emacs needs this.
86149         Check for arithmetic overflow when computing combined size.
86150
86151 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86152
86153         Do not generate unlocked-io.h automatically, since it's easier to
86154         maintain it by hand.
86155
86156         * lib/unlocked-io.h: New file, from GNU diffutils,
86157         but with proper copyright notice and attribution.
86158         * lib/gen-uio: Remove.
86159         * lib/Makefile.am: Add copyright notice.
86160         (libfetish_a_SOURCES): Add unlocked-io.h.
86161         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86162         (DISTCLEANFILES, io_functions): Remove macros.
86163         (EXTRA_DIST): Remove gen_uio.
86164         (unlocked-io.h): Remove rule.
86165
86166 2002-12-04  Jim Meyering  <jim@meyering.net>
86167
86168         Reflect the fact that stat.c and lstat.c are no longer generated.
86169         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86170         (DISTCLEANFILES): Likewise.
86171         (EXTRA_DIST): Likewise.
86172         (all_local): Don't depend on stat.c or lstat.c.
86173         (stat.c, lstat.c): Remove rules.
86174         (EXTRA_DIST): Remove xstat.in.
86175
86176         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86177         * lib/stat.c: New file.  Contents mostly from xstat.in.
86178         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86179         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86180
86181         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86182         too.
86183         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86184
86185 2002-12-03  Jim Meyering  <jim@meyering.net>
86186
86187         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86188         but not semantics, to minimize the differences between these two files.
86189         (safe_read): Change comment to mention SAFE_READ_ERROR.
86190
86191         * lib/safe-read.c (IS_EINTR): Define.
86192         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86193
86194 2002-12-02  Jim Meyering  <jim@meyering.net>
86195
86196         * lib/safe-read.c (EINTR): Define.
86197         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86198         (INT_MAX): Provide fallback.
86199         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86200
86201         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86202
86203 2002-12-02  Bruno Haible  <bruno@clisp.org>
86204
86205         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86206         Define, taken from safe-read.c.
86207         (INT_MAX): Provide fallback.
86208         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86209         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86210
86211         * lib/safe-read.c (EINTR): Remove definition.
86212         (safe_read): Don't use EINTR if it is absent.
86213
86214 2002-12-01  Jim Meyering  <jim@meyering.net>
86215
86216         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86217         zero.
86218         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86219
86220 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86221
86222         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86223         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86224         with `if (! (value < limit)) abort ();', for readability.
86225
86226 2002-11-26  Karl Berry  <karl@gnu.org>
86227
86228         * lib/strdup.c: copy from libc again, with jim's ok.
86229         * lib/.cppi-disable: re-add strdup.c
86230
86231 2002-11-25  Karl Berry  <karl@gnu.org>
86232
86233         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86234         instead of "strtol.c".
86235
86236 2002-11-25  Karl Berry  <karl@gnu.org>
86237
86238         * config/install-sh: update from automake for variable quoting, $0 in
86239         error msgs, etc.
86240
86241         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86242         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86243         entry.
86244
86245 2002-11-25  Jim Meyering  <jim@meyering.net>
86246
86247         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86248
86249 2002-11-24  Karl Berry  <karl@gnu.org>
86250
86251         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86252         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86253
86254 2002-11-24  Jim Meyering  <jim@meyering.net>
86255
86256         Update from coreutils:
86257
86258         * lib/mktime.c: Merge in changes from libc.
86259
86260         Avoid a link-time failure on some Linux systems.
86261         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86262         (otherwise).
86263         (__mon_yday): Declare with the STATIC attribute.
86264         (__mktime_internal): Likewise.
86265         Based on a report from Greg Schafer.
86266
86267 2002-11-23  Jim Meyering  <jim@meyering.net>
86268
86269         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86270         Use `unsigned', not `int', as type of index.
86271
86272         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86273
86274         * lib/fsusage.c: Remove unneeded parentheses around operands of
86275         `defined'.
86276
86277 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86278
86279         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86280         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86281         so that we can be included first.
86282         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86283         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86284         No need to include stddef.h or sys/types.h any more.
86285         Surround local include files with "", not "<>".
86286         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86287         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86288         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86289         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86290         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86291         (ISPRINT): Remove; no longer needed now that we assume C89.
86292
86293         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86294         Preserve errno.
86295
86296         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86297         quotearg_char): Use SIZE_MAX rather than
86298         (size_t) -1 when we are talking about "infinity".
86299
86300         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86301
86302 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86303
86304         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86305         hint that one should use `if (! x) abort ();' rather than `assert
86306         (x);', and anyway it's one less thing to worry about configuring.
86307         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86308         hash_rehash, hash_insert): Use abort rather than assert.
86309
86310 2002-11-22  Bruno Haible  <bruno@clisp.org>
86311
86312         * lib/safe-read.h: Assume C89. Add comments.
86313         (safe_read): Change return type to size_t.
86314         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86315         byte counts > SSIZE_MAX correctly.
86316         * lib/safe-write.h: New file.
86317         * lib/safe-write.c: New file.
86318         * lib/full-read.h: New file.
86319         * lib/full-read.c: New file.
86320         * lib/full-write.h: Assume C89. Add comments.
86321         * lib/full-write.c: Include safe-write.h.
86322         (full_write): Rewritten to use safe_write.
86323         Suggested by Jim Meyering and Paul Eggert.
86324
86325 2002-11-21  Jim Meyering  <jim@meyering.net>
86326
86327         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86328
86329         Merge in changes from the coreutils.
86330
86331         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86332         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86333         <stdint.h>.
86334         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86335         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86336         int.  Work more efficiently if X is the same width as uintmax_t.
86337         Do not compare X to -1, to avoid bogus compiler warning.
86338         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86339         Don't assume that f_frsize and f_bsize are the same type.
86340
86341         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86342         warning on FreeBSD.
86343
86344         * lib/makepath.c (make_path): Restore umask *before* creating the final
86345         component.
86346         (make_path): Minor reformatting.
86347
86348         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86349         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86350         HAVE_MALLOC/HAVE_REALLOC.
86351
86352         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86353         dummy ones.  At least on GNU/Linux systems, `auto' means something
86354         else.
86355         From Michael Stone.
86356
86357 2002-11-21  Bruno Haible  <bruno@clisp.org>
86358
86359         Remove case insensitive option matching.
86360         * lib/argmatch.h (argcasematch): Remove declaration.
86361         (ARGCASEMATCH): Remove macro.
86362         (__xargmatch_internal): Remove case_sensitive argument.
86363         (XARGMATCH): Update.
86364         (XARGCASEMATCH): Remove macro.
86365         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86366         case_sensitive argument.
86367         (argcasematch): Remove function.
86368         (__xargmatch_internal): Remove case_sensitive argument.
86369         (main): Use XARGMATCH instead of XARGCASEMATCH.
86370
86371         * lib/xmalloc.c: Change compile-time error message. Add comment about
86372         required autoconf version.
86373
86374 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86375
86376         Merge argmatch cleanups from Bison.  Assume C89.
86377
86378         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86379         Include stdlib.h, for EXIT_FAILURE.
86380         Always include <string.h>, since we assume C89.
86381         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86382         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86383         Include <stddef.h> instead, since it's all we need for size_t.
86384         (PARAMS): Remove.  All uses removed.
86385         (ARRAY_CARDINALITY): Do not bother to #undef.
86386         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86387         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86388         Remove unnecessary parentheses.
86389         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86390         Insert necessary parentheses.
86391         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86392         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86393
86394 2002-11-19  Bruno Haible  <bruno@clisp.org>
86395
86396         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86397         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86398
86399         * lib/mbswidth.h (PARAMS): Remove macro.
86400         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86401         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86402
86403         * lib/gcd.h (PARAMS): Remove macro.
86404         (gcd): Use ANSI C function declarations.
86405         * lib/gcd.c (gcd): Likewise.
86406
86407 2002-11-15  Bruno Haible  <bruno@clisp.org>
86408
86409         * lib/strcspn.c: Include <stddef.h>.
86410         (strcspn): Use ANSI C function declaration. Change return type to
86411         size_t. Use NULL.
86412         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86413         (strpbrk): Use NULL.
86414         * lib/strpbrk.h (PARAMS): Remove macro.
86415         (strpbrk): Use ANSI C function declaration.
86416         * lib/strstr.c: Don't include <sys/types.h>.
86417         * lib/strstr.h (PARAMS): Remove macro.
86418         (strstr): Use ANSI C function declarations.
86419
86420 2002-11-14  Karl Berry  <karl@gnu.org>
86421
86422         * config/mkinstalldirs: `do' on separate line, instead of
86423         `for var; do'.
86424
86425 2002-11-06  Bruno Haible  <bruno@clisp.org>
86426
86427         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86428         * lib/gcd.c (gcd): Likewise.
86429
86430 2002-11-05  Bruno Haible  <bruno@clisp.org>
86431
86432         * lib/gcd.h: New file, from gettext-0.11.5.
86433         * lib/gcd.c: New file, from gettext-0.11.5.
86434
86435 2002-11-05  Bruno Haible  <bruno@clisp.org>
86436
86437         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86438         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86439         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86440         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86441
86442         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86443         <libintl.h>.
86444         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86445         <libintl.h>.
86446
86447         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86448         * lib/human.c: Include gettext.h instead of <libintl.h>.
86449         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86450         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86451         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86452         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86453         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86454         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86455         (textdomain): Remove definition.
86456         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86457
86458         * lib/long-options.c: Remove include of <libintl.h> and definition of
86459         _.
86460         * lib/same.c: Remove include of <libintl.h> and definition of _.
86461
86462 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86463
86464         * lib/config.charset: A few additions for Solaris.
86465
86466 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86467
86468         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86469         * lib/localcharset.c (locale_charset): Declare as extern "C".
86470
86471 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86472
86473         * lib/config.charset: msdos in uk_UA uses CP1125.
86474
86475 2002-11-04  Bruno Haible  <bruno@clisp.org>
86476
86477         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86478         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86479         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86480         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86481         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86482
86483 2002-11-04  Bruno Haible  <bruno@clisp.org>
86484
86485         * lib/localcharset.c (locale_charset): Don't return an empty string.
86486
86487 2002-11-04  Bruno Haible  <bruno@clisp.org>
86488
86489         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86490         aliases.
86491
86492 2002-11-04  Bruno Haible  <bruno@clisp.org>
86493
86494         * lib/config.charset: Update for newest glibc. Add canonical names
86495         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86496
86497 2002-11-04  Bruno Haible  <bruno@clisp.org>
86498
86499         * lib/config.charset: Add support for NetBSD.
86500
86501 2002-11-04  Bruno Haible  <bruno@clisp.org>
86502
86503         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86504
86505 2002-11-01  Bruno Haible  <bruno@clisp.org>
86506
86507         * configure.in: Add AC_CONFIG_AUX_DIR call.
86508         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86509         test/Makefile.
86510         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86511
86512 2002-09-28  Karl Berry  <karl@gnu.org>
86513
86514         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86515         installed automake until the next release, since changes have been
86516         made.
86517
86518 2002-09-25  Karl Berry  <karl@gnu.org>
86519
86520         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86521         * lib/getopt*: copy from libc/posix.
86522         * lib/gettext.h: copy from gettext.
86523         * lib/.cppi-disable: add strdup.c, gettext.h.
86524
86525 2002-09-25  Karl Berry  <karl@gnu.org>
86526
86527         * config/srclist.txt: enable gettext.h check.
86528         * config/config.{guess,sub}: update from prep.
86529         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86530                 from automake 1.6.3.
86531         See srclist*.
86532
86533 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86534
86535         * regex.c (PATFETCH): Remove the translating fetch.
86536         (PATFETCH_RAW): Rename to PATFETCH.
86537         (set_image_of_range): New fun.
86538         (SET_RANGE_TABLE_WORK_AREA): Use it.
86539         (regex_compile): Don't translate the pattern chars so eagerly.
86540         Only do it when inserting an `exactn' bytecode or when handling
86541         a char-range.
86542         (mutually_exclusive_p): Avoid empty statement.
86543
86544 2002-07-06  Jim Meyering  <meyering@lucent.com>
86545
86546         * m4/README: Don't mention Makefile.am.in.
86547         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86548
86549 2002-07-01  Jim Meyering  <meyering@lucent.com>
86550
86551         * lib/c-stack.c: Include sys/time.h.
86552         From Volker Borchert.
86553
86554 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86555
86556         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86557
86558 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86559
86560         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86561         New macro.  Use it uniformly instead of
86562         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86563         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86564         reported by Vin Shelton.
86565
86566 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86567
86568         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86569         Do not assume SA_SIGINFO behavior.
86570         Bug reported by Jim Meyering on NetBSD 1.5.2.
86571
86572 2002-06-22  Jim Meyering  <meyering@lucent.com>
86573
86574         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86575         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86576
86577         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86578         now that configure.ac uses AC_GNU_SOURCE.
86579         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86580         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86581
86582         Update to latest tools.  Suggestions from Paul Eggert.
86583         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86584         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86585         * m4/fnmatch.m4: Likewise.
86586         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86587         to AC_HEADER_STDBOOL
86588
86589 2002-06-22  Jim Meyering  <meyering@lucent.com>
86590
86591         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86592         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86593
86594 2002-06-22  Jim Meyering  <meyering@lucent.com>
86595
86596         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86597
86598         * lib/exitfail.c, exitfail.h: Likewise.
86599         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86600
86601         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86602         of fnmatch.h.
86603         (EXTRA_DIST): Add fnmatch_loop.c.
86604         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86605
86606         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86607         * lib/fnmatch.c: Update from diffutils-2.8.2.
86608         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86609         * lib/fnmatch.h: Remove file.
86610
86611 2002-06-21  Jim Meyering  <meyering@lucent.com>
86612
86613         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86614         * m4/mbrtowc.m4: Likewise.
86615
86616         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86617         * m4/mbswidth.m4: Reflect name change:
86618         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86619         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86620
86621         * m4/lib-link.m4: Update from gettext-0.11.2.
86622         * m4/gettext.m4: Likewise.
86623
86624         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86625         From Alfred M. Szmidt.
86626
86627 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86628
86629         * lib/file-type.h: Report an error if neither S_ISREG nor
86630         S_IFREG is defined, instead of using a test specific to glibc
86631         2.2.  This should be safe, since POSIX requires S_ISREG and
86632         Unix Version 7 had S_IFREG.  We don't need to check for
86633         <sys/types.h> since we don't use any symbols that it defines.
86634
86635 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86636
86637         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86638         $@-t, so that each temporary file name is unique and valid in the first
86639         8 characters, for operation under DOS.
86640
86641 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86642
86643         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86644
86645 2002-06-15  Jim Meyering  <meyering@lucent.com>
86646
86647         Work even with DJGPP 2.03, which lacks support for symlinks.
86648         From Richard Dawe.
86649         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86650         is defined.
86651         * lib/lchown.c (S_ISLNK): Likewise.
86652
86653 2002-06-15  Jim Meyering  <meyering@lucent.com>
86654
86655         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86656         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86657         have been included before this file.
86658
86659 2002-06-14  Jim Meyering  <meyering@lucent.com>
86660
86661         * lib/file-type.h: Use the version from diffutils-2.8.2.
86662         * lib/file-type.c: Likewise.
86663
86664 2002-06-07  Jim Meyering  <meyering@lucent.com>
86665
86666         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86667         They're needed at least for NetBSD 1.5.2.
86668         ($statxfs_includes): Include those same headers.
86669         ($statxfs_includes): Include sys/vfs.h if available.
86670         ($statxfs_includes): Likewise for sys/statvfs.h.
86671         Check for the following members in both structs statfs and statvfs:
86672         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86673
86674 2002-06-01  Jim Meyering  <meyering@lucent.com>
86675
86676         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86677         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86678
86679 2002-05-28  Jim Meyering  <meyering@lucent.com>
86680
86681         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86682         Reported by Volker Borchert.
86683
86684 2002-05-27  Jim Meyering  <meyering@lucent.com>
86685
86686         Fix a problem seen only on nonconforming systems whereby ls.c's
86687         use of localtime, and then of gettimeofday would cause trouble:
86688         the localtime call used to initialize rpl_gettimeofday's save
86689         mechanism would clobber ls's current local time information so
86690         that in any long listing the first file would always be listed
86691         with date 1970-01-01.  Analysis by Volker Borchert.
86692
86693         * lib/gettimeofday.c (localtime): Undefine.
86694         (rpl_localtime): New function.
86695
86696 2002-05-27  Jim Meyering  <meyering@lucent.com>
86697
86698         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86699         localtime.
86700
86701         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86702         use the replacement function; it wouldn't resolve at link time.
86703         Reported by Volker Borchert.
86704
86705 2002-05-22  Jim Meyering  <meyering@lucent.com>
86706
86707         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86708         file-type.h.
86709         * lib/file-type.h: New file.
86710         * lib/file-type.c (file_type): New file/function.  Extracted from
86711         diffutils.
86712
86713 2002-04-30  Jim Meyering  <meyering@lucent.com>
86714
86715         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86716
86717 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86718
86719         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86720
86721 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86722
86723         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86724         Do not check for alloca.h (no longer used) or stdbool.h (was never
86725         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86726
86727 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86728
86729         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86730
86731 2002-04-29  Jim Meyering  <meyering@lucent.com>
86732
86733         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86734         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86735         Use AC_FUNC_STRNLEN here instead.
86736
86737         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86738         With autoconf-2.53a, it's part of AC_PROG_CC.
86739
86740 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86741
86742         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86743         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86744
86745 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86746
86747         * lib/sig2str.h, lib/sig2str.c: New files.
86748         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86749
86750 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86751
86752         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86753         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86754         of 127, since 64 is the largest conceivable number for ancient
86755         nonstandard hosts.
86756         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86757
86758 2002-04-28  Jim Meyering  <meyering@lucent.com>
86759
86760         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86761
86762 2002-04-24  Jim Meyering  <meyering@lucent.com>
86763
86764         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86765         (jm_PREREQ): Use it.
86766
86767         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86768         mach/mach.h fcntl.h.
86769         Check for this function: setlocale.
86770
86771 2002-04-24  Jim Meyering  <meyering@lucent.com>
86772
86773         * lib/gettext.h: New file, from Gettext.
86774         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86775         (libfetish_a_SOURCES): Add gettext.h.
86776
86777 2002-04-16  Jim Meyering  <meyering@lucent.com>
86778
86779         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86780         ut_pid, ut_id, ut_exit.
86781
86782 2002-04-16  Jim Meyering  <meyering@lucent.com>
86783
86784         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86785         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86786         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86787
86788 2002-04-12  Jim Meyering  <meyering@lucent.com>
86789
86790         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86791         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86792         existence of the getmntinfo function.  Needed for Darwin 5.3.
86793
86794         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86795         This is necessary at least on Darwin 5.3.
86796
86797         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86798         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86799         strnlen.o in the library, and that makes some versions of ranlib
86800         object.
86801
86802 2002-04-12  Jim Meyering  <meyering@lucent.com>
86803
86804         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86805
86806 2002-04-09  Jim Meyering  <meyering@lucent.com>
86807
86808         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86809         to be more precise.  Rather than saying we're checking whether the
86810         function `works', say what we're testing.
86811         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86812         Reported by Bruno Haible.
86813
86814 2002-03-10  Jim Meyering  <meyering@lucent.com>
86815
86816         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86817         Suggestion from Santiago Vila.
86818
86819 2002-03-08  Jim Meyering  <meyering@lucent.com>
86820
86821         * lib/rename.c: Mention that this wrapper is needed also on
86822         mips-dec-ultrix4.4 systems.
86823
86824 2002-03-02  Jim Meyering  <meyering@lucent.com>
86825
86826         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86827         not HAVE_CLOCK_SETTIME.
86828
86829 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86830
86831         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86832         Check for clock_settime.
86833
86834 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86835
86836         * lib/nanosleep.h: Rename to....
86837         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86838
86839         * lib/gettime.c: New file.
86840         * lib/settime.c: New file.
86841         * lib/stime.c: Remove.
86842
86843         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86844         timespec.h.  Remove nanosleep.h.
86845
86846 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86847
86848         * m4/acl.m4: New file.
86849         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86850         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86851
86852 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86853
86854         * lib/acl.c, lib/acl.h: New files.
86855         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86856
86857 2002-02-24  Jim Meyering  <meyering@lucent.com>
86858
86859         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86860         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86861         cause trouble.  Reported by Nelson Beebe.
86862
86863 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86864
86865         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86866         compilers that don't know that xalloc_die never returns.
86867
86868 2002-02-20  Jim Meyering  <meyering@lucent.com>
86869
86870         * lib/getdate.c: Regenerate using bison-1.33.
86871
86872 2002-02-17  Jim Meyering  <meyering@lucent.com>
86873
86874         * config/config.guess (main): Don't use `head -1'; it's no longer
86875         portable. Use `sed 1q' instead.
86876
86877 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86878
86879         * m4/codeset.m4: Upgrade to gettext-0.11.
86880         * m4/gettext.m4: Upgrade to gettext-0.11.
86881         * m4/glibc21.m4: Upgrade to gettext-0.11.
86882         * m4/iconv.m4: Upgrade to gettext-0.11.
86883         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86884         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86885         * m4/lib-ld.m4: New file, from gettext-0.11.
86886         * m4/lib-link.m4: New file, from gettext-0.11.
86887         * m4/lib-prefix.m4: New file, from gettext-0.11.
86888         * m4/progtest.m4: Upgrade to gettext-0.11.
86889
86890 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86891
86892         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86893         (jm_PREREQ): Use it.
86894
86895 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86896
86897         * lib/posixver.c, lib/posixver.h: New files.
86898         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86899
86900 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86901             Bruno Haible  <bruno@clisp.org>
86902
86903         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86904         (fwrite_success_callback): New declaration.
86905         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86906         print_unicode_char. Call failure callback instead of error.
86907         (fwrite_success_callback): New function.
86908         (exit_failure_callback): New function.
86909         (fallback_failure_callback): New function.
86910         (print_unicode_char): Call unicode_to_mb.
86911
86912 2002-01-26  Jim Meyering  <meyering@lucent.com>
86913
86914         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86915         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86916
86917 2002-01-26  Jim Meyering  <meyering@lucent.com>
86918
86919         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86920
86921 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86922
86923         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86924
86925 2002-01-22  Jim Meyering  <meyering@lucent.com>
86926
86927         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86928         Otherwise, some versions of automake would omit the rule that makes
86929         Makefile from Makefile.in.
86930
86931 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86932
86933         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86934         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86935         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86936         (memcoll): Set errno to zero if there is no error.
86937
86938         * lib/quotearg.c (quotearg_buffer_restyled):
86939         Fix bug with quoting buffers containing NUL when backslashing escapes.
86940         This bug was exposed by the other changes in this patch.
86941         (quotearg_n_options): New arg ARGSIZE.
86942         All callers changed.
86943         (quoting_options_from_style): New function.
86944         (quotearg_n_style): Use it.
86945         (quotearg_n_style_mem): New function.
86946
86947         * lib/quotearg.h (quotearg_n_style_mem): New function.
86948
86949 2002-01-19  Jim Meyering  <meyering@lucent.com>
86950
86951         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86952         Remove useless quotes: DF_PROG="df".
86953         * m4/strnlen.m4: New file.
86954
86955 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86956
86957         * lib/backupfile.c (ISDIGIT): Comment fix.
86958         * lib/getdate.y (ISDIGIT): Likewise.
86959         * lib/posixtm.c (ISDIGIT, year): Likewise.
86960         * lib/strverscmp.c (ISDIGIT): Likewise.
86961         * lib/userspec.c (ISDIGIT): Likewise.
86962
86963 2002-01-16  Jim Meyering  <meyering@lucent.com>
86964
86965         * lib/getdate.y: Add three semicolons, each just before a closing
86966         brace. Bison (as of version 1.31) no longer papers over that mistake.
86967
86968 2002-01-05  Jim Meyering  <meyering@lucent.com>
86969
86970         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86971
86972 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86973
86974         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86975         not silently exit merely because the output buffer happens to
86976         have nothing pending.
86977
86978 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86979
86980         See the big note in ../ChangeLog.
86981         * lib/human.c (suffixes): Prefer K to k for 1024.
86982         (generate_suffix_backwards): New function.
86983         (human_readable_inexact): Use it.
86984         * lib/xstrtol.c (__xstrtol): If there is no number but there
86985         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86986         Accept 'K' as well as 'k'.
86987
86988 2001-12-15  Jim Meyering  <meyering@lucent.com>
86989
86990         * lib/regex.h (__restrict_arr): Update from libc.
86991
86992         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86993         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86994         (STREQ): Define.
86995
86996 2001-12-14  Jim Meyering  <meyering@lucent.com>
86997
86998         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86999         Suggestion from Bruno Haible.
87000
87001 2001-12-10  Jim Meyering  <meyering@lucent.com>
87002
87003         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87004         xrealloc, Instead, include "xalloc.h".
87005         (initbuffer): Don't cast xmalloc return value to char*.
87006         (readline): Reword comment.
87007         Don't cast xrealloc return value to char*
87008         Return NULL, not 0.
87009
87010 2001-12-09  Jim Meyering  <meyering@lucent.com>
87011
87012         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87013         about `signed and unsigned type in conditional expression'.
87014         * lib/posixtm.c (posix_time_parse): Likewise.
87015
87016         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87017
87018         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87019         to avoid a pedantic warning.
87020
87021         * lib/getstr.c: Don't include assert.h.
87022         (getstr): Remove warning-evoking assertions.
87023         Return -1 if offset parameter is out of bounds.
87024         Change the type of a local from int to size_t.
87025
87026         * lib/strftime.c (my_strftime_localtime_r): Include this function
87027         definition in the `#if ! HAVE_TM_GMTOFF' block.
87028
87029         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87030         Include xalloc.h instead.
87031
87032 2001-12-02  Jim Meyering  <meyering@lucent.com>
87033
87034         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87035         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87036         included.
87037
87038         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87039         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87040
87041 2001-11-30  Akim Demaille  <akim@epita.fr>
87042
87043         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87044         before being defined.
87045
87046 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87047
87048         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87049         First arg is int, not unsigned.
87050         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87051         (SIZE_MAX, UINT_MAX): New macros.
87052         (quotearg_n_options): Abort if N is negative.
87053         Avoid overflow check on hosts where size_t is 64 bits and int
87054         is 32 bits, as overflow is impossible there.
87055         Fix off-by-one typo that caused unnecessary reallocation.
87056
87057 2001-11-27  Jim Meyering  <meyering@lucent.com>
87058
87059         * lib/tempname.c: Merge with version from libc.
87060         * lib/regex.c: Likewise.
87061
87062         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87063         systems for which STDC_HEADERS is 0, it was not included, resulting in
87064         a warning about an integer-to-pointer conversion problem with getenv.
87065         Reported by Volker Borchert.
87066
87067 2001-11-26  Jim Meyering  <meyering@lucent.com>
87068
87069         * lib/gtod.h: Remove file.
87070         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87071         * lib/gettimeofday.c: Don't include gtod.h.
87072         (GTOD_init): Remove function.
87073         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87074         Suggestion from Volker Borchert.
87075
87076 2001-11-23  Jim Meyering  <meyering@lucent.com>
87077
87078         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87079         it.
87080         * lib/hash.c (struct hash_table): Define it here instead.
87081
87082 2001-11-22  Jim Meyering  <meyering@lucent.com>
87083
87084         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87085
87086 2001-11-20  Jim Meyering  <meyering@lucent.com>
87087
87088         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87089         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87090
87091 2001-11-19  Jim Meyering  <meyering@lucent.com>
87092
87093         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87094         directory.  Use "conftestXXXXXX" as the template.
87095         Suggestion from Paul Eggert.
87096
87097         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87098         immediately, so the test doesn't mistakenly hit the max-open-files
87099         limit.
87100
87101 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87102
87103         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87104         (TEMPORARIES): New macro.
87105         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87106         removes an artificial limitation (e.g. HP-UX 10.20, where
87107         TMP_MAX is 17576).
87108
87109 2001-11-18  Jim Meyering  <meyering@lucent.com>
87110
87111         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87112
87113 2001-11-18  Jim Meyering  <meyering@lucent.com>
87114
87115         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87116         on SunOS 4.
87117
87118         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87119         files will be created before anything else.
87120
87121 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87122
87123         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87124         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87125
87126 2001-11-17  Jim Meyering  <meyering@lucent.com>
87127
87128         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87129         Prompted by a report from Bob Proulx.
87130
87131         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87132         Instead, require UTILS_FUNC_MKSTEMP.
87133
87134 2001-11-17  Jim Meyering  <meyering@lucent.com>
87135
87136         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87137         Now, that's done as part of AC_FUNC_STRTOD.
87138
87139 2001-11-17  Jim Meyering  <meyering@lucent.com>
87140
87141         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87142         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87143         rather than group writable.  Patch by Juan F. Codagnone.
87144
87145         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87146         xrealloc, Instead, include "xalloc.h".
87147
87148         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87149         Remove explicit declarations of xmalloc, xrealloc,
87150         and xstrdup.  Instead, include "xalloc.h".
87151
87152         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87153         unlocked-io.h.
87154         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87155         Likewise.
87156         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87157
87158         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87159         Reported by Padraig Brady.
87160
87161         * lib/mkstemp.c: #undef mkstemp.
87162         Include config.h.
87163         (rpl_mkstemp): Rename from mkstemp.
87164         Protoize.
87165
87166 2001-11-16  Jim Meyering  <meyering@lucent.com>
87167
87168         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87169         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87170         determine the amount of total physical memory, use pstat_getstatic.
87171         HPUX-11 doesn't define _SC_PHYS_PAGES.
87172         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87173         If sysconf couldn't be used to determine the amount of available
87174         physical memory, use both pstat_getstatic and pstat_getdynamic.
87175         Based on a patch from Bob Proulx.
87176
87177 2001-11-10  Jim Meyering  <meyering@lucent.com>
87178
87179         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87180         (jm_PREREQ): Use it.
87181
87182 2001-11-09  Jim Meyering  <meyering@lucent.com>
87183
87184         * m4/jm-macros.m4: Require autoconf-2.52f.
87185         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87186         Use these AC_-prefixed names, not the AM_-prefixed ones.
87187
87188         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87189
87190 2001-11-05  Jim Meyering  <meyering@lucent.com>
87191
87192         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87193
87194 2001-11-04  Jim Meyering  <meyering@lucent.com>
87195
87196         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87197         $DEFS.
87198
87199 2001-11-03  Jim Meyering  <meyering@lucent.com>
87200
87201         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87202         of AC_DEFUN.
87203
87204         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87205         know the name of the variable in the macro definition.
87206
87207 2001-11-03  Jim Meyering  <meyering@lucent.com>
87208
87209         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87210         in argmatch_to_argument call.
87211
87212         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87213         argument.
87214
87215         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87216         e.g., a fault due to an attempt to free a NULL pointer.
87217
87218 2001-11-01  Jim Meyering  <meyering@lucent.com>
87219
87220         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87221         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87222
87223 2001-11-01  Jim Meyering  <meyering@lucent.com>
87224
87225         * lib/dirfd.c, lib/dirfd.h: New files.
87226         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87227
87228         * lib/hash.c (hash_print) [TESTING]: Clean up.
87229
87230 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87231
87232         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87233         to avoid a warning if -Wall.
87234
87235 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87236
87237         * README: New file
87238         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87239         (per RMS's instructions, this is now the canonical source)
87240         * lgpl/, gpl/: New directories.
87241
87242 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87243
87244         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87245
87246 2001-10-21  Jim Meyering  <meyering@lucent.com>
87247
87248         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87249         this code would end up calling gettext even in packages built
87250         with --disable-nls.
87251         * lib/getopt.c (_): Likewise.
87252         * lib/regex.c (_): Likewise.
87253
87254 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87255
87256         * m4/error.m4 (jm_PREREQ_ERROR):
87257         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87258         AC_FUNC_STRERROR_R does that.
87259         Check for strerror declaration.
87260
87261         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87262         are supposed to have them these days.
87263         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87264         Merge changes from latest Autoconf CVS.
87265         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87266         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87267         POSIX decided to standardize on the int flavor of strerror_r.
87268
87269 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87270
87271         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87272         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87273         Use strerror_r that is only a macro, even if it is not a function.
87274         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87275         (private_strerror): Use prototypes, not old-style function definition.
87276         (print_errno_message): New function.
87277         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87278         char*-flavored one.
87279         (error_tail, error, error_at_line): Use it.
87280
87281 2001-10-11  Jim Meyering  <meyering@lucent.com>
87282
87283         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87284         and quote_n (1, ... to avoid clobbering a buffer.
87285
87286 2001-10-05  Jim Meyering  <meyering@lucent.com>
87287
87288         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87289         hash-pjw.h.
87290         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87291         * lib/hash-pjw.h: New file.
87292
87293 2001-09-30  Jim Meyering  <meyering@lucent.com>
87294
87295         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87296         `struct fsstat' has the `f_fstypename' member.
87297         Use that to define FS_TYPE, which is now used to make
87298         the getfsstat link test tighter.
87299
87300 2001-09-30  Jim Meyering  <meyering@lucent.com>
87301
87302         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87303         Include <sys/ucred.h>, for Apple Darwin.
87304         Include sys/mount.h and sys/fs_types.h only if available.
87305         (FS_TYPE): Define.
87306         (read_filesystem_list): Use FS_TYPE.
87307
87308 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87309
87310         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87311         a boolean context.
87312
87313 2001-09-29  Jim Meyering  <meyering@lucent.com>
87314
87315         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87316         [one-argument getmntent function]): Include stdio.h before mntent.h.
87317         SunOS 4.1.x needs it for the declaration of `FILE'.
87318         Patch by Volker Borchert.
87319
87320         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87321         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87322         sys/fs_types.h, and make the link-test for getfsstat guard #include
87323         directives with appropriate #if HAVE_*_H tests so that we can
87324         detect getfsstat on Apple Darwin1.3.7 systems.
87325         Reported by Nelson Beebe.
87326         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87327
87328 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87329
87330         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87331         #defines strtoimax.  Also treat the other strto* functions
87332         like strtoimax.
87333
87334         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87335         Check for strtoul and strtoumax,
87336         as those declarations are made even in the signed case.
87337         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87338         Likewise, for strtol and strtoimax.
87339
87340 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87341
87342         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87343         #defines strtoimax.  Also treat the other strto* functions
87344         like strtoimax.
87345
87346         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87347         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87348         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87349
87350 2001-09-26  Jim Meyering  <meyering@lucent.com>
87351
87352         Most macros in unlocked-io.h had the wrong number of arguments.
87353         * lib/gen-uio: New script.
87354         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87355         * lib/unlocked-io.hin: Remove file.
87356         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87357         rather than trying to embed it here.
87358         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87359         Reported by Padraig Brady.
87360
87361 2001-09-25  Volker Borchert  <bt@teknon.de>
87362
87363         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87364         `result'.
87365
87366 2001-09-24  Jim Meyering  <meyering@lucent.com>
87367
87368         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87369
87370 2001-09-23  Jim Meyering  <meyering@lucent.com>
87371
87372         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87373         instead of the mere test for existence of mntent.h.  The latter
87374         would get a false-positive on AIX 3.4 systems.
87375         In the outer getmntent if-block, don't die if neither of the getmntent
87376         tests succeeds.  Instead, just fall through and continue with the
87377         remaining tests.
87378
87379 2001-09-23  Jim Meyering  <meyering@lucent.com>
87380
87381         * lib/mountlist.c: Remove useless parentheses in #if directives.
87382         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87383         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87384
87385 2001-09-22  Jim Meyering  <meyering@lucent.com>
87386
87387         * m4/gettext.m4: New file.  From gettext.
87388         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87389         * m4/progtest.m4: Likewise
87390         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87391         * m4/glibc21.m4: Likewise.
87392
87393         * m4/libintl.m4: Remove.  No longer used.
87394
87395 2001-09-22  Jim Meyering  <meyering@lucent.com>
87396
87397         * lib/localcharset.c: Update from latest gettext.
87398         * lib/config.charset: Likewise.
87399
87400 2001-09-20  Jim Meyering  <meyering@lucent.com>
87401
87402         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87403         strtoimax.
87404         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87405         strtoumax.
87406
87407 2001-09-20  Jim Meyering  <meyering@lucent.com>
87408
87409         * lib/xstrtol.c (strtoimax): Guard declaration with
87410         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87411         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87412         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87413         (strtoumax): Likewise, for completeness (it wasn't necessary).
87414
87415 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87416
87417         * lib/strtoimax.c (HAVE_LONG_LONG):
87418         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87419         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87420         to work around bug in IBM C compiler.
87421
87422 2001-09-17  Jim Meyering  <meyering@lucent.com>
87423
87424         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87425         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87426         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87427         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87428         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87429         whenever the right hand side need not be expanded by the shell.
87430
87431 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87432
87433         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87434         library.  It's not correct, as some older glibcs are buggy.
87435         fnmatch wasn't fixed until glibc 2.2.
87436
87437         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87438         special shell magic here.
87439
87440 2001-09-16  Jim Meyering  <meyering@lucent.com>
87441
87442         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87443         * m4/jm-macros.m4: Require it.
87444
87445 2001-09-16  Jim Meyering  <meyering@lucent.com>
87446
87447         * lib/mkdir.c: New file.
87448
87449 2001-09-15  Jim Meyering  <meyering@lucent.com>
87450
87451         * m4/jm-macros.m4: Check for help2man.
87452
87453 2001-09-11  Jim Meyering  <meyering@lucent.com>
87454
87455         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87456         The body, by Paul Eggert, was moved here from configure.in.
87457         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87458
87459 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87460
87461         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87462         (jm_PREREQ): Use it.
87463
87464 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87465
87466         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87467         Use ssize_t, not int, to store result of readlink.
87468         Check for ssize_t overflow as well as size_t overflow,
87469         as POSIX says the result of readlink is implementation-defined
87470         when ssize_t overflows.
87471         Remove unnecessary cast to char*.
87472         Use free+malloc instead of realloc, as the storage doesn't need
87473         to be preserved and it's clearer and can be more efficient that way.
87474         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87475         * lib/xreadlink.h (xreadlink): Update prototype.
87476
87477 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87478
87479         * lib/xgetcwd.c: Revert some of the previous change; intead,
87480         fix the HAVE_GETCWD_NULL code to behave more like the
87481         !HAVE_GETCWD_NULL code used to.
87482
87483         Include "xalloc.h".
87484         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87485         invoke xalloc_die.
87486
87487 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87488
87489         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87490         sys/param.h, as pathmax.h includes them.
87491
87492 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87493
87494         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87495         (jm_PREREQ_XGETCWD): New macro.
87496
87497         * m4/getcwd.m4: New file.
87498
87499 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87500
87501         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87502         like the HAVE_GETCWD_NULL code.
87503         Include pathmax.h if not HAVE_GETCWD.
87504         Do not include xalloc.h.
87505         (INITIAL_BUFFER_SIZE): New symbol.
87506         Do not use xmalloc / xrealloc, since the caller is responsible for
87507         handling errors.  Preserve errno around `free' during failure.
87508         Do not overrun buffer when using getwd.
87509
87510 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87511
87512         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87513         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87514         getcwd (NULL, 0).
87515
87516 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87517
87518         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87519         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87520         spotted by Jim Meyering.
87521
87522 2001-09-03  Jim Meyering  <meyering@lucent.com>
87523
87524         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87525         failure.
87526
87527 2001-09-02  Jim Meyering  <meyering@lucent.com>
87528
87529         * lib/error.c: Update from GNU libc.
87530
87531 2001-09-01  Jim Meyering  <meyering@lucent.com>
87532
87533         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87534         Used by df.
87535
87536 2001-09-01  Jim Meyering  <meyering@lucent.com>
87537
87538         * lib/xreadlink.c: New file.
87539         * lib/xreadlink.h: New file.
87540         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87541         xreadlink.h.
87542
87543         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87544         doesn't conflict with sparc Solaris 7's definition in
87545         /usr/include/sys/int_types.h.
87546
87547         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87548         files.
87549         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87550         and strncasecmp as r-values.  Unixware didn't have declarations.
87551
87552 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87553
87554         * lib/xstrtol.h: Add copyright notice.
87555         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87556         LONGINT_INVALID_SUFFIX_CHAR.
87557
87558 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87559
87560         * lib/xstrtol.c (strtoimax): New decl.
87561
87562 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87563
87564         * lib/xgetcwd.c: Don't include pathmax.h.
87565         Include stdlib.h and unistd.h if available.
87566         Include xalloc.h.
87567         (xmalloc, xstrdup, free): Remove decls.
87568         (xgetcwd): Don't assume sizes fit in unsigned.
87569         Check for overflow when computing sizes.
87570         Simplify reallocation code.
87571
87572 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87573
87574         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87575         a directory's st_size can have an arbitrary value, so the old
87576         usage could waste an arbitrary amount of memory.  All uses
87577         changed.
87578         * lib/savedir.h: Update prototype.
87579
87580 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87581
87582         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87583
87584         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87585         old strtoimax.c.
87586
87587         Also, make the following further changes to make this file's
87588         configuration more similar to that of strtol.c:
87589         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87590         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87591         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87592         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87593         changed to signed values.
87594
87595         And make the following changes as well:
87596         Fix copyright notice, as 1999 was missing.
87597         (verify): New macro.
87598         (strtoimax): Check sizes at compile-time, not run-time.
87599         Prefer strtol to strtoll if both work.
87600         (main): Remove; it was not that useful and was a pain to maintain.
87601
87602         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87603
87604 2001-08-31  Jim Meyering  <meyering@lucent.com>
87605
87606         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87607         Use an initial, malloc'd, buffer of length 128 rather than
87608         a statically allocated one of length 1024.
87609
87610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87611
87612         Simplify code, partly by assuming autoconf 2.52 semantics.
87613
87614         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87615
87616         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87617         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87618         All uses removed.
87619         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87620         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87621         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87622         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87623         jm_AC_HEADER_INTTYPES_H.
87624         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87625
87626         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87627
87628         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87629         Quote first arg of AC_DEFUN.
87630         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87631         since they are needed to parse the include file even if we need
87632         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87633         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87634         but with opposite signedness.
87635
87636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87637
87638         Merge 'exclude' changes from tar 1.13.22.
87639         This fixes one or two unlikely storage allocation overflow bugs,
87640         but doesn't change user-visible behavior otherwise.
87641
87642 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87643
87644         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87645         (jm_PREREQ_EXCLUDE): New macro.
87646
87647 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87648
87649         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87650         tm to be declared.
87651
87652 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87653
87654         * lib/hash.c: Remove '2001' from copyright notice.
87655
87656 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87657
87658         * lib/full-write.h: New file.
87659         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87660         * lib/full-write.c: Correct credits, as cccp.c no longer
87661         exists and anyway it was so heavily changed from the old cccp
87662         code as to be unrecognizable.  Include full-write.h.
87663         (full_write): Return size_t, with short writes meaning failure.
87664         All callers changed.  This fixes a bug with large buffers
87665         on 64-bit hosts.
87666         * lib/utime.c: Include full-write.h.
87667
87668 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87669
87670         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87671         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87672         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87673         Include if available.
87674         (<xalloc.h>): Include
87675         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87676         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87677         collide with FNM macros.
87678         (struct patopts): New struct.
87679         (struct exclude): Use it, as exclude patterns now come with options.
87680         (new_exclude): Support above changes.
87681         (new_exclude, add_exclude_file):
87682         Initial size must now be a power of two to simplify overflow checking.
87683         (free_exclude, fnmatch_no_wildcards): New function.
87684         (excluded_filename): No longer requires options arg, as the options
87685         are determined by add_exclude.  Now returns bool, not int.
87686         (excluded_filename, add_exclude):
87687         Add support for the fancy new exclusion options.
87688         (add_exclude, add_exclude_file): Now takes int options arg.
87689         Check for arithmetic overflow when computing sizes.
87690         (add_exclude_file): xrealloc might modify errno, so don't
87691         realloc until after errno might be used.
87692
87693         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87694         New macros.
87695         (free_exclude): New decl.
87696         (add_exclude, add_exclude_file): Now takes int options arg.
87697         (excluded_filename): No longer requires options arg, as the options
87698         are determined by add_exclude.  Now returns bool, not int.
87699
87700 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87701
87702         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87703
87704 2001-08-27  Jim Meyering  <meyering@lucent.com>
87705
87706         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87707
87708         * lib/version-etc.c (N_): Remove definition.
87709         Revert most of last change.
87710         Instead, simply don't mark the `Copyright...' string for translation.
87711         Based on advice from Paul Eggert.
87712
87713         * lib/strtoxmax.c: Tweak comment.
87714
87715 2001-08-26  Jim Meyering  <meyering@lucent.com>
87716
87717         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87718
87719         * m4/xstrtoimax.m4: New file.
87720         * m4/xstrtoumax.m4: Add comments explaining why we
87721         AC_REPLACE_FUNCS(strtol).
87722
87723 2001-08-26  Jim Meyering  <meyering@lucent.com>
87724
87725         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87726         of copyright with `%s' so translators don't get an untranslated
87727         message in 2002.
87728         (COPYRIGHT_YEAR): Define.
87729         (version_etc): Use fprintf rather than fputs.
87730         Suggestion from Ulrich Drepper.
87731
87732         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87733
87734         * lib/strtoll.c: New file, from GNU libc.
87735         * lib/xstrtoimax.c: New file.
87736
87737         * lib/xstrtol.h: Add xstrtoimax.
87738         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87739         * lib/strtoimax.c: New file.  Likewise, but first define
87740         STRTOUXMAX_SIGNED.
87741
87742         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87743         ...
87744         * lib/strtoxmax.c: ... then renamed to this.
87745
87746 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87747
87748         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87749         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87750         (jm_AC_TYPE_INTMAX_T): New macro.
87751         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87752
87753         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87754
87755         * m4/longlong.m4: Renamed from ulonglong.m4.
87756         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87757         * m4/uintmax_t.m4: Removed.
87758
87759 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87760
87761         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87762         Port to Solaris 8, where 'sed' requires a space after the 'r'
87763         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87764         Redirect output to $tmp just once.
87765
87766 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87767
87768         * lib/addext.c (<errno.h>): Include.
87769         (errno): Declare if not defined.
87770         (addext): Work correctly when pathconf returns -1 and leaves
87771         errno alone because there is no limit.  Also, work even if
87772         pathconf returns a value greater than SIZE_MAX.
87773
87774 2001-08-12  Jim Meyering  <meyering@lucent.com>
87775
87776         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87777         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87778         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87779         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87780         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87781         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87782         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87783         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87784         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87785         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87786         utime.m4, utimes.m4, xstrtoumax.m4:
87787         Quote the first argument in each use of AC_DEFUN.
87788
87789 2001-08-12  Jim Meyering  <meyering@lucent.com>
87790
87791         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87792         Simply `return getcwd (NULL, 0);'.
87793         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87794         Use 1300 as initial value for length, not PATH_MAX.
87795
87796         * lib/pathmax.h: Clean up cpp syntax.
87797
87798 2001-08-12  Jim Meyering  <meyering@lucent.com>
87799
87800         * lib/gettimeofday.c: New file.
87801         * lib/gtod.h: New file.
87802         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87803
87804 2001-08-05  Jim Meyering  <meyering@lucent.com>
87805
87806         * m4/jm-macros.m4: Require autoconf-2.52.
87807
87808 2001-08-04  Jim Meyering  <meyering@lucent.com>
87809
87810         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87811         stmt, to get in sync with glibc.
87812
87813 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87814
87815         The following changes are from gettext 0.10.39 as maintained by
87816         Bruno Haible.
87817
87818         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87819         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87820         with inverted sense.  All uses changed.
87821
87822         * lib/mbswidth.c: Don't include <limits.h>.
87823         Include <stdlib.h> and <string.h> unconditionally.
87824         (iswcntrl, mbsinit, ISCNTRL): New macros.
87825         (mbsnwidth): Use K&R style function declarations.
87826         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87827         can optimize it when MB_CUR_MAX == 1.
87828         The width of control characters is zero, not 1.
87829
87830 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87831
87832         The following changes are from gettext 0.10.39 as maintained by
87833         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87834
87835         * m4/codeset.m4: Upgrade to serial AM1.
87836         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87837         all uses changed.  Quote first arg of AC_DEFUN.
87838         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87839
87840         * m4/iconv.m4: Upgrade to serial AM2.
87841         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87842         Add --with-libconv-prefix.
87843         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87844         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87845         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87846         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87847         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87848
87849         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87850         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87851         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87852         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87853         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87854         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87855         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87856         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87857         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87858
87859         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87860         string.h any more.
87861
87862         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87863         not the default value.
87864
87865         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87866         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87867         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87868         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87869         Also check for iswcntrl, used for wcwidth fallback.
87870         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87871         to Autoconf 2.13.
87872
87873 2001-08-03  Jim Meyering  <meyering@lucent.com>
87874
87875         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87876         as it was in the original.  Reported by Paul Eggert.
87877
87878 2001-07-16  Jim Meyering  <meyering@lucent.com>
87879
87880         * m4/gettimeofday.m4: New file.
87881         Prompted by a report from Bernhard Baehr.
87882
87883 2001-07-15  Jim Meyering  <meyering@lucent.com>
87884
87885         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87886         stuff. Now it's in ../Makefile.cfg.
87887
87888 2001-07-15  Jim Meyering  <meyering@lucent.com>
87889
87890         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87891         (BUILT_SOURCES): Add unlocked-io.h.
87892         (io_functions): Define.
87893         (unlocked-io.h): New rule.
87894         (DISTCLEANFILES): Add unlocked-io.h.
87895         (all-local): Depend on unlocked-io.h, to ensure it is created.
87896
87897         * lib/unlocked-io.hin: New file
87898
87899         * lib/regex.c: Update from glibc.
87900
87901 2001-07-05  Jim Meyering  <meyering@lucent.com>
87902
87903         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87904         recommendation.
87905         (libfetish_a_SOURCES): Put all .h files here instead.
87906         Remove a thus-exposed (better checks in automake) duplicate and
87907         two unnecessary .h files.
87908
87909 2001-07-04  Jim Meyering  <meyering@lucent.com>
87910
87911         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87912         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87913         distcheck failure.
87914
87915 2001-07-02  Jim Meyering  <meyering@lucent.com>
87916
87917         The following changes were prompted by suggestions from Bruno Haible.
87918
87919         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87920         is now generated.
87921         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87922         definition of EXTRA_DIST.
87923         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87924         ensure that the generated file is created/updated whenever the list
87925         of $(unlocked_functions) is changed.
87926         (jm-glibc-io.m4): New rule.
87927         (unlocked-io.h): New rule -- currently unused.
87928
87929 2001-06-24  Jim Meyering  <meyering@lucent.com>
87930
87931         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87932         unmatched right bracket, rather than kludging it with an extra,
87933         falsely-matching quote in a comment.  Patch by Akim Demaille.
87934
87935 2001-06-11  Jim Meyering  <meyering@lucent.com>
87936
87937         * lib/regex.c: Update from GNU libc.
87938
87939 2001-05-27  Jim Meyering  <meyering@lucent.com>
87940
87941         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87942         Check for ut_type in struct utmp.
87943
87944 2001-05-27  Jim Meyering  <meyering@lucent.com>
87945
87946         * lib/readutmp.h (UT_TYPE): Define.
87947
87948 2001-05-24  Jim Meyering  <meyering@lucent.com>
87949
87950         * lib/argmatch.c: Include "quote.h".
87951         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87952         quote function.  Reported by Göran Uddeborg.
87953
87954 2001-05-22  Jim Meyering  <meyering@lucent.com>
87955
87956         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87957         now that we use the package-supplied version unconditionally.
87958         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87959
87960 2001-05-21  Jim Meyering  <meyering@lucent.com>
87961
87962         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87963         shell syntax errors.
87964
87965 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87966
87967         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87968
87969 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87970
87971         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87972         Don't bother to check library strftime, since
87973         we'll be using our own my_strftime function anyway.
87974         Define my_strftime instead of strftime.
87975
87976 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87977
87978         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87979         which is not yet declared.
87980
87981 2001-05-15  Jim Meyering  <meyering@lucent.com>
87982
87983         * m4/regex.m4: Use proper quoting so brackets appear in the test
87984         program.
87985         Reported by, and with help from, Bruno Haible.
87986
87987 2001-05-13  Jim Meyering  <meyering@lucent.com>
87988
87989         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87990         undefined.
87991
87992 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87993
87994         dirname code cleanup.  base_name now behaves more compatibly
87995         with POSIX basename when given file names that have trailing
87996         slashes, and similarly for dir_name.  Add new primitives
87997         base_len and dir_len.  Put the directory-name-related decls
87998         into dirname.h.
87999
88000         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88001         * lib/backupfile.c (base_name): Likewise.
88002         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88003         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88004         * lib/makepath.c (strip_trailing_slashes): Likewise.
88005         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88006         ISSLASH): Likewise.
88007         * lib/rename.c (strip_trailing_slashes): Likewise.
88008         * lib/same.c (base_name): Likewise.
88009         * lib/stripslash.c (ISSLASH): Likewise.
88010
88011         * lib/addext.c: Include <dirname.h> after size_t is defined.
88012         * lib/backupfile.c: Likewise.
88013
88014         * lib/addext.c (addext): Use base_len to trim redundant
88015         trailing slashes instead of doing it ourselves.
88016         But do not trim the last slash if it is not redundant.
88017
88018         * lib/backupfile.c (find_backup_file_name,
88019         max_backup_version): Use base_len instead of rolling it ourselves.
88020         Handle the case of "" and (on DOS) "C:" correctly.
88021
88022         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88023         needed. Include <string.h>, <dirname.h>.
88024         (base_name): Allow file names ending in slashes, other than names
88025         that are all slashes.  In this case, return the basename followed
88026         by the slashes.  This is more general, and can be used in places
88027         where the original base_name purposely had an assertion failure.
88028         (base_len): New function.
88029
88030         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88031         Do not include <assert.h>; no longer needed.
88032         Include xalloc.h.
88033         (memrchr): Remove decl.
88034         (dir_name_r): Remove.
88035         (dir_len): Renamed from dirlen.  All callers changed.
88036         Rewrite in terms of base_name, for simplicity and consistency.
88037         (dir_name): Never return NULL.  All callers changed.
88038         Do not include <stdlib.h> in test program; no longer needed.
88039         return 0; is fine for test program.
88040
88041         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88042         New macros.
88043         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88044
88045         * lib/path-concat.c (path_concat): Use base_len to compute
88046         base length, not strlen; this means we cannot rely on memcpy
88047         to null-terminate.
88048
88049         * lib/same.c (STREQ): Remove.
88050         (same_name): Handle the case where the basename ends in trailing '/'.
88051
88052         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88053         a slash was stripped.  Do not strip the last slash after a
88054         file system prefix.
88055
88056 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88057
88058         * lib/Makefile.am (libfetish_a_SOURCES):
88059         Add strftime.c, since we now compile it on all hosts.
88060
88061         * lib/strftime.c (my_strftime):
88062         Define to nstrftime if emacs, but only if my_strftime is not defined.
88063         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88064         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88065         Add one more extra argument: a nanoseconds value.
88066         All uses changed.
88067         (ns): New macro.
88068         (my_strftime function): Add %N format.
88069         (emacs_strftimeu): Renamed from emacs_strftime,
88070         with extra ut argument.
88071
88072 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88073
88074         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88075
88076 2001-04-21  Jim Meyering  <meyering@lucent.com>
88077
88078         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88079         doesn't interfere.
88080
88081 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88082
88083         * m4/ftruncate.m4: Check for chsize.
88084         Link with ftruncate.o unconditionally if ftruncate is missing.
88085         This was required when cross-compiling to i586-mingw32msvc.
88086
88087 2001-04-08  Jim Meyering  <meyering@lucent.com>
88088
88089         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88090         recomputed; that's necessary when the offset spans a DST transition.
88091         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88092
88093 2001-04-02  Jim Meyering  <meyering@lucent.com>
88094
88095         * lib/regex.h, regex.c: Update from GNU libc.
88096
88097 2001-03-24  Jim Meyering  <meyering@lucent.com>
88098
88099         * m4/jm-macros.m4: Require autoconf-2.49d.
88100
88101 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88102
88103         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88104
88105 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88106
88107         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88108
88109 2001-03-17  Jim Meyering  <meyering@lucent.com>
88110
88111         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88112         now that the version in autoconf is equivalent.
88113         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88114
88115         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88116         Suggestion from Akim Demaille.
88117
88118         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88119         (jm_PREREQ_TEMPNAME): New function.
88120
88121 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88122
88123         * lib/tempname.c (uint64_t): Define to uintmax_t if
88124         not defined, and if UINT64_MAX is not defined.
88125         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88126         Reported by John David Anglin.
88127
88128 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88129
88130         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88131         resolve alias if codeset is empty.
88132         * lib/config.charset (BeOS): Use wildcard syntax.
88133
88134 2001-03-13  Jim Meyering  <meyering@lucent.com>
88135
88136         * lib/path-concat.c (path_concat)
88137         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88138         concatenating e.g., `C:' and `foo'.
88139         From Bruno Haible.
88140
88141 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88142
88143         * lib/localcharset.c (locale_charset): Don't use
88144         setlocale(LC_CTYPE,NULL). Don't return NULL.
88145         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88146
88147 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88148
88149         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88150         support for DOS/DJGPP.
88151
88152 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88153
88154         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88155         lacks mkstemp.  Compile our own tempname.c if we compile our own
88156         mkstemp.c, as mkstemp relies on tempname.
88157
88158 2001-03-01  Jim Meyering  <meyering@lucent.com>
88159
88160         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88161         AH_VERBATIM really does output its argument verbatim.
88162
88163 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88164
88165         * lib/Makefile.am (libfetish_a_SOURCES):
88166         Add dup-safer.c, fopen-safer.c.
88167         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88168
88169         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88170         * lib/unistd-safer.h: New files.
88171
88172 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88173
88174         The mkstemp replacement is taken from glibc 2.2.2, with some
88175         portability fixes for use outside glibc, as follows:
88176
88177         * lib/tempname.c (struct_stat64): New macro.
88178         (direxists, __gen_tempname): Use it.
88179         This avoids a portability problem with Solaris 8.
88180
88181         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88182         (<stddef.h>, <stdint.h>, <string.h>):
88183         Include only if STDC_HEADERS || _LIBC.
88184         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88185         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88186         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88187         (__set_errno): Define this macro if <errno.h> doesn't.
88188         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88189         Define these macros if <stdio.h> doesn't.
88190         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88191         Define these macros if <sys/stat.h>
88192         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88193         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88194         __xstat64): Define if not _LIBC.
88195         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88196         (__gen_tempname): Invoke gettimeofday only if
88197         HAVE_GETTIMEOFDAY || _LIBC;
88198         otherwise, fall back on plain "time".
88199         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88200
88201         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88202
88203         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88204
88205 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88206
88207         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88208
88209 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88210
88211         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88212         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88213         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88214         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88215
88216 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88217
88218         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88219         Remove workaround macros for hosts that have mbrtowc but not
88220         mbstate_t, as we now insist on proper declarations for both
88221         before using mbrtowc.
88222
88223 2001-02-17  Jim Meyering  <meyering@lucent.com>
88224
88225         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88226         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88227         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88228         UnixWare 7.1.1.
88229
88230         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88231         rather than AC_CACHE_VAL.
88232
88233 2001-02-17  Jim Meyering  <meyering@lucent.com>
88234
88235         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88236         around included file name.
88237
88238         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88239
88240         * lib/strftime.c: Update from GNU libc (the only changes were to
88241         comments).
88242
88243 2001-02-17  Jim Meyering  <meyering@lucent.com>
88244
88245         * lib/regex.c: Update from libc.
88246
88247 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88248
88249         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88250         clash.
88251
88252 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88253
88254         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88255         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88256         Reported by Mark Hounschell via Paul Eggert.
88257
88258 2001-02-07  Jim Meyering  <meyering@lucent.com>
88259
88260         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88261
88262 2001-02-05  Jim Meyering  <meyering@lucent.com>
88263
88264         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88265         it includes the patch required for `large file' support with at least
88266         HP-UX's 10.20 /bin/cc.
88267
88268 2001-02-03  Jim Meyering  <meyering@lucent.com>
88269
88270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88271         AS_IF, now that it works once again (mysteriously).
88272         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88273
88274 2001-01-30  Jim Meyering  <meyering@lucent.com>
88275
88276         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88277         * m4/chown.m4: Rename conftestchown to conftest.chown.
88278         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88279         s/conftestdir2/conftest.d2/.
88280         * m4/utimes.m4: s/conftestdata/conftest.data/
88281         Inspired by Pavel Roskin's change in autoconf.
88282
88283 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88284
88285         * lib/config.charset: Update for FreeBSD 4.2.
88286
88287 2001-01-27  Jim Meyering  <meyering@lucent.com>
88288
88289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88290         a use of AS_IF.
88291         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88292
88293 2001-01-26  Jim Meyering  <meyering@lucent.com>
88294
88295         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88296         quotearg.c includes it.
88297
88298 2001-01-26  Jim Meyering  <meyering@lucent.com>
88299
88300         * lib/quotearg.c: Include stddef.h.
88301         * lib/quote.c: Include stddef.h.
88302         Reported by Axel Kittenberger.
88303
88304         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88305         line in double quotes so that it evokes a better diagnostic.
88306         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88307         Reported by Axel Kittenberger.
88308
88309 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88310
88311         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88312         as if it was a `charset'.
88313
88314 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88315
88316         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88317         has const.
88318
88319 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88320
88321         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88322         to avoid a warning.  Add back 'const' to inptr.
88323
88324 2001-01-20  Jim Meyering  <meyering@lucent.com>
88325
88326         Be sure that headers are checked before used in code compiled
88327         for the type checks.
88328         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88329         In place of that, invoke jm_CHECK_ALL_TYPES.
88330         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88331         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88332         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88333         The check for ssize_t was mistakenly run before the test for unistd.h.
88334
88335         The configure-time check for stdbool.h was missing.
88336         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88337         (jm_PREREQ_HASH): New function.
88338
88339 2001-01-17  Jim Meyering  <meyering@lucent.com>
88340
88341         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88342         for autoconf-2.49c.
88343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88344
88345 2001-01-16  Jim Meyering  <meyering@lucent.com>
88346
88347         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88348         From Bruno Haible.
88349
88350 2001-01-14  Jim Meyering  <meyering@lucent.com>
88351
88352         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88353         foo and bar.  Create conftestdir/ in the script, not in the C code.
88354         Remove directories in the script, not in the C code.
88355         Remove conftestdir{,2} before trying to create the directory.
88356         Make the entire configure script fail if the mkdir fails.
88357
88358 2001-01-14  Jim Meyering  <meyering@lucent.com>
88359
88360         * lib/rename.c: New file.  From Volker Borchert.
88361         Include stdlib.h, string.h or strings.h, and xalloc.h.
88362         Use strip_trailing_slashes rather than open-coding it.
88363
88364 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88365
88366         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88367
88368 2001-01-03  Jim Meyering  <meyering@lucent.com>
88369
88370         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88371         of local `inptr' to avoid warning with some system declarations of
88372         iconv.
88373
88374 2001-01-02  Volker Borchert  <bt@teknon.de>
88375
88376         * m4/rename.m4: New file.
88377         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88378
88379 2001-01-01  Jim Meyering  <meyering@lucent.com>
88380
88381         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88382         even on systems with utmpx.h.  It's necessary for the declaration of
88383         utmp's ut_user member.  Reported by Andreas Jaeger.
88384
88385         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88386         available. They are required for the declarations of getgrgid and
88387         getpwuid resp.
88388         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88389         Reported by Andreas Jaeger.
88390
88391 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88392
88393         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88394         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88395         so `make install' also works in VPATH builds.
88396
88397 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88398
88399         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88400         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88401         can be used in subdirectories.
88402
88403 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88404
88405         * lib/modechange.c: Do not assume that mode_t uses the
88406         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88407         the other-execute bit of FOO even if S_IXOTH != 1.
88408
88409         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88410         WOTH, XOTH, ALLM): New macros.
88411         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88412          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88413         Use them.
88414         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88415         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88416         (mode_compile):
88417         No need to use uintmax_t; unsigned long is long enough.
88418         Don't bother to get suffix since we don't use it.
88419
88420 2000-12-26  Jim Meyering  <meyering@lucent.com>
88421
88422         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88423         better with autoheader.
88424
88425 2000-12-24  Jim Meyering  <meyering@lucent.com>
88426
88427         * lib/hash.c (is_prime): Return explicit boolean values.
88428         (hash_get_first): Return NULL to appease Irix5.6's 89.
88429         Reported by Nelson Beebe.
88430
88431 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88432
88433         * lib/localcharset.c (locale_charset): Add support for Win32.
88434
88435 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88436
88437         * lib/physmem.h, lib/physmem.c: New files.
88438
88439         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88440         (noinst_HEADERS): Add physmem.h.
88441
88442         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88443         't' for compatibility with Solaris 8 sort.
88444
88445 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88446
88447         * lib/config.charset: Add support for BeOS.
88448
88449 2000-12-17  Jim Meyering  <meyering@lucent.com>
88450
88451         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88452         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88453
88454 2000-12-16  Jim Meyering  <meyering@lucent.com>
88455
88456         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88457         N and M) would have treated it like `chown N:N FILE'.
88458
88459         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88460
88461 2000-12-16  Jim Meyering  <meyering@lucent.com>
88462
88463         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88464         SHELLS_FILE to a file name that's useful on djgpp systems.
88465         Include stdlib.h.
88466         (ADDITIONAL_DEFAULT_SHELLS): Define.
88467         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88468         Based mostly on a patch from Prashant TR.
88469
88470 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88471
88472         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88473         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88474         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88475
88476 2000-12-08  Andreas Schwab  <schwab@suse.de>
88477
88478         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88479         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88480
88481 2000-12-07  Jim Meyering  <meyering@lucent.com>
88482
88483         * lib/stripslash.c (ISSLASH): Define.
88484         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88485         `/'.
88486         From Prashant TR.
88487
88488         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88489         (dir_name_r): Declare this function as static.
88490         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88491         manifest itself on a name containing a mix of slashes and
88492         backslashes.
88493         Make this function work with names starting with a DOS-style
88494         drive letter and colon prefix.
88495         (dir_name): Append `.' if necessary.
88496         Based mostly on patches from Prashant TR and Eli Zaretskii.
88497
88498         * lib/dirname.h (dir_name_r): Remove prototype.
88499
88500 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88501
88502         * m4/off_t-format.m4: Remove this file.
88503         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88504
88505 2000-12-06  Jim Meyering  <meyering@lucent.com>
88506
88507         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88508         replacement strtoull, we may well need the replacement strtoul, too.
88509         Check for declarations of strtoul and strtoull.
88510         Check for strtol.  Mainly as a cue to cause automake to include
88511         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88512         Check for limits.h -- strtol.c needs it.
88513
88514 2000-12-05  Jim Meyering  <meyering@lucent.com>
88515
88516         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88517
88518 2000-12-04  Jim Meyering  <meyering@lucent.com>
88519
88520         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88521         Also include memory.h, stdlib.h, unistd.h if appropriate.
88522         Reported by Andreas Jaeger (conflicting declaration of malloc).
88523
88524 2000-12-02  Jim Meyering  <meyering@lucent.com>
88525
88526         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88527         * m4/jm-macros.m4 (jm_MACROS): require it.
88528
88529 2000-12-02  Jim Meyering  <meyering@lucent.com>
88530
88531         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88532
88533 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88534
88535         * lib/memrchr.c: Include <config.h> before any system include file.
88536
88537 2000-11-30  Jim Meyering  <meyering@lucent.com>
88538
88539         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88540
88541 2000-11-30  Jim Meyering  <meyering@lucent.com>
88542
88543         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88544
88545 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88546
88547         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88548
88549 2000-11-26  Jim Meyering  <meyering@lucent.com>
88550
88551         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88552
88553 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88554
88555         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88556         size of (size_t) -1; it's not portable.
88557
88558 2000-11-17  Jim Meyering  <meyering@lucent.com>
88559
88560         * lib/strstr.c: Update from GNU libc.
88561
88562 2000-11-17  Akim Demaille  <akim@epita.fr>
88563
88564         * lib/obstack.h: Formatting changes.
88565         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88566         prevent type checking.
88567         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88568         cast the value to (void *): assigning a `foo *' to a `void *'
88569         variable is valid.
88570         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88571
88572 2000-11-16  Jim Meyering  <meyering@lucent.com>
88573
88574         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88575
88576 2000-11-11  Jim Meyering  <meyering@lucent.com>
88577
88578         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88579
88580 2000-11-10  Jim Meyering  <meyering@lucent.com>
88581
88582         * lib/obstack.h: Update from GNU libc.
88583         * lib/obstack.c: Likewise.
88584
88585 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88586
88587         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88588
88589 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88590
88591         * lib/getusershell.c (setusershell): Use rewind rather than
88592         fseek/fseeko, to avoid configuration hassles with fseeko.
88593         Don't bother opening SHELLS_FILE if shellstream is NULL;
88594         it's not necessary.
88595
88596 2000-11-05  Jim Meyering  <meyering@lucent.com>
88597
88598         * lib/makepath.h (make_dir): Declare.
88599         * lib/makepath.c (make_dir): Remove `static' attribute.
88600         Tweak a comment.
88601
88602 2000-11-04  Jim Meyering  <meyering@lucent.com>
88603
88604         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88605
88606 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88607
88608         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88609         last one in a bucket, advance to the next bucket.
88610
88611 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88612
88613         * lib/fnmatch.c: Do not comment out all the code if we are using
88614         the GNU C library, because in some cases we are replacing buggy
88615         code in the GNU C library itself.
88616
88617 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88618
88619         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88620         (regex_compile): Catch bogus \(\1\).
88621
88622 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88623
88624         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88625         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88626         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88627
88628 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88629
88630         * lib/error.h, getline.h, modechange.h:
88631         Remove "2000" from Copyright line, as the file hasn't been
88632         changed this year other than in the copyright notice.
88633
88634         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88635         was changed this year.
88636
88637 2000-10-29  Jim Meyering  <meyering@lucent.com>
88638
88639         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88640         renaming.
88641         * m4/ls-mntd-fs.m4: Likewise
88642
88643 2000-10-29  Jim Meyering  <meyering@lucent.com>
88644
88645         * lib/xstat.in: Fix grammar in comment.
88646
88647 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88648
88649         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88650         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88651         doesn't define __restrict_arr.
88652
88653 2000-10-28  Jim Meyering  <meyering@lucent.com>
88654
88655         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88656         (jm_PREREQ_MEMCHR): New function.
88657
88658 2000-10-28  Jim Meyering  <meyering@lucent.com>
88659
88660         * lib/memchr.c: Update from libc.
88661         Adjust for portability:
88662         [HAVE_STDLIB_H]: Include stdlib.h.
88663         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88664         Undef __memchr, too.
88665         [!weak_alias]: Define __memchr to memchr.
88666
88667         * lib/regex.c: Update from libc.
88668         * lib/regex.h: Likewise.
88669         * lib/getopt1.c: Likewise.
88670         * lib/memcmp.c: Likewise.
88671
88672         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88673         Avoid using fseek, when possible -- it's broken by design.
88674         Patch by Ulrich Drepper.
88675
88676 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88677
88678         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88679         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88680         Giving in to popular pressure to shut up the compiler with casts.
88681
88682 2000-10-26  Jim Meyering  <meyering@lucent.com>
88683
88684         * lib/strftime.c: Update from libc.
88685
88686 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88687
88688         * regex.c: More `unsigned char' -> `re_char' changes.
88689         Also change several `int' into `re_wchar_t'.
88690         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88691         (PUSH_FAILURE_POINTER): Don't cast any more.
88692         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88693         We want GCC to complain, since this piece of code makes
88694         re_match non-reentrant, which *should* be fixed.
88695         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88696         (EXTEND_BUFFER): Use RETALLOC.
88697         (SET_LIST_BIT): Don't cast.
88698         (re_wchar_t): New type.
88699         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88700         that those two functions will always properly return.
88701         (IMMEDIATE_QUIT_CHECK): Cast to void.
88702         (analyse_first): Use recursion rather than an explicit stack.
88703         (re_compile_fastmap): Can't fail anymore.
88704         (re_search_2): Don't check re_compile_fastmap for failure.
88705         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88706         Now also sets the new value (passed in a new argument).
88707         (re_match_2_internal): Use it.
88708         Also, use a new var `reg' of type size_t when looping through regs
88709         rather than reuse the inappropriate `mcnt'.
88710
88711 2000-10-25  Jim Meyering  <meyering@lucent.com>
88712
88713         * lib/obstack.c: Update from libc.
88714
88715 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88716
88717         * regex.c (regex_compile): Change the way of handling a range from
88718         a char less than 256 to a char not less than 256.
88719
88720 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88721
88722         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88723         NT-Emacs only.
88724         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88725         so that re_search functions only quit when callers expect them to.
88726
88727 2000-10-23  Jim Meyering  <meyering@lucent.com>
88728
88729         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88730         wrong.  That set_locale call must not have any side effects.
88731         From Paul Eggert.
88732
88733 2000-10-22  Jim Meyering  <meyering@lucent.com>
88734
88735         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88736         [CYCLIC]: Remove now-unused definition.
88737
88738         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88739         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88740         Suggestion from Ulrich Drepper.
88741
88742 2000-10-21  Jim Meyering  <meyering@lucent.com>
88743
88744         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88745         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88746         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88747
88748 2000-10-21  Jim Meyering  <meyering@lucent.com>
88749
88750         * lib/dirname.c (memrchr): Declare if necessary.
88751         (dir_name): Remove the restriction that there be no
88752         trailing slashes.  Now, this code skips past them, effectively
88753         ignoring them.
88754         [TEST_DIRNAME] (main): New unit tests.
88755
88756         * lib/memrchr.c: New file from GNU libc.
88757         Undef __memrchr, too.
88758         [!weak_alias]: Define __memrchr to memrchr.
88759         Guard weak_alias use with `#ifdef weak_alias'.
88760
88761 2000-10-21  Jim Meyering  <meyering@lucent.com>
88762
88763         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88764         (dir_name): Use dir_name_r.
88765         * lib/dirname.h (dir_name_r): Declare it.
88766
88767 2000-10-17  Jim Meyering  <meyering@lucent.com>
88768
88769         * lib/quote.h (PARAMS): Define and use.
88770         Reported by Akim Demaille.
88771
88772         * lib/getopt.c: Update from libc.
88773
88774 2000-10-16  Jim Meyering  <meyering@lucent.com>
88775
88776         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88777         setlocale.
88778         From Jan Fedak.
88779
88780 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88781
88782         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88783
88784 2000-09-25  Jim Meyering  <meyering@lucent.com>
88785
88786         * lib/md5.h (rol): Define (from GnuPG).
88787
88788         * lib/sha.c: Give credit (GnuPG) where due.
88789         (M): Use rol rather than open-coding it.
88790         Add a FIXME comment.
88791
88792 2000-09-21  Jim Meyering  <meyering@lucent.com>
88793
88794         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88795         Reported by Michael Stone.
88796
88797 2000-09-20  Jim Meyering  <meyering@lucent.com>
88798
88799         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88800         (noinst_HEADERS): Add sha.h.
88801         Based on code from Scott G. Miller and from GnuPG.
88802
88803 2000-09-18  Jim Meyering  <meyering@lucent.com>
88804
88805         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88806         LIBS. Otherwise, everyone ends up linking with -lelf for some
88807         configurations.
88808         Reported by Mike Stone.
88809
88810 2000-09-15  Jim Meyering  <meyering@lucent.com>
88811
88812         * lib/regex.c: Update from libc.
88813
88814 2000-09-10  Jim Meyering  <meyering@lucent.com>
88815
88816         * lib/getopt.c (_getopt_internal): Update from glibc.
88817
88818 2000-09-09  Jim Meyering  <meyering@lucent.com>
88819
88820         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88821         think it should be used as a general replacement for isascii.
88822         * lib/fnmatch.c: Likewise.
88823         * lib/mbswidth.c: Likewise
88824         * lib/regex.c: Likewise.
88825
88826         Don't use atoi.
88827         * lib/userspec.c: Include sys/param.h and limits.h.
88828         Include xstrtol.h.
88829         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88830         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88831         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88832         UID, GID.  Check range.
88833
88834 2000-09-06  Jim Meyering  <meyering@lucent.com>
88835
88836         * lib/getopt.c (_getopt_internal): Update from glibc.
88837
88838 2000-08-30  Jim Meyering  <meyering@lucent.com>
88839
88840         * lib/strftime.c: Merge in changes from GNU libc.
88841
88842 2000-08-26  Jim Meyering  <meyering@lucent.com>
88843
88844         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88845         * m4/fpending.m4: New file.
88846
88847 2000-08-26  Jim Meyering  <meyering@lucent.com>
88848
88849         * lib/closeout.c: Include "__fpending.h".
88850         (close_stdout_status): Return right away if there's nothing to flush.
88851
88852         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88853         * lib/__fpending.c: New file.
88854         * lib/__fpending.h: New file.
88855
88856 2000-08-20  Jim Meyering  <meyering@lucent.com>
88857
88858         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88859         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88860         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88861
88862 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88863
88864         Improve fileutils installation on systems where running
88865         programs (like install) can't be unlinked.
88866         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88867         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88868
88869 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88870
88871         Standardize on "memory exhausted" instead of "Memory exhausted"
88872         or "virtual memory exhausted".
88873         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88874         "virtual memory exhausted".
88875         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88876         our own message.
88877         * lib/userspec.c (parse_user_spec): Likewise.
88878         * lib/bumpalloc.h: comment fix
88879         * lib/same.c, userspec.c: Include xalloc.h.
88880
88881         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88882         not char *const and pointing to a constant array.
88883         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88884         (xrealloc): Comment fix.
88885
88886         * lib/userspec.c (parse_user_spec):
88887         Don't translate a message until just before returning,
88888         to avoid unnecessary translation.
88889
88890 2000-08-07  Jim Meyering  <meyering@lucent.com>
88891
88892         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88893         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88894         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88895         getgroups.c, gethostname.c, getopt.h, group-member.c,
88896         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88897         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88898         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88899         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88900         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88901         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88902         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88903         yesno.c: Back out Copyright date changes for each file with no change
88904         this year.  This eases coordination with other programs using the same
88905         source code modules.  From Paul Eggert.
88906
88907 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88908
88909         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88910         not char, for compatibility with glibc 2.1.3 strftime.c.
88911
88912 2000-08-03  Greg McGary  <greg@mcgary.org>
88913
88914         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88915         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88916         (EXTEND_BUFFER): Use them.
88917
88918 2000-08-01  Jim Meyering  <meyering@lucent.com>
88919
88920         * lib/dirname.c (ISSLASH): Define.
88921         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88922         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88923         both `\' and `/' may be use as path separators.
88924         Based on a patch from Prashant TR.
88925
88926 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88927
88928         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88929         slot vector a constant, since it might get modified.
88930
88931 2000-07-31  Jim Meyering  <meyering@lucent.com>
88932
88933         * lib/xmalloc.c: Use `virtual memory exhausted', not
88934         `Memory exhausted'.
88935         * lib/obstack.c (print_and_abort): Likewise.
88936
88937 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88938
88939         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88940         buffer, so that the caller can always quote one small
88941         component of a "memory exhausted" message in slot 0.
88942         From a suggestion by Jim Meyering.
88943
88944 2000-07-30  Jim Meyering  <meyering@lucent.com>
88945
88946         * lib/makepath.c (make_path): Quote the other instance, too.
88947
88948         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88949         (STATIC_BUF_SIZE): Define.
88950         (quotearg_n_options): Use only statically allocated storage when
88951         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88952         than STATIC_BUF_SIZE.
88953
88954 2000-07-29  Jim Meyering  <meyering@lucent.com>
88955
88956         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88957         * lib/dirname.c (dir_name): Likewise.
88958
88959         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88960         `/'.
88961
88962         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88963         (dir_name): Assert that there are no trailing slashes.
88964
88965 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88966
88967         * lib/mbswidth.h (mbswidth): Add a flags argument.
88968         (mbswidth): New declaration.
88969         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88970         * lib/mbswidth.c (mbswidth): Add a flags argument.
88971         (mbsnwidth): New function.
88972
88973 2000-07-24  Jim Meyering  <meyering@lucent.com>
88974
88975         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88976
88977 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88978
88979         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88980
88981 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88982
88983         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88984         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88985         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88986         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88987         invoke multibyte primitives.
88988
88989 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88990
88991         * lib/quotearg.c:
88992         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88993         so that mbstate_t is always defined.
88994
88995         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88996         be 1 in at least one GCC installation, and this configuration
88997         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88998         performance on hosts that have mbrtowc but have only unibyte
88999         locales, but I assume these hosts are rare.
89000
89001 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89002
89003         * lib/mbswidth.c (_XOPEN_SOURCE):
89004         Don't define; this causes problems on Solaris 7.
89005         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89006
89007 2000-07-23  Jim Meyering  <meyering@lucent.com>
89008
89009         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89010         too: getgrgid, getpwuid, getuid.
89011
89012 2000-07-23  Jim Meyering  <meyering@lucent.com>
89013
89014         * lib/basename.c (base_name): Add an assertion.
89015
89016 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89017
89018         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89019         shadow its mbsinit function.
89020
89021 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89022
89023         * lib/mbswidth.h: New file.
89024         * lib/mbswidth.c: New file.
89025         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89026         (noinst_HEADERS): Add mbswidth.h.
89027
89028 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89029
89030         * lib/config.charset: Add support for FreeBSD. Improve support for
89031         HP-UX and IRIX 6.
89032
89033 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89034
89035         * m4/mbswidth.m4: New file.
89036         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89037
89038 2000-07-15  Jim Meyering  <meyering@lucent.com>
89039
89040         * lib/makepath.c: Include quote.h.
89041         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89042         corresponding argument in a `quote (...)' call.
89043         Give better diagnostics.
89044
89045         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89046         (noinst_HEADERS): Add quote.h.
89047
89048         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89049         from tar's src/misc.c.
89050         * lib/quote.h: New file.  Prototypes for same.
89051
89052 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89053
89054         From a suggestion by Bruno Haible.
89055         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89056         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89057         to decide whether to define the BeOS workaround macro;
89058         this adjusts to the change to AC_MBSTATE_T.
89059
89060 2000-07-14  Jim Meyering  <meyering@lucent.com>
89061
89062         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89063         jm_AC_TYPE_UINTMAX_T.
89064
89065 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89066
89067         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89068
89069         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89070         quotearg_buffer_restyled): Add support for
89071         clocale_quoting_style.  Undo previous change to
89072         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89073         and "{RIGHT QUOTATION MARK}" msgids.
89074
89075 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89076
89077         From a suggestion by Bruno Haible.
89078         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89079         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89080         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89081         and mbstate_t, to a single-part test that simply defines mbstate_t.
89082         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89083         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89084
89085 2000-07-10  Jim Meyering  <meyering@lucent.com>
89086
89087         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89088
89089         * m4/gnu-source.m4: Output to confdefs.h directly.
89090         Suggestion from Akim Demaille.
89091
89092 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89093
89094         The old behavior of quoting `like this' doesn't look good with
89095         newer, ISO-style fonts.  See:
89096         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89097
89098         Instead, quote "like this" by default.  Let the translator
89099         tailor the locale-specific quoting behavior by providing
89100         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89101
89102         * lib/quotearg.c (N_): New macro.
89103         (gettext_default): New function.
89104         (quotearg_buffer_restyled): Use
89105         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89106         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89107
89108 2000-07-09  Jim Meyering  <meyering@lucent.com>
89109
89110         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89111         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89112
89113         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89114         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89115
89116 2000-07-09  Jim Meyering  <meyering@lucent.com>
89117
89118         * lib/Most files: Update copyright dates to include 2000.
89119
89120 2000-07-08  Jim Meyering  <meyering@lucent.com>
89121
89122         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89123         if not defined.
89124         (xgethostname): Remove now-unnecessary #ifdef.
89125         Move declaration of `err' into loop where it's used.
89126
89127 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89128         and Bruno Haible  <haible@clisp.cons.org>
89129
89130         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89131         only if the test for an object-type mbstate_t fails.  This
89132         prevents us from mistakenly reporting that mbstate_t is a
89133         system object type after we "#define mbstate_t int" to work
89134         around its lack.
89135
89136 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89137         and Bruno Haible  <haible@clisp.cons.org>
89138
89139         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89140
89141 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89142
89143         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89144         to strerror_r.
89145         Include <ctype.h> for use of isalpha.
89146
89147 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89148
89149         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89150         by allocating a larger buffer. Test the gethostname return value for
89151         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89152         returns an error and ENAMETOOLONG isn't defined.
89153
89154 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89155
89156         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89157         dimension.
89158
89159 2000-07-04  Jim Meyering  <meyering@lucent.com>
89160
89161         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89162         of the deprecated AC_CHECKING.
89163
89164 2000-07-04  Jim Meyering  <meyering@lucent.com>
89165
89166         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89167         Reported by Bruno Haible.
89168
89169 2000-07-04  Jim Meyering  <meyering@lucent.com>
89170
89171         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89172         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89173         lacks mbrtowc.
89174
89175 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89176
89177         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89178         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89179
89180 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89181         and Bruno Haible  <haible@clisp.cons.org>
89182
89183         * lib/quotearg.c (mbrtowc):
89184         Assign to *pwc, and return 1 only if result is nonzero.
89185         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89186
89187 2000-07-03  Jim Meyering  <meyering@lucent.com>
89188
89189         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89190
89191 2000-07-03  Jim Meyering  <meyering@lucent.com>
89192
89193         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89194         This is necessary to get a definition of e.g., UTMP_FILE on
89195         HP-UX 10.20.
89196         From Bob Proulx.
89197
89198 2000-07-02  Jim Meyering  <meyering@lucent.com>
89199
89200         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89201
89202         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89203         AC_LIBOBJ(function_name).
89204         * m4/chown.m4: Likewise.
89205         * m4/fnmatch.m4: Likewise.
89206         * m4/ftruncate.m4: Likewise.
89207         * m4/getgroups.m4: Likewise.
89208         * m4/getline.m4: Likewise.
89209         * m4/group-member.m4: Likewise.
89210         * m4/jm-macros.m4: Likewise.
89211         * m4/lstat.m4: Likewise.
89212         * m4/malloc.m4: Likewise.
89213         * m4/memcmp.m4: Likewise.
89214         * m4/nanosleep.m4: Likewise.
89215         * m4/putenv.m4: Likewise.
89216         * m4/realloc.m4: Likewise.
89217         * m4/regex.m4: Likewise.
89218         * m4/stat.m4: Likewise.
89219         * m4/strftime.m4: Likewise.
89220
89221 2000-07-02  Jim Meyering  <meyering@lucent.com>
89222
89223         * lib/quotearg.c (mbstate_t): Don't define here.
89224
89225 2000-07-02  Jim Meyering  <meyering@lucent.com>
89226
89227         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89228
89229 2000-07-01  Jim Meyering  <meyering@lucent.com>
89230
89231         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89232
89233 2000-07-01  Jim Meyering  <meyering@lucent.com>
89234
89235         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89236         problem.
89237
89238 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89239
89240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89241         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89242
89243 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89244
89245         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89246         per change in ../m4/ls-mntd-fs.m4.
89247         (read_filesystem_list): Ignore symbolic links.
89248
89249 2000-06-29  Jim Meyering  <meyering@lucent.com>
89250
89251         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89252         for declaration of strcmp.
89253
89254         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89255
89256         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89257         Avoid warning by casting result to `char *' to remove `const'.
89258
89259 2000-06-28  Jim Meyering  <meyering@lucent.com>
89260
89261         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89262         included by quotearg.c, for which we perform this test.  From
89263         Bruno Haible.
89264
89265 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89266
89267         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89268         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89269         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89270
89271 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89272
89273         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89274
89275 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89276
89277         savedir now sets errno on failure and invokes xmalloc to get memory.
89278         Fix a couple of other minor bugs while we're at it.
89279
89280         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89281         (NAMLEN): Remove macro.
89282         (malloc, realloc): Remove decls.
89283         (stpcpy): Likewise.
89284         ("xalloc.h"): Include.
89285         (NAME_SIZE_DEFAULT): New macro.
89286         (savedir): Use xmalloc / xrealloc to allocate memory.
89287         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89288         Skip "" directory entries.
89289         Use strlen to calculate directory entry length, since the old method
89290         is rarely used these days and isn't worth supporting.
89291         Don't use a pointer after freeing it.
89292         Check for integer overflow when calculating allocation size.
89293         Use memcpy to copy entries, instead of stpcpy.
89294         Set errno properly when returning NULL.
89295         Check for readdir error.
89296
89297 2000-06-26  Jim Meyering  <meyering@lucent.com>
89298
89299         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89300
89301 2000-06-25  Jim Meyering  <meyering@lucent.com>
89302
89303         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89304         Linux header bug when _XOPEN_SOURCE is defined to 500.
89305
89306 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89307
89308         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89309         deficiency.
89310
89311 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89312
89313         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89314         Include xalloc.h.
89315         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89316
89317 2000-06-24  Jim Meyering  <meyering@lucent.com>
89318
89319         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89320         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89321         for which strerror does return char*, but which lacks a conveniently
89322         accessible declaration of the function.  If the compile-test says
89323         strerror_r doesn't work, then resort to a `run'-test that works on
89324         BeOS and segfaults on DEC Unix.
89325
89326 2000-06-24  Jim Meyering  <meyering@lucent.com>
89327
89328         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89329
89330 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89331
89332         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89333         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89334
89335 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89336
89337         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89338         (mbrtowc, mbstate_t): Define substitutes if
89339         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89340         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89341         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89342
89343 2000-06-23  Jim Meyering  <meyering@lucent.com>
89344
89345         * m4/afs.m4: Add missing AC_MSG_RESULT.
89346         Reported by Bruno Haible.
89347
89348         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89349         Suggestion from Bruno Haible.
89350
89351 2000-06-23  Jim Meyering  <meyering@lucent.com>
89352
89353         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89354
89355 2000-06-21  Jim Meyering  <meyering@lucent.com>
89356
89357         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89358
89359 2000-06-21  Jim Meyering  <meyering@lucent.com>
89360
89361         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89362         (noinst_HEADERS): Add getstr.h.
89363
89364         * lib/getline.c (getstr): Move into a separate file.
89365         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89366         the following changes: new parameter, delim2; both delim[12]
89367         parameters have type `int', not `char'.  The latter would lose
89368         with 8-bit delimiters.
89369         * lib/getstr.h: New file.
89370
89371 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89372
89373         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89374         than 1024, return a memory chunk of least possible size, instead
89375         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89376         Use free/xmalloc instead of xrealloc to avoid copying for very long
89377         paths.
89378
89379 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89380
89381         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89382         the empty string.
89383
89384 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89385
89386         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89387         address, not strdup.  Include <stdlib.h> and don't declare free().
89388
89389 2000-06-19  Jim Meyering  <meyering@lucent.com>
89390
89391         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89392
89393 2000-06-18  Jim Meyering  <meyering@lucent.com>
89394
89395         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89396
89397         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89398         `checking whether...' message to be consistent with that of the
89399         lstat test.
89400
89401 2000-06-18  Jim Meyering  <meyering@lucent.com>
89402
89403         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89404         Besides, these days every porting target provides a mkdir function.
89405
89406         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89407         needed. (this snippet comes from src/system.h).
89408
89409 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89410
89411         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89412
89413 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89414
89415         * lib/human.c (adjust_value): New function.
89416         (human_readable_inexact): Apply rounding style even when
89417         printing approximate values.
89418
89419 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89420
89421         * lib/human.c (human_readable_inexact): Allow an input block
89422         size that is not a multiple of the output block size, and vice versa.
89423         Reported by Piergiorgio Sartor.
89424
89425 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89426
89427         * lib/getdate.y (get_date): Apply relative times after time
89428         zone indicator, not before.  Reported by Todd A. Jacobs.
89429
89430 2000-06-13  Jim Meyering  <meyering@lucent.com>
89431
89432         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89433
89434         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89435
89436 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89437
89438         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89439
89440 2000-06-12  Jim Meyering  <meyering@lucent.com>
89441
89442         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89443         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89444         optional argument.
89445         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89446         the optional argument, `lib'.
89447
89448 2000-06-08  Jim Meyering  <meyering@lucent.com>
89449
89450         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89451
89452 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89453
89454         Rewrite largefile configuration so that we don't need to run
89455         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89456         AC_CANONICAL_HOST in configure.in -- jmm]
89457
89458         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89459         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89460         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89461         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89462         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89463         All uses changed.
89464         Instead of inspecting the output of getconf, try to compile the
89465         test program without and with the macro definition.
89466         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89467         for getconf.  Instead, check for the needed flags by compiling
89468         test programs.
89469
89470 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89471
89472         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89473
89474 2000-06-04  Jim Meyering  <meyering@lucent.com>
89475
89476         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89477         SunOS 4.1.4 for which gid_t is an unsigned type.
89478
89479 2000-06-03  Jim Meyering  <meyering@lucent.com>
89480
89481         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89482         now that autoconf requires that.
89483
89484         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89485         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89486         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89487
89488 2000-06-03  Jim Meyering  <meyering@lucent.com>
89489
89490         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89491
89492 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89493
89494         * m4/glibc21.m4: New file.
89495         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89496
89497 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89498
89499         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89500         newer, don't install charset.alias.
89501         * lib/config.charset: Change the Linux/glibc rules so they become empty
89502         on glibc-2.1 or newer.
89503
89504 2000-06-02  Jim Meyering  <meyering@lucent.com>
89505
89506         * lib/mountlist.c: Back out last change.  Instead, do this...
89507         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89508         me_dummy member using the same `ignore'-testing code.
89509         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89510         fs_type strings.
89511         From Mark D. Roth.
89512
89513 2000-05-29  Jim Meyering  <meyering@lucent.com>
89514
89515         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89516         mounts with the `ignore' attribute.  Based on a patch from
89517         Mark D. Roth.
89518
89519 2000-05-28  Jim Meyering  <meyering@lucent.com>
89520
89521         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89522         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89523         * m4/stat.m4: Likewise.
89524         * m4/lstat.m4: Likewise.
89525         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89526
89527         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89528         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89529
89530 2000-05-26  Jim Meyering  <meyering@lucent.com>
89531
89532         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89533
89534 2000-05-24  Jim Meyering  <meyering@lucent.com>
89535
89536         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89537         autoconf requires that.
89538         * m4/lib-check.m4: Likewise.
89539         * m4/jm-macros.m4: Likewise.
89540         * m4/strftime.m4: Likewise.
89541
89542         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89543         AC_CHECK_DECLS, now that autoconf requires that.
89544
89545 2000-05-22  Jim Meyering  <meyering@lucent.com>
89546
89547         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89548         * m4/lstat.m4: Likewise.
89549
89550 2000-05-22  Jim Meyering  <meyering@lucent.com>
89551
89552         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89553
89554 2000-05-20  Jim Meyering  <meyering@lucent.com>
89555
89556         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89557         (jm_PREREQ): Use it.
89558
89559 2000-05-18  Jim Meyering  <meyering@lucent.com>
89560
89561         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89562         back, too, since it may have been modified by allocate_entry.
89563         (hash_delete): Rewrite to use neither the assignment operator
89564         nor the comma operator in an if-expression.
89565
89566 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89567
89568         * lib/closeout.c:
89569         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89570         Remove; no longer needed.
89571         "quotearg.h": Add include.
89572         (file_name): Do not bother to explicitly initialize to NULL; it's less
89573         efficient on some hosts.
89574         (close_stdout_status): Remove test as to whether stdout was already
89575         closed; it breaks for the case "echo x | sort >&-".
89576         Quote file name colons.
89577         Do not assume that _("write error") lacks format strings.
89578
89579 2000-05-15  Jim Meyering  <meyering@lucent.com>
89580
89581         * lib/version-etc.c (version_etc_copyright): Update the copyright
89582         string used in all --version output.
89583
89584 2000-05-14  Jim Meyering  <meyering@lucent.com>
89585
89586         * lib/closeout.c (close_stdout_set_file_name): New function.
89587         (close_stdout_status): Use new file-scoped global.
89588         Return right away if fstat says the stdout file descriptor is invalid.
89589         * lib/closeout.h (close_stdout_set_file_name): Declare.
89590
89591 2000-05-10  Jim Meyering  <meyering@lucent.com>
89592
89593         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89594         (close_stdout_set_status): New function.
89595         * lib/closeout.h (close_stdout_set_status): Declare.
89596
89597 2000-05-09  Jim Meyering  <meyering@lucent.com>
89598
89599         * m4/gettext.m4: Rename this...
89600         * m4/libintl.m4: ...to this.
89601
89602 2000-05-08  Jim Meyering  <meyering@lucent.com>
89603
89604         * lib/long-options.c: Don't include closeout.h.
89605         (parse_long_options): Don't call close_stdout for --version.
89606
89607 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89608
89609         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89610         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89611         2.1.3 bug.  This avoids a clash when files like regex.c define
89612         _GNU_SOURCE.
89613
89614 2000-05-06  Jim Meyering  <meyering@lucent.com>
89615
89616         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89617         (AC_REPLACE_FUNCS): Add strnlen.
89618
89619         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89620         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89621
89622         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89623         AC_SEARCH_LIBS call for nanosleep.
89624         (LIB_NANOSLEEP): Set and AC_SUBST.
89625
89626 2000-05-06  Jim Meyering  <meyering@lucent.com>
89627
89628         * lib/strnlen.c: Undefine __strnlen and strnlen.
89629         [!weak_alias]: Define __strnlen to strnlen.
89630
89631         * lib/atexit.c: New file, from libiberty.
89632
89633 2000-05-06  Jim Meyering  <meyering@lucent.com>
89634
89635         * lib/closeout.c (close_stdout_status): Also check for errors on the
89636         stderr stream.
89637
89638 2000-05-05  Jim Meyering  <meyering@lucent.com>
89639
89640         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89641         AC_SEARCH_LIBS call for clock_gettime.
89642         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89643
89644         * m4/search-libs.m4: Update from autoconf.
89645
89646         su doesn't work on Solaris 2.6.
89647         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89648         <shadow.h>.  Reported by Dragos Harabor.
89649
89650 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89651
89652         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89653         memcpy instead of xmalloc, xrealloc, path_concat.
89654         (locale_charset): Treat empty environment variables as absent.
89655         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89656
89657 2000-05-04  Jim Meyering  <meyering@lucent.com>
89658
89659         * lib/getopt.c: Update from glibc.
89660         * lib/obstack.c: Likewise.
89661         * lib/obstack.h: Likewise.
89662         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89663         file
89664
89665         * lib/regex.h: Likewise.
89666         * lib/strndup.c: Likewise.
89667         * lib/strnlen.c: New file, from glibc.
89668
89669 2000-05-03  Jim Meyering  <meyering@lucent.com>
89670
89671         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89672
89673 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89674
89675         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89676         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89677         compile-time test, rather than inspecting host and OS, to
89678         decide whether to define _LARGEFILE_SOURCE.
89679
89680 2000-05-01  Jim Meyering  <meyering@lucent.com>
89681
89682         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89683
89684         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89685         Based on a patch from Bruno Haible.
89686
89687 2000-05-01  Jim Meyering  <meyering@lucent.com>
89688
89689         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89690
89691 2000-04-29  Jim Meyering  <meyering@lucent.com>
89692
89693         * lib/path-concat.c: Declare strdup only if it's not defined.
89694         * lib/canon-host.c: Likewise.
89695
89696 2000-04-28  Jim Meyering  <meyering@lucent.com>
89697
89698         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89699         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89700         is included first, then limits.h is included by locale.h by libintl.h.
89701         From John David Anglin.
89702
89703 2000-04-25  Jim Meyering  <meyering@lucent.com>
89704
89705         * lib/makepath.c (S_IRWXUGO): Define.
89706         (make_path): Always perform explicit chmod if MODE specifies any
89707         of the `special' permission bits.  Prompted by a bug report against
89708         install from Mate Wierdl and Joost van Baal.
89709
89710 2000-04-18  Jim Meyering  <meyering@lucent.com>
89711
89712         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89713         (jm_PREREQ): Use it.
89714
89715 2000-04-18  Jim Meyering  <meyering@lucent.com>
89716
89717         * lib/README: New file.
89718
89719         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89720         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89721
89722 2000-04-17  Jim Meyering  <meyering@lucent.com>
89723
89724         Get it right :-)
89725         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89726         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89727         Suggestion from Akim Demaille.
89728
89729 2000-04-17  Jim Meyering  <meyering@lucent.com>
89730
89731         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89732         the definition of it to rpl_strftime also defined-away the system's
89733         declaration.
89734
89735 2000-04-15  Jim Meyering  <meyering@lucent.com>
89736
89737         Use `C' to denote so-called `contiguous' files, the same way
89738         that tar does.
89739         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89740         (ftypelet): Use S_ISCTG.
89741         From Michael Deutschmann.
89742
89743 2000-04-14  Jim Meyering  <meyering@lucent.com>
89744
89745         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89746         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89747         clobbered.
89748
89749 2000-04-14  Jim Meyering  <meyering@lucent.com>
89750
89751         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89752
89753 2000-04-13  Jim Meyering  <meyering@lucent.com>
89754
89755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89756         AH_VERBATIM to insert required #ifndef into config.h.in.
89757         Suggestion from Akim Demaille.
89758
89759 2000-04-12  Jim Meyering  <meyering@lucent.com>
89760
89761         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89762         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89763         Christian Krackowizer.
89764
89765         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89766         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89767         (AC_SYS_LARGEFILE): Require.
89768         (AM_C_PROTOTYPES): Require.
89769
89770 2000-04-08  Jim Meyering  <meyering@lucent.com>
89771
89772         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89773         names don't conflict.  Reported by Eli Zaretskii.
89774
89775 2000-04-07  Jim Meyering  <meyering@lucent.com>
89776
89777         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89778         sys/types.h, to work around system header problems on AIX 3.2.5.
89779         From Bruno Haible.
89780
89781 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89782
89783         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89784         bug.  Deal with the different error behavior of Irix iconv.
89785
89786 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89787
89788         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89789         IRIX if the installer said otherwise.
89790
89791 2000-04-05  Jim Meyering  <meyering@lucent.com>
89792
89793         Portability tweaks required for ultrix4.3.
89794         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89795         (jm_CHECK_DECLS): Add getutent to the list of functions.
89796         (_jm_DECL_HEADERS): Add utmpx.h.
89797         From John David Anglin.
89798
89799         * m4/strftime.m4: Back out the 2000-04-02 change.
89800         Instead of that change, simply undefine putenv in the test program.
89801
89802 2000-04-05  Jim Meyering  <meyering@lucent.com>
89803
89804         Portability tweaks required for ultrix4.3.
89805         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89806         getutent.
89807         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89808         * lib/canon-host.c: Declare strdup.
89809         * lib/path-concat.c: Likewise.
89810         From John David Anglin.
89811
89812 2000-04-04  Jim Meyering  <meyering@lucent.com>
89813
89814         Be more DOS 8.3-friendly.
89815         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89816         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89817         * lib/Makefile.am: Reflect renaming.
89818         Reported by Eli Zaretskii.
89819
89820         Use a temporary file name that won't clash with `charset.alias'
89821         in the DOS 8.3 name space.
89822         * lib/Makefile.am (charset_tmp): Define.
89823         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89824         (uninstall-local): Likewise.
89825         Reported by Eli Zaretskii.
89826
89827 2000-04-03  Jim Meyering  <meyering@lucent.com>
89828
89829         * m4/gettext.m4: Fix typo in comment.
89830
89831         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89832         textutils/configure.in).  Suggestion from Paul Eggert.
89833         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89834
89835 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89836
89837         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89838         variable in the shell rather than using putenv, which isn't
89839         portable.  This avoids the configure-time inter-test dependency
89840         on the potentially-renamed putenv function.
89841
89842 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89843
89844         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89845         before checking struct stat.st_blksize, so that
89846         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89847
89848 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89849
89850         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89851         since strftime.c uses HAVE_STRFTIME to decide whether to use
89852         the underlying strftime.
89853
89854 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89855
89856         * lib/time/strftime.c (my_strftime): Make sure we call the system
89857         strftime, not ourselves, when invoking the underlying strftime.
89858
89859 2000-03-24  Jim Meyering  <meyering@lucent.com>
89860
89861         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89862         (charset_alias): Define.
89863         (install-exec-local): Factor out common code.
89864         (uninstall-local): Split lines longer than 80.
89865         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89866         (SUFFIXES): Define.
89867         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89868         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89869
89870 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89871
89872         * lib/config.charset: Output a line containing "Packages using this
89873         file".
89874         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89875         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89876         ref-del.sed): New rules.
89877
89878 2000-03-17  Jim Meyering  <meyering@lucent.com>
89879
89880         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89881         Otherwise, include <strings.h>
89882
89883 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89884
89885         * lib/unicodeio.c (utf8_wctomb): New function.
89886         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89887         format instead of in UCS-4 with platform dependent endianness.
89888
89889 2000-03-10  Jim Meyering  <meyering@lucent.com>
89890
89891         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89892         From Marco Franzen.
89893
89894 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89895
89896         * lib/savedir.c (savedir): Work even if directory size is
89897         negative; this can happen with some screwy NFS configurations.
89898
89899 2000-03-06  Jim Meyering  <meyering@lucent.com>
89900
89901         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89902         if it's NULL (because we ran out of memory).  From Bruno Haible.
89903
89904 2000-03-05  Jim Meyering  <meyering@lucent.com>
89905
89906         * lib/localcharset.c ("path-concat.h"): Include.
89907         (get_charset_aliases): Use path_concat instead of ANSI string
89908         concatenation.
89909
89910         * lib/unicodeio.h (PARAMS): Define.
89911         Use it to guard prototype.
89912
89913 2000-03-04  Jim Meyering  <meyering@lucent.com>
89914
89915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89916         for lib/localcharset.c.
89917
89918 2000-03-04  Jim Meyering  <meyering@lucent.com>
89919
89920         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89921         installing into it.
89922         (uninstall-local): Uncomment this rule so `make distcheck' works
89923         once again.
89924
89925         * lib/unicodeio.c (<errno.h>): Include it.
89926         (errno): Declare if not defined.
89927
89928         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89929
89930         * lib/config.charset: New version, incorporating remarks from a linux
89931         i18n mailing list.  From Bruno Haible.
89932
89933 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89934
89935         * m4/codeset.m4: New file.
89936         * m4/iconv.m4: New file.
89937         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89938
89939 2000-03-03  Jim Meyering  <meyering@lucent.com>
89940
89941         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89942
89943 2000-03-02  Jim Meyering  <meyering@lucent.com>
89944
89945         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89946         the messages come out on separate lines.
89947
89948         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89949         rather than jm_CHECK_DECLARATIONS.
89950         * m4/decl.m4: Remove now-unused file.
89951
89952         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89953         geteuid.
89954
89955 2000-03-02  Jim Meyering  <meyering@lucent.com>
89956
89957         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89958
89959 2000-03-01  Jim Meyering  <meyering@lucent.com>
89960
89961         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89962         * lib/unicodeio.c: Likewise.
89963
89964 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89965
89966         * lib/config.charset: New file.
89967         * lib/localcharset.c: New file.
89968         * lib/unicodeio.h, lib/unicodeio.c: New files.
89969         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89970         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89971         (noinst_HEADERS): Add unicodeio.h.
89972         (all-local, install-exec-local, charset.alias): New targets.
89973
89974 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89975
89976         * lib/quotearg.c (ALERT_CHAR): New macro.
89977         (quotearg_buffer_restyled): Use it.
89978
89979 2000-02-27  Jim Meyering  <meyering@lucent.com>
89980
89981         * m4/check-decl.m4: Add getenv to the list.
89982
89983 2000-02-27  Jim Meyering  <meyering@lucent.com>
89984
89985         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89986         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89987
89988         * lib/backupfile.c: Guard inclusion of stdlib.h with
89989         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89990         Declare malloc if needed.
89991
89992         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89993         `#ifndef HAVE_DECL..'
89994         now that autoconf always defines the HAVE_DECL_ symbols.
89995         * lib/human.c: Likewise.
89996         * lib/same.c: Likewise.
89997         * lib/strtoumax.c: Likewise.
89998
89999         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90000         declaration check was not run.
90001         * lib/hash.c: Likewise.
90002         * lib/human.c: Likewise.
90003         * lib/same.c: Likewise.
90004         * lib/strtoumax.c: Likewise.
90005
90006         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90007         `.', then first look up the entire `.'-containing string as a login
90008         name.
90009
90010 2000-02-23  Jim Meyering  <meyering@lucent.com>
90011
90012         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90013         in place of my hack.
90014
90015 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90016
90017         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90018         (textint): New typedef.
90019         (parser_control): Member year changed from int to textint.
90020         All uses changed.
90021         (YYSTYPE): Removed; replaced by %union with int and textint members.
90022         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90023         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90024         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90025         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90026         (date, number, to_year): Use width of number in digits, not its value,
90027         to determine whether it's a 2-digit year, or a 2-digit time.
90028         (yylex): Store number of digits of numeric tokens.
90029         Reported by John Kendall.
90030
90031         (parser_control): Changed from struct parser_control to typedef (for
90032         consistency).  All uses changed.
90033
90034         (tID): Removed; not used.
90035         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90036
90037 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90038
90039         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90040         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90041
90042 2000-02-12  Jim Meyering  <meyering@lucent.com>
90043
90044         * lib/userspec.c (ISDIGIT): Define it.
90045         (isdigit): Remove definition.
90046         (is_number): Use ISDIGIT, not isdigit.
90047         <libintl.h>: Include.
90048         (_ and N_): Define.
90049         (parse_user_spec): Mark translatable strings.
90050
90051 2000-02-10  Jim Meyering  <meyering@lucent.com>
90052
90053         With these changes, nanosleep.[ch] are finally enough like the other
90054         lib/* replacement files to compile on a few more losing systems.
90055
90056         * lib/nanosleep.h: Don't include config.h.
90057         Remove prototype from declaration of nanosleep.
90058         (PARAMS): Remove now-unneeded definition.
90059         * lib/nanosleep.c: #undef nanosleep.
90060         (rpl_nanosleep): Rename from nanosleep.
90061
90062 2000-02-10  Jim Meyering  <meyering@lucent.com>
90063
90064         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90065         gnu_nanosleep to rpl_nanosleep.
90066
90067 2000-02-09  Jim Meyering  <meyering@lucent.com>
90068
90069         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90070         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90071
90072 2000-02-08  Akim Demaille  <akim@epita.fr>
90073
90074         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90075         `[' and `]' and remove uses of `changequote'.
90076         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90077         (AC_SYS_LARGEFILE): Likewise.
90078         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90079         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90080         of changequote.
90081         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90082         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90083         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90084         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90085
90086 2000-02-05  Jim Meyering  <meyering@lucent.com>
90087
90088         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90089         Remove explicit use of AC_HEADER_TIME.  It is required by
90090         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90091         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90092         in autoconf whereby the expansion of the latter ended up preceding
90093         the expansion of its prerequisite, AC_HEADER_TIME.
90094         Reported by Volker Borchert.
90095
90096 2000-02-03  Jim Meyering  <meyering@lucent.com>
90097
90098         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90099
90100 2000-02-03  Jim Meyering  <meyering@lucent.com>
90101
90102         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90103         rather than with `#if HAVE_UTMPNAME'.
90104
90105 2000-02-02  Jim Meyering  <meyering@lucent.com>
90106
90107         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90108         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90109         Reported by Eli Zaretskii.
90110
90111 2000-02-01  Jim Meyering  <meyering@lucent.com>
90112
90113         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90114
90115 2000-01-31  Jim Meyering  <meyering@lucent.com>
90116
90117         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90118         functions.  Add the time.h and sys/time.h headers along with the
90119         AC_REQUIRE'ment of AC_HEADER_TIME.
90120
90121 2000-01-31  Jim Meyering  <meyering@lucent.com>
90122
90123         * lib/nanosleep.h (nanosleep): Guard declaration with
90124         `#if ! HAVE_DECL_NANOSLEEP'.
90125         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90126         the declaration in that vendor's sys/timers.h.
90127         Reported by Christian Krackowizer.
90128
90129         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90130         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90131         (ISPRINT): Likewise.
90132         Reported by Tom Tromey.
90133
90134 2000-01-30  Jim Meyering  <meyering@lucent.com>
90135
90136         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90137
90138         * m4/prereq.m4 (utmp_includes): Define.
90139         Check for ut_user and ut_name members in both struct utmpx
90140         and struct utmp.
90141
90142 2000-01-30  Jim Meyering  <meyering@lucent.com>
90143
90144         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90145         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90146         header files where only utmpx.ut_user is declared.
90147
90148         * lib/readutmp.h (UT_USER): Define.
90149
90150 2000-01-29  Jim Meyering  <meyering@lucent.com>
90151
90152         * m4/lib-check.m4: New file containing library-related checks from
90153         fileutils and sh-utils (textutils had none).
90154
90155 2000-01-28  Jim Meyering  <meyering@lucent.com>
90156
90157         * m4/perl.m4: Change format of warning message to look more like that
90158         from the missing script.  Suggestion from François Pinard.
90159
90160 2000-01-25  Jim Meyering  <meyering@lucent.com>
90161
90162         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90163         well as time.h in the compile check.
90164         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90165         Fix typo in cross-compiling case: s/yes/no/.
90166
90167 2000-01-23  Jim Meyering  <meyering@lucent.com>
90168
90169         * m4/jm-macros.m4: Move df-related tests here from
90170         fileutils/configure.in
90171
90172         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90173         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90174
90175         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90176         s/space/ac_fsusage_space/.
90177         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90178
90179         * m4/ftruncate.m4: New file (derived from part of
90180         fileutils/configure.in).
90181         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90182         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90183
90184         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90185         AC_SUBST these here, rather than just in sh-util/configure.in, so
90186         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90187         all the same.
90188         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90189         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90190         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90191         (AC_SUBST(POW_LIBM)): Likewise.
90192         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90193
90194 2000-01-23  Jim Meyering  <meyering@lucent.com>
90195
90196         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90197         obstack.c.
90198
90199 2000-01-22  Jim Meyering  <meyering@lucent.com>
90200
90201         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90202
90203         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90204
90205         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90206         configure.in
90207         (AC_CHECK_HEADERS): Likewise for sh-utils.
90208         (AC_CHECK_HEADERS): Likewise for textutils.
90209         Merge the three lists of headers.
90210
90211         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90212         from fileutils' configure.in.
90213
90214         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90215         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90216         check-decl.m4.
90217
90218         * m4/check-decl.m4: Use #if rather than #ifdef.
90219         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90220         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90221         (_jm_DECL_HEADERS): Define new function.
90222         (jm_CHECK_DECLARATIONS): Require it.
90223
90224 2000-01-22  Jim Meyering  <meyering@lucent.com>
90225
90226         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90227         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90228         Required for some AIX systems.  Reported by Christian Krackowizer.
90229         [TESTING] (main): New function.
90230
90231         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90232         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90233         letters.
90234
90235         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90236         iswprint.
90237
90238         * lib/strverscmp.c (ISDIGIT): Define.
90239         (strverscmp): Use ISDIGIT, not isdigit.
90240
90241 2000-01-19  Jim Meyering  <meyering@lucent.com>
90242
90243         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90244         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90245         defines `struct timespec' in <sys/time.h>
90246
90247         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90248         Thanks to Akim for explaining.
90249
90250 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90251
90252         * lib/nanosleep.c (nanosleep):
90253         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90254         POSIX.1 doesn't require SA_INTERRUPT and some systems
90255         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90256         it's been part of POSIX.1 since day 1 (in 1988).
90257
90258 2000-01-17  Jim Meyering  <meyering@lucent.com>
90259
90260         * lib/interlock: Remove unused file.  Reported by François Pinard.
90261
90262 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90263
90264         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90265         alert, backslash, formfeed, and vertical tab unnecessarily in
90266         shell quoting style.
90267
90268 2000-01-16  Jim Meyering  <meyering@lucent.com>
90269
90270         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90271         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90272         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90273         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90274
90275 2000-01-16  Jim Meyering  <meyering@lucent.com>
90276
90277         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90278         because the latter didn't work.
90279
90280 2000-01-15  Jim Meyering  <meyering@lucent.com>
90281
90282         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90283         (AC_REPLACE_FUNCS): Add memcpy and memset.
90284         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90285         Add strpbrk.
90286         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90287
90288 2000-01-12  Jim Meyering  <meyering@lucent.com>
90289
90290         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90291         (jm_PREREQ): Use it.
90292         (jm_PREREQ_READUTMP): New macro.
90293         (jm_PREREQ): Use it.
90294
90295 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90296
90297         Quote multibyte characters correctly.
90298         * m4/c-bs-a.m4: New file.
90299         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90300         (jm_PREREQ): Use it.
90301
90302 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90303
90304         * m4/uintmax_t.m4: Port to autoconf 2.13.
90305
90306 2000-01-08  Jim Meyering  <meyering@ascend.com>
90307
90308         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90309         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90310
90311 2000-01-04  Jim Meyering  <meyering@ascend.com>
90312
90313         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90314         jm_STRUCT_DIRENT_D_TYPE.
90315         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90316         jm_STRUCT_DIRENT_D_INO.
90317         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90318         jm_STRUCT_UTIMBUF.
90319         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90320         renamings.
90321         * m4/utime.m4: Likewise.
90322
90323         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90324         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90325
90326 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90327
90328         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90329         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90330
90331 2000-01-02  Jim Meyering  <meyering@ascend.com>
90332
90333         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90334         remember if this is necessary.
90335
90336 1999-12-26  Jim Meyering  <meyering@ascend.com>
90337
90338         * m4/jm-macros.m4: Use it here.
90339         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90340
90341 1999-12-23  Jim Meyering  <meyering@ascend.com>
90342
90343         * m4/jm-macros.m4: Check for clock_gettime (moved from
90344         fileutils/configure.in)
90345         Check for gettimeofday.
90346
90347 1999-12-20  Jim Meyering  <meyering@ascend.com>
90348
90349         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90350         autoconf-2.14a-1999-12-20.
90351
90352 1999-12-19  Jim Meyering  <meyering@ascend.com>
90353
90354         * m4/lstat-slash.m4: New file.
90355         * m4/jm-macros.m4: Use the new macro:
90356         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90357
90358 1999-12-07  Jim Meyering  <meyering@ascend.com>
90359
90360         * m4/perl.m4: Require that File::Compare be available, too.
90361         Too many systems seem to lack it.
90362
90363         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90364         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90365
90366 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90367
90368         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90369         problem with the QNX 4.25 shell, which doesn't propagate exit
90370         status of failed commands inside shell assignments.
90371
90372 1999-11-17  Jim Meyering  <meyering@ascend.com>
90373
90374         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90375
90376 1999-11-07  Jim Meyering  <meyering@ascend.com>
90377
90378         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90379
90380 1999-11-06  Jim Meyering  <meyering@ascend.com>
90381
90382         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90383         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90384
90385 1999-11-05  Jim Meyering  <meyering@ascend.com>
90386
90387         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90388         configure.in of textutils, fileutils, and sh-utils into this one
90389         (shared between those packages) file.
90390         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90391         AC_STRUCT_ST_BLKSIZE.
90392
90393 1999-11-03  Jim Meyering  <meyering@ascend.com>
90394
90395         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90396         of AC_CHECK_TYPE checks includes unistd.h.
90397         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90398         Suggestion from Akim Demaille.
90399
90400 1999-10-30  Jim Meyering  <meyering@ascend.com>
90401
90402         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90403         m4-quoted string.
90404         * m4/ls-mntd-fs.m4: Likewise.
90405         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90406         * m4/jm-winsz1.m4: Likewise.
90407
90408         * m4/const.m4: Remove file, since the fix made it into the experimental
90409         version of autoconf.
90410         * m4/mktime.m4: Likewise.
90411
90412         * m4/check-type.m4: Remove file, now that the latest version of
90413         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90414
90415         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90416         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90417         AC_CHECK_TYPE.
90418
90419 1999-10-04  Jim Meyering  <meyering@ascend.com>
90420
90421         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90422
90423 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90424
90425         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90426         2.95.1 bug with HP-UX 10.20.
90427
90428 1999-09-17  Jim Meyering  <meyering@ascend.com>
90429
90430         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90431         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90432         due to missing strdup (against sh-utils-2.0).
90433
90434 1999-08-29  Jim Meyering  <meyering@ascend.com>
90435
90436         * m4/jm-macros.m4: Require jm_BISON.
90437         * m4/bison.m4: New file.
90438
90439 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90440
90441         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90442         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90443
90444 1999-08-05  Jim Meyering  <meyering@ascend.com>
90445
90446         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90447         to avoid conflicts with `conftest' on 8+3 filesystems.
90448         Suggestion from Eli Zaretskii.
90449
90450 1999-08-04  Jim Meyering  <meyering@ascend.com>
90451
90452         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90453         fileutils and sh-utils (textutils's getline test was inadequate).
90454         (AM_FUNC_GETLINE): Run this test.
90455         (AC_CHECK_FUNCS): Check for getdelim.
90456         Reported by Bob Proulx.
90457
90458 1999-08-02  Jim Meyering  <meyering@ascend.com>
90459
90460         * m4/jm-macros.m4: Add a comment.
90461
90462 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90463
90464         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90465         <inttypes.h> defines strtoumax as a macro (and not as a
90466         function).
90467
90468 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90469
90470         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90471         that we can shift, multiply and divide unsigned long long
90472         values; Ultrix cc can't do it.
90473
90474 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90475
90476         * m4/mktime.m4: New file, which is a preview of what should appear
90477         in the next public autoconf release.
90478
90479 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90480
90481         * m4/lfs.m4: Remove this file.
90482         * m4/largefile.m4: New file.  It contains the old contents of
90483         lfs.m4, except that all names with prefix AC_LFS have been
90484         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90485         compatible with future autoconf versions.  Also, some minor m4
90486         quoting problems have been fixed.
90487
90488 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90489
90490         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90491         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90492         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90493         and simplify the shell code.
90494
90495 1999-08-01  Jim Meyering  <meyering@ascend.com>
90496
90497         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90498         m4.
90499
90500 1999-07-20  Jim Meyering  <meyering@ascend.com>
90501
90502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90503
90504 1999-07-15  Jim Meyering  <meyering@ascend.com>
90505
90506         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90507
90508 1999-05-22  Jim Meyering  <meyering@ascend.com>
90509
90510         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90511
90512 1999-05-20  Jim Meyering  <meyering@ascend.com>
90513
90514         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90515         Add a colon after each `then' in case $4 is empty.
90516
90517 1999-05-16  Jim Meyering  <meyering@ascend.com>
90518
90519         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90520
90521 1999-05-10  Jim Meyering  <meyering@ascend.com>
90522
90523         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90524
90525         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90526         AC_FUNC_MKTIME.
90527
90528 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90529
90530         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90531
90532 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90533
90534         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90535         not CPPFLAGS, so that linking works correctly in IRIX.
90536
90537 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90538
90539         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90540
90541 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90542
90543         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90544         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90546         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90547         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90548
90549         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90550
90551 1999-04-20  Jim Meyering  <meyering@ascend.com>
90552
90553         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90554         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90555         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90556
90557 1999-04-18  Jim Meyering  <meyering@ascend.com>
90558
90559         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90560         * m4/jm-macros.m4: Use it.
90561
90562 1999-04-06  Jim Meyering  <meyering@ascend.com>
90563
90564         * m4/strftime.m4: Remove test for %f.
90565
90566 1999-03-29  Jim Meyering  <meyering@ascend.com>
90567
90568         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90569         superset of the AC_TYPE_* checks in the textutils, fileutils,
90570         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90571         AC_TYPE_PID_T.
90572
90573 1999-03-28  Jim Meyering  <meyering@ascend.com>
90574
90575         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90576         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90577         replaced e.g., in the *.sh files of the sh-utils.
90578
90579 1999-03-20  Jim Meyering  <meyering@ascend.com>
90580
90581         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90582         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90583         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90584
90585 1999-03-19  Jim Meyering  <meyering@ascend.com>
90586
90587         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90588
90589 1999-03-12  Jim Meyering  <meyering@ascend.com>
90590
90591         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90592
90593 1999-03-07  Jim Meyering  <meyering@ascend.com>
90594
90595         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90596         declared.
90597
90598 1999-02-17  Jim Meyering  <meyering@ascend.com>
90599
90600         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90601         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90602
90603 1999-02-07  Jim Meyering  <meyering@ascend.com>
90604
90605         * m4/group-member.m4: New file -- extracted from sh-utils'
90606         configure.in.
90607
90608         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90609         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90610
90611 1999-02-06  Jim Meyering  <meyering@ascend.com>
90612
90613         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90614         * m4/fnmatch.m4: Likewise.
90615         * m4/getgroups.m4: Likewise.
90616         * m4/lstat.m4: Likewise.
90617         * m4/malloc.m4: Likewise.
90618         * m4/putenv.m4: Likewise.
90619         * m4/realloc.m4: Likewise.
90620         * m4/regex.m4: Likewise.
90621         * m4/stat.m4: Likewise.
90622         * m4/strftime.m4: Likewise.
90623         Suggestion from Alain Magloire.
90624
90625         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90626         * m4/fnmatch.m4: Likewise.
90627         * m4/getgroups.m4: Likewise.
90628         * m4/getline.m4: Likewise.
90629         * m4/lstat.m4: Likewise.
90630         * m4/malloc.m4: Likewise.
90631         * m4/memcmp.m4: Likewise.
90632         * m4/putenv.m4: Likewise.
90633         * m4/realloc.m4: Likewise.
90634         * m4/regex.m4: Likewise.
90635         * m4/stat.m4: Likewise.
90636         * m4/strftime.m4: Likewise.
90637         Suggestion from Alain Magloire.
90638
90639         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90640         an argument.
90641
90642         * m4/regex.m4: Add a run-time Test for proper operation of
90643         re_compile_pattern.
90644
90645 1999-01-31  Jim Meyering  <meyering@ascend.com>
90646
90647         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90648
90649 1999-01-30  Jim Meyering  <meyering@ascend.com>
90650
90651         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90652
90653         * m4/jm-mktime.m4: Make this a wrapper around the official
90654         AM_FUNC_MKTIME rather than my private copy, now that the official one
90655         is up to date.
90656         * m4/mktime.m4: Remove file.
90657
90658         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90659         * m4/uptime.m4: Likewise.
90660         * m4/uintmax_t.m4: Likewise.
90661
90662 1999-01-28  Jim Meyering  <meyering@ascend.com>
90663
90664         * m4/jm-macros.m4: Use jm_AFS.
90665         * m4/afs.m4: New file (from fileutils' configure.in).
90666
90667         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90668         * m4/chown.m4: Likewise.
90669         * m4/d-ino.m4: Likewise.
90670         * m4/d-type.m4: Likewise.
90671         * m4/fnmatch.m4: Likewise.
90672         * m4/getgroups.m4: Likewise.
90673         * m4/gettext.m4: Likewise.
90674         * m4/jm-mktime.m4: Likewise.
90675         * m4/jm-winsz2.m4: Likewise.
90676         * m4/lcmessage.m4: Likewise.
90677         * m4/ls-mntd-fs.m4: Likewise.
90678         * m4/malloc.m4: Likewise.
90679         * m4/memcmp.m4: Likewise.
90680         * m4/putenv.m4: Likewise.
90681         * m4/realloc.m4: Likewise.
90682         * m4/st_mtim.m4: Likewise.
90683         * m4/strftime.m4: Likewise.
90684
90685 1999-01-16  Jim Meyering  <meyering@ascend.com>
90686
90687         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90688         (ARGMATCH_DIE_DECL): Define.
90689
90690 1999-01-12  Jim Meyering  <meyering@ascend.com>
90691
90692         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90693         Reported by Lars Hecking.
90694
90695 1999-01-10  Jim Meyering  <meyering@ascend.com>
90696
90697         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90698         gross kludge.
90699         * m4/inttypes_h.m4: Likewise.
90700         * m4/lstat.m4: Likewise.
90701         * m4/malloc.m4: Likewise.
90702         * m4/readdir.m4: Likewise.
90703         * m4/realloc.m4: Likewise.
90704         * m4/st_dm_mode.m4: Likewise.
90705         * m4/stat.m4: Likewise.
90706         * m4/utimbuf.m4: Likewise.
90707         * m4/utimes.m4: Likewise.
90708
90709         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90710         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90711         comments in config.h.in are meaningful.
90712
90713         * m4/jm-macros.m4: Require autoconf-2.13 here.
90714
90715         * m4/regex.m4: By default, don't use the included regex.c on systems
90716         with glibc 2.  Suggestion from Uli Drepper.
90717
90718 1999-01-02  Jim Meyering  <meyering@ascend.com>
90719
90720         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90721
90722 1998-12-18  Jim Meyering  <meyering@ascend.com>
90723
90724         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90725         Based on a suggestion from Lars Hecking.
90726
90727 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90728
90729         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90730
90731 1998-11-16  Jim Meyering  <meyering@ascend.com>
90732
90733         * m4/lfs.m4: Double-quote the `uname...` expression.
90734
90735 1998-11-14  Jim Meyering  <meyering@ascend.com>
90736
90737         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90738         * m4/stat.m4: Likewise.
90739
90740 1998-11-03  Jim Meyering  <meyering@ascend.com>
90741
90742         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90743         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90744
90745 1998-10-18  Jim Meyering  <meyering@ascend.com>
90746
90747         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90748
90749 1998-10-17  Jim Meyering  <meyering@ascend.com>
90750
90751         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90752         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90753         calls for those previously hard-coded headers.  Instead, take a new
90754         parameter.
90755         (jm_CHECK_DECLARATIONS): Reflect interface change.
90756         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90757         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90758
90759         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90760
90761 1998-10-14  Jim Meyering  <meyering@ascend.com>
90762
90763         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90764         instead of "TZ=America/Vancouver".  From Paul Eggert.
90765
90766 1998-10-11  Jim Meyering  <meyering@ascend.com>
90767
90768         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90769         This adds a test for a recently added compatibility fix for mktime.c.
90770         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90771
90772 1998-09-27  Jim Meyering  <meyering@ascend.com>
90773
90774         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90775
90776         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90777         ../configure.in, including a change from Gordon Matzigkeit to allow
90778         cross-compiling for the Hurd.
90779
90780         * m4/glibc.m4: New file/macro to test for the GNU C Library
90781         versions 1 and 2.  From Gordon Matzigkeit.
90782         Indent.
90783
90784 1998-09-21  Jim Meyering  <meyering@ascend.com>
90785
90786         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90787
90788 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90789
90790         Port nanosecond-resolution times to UnixWare 2.1.2 and
90791         pedantic Solaris 2.6.
90792
90793         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90794         AC_STRUCT_ST_MTIM.
90795         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90796         Generate name of ns member, instead of just 1 or undef.
90797         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90798
90799 1998-08-15  Jim Meyering  <meyering@ascend.com>
90800
90801         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90802         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90803         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90804         instead of jm_TYPE_SSIZE_T.
90805
90806 1998-08-12  Jim Meyering  <meyering@ascend.com>
90807
90808         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90809
90810 1998-08-02  Jim Meyering  <meyering@ascend.com>
90811
90812         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90813         in acconfig.h manually.
90814
90815 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90816
90817         * m4/st_mtim.m4: New file.
90818
90819 1998-07-28  Jim Meyering  <meyering@ascend.com>
90820
90821         * m4/utimes.m4: Undef stat.
90822
90823 1998-07-25  Jim Meyering  <meyering@ascend.com>
90824
90825         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90826         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90827
90828 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90829
90830         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90831         uid and gid actually remain unchanged.
90832
90833 1998-07-07  Jim Meyering  <meyering@ascend.com>
90834
90835         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90836
90837 1998-07-04  Jim Meyering  <meyering@ascend.com>
90838
90839         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90840         to prove that this macro can be used in packages without regex.c.
90841
90842 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90843
90844         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90845         is to be used.
90846
90847 1998-07-03  Jim Meyering  <meyering@ascend.com>
90848
90849         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90850
90851         * m4/gettext.m4: New file -- from gettext-0.10.35.
90852         * m4/lcmessage.m4: Likewise.
90853         * m4/progtest.m4: Likewise.
90854
90855         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90856         * m4/jm-macros.m4: Require the new macro.
90857
90858 1998-06-29  Jim Meyering  <meyering@ascend.com>
90859
90860         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90861         for the definition of NGROUPS (used in a system header included
90862         by sys/mount.h).
90863
90864 1998-06-28  Jim Meyering  <meyering@ascend.com>
90865
90866         * m4/ls-mntd-fs.m4: New file.
90867         * m4/fstypename.m4: New file.
90868
90869         * m4/jm-macros.m4: Require the new macro.
90870         * m4/jm-glibc-io.m4: New file.
90871
90872 1998-05-19  Jim Meyering  <meyering@ascend.com>
90873
90874         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90875         * m4/lchown.m4: New file.
90876
90877         * m4/Makefile.am.in: New file.
90878         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90879
90880 1998-05-14  Jim Meyering  <meyering@ascend.com>
90881
90882         * m4/Makefile.am (EXTRA_DIST): Add them.
90883         * m4/jm-macros.m4: New file.
90884         * m4/utimbuf.m4: New file.
90885
90886 1998-05-12  Jim Meyering  <meyering@ascend.com>
90887
90888         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90889
90890 1998-05-11  Jim Meyering  <meyering@ascend.com>
90891
90892         * m4/isc-posix.m4: New file.
90893
90894 1998-05-10  Jim Meyering  <meyering@ascend.com>
90895
90896         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90897
90898 1998-05-09  Jim Meyering  <meyering@ascend.com>
90899
90900         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90901         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90902         with automake.
90903
90904         * m4/ssize_t.m4: New file.
90905         * m4/mktime.m4: Remove file -- the new automake has this now.
90906
90907 1998-04-26  Jim Meyering  <meyering@ascend.com>
90908
90909         * m4/assert.m4: New file.
90910         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90911
90912 1998-04-05  Jim Meyering  <meyering@ascend.com>
90913
90914         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90915         (jm_PREREQ): Use it here.
90916
90917 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90918
90919         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90920         in acconfig.h.
90921
90922 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90923
90924         * m4/prereq.m4: New file.
90925         * m4/error.m4: New file.
90926         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90927
90928 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90929
90930         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90931         cache-check for the same variable -- that defeated the purpose of
90932         the test; the test program was never run.  This was a problem only
90933         on systems with losing getline functions -- HP-UX 10.20 is one.
90934         Reported by Bjorn Helgaas.
90935
90936 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90937
90938         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90939
90940 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90941
90942         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90943
90944         * m4/const.m4: New file.  Use an initializer in this declaration
90945         typedef int charset[2]; const charset x;
90946         Reported by Bob Glickstein.
90947
90948 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90949
90950         * m4/chown.m4: Fix reversed types on -1 args to chown.
90951         From Kaveh Ghazi.
90952
90953 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90954
90955         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90956         Add lseek and memchr.
90957
90958         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90959         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90960         have a 20-character limit on names.
90961
90962 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90963
90964         * m4/inttypes_h.m4: New file.
90965         * m4/uintmax_t.m4: New file.
90966         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90967
90968
90969         -----
90970
90971         Local Variables:
90972         coding: utf-8
90973         End:
90974
90975         Copyright (C) 1997-2012 Free Software Foundation, Inc.
90976
90977         Copying and distribution of this file, with or without
90978         modification, are permitted provided the copyright notice
90979         and this notice are preserved.